@tangle-network/agent-runtime 0.89.0 → 0.90.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 +51 -18
- package/dist/agent.d.ts +53 -2
- package/dist/agent.js +168 -6
- package/dist/agent.js.map +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/chunk-5QOB7H74.js +387 -0
- package/dist/chunk-5QOB7H74.js.map +1 -0
- package/dist/{chunk-4WXGK6GV.js → chunk-7ON74BQO.js} +2 -2
- package/dist/{chunk-7LO5GMAO.js → chunk-CMYMTRGA.js} +14 -5
- package/dist/chunk-CMYMTRGA.js.map +1 -0
- package/dist/{chunk-UD4BHQMI.js → chunk-IVGYLCFH.js} +2 -2
- package/dist/{chunk-UD4BHQMI.js.map → chunk-IVGYLCFH.js.map} +1 -1
- package/dist/{chunk-VNOOH22O.js → chunk-OOL3675H.js} +85 -4
- package/dist/chunk-OOL3675H.js.map +1 -0
- package/dist/{chunk-5AVV7KAH.js → chunk-QK4DV5PR.js} +2 -2
- package/dist/chunk-R2VAJGR3.js +214 -0
- package/dist/chunk-R2VAJGR3.js.map +1 -0
- package/dist/{chunk-N7EJV7N3.js → chunk-RYBVU4M3.js} +3592 -3562
- package/dist/chunk-RYBVU4M3.js.map +1 -0
- package/dist/{chunk-BQPFZE2C.js → chunk-WRUSWK4F.js} +5 -5
- package/dist/{chunk-PIPPLSOF.js → chunk-ZV4LXYCJ.js} +451 -24
- package/dist/chunk-ZV4LXYCJ.js.map +1 -0
- package/dist/{worktree-harness-CX_McRLp.d.ts → completion-gate-DkAnUmpb.d.ts} +45 -45
- package/dist/{coordination-CuDLO8wj.d.ts → coordination-rRj5hjJK.d.ts} +415 -227
- package/dist/environment-provider.d.ts +3 -3
- package/dist/index.d.ts +255 -16
- package/dist/index.js +463 -72
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +228 -84
- package/dist/intelligence.js +259 -166
- package/dist/intelligence.js.map +1 -1
- package/dist/knowledge.d.ts +120 -0
- package/dist/knowledge.js +28 -0
- package/dist/knowledge.js.map +1 -0
- package/dist/lifecycle.d.ts +2 -2
- package/dist/lifecycle.js +2 -2
- package/dist/{local-harness-sI0S_XNA.d.ts → local-harness-dcD5WTTr.d.ts} +3 -0
- package/dist/{loop-runner-bin-hQDUL8Ld.d.ts → loop-runner-bin-DTbZVGfM.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +6 -6
- package/dist/loop-runner-bin.js +7 -7
- package/dist/loops.d.ts +34 -369
- package/dist/loops.js +31 -5
- package/dist/mcp/bin.js +5 -5
- package/dist/mcp/index.d.ts +10 -11
- package/dist/mcp/index.js +10 -10
- package/dist/{mcp-serve-verifier-FL7-ZEb_.d.ts → mcp-serve-verifier-XsX8rkB9.d.ts} +12 -1
- package/dist/{openai-tools-BnrOmGjN.d.ts → openai-tools-C4ZfUD4L.d.ts} +1 -1
- package/dist/profiles.d.ts +196 -5
- package/dist/profiles.js +8 -0
- package/dist/profiles.js.map +1 -1
- package/dist/{router-client-r8y_VFVM.d.ts → router-client-DJImUDlm.d.ts} +1 -1
- package/dist/structural-rollout-MwlpgQ-6.d.ts +446 -0
- package/dist/supervise-DPmYPk0j.d.ts +131 -0
- package/dist/{types-ESeMOj94.d.ts → types-SyuwunY_.d.ts} +1 -1
- package/dist/{types-Driepl87.d.ts → types-eMNgWgFi.d.ts} +2 -2
- package/dist/{worktree-fanout-D6xR2CIA.d.ts → worktree-fanout-BDFQIO-Y.d.ts} +234 -234
- package/package.json +12 -4
- package/skills/agent-runtime-adoption/SKILL.md +74 -24
- package/skills/build-with-agent-runtime/SKILL.md +23 -20
- package/skills/loop-writer/SKILL.md +6 -5
- package/skills/supervise/SKILL.md +2 -2
- package/dist/chunk-7LO5GMAO.js.map +0 -1
- package/dist/chunk-N7EJV7N3.js.map +0 -1
- package/dist/chunk-PIPPLSOF.js.map +0 -1
- package/dist/chunk-VNOOH22O.js.map +0 -1
- package/dist/otel-export-BKmNwiCb.d.ts +0 -180
- /package/dist/{chunk-4WXGK6GV.js.map → chunk-7ON74BQO.js.map} +0 -0
- /package/dist/{chunk-5AVV7KAH.js.map → chunk-QK4DV5PR.js.map} +0 -0
- /package/dist/{chunk-BQPFZE2C.js.map → chunk-WRUSWK4F.js.map} +0 -0
|
@@ -1,48 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* The completion-oracle: **settled ⟺ DELIVERED.**
|
|
7
|
-
*
|
|
8
|
-
* Foreman's one hard lesson (0/18 self-improvement deliverables) — "done" must mean a check
|
|
9
|
-
* PASSED, not the agent's say-so. `gateOnDeliverable` wraps an `Executor` so its settlement
|
|
10
|
-
* is `valid` ONLY when the deliverable check passes. The child still RUNS and settles (its
|
|
11
|
-
* spend is conserved into the pool either way), but a child that ran WITHOUT delivering
|
|
12
|
-
* settles `valid:false` — so a keep-best driver never counts it as done, and a gate never
|
|
13
|
-
* inflates with self-judged wins.
|
|
14
|
-
*
|
|
15
|
-
* Dual-purpose by construction:
|
|
16
|
-
* - product: the agent fleet only advances on real, checked deliverables.
|
|
17
|
-
* - proof: the gate's `valid` is the honest settle — equal-k comparisons can't be gamed by an
|
|
18
|
-
* arm that "ran" without producing the artifact.
|
|
19
|
-
*
|
|
20
|
-
* The check is a DEPLOYABLE oracle — a test command, a state verifier, the commit0 judge —
|
|
21
|
-
* read off the child's output, never the model judging itself. A throwing check is
|
|
22
|
-
* fail-closed (not delivered), never a crash.
|
|
23
|
-
*
|
|
24
|
-
* @experimental
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The deployable completion oracle passed to {@link gateOnDeliverable}: a `check` that
|
|
29
|
-
* decides DELIVERED (settles `valid` ⟺ it resolves true) plus an optional `describe` of
|
|
30
|
-
* what the spawn was supposed to produce. The check reads the child's output — never the
|
|
31
|
-
* model judging itself.
|
|
32
|
-
*/
|
|
33
|
-
interface DeliverableSpec<Out = unknown> {
|
|
34
|
-
/** The deployable check that decides DELIVERED. `settled.valid ⟺ this resolves true`. */
|
|
35
|
-
check: (out: Out) => boolean | Promise<boolean>;
|
|
36
|
-
/** What the spawn was supposed to produce — surfaced in traces/reports. */
|
|
37
|
-
describe?: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Wrap an `Executor` so its settlement `valid` reflects the deliverable check, not the
|
|
41
|
-
* inner verdict. Handles both `execute` shapes (one-shot `Promise<ExecutorResult>` and
|
|
42
|
-
* streaming `AsyncIterable<UsageEvent>` + `resultArtifact()`); the check runs once the inner
|
|
43
|
-
* executor has produced its output. The inner `score` is preserved; only `valid` is gated.
|
|
44
|
-
*/
|
|
45
|
-
declare function gateOnDeliverable<Out>(inner: Executor<Out>, deliverable: DeliverableSpec<Out>): Executor<Out>;
|
|
1
|
+
import { L as LocalHarness } from './local-harness-dcD5WTTr.js';
|
|
2
|
+
import { c as Executor } from './types-eMNgWgFi.js';
|
|
46
3
|
|
|
47
4
|
/**
|
|
48
5
|
*
|
|
@@ -197,4 +154,47 @@ type WorktreeCheckRunner = (opts: {
|
|
|
197
154
|
output: string;
|
|
198
155
|
}>;
|
|
199
156
|
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* The completion-oracle: **settled ⟺ DELIVERED.**
|
|
160
|
+
*
|
|
161
|
+
* Foreman's one hard lesson (0/18 self-improvement deliverables) — "done" must mean a check
|
|
162
|
+
* PASSED, not the agent's say-so. `gateOnDeliverable` wraps an `Executor` so its settlement
|
|
163
|
+
* is `valid` ONLY when the deliverable check passes. The child still RUNS and settles (its
|
|
164
|
+
* spend is conserved into the pool either way), but a child that ran WITHOUT delivering
|
|
165
|
+
* settles `valid:false` — so a keep-best driver never counts it as done, and a gate never
|
|
166
|
+
* inflates with self-judged wins.
|
|
167
|
+
*
|
|
168
|
+
* Dual-purpose by construction:
|
|
169
|
+
* - product: the agent fleet only advances on real, checked deliverables.
|
|
170
|
+
* - proof: the gate's `valid` is the honest settle — equal-k comparisons can't be gamed by an
|
|
171
|
+
* arm that "ran" without producing the artifact.
|
|
172
|
+
*
|
|
173
|
+
* The check is a DEPLOYABLE oracle — a test command, a state verifier, the commit0 judge —
|
|
174
|
+
* read off the child's output, never the model judging itself. A throwing check is
|
|
175
|
+
* fail-closed (not delivered), never a crash.
|
|
176
|
+
*
|
|
177
|
+
* @experimental
|
|
178
|
+
*/
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The deployable completion oracle passed to {@link gateOnDeliverable}: a `check` that
|
|
182
|
+
* decides DELIVERED (settles `valid` ⟺ it resolves true) plus an optional `describe` of
|
|
183
|
+
* what the spawn was supposed to produce. The check reads the child's output — never the
|
|
184
|
+
* model judging itself.
|
|
185
|
+
*/
|
|
186
|
+
interface DeliverableSpec<Out = unknown> {
|
|
187
|
+
/** The deployable check that decides DELIVERED. `settled.valid ⟺ this resolves true`. */
|
|
188
|
+
check: (out: Out) => boolean | Promise<boolean>;
|
|
189
|
+
/** What the spawn was supposed to produce — surfaced in traces/reports. */
|
|
190
|
+
describe?: string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Wrap an `Executor` so its settlement `valid` reflects the deliverable check, not the
|
|
194
|
+
* inner verdict. Handles both `execute` shapes (one-shot `Promise<ExecutorResult>` and
|
|
195
|
+
* streaming `AsyncIterable<UsageEvent>` + `resultArtifact()`); the check runs once the inner
|
|
196
|
+
* executor has produced its output. The inner `score` is preserved; only `valid` is gated.
|
|
197
|
+
*/
|
|
198
|
+
declare function gateOnDeliverable<Out>(inner: Executor<Out>, deliverable: DeliverableSpec<Out>): Executor<Out>;
|
|
199
|
+
|
|
200
200
|
export { type CreateWorktreeOptions as C, type DeliverableSpec as D, type GitRunner as G, type RemoveWorktreeOptions as R, type WorktreeHarnessResult as W, type WorktreeCheckRunner as a, type DiffOptions as b, type DiffResult as c, type WorktreeHandle as d, captureWorktreeDiff as e, createWorktree as f, type WorktreeCommandResult as g, gateOnDeliverable as h, removeWorktree as r };
|