agenthub-multiagent-mcp 1.53.0 → 1.55.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.
Files changed (33) hide show
  1. package/README.md +192 -192
  2. package/dist/channel.js +3 -3
  3. package/dist/hooks/periodicReminder.js +9 -9
  4. package/dist/inboxHookCli.d.ts +15 -1
  5. package/dist/inboxHookCli.d.ts.map +1 -1
  6. package/dist/inboxHookCli.js +56 -17
  7. package/dist/inboxHookCli.js.map +1 -1
  8. package/dist/inboxHookCli.test.d.ts +2 -0
  9. package/dist/inboxHookCli.test.d.ts.map +1 -0
  10. package/dist/inboxHookCli.test.js +49 -0
  11. package/dist/inboxHookCli.test.js.map +1 -0
  12. package/dist/setup.js +56 -56
  13. package/dist/streamingRuntimeLib.d.ts +45 -2
  14. package/dist/streamingRuntimeLib.d.ts.map +1 -1
  15. package/dist/streamingRuntimeLib.js +30 -4
  16. package/dist/streamingRuntimeLib.js.map +1 -1
  17. package/dist/streamingRuntimeLib.test.js +10 -1
  18. package/dist/streamingRuntimeLib.test.js.map +1 -1
  19. package/dist/tools/index.js +10 -10
  20. package/dist/tools/openspec-viz/diagram-generator.js +54 -54
  21. package/dist/tools/openspec-viz/html-generator.js +503 -503
  22. package/dist/worker.js +10 -10
  23. package/native/agenthub-memvid/agenthub-memvid.linux-x64-gnu.node +0 -0
  24. package/native/agenthub-memvid/agenthub-memvid.win32-x64-msvc.node +0 -0
  25. package/native/agenthub-memvid/index.d.ts +58 -58
  26. package/native/agenthub-memvid/index.js +319 -319
  27. package/package.json +77 -77
  28. package/skills/catalog.json +76 -76
  29. package/skills/commands/close-session.md +144 -144
  30. package/skills/manifest.json +50 -50
  31. package/skills/skills/code-brain-hook/SKILL.md +61 -61
  32. package/skills/skills/file-bug/SKILL.md +75 -75
  33. package/skills/skills/multiagent-brainstorm/SKILL.md +142 -142
package/dist/worker.js CHANGED
@@ -229,16 +229,16 @@ function ensureCaptureSettingsFile() {
229
229
  // If hook not found, create a minimal inline version
230
230
  if (!hookPath) {
231
231
  hookPath = path.join(os.tmpdir(), `agenthub-capture-${process.pid}.sh`).replace(/\\/g, "/");
232
- fs.writeFileSync(hookPath, `#!/bin/bash
233
- INPUT=$(cat)
234
- [ -z "$AGENTHUB_SESSION_ID" ] && exit 0
235
- [ -z "$AGENTHUB_API_KEY" ] && exit 0
236
- TOOL=$(echo "$INPUT" | python -c "import sys,json; d=json.load(sys.stdin); print(d.get('tool_name',''))" 2>/dev/null)
237
- [ -z "$TOOL" ] && exit 0
238
- curl -s --max-time 2 -X POST -H "Content-Type: application/json" -H "X-API-Key: $AGENTHUB_API_KEY" \\
239
- -d "{\\"events\\":[{\\"event_type\\":\\"tool_call\\",\\"payload\\":\\"{\\\\\\"tool_name\\\\\\":\\\\\\"$TOOL\\\\\\"}\\",\\"token_count\\":0}]}" \\
240
- "\${AGENTHUB_URL:-https://agenthub.contetial.com}/api/sessions/$AGENTHUB_SESSION_ID/events" >/dev/null 2>&1 &
241
- exit 0
232
+ fs.writeFileSync(hookPath, `#!/bin/bash
233
+ INPUT=$(cat)
234
+ [ -z "$AGENTHUB_SESSION_ID" ] && exit 0
235
+ [ -z "$AGENTHUB_API_KEY" ] && exit 0
236
+ TOOL=$(echo "$INPUT" | python -c "import sys,json; d=json.load(sys.stdin); print(d.get('tool_name',''))" 2>/dev/null)
237
+ [ -z "$TOOL" ] && exit 0
238
+ curl -s --max-time 2 -X POST -H "Content-Type: application/json" -H "X-API-Key: $AGENTHUB_API_KEY" \\
239
+ -d "{\\"events\\":[{\\"event_type\\":\\"tool_call\\",\\"payload\\":\\"{\\\\\\"tool_name\\\\\\":\\\\\\"$TOOL\\\\\\"}\\",\\"token_count\\":0}]}" \\
240
+ "\${AGENTHUB_URL:-https://agenthub.contetial.com}/api/sessions/$AGENTHUB_SESSION_ID/events" >/dev/null 2>&1 &
241
+ exit 0
242
242
  `, { mode: 0o755 });
243
243
  }
244
244
  // Create settings file pointing to the capture hook
@@ -1,58 +1,58 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
-
4
- /* auto-generated by NAPI-RS */
5
-
6
- /**
7
- * One lexical search hit. `text` carries the full stored body (including the
8
- * `key: <JSON>` metadata tail that `memvidBrain.ts` parses); `snippet` is a
9
- * leading excerpt.
10
- */
11
- export interface SearchHitJs {
12
- title?: string
13
- text: string
14
- snippet: string
15
- score: number
16
- }
17
- /**
18
- * Number of frames (sessions) in the brain file. Returns 0 if the file does
19
- * not exist yet.
20
- */
21
- export declare function frameCount(path: string): number
22
- /**
23
- * Append one session and return the new frame count (which equals the session
24
- * number of the just-appended frame). Creates the file if absent.
25
- *
26
- * `search_text` is the full lexically-indexed body (title/content/metadata are
27
- * assembled in TypeScript); `title` and `label` are stored on the frame.
28
- */
29
- export declare function appendSession(path: string, title: string, label: string, searchText: string): number
30
- /**
31
- * Diagnostic: report frame structure of a `.mv2` (used to validate migration
32
- * fidelity). `top_level` = frames with no parent (sessions); `children` =
33
- * chunk/child frames whose text lives in a parent.
34
- */
35
- export interface StructureJs {
36
- frameCount: number
37
- topLevel: number
38
- children: number
39
- titled: number
40
- }
41
- export declare function debugStructure(path: string): StructureJs
42
- /**
43
- * Migrate a `.mv2` file into a fresh addon-owned file at `dst`, re-indexing
44
- * every frame from its stored title/body. Used to heal legacy files written by
45
- * a stock `@memvid/sdk` whose tantivy segments this addon can read but cannot
46
- * extend on write (cross-version). `dst` is overwritten if present. Returns the
47
- * number of frames migrated.
48
- *
49
- * Every migrated frame is stamped with `label` (the sanitized agent id); the
50
- * original title and searchable body are preserved verbatim, so search/recall
51
- * over the migrated file are identical to the source.
52
- */
53
- export declare function migrate(src: string, dst: string, label: string): number
54
- /**
55
- * Lexical (BM25) search. Returns up to `k` hits, or an empty list if the file
56
- * does not exist.
57
- */
58
- export declare function searchLex(path: string, query: string, k: number): Array<SearchHitJs>
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ /* auto-generated by NAPI-RS */
5
+
6
+ /**
7
+ * One lexical search hit. `text` carries the full stored body (including the
8
+ * `key: <JSON>` metadata tail that `memvidBrain.ts` parses); `snippet` is a
9
+ * leading excerpt.
10
+ */
11
+ export interface SearchHitJs {
12
+ title?: string
13
+ text: string
14
+ snippet: string
15
+ score: number
16
+ }
17
+ /**
18
+ * Number of frames (sessions) in the brain file. Returns 0 if the file does
19
+ * not exist yet.
20
+ */
21
+ export declare function frameCount(path: string): number
22
+ /**
23
+ * Append one session and return the new frame count (which equals the session
24
+ * number of the just-appended frame). Creates the file if absent.
25
+ *
26
+ * `search_text` is the full lexically-indexed body (title/content/metadata are
27
+ * assembled in TypeScript); `title` and `label` are stored on the frame.
28
+ */
29
+ export declare function appendSession(path: string, title: string, label: string, searchText: string): number
30
+ /**
31
+ * Diagnostic: report frame structure of a `.mv2` (used to validate migration
32
+ * fidelity). `top_level` = frames with no parent (sessions); `children` =
33
+ * chunk/child frames whose text lives in a parent.
34
+ */
35
+ export interface StructureJs {
36
+ frameCount: number
37
+ topLevel: number
38
+ children: number
39
+ titled: number
40
+ }
41
+ export declare function debugStructure(path: string): StructureJs
42
+ /**
43
+ * Migrate a `.mv2` file into a fresh addon-owned file at `dst`, re-indexing
44
+ * every frame from its stored title/body. Used to heal legacy files written by
45
+ * a stock `@memvid/sdk` whose tantivy segments this addon can read but cannot
46
+ * extend on write (cross-version). `dst` is overwritten if present. Returns the
47
+ * number of frames migrated.
48
+ *
49
+ * Every migrated frame is stamped with `label` (the sanitized agent id); the
50
+ * original title and searchable body are preserved verbatim, so search/recall
51
+ * over the migrated file are identical to the source.
52
+ */
53
+ export declare function migrate(src: string, dst: string, label: string): number
54
+ /**
55
+ * Lexical (BM25) search. Returns up to `k` hits, or an empty list if the file
56
+ * does not exist.
57
+ */
58
+ export declare function searchLex(path: string, query: string, k: number): Array<SearchHitJs>