mister-wolf 2.8.0 → 2.9.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.
package/README.md CHANGED
@@ -77,7 +77,7 @@ Details: [architecture guide (RU)](docs/guide/architecture.md) · [concept v3 (R
77
77
 
78
78
  ### Memory
79
79
 
80
- Everything is memory: 25 object types (24 active + 1 deprecated), versions, relations, attribution.
80
+ Everything is memory: 25 object types (including `complaint`), versions, relations, attribution.
81
81
 
82
82
  ```bash
83
83
  wolf add --type lesson --title "..." --body "..." --tags "vitest,ci" --confidence medium
@@ -101,7 +101,7 @@ Agent working protocols as a product.
101
101
  wolf bootstrap # подключение к проекту: скан → черновики правил, document-ref'ы, work-thread
102
102
  wolf call # cold-start: активные injections для сессии (--for <topic> — по теме)
103
103
  wolf brief # сводка состояния по последнему scan + памяти
104
- wolf complain --about skill:apprentice --text "…" # жалоба на поведение агента → hot-signal Стюарду
104
+ wolf complain --about skill:apprentice --rule "…" --evidence "…" --proposal "…" # жалоба на правило/агента → объект complaint → hot-signal Стюарду
105
105
  wolf session checkpoint --thread <id> # точка свёртки прогресса
106
106
  wolf session wrap-up --title "…" # session-summary завершения
107
107
  wolf solve "битые relation-ссылки" --save # solve pack для проблемы памяти
@@ -122,7 +122,7 @@ Tool librarian: a successful script crystallizes into a permanent project resour
122
122
  wolf tool register scripts/check.sh --name check --contract-in "нет" --contract-out "exit 0/1"
123
123
  wolf tool list --status active
124
124
  wolf tool use check # +1 к usage_count, напоминание контракта
125
- wolf tool stats # счётчики + экономика переиспользования из run-log
125
+ wolf tool stats # счётчики + экономика переиспользования из сигнального лога
126
126
  wolf tool expose check # (пере)генерировать .opencode/skills/check/SKILL.md
127
127
  wolf tool deprecate check --reason "заменён линтером"
128
128
  wolf tool revive check # deprecated → active
@@ -144,7 +144,10 @@ wolf learn status # здоровье сигнального
144
144
 
145
145
  ### Effectiveness
146
146
 
147
- - `wolf effectiveness` — dashboard: rules holdout, tool economy, delivery, noise, routing (aggregation, no LLM).
147
+ - `wolf effectiveness` — dashboard: rules holdout, tool economy, delivery, noise, routing (aggregation, no LLM); `--snapshot` — append-only history for trends.
148
+ - `wolf analytics` — ledgers (memory/tools/rules/agents), memory lifecycle & attribution, campaigns with/without memory + per-memory ROI, coordination, data-quality; honest metrics (`n/a` + reason, never invented numbers).
149
+ - `wolf dashboard` — console dashboard: health, ledgers, trends (unicode tables, sparklines).
150
+ - `wolf task-eval --verdict accepted|rejected|partial|inconclusive` — task verdicts: acceptance, coverage, cost per accepted task; `--campaign` groups runs into A/B cohorts.
148
151
  - `wolf insights [--type lessons|decisions|technical_debt|…] [--topic <t>]` — heuristic analysis of memory (Level 1, no LLM).
149
152
  - Benchmarks: `scripts/bench/` (b1-repeat-debug, b2-bootstrap, b3-retrospective).
150
153
 
@@ -152,16 +155,16 @@ wolf learn status # здоровье сигнального
152
155
 
153
156
  Self-checking scenarios: `bash scripts/demo/scenario-N.sh`.
154
157
 
155
- | # | Scenario |
156
- | --- | -------------------------------------------------------------------------------------------------------------- |
157
- | 1 | Connecting Wolf to a new project (self-checking, PASS/FAIL points) |
158
- | 2 | The life of a knowledge item: birth, aging (supersede), reading the current one |
159
- | 3 | A new agent = one command (scaffold: playbook + frame + relation) |
160
- | 4 | An owner complaint — a hot-signal into the self-learning loop |
161
- | 5 | A script becomes a resource — the Librarian's tool cycle |
162
- | 6 | Self-learning: 3 mistakes → pattern → draft → Sandbox Replay → activation |
163
- | 7 | Loop hygiene: learn status, memory integrity, mileage-based decay |
164
- | 8 | wolf run: model from a routing memory object, spend written to the run-log (**one real LLM call, ~30–60 sec**) |
158
+ | # | Scenario |
159
+ | --- | ----------------------------------------------------------------------------------------------------------------- |
160
+ | 1 | Connecting Wolf to a new project (self-checking, PASS/FAIL points) |
161
+ | 2 | The life of a knowledge item: birth, aging (supersede), reading the current one |
162
+ | 3 | A new agent = one command (scaffold: playbook + frame + relation) |
163
+ | 4 | An owner complaint — a hot-signal into the self-learning loop |
164
+ | 5 | A script becomes a resource — the Librarian's tool cycle |
165
+ | 6 | Self-learning: 3 mistakes → pattern → draft → Sandbox Replay → activation |
166
+ | 7 | Loop hygiene: learn status, memory integrity, mileage-based decay |
167
+ | 8 | wolf run: model from a routing memory object, spend written to the signal log (**one real LLM call, ~30–60 sec**) |
165
168
 
166
169
  ## Integrations
167
170
 
package/README.ru.md CHANGED
@@ -94,7 +94,7 @@ Claude Code при первом старте попросит approve project-sc
94
94
 
95
95
  ### Память
96
96
 
97
- Всё есть память: 25 типов объектов (24 активных + 1 deprecated), версии, связи, атрибуция.
97
+ Всё есть память: 25 типов объектов (включая `complaint`), версии, связи, атрибуция.
98
98
 
99
99
  ```bash
100
100
  wolf add --type lesson --title "..." --body "..." --tags "vitest,ci" --confidence medium
@@ -118,7 +118,7 @@ wolf relation add mem_001 supports mem_002
118
118
  wolf bootstrap # подключение к проекту: скан → черновики правил, document-ref'ы, work-thread
119
119
  wolf call # cold-start: активные injections для сессии (--for <topic> — по теме)
120
120
  wolf brief # сводка состояния по последнему scan + памяти
121
- wolf complain --about skill:apprentice --text "…" # жалоба на поведение агента → hot-signal Стюарду
121
+ wolf complain --about skill:apprentice --rule "…" --evidence "…" --proposal "…" # жалоба на правило/агента → объект complaint → hot-signal Стюарду
122
122
  wolf session checkpoint --thread <id> # точка свёртки прогресса
123
123
  wolf session wrap-up --title "…" # session-summary завершения
124
124
  wolf solve "битые relation-ссылки" --save # solve pack для проблемы памяти
@@ -139,7 +139,7 @@ Tool-библиотекарь: удачный скрипт кристаллиз
139
139
  wolf tool register scripts/check.sh --name check --contract-in "нет" --contract-out "exit 0/1"
140
140
  wolf tool list --status active
141
141
  wolf tool use check # +1 к usage_count, напоминание контракта
142
- wolf tool stats # счётчики + экономика переиспользования из run-log
142
+ wolf tool stats # счётчики + экономика переиспользования из сигнального лога
143
143
  wolf tool expose check # (пере)генерировать .opencode/skills/check/SKILL.md
144
144
  wolf tool deprecate check --reason "заменён линтером"
145
145
  wolf tool revive check # deprecated → active
@@ -161,7 +161,10 @@ wolf learn status # здоровье сигнального
161
161
 
162
162
  ### Эффективность
163
163
 
164
- - `wolf effectiveness` — панель: rules holdout, tool economy, доставка, шум, роутинг (агрегация, без LLM).
164
+ - `wolf effectiveness` — панель: rules holdout, tool economy, доставка, шум, роутинг (агрегация, без LLM); `--snapshot` — append-only история для трендов.
165
+ - `wolf analytics` — ledger'ы (memory/tools/rules/agents), жизненный цикл памяти и атрибуция, кампании «с памятью/без» + per-memory ROI, координация, data-quality; честные метрики (`n/a` + причина, числа не выдумываются).
166
+ - `wolf dashboard` — консольный дашборд: health, ledgers, trends (unicode-таблицы, спарклайны).
167
+ - `wolf task-eval --verdict accepted|rejected|partial|inconclusive` — вердикты по задачам: acceptance, coverage, стоимость принятой задачи; `--campaign` группирует раны в A/B-когорты.
165
168
  - `wolf insights [--type lessons|decisions|technical_debt|…] [--topic <t>]` — эвристический анализ памяти (Level 1, без LLM).
166
169
  - Бенчмарки: `scripts/bench/` (b1-repeat-debug, b2-bootstrap, b3-retrospective).
167
170
 
@@ -169,16 +172,16 @@ wolf learn status # здоровье сигнального
169
172
 
170
173
  Самопроверяющиеся сценарии: `bash scripts/demo/scenario-N.sh`.
171
174
 
172
- | № | Сценарий |
173
- | --- | ------------------------------------------------------------------------------------------------------ |
174
- | 1 | Подключение Wolf к новому проекту (self-checking, PASS/FAIL-точки) |
175
- | 2 | Жизнь знания: рождение, устаревание (supersede), чтение актуального |
176
- | 3 | Новый агент = одна команда (scaffold: playbook + рамка + связь) |
177
- | 4 | Жалоба владельца — hot-signal контура самообучения |
178
- | 5 | Скрипт становится ресурсом — tool-цикл Библиотекаря |
179
- | 6 | Самообучение: 3 ошибки → паттерн → draft → Sandbox Replay → активация |
180
- | 7 | Гигиена контура: learn status, целостность памяти, decay по пробегу |
181
- | 8 | wolf run: модель из routing-объекта памяти, расход в run-log (**один реальный LLM-вызов, ~30–60 сек**) |
175
+ | № | Сценарий |
176
+ | --- | ------------------------------------------------------------------------------------------------------------- |
177
+ | 1 | Подключение Wolf к новому проекту (self-checking, PASS/FAIL-точки) |
178
+ | 2 | Жизнь знания: рождение, устаревание (supersede), чтение актуального |
179
+ | 3 | Новый агент = одна команда (scaffold: playbook + рамка + связь) |
180
+ | 4 | Жалоба владельца — hot-signal контура самообучения |
181
+ | 5 | Скрипт становится ресурсом — tool-цикл Библиотекаря |
182
+ | 6 | Самообучение: 3 ошибки → паттерн → draft → Sandbox Replay → активация |
183
+ | 7 | Гигиена контура: learn status, целостность памяти, decay по пробегу |
184
+ | 8 | wolf run: модель из routing-объекта памяти, расход в сигнальный лог (**один реальный LLM-вызов, ~30–60 сек**) |
182
185
 
183
186
  ## Интеграции
184
187
 
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../../src/adapters/mcp/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAIzE,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAgBzD"}
1
+ {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../../src/adapters/mcp/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAKzE,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAgBzD"}
@@ -1,9 +1,10 @@
1
1
  import { fromJsonSchema, McpServer } from '@modelcontextprotocol/server';
2
2
  import { createCliContainer } from '../../bootstrap/container.js';
3
+ import { getWolfVersion } from '../version.js';
3
4
  import { registerMemoryTools } from './mcp-tools.js';
4
5
  export function buildMcpServer(baseDir) {
5
6
  const deps = createCliContainer(baseDir);
6
- const server = new McpServer({ name: 'mr-wolf', version: '0.1.0' });
7
+ const server = new McpServer({ name: 'mr-wolf', version: getWolfVersion() });
7
8
  registerMemoryTools(server, deps, baseDir);
8
9
  server.registerTool('ping', {
9
10
  description: 'Health check for the Mr. Wolf MCP server',
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../../src/adapters/mcp/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,MAAM,IAAI,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACzC,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IAEpE,mBAAmB,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAE3C,MAAM,CAAC,YAAY,CACjB,MAAM,EACN;QACE,WAAW,EAAE,0CAA0C;QACvD,WAAW,EAAE,cAAc,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;KAChE,EACD,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CACrE,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"mcp-server.js","sourceRoot":"","sources":["../../../src/adapters/mcp/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,MAAM,IAAI,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACzC,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC;IAE7E,mBAAmB,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAE3C,MAAM,CAAC,YAAY,CACjB,MAAM,EACN;QACE,WAAW,EAAE,0CAA0C;QACvD,WAAW,EAAE,cAAc,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;KAChE,EACD,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CACrE,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mister-wolf",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "Local-first project memory for AI coding agents: decisions, lessons, tools and processes that outlive the session",
5
5
  "keywords": [
6
6
  "ai-agents",