@haposoft/cafekit 0.18.3 → 0.18.4
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/README.md +1 -1
- package/bin/__tests__/adv-skill.test.js +1 -2
- package/bin/__tests__/claude-plugin-build.test.js +2 -2
- package/bin/__tests__/codex-hook-runtime-fixture.cjs +26 -0
- package/bin/__tests__/codex-hooks-ownership.test.js +8 -11
- package/bin/__tests__/codex-hooks.test.js +49 -79
- package/bin/__tests__/codex-implicit-policy.test.js +2 -2
- package/bin/__tests__/codex-native-hook-boundaries.test.js +2 -4
- package/bin/__tests__/codex-native.test.js +125 -2294
- package/bin/__tests__/codex-quiet-hooks.test.js +2 -8
- package/bin/__tests__/codex-skill-projections.test.js +101 -0
- package/bin/__tests__/develop-contract.test.js +100 -874
- package/bin/__tests__/orca-session.test.js +2 -16
- package/bin/__tests__/package-inventory.test.js +228 -2044
- package/bin/__tests__/secret-scanner.test.js +73 -0
- package/bin/__tests__/skill-routing-source.test.js +6 -0
- package/bin/__tests__/toaa-skill.test.js +195 -0
- package/bin/__tests__/validator-grounding.test.js +0 -198
- package/bin/__tests__/vibe-skill.test.js +1 -2
- package/bin/__tests__/website-docs.test.js +58 -0
- package/bin/lib/codex-install.js +5 -3
- package/package.json +1 -1
- package/src/claude/hooks/__tests__/privacy-block.test.js +0 -26
- package/src/claude/hooks/__tests__/spec-gate.test.js +0 -47
- package/src/claude/hooks/__tests__/state.test.js +21 -0
- package/src/claude/hooks/state.cjs +22 -0
- package/src/claude/migration-manifest.json +1 -0
- package/src/claude/scripts/scan-staged-secrets.cjs +49 -3
- package/src/claude/skills/develop/SKILL.md +6 -0
- package/src/claude/skills/sync/SKILL.md +4 -0
- package/src/claude/skills/toaa/SKILL.md +82 -0
- package/src/claude/skills/toaa/references/autonomous-orchestration.md +54 -0
- package/src/claude/skills/toaa/references/prerequisites-checklist.md +37 -0
- package/src/codex/hooks/lib/hook-context.cjs +1 -0
- package/src/codex/hooks/lib/state-store.cjs +27 -3
- package/bin/__tests__/codex-research-projection.test.js +0 -70
- package/bin/__tests__/codex-specs-projection.test.js +0 -76
- package/bin/__tests__/specs-v2-execution-closeout.test.js +0 -58
- package/src/claude/skills/chrome-devtools/scripts/__tests__/error-handling.test.js +0 -102
|
@@ -15,6 +15,7 @@ const os = require('node:os');
|
|
|
15
15
|
const path = require('node:path');
|
|
16
16
|
const { spawnSync } = require('node:child_process');
|
|
17
17
|
const { test } = require('node:test');
|
|
18
|
+
const { installCodexHookRuntime } = require('./codex-hook-runtime-fixture.cjs');
|
|
18
19
|
|
|
19
20
|
const PACKAGE_ROOT = path.join(__dirname, '..', '..');
|
|
20
21
|
const CLAUDE_HOOK = path.join(PACKAGE_ROOT, 'src/claude/hooks/session.cjs');
|
|
@@ -142,22 +143,7 @@ test('no token ever reaches stdout, stderr, or the Claude env file', () => {
|
|
|
142
143
|
// ---------------------------------------------------------------------------------------
|
|
143
144
|
|
|
144
145
|
function composeCodexHookTree(root) {
|
|
145
|
-
const hooksDir =
|
|
146
|
-
fs.mkdirSync(path.join(hooksDir, 'lib'), { recursive: true });
|
|
147
|
-
fs.copyFileSync(path.join(PACKAGE_ROOT, 'src/codex/hooks/session.cjs'), path.join(hooksDir, 'session.cjs'));
|
|
148
|
-
fs.copyFileSync(path.join(PACKAGE_ROOT, 'src/codex/hooks/lib/hook-context.cjs'),
|
|
149
|
-
path.join(hooksDir, 'lib', 'hook-context.cjs'));
|
|
150
|
-
fs.copyFileSync(path.join(PACKAGE_ROOT, 'src/codex/hooks/lib/privacy-state.cjs'),
|
|
151
|
-
path.join(hooksDir, 'lib', 'privacy-state.cjs'));
|
|
152
|
-
fs.copyFileSync(path.join(PACKAGE_ROOT, 'src/codex/hooks/lib/rules-reservation.cjs'),
|
|
153
|
-
path.join(hooksDir, 'lib', 'rules-reservation.cjs'));
|
|
154
|
-
fs.copyFileSync(path.join(PACKAGE_ROOT, 'src/claude/hooks/lib/update-check.cjs'),
|
|
155
|
-
path.join(hooksDir, 'lib', 'update-check.cjs'));
|
|
156
|
-
fs.copyFileSync(path.join(PACKAGE_ROOT, 'src/claude/hooks/lib/runtime-path-safety.cjs'),
|
|
157
|
-
path.join(hooksDir, 'lib', 'runtime-path-safety.cjs'));
|
|
158
|
-
for (const name of ['privacy-paths.cjs', 'privacy-command-analysis.cjs']) {
|
|
159
|
-
fs.copyFileSync(path.join(PACKAGE_ROOT, 'src/claude/hooks/lib', name), path.join(hooksDir, 'lib', name));
|
|
160
|
-
}
|
|
146
|
+
const hooksDir = installCodexHookRuntime(root);
|
|
161
147
|
return path.join(hooksDir, 'session.cjs');
|
|
162
148
|
}
|
|
163
149
|
|