@hasna/hooks 0.6.6 → 0.7.0
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 +1024 -461
- package/bin/serve.js +626 -158
- package/dist/config.d.ts +7 -5
- package/dist/db/pg-migrations.d.ts +1 -1
- package/dist/index.js +898 -340
- package/dist/lib/hook-env.d.ts +60 -4
- package/dist/lib/manifest.d.ts +11 -0
- package/dist/lib/semver.d.ts +27 -0
- package/dist/openapi.d.ts +216 -0
- package/dist/storage.js +34 -34
- package/hooks/codewith-native-common.test.ts +25 -25
- package/hooks/codewith-native-common.ts +1 -1
- package/hooks/hook-autoformat/package.json +1 -1
- package/hooks/hook-desktopnotify/package.json +1 -1
- package/hooks/hook-envsetup/package.json +1 -1
- package/hooks/hook-knowledge-context/README.md +1 -1
- package/hooks/hook-knowledge-context/src/hook.test.ts +1 -1
- package/hooks/hook-permissionguard/package.json +1 -1
- package/hooks/hook-protectfiles/package.json +1 -1
- package/hooks/hook-spiral-detector/LICENSE +191 -0
- package/hooks/hook-spiral-detector/README.md +23 -0
- package/hooks/hook-spiral-detector/package.json +12 -0
- package/hooks/hook-spiral-detector/src/hook.test.ts +72 -0
- package/hooks/hook-spiral-detector/src/hook.ts +93 -0
- package/hooks/hook-workspace-repos-guard/README.md +4 -3
- package/hooks/hook-workspace-repos-guard/src/hook.test.ts +7 -7
- package/hooks/hook-workspace-repos-guard/src/hook.ts +5 -3
- package/hooks/mention-context/src/hasna-mention-context.py +2 -2
- package/hooks/mention-context/src/hasna-mention-warm.py +1 -1
- package/hooks/pre-bash/README.md +1 -1
- package/hooks/prompt-guard/README.md +1 -1
- package/hooks/session-start/README.md +1 -1
- package/hooks/stop-sync/README.md +1 -1
- package/hooks/worktree-guard/README.md +1 -1
- package/package.json +10 -6
package/dist/config.d.ts
CHANGED
|
@@ -16,10 +16,12 @@ export declare function readConfig(): HooksConfig;
|
|
|
16
16
|
export declare function writeConfig(config: HooksConfig): string;
|
|
17
17
|
export declare function resolveApiUrl(): string | undefined;
|
|
18
18
|
/**
|
|
19
|
-
* P1-8: the registry API key resolves
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* is
|
|
19
|
+
* P1-8: the registry API key resolves through the shared client seam, never
|
|
20
|
+
* by hand — its chain (deliberate override, profile, disk, then the legacy
|
|
21
|
+
* HASNA_HOOKS_API_KEY / HOOKS_API_KEY env variables) is the single path that
|
|
22
|
+
* receives credential-resolution fixes. A secret-valued CLI flag stays
|
|
23
|
+
* removed (a flag value is visible in process listings and shell history);
|
|
24
|
+
* the vault-key-NAME reference (config api_key_ref) is a name, not a value,
|
|
25
|
+
* and is untouched.
|
|
24
26
|
*/
|
|
25
27
|
export declare function resolveApiKey(): string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* PostgreSQL migrations for the
|
|
2
|
+
* PostgreSQL migrations for the hooks PostgreSQL storage backend and sync.
|
|
3
3
|
*
|
|
4
4
|
* Equivalent to the SQLite schema in schema.ts, migrations/, and index.ts,
|
|
5
5
|
* translated for PostgreSQL.
|