@hasna/hook-knowledge-context 0.1.0 → 0.1.1

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 CHANGED
@@ -39,7 +39,7 @@ bad stdin, or empty packs return `{"continue":true}` without context.
39
39
  ```bash
40
40
  export HOOKS_KNOWLEDGE_CONTEXT_DISABLE=1 # Kill switch
41
41
  export HOOKS_KNOWLEDGE_COMMAND=knowledge # CLI command/path
42
- export HOOKS_KNOWLEDGE_TIMEOUT_MS=1500 # Per-call timeout
42
+ export HOOKS_KNOWLEDGE_TIMEOUT_MS=5000 # Per-call timeout
43
43
  export HOOKS_KNOWLEDGE_MAX_ITEMS=6 # Context pack item budget
44
44
  export HOOKS_KNOWLEDGE_MAX_TOKENS=1200 # Context pack token budget
45
45
  export HOOKS_KNOWLEDGE_MAX_QUERY_CHARS=1200 # Redacted query bound
package/dist/hook.js CHANGED
@@ -4,7 +4,7 @@
4
4
  // src/hook.ts
5
5
  import { readFileSync } from "fs";
6
6
  import { spawn } from "child_process";
7
- var DEFAULT_TIMEOUT_MS = 1500;
7
+ var DEFAULT_TIMEOUT_MS = 5000;
8
8
  var DEFAULT_MAX_ITEMS = 6;
9
9
  var DEFAULT_MAX_TOKENS = 1200;
10
10
  var DEFAULT_MAX_QUERY_CHARS = 1200;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/hook-knowledge-context",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Codewith hook that injects deterministic Knowledge context packs into lifecycle events",
5
5
  "type": "module",
6
6
  "main": "./dist/hook.js",