@tangle-network/agent-runtime 0.91.0 → 0.92.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/README.md +4 -2
- package/dist/agent.d.ts +3 -3
- package/dist/agent.js +106 -25
- package/dist/agent.js.map +1 -1
- package/dist/{mcp-serve-verifier-XsX8rkB9.d.ts → agentic-generator-B8oeE2Yv.d.ts} +6 -33
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/candidate-execution/index.d.ts +104 -0
- package/dist/candidate-execution/index.js +34 -0
- package/dist/candidate-execution/index.js.map +1 -0
- package/dist/chunk-3D2RHC4K.js +73 -0
- package/dist/chunk-3D2RHC4K.js.map +1 -0
- package/dist/chunk-3MDZX7YU.js +125 -0
- package/dist/chunk-3MDZX7YU.js.map +1 -0
- package/dist/chunk-4FPXIMSI.js +659 -0
- package/dist/chunk-4FPXIMSI.js.map +1 -0
- package/dist/chunk-6O73TRHW.js +142 -0
- package/dist/chunk-6O73TRHW.js.map +1 -0
- package/dist/chunk-A62TP7SK.js +4784 -0
- package/dist/chunk-A62TP7SK.js.map +1 -0
- package/dist/{chunk-AD7JW4QG.js → chunk-BVVRQ4YC.js} +23 -1231
- package/dist/chunk-BVVRQ4YC.js.map +1 -0
- package/dist/chunk-FDJ7AHXG.js +1229 -0
- package/dist/chunk-FDJ7AHXG.js.map +1 -0
- package/dist/{chunk-FF77IBQM.js → chunk-FRBHUNQ7.js} +2 -141
- package/dist/chunk-FRBHUNQ7.js.map +1 -0
- package/dist/chunk-J2K6WIG6.js +2172 -0
- package/dist/chunk-J2K6WIG6.js.map +1 -0
- package/dist/{chunk-JRS3YSRZ.js → chunk-LQQPGRKT.js} +2 -2
- package/dist/{chunk-IOUUITQA.js → chunk-P6B3Z7PR.js} +3 -3
- package/dist/chunk-PH65PR4F.js +860 -0
- package/dist/chunk-PH65PR4F.js.map +1 -0
- package/dist/{chunk-7ON74BQO.js → chunk-R5GWDTM3.js} +2 -2
- package/dist/{chunk-DWWII6N2.js → chunk-TKJ3Q6CQ.js} +2 -2
- package/dist/{chunk-NC66AM3S.js → chunk-UO2L5VTP.js} +32 -1413
- package/dist/chunk-UO2L5VTP.js.map +1 -0
- package/dist/{chunk-BZF3KQ6G.js → chunk-VSWBYWFK.js} +4 -122
- package/dist/chunk-VSWBYWFK.js.map +1 -0
- package/dist/{completion-gate-DkAnUmpb.d.ts → completion-gate-BLaiN0-X.d.ts} +1 -1
- package/dist/{coordination-rRj5hjJK.d.ts → coordination-DxJ83oZA.d.ts} +12 -5
- package/dist/environment-provider.d.ts +2 -2
- package/dist/environment-provider.js +2 -1
- package/dist/improve-CUVCq7xg.d.ts +152 -0
- package/dist/{improvement-adapter-CDR8QNVM.d.ts → improvement-adapter-BieWeK5J.d.ts} +16 -0
- package/dist/index.d.ts +27 -1092
- package/dist/index.js +108 -6491
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +160 -13
- package/dist/intelligence.js +534 -59
- package/dist/intelligence.js.map +1 -1
- package/dist/knowledge.d.ts +6 -6
- package/dist/knowledge.js +6 -4
- package/dist/lifecycle.d.ts +2 -1
- package/dist/lifecycle.js +5 -3
- package/dist/lifecycle.js.map +1 -1
- package/dist/{loop-runner-bin-DTbZVGfM.d.ts → loop-runner-bin-kKUNGLyV.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +5 -5
- package/dist/loop-runner-bin.js +8 -5
- package/dist/loops.d.ts +16 -16
- package/dist/loops.js +47 -41
- package/dist/mcp/bin.js +6 -4
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +8 -8
- package/dist/mcp/index.js +9 -6
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp-serve-verifier-Bg4C3p5S.d.ts +34 -0
- package/dist/{openai-tools-C4ZfUD4L.d.ts → openai-tools-E3woykz9.d.ts} +1 -1
- package/dist/prepare-Z08a4heC.d.ts +713 -0
- package/dist/profiles.d.ts +1 -1
- package/dist/{router-client-DJImUDlm.d.ts → sanitize-C9go6tXj.d.ts} +113 -1
- package/dist/{structural-rollout-MwlpgQ-6.d.ts → structural-rollout-DHGDbhvR.d.ts} +3 -3
- package/dist/{supervise-DPmYPk0j.d.ts → supervise-T2pazU3G.d.ts} +4 -4
- package/dist/{types-SyuwunY_.d.ts → types-B00NtbCs.d.ts} +1 -1
- package/dist/{types-eMNgWgFi.d.ts → types-DAdIm4AC.d.ts} +1 -1
- package/dist/{worktree-fanout-BDFQIO-Y.d.ts → worktree-fanout-BUb2Ag02.d.ts} +3 -3
- package/package.json +11 -6
- package/skills/build-with-agent-runtime/SKILL.md +1 -1
- package/dist/chunk-AD7JW4QG.js.map +0 -1
- package/dist/chunk-BZF3KQ6G.js.map +0 -1
- package/dist/chunk-FF77IBQM.js.map +0 -1
- package/dist/chunk-IVGYLCFH.js +0 -381
- package/dist/chunk-IVGYLCFH.js.map +0 -1
- package/dist/chunk-NC66AM3S.js.map +0 -1
- /package/dist/{chunk-JRS3YSRZ.js.map → chunk-LQQPGRKT.js.map} +0 -0
- /package/dist/{chunk-IOUUITQA.js.map → chunk-P6B3Z7PR.js.map} +0 -0
- /package/dist/{chunk-7ON74BQO.js.map → chunk-R5GWDTM3.js.map} +0 -0
- /package/dist/{chunk-DWWII6N2.js.map → chunk-TKJ3Q6CQ.js.map} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { V as Verifier } from './agentic-generator-B8oeE2Yv.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `mcpServeVerifier` — the intrinsic verifier for a built MCP server: the
|
|
5
|
+
* boot-and-probe checker named in docs/artifact-lifecycle-frontier.md. A
|
|
6
|
+
* generated MCP server is only a candidate if it actually *serves* — so this
|
|
7
|
+
* boots it over stdio (the default local MCP transport) and runs the real
|
|
8
|
+
* handshake: `initialize` → `notifications/initialized` → `tools/list`, and
|
|
9
|
+
* asserts the server answers with at least `minTools` tools.
|
|
10
|
+
*
|
|
11
|
+
* Outcomes follow the `Verifier` contract: a server that fails to start, exits
|
|
12
|
+
* early, errors the handshake, times out, or exposes no tools is a FAILED
|
|
13
|
+
* candidate (`{ok:false}`, fed back into the next generation shot); a missing
|
|
14
|
+
* start binary or spawn fault THROWS (a setup bug, never a silent fallback).
|
|
15
|
+
*
|
|
16
|
+
* Protocol matches the runtime's own stdio MCP server (src/mcp/server.ts):
|
|
17
|
+
* newline-delimited JSON-RPC 2.0, protocol version 2024-11-05.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
interface McpServeSpec {
|
|
21
|
+
/** Command that starts the built MCP server in the worktree (stdio transport). */
|
|
22
|
+
command: string;
|
|
23
|
+
args?: string[];
|
|
24
|
+
/** Extra env for the server process (merged over `process.env`). */
|
|
25
|
+
env?: Record<string, string>;
|
|
26
|
+
/** Handshake timeout (ms). Default 30s. */
|
|
27
|
+
timeoutMs?: number;
|
|
28
|
+
/** Minimum tools the server must expose to pass. Default 1. */
|
|
29
|
+
minTools?: number;
|
|
30
|
+
}
|
|
31
|
+
/** Build a `Verifier` that boots a generated MCP server over stdio and checks it exposes tools. */
|
|
32
|
+
declare function mcpServeVerifier(spec: McpServeSpec): Verifier;
|
|
33
|
+
|
|
34
|
+
export { type McpServeSpec as M, mcpServeVerifier as m };
|