cclaw-cli 0.48.7 → 0.48.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/content/hooks.d.ts +1 -0
- package/dist/content/hooks.js +1 -0
- package/dist/content/node-hooks.d.ts +14 -0
- package/dist/content/node-hooks.js +1607 -0
- package/dist/content/observe.js +2 -2
- package/dist/content/opencode-plugin.js +5 -5
- package/dist/doctor.js +1 -1
- package/dist/install.js +13 -3
- package/dist/internal/advance-stage.js +53 -2
- package/package.json +1 -1
package/dist/content/hooks.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export declare function preCompactScript(): string;
|
|
|
18
18
|
export { claudeHooksJsonWithObservation as claudeHooksJson } from "./observe.js";
|
|
19
19
|
export { cursorHooksJsonWithObservation as cursorHooksJson } from "./observe.js";
|
|
20
20
|
export { codexHooksJsonWithObservation as codexHooksJson } from "./observe.js";
|
|
21
|
+
export { nodeHookRuntimeScript } from "./node-hooks.js";
|
|
21
22
|
export { opencodePluginJs } from "./opencode-plugin.js";
|
package/dist/content/hooks.js
CHANGED
|
@@ -1228,6 +1228,7 @@ exit 0
|
|
|
1228
1228
|
export { claudeHooksJsonWithObservation as claudeHooksJson } from "./observe.js";
|
|
1229
1229
|
export { cursorHooksJsonWithObservation as cursorHooksJson } from "./observe.js";
|
|
1230
1230
|
export { codexHooksJsonWithObservation as codexHooksJson } from "./observe.js";
|
|
1231
|
+
export { nodeHookRuntimeScript } from "./node-hooks.js";
|
|
1231
1232
|
// ---------------------------------------------------------------------------
|
|
1232
1233
|
// OpenCode plugin — JS module
|
|
1233
1234
|
// ---------------------------------------------------------------------------
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface NodeHookRuntimeOptions {
|
|
2
|
+
promptGuardMode?: "advisory" | "strict";
|
|
3
|
+
workflowGuardMode?: "advisory" | "strict";
|
|
4
|
+
tddEnforcementMode?: "advisory" | "strict";
|
|
5
|
+
tddTestPathPatterns?: string[];
|
|
6
|
+
tddProductionPathPatterns?: string[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Node-only hook runtime (single entrypoint).
|
|
10
|
+
*
|
|
11
|
+
* Generated into `.cclaw/hooks/run-hook.mjs` and used by all harnesses to avoid
|
|
12
|
+
* bash/python/jq runtime dependencies.
|
|
13
|
+
*/
|
|
14
|
+
export declare function nodeHookRuntimeScript(options?: NodeHookRuntimeOptions): string;
|