@hasna/hooks 0.12.16 → 0.12.18
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/index.js +1 -1
- package/bin/native-safety-entry.js +34 -27
- package/bin/native-safety-worker.cjs +34 -27
- package/dist/index.js +1 -1
- package/dist/lib/codex-safety-check.d.ts +1 -1
- package/hooks/hook-trash-guard/src/hook.ts +15 -11
- package/hooks/hook-workspace-repos-guard/src/hook.ts +91 -13
- package/hooks/local-executors.ts +242 -95
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -391,7 +391,7 @@ Codex is installed through npm, pass the platform package's native binary rather
|
|
|
391
391
|
than its JavaScript launcher. Executable ownership, permissions, ancestry and
|
|
392
392
|
bytes are checked. Supported protocol versions are 0.153.0, 0.154.0,
|
|
393
393
|
0.154.0-alpha.6.1, 0.155.0, 0.155.1, 0.156.1, 0.157.0, 0.157.1, 0.158.0, 0.159.0, 0.159.2,
|
|
394
|
-
0.159.3, 0.160.0 and 0.
|
|
394
|
+
0.159.3, 0.160.0, 0.160.1, 0.161.0, 0.162.0 and 0.162.1;
|
|
395
395
|
other versions refuse pending compatibility validation. Updating Codex can
|
|
396
396
|
therefore require a compatible Hooks release before native safety verification
|
|
397
397
|
and trust provisioning succeed. Keep existing hook definitions and trust intact
|
package/bin/index.js
CHANGED
|
@@ -39282,7 +39282,7 @@ var init_codex_safety_check = __esm(() => {
|
|
|
39282
39282
|
init_native_child_env();
|
|
39283
39283
|
init_native_safety2();
|
|
39284
39284
|
init_native_readiness();
|
|
39285
|
-
SUPPORTED_CODEX_SAFETY_VERSIONS = ["codex-cli 0.153.0", "codex-cli 0.154.0", "codex-cli 0.154.0-alpha.6.1", "codex-cli 0.155.0", "codex-cli 0.155.1", "codex-cli 0.156.1", "codex-cli 0.157.0", "codex-cli 0.157.1", "codex-cli 0.158.0", "codex-cli 0.159.0", "codex-cli 0.159.2", "codex-cli 0.159.3", "codex-cli 0.160.0", "codex-cli 0.160.1", "codex-cli 0.161.0", "codex-cli 0.162.0"];
|
|
39285
|
+
SUPPORTED_CODEX_SAFETY_VERSIONS = ["codex-cli 0.153.0", "codex-cli 0.154.0", "codex-cli 0.154.0-alpha.6.1", "codex-cli 0.155.0", "codex-cli 0.155.1", "codex-cli 0.156.1", "codex-cli 0.157.0", "codex-cli 0.157.1", "codex-cli 0.158.0", "codex-cli 0.159.0", "codex-cli 0.159.2", "codex-cli 0.159.3", "codex-cli 0.160.0", "codex-cli 0.160.1", "codex-cli 0.161.0", "codex-cli 0.162.0", "codex-cli 0.162.1"];
|
|
39286
39286
|
versions = new Set(SUPPORTED_CODEX_SAFETY_VERSIONS);
|
|
39287
39287
|
CodexSafetyError = class CodexSafetyError extends Error {
|
|
39288
39288
|
code;
|