@mcpbox/mcpbox-claude 0.1.11 → 0.1.12

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mcpbox-claude",
3
3
  "description": "MCPBox × Claude Code glue. Drives the mcpbox MCP server (daruma tracker + full MeiSei pipeline torii→…→fujin→daruma). Ships /mcpbox:{tasks,plan,next,mine,status,close,sync,capture,doctor,mode} and pipeline commands, SessionStart/Stop/UserPromptSubmit hooks, and a managed CLAUDE.md policy that makes mcpbox the default tracker AND pipeline substrate.",
4
- "version": "0.1.11",
4
+ "version": "0.1.12",
5
5
  "author": {
6
6
  "name": "tupical"
7
7
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcpbox",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "MCPBox agent stack for Codex: the daruma tracker plus the MeiSei maturity pipeline behind one MCP server.",
5
5
  "author": {
6
6
  "name": "tupical"
@@ -58,8 +58,20 @@ const PATTERNS = [
58
58
 
59
59
  // full mode: remind the agent to judge rawness itself — a regex can't. Only
60
60
  // fires on substantive prompts that didn't already match an explicit intent.
61
+ // The exit comes FIRST. When this hint led with "assess for rawness", an agent
62
+ // asked to start a dev server announced a Daruma follow-up and went looking for
63
+ // ceremony: the routing rule offered three doors and every one of them ended in
64
+ // a tracker artifact, so there was no branch that said "just do it".
65
+ // A routing hint fires on the first PATTERNS match, so an operational request
66
+ // that happens to contain a keyword never reached the exit below: "запусти
67
+ // сервер и закрой лишние процессы" matched the close pattern and pointed a pure
68
+ // process restart at daruma_complete — the incident again, wearing another verb.
69
+ // In full mode every hint therefore carries the exit in front of it.
70
+ const OPERATIONAL_EXIT =
71
+ "If this is an operational action you can just carry out — start/restart something, read a log, check status, open a file, answer a question — do it and record NOTHING, in neither daruma nor the pipeline. Otherwise: ";
72
+
61
73
  const FULL_ASSESS_HINT =
62
- "[mcpbox:full] Assess this request for rawness before acting: only raw material — an idea, hypothesis, or undecided direction — matures through the pipeline (mcpbox_pipeline_run → …fujin → handoff). Work that is already decided and bounded, and follow-up work extending a run that has already handed off (it has a task_id), both go straight to daruma via daruma_plan_materialize. A run still in flight is not a shortcut — finish it first.";
74
+ "[mcpbox:full] " + OPERATIONAL_EXIT + "assess rawness: only raw material — an idea, hypothesis, or undecided direction — matures through the pipeline (mcpbox_pipeline_run → …fujin → handoff). Work that is already decided and bounded, and follow-up work extending a run that has already handed off (it has a task_id), both go straight to daruma via daruma_plan_materialize. A run still in flight is not a shortcut — finish it first.";
63
75
 
64
76
  // ponytail: length heuristic for "substantive" — cheap and good enough to skip
65
77
  // "ok"/"yes"/"go". Swap for a token/keyword check only if it nags in practice.
@@ -72,7 +84,11 @@ export function promptSubmitHint(promptText = "", mode = "lite") {
72
84
  const prompt = promptText.replace(/```[\s\S]*?```/g, " ").toLowerCase().trim();
73
85
  const patterns = mode === "off" ? PATTERNS.slice(1) : PATTERNS;
74
86
  for (const { re, hint } of patterns) {
75
- if (re.test(prompt)) return hint;
87
+ if (re.test(prompt)) {
88
+ // A keyword match is a guess about intent, not a verdict on it — in full
89
+ // mode the operational exit goes ahead of the guess.
90
+ return mode === "full" ? `[mcpbox:full] ${OPERATIONAL_EXIT}${hint}` : hint;
91
+ }
76
92
  }
77
93
  if (mode === "full" && prompt.length >= SUBSTANTIVE_MIN) return FULL_ASSESS_HINT;
78
94
  return "";
package/lib/policy.mjs CHANGED
@@ -237,7 +237,18 @@ daruma execution задача/план (терминальный слой
237
237
  и в описании \`daruma_plan_materialize\`. Три носителя, один текст — если они
238
238
  когда-нибудь разойдутся, прав сервер.
239
239
 
240
- Задай один вопрос: **работа уже решена?**
240
+ Сначала отсей то, что вообще не работа.
241
+
242
+ 0. **Действие, а не работа** — операционная просьба, выполнимая здесь и сейчас
243
+ и **не оставляющая после себя ничего, что можно отслеживать**: запустить или
244
+ перезапустить процесс, посмотреть лог, проверить статус, прочитать файл,
245
+ ответить на вопрос. Такое **не заводится никуда** — ни в daruma, ни в
246
+ pipeline. Просто сделай и всё. Трекер существует для работы, которая
247
+ переживает сессию; у действия после выполнения не остаётся ничего, что можно
248
+ было бы отслеживать, поэтому запись о нём — чистый шум. Развёрнутая
249
+ формулировка просьбы не превращает её в работу.
250
+
251
+ Если осталась именно работа — задай один вопрос: **она уже решена?**
241
252
 
242
253
  1. **Решена и ограничена** — цель, границы и критерий завершения известны
243
254
  (включая внешний issue с готовой постановкой) → сразу в daruma через
@@ -257,7 +268,8 @@ daruma execution задача/план (терминальный слой
257
268
  *что* делать → \`mcpbox_pipeline_run\`, довести до \`fujin\`, материализовать
258
269
  через \`mcpbox_pipeline_handoff\`. Напрямую в daruma такое не заводить.
259
270
 
260
- Pipeline обязателен **только в случае 3**; случаи 1 и 2 — обычный вход в daruma.
271
+ Pipeline обязателен **только в случае 3**; случаи 1 и 2 — обычный вход в daruma;
272
+ по случаю 0 не заводится ничего.
261
273
  Не можешь отличить случай 1 от случая 3 — спроси пользователя, не угадывай.
262
274
 
263
275
  \`~/.agents/mcpbox/mode\` управляет только тем, насколько активно ты *предлагаешь*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpbox/mcpbox-claude",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
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": {