@orkestrel/scaffold 0.0.103 → 0.0.105
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/agents/skills/orkestrel-dispatch/scripts/helpers.js +84 -1
- package/dist/agents/skills/orkestrel-dispatch/scripts/launch.js +21 -6
- package/dist/agents/skills/orkestrel-harden/scripts/titles.js +338 -0
- package/dist/agents/skills/orkestrel-publish/scripts/swap.js +3 -39
- package/dist/agents/skills/orkestrel-publish/scripts/wave.js +433 -47
- package/dist/agents/skills/orkestrel-publish/scripts/window.js +2 -1
- package/dist/bin/main.js +17 -10
- package/dist/bin/main.js.map +1 -1
- package/dist/host/agents/orchestration.md +6 -6
- package/dist/host/agents/skills/enterprise-bootstrap/references/components.md +2 -2
- package/dist/host/agents/skills/enterprise-bootstrap/references/inspection.md +1 -1
- package/dist/host/agents/skills/orkestrel-build/SKILL.md +2 -2
- package/dist/host/agents/skills/orkestrel-debrief/SKILL.md +2 -2
- package/dist/host/agents/skills/orkestrel-debrief/references/field-testing.md +1 -1
- package/dist/host/agents/skills/orkestrel-debrief/references/instruction-audit.md +3 -3
- package/dist/host/agents/skills/orkestrel-dispatch/SKILL.md +10 -10
- package/dist/host/agents/skills/orkestrel-dispatch/references/launch.md +1 -0
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/helpers.ts +100 -1
- package/dist/host/agents/skills/orkestrel-dispatch/scripts/launch.ts +27 -6
- package/dist/host/agents/skills/orkestrel-falsify/SKILL.md +4 -4
- package/dist/host/agents/skills/orkestrel-falsify/agents/openai.yaml +1 -1
- package/dist/host/agents/skills/orkestrel-falsify/references/brief.md +8 -7
- package/dist/host/agents/skills/orkestrel-falsify/references/reconcile.md +6 -6
- package/dist/host/agents/skills/orkestrel-harden/SKILL.md +6 -1
- package/dist/host/agents/skills/orkestrel-harden/references/bindings.md +1700 -0
- package/dist/host/agents/skills/orkestrel-harden/references/contract.md +2 -2
- package/dist/host/agents/skills/orkestrel-harden/references/equivalence.md +48 -0
- package/dist/host/agents/skills/orkestrel-harden/references/hardening.md +4 -2
- package/dist/host/agents/skills/orkestrel-harden/scripts/titles.ts +425 -0
- package/dist/host/agents/skills/orkestrel-journey/SKILL.md +2 -2
- package/dist/host/agents/skills/orkestrel-journey/references/captures.md +9 -8
- package/dist/host/agents/skills/orkestrel-parallel/SKILL.md +72 -0
- package/dist/host/agents/skills/orkestrel-parallel/agents/openai.yaml +4 -0
- package/dist/host/agents/skills/orkestrel-parallel/references/harnesses.md +12 -0
- package/dist/host/agents/skills/orkestrel-polish/SKILL.md +3 -3
- package/dist/host/agents/skills/orkestrel-publish/SKILL.md +2 -2
- package/dist/host/agents/skills/orkestrel-publish/references/release.md +1 -0
- package/dist/host/agents/skills/orkestrel-publish/references/wave.md +56 -13
- package/dist/host/agents/skills/orkestrel-publish/references/window.md +6 -6
- package/dist/host/agents/skills/orkestrel-publish/scripts/swap.ts +5 -49
- package/dist/host/agents/skills/orkestrel-publish/scripts/wave.ts +646 -49
- package/dist/host/agents/skills/orkestrel-publish/scripts/window.ts +2 -1
- package/dist/host/agents/transports/codex.md +1 -1
- package/dist/host/claude/agents/orkestrel.md +54 -53
- package/dist/host/claude/agents/reviewer.md +4 -4
- package/dist/host/claude/agents/verifier.md +1 -1
- package/dist/host/claude/rules/documentation.md +2 -1
- package/dist/host/claude/rules/patterns.md +1 -1
- package/dist/host/claude/rules/quality.md +2 -2
- package/dist/host/claude/rules/styles.md +1 -1
- package/dist/host/claude/rules/tests.md +34 -8
- package/dist/host/claude/rules/typescript.md +29 -0
- package/dist/host/claude/rules/workspace.md +32 -22
- package/dist/host/claude/rules/writing.md +34 -26
- package/dist/host/claude/settings.json +2 -0
- package/dist/host/claude/skills/orkestrel-debrief/SKILL.md +1 -1
- package/dist/host/claude/skills/orkestrel-falsify/SKILL.md +1 -1
- package/dist/host/claude/skills/orkestrel-parallel/SKILL.md +11 -0
- package/dist/host/codex/agents/analyst.toml +3 -3
- package/dist/host/codex/agents/reviewer.toml +4 -4
- package/dist/host/codex/agents/verifier.toml +3 -1
- package/dist/host/configs/policy.ts +13 -2
- package/dist/host/dotfiles/editorconfig +0 -1
- package/dist/host/dotfiles/gitattributes +0 -1
- package/dist/host/dotfiles/gitignore +0 -1
- package/dist/host/dotfiles/oxlintrc.json +24 -0
- package/dist/host/guides/agent.md +1674 -598
- package/dist/host/guides/budget.md +89 -29
- package/dist/host/guides/form.md +485 -99
- package/dist/host/guides/mcp.md +14 -2
- package/dist/host/guides/ollama.md +367 -86
- package/dist/host/guides/probe.md +1 -1
- package/dist/host/guides/scaffold.md +158 -101
- package/dist/host/guides/study.md +3185 -0
- package/dist/host/guides/table.md +239 -29
- package/dist/host/guides/terminal.md +22 -20
- package/dist/host/guides/test.md +776 -315
- package/dist/host/manifest.json +117 -65
- package/dist/host/tests/config.test.ts +136 -82
- package/dist/host/tests/policy.test.ts +41 -3
- package/dist/host/tests/setupPolicy.ts +87 -29
- package/dist/src/core/index.cjs +1389 -612
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +35 -20
- package/dist/src/core/index.d.ts +35 -20
- package/dist/src/core/index.js +1387 -613
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +12 -12
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +12 -12
- package/dist/src/server/index.d.ts +12 -12
- package/dist/src/server/index.js +12 -12
- package/dist/src/server/index.js.map +1 -1
- package/package.json +5 -5
package/dist/host/guides/mcp.md
CHANGED
|
@@ -34,8 +34,11 @@ boundary that wraps it with `JSON.parse` / `JSON.stringify` plus the parse
|
|
|
34
34
|
the `id` it could not read. The client mirrors it: `connect` negotiates the modern revision, `tools()`
|
|
35
35
|
exposes the remote tools as local `ToolInterface`s, and `call` runs one — a
|
|
36
36
|
remote failure throws locally, so an agent's `ToolManager` isolates it exactly
|
|
37
|
-
like a local throw. A remote
|
|
38
|
-
|
|
37
|
+
like a local throw. A remote tool result with `isError: true` throws `MCPToolError`
|
|
38
|
+
(an `Error` subclass with `code` `'TOOL'`, recognized by `isMCPToolError`), so a
|
|
39
|
+
caller separates a tool refusal from a transport failure. A remote JSON-RPC error
|
|
40
|
+
rejects with `MCPError`, preserving its numeric `code` and optional `error.data`
|
|
41
|
+
as `context`.
|
|
39
42
|
|
|
40
43
|
**The wire lives one layer out.** [`src/server`](../src/server) carries the
|
|
41
44
|
Node transports and [`src/browser`](../src/browser) the browser face.
|
|
@@ -2246,6 +2249,7 @@ Passing a legacy revision to
|
|
|
2246
2249
|
| `MCPClient` | class | Connects to a remote MCP server over any injected `MCPMessageTransportInterface`, negotiates the modern revision, and exposes the server's tools as local `ToolInterface`s an agent can run. |
|
|
2247
2250
|
| `MCPTaskClient` | class | Issues the `tasks/*` methods over one correlated-request door — the client half of the stable Tasks extension, exposed as an `MCPClientInterface`'s `tasks`. |
|
|
2248
2251
|
| `HTTPClientTransport` | class | Drives a remote Streamable-HTTP MCP server over `fetch` — a client `MCPMessageTransportInterface` for the Model Context Protocol, the egress mirror of the server's `createMCPRoutes`. |
|
|
2252
|
+
| `MCPToolError` | class | Distinguishes a completed remote tool call that the peer itself reported as failed. |
|
|
2249
2253
|
| `MCPError` | class | Preserves a Model Context Protocol error's machine-readable numeric code and optional structured context. |
|
|
2250
2254
|
|
|
2251
2255
|
### Constants
|
|
@@ -2379,6 +2383,7 @@ A `Shape` cell holds the constant's declared type.
|
|
|
2379
2383
|
| `isModernRequest` | function | Determines whether a JSON-RPC invocation uses the modern per-request MCP wire shape. |
|
|
2380
2384
|
| `isMCPModernVersion` | function | Determines whether a value is a modern protocol revision accepted by a bare server. |
|
|
2381
2385
|
| `isMCPLegacyVersion` | function | Determines whether a value is a revision accepted by the optional legacy decorator. |
|
|
2386
|
+
| `isMCPToolError` | function | Determines whether an unknown value is an `MCPToolError`. |
|
|
2382
2387
|
| `isMCPError` | function | Determines whether an unknown value is an `MCPError`. |
|
|
2383
2388
|
| `parseJSONRPCMessage` | function | Narrows an already-parsed value to a `JSONRPCMessage`, or `undefined` when it is not one. |
|
|
2384
2389
|
| `parseRequestContext` | function | Parses the reserved modern request metadata into an `MCPRequestContext`. |
|
|
@@ -4502,7 +4507,9 @@ import {
|
|
|
4502
4507
|
isJSONRPCMessage,
|
|
4503
4508
|
isJSONRPCResponse,
|
|
4504
4509
|
isMCPError,
|
|
4510
|
+
isMCPToolError,
|
|
4505
4511
|
MCPError,
|
|
4512
|
+
MCPToolError,
|
|
4506
4513
|
} from '@orkestrel/mcp'
|
|
4507
4514
|
import { createToolManager } from '@orkestrel/tool'
|
|
4508
4515
|
|
|
@@ -4519,6 +4526,11 @@ const remote = new MCPError('Method not found', -32601, { method: 'missing' })
|
|
|
4519
4526
|
isMCPError(remote) // true
|
|
4520
4527
|
remote.code // -32601
|
|
4521
4528
|
remote.context // { method: 'missing' }
|
|
4529
|
+
|
|
4530
|
+
const refusal = new MCPToolError('tool exploded')
|
|
4531
|
+
isMCPToolError(refusal) // true
|
|
4532
|
+
isMCPError(refusal) // false
|
|
4533
|
+
refusal.code // 'TOOL'
|
|
4522
4534
|
```
|
|
4523
4535
|
|
|
4524
4536
|
### Route a request by era and build a modern result
|