sisyphi 1.2.18 → 1.2.19
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/cli.js +165 -158
- package/dist/cli.js.map +1 -1
- package/dist/daemon.js +32 -0
- package/dist/daemon.js.map +1 -1
- package/dist/templates/agent-plugin/agents/review/CLAUDE.md +0 -1
- package/dist/templates/agent-suffix.md +9 -1
- package/dist/templates/orchestrator-base.md +13 -0
- package/dist/templates/orchestrator-plugin/hooks/goal-length-guard.sh +60 -0
- package/dist/templates/orchestrator-plugin/hooks/goal-read-advisory.sh +54 -0
- package/dist/templates/orchestrator-plugin/hooks/hooks.json +20 -0
- package/package.json +1 -1
- package/templates/agent-plugin/agents/review/CLAUDE.md +0 -1
- package/templates/agent-suffix.md +9 -1
- package/templates/orchestrator-base.md +13 -0
- package/templates/orchestrator-plugin/hooks/goal-length-guard.sh +60 -0
- package/templates/orchestrator-plugin/hooks/goal-read-advisory.sh +54 -0
- package/templates/orchestrator-plugin/hooks/hooks.json +20 -0
package/dist/daemon.js
CHANGED
|
@@ -1058,6 +1058,31 @@ var init_spawn_helpers = __esm({
|
|
|
1058
1058
|
}
|
|
1059
1059
|
});
|
|
1060
1060
|
|
|
1061
|
+
// src/cli/help-rubric.ts
|
|
1062
|
+
var ROOT_AFTER_HELP;
|
|
1063
|
+
var init_help_rubric = __esm({
|
|
1064
|
+
"src/cli/help-rubric.ts"() {
|
|
1065
|
+
"use strict";
|
|
1066
|
+
ROOT_AFTER_HELP = `
|
|
1067
|
+
I/O contract: flags and positional args on input, JSON on stdout (JSONL for streams).
|
|
1068
|
+
|
|
1069
|
+
Exit codes:
|
|
1070
|
+
0 success
|
|
1071
|
+
1 permanent error (fallback)
|
|
1072
|
+
2 usage error (bad args/shape)
|
|
1073
|
+
3 not found
|
|
1074
|
+
4 ambiguous (multiple matches \u2014 see error.candidates)
|
|
1075
|
+
5 conflict (already-exists, wrong-state)
|
|
1076
|
+
60 transient (retry-safe: daemon down, timeout, lock contention)
|
|
1077
|
+
|
|
1078
|
+
Errors:
|
|
1079
|
+
{"ok": false,
|
|
1080
|
+
"error": {"code": "<stable-enum>", "kind": "<usage|not_found|ambiguous|conflict|transient|permanent>",
|
|
1081
|
+
"message": "...", "received"?: ..., "expected"?: ..., "next"?: "...", "candidates"?: [...]}}
|
|
1082
|
+
`;
|
|
1083
|
+
}
|
|
1084
|
+
});
|
|
1085
|
+
|
|
1061
1086
|
// src/daemon/help-inject.ts
|
|
1062
1087
|
import { execSync } from "child_process";
|
|
1063
1088
|
function injectHelp(text) {
|
|
@@ -1078,6 +1103,12 @@ function injectHelp(text) {
|
|
|
1078
1103
|
};
|
|
1079
1104
|
return text.replace(/\{\{HELP:([^}]+)\}\}/g, (_m, cmd) => {
|
|
1080
1105
|
const c = cmd.trim();
|
|
1106
|
+
if (c === ".") {
|
|
1107
|
+
const root = renderHelp("").replace(ROOT_AFTER_HELP.trim(), "").trimEnd();
|
|
1108
|
+
return `<cli-guide bash="sis -h">
|
|
1109
|
+
${root}
|
|
1110
|
+
</cli-guide>`;
|
|
1111
|
+
}
|
|
1081
1112
|
return `<cli-guide bash="sis ${c} -h">
|
|
1082
1113
|
${renderHelp(c)}
|
|
1083
1114
|
</cli-guide>`;
|
|
@@ -1087,6 +1118,7 @@ var init_help_inject = __esm({
|
|
|
1087
1118
|
"src/daemon/help-inject.ts"() {
|
|
1088
1119
|
"use strict";
|
|
1089
1120
|
init_spawn_helpers();
|
|
1121
|
+
init_help_rubric();
|
|
1090
1122
|
}
|
|
1091
1123
|
});
|
|
1092
1124
|
|