@hasna/hooks 0.12.7 → 0.12.8
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/bin/hooks-mcp.js +973 -605
- package/bin/index.js +1244 -891
- package/bin/native-safety-worker.cjs +1 -1
- package/dist/index.js +1165 -797
- package/dist/lib/claude-skills-coordination.d.ts +1 -1
- package/dist/lib/codex-safety-check.d.ts +1 -1
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ export declare class ClaudeSettingsRefusal extends Error {
|
|
|
13
13
|
* as any file type. A lookup error other than ENOENT/ENOTDIR counts as present.
|
|
14
14
|
* Returns the evidence found; an empty list means Skills is genuinely absent. */
|
|
15
15
|
export declare function claudeSkillsUsage(before: string | null, home: string): string[];
|
|
16
|
-
/** Every location the bundled Skills package (@hasna/skills 0.10.
|
|
16
|
+
/** Every location the bundled Skills package (@hasna/skills 0.10.53, `getDataRoot`)
|
|
17
17
|
* considers for `agent-policy.json`, in its resolution order, with the outcome
|
|
18
18
|
* at each. Only called after Skills found no policy at the selected location. */
|
|
19
19
|
export declare function skillsPolicyLocations(dataDir?: string): string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { verifyNativeSafetyCommand } from "../native-safety.js";
|
|
2
2
|
/** Exact `codex --version` outputs whose app-server protocol was measured
|
|
3
3
|
* against the real native binary. Anything else refuses as native_unsupported. */
|
|
4
|
-
export declare const SUPPORTED_CODEX_SAFETY_VERSIONS: readonly ["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"];
|
|
4
|
+
export declare const SUPPORTED_CODEX_SAFETY_VERSIONS: readonly ["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"];
|
|
5
5
|
export type CodexSafetyCode = "native_unavailable" | "native_unsafe_executable" | "native_executable_required" | "native_unsupported" | "native_failed" | "native_discovery_failed" | "hooks_disabled" | "guard_missing" | "guard_ambiguous" | "guard_definition_invalid" | "guard_disabled" | "guard_untrusted" | "guard_changed" | "guard_failed";
|
|
6
6
|
export declare class CodexSafetyError extends Error {
|
|
7
7
|
readonly code: CodexSafetyCode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/hooks",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
4
4
|
"description": "Open source hooks library for AI coding agents - Install safety, quality, and automation hooks with a single command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@hasna/contracts": "~1.2.1"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@hasna/skills": "0.10.
|
|
73
|
+
"@hasna/skills": "0.10.53",
|
|
74
74
|
"@hasna/events": "^0.1.16",
|
|
75
75
|
"@hasna/secrets": "0.4.2",
|
|
76
76
|
"@modelcontextprotocol/sdk": "^1.26.0",
|