@ikie-dev/cli 9.9.1 → 9.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -28,9 +28,17 @@ export function registerEscalateTool(pi: ExtensionAPI, runtime: FermentRuntime):
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
const currentProfile = profileForFerment(ferment)
|
|
31
|
+
|
|
32
|
+
// Check if write tools are actually visible in the current turn.
|
|
33
|
+
const activeTools = pi.getActiveTools()
|
|
34
|
+
const hasWriteTools = activeTools.includes("write") || activeTools.includes("edit")
|
|
35
|
+
|
|
31
36
|
if (currentProfile === "implementation") {
|
|
37
|
+
if (hasWriteTools) {
|
|
38
|
+
return toolOk(`Already in implementation phase (ferment: ${ferment.id}). All tools are available.`)
|
|
39
|
+
}
|
|
32
40
|
return toolOk(
|
|
33
|
-
|
|
41
|
+
"The ferment is in implementation phase but write tools are not visible yet \u2014 they take effect on the next turn. End this turn with a brief reply and your next response will have the full toolset (bash, edit, write, Agent, etc.).",
|
|
34
42
|
)
|
|
35
43
|
}
|
|
36
44
|
|
|
@@ -63,7 +71,7 @@ export function registerEscalateTool(pi: ExtensionAPI, runtime: FermentRuntime):
|
|
|
63
71
|
if (headRef) runtime.setPhaseStartRef(ferment.id, planned.id, headRef)
|
|
64
72
|
|
|
65
73
|
return toolOk(
|
|
66
|
-
`Phase "${planned.name}" activated. Tool access upgraded to implementation —
|
|
74
|
+
`Phase "${planned.name}" activated. Tool access upgraded to implementation — the new tools (bash, edit, write, start_ferment_step, Agent, etc.) will be available on your next turn. End this turn now and proceed in your next response.`,
|
|
67
75
|
)
|
|
68
76
|
},
|
|
69
77
|
})
|