sisyphi 1.0.8 → 1.0.9
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/dist/daemon.js +13 -8
- package/dist/daemon.js.map +1 -1
- package/dist/templates/agent-plugin/hooks/debug-user-prompt.sh +15 -0
- package/dist/templates/agent-plugin/hooks/operator-user-prompt.sh +14 -0
- package/dist/templates/agent-plugin/hooks/review-plan-user-prompt.sh +16 -0
- package/dist/templates/agent-plugin/hooks/review-user-prompt.sh +16 -0
- package/dist/templates/agent-plugin/hooks/test-spec-user-prompt.sh +14 -0
- package/dist/templates/orchestrator-base.md +9 -9
- package/dist/templates/orchestrator-impl.md +14 -8
- package/dist/templates/orchestrator-plugin/skills/orchestration/task-patterns.md +26 -12
- package/package.json +1 -1
- package/templates/agent-plugin/hooks/debug-user-prompt.sh +15 -0
- package/templates/agent-plugin/hooks/operator-user-prompt.sh +14 -0
- package/templates/agent-plugin/hooks/review-plan-user-prompt.sh +16 -0
- package/templates/agent-plugin/hooks/review-user-prompt.sh +16 -0
- package/templates/agent-plugin/hooks/test-spec-user-prompt.sh +14 -0
- package/templates/orchestrator-base.md +9 -9
- package/templates/orchestrator-impl.md +14 -8
- package/templates/orchestrator-plugin/skills/orchestration/task-patterns.md +26 -12
package/dist/daemon.js
CHANGED
|
@@ -1065,16 +1065,21 @@ function createAgentPlugin(cwd, sessionId, agentId, agentType, agentConfig) {
|
|
|
1065
1065
|
]
|
|
1066
1066
|
};
|
|
1067
1067
|
const normalizedType = agentType?.replace(/^sisyphus:/, "") ?? "";
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1068
|
+
const userPromptHooks = {
|
|
1069
|
+
"plan": "plan-user-prompt.sh",
|
|
1070
|
+
"spec-draft": "spec-user-prompt.sh",
|
|
1071
|
+
"review": "review-user-prompt.sh",
|
|
1072
|
+
"review-plan": "review-plan-user-prompt.sh",
|
|
1073
|
+
"debug": "debug-user-prompt.sh",
|
|
1074
|
+
"operator": "operator-user-prompt.sh",
|
|
1075
|
+
"test-spec": "test-spec-user-prompt.sh"
|
|
1076
|
+
};
|
|
1077
|
+
const hookScript = userPromptHooks[normalizedType];
|
|
1078
|
+
if (hookScript) {
|
|
1074
1079
|
hooksConfig.UserPromptSubmit = [
|
|
1075
|
-
{ hooks: [{ type: "command", command:
|
|
1080
|
+
{ hooks: [{ type: "command", command: `bash \${CLAUDE_PLUGIN_ROOT}/hooks/${hookScript}` }] }
|
|
1076
1081
|
];
|
|
1077
|
-
copyFileSync2(`${srcHooks}
|
|
1082
|
+
copyFileSync2(`${srcHooks}/${hookScript}`, `${base}/hooks/${hookScript}`);
|
|
1078
1083
|
}
|
|
1079
1084
|
writeFileSync4(`${base}/hooks/hooks.json`, JSON.stringify({ hooks: hooksConfig }, null, 2), "utf-8");
|
|
1080
1085
|
return base;
|