@tangle-network/agent-runtime 0.104.0 → 0.106.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.
- package/README.md +176 -42
- package/dist/activation-CRjVfOiy.js +203 -0
- package/dist/activation-CRjVfOiy.js.map +1 -0
- package/dist/activation-DyWB0K6E.d.ts +98 -0
- package/dist/agent.d.ts +216 -234
- package/dist/agent.js +615 -547
- package/dist/agent.js.map +1 -1
- package/dist/analyst-loop-DGdtVENg.js +517 -0
- package/dist/analyst-loop-DGdtVENg.js.map +1 -0
- package/dist/analyst-loop.d.ts +10 -43
- package/dist/analyst-loop.js +2 -11
- package/dist/backends-Dy8NujB4.js +713 -0
- package/dist/backends-Dy8NujB4.js.map +1 -0
- package/dist/candidate-execution/index.d.ts +4 -192
- package/dist/candidate-execution/index.js +5 -66
- package/dist/candidate-execution-DqMbv1rU.js +488 -0
- package/dist/candidate-execution-DqMbv1rU.js.map +1 -0
- package/dist/coder-yhVWbdWc.js +40 -0
- package/dist/coder-yhVWbdWc.js.map +1 -0
- package/dist/conversation-XucG_K3l.js +1265 -0
- package/dist/conversation-XucG_K3l.js.map +1 -0
- package/dist/conversation.d.ts +2 -804
- package/dist/conversation.js +2 -55
- package/dist/environment-provider-CfLUmKmf.js +1168 -0
- package/dist/environment-provider-CfLUmKmf.js.map +1 -0
- package/dist/environment-provider-IUGU3epE.d.ts +964 -0
- package/dist/environment-provider.d.ts +2 -78
- package/dist/environment-provider.js +2 -18
- package/dist/errors-DEAvWQPy.js +111 -0
- package/dist/errors-DEAvWQPy.js.map +1 -0
- package/dist/improvement-adapter-Cr5TBSji.d.ts +166 -0
- package/dist/improvement-cycle-C095kS_g.js +2624 -0
- package/dist/improvement-cycle-C095kS_g.js.map +1 -0
- package/dist/index-BGdxAwfO.d.ts +838 -0
- package/dist/index-C-FYUuFG.d.ts +193 -0
- package/dist/index-CbNM40xG.d.ts +140 -0
- package/dist/index-DruSKs3Z.d.ts +7224 -0
- package/dist/index-Efjb3nrQ.d.ts +671 -0
- package/dist/index.d.ts +14 -1134
- package/dist/index.js +2134 -1972
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +776 -888
- package/dist/intelligence.js +1466 -1410
- package/dist/intelligence.js.map +1 -1
- package/dist/{kb-gate-CwHO0vz6.d.ts → kb-gate-C8z2juK8.d.ts} +33 -31
- package/dist/kb-gate-DpaSwXVx.js +80 -0
- package/dist/kb-gate-DpaSwXVx.js.map +1 -0
- package/dist/knowledge-Ku-mPP4f.js +433 -0
- package/dist/knowledge-Ku-mPP4f.js.map +1 -0
- package/dist/knowledge.d.ts +2 -150
- package/dist/knowledge.js +2 -40
- package/dist/local-harness-Dh8PJ0ot.d.ts +455 -0
- package/dist/loop-runner-bin-BXsFEUcf.d.ts +162 -0
- package/dist/loop-runner-bin-BwjQ1NfH.js +268 -0
- package/dist/loop-runner-bin-BwjQ1NfH.js.map +1 -0
- package/dist/loop-runner-bin.d.ts +2 -17
- package/dist/loop-runner-bin.js +2 -24
- package/dist/loops.d.ts +5 -4164
- package/dist/loops.js +8 -419
- package/dist/mcp/bin.d.ts +1 -1
- package/dist/mcp/bin.js +116 -146
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +295 -437
- package/dist/mcp/index.js +1242 -1177
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/memory-bin.d.ts +1 -1
- package/dist/mcp/memory-bin.js +37 -16
- package/dist/mcp/memory-bin.js.map +1 -1
- package/dist/memory-server-DL6cE2Ag.js +234 -0
- package/dist/memory-server-DL6cE2Ag.js.map +1 -0
- package/dist/model-resolution-Btd9iIKV.js +98 -0
- package/dist/model-resolution-Btd9iIKV.js.map +1 -0
- package/dist/openai-tools-B68JaOCx.d.ts +24 -0
- package/dist/openai-tools-CKLy1C7M.js +44 -0
- package/dist/openai-tools-CKLy1C7M.js.map +1 -0
- package/dist/otel-export-D34IQW1C.js +843 -0
- package/dist/otel-export-D34IQW1C.js.map +1 -0
- package/dist/platform.d.ts +188 -185
- package/dist/platform.js +185 -218
- package/dist/platform.js.map +1 -1
- package/dist/prepare-B53sPV7M.js +4292 -0
- package/dist/prepare-B53sPV7M.js.map +1 -0
- package/dist/primeintellect/index.d.ts +150 -147
- package/dist/primeintellect/index.js +626 -1004
- package/dist/primeintellect/index.js.map +1 -1
- package/dist/profiles.d.ts +296 -490
- package/dist/profiles.js +722 -749
- package/dist/profiles.js.map +1 -1
- package/dist/protected-model-port-BLPH5VVv.js +722 -0
- package/dist/protected-model-port-BLPH5VVv.js.map +1 -0
- package/dist/protected-model-port-BP6Z4eau.d.ts +283 -0
- package/dist/protected-redaction--F3v1oo8.js +200 -0
- package/dist/protected-redaction--F3v1oo8.js.map +1 -0
- package/dist/redact-D-u-rrcn.js +82 -0
- package/dist/redact-D-u-rrcn.js.map +1 -0
- package/dist/redact-kbIOjfjM.d.ts +452 -0
- package/dist/researcher-CoVqNhfI.js +433 -0
- package/dist/researcher-CoVqNhfI.js.map +1 -0
- package/dist/runtime-BG0BziaP.js +5408 -0
- package/dist/runtime-BG0BziaP.js.map +1 -0
- package/dist/sandbox-events-DeI5xX8P.js +316 -0
- package/dist/sandbox-events-DeI5xX8P.js.map +1 -0
- package/dist/spawn-journal-CwPvKUTa.js +456 -0
- package/dist/spawn-journal-CwPvKUTa.js.map +1 -0
- package/dist/structural-rollout-IXUEplky.js +1445 -0
- package/dist/structural-rollout-IXUEplky.js.map +1 -0
- package/dist/substrate-B0TYNrXn.js +27 -0
- package/dist/substrate-B0TYNrXn.js.map +1 -0
- package/dist/{substrate-Dyiqmd3o.d.ts → substrate-BcnuSHXm.d.ts} +57 -54
- package/dist/supervise-BiRutHS9.js +7321 -0
- package/dist/supervise-BiRutHS9.js.map +1 -0
- package/dist/supervisor-DTKhF-RV.js +3826 -0
- package/dist/supervisor-DTKhF-RV.js.map +1 -0
- package/dist/testing.d.ts +4 -3
- package/dist/testing.js +2478 -2637
- package/dist/testing.js.map +1 -1
- package/dist/tool-server-RcWgLIsL.js +141 -0
- package/dist/tool-server-RcWgLIsL.js.map +1 -0
- package/dist/trace-propagation-CJJC7SVB.js +57 -0
- package/dist/trace-propagation-CJJC7SVB.js.map +1 -0
- package/dist/types-BaIpb0XT.d.ts +492 -0
- package/dist/types-BevOjfTY.d.ts +765 -0
- package/dist/types-C9j4qg6l.d.ts +500 -0
- package/dist/types-Cja5OTGh.d.ts +190 -0
- package/dist/util-MVgdwuIS.js +145 -0
- package/dist/util-MVgdwuIS.js.map +1 -0
- package/dist/workspace-archive-BosQiotA.js +575 -0
- package/dist/workspace-archive-BosQiotA.js.map +1 -0
- package/package.json +43 -55
- package/skills/build-with-agent-runtime/SKILL.md +16 -9
- package/skills/loop-writer/SKILL.md +1 -1
- package/dist/activation-Cm-9MMX1.d.ts +0 -69
- package/dist/analyst-loop.js.map +0 -1
- package/dist/backends-BO4Jqoe2.d.ts +0 -134
- package/dist/candidate-execution/index.js.map +0 -1
- package/dist/chunk-2KGAN2HM.js +0 -1256
- package/dist/chunk-2KGAN2HM.js.map +0 -1
- package/dist/chunk-2QJSNOGK.js +0 -48
- package/dist/chunk-2QJSNOGK.js.map +0 -1
- package/dist/chunk-2UABGGUB.js +0 -474
- package/dist/chunk-2UABGGUB.js.map +0 -1
- package/dist/chunk-2VZYRB55.js +0 -834
- package/dist/chunk-2VZYRB55.js.map +0 -1
- package/dist/chunk-2X65HYMI.js +0 -3526
- package/dist/chunk-2X65HYMI.js.map +0 -1
- package/dist/chunk-3MDZX7YU.js +0 -125
- package/dist/chunk-3MDZX7YU.js.map +0 -1
- package/dist/chunk-3PPVCS75.js +0 -199
- package/dist/chunk-3PPVCS75.js.map +0 -1
- package/dist/chunk-5HNDYWUT.js +0 -6424
- package/dist/chunk-5HNDYWUT.js.map +0 -1
- package/dist/chunk-5IBQAPVB.js +0 -29
- package/dist/chunk-5IBQAPVB.js.map +0 -1
- package/dist/chunk-5QOB7H74.js +0 -387
- package/dist/chunk-5QOB7H74.js.map +0 -1
- package/dist/chunk-ATDFUJYI.js +0 -4728
- package/dist/chunk-ATDFUJYI.js.map +0 -1
- package/dist/chunk-B7K7V22Y.js +0 -699
- package/dist/chunk-B7K7V22Y.js.map +0 -1
- package/dist/chunk-DPEUKJRO.js +0 -27
- package/dist/chunk-DPEUKJRO.js.map +0 -1
- package/dist/chunk-FD2MBMOH.js +0 -494
- package/dist/chunk-FD2MBMOH.js.map +0 -1
- package/dist/chunk-FJI3EXU3.js +0 -2402
- package/dist/chunk-FJI3EXU3.js.map +0 -1
- package/dist/chunk-HAO4CXHP.js +0 -200
- package/dist/chunk-HAO4CXHP.js.map +0 -1
- package/dist/chunk-ISPWRSEC.js +0 -408
- package/dist/chunk-ISPWRSEC.js.map +0 -1
- package/dist/chunk-KRBFHMV6.js +0 -1228
- package/dist/chunk-KRBFHMV6.js.map +0 -1
- package/dist/chunk-L5DST3QC.js +0 -351
- package/dist/chunk-L5DST3QC.js.map +0 -1
- package/dist/chunk-M22PL4GH.js +0 -171
- package/dist/chunk-M22PL4GH.js.map +0 -1
- package/dist/chunk-NURIQBJQ.js +0 -72
- package/dist/chunk-NURIQBJQ.js.map +0 -1
- package/dist/chunk-PZZKQVQV.js +0 -52
- package/dist/chunk-PZZKQVQV.js.map +0 -1
- package/dist/chunk-Q2JSAVQ3.js +0 -671
- package/dist/chunk-Q2JSAVQ3.js.map +0 -1
- package/dist/chunk-SBTWKPVR.js +0 -5576
- package/dist/chunk-SBTWKPVR.js.map +0 -1
- package/dist/chunk-SGKPNBXE.js +0 -60
- package/dist/chunk-SGKPNBXE.js.map +0 -1
- package/dist/chunk-SNSMRT6H.js +0 -680
- package/dist/chunk-SNSMRT6H.js.map +0 -1
- package/dist/chunk-STJEHM5F.js +0 -1338
- package/dist/chunk-STJEHM5F.js.map +0 -1
- package/dist/chunk-UPWGXKXB.js +0 -254
- package/dist/chunk-UPWGXKXB.js.map +0 -1
- package/dist/chunk-YEJR7IXO.js +0 -68
- package/dist/chunk-YEJR7IXO.js.map +0 -1
- package/dist/chunk-ZXICDSAK.js +0 -907
- package/dist/chunk-ZXICDSAK.js.map +0 -1
- package/dist/completion-gate-Bv47cOnn.d.ts +0 -256
- package/dist/conversation.js.map +0 -1
- package/dist/coordination-CxtzMxSM.d.ts +0 -2570
- package/dist/environment-provider.js.map +0 -1
- package/dist/improve--2A0gK1-.d.ts +0 -440
- package/dist/improvement-adapter-HAZz-7vK.d.ts +0 -203
- package/dist/knowledge.js.map +0 -1
- package/dist/local-harness-CtK9dSny.d.ts +0 -175
- package/dist/loop-runner-bin-DUOGtvOl.d.ts +0 -207
- package/dist/loop-runner-bin.js.map +0 -1
- package/dist/loops.js.map +0 -1
- package/dist/openai-tools-fnj6SRVg.d.ts +0 -46
- package/dist/protected-model-port-DzkUY3HQ.d.ts +0 -271
- package/dist/sanitize-DEbPNtyI.d.ts +0 -328
- package/dist/structural-rollout-C4mabf87.d.ts +0 -446
- package/dist/supervise-7q9F5brx.d.ts +0 -379
- package/dist/types-BCoemcXU.d.ts +0 -802
- package/dist/types-BwoZWq-i.d.ts +0 -510
- package/dist/types-Cbp72qyu.d.ts +0 -491
- package/dist/types-CmYCMbFT.d.ts +0 -203
- package/dist/types-CvNwMzQt.d.ts +0 -957
- package/dist/worktree-fanout-WsOzt8qu.d.ts +0 -999
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { AgentCandidateBundle, AgentImprovementActivation, AgentImprovementActivationOutcome, AgentImprovementActivationResult, AgentImprovementActivationTarget, AgentImprovementProposal, AgentImprovementReview, AgentProfileImprovementChange, AgentProfileImprovementExperiment, Sha256Digest } from "@tangle-network/agent-interface";
|
|
2
|
+
//#region src/intelligence/activation.d.ts
|
|
3
|
+
interface CreateAgentImprovementActivationResultOptions {
|
|
4
|
+
completedAt: string;
|
|
5
|
+
outcome: AgentImprovementActivationOutcome;
|
|
6
|
+
}
|
|
7
|
+
interface AgentImprovementActivationTargetPlan extends AgentImprovementActivationTarget {
|
|
8
|
+
desiredDigest: Sha256Digest;
|
|
9
|
+
/**
|
|
10
|
+
* Exact measured input the product must apply to reach `desiredDigest`.
|
|
11
|
+
* Transition surfaces such as code and knowledge are applied operations, so
|
|
12
|
+
* their resulting state digest is not the digest of this input document.
|
|
13
|
+
*/
|
|
14
|
+
desiredInput: unknown;
|
|
15
|
+
}
|
|
16
|
+
type AgentProfileImprovementActivationOperation = {
|
|
17
|
+
kind: 'apply-change';
|
|
18
|
+
changes: AgentProfileImprovementChange;
|
|
19
|
+
} | {
|
|
20
|
+
/** The product must load its own saved state at `desiredStateDigest`. */
|
|
21
|
+
kind: 'restore-state';
|
|
22
|
+
};
|
|
23
|
+
interface AgentProfileImprovementActivationTargetPlan extends AgentImprovementActivationTarget {
|
|
24
|
+
desiredDigest: Sha256Digest;
|
|
25
|
+
desiredInput: AgentProfileImprovementActivationOperation;
|
|
26
|
+
}
|
|
27
|
+
interface SealedCandidateActivationTransitionInput {
|
|
28
|
+
kind: 'sealed-candidate';
|
|
29
|
+
activation: AgentImprovementActivation;
|
|
30
|
+
candidateBundle: AgentCandidateBundle;
|
|
31
|
+
bundle: AgentCandidateBundle;
|
|
32
|
+
targets: [AgentImprovementActivationTargetPlan, ...AgentImprovementActivationTargetPlan[]];
|
|
33
|
+
attemptedAt: string;
|
|
34
|
+
expired: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A measured profile change without raw profile bytes.
|
|
38
|
+
* The product owns the private state lookup and atomic write.
|
|
39
|
+
*/
|
|
40
|
+
interface ProfileImprovementActivationTransitionInput {
|
|
41
|
+
kind: 'profile-improvement';
|
|
42
|
+
activation: AgentImprovementActivation;
|
|
43
|
+
experiment: AgentProfileImprovementExperiment;
|
|
44
|
+
sourceStateDigest: Sha256Digest;
|
|
45
|
+
desiredStateDigest: Sha256Digest;
|
|
46
|
+
operation: AgentProfileImprovementActivationOperation;
|
|
47
|
+
targets: [AgentProfileImprovementActivationTargetPlan, ...AgentProfileImprovementActivationTargetPlan[]];
|
|
48
|
+
attemptedAt: string;
|
|
49
|
+
expired: boolean;
|
|
50
|
+
}
|
|
51
|
+
type AgentImprovementActivationTransitionInput = SealedCandidateActivationTransitionInput | ProfileImprovementActivationTransitionInput;
|
|
52
|
+
interface AgentImprovementActivationResultStore {
|
|
53
|
+
load(idempotencyKey: Sha256Digest): Promise<unknown | undefined>;
|
|
54
|
+
putIfAbsent(result: AgentImprovementActivationResult): Promise<unknown>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Product-owned or Runtime-composed transition.
|
|
58
|
+
*
|
|
59
|
+
* Implementations resolve a stored result for `activation.digest`, compare
|
|
60
|
+
* every target, and make the write durably idempotent. Co-located targets store
|
|
61
|
+
* the all-or-none write with its result. Other targets throw when result
|
|
62
|
+
* storage fails so a retry can reconcile it. Runtime never invokes this write
|
|
63
|
+
* function after authorization expires.
|
|
64
|
+
*/
|
|
65
|
+
type AgentImprovementActivationTransition = (input: AgentImprovementActivationTransitionInput) => Promise<unknown>;
|
|
66
|
+
/**
|
|
67
|
+
* Target-read-only check for a prior exact write.
|
|
68
|
+
* It may persist recovered result metadata, but must not change an activation target.
|
|
69
|
+
* Return undefined only when no target write can have committed.
|
|
70
|
+
*/
|
|
71
|
+
type AgentImprovementActivationReconciliation = (input: AgentImprovementActivationTransitionInput) => Promise<unknown | undefined>;
|
|
72
|
+
interface ExecuteAgentImprovementActivationInput {
|
|
73
|
+
proposal: AgentImprovementProposal;
|
|
74
|
+
review: AgentImprovementReview;
|
|
75
|
+
activation: AgentImprovementActivation;
|
|
76
|
+
}
|
|
77
|
+
interface ExecuteAgentImprovementActivationOptions {
|
|
78
|
+
transition: AgentImprovementActivationTransition;
|
|
79
|
+
reconcile?: AgentImprovementActivationReconciliation;
|
|
80
|
+
now?: () => Date;
|
|
81
|
+
}
|
|
82
|
+
/** Create the exact result a product stores in the same transaction as its target write. */
|
|
83
|
+
declare function createAgentImprovementActivationResult(transition: AgentImprovementActivationTransitionInput, options: CreateAgentImprovementActivationResultOptions): AgentImprovementActivationResult;
|
|
84
|
+
/**
|
|
85
|
+
* Recompute one historical activation result against the exact measured proposal and authority.
|
|
86
|
+
* The result records that attempt; it is not a query of the target's current state.
|
|
87
|
+
*/
|
|
88
|
+
declare function verifyAgentImprovementActivationResult(input: {
|
|
89
|
+
proposal: unknown;
|
|
90
|
+
review: unknown;
|
|
91
|
+
activation: unknown;
|
|
92
|
+
result: unknown;
|
|
93
|
+
}): AgentImprovementActivationResult;
|
|
94
|
+
/** Validate and execute one product-owned activation transition. */
|
|
95
|
+
declare function executeAgentImprovementActivation(input: ExecuteAgentImprovementActivationInput, options: ExecuteAgentImprovementActivationOptions): Promise<AgentImprovementActivationResult>;
|
|
96
|
+
//#endregion
|
|
97
|
+
export { AgentImprovementActivationTransitionInput as a, CreateAgentImprovementActivationResultOptions as c, ProfileImprovementActivationTransitionInput as d, SealedCandidateActivationTransitionInput as f, verifyAgentImprovementActivationResult as h, AgentImprovementActivationTransition as i, ExecuteAgentImprovementActivationInput as l, executeAgentImprovementActivation as m, AgentImprovementActivationResultStore as n, AgentProfileImprovementActivationOperation as o, createAgentImprovementActivationResult as p, AgentImprovementActivationTargetPlan as r, AgentProfileImprovementActivationTargetPlan as s, AgentImprovementActivationReconciliation as t, ExecuteAgentImprovementActivationOptions as u };
|
|
98
|
+
//# sourceMappingURL=activation-DyWB0K6E.d.ts.map
|
package/dist/agent.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import { AgentProfile, AgentProfileFileMount, AgentProfileMcpServer } from
|
|
7
|
-
import { SandboxEvent } from
|
|
8
|
-
|
|
9
|
-
import './types-CmYCMbFT.js';
|
|
10
|
-
|
|
1
|
+
import { x as RuntimeStreamEvent } from "./types-C9j4qg6l.js";
|
|
2
|
+
import { a as createSurfaceImprovementProposer, c as SurfaceValidationIssue, d as validateSurfaces, i as SurfaceImprovementEdit, l as renderSurfaceIssues, n as DraftPatchInput, o as AgentSurfaces, r as DraftPatchOutput, s as ResolvedSurface, t as CreateSurfaceImprovementProposerOptions, u as resolveSubjectPath } from "./improvement-adapter-Cr5TBSji.js";
|
|
3
|
+
import { E as SandboxClient, t as AgentRunSpec, w as OutputAdapter } from "./types-BevOjfTY.js";
|
|
4
|
+
import "./index-DruSKs3Z.js";
|
|
5
|
+
import { TraceAnalystKindSpec } from "@tangle-network/agent-eval";
|
|
6
|
+
import { AgentProfile as AgentProfile$1, AgentProfileFileMount, AgentProfileMcpServer } from "@tangle-network/agent-interface";
|
|
7
|
+
import { SandboxEvent } from "@tangle-network/sandbox";
|
|
8
|
+
//#region src/agent/define-agent.d.ts
|
|
11
9
|
/**
|
|
12
10
|
* The full agent manifest. Each agent ships ONE of these.
|
|
13
11
|
*
|
|
@@ -20,145 +18,145 @@ import './types-CmYCMbFT.js';
|
|
|
20
18
|
* scorers and emitted into the trace.
|
|
21
19
|
*/
|
|
22
20
|
interface AgentManifest<TPersona = unknown, TRunOutput = unknown> {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Stable identifier — used as `projectId` in traces, as the analyst
|
|
23
|
+
* loop's `runId` prefix, and as the namespace under which findings
|
|
24
|
+
* are persisted. MUST match the agent's repo name to keep
|
|
25
|
+
* cross-repo telemetry joinable.
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Filesystem root the substrate resolves surface paths against.
|
|
30
|
+
* Typically `process.cwd()` or a fixed absolute path. Use an
|
|
31
|
+
* absolute path when the agent's tests may run from subdirectories
|
|
32
|
+
* (vitest sometimes shifts cwd).
|
|
33
|
+
*/
|
|
34
|
+
repoRoot: string;
|
|
35
|
+
/**
|
|
36
|
+
* Map of mutable surfaces the self-improvement loop can edit. See
|
|
37
|
+
* `AgentSurfaces` — required: `systemPrompt`, `tools`, `rubric`,
|
|
38
|
+
* `knowledge`, `personas`. Optional: `scaffolding`, `memory`, `rag`,
|
|
39
|
+
* `outputSchema`.
|
|
40
|
+
*
|
|
41
|
+
* Every required path is validated at `defineAgent` time. Missing
|
|
42
|
+
* paths throw with the full list of offenders.
|
|
43
|
+
*/
|
|
44
|
+
surfaces: AgentSurfaces;
|
|
45
|
+
/**
|
|
46
|
+
* Rubric the substrate uses to score each run. Dimensions × weights
|
|
47
|
+
* × judges. The substrate computes the weighted composite and
|
|
48
|
+
* stamps it into the RunRecord.
|
|
49
|
+
*/
|
|
50
|
+
rubric: AgentRubric<TRunOutput>;
|
|
51
|
+
/**
|
|
52
|
+
* Runtime adapter — how the substrate INVOKES the agent against a
|
|
53
|
+
* persona. The `act` function takes a persona + a context (with the
|
|
54
|
+
* tracer the substrate threads through for span emission) and
|
|
55
|
+
* returns the run output the rubric will score.
|
|
56
|
+
*
|
|
57
|
+
* The agent's existing production runtime goes in here; the
|
|
58
|
+
* substrate is intentionally thin around it.
|
|
59
|
+
*/
|
|
60
|
+
runtime: AgentRuntime<TPersona, TRunOutput>;
|
|
61
|
+
/**
|
|
62
|
+
* Persona discovery — the substrate loads personas via this function
|
|
63
|
+
* at eval start. Can read from `surfaces.personas`, an API, or be
|
|
64
|
+
* hardcoded. The substrate calls it once per `runAgentEval` call;
|
|
65
|
+
* persona ordering is preserved.
|
|
66
|
+
*/
|
|
67
|
+
personas: () => Promise<ReadonlyArray<TPersona>>;
|
|
68
|
+
/**
|
|
69
|
+
* Analyst kinds the substrate runs against each persona's trace.
|
|
70
|
+
* Defaults to `DEFAULT_TRACE_ANALYST_KINDS` from agent-eval. Per-agent
|
|
71
|
+
* authors can prune (e.g. skip `knowledge-poisoning` when there's no
|
|
72
|
+
* knowledge base) or extend (custom domain kinds).
|
|
73
|
+
*
|
|
74
|
+
* Empty array disables the loop — useful for `pnpm eval --no-analyst`.
|
|
75
|
+
*/
|
|
76
|
+
analystKinds: ReadonlyArray<TraceAnalystKindSpec>;
|
|
77
|
+
/**
|
|
78
|
+
* Analyst LLM configuration. The substrate uses these for all four
|
|
79
|
+
* kinds (override per-kind via `analystKinds` if needed).
|
|
80
|
+
*/
|
|
81
|
+
analyst: AnalystConfig;
|
|
84
82
|
}
|
|
85
83
|
interface AgentRubric<TRunOutput> {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
/** Dimensions composing the weighted score. Weights sum to 1.0 by convention. */
|
|
85
|
+
dimensions: ReadonlyArray<RubricDimension<TRunOutput>>;
|
|
86
|
+
/**
|
|
87
|
+
* Optional judges layered on top of deterministic dimensions. Each
|
|
88
|
+
* judge returns a score per dimension; the substrate averages judges
|
|
89
|
+
* (mean by default) for the LLM contribution.
|
|
90
|
+
*/
|
|
91
|
+
judges?: ReadonlyArray<JudgeConfig<TRunOutput>>;
|
|
94
92
|
}
|
|
95
93
|
interface RubricDimension<TRunOutput> {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
94
|
+
/** Unique identifier — appears in finding subjects (`rubric:<id>`). */
|
|
95
|
+
id: string;
|
|
96
|
+
/** 0..1 — weight in the composite. */
|
|
97
|
+
weight: number;
|
|
98
|
+
/**
|
|
99
|
+
* Deterministic scorer: given the persona + run output, returns a
|
|
100
|
+
* 0..1 score. The substrate sums weight × score across dimensions
|
|
101
|
+
* for the deterministic composite; judges supplement subjective dims.
|
|
102
|
+
*/
|
|
103
|
+
score: (input: {
|
|
104
|
+
persona: unknown;
|
|
105
|
+
output: TRunOutput;
|
|
106
|
+
}) => number;
|
|
107
|
+
/** Optional human-readable label for reports. */
|
|
108
|
+
label?: string;
|
|
111
109
|
}
|
|
112
110
|
interface JudgeConfig<TRunOutput> {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
111
|
+
/** Judge identifier — appears in trace spans + manifest. */
|
|
112
|
+
id: string;
|
|
113
|
+
/** Model snapshot to invoke. Pin the snapshot (`claude-sonnet-4-6@2025-04-15`); the validator rejects bare aliases. */
|
|
114
|
+
model: string;
|
|
115
|
+
/** Dimensions this judge scores. */
|
|
116
|
+
dimensions: ReadonlyArray<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Optional rubric anchors — text examples the judge sees as a
|
|
119
|
+
* few-shot prompt to calibrate. STRONGLY recommended for subjective
|
|
120
|
+
* dimensions; required by the calibration gate (Pearson ≥0.7).
|
|
121
|
+
*/
|
|
122
|
+
anchors?: ReadonlyArray<{
|
|
123
|
+
input: string;
|
|
124
|
+
output: TRunOutput;
|
|
125
|
+
expected: Record<string, number>;
|
|
126
|
+
}>;
|
|
129
127
|
}
|
|
130
128
|
interface AgentRuntime<TPersona, TRunOutput> {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
129
|
+
/**
|
|
130
|
+
* Invoke the agent against one persona. Returns BOTH:
|
|
131
|
+
* - `events`: an `AsyncIterable<RuntimeStreamEvent>` the chat-centric
|
|
132
|
+
* product consumes verbatim (SSE / WebSocket / inline render).
|
|
133
|
+
* **Streaming is mandatory — never collapse this to a single Promise.**
|
|
134
|
+
* The agent's existing `runChatTurn` (or equivalent async generator)
|
|
135
|
+
* plugs in here directly.
|
|
136
|
+
* - `output`: a `Promise<TRunOutput>` resolved AFTER the event stream
|
|
137
|
+
* drains. The eval substrate awaits this for rubric scoring; chat
|
|
138
|
+
* products usually ignore it (they already rendered incrementally).
|
|
139
|
+
*
|
|
140
|
+
* Implementation contract:
|
|
141
|
+
* 1. `act` MUST return immediately (synchronous construction of the
|
|
142
|
+
* `events` iterator + the `output` promise).
|
|
143
|
+
* 2. Iterating `events` drives the underlying LLM/tool calls — the
|
|
144
|
+
* caller chooses when to consume.
|
|
145
|
+
* 3. `output` resolves only after the iterator yields its terminal
|
|
146
|
+
* event (typically `task_end`); see `collectAgentRun` helper.
|
|
147
|
+
*
|
|
148
|
+
* `ctx.emitter` is the substrate-threaded `TraceEmitter` — runtimes
|
|
149
|
+
* SHOULD record LLM/tool spans through it for capture integrity.
|
|
150
|
+
* `ctx.deadlineMs` is wall-clock; the runtime SHOULD honour for graceful
|
|
151
|
+
* cancel. `ctx.signal` is the standard abort signal.
|
|
152
|
+
*/
|
|
153
|
+
act: (persona: TPersona, ctx: AgentRunContext) => AgentRunInvocation<TRunOutput>;
|
|
156
154
|
}
|
|
157
155
|
interface AgentRunInvocation<TRunOutput> {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
/** Live stream of typed runtime events. Consumed by chat UX directly. */
|
|
157
|
+
events: AsyncIterable<RuntimeStreamEvent>;
|
|
158
|
+
/** Final structured output the rubric scores. Resolves after `events` drains. */
|
|
159
|
+
output: Promise<TRunOutput>;
|
|
162
160
|
}
|
|
163
161
|
/**
|
|
164
162
|
* Stub for agents whose `runtime.act` is not yet wired to the substrate's
|
|
@@ -181,38 +179,38 @@ declare function unimplementedAgentRun<TRunOutput = unknown>(reason?: string): A
|
|
|
181
179
|
* directly in the chat surface.
|
|
182
180
|
*/
|
|
183
181
|
declare function collectAgentRun<TRunOutput>(invocation: AgentRunInvocation<TRunOutput>): Promise<{
|
|
184
|
-
|
|
185
|
-
|
|
182
|
+
events: ReadonlyArray<RuntimeStreamEvent>;
|
|
183
|
+
output: TRunOutput;
|
|
186
184
|
}>;
|
|
187
185
|
interface AgentRunContext {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
186
|
+
/** Substrate-managed trace emitter. */
|
|
187
|
+
emitter: import('@tangle-network/agent-eval').TraceEmitter;
|
|
188
|
+
/** Stable run id for this persona × variant cell. */
|
|
189
|
+
runId: string;
|
|
190
|
+
/** Variant the runtime is exercising (e.g. `'baseline'`, `'source-grounded'`). */
|
|
191
|
+
variantId?: string;
|
|
192
|
+
/** Wall-clock deadline (epoch ms). The runtime SHOULD honour for graceful cancel. */
|
|
193
|
+
deadlineMs?: number;
|
|
194
|
+
/** Optional abort signal. */
|
|
195
|
+
signal?: AbortSignal;
|
|
198
196
|
}
|
|
199
197
|
interface AnalystConfig {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
198
|
+
/** Model the analyst kinds use. Override per-kind via `analystKinds[i].cost.models`. */
|
|
199
|
+
model: string;
|
|
200
|
+
/** Optional total budget across all kinds for one run. Substrate enforces via `BudgetGuard`. */
|
|
201
|
+
budgetUsd?: number;
|
|
202
|
+
/** Backend hint for the AxAIService factory — same shape every kind uses. */
|
|
203
|
+
backend?: {
|
|
204
|
+
name?: 'openai' | 'router';
|
|
205
|
+
apiKey?: string;
|
|
206
|
+
baseUrl?: string;
|
|
207
|
+
};
|
|
210
208
|
}
|
|
211
209
|
/** Thrown when `defineAgent` finds a required surface missing on disk. */
|
|
212
210
|
declare class AgentManifestError extends Error {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
211
|
+
readonly agentId: string;
|
|
212
|
+
readonly issues: ReadonlyArray<unknown>;
|
|
213
|
+
constructor(message: string, agentId: string, issues?: ReadonlyArray<unknown>);
|
|
216
214
|
}
|
|
217
215
|
/**
|
|
218
216
|
* Construct a validated agent manifest. Throws `AgentManifestError`
|
|
@@ -228,7 +226,8 @@ declare class AgentManifestError extends Error {
|
|
|
228
226
|
* the call site.
|
|
229
227
|
*/
|
|
230
228
|
declare function defineAgent<TPersona = unknown, TRunOutput = unknown>(manifest: AgentManifest<TPersona, TRunOutput>): AgentManifest<TPersona, TRunOutput>;
|
|
231
|
-
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region src/agent/profile-materialization.d.ts
|
|
232
231
|
/** Known AgentProfile axes a run path may or may not carry into execution. */
|
|
233
232
|
declare const AGENT_PROFILE_MATERIALIZATION_AXES: readonly ["identity", "name", "model", "prompt", "systemPrompt", "instructions", "resources", "files", "resourceInstructions", "skills", "resourceTools", "resourceAgents", "commands", "tools", "permissions", "mcp", "mcpConnections", "connections", "subagents", "hooks", "modes", "confidential", "metadata", "extensions"];
|
|
234
233
|
type KnownAgentProfileMaterializationAxis = (typeof AGENT_PROFILE_MATERIALIZATION_AXES)[number];
|
|
@@ -236,32 +235,32 @@ type KnownAgentProfileMaterializationAxis = (typeof AGENT_PROFILE_MATERIALIZATIO
|
|
|
236
235
|
type AgentProfileMaterializationAxis = KnownAgentProfileMaterializationAxis | `custom:${string}`;
|
|
237
236
|
/** Declares which AgentProfile axes a concrete run path really carries. */
|
|
238
237
|
interface ProfileMaterializationContract {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
238
|
+
/** Human-readable run path, e.g. `createSandboxAct` or `prompt-only-message`. */
|
|
239
|
+
name: string;
|
|
240
|
+
/** Profile axes this run path actually carries into execution. */
|
|
241
|
+
axes: readonly AgentProfileMaterializationAxis[];
|
|
243
242
|
}
|
|
244
243
|
/** One changed AgentProfile axis that would be dropped by a run path. */
|
|
245
244
|
interface ProfileMaterializationIssue {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
245
|
+
contract: string;
|
|
246
|
+
axis: AgentProfileMaterializationAxis;
|
|
247
|
+
reason: 'unsupported-axis';
|
|
248
|
+
supportedAxes: readonly AgentProfileMaterializationAxis[];
|
|
250
249
|
}
|
|
251
250
|
/** Input for declaring a run path's profile-axis support. */
|
|
252
251
|
interface DefineProfileMaterializationContractOptions {
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
name: string;
|
|
253
|
+
axes: readonly AgentProfileMaterializationAxis[];
|
|
255
254
|
}
|
|
256
255
|
/** Input for checking a candidate diff against a run path. */
|
|
257
256
|
interface ValidateProfileMaterializationOptions {
|
|
258
|
-
|
|
259
|
-
|
|
257
|
+
contract: ProfileMaterializationContract;
|
|
258
|
+
changedAxes: readonly AgentProfileMaterializationAxis[];
|
|
260
259
|
}
|
|
261
260
|
/** Input for throwing on dropped profile axes. */
|
|
262
261
|
interface AssertProfileMaterializationOptions extends ValidateProfileMaterializationOptions {
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
/** Extra label included in the thrown error, usually the caller or run id. */
|
|
263
|
+
context?: string;
|
|
265
264
|
}
|
|
266
265
|
/** Materialization contract for `createSandboxAct`, which forwards the full AgentProfile. */
|
|
267
266
|
declare const sandboxActProfileMaterialization: ProfileMaterializationContract;
|
|
@@ -277,64 +276,46 @@ declare function validateProfileMaterialization(options: ValidateProfileMaterial
|
|
|
277
276
|
declare function assertProfileMaterialization(options: AssertProfileMaterializationOptions): void;
|
|
278
277
|
/** Format profile-axis drop issues into a concise operator-facing error. */
|
|
279
278
|
declare function renderProfileMaterializationIssues(issues: readonly ProfileMaterializationIssue[], context?: string): string;
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
* Sandbox bridge for `AgentRuntime.act` — prod-faithful eval execution.
|
|
283
|
-
*
|
|
284
|
-
* The point of this adapter is parity: the eval substrate must run the agent
|
|
285
|
-
* through the SAME profile the production chat turn uses, or scorecard numbers
|
|
286
|
-
* grade a profile that never ships. `createSandboxAct` boots a sandbox with the
|
|
287
|
-
* agent's profile (the caller's `baseProfile`, with optional per-persona
|
|
288
|
-
* overrides) through the loop kernel's own {@link createSandboxForSpec},
|
|
289
|
-
* streams the `streamPrompt` events mapped to the `RuntimeStreamEvent`
|
|
290
|
-
* vocabulary, and resolves the `OutputAdapter`-parsed output for rubric scoring
|
|
291
|
-
* — satisfying the `act` streaming contract with one code path shared by chat
|
|
292
|
-
* and eval.
|
|
293
|
-
*
|
|
294
|
-
* Agents with a bespoke streaming chat turn should wire THAT into `act`
|
|
295
|
-
* directly (the contract is designed for it); this adapter is the default for
|
|
296
|
-
* agents whose turn is a plain prod-profile sandbox dispatch — notably the
|
|
297
|
-
* agents agent-builder generates.
|
|
298
|
-
*/
|
|
299
|
-
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region src/agent/sandbox-act.d.ts
|
|
300
281
|
/** Per-persona profile-merge slots applied over the base profile (§1.5: the caller authors the
|
|
301
282
|
* per-persona profile). Each slot overlays the base; an absent slot leaves the base untouched. */
|
|
302
283
|
interface SandboxActComposeOverrides {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
284
|
+
/** Replace the base profile's system prompt (e.g. a workspace-augmented prompt). */
|
|
285
|
+
systemPrompt?: string;
|
|
286
|
+
/** Extra file mounts layered after the base profile's `resources.files`. */
|
|
287
|
+
extraFiles?: AgentProfileFileMount[];
|
|
288
|
+
/** Override the profile `name`. Defaults to the base profile's name. */
|
|
289
|
+
name?: string;
|
|
290
|
+
/** Box built-in tool ON/OFF flags merged over the base profile's `tools` (overlay wins per key). */
|
|
291
|
+
tools?: Record<string, boolean>;
|
|
292
|
+
/** MCP connections merged over the base profile's `mcp` (overlay wins per key). */
|
|
293
|
+
mcpConnections?: Record<string, AgentProfileMcpServer>;
|
|
313
294
|
}
|
|
314
295
|
interface CreateSandboxActOptions<TPersona, TRunOutput> {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
296
|
+
/** Canonical agent profile — the same one the prod chat turn uses. */
|
|
297
|
+
baseProfile: AgentProfile$1;
|
|
298
|
+
/** Sandbox client used to boot the per-run sandbox. */
|
|
299
|
+
sandboxClient: SandboxClient;
|
|
300
|
+
/** Persona → prompt. Pure; the eval cell's input. */
|
|
301
|
+
buildPrompt: (persona: TPersona) => string;
|
|
302
|
+
/** Sandbox event stream → typed output the rubric scores. */
|
|
303
|
+
output: OutputAdapter<TRunOutput>;
|
|
304
|
+
/**
|
|
305
|
+
* Per-persona profile overrides (workspace-augmented system prompt, extra
|
|
306
|
+
* file mounts, tool flags, MCP connections). Overlaid onto `baseProfile`.
|
|
307
|
+
*/
|
|
308
|
+
compose?: (persona: TPersona) => SandboxActComposeOverrides;
|
|
309
|
+
/** Sandbox-SDK overrides forwarded to `createSandboxForSpec`. */
|
|
310
|
+
sandboxOverrides?: AgentRunSpec<unknown>['sandboxOverrides'];
|
|
311
|
+
/** Optional changed axes the caller expects this path to carry. */
|
|
312
|
+
requiredProfileAxes?: readonly AgentProfileMaterializationAxis[];
|
|
313
|
+
/** Stable run name surfaced in mapped `llm_call` events. */
|
|
314
|
+
name?: string;
|
|
315
|
+
/** Override the `SandboxEvent → RuntimeStreamEvent` mapper. */
|
|
316
|
+
mapEvent?: (event: SandboxEvent, opts: {
|
|
317
|
+
agentRunName?: string;
|
|
318
|
+
}) => RuntimeStreamEvent | undefined;
|
|
338
319
|
}
|
|
339
320
|
/**
|
|
340
321
|
* Build an `AgentRuntime.act` implementation backed by a single prod-profile
|
|
@@ -343,5 +324,6 @@ interface CreateSandboxActOptions<TPersona, TRunOutput> {
|
|
|
343
324
|
* resolves only after the iterator drains.
|
|
344
325
|
*/
|
|
345
326
|
declare function createSandboxAct<TPersona, TRunOutput>(options: CreateSandboxActOptions<TPersona, TRunOutput>): (persona: TPersona, ctx: AgentRunContext) => AgentRunInvocation<TRunOutput>;
|
|
346
|
-
|
|
347
|
-
export { AGENT_PROFILE_MATERIALIZATION_AXES, type AgentManifest, AgentManifestError, type AgentProfileMaterializationAxis, type AgentRubric, type AgentRunContext, type AgentRunInvocation, type AgentRuntime, AgentSurfaces, type AnalystConfig, type AssertProfileMaterializationOptions, type CreateSandboxActOptions, type DefineProfileMaterializationContractOptions, type JudgeConfig, type KnownAgentProfileMaterializationAxis, type ProfileMaterializationContract, type ProfileMaterializationIssue, type RubricDimension, type ValidateProfileMaterializationOptions, assertProfileMaterialization, collectAgentRun, createSandboxAct, defineAgent, defineProfileMaterializationContract, promptOnlyProfileMaterialization, promptResourceProfileMaterialization, renderProfileMaterializationIssues, sandboxActProfileMaterialization, unimplementedAgentRun, validateProfileMaterialization };
|
|
327
|
+
//#endregion
|
|
328
|
+
export { AGENT_PROFILE_MATERIALIZATION_AXES, type AgentManifest, AgentManifestError, type AgentProfileMaterializationAxis, type AgentRubric, type AgentRunContext, type AgentRunInvocation, type AgentRuntime, type AgentSurfaces, type AnalystConfig, type AssertProfileMaterializationOptions, type CreateSandboxActOptions, type CreateSurfaceImprovementProposerOptions, type DefineProfileMaterializationContractOptions, type DraftPatchInput, type DraftPatchOutput, type JudgeConfig, type KnownAgentProfileMaterializationAxis, type ProfileMaterializationContract, type ProfileMaterializationIssue, type ResolvedSurface, type RubricDimension, type SandboxActComposeOverrides, type SurfaceImprovementEdit, type SurfaceValidationIssue, type ValidateProfileMaterializationOptions, assertProfileMaterialization, collectAgentRun, createSandboxAct, createSurfaceImprovementProposer, defineAgent, defineProfileMaterializationContract, promptOnlyProfileMaterialization, promptResourceProfileMaterialization, renderProfileMaterializationIssues, renderSurfaceIssues, resolveSubjectPath, sandboxActProfileMaterialization, unimplementedAgentRun, validateProfileMaterialization, validateSurfaces };
|
|
329
|
+
//# sourceMappingURL=agent.d.ts.map
|