mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
refactor: update app specification generation and XML handling
- Enhanced instructions for generating app specifications to clarify XML output requirements. - Updated permission mode in spec generation options to ensure read-only access. - Improved logging to capture XML content extraction and handle potential issues with incomplete responses. - Ensured that only valid XML is saved, avoiding conversational text from the response.
This commit is contained in:
@@ -164,6 +164,10 @@ export function createSpecGenerationOptions(
|
||||
): Options {
|
||||
return {
|
||||
...getBaseOptions(),
|
||||
// Override permissionMode - spec generation only needs read-only tools
|
||||
// Using "acceptEdits" can cause Claude to write files to unexpected locations
|
||||
// See: https://github.com/AutoMaker-Org/automaker/issues/149
|
||||
permissionMode: "default",
|
||||
model: getModelForUseCase("spec", config.model),
|
||||
maxTurns: MAX_TURNS.maximum,
|
||||
cwd: config.cwd,
|
||||
@@ -186,6 +190,8 @@ export function createFeatureGenerationOptions(
|
||||
): Options {
|
||||
return {
|
||||
...getBaseOptions(),
|
||||
// Override permissionMode - feature generation only needs read-only tools
|
||||
permissionMode: "default",
|
||||
model: getModelForUseCase("features", config.model),
|
||||
maxTurns: MAX_TURNS.quick,
|
||||
cwd: config.cwd,
|
||||
|
||||
Reference in New Issue
Block a user