@mcpbox/mcpbox-claude 0.1.22 → 0.1.24
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 +1 -1
- package/commands/mine.md +1 -1
- package/commands/plan.md +1 -1
- package/commands/tasks.md +1 -1
- package/hooks/session-start.mjs +1 -1
- package/hooks/user-prompt-submit.mjs +15 -1
- package/lib/policy.mjs +15 -5
- package/lib/update-check.mjs +7 -1
- package/lib/version.mjs +1 -1
- package/package.json +2 -1
- package/skills/mcpbox-mine/SKILL.md +1 -1
- package/skills/mcpbox-plan/SKILL.md +1 -1
- package/skills/mcpbox-tasks/SKILL.md +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcpbox-claude",
|
|
3
3
|
"description": "MCPBox for Claude Code: the mcpbox task tracker and idea pipeline over one MCP server. Ships /mcpbox:* commands, session hooks, and a managed CLAUDE.md policy that makes mcpbox the default tracker.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.24",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tupical"
|
|
7
7
|
},
|
package/commands/mine.md
CHANGED
|
@@ -7,6 +7,6 @@ The user invoked `/mcpbox:mine`.
|
|
|
7
7
|
## Steps
|
|
8
8
|
|
|
9
9
|
1. Resolve project (`daruma_workspace_info` → `default_project`).
|
|
10
|
-
2. `daruma_list
|
|
10
|
+
2. `daruma_list project_id=<resolved> status="in_progress,in_review" limit=30`.
|
|
11
11
|
3. Render the same compact table as `/mcpbox:tasks`, titled `## In progress — <N>`.
|
|
12
12
|
4. If empty: "nothing claimed — `/mcpbox:next` to claim the next ready task." Read-only.
|
package/commands/plan.md
CHANGED
|
@@ -7,7 +7,7 @@ The user invoked `/mcpbox:plan`.
|
|
|
7
7
|
## Steps
|
|
8
8
|
|
|
9
9
|
1. Resolve project (`daruma_workspace_info` → `default_project`).
|
|
10
|
-
2. `daruma_plan_list
|
|
10
|
+
2. `daruma_plan_list status="draft,active"`, most recent first.
|
|
11
11
|
If none, stop with "no active plan".
|
|
12
12
|
3. For the chosen plan, `daruma_plan_get` (single call — do not enumerate the archive).
|
|
13
13
|
4. Render:
|
package/commands/tasks.md
CHANGED
|
@@ -13,7 +13,7 @@ Drive the mcpbox MCP server (do not invent IDs, do not write local plan files).
|
|
|
13
13
|
- Else `daruma_project_list` → pick first. If none, say "no projects yet" and stop.
|
|
14
14
|
|
|
15
15
|
2. Fetch tasks server-side (don't filter locally):
|
|
16
|
-
- `daruma_list
|
|
16
|
+
- `daruma_list project_id=<resolved> status=active limit=50`.
|
|
17
17
|
- **Never** use `status=all` unless the user explicitly asked for the full archive; it is token-heavy.
|
|
18
18
|
|
|
19
19
|
3. Render exactly this format:
|
package/hooks/session-start.mjs
CHANGED
|
@@ -76,7 +76,7 @@ async function fetchSummary() {
|
|
|
76
76
|
} catch { /* no workspace info — continue without project filter */ }
|
|
77
77
|
|
|
78
78
|
const listArgs = {
|
|
79
|
-
status:
|
|
79
|
+
status: "active",
|
|
80
80
|
limit: MAX_TASKS + 1,
|
|
81
81
|
};
|
|
82
82
|
if (projectId) listArgs.project_id = projectId;
|
|
@@ -41,7 +41,13 @@ const PATTERNS = [
|
|
|
41
41
|
{
|
|
42
42
|
// create / import — ACTION + task/issue OBJECT (avoids bare-verb false positives).
|
|
43
43
|
re: /\b(add|create|new|log|move|import)\s+(a\s+|an\s+)?(task|issue|ticket|subtask)\b|(?<![а-яёА-ЯЁ])(добавь|добавить|заведи|завести|создай|создать)\s+(задачу|таск|подзадачу|тикет)(?![а-яёА-ЯЁ])|(?<![а-яёА-ЯЁ])(перенеси|перенести|импортируй|заведи)\s+(ишью|задачу|таск|тикет|issue)(?![а-яёА-ЯЁ])/,
|
|
44
|
-
hint: "[mcpbox] Detected task-intake/import intent → daruma_plan_materialize (tasks are created only with a plan; external issue
|
|
44
|
+
hint: "[mcpbox] Detected task-intake/import intent → daruma_plan_materialize (tasks are created only with a plan; an external issue is its source — plan.source.ref = the issue URL, not a second tracker). Adding to an EXISTING plan: still materialize (no bare-task intake), then attach via daruma_plan_add_task (recompose) or pass parent_plan_id. Not a lookup — don't treat the id as an existing task.",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
// "Создай план" / "make a plan": the plan goes to mcpbox, not into chat.
|
|
48
|
+
// Bare "распланируй" plans vacations too — only with a work object.
|
|
49
|
+
re: /\b(make|write|create)\s+(a\s+|the\s+)?plan\b|(?<![а-яёА-ЯЁ])((созда(й|йте|ть)|напиши(те)?|написать|состав(ь|ьте|ить))\s+план|распланируй\s+(задачи|работу|релиз|спринт|миграцию|проект|итерацию))(?![а-яёА-ЯЁ])/,
|
|
50
|
+
hint: "[mcpbox] Detected plan request → decided work: daruma_plan_materialize first (plan.source = issue URL or chat label), then reply with a short summary and the plan id; never a plan only in chat. Raw idea / undecided direction: mcpbox_pipeline_run.",
|
|
45
51
|
},
|
|
46
52
|
{
|
|
47
53
|
re: /\b(list|show|view)\s+(all\s+|active\s+|open\s+)?(tasks|issues|backlog)\b|(?<![а-яёА-ЯЁ])(выпиши|покажи|перечисли|список)\s+(активные\s+)?(задачи|задач|таски|бэклог)(?![а-яёА-ЯЁ])/,
|
|
@@ -63,6 +69,14 @@ const PATTERNS = [
|
|
|
63
69
|
re: /\b(close|complete|mark\s+.*done)\b|(?<![а-яёА-ЯЁ])(закрой|закрыть|завершить|пометь\s+.*выполненной)(?![а-яёА-ЯЁ])/,
|
|
64
70
|
hint: "[mcpbox] Detected close intent → if this refers to a daruma task: /mcpbox:close in Claude, otherwise daruma_complete (or daruma_set_status).",
|
|
65
71
|
},
|
|
72
|
+
{
|
|
73
|
+
// An issue from an external tracker — its URL, or `#N` next to the word
|
|
74
|
+
// issue/ticket/work item/задача. An agent once took a GitLab issue for a
|
|
75
|
+
// "second tracker" and recorded no plan at all. A bare `#123` is not one.
|
|
76
|
+
// Last: "close issue #42" / "status of issue #12" keep their own intent.
|
|
77
|
+
re: /https?:\/\/\S+?\/(issues|work_items)\/(\d+|[a-z][a-z0-9_]*-\d+)|https?:\/\/\S+?\/browse\/[a-z][a-z0-9_]*-\d+|(\b(issue|ticket|work\s*item)\b|(?<![а-яёА-ЯЁ])(ишью|тикет|задач[а-яё]*)(?![а-яёА-ЯЁ]))[\s:]*#\d+(?!\w)|#\d+(?!\w)[\s:]*(\b(issue|ticket|work\s*item)\b|(?<![а-яёА-ЯЁ])(ишью|тикет|задач[а-яё]*)(?![а-яёА-ЯЁ]))/,
|
|
78
|
+
hint: "[mcpbox] Detected an external issue/work item → if you'll work on it, it is the SOURCE of the request, not a second tracker: daruma_plan_materialize with plan.source.ref = the issue URL, then daruma_plan_drain_next → daruma_complete; decisions → mcpbox_knowledge_write. Only reading/answering about it records nothing.",
|
|
79
|
+
},
|
|
66
80
|
];
|
|
67
81
|
|
|
68
82
|
// full mode: remind the agent to judge rawness itself — a regex can't. Only
|
package/lib/policy.mjs
CHANGED
|
@@ -22,12 +22,22 @@ tracker. "Daruma", "дарума", "трекер", "tracker", "таск-мене
|
|
|
22
22
|
|
|
23
23
|
1. Plans and tasks live in mcpbox — never in markdown/TODO files, local plan
|
|
24
24
|
files, a session TODO panel, or only in chat.
|
|
25
|
-
2. When asked to plan decided work —
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
2. When asked to plan decided work — "Создай план", "Напиши план",
|
|
26
|
+
"Составь план", "Распланируй", "make/write/create a plan" — or about to
|
|
27
|
+
answer with a plan, step list or task breakdown for it, in Plan mode too —
|
|
28
|
+
first create it with \`daruma_plan_materialize\`, then reply with a short
|
|
29
|
+
summary and the plan id; never a plan only as chat text. Set
|
|
30
|
+
\`plan.source\` (link to the issue/message, or a short label for a chat
|
|
29
31
|
request; never invent links) and, in a git repo, \`plan.git_context.repo\`
|
|
30
|
-
and \`plan.git_context.branch\`.
|
|
32
|
+
and \`plan.git_context.branch\`. A decided GitLab/GitHub/Jira issue, work item
|
|
33
|
+
or ticket is the request's source, not a second tracker: materialize it with
|
|
34
|
+
\`plan.source.ref\` = its URL, then \`daruma_plan_drain_next\` →
|
|
35
|
+
\`daruma_complete\`; decisions go to \`mcpbox_knowledge_write\`.
|
|
36
|
+
|
|
37
|
+
Roles: GitLab/GitHub/Jira holds the request itself (the issue or work item);
|
|
38
|
+
mcpbox extends it and holds the small technical tasks nobody files there.
|
|
39
|
+
Two places, no conflict: don't duplicate those tasks as GitLab issues — put
|
|
40
|
+
the issue link in \`plan.source.ref\`.
|
|
31
41
|
3. A raw idea or undecided direction is not a plan: \`mcpbox_pipeline_run\`.
|
|
32
42
|
Can't tell which? Ask the user.
|
|
33
43
|
4. A one-off action (run, check, read, answer) — just do it, record nothing.
|
package/lib/update-check.mjs
CHANGED
|
@@ -75,8 +75,14 @@ async function writeCache(cacheFile, value) {
|
|
|
75
75
|
// the mirror would reinstate exactly the setup that could not auto-update.
|
|
76
76
|
// Reaching this notice on those two means the install predates the git
|
|
77
77
|
// marketplace — so the command re-points it, rather than refreshing in place.
|
|
78
|
+
// Older installers registered the npm mirror as a *directory* marketplace, and
|
|
79
|
+
// that declaration in settings.json makes a bare `marketplace add <git>` fail
|
|
80
|
+
// ("network source differs from the one declared"). `remove` drops both the
|
|
81
|
+
// declaration and the plugin, so add + install then land on the latest git
|
|
82
|
+
// release — from a directory install and from a git one alike. Safe with
|
|
83
|
+
// `&&`: the notice only fires when the plugin, hence its marketplace, exists.
|
|
78
84
|
const UPDATE_COMMANDS = Object.assign(Object.create(null), {
|
|
79
|
-
claude: "claude plugin marketplace add https://github.com/tupical/mcpbox-plugin.git && claude plugin install mcpbox-claude@mcpbox",
|
|
85
|
+
claude: "claude plugin marketplace remove mcpbox && claude plugin marketplace add https://github.com/tupical/mcpbox-plugin.git && claude plugin install mcpbox-claude@mcpbox",
|
|
80
86
|
codex: "codex plugin marketplace add https://github.com/tupical/mcpbox-plugin.git && codex plugin add mcpbox --marketplace mcpbox",
|
|
81
87
|
kimi: "npx -y @mcpbox/mcpbox-claude@latest kimi-init",
|
|
82
88
|
});
|
package/lib/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.1.
|
|
1
|
+
export const VERSION = "0.1.24";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcpbox/mcpbox-claude",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "MCPBox agent harness for Claude Code: managed policy (daruma tracker + full pipeline), hooks, and slash commands over the single mcpbox MCP server.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"test": "node --test tests/*.test.mjs",
|
|
29
29
|
"prepack": "node scripts/generate-codex-skills.mjs",
|
|
30
30
|
"postpack": "node scripts/generate-codex-skills.mjs --clean",
|
|
31
|
+
"postpublish": "bash scripts/publish-marketplace.sh",
|
|
31
32
|
"version": "node scripts/sync-version.mjs && git add lib/version.mjs .claude-plugin/plugin.json .codex-plugin/plugin.json"
|
|
32
33
|
},
|
|
33
34
|
"license": "UNLICENSED"
|
|
@@ -8,6 +8,6 @@ The user invoked `/mcpbox:mine`.
|
|
|
8
8
|
## Steps
|
|
9
9
|
|
|
10
10
|
1. Resolve project (`daruma_workspace_info` → `default_project`).
|
|
11
|
-
2. `daruma_list
|
|
11
|
+
2. `daruma_list project_id=<resolved> status="in_progress,in_review" limit=30`.
|
|
12
12
|
3. Render the same compact table as `/mcpbox:tasks`, titled `## In progress — <N>`.
|
|
13
13
|
4. If empty: "nothing claimed — `/mcpbox:next` to claim the next ready task." Read-only.
|
|
@@ -8,7 +8,7 @@ The user invoked `/mcpbox:plan`.
|
|
|
8
8
|
## Steps
|
|
9
9
|
|
|
10
10
|
1. Resolve project (`daruma_workspace_info` → `default_project`).
|
|
11
|
-
2. `daruma_plan_list
|
|
11
|
+
2. `daruma_plan_list status="draft,active"`, most recent first.
|
|
12
12
|
If none, stop with "no active plan".
|
|
13
13
|
3. For the chosen plan, `daruma_plan_get` (single call — do not enumerate the archive).
|
|
14
14
|
4. Render:
|
|
@@ -14,7 +14,7 @@ Drive the mcpbox MCP server (do not invent IDs, do not write local plan files).
|
|
|
14
14
|
- Else `daruma_project_list` → pick first. If none, say "no projects yet" and stop.
|
|
15
15
|
|
|
16
16
|
2. Fetch tasks server-side (don't filter locally):
|
|
17
|
-
- `daruma_list
|
|
17
|
+
- `daruma_list project_id=<resolved> status=active limit=50`.
|
|
18
18
|
- **Never** use `status=all` unless the user explicitly asked for the full archive; it is token-heavy.
|
|
19
19
|
|
|
20
20
|
3. Render exactly this format:
|