@mcpbox/mcpbox-claude 0.1.17 → 0.1.18
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +3 -2
- package/README.md +42 -2
- package/bin/mcpbox-claude.mjs +11 -18
- package/commands/capture.md +3 -3
- package/commands/close.md +7 -3
- package/commands/mode.md +2 -2
- package/commands/next.md +7 -6
- package/commands/status.md +10 -9
- package/commands/trace.md +2 -2
- package/hooks/acceptance-guard.mjs +64 -0
- package/hooks/hooks.json +23 -1
- package/hooks/user-prompt-submit.mjs +5 -5
- package/lib/codex.mjs +5 -42
- package/lib/policy.mjs +96 -273
- package/lib/version.mjs +1 -1
- package/package.json +4 -1
- package/skills/mcpbox-capture/SKILL.md +15 -0
- package/skills/mcpbox-close/SKILL.md +20 -0
- package/skills/mcpbox-doctor/SKILL.md +16 -0
- package/skills/mcpbox-mine/SKILL.md +13 -0
- package/skills/mcpbox-mode/SKILL.md +34 -0
- package/skills/mcpbox-next/SKILL.md +39 -0
- package/skills/mcpbox-pipeline-run/SKILL.md +26 -0
- package/skills/mcpbox-plan/SKILL.md +26 -0
- package/skills/mcpbox-status/SKILL.md +43 -0
- package/skills/mcpbox-sync/SKILL.md +14 -0
- package/skills/mcpbox-tasks/SKILL.md +35 -0
- package/skills/mcpbox-trace/SKILL.md +23 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mcpbox-status
|
|
3
|
+
description: Show who and where you are on mcpbox — workspace, account, this repo's project — plus server and pipeline health.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The user invoked `/mcpbox:status`.
|
|
7
|
+
|
|
8
|
+
## Steps
|
|
9
|
+
|
|
10
|
+
1. `daruma_workspace_info` — one call carries most of the answer. If it fails
|
|
11
|
+
with a transport error, report "mcpbox unreachable" and how to start the
|
|
12
|
+
server; stop (do not fall back to `.omc/plans/` or markdown). No separate
|
|
13
|
+
health probe: the first real call is the probe.
|
|
14
|
+
- `workspace.slug` / `workspace.title` — the authorized workspace;
|
|
15
|
+
- `account.email` — who this MCP session is authenticated as;
|
|
16
|
+
- `scopes[]` — repo→project bindings; match the current working directory
|
|
17
|
+
against `scope` (longest matching prefix wins, since repos nest) to find
|
|
18
|
+
this repo's `project_id`.
|
|
19
|
+
- Self-hosted installs have no cloud account, so `workspace` and `account`
|
|
20
|
+
may be absent. Omit the line entirely — never print `null` or a bare UUID.
|
|
21
|
+
2. Resolve the project **title** for that `project_id` via `daruma_project_list`
|
|
22
|
+
(the `name` inside `scopes` is only the directory basename, not the project's
|
|
23
|
+
title). Skip if the cwd matches no scope.
|
|
24
|
+
3. One scoped `daruma_list status=active` → count open tasks (do not enumerate
|
|
25
|
+
the archive).
|
|
26
|
+
4. `mcpbox_runs_list` with `limit=5` (and `status=failed` if the user asked about
|
|
27
|
+
failures) → recent pipeline runs.
|
|
28
|
+
5. Render, dropping any line whose value is unknown:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
## mcpbox status
|
|
32
|
+
workspace: <title> (<slug>)
|
|
33
|
+
account: <email>
|
|
34
|
+
project: <project title> — <repo path>
|
|
35
|
+
open: <N> tasks
|
|
36
|
+
server: ok (v<version>, sha <git_sha>) — only when `/mcpbox:doctor` ran
|
|
37
|
+
runs: <run_id> <status> · <run_id> <status> …
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Identity first: "which workspace am I in, as whom, on what project" is the
|
|
41
|
+
question this command exists to answer; server health is the footnote.
|
|
42
|
+
|
|
43
|
+
6. Read-only.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mcpbox-sync
|
|
3
|
+
description: Refresh the mcpbox task/plan view for the active project from the server.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The user invoked `/mcpbox:sync`.
|
|
7
|
+
|
|
8
|
+
## Steps
|
|
9
|
+
|
|
10
|
+
1. Resolve project (`daruma_workspace_info` → `default_project`).
|
|
11
|
+
2. Re-fetch server-side: one scoped `daruma_list status=active`, and if a plan is active,
|
|
12
|
+
one `daruma_plan_get`.
|
|
13
|
+
3. Summarize what changed since the session's last view (new / closed / newly blocked),
|
|
14
|
+
in ≤5 lines. Read-only — this only refreshes context, it does not transition tasks.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mcpbox-tasks
|
|
3
|
+
description: Show open mcpbox tasks for the active project as a compact markdown table.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The user invoked `/mcpbox:tasks`.
|
|
7
|
+
|
|
8
|
+
Drive the mcpbox MCP server (do not invent IDs, do not write to `.omc/plans/`).
|
|
9
|
+
|
|
10
|
+
## Steps
|
|
11
|
+
|
|
12
|
+
1. Resolve project:
|
|
13
|
+
- `daruma_workspace_info` → use `default_project` if set.
|
|
14
|
+
- Else `daruma_project_list` → pick first. If none, say "no projects yet" and stop.
|
|
15
|
+
|
|
16
|
+
2. Fetch tasks server-side (don't filter locally):
|
|
17
|
+
- `daruma_list` with `project_id = <resolved>`, `status = ["inbox","todo","in_progress"]`, limit ~50.
|
|
18
|
+
- **Never** use `status=all` unless the user explicitly asked for the full archive; it is token-heavy.
|
|
19
|
+
|
|
20
|
+
3. Render exactly this format:
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
## <project title> — <N> open tasks
|
|
24
|
+
|
|
25
|
+
| # | Status | Pri | Title | Plan |
|
|
26
|
+
|---|--------|-----|-------|------|
|
|
27
|
+
| 1 | 🟢 in_progress | p1 | <truncated title> | <plan_short> |
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- Status emoji: 📥 inbox, ⬜ todo, 🟢 in_progress, ✅ done.
|
|
31
|
+
- Title truncated to 60 chars with `…`; `Plan` = last 8 chars of `plan_id` or `—`.
|
|
32
|
+
|
|
33
|
+
4. If >30 rows: show first 30, footer `…and <N> more — narrow with /mcpbox:mine`.
|
|
34
|
+
5. On `daruma_list` error: print it verbatim and stop.
|
|
35
|
+
6. Read-only — do not transition any task in this command.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mcpbox-trace
|
|
3
|
+
description: Trace an mcpbox pipeline run — lineage chain, per-hop status, artifacts.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The user invoked `/mcpbox:trace` with a `run_id` in `$ARGUMENTS` (or asked about recent runs).
|
|
7
|
+
|
|
8
|
+
## Steps
|
|
9
|
+
|
|
10
|
+
1. If no `run_id`: `mcpbox_runs_list { limit:5 }` (add `status:"failed"` if the user asked
|
|
11
|
+
about failures), list them, and ask which to trace (or trace the most recent).
|
|
12
|
+
2. `mcpbox_trace_get { run_id }`.
|
|
13
|
+
3. Render:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
## run <run_id> — <status>
|
|
17
|
+
torii → satori → enma → yatagarasu → fujin → daruma
|
|
18
|
+
<per-hop: layer, ok/failed, ms, lineage id>
|
|
19
|
+
handoff: <task_id or —>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
4. If `status=failed`, surface the failing layer + reason and suggest retrying that
|
|
23
|
+
hop with `mcpbox_pipeline_advance { run_id, layer }` once its input is fixed. Read-only.
|