@squadrules/mcp 5.13.8 → 5.14.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 (64) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/embed-docs/mem/adapter-migration.md +1 -1
  3. package/dist/embed-docs/mem/author-adapter.md +24 -4
  4. package/dist/embed-docs/mem/bulk-insert-adapters-via-cli.md +1 -1
  5. package/dist/embed-docs/mem/challenge-type-guide.md +15 -5
  6. package/dist/embed-docs/mem/critic-loop-guide.md +1 -1
  7. package/dist/embed-docs/mem/critic-loop.md +1 -1
  8. package/dist/embed-docs/mem/protocol-linking-guide.md +1 -1
  9. package/dist/embed-docs/mem/refine-search.md +1 -1
  10. package/dist/resources/embedded-mcp-resources.js +11 -11
  11. package/dist/resources/embedded-mcp-resources.js.map +1 -1
  12. package/dist/services/memory/qdrant-point-to-memory.d.ts.map +1 -1
  13. package/dist/services/memory/qdrant-point-to-memory.js +10 -1
  14. package/dist/services/memory/qdrant-point-to-memory.js.map +1 -1
  15. package/dist/tools/activate-artifacts.d.ts +25 -0
  16. package/dist/tools/activate-artifacts.d.ts.map +1 -0
  17. package/dist/tools/activate-artifacts.js +57 -0
  18. package/dist/tools/activate-artifacts.js.map +1 -0
  19. package/dist/tools/activate.d.ts.map +1 -1
  20. package/dist/tools/activate.js +17 -52
  21. package/dist/tools/activate.js.map +1 -1
  22. package/dist/tools/activate_schema.d.ts +9 -0
  23. package/dist/tools/activate_schema.d.ts.map +1 -1
  24. package/dist/tools/activate_schema.js +2 -1
  25. package/dist/tools/activate_schema.js.map +1 -1
  26. package/dist/tools/forward-error-payload.d.ts +7 -0
  27. package/dist/tools/forward-error-payload.d.ts.map +1 -0
  28. package/dist/tools/forward-error-payload.js +30 -0
  29. package/dist/tools/forward-error-payload.js.map +1 -0
  30. package/dist/tools/forward-helpers.d.ts +7 -0
  31. package/dist/tools/forward-helpers.d.ts.map +1 -1
  32. package/dist/tools/forward-helpers.js +9 -2
  33. package/dist/tools/forward-helpers.js.map +1 -1
  34. package/dist/tools/forward-view.d.ts +2 -0
  35. package/dist/tools/forward-view.d.ts.map +1 -1
  36. package/dist/tools/forward-view.js +17 -3
  37. package/dist/tools/forward-view.js.map +1 -1
  38. package/dist/tools/forward_schema.d.ts +26 -1
  39. package/dist/tools/forward_schema.d.ts.map +1 -1
  40. package/dist/tools/forward_schema.js +8 -2
  41. package/dist/tools/forward_schema.js.map +1 -1
  42. package/dist/tools/next-pow-challenge-shape.d.ts.map +1 -1
  43. package/dist/tools/next-pow-challenge-shape.js +45 -2
  44. package/dist/tools/next-pow-challenge-shape.js.map +1 -1
  45. package/dist/tools/next-pow-helpers.d.ts.map +1 -1
  46. package/dist/tools/next-pow-helpers.js +13 -29
  47. package/dist/tools/next-pow-helpers.js.map +1 -1
  48. package/dist/tools/reward.d.ts.map +1 -1
  49. package/dist/tools/reward.js +15 -0
  50. package/dist/tools/reward.js.map +1 -1
  51. package/dist/tools/shell-failure-diagnostics.d.ts +19 -0
  52. package/dist/tools/shell-failure-diagnostics.d.ts.map +1 -0
  53. package/dist/tools/shell-failure-diagnostics.js +58 -0
  54. package/dist/tools/shell-failure-diagnostics.js.map +1 -0
  55. package/dist/tools/tool-registry.d.ts +24 -1
  56. package/dist/tools/tool-registry.d.ts.map +1 -1
  57. package/dist/ui/assets/{AccountPage-Dj5D6Bhr.js → AccountPage-Co_hJpj2.js} +1 -1
  58. package/dist/ui/assets/{index-5bncLBJ8.js → index-_ERynoIs.js} +2 -2
  59. package/dist/ui/index.html +1 -1
  60. package/package.json +1 -1
  61. package/dist/tools/squadrules-challenge-display.d.ts +0 -4
  62. package/dist/tools/squadrules-challenge-display.d.ts.map +0 -1
  63. package/dist/tools/squadrules-challenge-display.js +0 -81
  64. package/dist/tools/squadrules-challenge-display.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: "5.13.8"
2
+ version: "5.14.0"
3
3
  slug: adapter-migration
4
4
  title: Adapter Migration Workflow
5
5
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  slug: author-adapter
3
- version: "5.13.8"
3
+ version: "5.14.0"
4
4
  title: Author Adapter (Create / Review / Refactor)
5
5
  ---
6
6
 
@@ -167,9 +167,22 @@ The server never names a path on your machine; you do.
167
167
  the title.
168
168
  - Keep the contract one line: `interpreter: "bash"`, `cmd: python3
169
169
  "$SQUADRULES_LOCAL_ARTIFACT_DIR/artifacts/<name>.py" --gate <name>`.
170
- - Verify before shipping: `activate` the adapter and confirm
171
- `linked_artifacts[].relative_path` is exactly the path `cmd` invokes. Run each
172
- row's `materialize` command before the contract that needs it.
170
+ - Verify before shipping — **two** checks, both required:
171
+ 1. `activate` the adapter and confirm `linked_artifacts[].relative_path` is
172
+ exactly the path `cmd` invokes. Run each row's `materialize` command before
173
+ the contract that needs it.
174
+ 2. **Export check:** call MCP **`export`** with
175
+ `uri: "squadrules://adapter/<slug>"` and `format: skill_tree` (or
176
+ `skill_zip` for the bundle) and confirm the script is present under
177
+ `artifacts/` at the path the contract invokes. Read the returned
178
+ `diagnostics[]`: `artifact_stored_sha_mismatch` or
179
+ `artifact_relative_path_invalid` means the stored artifact is broken —
180
+ re-train it instead of shipping it.
181
+ - A `cmd` that names a script the export does not contain is a broken adapter:
182
+ it fails at run time with a missing-file error and burns the user's step.
183
+ Fix it before shipping. The only exception is a repository-owned gate that
184
+ the adapter names explicitly and that lives in the user's repository — say so
185
+ in the adapter text, and state how the agent finds it.
173
186
 
174
187
  ### Drafting rules (all operations)
175
188
 
@@ -191,6 +204,13 @@ Dependencies, middle H2s one per stage with JSON contract block, last H2 Reward
191
204
  Signal. Frontmatter: `slug` (required), `version` (optional), `chain_root`
192
205
  (required for mid-chain adapters).
193
206
 
207
+ **Scripts are obtained, not assumed:** when a step's `cmd` invokes a script, the
208
+ adapter must state in its own text how the agent obtains that file before
209
+ running the command — materialize the `activate` artifact row, or `export` the
210
+ adapter. A step that says only "run `python3 …/artifacts/x.py`" leaves the agent
211
+ guessing where the file is; a missing-file gate failure is the most common
212
+ result of that omission.
213
+
194
214
  **Contracts:** One per adapter is the default; a second is justified only at a
195
215
  boundary that is hard to roll back. Load `challenge-type-guide` for decision
196
216
  rules and JSON formats (`forward` with
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  slug: bulk-insert-adapters-via-cli
3
- version: "5.13.8"
3
+ version: "5.14.0"
4
4
  title: Bulk Insert Adapters via SQUADRULES CLI
5
5
  ---
6
6
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: "5.13.8"
2
+ version: "5.14.0"
3
3
  slug: challenge-type-guide
4
4
  title: Challenge Type Selection Guide
5
5
  ---
@@ -268,15 +268,25 @@ exists:
268
268
  `adapter_uri`. Add `relative_path` only when the default
269
269
  `artifacts/<artifact_name>` is not the path you want; the identity header and
270
270
  slug rules are in the `train` description.
271
- 4. Verify before you run it: `activate` the adapter and check that
272
- `linked_artifacts[].relative_path` equals the path the contract invokes. A
273
- mismatch surfaces only when the gate runs.
271
+ 4. Verify before you run it — **two** checks:
272
+ - `activate` the adapter and check that `linked_artifacts[].relative_path`
273
+ equals the path the contract invokes.
274
+ - **Export check:** `export` the adapter (`format: skill_tree`, or
275
+ `skill_zip` for the bundle) and confirm the script is in the bundle at
276
+ that path, with no `artifact_stored_sha_mismatch` or
277
+ `artifact_relative_path_invalid` in `diagnostics[]`.
278
+
279
+ A mismatch surfaces only when the gate runs — by then it is the user's
280
+ failed step, not your typo.
274
281
 
275
282
  **At execution time:** run the `materialize` command carried by that
276
283
  `linked_artifacts[]` row — it writes the payload under
277
284
  `$SQUADRULES_LOCAL_ARTIFACT_DIR`, verifies the digest, and marks the file
278
285
  executable. `forward` responses do not repeat the list, so materialize during the
279
- run's first step.
286
+ run's first step. When the choice carries no artifact row, the agent obtains the
287
+ script with **`export`** (`format: skill_tree` or `format: skill_zip`) and takes
288
+ it from `artifacts/`. State which route applies in the adapter text — a step that
289
+ does not say how to get the file leaves the agent guessing.
280
290
 
281
291
  **One script, many gates:** `--gate <name>` on a single dispatcher replaces one
282
292
  inlined program per step. Change the gate once, not seven times.
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: "5.13.8"
2
+ version: "5.14.0"
3
3
  slug: critic-loop-guide
4
4
  title: Critic Loop Integration and Mutation Gate Guide
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: "5.13.8"
2
+ version: "5.14.0"
3
3
  slug: critic-loop
4
4
  title: Critic Loop
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: "5.13.8"
2
+ version: "5.14.0"
3
3
  slug: protocol-linking-guide
4
4
  title: Adapter Linking Guide
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- version: "5.13.8"
2
+ version: "5.14.0"
3
3
  slug: refine-search
4
4
  title: Get help refining your search
5
5
  ---