@squadrules/mcp 5.13.8 → 5.14.1
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/dist/.tsbuildinfo +1 -1
- package/dist/embed-docs/mem/adapter-migration.md +1 -1
- package/dist/embed-docs/mem/author-adapter.md +25 -4
- package/dist/embed-docs/mem/bulk-insert-adapters-via-cli.md +1 -1
- package/dist/embed-docs/mem/challenge-type-guide.md +21 -10
- package/dist/embed-docs/mem/critic-loop-guide.md +1 -1
- package/dist/embed-docs/mem/critic-loop.md +1 -1
- package/dist/embed-docs/mem/protocol-linking-guide.md +1 -1
- package/dist/embed-docs/mem/refine-search.md +1 -1
- package/dist/resources/embedded-mcp-resources.js +11 -11
- package/dist/resources/embedded-mcp-resources.js.map +1 -1
- package/dist/services/memory/qdrant-point-to-memory.d.ts.map +1 -1
- package/dist/services/memory/qdrant-point-to-memory.js +10 -1
- package/dist/services/memory/qdrant-point-to-memory.js.map +1 -1
- package/dist/tools/activate-artifacts.d.ts +25 -0
- package/dist/tools/activate-artifacts.d.ts.map +1 -0
- package/dist/tools/activate-artifacts.js +57 -0
- package/dist/tools/activate-artifacts.js.map +1 -0
- package/dist/tools/activate.d.ts.map +1 -1
- package/dist/tools/activate.js +17 -52
- package/dist/tools/activate.js.map +1 -1
- package/dist/tools/activate_schema.d.ts +28 -1
- package/dist/tools/activate_schema.d.ts.map +1 -1
- package/dist/tools/activate_schema.js +17 -2
- package/dist/tools/activate_schema.js.map +1 -1
- package/dist/tools/artifact-materialize-command.d.ts +21 -10
- package/dist/tools/artifact-materialize-command.d.ts.map +1 -1
- package/dist/tools/artifact-materialize-command.js +17 -31
- package/dist/tools/artifact-materialize-command.js.map +1 -1
- package/dist/tools/export_schema.d.ts +3 -3
- package/dist/tools/forward-error-payload.d.ts +7 -0
- package/dist/tools/forward-error-payload.d.ts.map +1 -0
- package/dist/tools/forward-error-payload.js +30 -0
- package/dist/tools/forward-error-payload.js.map +1 -0
- package/dist/tools/forward-helpers.d.ts +7 -0
- package/dist/tools/forward-helpers.d.ts.map +1 -1
- package/dist/tools/forward-helpers.js +9 -2
- package/dist/tools/forward-helpers.js.map +1 -1
- package/dist/tools/forward-view.d.ts +2 -0
- package/dist/tools/forward-view.d.ts.map +1 -1
- package/dist/tools/forward-view.js +17 -3
- package/dist/tools/forward-view.js.map +1 -1
- package/dist/tools/forward_schema.d.ts +26 -1
- package/dist/tools/forward_schema.d.ts.map +1 -1
- package/dist/tools/forward_schema.js +8 -2
- package/dist/tools/forward_schema.js.map +1 -1
- package/dist/tools/next-pow-challenge-shape.d.ts.map +1 -1
- package/dist/tools/next-pow-challenge-shape.js +45 -2
- package/dist/tools/next-pow-challenge-shape.js.map +1 -1
- package/dist/tools/next-pow-helpers.d.ts.map +1 -1
- package/dist/tools/next-pow-helpers.js +13 -29
- package/dist/tools/next-pow-helpers.js.map +1 -1
- package/dist/tools/reward.d.ts.map +1 -1
- package/dist/tools/reward.js +15 -0
- package/dist/tools/reward.js.map +1 -1
- package/dist/tools/shell-failure-diagnostics.d.ts +19 -0
- package/dist/tools/shell-failure-diagnostics.d.ts.map +1 -0
- package/dist/tools/shell-failure-diagnostics.js +58 -0
- package/dist/tools/shell-failure-diagnostics.js.map +1 -0
- package/dist/tools/tool-registry.d.ts +45 -4
- package/dist/tools/tool-registry.d.ts.map +1 -1
- package/dist/ui/assets/{AccountPage-Dj5D6Bhr.js → AccountPage-CsTk724l.js} +1 -1
- package/dist/ui/assets/{index-5bncLBJ8.js → index-PfkVPrcd.js} +2 -2
- package/dist/ui/index.html +1 -1
- package/package.json +1 -1
- package/dist/tools/squadrules-challenge-display.d.ts +0 -4
- package/dist/tools/squadrules-challenge-display.d.ts.map +0 -1
- package/dist/tools/squadrules-challenge-display.js +0 -81
- package/dist/tools/squadrules-challenge-display.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
slug: author-adapter
|
|
3
|
-
version: "5.
|
|
3
|
+
version: "5.14.1"
|
|
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
|
|
171
|
-
|
|
172
|
-
|
|
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. Follow each row's `materialize` instruction 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,14 @@ 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 — follow the `activate` artifact row's `materialize`
|
|
210
|
+
instruction, or `export` the adapter. A step that says only "run `python3
|
|
211
|
+
…/artifacts/x.py`" leaves the agent guessing where the file is; a
|
|
212
|
+
missing-file gate failure is the most common
|
|
213
|
+
result of that omission.
|
|
214
|
+
|
|
194
215
|
**Contracts:** One per adapter is the default; a second is justified only at a
|
|
195
216
|
boundary that is hard to roll back. Load `challenge-type-guide` for decision
|
|
196
217
|
rules and JSON formats (`forward` with
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
version: "5.
|
|
2
|
+
version: "5.14.1"
|
|
3
3
|
slug: challenge-type-guide
|
|
4
4
|
title: Challenge Type Selection Guide
|
|
5
5
|
---
|
|
@@ -268,15 +268,26 @@ 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
|
|
272
|
-
`
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
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.
|
|
281
|
+
|
|
282
|
+
**At execution time:** follow the `materialize` instruction carried by that
|
|
283
|
+
`linked_artifacts[]` row — call the MCP `export` tool with the specified
|
|
284
|
+
arguments, write the returned content to the `out` path under
|
|
285
|
+
`$SQUADRULES_LOCAL_ARTIFACT_DIR`, verify the digest, and set permissions.
|
|
286
|
+
`forward` responses do not repeat the list, so materialize during the
|
|
287
|
+
run's first step. When the choice carries no artifact row, the agent obtains the
|
|
288
|
+
script with **`export`** (`format: skill_tree` or `format: skill_zip`) and takes
|
|
289
|
+
it from `artifacts/`. State which route applies in the adapter text — a step that
|
|
290
|
+
does not say how to get the file leaves the agent guessing.
|
|
280
291
|
|
|
281
292
|
**One script, many gates:** `--gate <name>` on a single dispatcher replaces one
|
|
282
293
|
inlined program per step. Change the gate once, not seven times.
|