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
@@ -1,50 +1,50 @@
1
- {
2
- "version": 1,
3
- "skills": {
4
- "commands/start-session.md": {
5
- "hashes": [
6
- "22f4eea1f777318212118f2ffaeb8dbd81f94187bc7060707cdf58540e58ed8a",
7
- "60970d3cc8dc9edfc4cf23b7980cc142b5ab50c3c7772034bba5d98b5735e33b"
8
- ]
9
- },
10
- "commands/close-session.md": {
11
- "hashes": [
12
- "e91230277c34661c943eeb3203845559b2456604f3cd6129f8dc54246f4fce29",
13
- "b5acb8f0764eee2aee572178500837a2c0acdb5eecd8e6bca87016bb872e303f",
14
- "1d4620849c386a586d15bb6aae3cc8011829e9eb77437bb7f52945fba121fab8"
15
- ]
16
- },
17
- "skills/karpathy-guidelines/SKILL.md": {
18
- "hashes": [
19
- "6e22cc54cb02a5e98ae42d06d9d7292db0c1b43894831b32879beb0166b2aea7"
20
- ]
21
- },
22
- "skills/deploy-staging/SKILL.md": {
23
- "hashes": [
24
- "aca1c1a5871921cbc9530c13c17d963b262d2e72c67be5326ae65aa0d58847f4",
25
- "7194b1a167f43594c0d55249126a97a265009d8ff6515a0caac6d6277fc78f4a"
26
- ]
27
- },
28
- "skills/deploy-vps-openclaw/SKILL.md": {
29
- "hashes": [
30
- "1c7042b2714d04168b8d7b2afb519674242f18e7223f600b3c8f873bec640202"
31
- ]
32
- },
33
- "skills/code-brain-hook/SKILL.md": {
34
- "hashes": [
35
- "f5ceff808f8f540e612c18b8ba1c1f5c771df9f64bf1eb84832279e61b140c30",
36
- "abf685d5d6770b34297f74dec42ff657b496a087db3f767296633b5db5bfdd4f"
37
- ]
38
- },
39
- "skills/file-bug/SKILL.md": {
40
- "hashes": [
41
- "814bd58fa387c074b3fc1195b31e0e32d38402510028d4709579ec1f1ed663f1"
42
- ]
43
- },
44
- "skills/multiagent-brainstorm/SKILL.md": {
45
- "hashes": [
46
- "b3792bb7e44a5f581172d94c5b145ef6c1420e28426f796a38594250a28f1de1"
47
- ]
48
- }
49
- }
50
- }
1
+ {
2
+ "version": 1,
3
+ "skills": {
4
+ "commands/start-session.md": {
5
+ "hashes": [
6
+ "22f4eea1f777318212118f2ffaeb8dbd81f94187bc7060707cdf58540e58ed8a",
7
+ "60970d3cc8dc9edfc4cf23b7980cc142b5ab50c3c7772034bba5d98b5735e33b"
8
+ ]
9
+ },
10
+ "commands/close-session.md": {
11
+ "hashes": [
12
+ "e91230277c34661c943eeb3203845559b2456604f3cd6129f8dc54246f4fce29",
13
+ "b5acb8f0764eee2aee572178500837a2c0acdb5eecd8e6bca87016bb872e303f",
14
+ "1d4620849c386a586d15bb6aae3cc8011829e9eb77437bb7f52945fba121fab8"
15
+ ]
16
+ },
17
+ "skills/karpathy-guidelines/SKILL.md": {
18
+ "hashes": [
19
+ "6e22cc54cb02a5e98ae42d06d9d7292db0c1b43894831b32879beb0166b2aea7"
20
+ ]
21
+ },
22
+ "skills/deploy-staging/SKILL.md": {
23
+ "hashes": [
24
+ "aca1c1a5871921cbc9530c13c17d963b262d2e72c67be5326ae65aa0d58847f4",
25
+ "7194b1a167f43594c0d55249126a97a265009d8ff6515a0caac6d6277fc78f4a"
26
+ ]
27
+ },
28
+ "skills/deploy-vps-openclaw/SKILL.md": {
29
+ "hashes": [
30
+ "1c7042b2714d04168b8d7b2afb519674242f18e7223f600b3c8f873bec640202"
31
+ ]
32
+ },
33
+ "skills/code-brain-hook/SKILL.md": {
34
+ "hashes": [
35
+ "f5ceff808f8f540e612c18b8ba1c1f5c771df9f64bf1eb84832279e61b140c30",
36
+ "abf685d5d6770b34297f74dec42ff657b496a087db3f767296633b5db5bfdd4f"
37
+ ]
38
+ },
39
+ "skills/file-bug/SKILL.md": {
40
+ "hashes": [
41
+ "814bd58fa387c074b3fc1195b31e0e32d38402510028d4709579ec1f1ed663f1"
42
+ ]
43
+ },
44
+ "skills/multiagent-brainstorm/SKILL.md": {
45
+ "hashes": [
46
+ "b3792bb7e44a5f581172d94c5b145ef6c1420e28426f796a38594250a28f1de1"
47
+ ]
48
+ }
49
+ }
50
+ }
@@ -1,61 +1,61 @@
1
- ---
2
- name: code-brain-hook
3
- description: add-code-brain — opt-in awareness pattern. When the user asks a question about org-wide code or architecture and brain_org_search returns no written knowledge, call brain_code_recall to surface relevant files, symbols, and docs from indexed org repositories before answering.
4
- license: MIT
5
- ---
6
-
7
- # Code Brain Hook
8
-
9
- The server-side **code brain** clones the configured branch of every registered org repository and indexes the docs + code. The result is queryable via the `brain_code_recall` MCP tool. This skill teaches when and how to use it.
10
-
11
- **Trigger conditions** (any one is enough):
12
-
13
- - The user asks "how does X work", "where does Y live", "what's the architecture of Z", and the answer should be grounded in actual org code.
14
- - `brain_org_search` returns zero results for a code- or architecture-shaped query.
15
- - You're about to suggest an implementation pattern and want to check what already exists in the org first.
16
-
17
- **How to use:**
18
-
19
- ```
20
- brain_code_recall({
21
- query: "payment gateway architecture",
22
- k: 5,
23
- kinds: ["docs", "symbols"]
24
- })
25
- ```
26
-
27
- Returns a ranked list of `{Result: doc|symbol, RepoID, Path, Kind, TitleOrSymbol, Snippet}`. Use the `Path` to read the actual file (via `Read`) or `intel_code_definition` for deeper symbol info.
28
-
29
- **What it is NOT:**
30
-
31
- - Not a replacement for `brain_org_search` — that's still the right tool for human-written decisions, conventions, and blockers. Code brain is for code-derived facts.
32
- - Not a substitute for reading the file. The recall surfaces pointers; the agent reads the source.
33
- - Not write-capable. Read-only.
34
-
35
- **When the code brain is disabled** (operator has explicitly set `AGENTHUB_CODE_BRAIN_ENABLED=false`; default is true), `brain_code_recall` returns `{error: "code_brain_disabled"}`. Treat as a soft signal — fall back to `brain_org_search` and explicit file reads.
36
-
37
- ## Optional: UserPromptSubmit hook
38
-
39
- Operators who want automatic code-aware context can wire a UserPromptSubmit hook that calls `brain_code_recall` on every prompt and prepends top hits. Gated by `AGENTHUB_CODE_HOOK_ENABLED=true`. Off by default — the hook adds latency to every prompt.
40
-
41
- Setup (in `~/.claude/settings.json`):
42
-
43
- ```json
44
- {
45
- "hooks": {
46
- "UserPromptSubmit": [
47
- {
48
- "matcher": ".*",
49
- "hooks": [
50
- {
51
- "type": "command",
52
- "command": "agenthub-code-brain-prepend"
53
- }
54
- ]
55
- }
56
- ]
57
- }
58
- }
59
- ```
60
-
61
- The command reads the prompt from stdin, calls `brain_code_recall` via the MCP server, and writes the augmented prompt back. See `docs/brain-code-recall-mcp.md` for the full reference and example shell wrapper.
1
+ ---
2
+ name: code-brain-hook
3
+ description: add-code-brain — opt-in awareness pattern. When the user asks a question about org-wide code or architecture and brain_org_search returns no written knowledge, call brain_code_recall to surface relevant files, symbols, and docs from indexed org repositories before answering.
4
+ license: MIT
5
+ ---
6
+
7
+ # Code Brain Hook
8
+
9
+ The server-side **code brain** clones the configured branch of every registered org repository and indexes the docs + code. The result is queryable via the `brain_code_recall` MCP tool. This skill teaches when and how to use it.
10
+
11
+ **Trigger conditions** (any one is enough):
12
+
13
+ - The user asks "how does X work", "where does Y live", "what's the architecture of Z", and the answer should be grounded in actual org code.
14
+ - `brain_org_search` returns zero results for a code- or architecture-shaped query.
15
+ - You're about to suggest an implementation pattern and want to check what already exists in the org first.
16
+
17
+ **How to use:**
18
+
19
+ ```
20
+ brain_code_recall({
21
+ query: "payment gateway architecture",
22
+ k: 5,
23
+ kinds: ["docs", "symbols"]
24
+ })
25
+ ```
26
+
27
+ Returns a ranked list of `{Result: doc|symbol, RepoID, Path, Kind, TitleOrSymbol, Snippet}`. Use the `Path` to read the actual file (via `Read`) or `intel_code_definition` for deeper symbol info.
28
+
29
+ **What it is NOT:**
30
+
31
+ - Not a replacement for `brain_org_search` — that's still the right tool for human-written decisions, conventions, and blockers. Code brain is for code-derived facts.
32
+ - Not a substitute for reading the file. The recall surfaces pointers; the agent reads the source.
33
+ - Not write-capable. Read-only.
34
+
35
+ **When the code brain is disabled** (operator has explicitly set `AGENTHUB_CODE_BRAIN_ENABLED=false`; default is true), `brain_code_recall` returns `{error: "code_brain_disabled"}`. Treat as a soft signal — fall back to `brain_org_search` and explicit file reads.
36
+
37
+ ## Optional: UserPromptSubmit hook
38
+
39
+ Operators who want automatic code-aware context can wire a UserPromptSubmit hook that calls `brain_code_recall` on every prompt and prepends top hits. Gated by `AGENTHUB_CODE_HOOK_ENABLED=true`. Off by default — the hook adds latency to every prompt.
40
+
41
+ Setup (in `~/.claude/settings.json`):
42
+
43
+ ```json
44
+ {
45
+ "hooks": {
46
+ "UserPromptSubmit": [
47
+ {
48
+ "matcher": ".*",
49
+ "hooks": [
50
+ {
51
+ "type": "command",
52
+ "command": "agenthub-code-brain-prepend"
53
+ }
54
+ ]
55
+ }
56
+ ]
57
+ }
58
+ }
59
+ ```
60
+
61
+ The command reads the prompt from stdin, calls `brain_code_recall` via the MCP server, and writes the augmented prompt back. See `docs/brain-code-recall-mcp.md` for the full reference and example shell wrapper.
@@ -1,75 +1,75 @@
1
- ---
2
- name: file-bug
3
- description: File a reproducible bug as a first-class AgentHub ticket via the report_bug MCP tool. Use when you hit a defect, a failing test/CI step, or any reproducible misbehavior worth tracking — captures severity, repro steps, environment, and a defect lifecycle.
4
- license: MIT
5
- ---
6
-
7
- # File a Bug
8
-
9
- AgentHub has a first-class bug workflow (`add-bug-tracking-workflow`). A bug is a
10
- `type=bug` ticket carrying **severity**, **reproduction steps**, an
11
- **environment** tag, and a **defect lifecycle** (`bug_state`) that is separate
12
- from work `status`. Use this skill whenever you find a reproducible defect worth
13
- tracking — a failing test, a broken endpoint, a CI step that fails, or any
14
- misbehavior you can describe steps for.
15
-
16
- ## File it with `report_bug`
17
-
18
- Call the `report_bug` MCP tool. `repro_steps` is **required**; severity defaults
19
- to `sev3` if omitted.
20
-
21
- ```jsonc
22
- report_bug({
23
- "title": "login returns 500",
24
- "repro_steps": "1. POST /login with valid creds\n2. observe 500",
25
- "severity": "sev1", // optional (default sev3)
26
- "environment": "prod", // optional — e.g. "staging", "prod", "v1.12.0"
27
- "expected": "200 + session cookie", // optional → folded into description
28
- "actual": "500 Internal Server Error" // optional → folded into description
29
- })
30
- ```
31
-
32
- The tool returns the new bug's `id`/`key`. With no `story_id`/`openspec_change`
33
- the bug is auto-anchored under the project's reserved **"Bugs"** epic+story — you
34
- don't need to know the hierarchy. `report_bug` is a **reversible** internal
35
- action, so active employees (including `qa-triage`) may call it without
36
- break-glass.
37
-
38
- > Requires `agent_register` first (the project binding is read from local state).
39
- > A `400 repro_steps_required` means you left repro steps empty — always include
40
- > concrete, numbered steps.
41
-
42
- ## Write a good bug
43
-
44
- - **Title**: one line, specific. "Roadmap PDF export 500s on >50 entries", not "PDF broken".
45
- - **repro_steps**: numbered, minimal, deterministic. Someone else should be able
46
- to follow them and see the same failure.
47
- - **severity** (impact, distinct from priority):
48
-
49
- | Severity | Meaning |
50
- |----------|---------|
51
- | `sev1` | Critical — outage, data loss, security |
52
- | `sev2` | High — major feature broken, no workaround |
53
- | `sev3` | Medium — feature broken, workaround exists (default) |
54
- | `sev4` | Low — cosmetic / minor |
55
-
56
- - **environment**: where you saw it (`staging`, `prod`, a version/commit).
57
- - **expected** / **actual**: the delta, when not obvious from repro steps.
58
-
59
- ## Lifecycle (don't overthink it at filing time)
60
-
61
- Filing always starts at `bug_state=unverified`. Triage walks it forward with
62
- `update_ticket` (`bug_state=...`):
63
- `unverified → verified → in_progress → fixed → verified_fixed → closed`
64
- (`wont_fix`/`duplicate` are terminal; `reopened` revives a terminal bug to
65
- `verified`). Transitions are validated server-side — an illegal jump returns
66
- `409 invalid_bug_transition`. You usually only set `unverified` (automatic) at
67
- filing time and leave the rest to triage / the dashboard.
68
-
69
- ## Other paths (same result)
70
-
71
- - **Dashboard**: the Issues page → **Open Bugs** board has a *File a bug* form.
72
- - **HTTP**: `POST /api/projects/{projectId}/bugs` with `{title, repro_steps, severity?, environment?}`.
73
- - **Reclassify a task you already created**: `update_ticket(type="bug", severity=..., repro_steps=...)` promotes it (defaults `bug_state=unverified`).
74
-
75
- Full reference: the `bug-tracking-guide` doc.
1
+ ---
2
+ name: file-bug
3
+ description: File a reproducible bug as a first-class AgentHub ticket via the report_bug MCP tool. Use when you hit a defect, a failing test/CI step, or any reproducible misbehavior worth tracking — captures severity, repro steps, environment, and a defect lifecycle.
4
+ license: MIT
5
+ ---
6
+
7
+ # File a Bug
8
+
9
+ AgentHub has a first-class bug workflow (`add-bug-tracking-workflow`). A bug is a
10
+ `type=bug` ticket carrying **severity**, **reproduction steps**, an
11
+ **environment** tag, and a **defect lifecycle** (`bug_state`) that is separate
12
+ from work `status`. Use this skill whenever you find a reproducible defect worth
13
+ tracking — a failing test, a broken endpoint, a CI step that fails, or any
14
+ misbehavior you can describe steps for.
15
+
16
+ ## File it with `report_bug`
17
+
18
+ Call the `report_bug` MCP tool. `repro_steps` is **required**; severity defaults
19
+ to `sev3` if omitted.
20
+
21
+ ```jsonc
22
+ report_bug({
23
+ "title": "login returns 500",
24
+ "repro_steps": "1. POST /login with valid creds\n2. observe 500",
25
+ "severity": "sev1", // optional (default sev3)
26
+ "environment": "prod", // optional — e.g. "staging", "prod", "v1.12.0"
27
+ "expected": "200 + session cookie", // optional → folded into description
28
+ "actual": "500 Internal Server Error" // optional → folded into description
29
+ })
30
+ ```
31
+
32
+ The tool returns the new bug's `id`/`key`. With no `story_id`/`openspec_change`
33
+ the bug is auto-anchored under the project's reserved **"Bugs"** epic+story — you
34
+ don't need to know the hierarchy. `report_bug` is a **reversible** internal
35
+ action, so active employees (including `qa-triage`) may call it without
36
+ break-glass.
37
+
38
+ > Requires `agent_register` first (the project binding is read from local state).
39
+ > A `400 repro_steps_required` means you left repro steps empty — always include
40
+ > concrete, numbered steps.
41
+
42
+ ## Write a good bug
43
+
44
+ - **Title**: one line, specific. "Roadmap PDF export 500s on >50 entries", not "PDF broken".
45
+ - **repro_steps**: numbered, minimal, deterministic. Someone else should be able
46
+ to follow them and see the same failure.
47
+ - **severity** (impact, distinct from priority):
48
+
49
+ | Severity | Meaning |
50
+ |----------|---------|
51
+ | `sev1` | Critical — outage, data loss, security |
52
+ | `sev2` | High — major feature broken, no workaround |
53
+ | `sev3` | Medium — feature broken, workaround exists (default) |
54
+ | `sev4` | Low — cosmetic / minor |
55
+
56
+ - **environment**: where you saw it (`staging`, `prod`, a version/commit).
57
+ - **expected** / **actual**: the delta, when not obvious from repro steps.
58
+
59
+ ## Lifecycle (don't overthink it at filing time)
60
+
61
+ Filing always starts at `bug_state=unverified`. Triage walks it forward with
62
+ `update_ticket` (`bug_state=...`):
63
+ `unverified → verified → in_progress → fixed → verified_fixed → closed`
64
+ (`wont_fix`/`duplicate` are terminal; `reopened` revives a terminal bug to
65
+ `verified`). Transitions are validated server-side — an illegal jump returns
66
+ `409 invalid_bug_transition`. You usually only set `unverified` (automatic) at
67
+ filing time and leave the rest to triage / the dashboard.
68
+
69
+ ## Other paths (same result)
70
+
71
+ - **Dashboard**: the Issues page → **Open Bugs** board has a *File a bug* form.
72
+ - **HTTP**: `POST /api/projects/{projectId}/bugs` with `{title, repro_steps, severity?, environment?}`.
73
+ - **Reclassify a task you already created**: `update_ticket(type="bug", severity=..., repro_steps=...)` promotes it (defaults `bug_state=unverified`).
74
+
75
+ Full reference: the `bug-tracking-guide` doc.