@tangle-network/agent-runtime 0.349.0 → 0.350.2
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/{activation-tNGW73Y9.js → activation-CfJMyzEs.js} +12 -14
- package/dist/{activation-tNGW73Y9.js.map → activation-CfJMyzEs.js.map} +1 -1
- package/dist/{activation-wBipBkCf.d.ts → activation-DyiHrTlS.d.ts} +2 -24
- package/dist/agent.d.ts +8 -12
- package/dist/agent.js +9 -12
- package/dist/agent.js.map +1 -1
- package/dist/{analyst-loop-DZw5QWT9.js → analyst-loop-BZvXCDKy.js} +2 -3
- package/dist/{analyst-loop-DZw5QWT9.js.map → analyst-loop-BZvXCDKy.js.map} +1 -1
- package/dist/analyst-loop.d.ts +3 -5
- package/dist/analyst-loop.js +1 -2
- package/dist/{bundle-1xaJEgjq.js → bundle-Ze8pd07a.js} +3 -4
- package/dist/{bundle-1xaJEgjq.js.map → bundle-Ze8pd07a.js.map} +1 -1
- package/dist/candidate-execution/index.d.ts +13 -33
- package/dist/candidate-execution/index.js +16 -18
- package/dist/candidate-execution/index.js.map +1 -1
- package/dist/{coordination-manager-B2Z_MmL9.js → coordination-manager-BkVfWlMz.js} +101 -132
- package/dist/{coordination-manager-B2Z_MmL9.js.map → coordination-manager-BkVfWlMz.js.map} +1 -1
- package/dist/{delegate-Dr-63jFl.js → delegate-DgEie4ad.js} +19 -21
- package/dist/delegate-DgEie4ad.js.map +1 -0
- package/dist/durable.d.ts +13 -23
- package/dist/durable.js +48 -43
- package/dist/durable.js.map +1 -1
- package/dist/{errors-DodWX-cb.js → errors-wuhGvpE3.js} +2 -3
- package/dist/{errors-DodWX-cb.js.map → errors-wuhGvpE3.js.map} +1 -1
- package/dist/{graph-DPejYB3C.js → graph-Cx0FhKSE.js} +191 -14
- package/dist/graph-Cx0FhKSE.js.map +1 -0
- package/dist/{improve-DwSahPi1.js → improve-i0HU1-aa.js} +35 -53
- package/dist/{improve-DwSahPi1.js.map → improve-i0HU1-aa.js.map} +1 -1
- package/dist/{improvement-adapter-sIthWkcN.d.ts → improvement-adapter-D5GRU1eY.d.ts} +2 -6
- package/dist/index.d.ts +41 -89
- package/dist/index.js +43 -61
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +39 -59
- package/dist/intelligence.js +23 -33
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +5 -5
- package/dist/kernel.js +11 -11
- package/dist/{loop-runner-CP6MfO1b.js → loop-runner-BwN9MhdP.js} +5 -6
- package/dist/{loop-runner-CP6MfO1b.js.map → loop-runner-BwN9MhdP.js.map} +1 -1
- package/dist/{loop-runner-C6pGq-2l.d.ts → loop-runner-DvfOXVx9.d.ts} +3 -5
- package/dist/loop-runner-bin.d.ts +5 -8
- package/dist/loop-runner-bin.js +2 -3
- package/dist/mcp/bin.js +6 -8
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +8 -18
- package/dist/mcp/index.js +17 -25
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/memory-bin.js +4 -6
- package/dist/mcp/memory-bin.js.map +1 -1
- package/dist/{model-policy-CyCUwHed.js → model-policy-GSxWwP-b.js} +11 -13
- package/dist/{model-policy-CyCUwHed.js.map → model-policy-GSxWwP-b.js.map} +1 -1
- package/dist/placement.d.ts +12 -14
- package/dist/placement.js +1 -2
- package/dist/platform.d.ts +7 -13
- package/dist/platform.js +3 -6
- package/dist/platform.js.map +1 -1
- package/dist/{prepare-B9wWffjO.js → prepare-DE8TQnLu.js} +49 -69
- package/dist/{prepare-B9wWffjO.js.map → prepare-DE8TQnLu.js.map} +1 -1
- package/dist/{profile-JLJd2wFG.js → profile-CAhZDW2T.js} +58 -92
- package/dist/profile-CAhZDW2T.js.map +1 -0
- package/dist/{profile-materialization-bPm0gGLO.d.ts → profile-materialization-BRY22Oh8.d.ts} +1 -3
- package/dist/profiles.d.ts +25 -12
- package/dist/profiles.js +52 -11
- package/dist/profiles.js.map +1 -1
- package/dist/{protected-model-port-DVVh-hEk.d.ts → protected-model-port-IKqhTypD.d.ts} +2 -14
- package/dist/{protected-redaction-DFCeo4vg.js → protected-redaction-DilFZch5.js} +2 -3
- package/dist/{protected-redaction-DFCeo4vg.js.map → protected-redaction-DilFZch5.js.map} +1 -1
- package/dist/{provision-supervisor-C4v2vqDo.js → provision-supervisor-Bde_FF0R.js} +11 -15
- package/dist/{provision-supervisor-C4v2vqDo.js.map → provision-supervisor-Bde_FF0R.js.map} +1 -1
- package/dist/{record-events-D93DkpAx.js → record-events-B2GUgYdz.js} +12 -14
- package/dist/{record-events-D93DkpAx.js.map → record-events-B2GUgYdz.js.map} +1 -1
- package/dist/{run-cancellation-CzFhQGMa.js → run-cancellation-BLy_Zz-w.js} +6 -7
- package/dist/{run-cancellation-CzFhQGMa.js.map → run-cancellation-BLy_Zz-w.js.map} +1 -1
- package/dist/{runtime-CsvGCQpl.js → runtime-6Ec9sHRe.js} +648 -215
- package/dist/runtime-6Ec9sHRe.js.map +1 -0
- package/dist/{runtime-hooks-tXpAarhW.js → runtime-hooks-CsW2pfFk.js} +2 -3
- package/dist/{runtime-hooks-tXpAarhW.js.map → runtime-hooks-CsW2pfFk.js.map} +1 -1
- package/dist/{runtime-hooks-nsqxSUFL.d.ts → runtime-hooks-ZQqPw-0g.d.ts} +1 -3
- package/dist/{sandbox-profile-compat-DtuJWFrM.js → sandbox-profile-compat-BxMQ1VXv.js} +61 -43
- package/dist/sandbox-profile-compat-BxMQ1VXv.js.map +1 -0
- package/dist/{search-executor-CCb82Umc.js → search-executor-B7g_5Wjl.js} +10 -15
- package/dist/{search-executor-CCb82Umc.js.map → search-executor-B7g_5Wjl.js.map} +1 -1
- package/dist/{server-CKPwZU-I.js → server-fvEMwGMQ.js} +19 -30
- package/dist/{server-CKPwZU-I.js.map → server-fvEMwGMQ.js.map} +1 -1
- package/dist/{structural-rollout-DylC_fwU.js → structural-rollout-B86bSixU.js} +69 -70
- package/dist/structural-rollout-B86bSixU.js.map +1 -0
- package/dist/{substrate-CGDFTSRh.js → substrate-Db2pp6y3.js} +2 -3
- package/dist/{substrate-CGDFTSRh.js.map → substrate-Db2pp6y3.js.map} +1 -1
- package/dist/{supervise-BGfm2GlY.js → supervise-CaeZcgAW.js} +460 -195
- package/dist/supervise-CaeZcgAW.js.map +1 -0
- package/dist/{supervisor-wS9Ehz_x.js → supervisor-C1OePYE-.js} +511 -626
- package/dist/supervisor-C1OePYE-.js.map +1 -0
- package/dist/{task-queue-0fKkoweu.d.ts → task-queue-kefGy79U.d.ts} +1 -3
- package/dist/task-queue.d.ts +1 -1
- package/dist/task-queue.js +1 -2
- package/dist/testing.d.ts +7 -15
- package/dist/testing.js +241 -244
- package/dist/testing.js.map +1 -1
- package/dist/tool-loop.d.ts +16 -19
- package/dist/tool-loop.js +2 -3
- package/dist/{tool-server-XV4aJwoQ.js → tool-server-CwuYeW_Z.js} +3 -4
- package/dist/{tool-server-XV4aJwoQ.js.map → tool-server-CwuYeW_Z.js.map} +1 -1
- package/dist/{top-snapshot-CflmaDgk.js → top-snapshot-ChwpTr7A.js} +4 -5
- package/dist/{top-snapshot-CflmaDgk.js.map → top-snapshot-ChwpTr7A.js.map} +1 -1
- package/dist/tui/bin.js +7 -9
- package/dist/tui/bin.js.map +1 -1
- package/dist/tui/index.d.ts +3 -5
- package/dist/tui/index.js +2 -2
- package/dist/{types-C8BGOCBn.d.ts → types-Fowuwdz2.d.ts} +364 -483
- package/dist/{types-Cwrea-bU.d.ts → types-qsqfyQoY.d.ts} +1 -3
- package/dist/workspace-store/index.d.ts +12 -22
- package/dist/workspace-store/index.js +4 -7
- package/dist/workspace-store/index.js.map +1 -1
- package/dist/{workspace-streams-BiS4ABah.d.ts → workspace-streams-Dq2Fzk3c.d.ts} +1 -11
- package/package.json +25 -25
- package/skills/agent-graphs/SKILL.md +17 -4
- package/skills/be-ambitious/SKILL.md +46 -0
- package/skills/graph-designer/SKILL.md +9 -2
- package/dist/delegate-Dr-63jFl.js.map +0 -1
- package/dist/graph-DPejYB3C.js.map +0 -1
- package/dist/profile-JLJd2wFG.js.map +0 -1
- package/dist/runtime-CsvGCQpl.js.map +0 -1
- package/dist/sandbox-profile-compat-DtuJWFrM.js.map +0 -1
- package/dist/structural-rollout-DylC_fwU.js.map +0 -1
- package/dist/supervise-BGfm2GlY.js.map +0 -1
- package/dist/supervisor-wS9Ehz_x.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { a as ImprovementProposalSource } from "./types-
|
|
1
|
+
import { a as ImprovementProposalSource } from "./types-qsqfyQoY.js";
|
|
2
2
|
import { AnalystFinding, FindingSubject } from "@tangle-network/agent-eval";
|
|
3
|
-
//#region src/agent/surfaces.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Surface declarations. Every path is repo-relative (or absolute) at
|
|
6
5
|
* `defineAgent` time. At resolution time, paths are joined against the
|
|
@@ -81,8 +80,6 @@ interface SurfaceValidationIssue {
|
|
|
81
80
|
declare function validateSurfaces(surfaces: AgentSurfaces, repoRoot: string): ReadonlyArray<SurfaceValidationIssue>;
|
|
82
81
|
/** Format a list of surface validation issues into a human-readable error string. */
|
|
83
82
|
declare function renderSurfaceIssues(issues: ReadonlyArray<SurfaceValidationIssue>, repoRoot: string): string;
|
|
84
|
-
//#endregion
|
|
85
|
-
//#region src/agent/improvement-adapter.d.ts
|
|
86
83
|
interface SurfaceImprovementEdit {
|
|
87
84
|
/** Stable id derived from the source finding so re-proposals are idempotent. */
|
|
88
85
|
id: string;
|
|
@@ -143,6 +140,5 @@ interface DraftPatchOutput {
|
|
|
143
140
|
}
|
|
144
141
|
/** Resolve each finding to a real surface and draft a detached patch candidate. */
|
|
145
142
|
declare function createSurfaceImprovementProposer(opts: CreateSurfaceImprovementProposerOptions): ImprovementProposalSource<SurfaceImprovementEdit>;
|
|
146
|
-
//#endregion
|
|
147
143
|
export { createSurfaceImprovementProposer as a, SurfaceValidationIssue as c, SurfaceImprovementEdit as i, renderSurfaceIssues as l, DraftPatchInput as n, AgentSurfaces as o, DraftPatchOutput as r, ResolvedSurface as s, CreateSurfaceImprovementProposerOptions as t, validateSurfaces as u };
|
|
148
|
-
//# sourceMappingURL=improvement-adapter-
|
|
144
|
+
//# sourceMappingURL=improvement-adapter-D5GRU1eY.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { a as RuntimeHookErrorContext, c as RuntimeHookTarget, d as defineRuntimeHooks, i as RuntimeHookContext, l as RuntimeHooks, o as RuntimeHookEvent, s as RuntimeHookPhase, u as composeRuntimeHooks } from "./runtime-hooks-
|
|
3
|
-
import { N as AgentCandidateOutputArtifactPort } from "./workspace-streams-
|
|
4
|
-
import { a as ImprovementProposalSource } from "./types-
|
|
5
|
-
import { i as SurfaceImprovementEdit } from "./improvement-adapter-
|
|
6
|
-
import { $ as ImproveCodeBaseOptions, $t as CandidateGenerator, At as SearchPromotion, B as DecideSearchImprovementOptions, Bt as sharedBoxLane, Ct as ImproveSearchOptions, Dt as ImprovementCodeCandidate, Et as ImproveSurface, Ft as SearchLaneOptions, G as ImproveTrainingOptions, Gt as AgenticGeneratorOptions, H as decideSearchImprovement, Ht as DeepReadonly, It as SearchTraceOptions, J as ProfileTrainerRequest, Jt as AgenticGeneratorShotReceipt, K as ImproveTrainingResult, Kt as AgenticGeneratorShotDisposition, L as improve, Lt as SharedBoxSearchLane, Mt as SearchEnvironmentFault, Nt as SearchLane, Ot as ImprovementProfileCandidate, Pt as SearchLaneKind, Q as ImproveCandidateValidator, Qt as commandVerifier, R as SearchMethodOptions, Rt as dedicatedLane, St as ImproveSearchMethod, Tt as ImproveSkillsOptions, U as CheckpointServingPort, Ut as ReadonlyAgentProfile, V as SearchImprovementDecision, Vt as subscriptionLane, W as ControlledTrainingCommand, Wt as AgenticGeneratorExecutorForWorktree, X as createCommandProfileTrainer, Xt as VerifyResult, Y as TrainingBoundaryResult, Yt as Verifier, Z as ImproveCandidateValidationInput, Zt as agenticGenerator, at as ImproveLineage, bt as ImproveSearchAgent, ct as ImproveMethodLineage, dt as ImproveMethodSource, et as ImproveCodeOptions, ft as ImproveOptimizationRunOptions, gt as ImproveProfileSurface, ht as ImproveProfileComponents, i as AgentImprovementActivationTransition, it as ImproveCustomCodeGeneratorOptions, jt as SearchCellContext, kt as SearchDispatchContext, lt as ImproveMethodOptions, mt as ImproveProfileAgent, n as AgentImprovementActivationResultStore, nt as ImproveCodeRunOptions, ot as ImproveMethodContext, q as ProfileTrainer, qt as AgenticGeneratorShotExecution, rt as ImproveCost, st as ImproveMethodFactory, t as AgentImprovementActivationReconciliation, tt as ImproveCodeResult, ut as ImproveMethodResult, vt as ImproveRuntimeCodeGeneratorOptions, wt as ImproveSearchResult, xt as ImproveSearchIdentity, yt as ImproveScenarioPartitions, z as searchMethod, zt as routerLane } from "./activation-
|
|
7
|
-
import { i as auditLoopRunner, r as DelegatedLoopRunner } from "./loop-runner-
|
|
1
|
+
import { $f as SupervisorProfile, Bb as JudgeError, C as RuntimeFailureCause, Cv as SanitizedKnowledgeReadinessReport, Dv as sanitizeKnowledgeReadinessReport, Ev as createRuntimeStreamEventCollector, GS as RuntimeRunCompleteInput, Gb as ExecutorFactory, Hb as ValidationError, Ib as AgentEvalError, JS as RuntimeRunOptions, KS as RuntimeRunCost, Lb as AgentEvalErrorCode, Ld as SuperviseOptions, M as Budget, Pb as Redactor, QS as startRuntimeRun, Rb as BackendTransportError, S as RuntimeStreamEvent, Sv as RuntimeTelemetryOptions, T as RuntimeFailureOwner, Tv as createRuntimeEventCollector, Vb as NotFoundError, XS as RuntimeRunRow, YS as RuntimeRunPersistenceAdapter, ZS as RuntimeRunStatus, _ as RunAgentTaskOptions, _v as padTraceId, a as AgentKnowledgeProvider, b as RuntimeSession, bv as RuntimeStreamEventSink, c as AgentTaskContext, cv as OtelAttribute, d as AgentTaskStatus, dv as OtelExporter, fm as ExecutorConfig, fv as OtelSpan, g as OpenAIChatToolChoice, gu as IsolatedCheckBoxEvidence, gv as padSpanId, h as OpenAIChatTool, hv as loopEventToOtelSpan, i as AgentExecutionBackend, it as SupervisedResult, l as AgentTaskRunResult, lv as OtelExportConfig, m as OpenAIChatResponseFormat, mv as createOtelExporter, n as AgentBackendContext, o as AgentRuntimeEvent, p as KnowledgeReadinessDecision, pv as buildLoopOtelSpans, qS as RuntimeRunHandle, r as AgentBackendInput, s as AgentRuntimeEventSink, t as AgentAdapter, u as AgentTaskSpec, uv as OtelExportStats, v as RunAgentTaskStreamOptions, vu as IsolatedCheckResult, vv as RuntimeEventCollector, w as RuntimeFailureCode, wv as SanitizedKnowledgeRequirement, x as RuntimeSessionStore, xv as RuntimeStreamEventSummary, y as RuntimeCanonicalStreamEvent, yv as RuntimeStreamEventCollector, zb as ConfigError } from "./types-Fowuwdz2.js";
|
|
2
|
+
import { a as RuntimeHookErrorContext, c as RuntimeHookTarget, d as defineRuntimeHooks, i as RuntimeHookContext, l as RuntimeHooks, o as RuntimeHookEvent, s as RuntimeHookPhase, u as composeRuntimeHooks } from "./runtime-hooks-ZQqPw-0g.js";
|
|
3
|
+
import { N as AgentCandidateOutputArtifactPort } from "./workspace-streams-Dq2Fzk3c.js";
|
|
4
|
+
import { a as ImprovementProposalSource } from "./types-qsqfyQoY.js";
|
|
5
|
+
import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5GRU1eY.js";
|
|
6
|
+
import { $ as ImproveCodeBaseOptions, $t as CandidateGenerator, At as SearchPromotion, B as DecideSearchImprovementOptions, Bt as sharedBoxLane, Ct as ImproveSearchOptions, Dt as ImprovementCodeCandidate, Et as ImproveSurface, Ft as SearchLaneOptions, G as ImproveTrainingOptions, Gt as AgenticGeneratorOptions, H as decideSearchImprovement, Ht as DeepReadonly, It as SearchTraceOptions, J as ProfileTrainerRequest, Jt as AgenticGeneratorShotReceipt, K as ImproveTrainingResult, Kt as AgenticGeneratorShotDisposition, L as improve, Lt as SharedBoxSearchLane, Mt as SearchEnvironmentFault, Nt as SearchLane, Ot as ImprovementProfileCandidate, Pt as SearchLaneKind, Q as ImproveCandidateValidator, Qt as commandVerifier, R as SearchMethodOptions, Rt as dedicatedLane, St as ImproveSearchMethod, Tt as ImproveSkillsOptions, U as CheckpointServingPort, Ut as ReadonlyAgentProfile, V as SearchImprovementDecision, Vt as subscriptionLane, W as ControlledTrainingCommand, Wt as AgenticGeneratorExecutorForWorktree, X as createCommandProfileTrainer, Xt as VerifyResult, Y as TrainingBoundaryResult, Yt as Verifier, Z as ImproveCandidateValidationInput, Zt as agenticGenerator, at as ImproveLineage, bt as ImproveSearchAgent, ct as ImproveMethodLineage, dt as ImproveMethodSource, et as ImproveCodeOptions, ft as ImproveOptimizationRunOptions, gt as ImproveProfileSurface, ht as ImproveProfileComponents, i as AgentImprovementActivationTransition, it as ImproveCustomCodeGeneratorOptions, jt as SearchCellContext, kt as SearchDispatchContext, lt as ImproveMethodOptions, mt as ImproveProfileAgent, n as AgentImprovementActivationResultStore, nt as ImproveCodeRunOptions, ot as ImproveMethodContext, q as ProfileTrainer, qt as AgenticGeneratorShotExecution, rt as ImproveCost, st as ImproveMethodFactory, t as AgentImprovementActivationReconciliation, tt as ImproveCodeResult, ut as ImproveMethodResult, vt as ImproveRuntimeCodeGeneratorOptions, wt as ImproveSearchResult, xt as ImproveSearchIdentity, yt as ImproveScenarioPartitions, z as searchMethod, zt as routerLane } from "./activation-DyiHrTlS.js";
|
|
7
|
+
import { i as auditLoopRunner, r as DelegatedLoopRunner } from "./loop-runner-DvfOXVx9.js";
|
|
8
8
|
import { AgentCandidateBundle, AgentCandidateCapturedArtifact, AgentCandidateKnowledge, AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentProfile as AgentProfile$1, ControlBudget, ControlDecision, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult, ControlStep, CustomTokenPricing, DataAcquisitionPlan, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement, MaximumCharge, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
|
|
10
10
|
import { ZodType } from "zod";
|
|
11
11
|
import { GepaOptimizationMethodConfig, MutableSurface, ProfileDispatchFn, Scenario, SearchScoredCell, SkillOptOptimizationMethodConfig, SurfaceProposer } from "@tangle-network/agent-eval/campaign";
|
|
12
12
|
import { Scenario as Scenario$1 } from "@tangle-network/agent-eval/contract";
|
|
13
13
|
import { KnowledgeImprovementOptions, KnowledgeImprovementResult, PromoteKnowledgeCandidateOptions } from "@tangle-network/agent-knowledge";
|
|
14
|
-
//#region src/backends.d.ts
|
|
15
14
|
/** Wrap any custom async-iterable stream into a typed `AgentExecutionBackend`. @stable */
|
|
16
|
-
declare function createIterableBackend<TInput extends AgentBackendInput>(options: {
|
|
15
|
+
export declare function createIterableBackend<TInput extends AgentBackendInput>(options: {
|
|
17
16
|
kind: string;
|
|
18
17
|
start?: AgentExecutionBackend<TInput>['start'];
|
|
19
18
|
resume?: AgentExecutionBackend<TInput>['resume'];
|
|
@@ -21,15 +20,13 @@ declare function createIterableBackend<TInput extends AgentBackendInput>(options
|
|
|
21
20
|
stop?: AgentExecutionBackend<TInput>['stop'];
|
|
22
21
|
}): AgentExecutionBackend<TInput>;
|
|
23
22
|
/** Build an `AgentExecutionBackend` backed by a sandbox/sidecar `streamPrompt` call. @stable */
|
|
24
|
-
declare function createSandboxPromptBackend<TBox, TInput extends AgentBackendInput = AgentBackendInput>(options: {
|
|
23
|
+
export declare function createSandboxPromptBackend<TBox, TInput extends AgentBackendInput = AgentBackendInput>(options: {
|
|
25
24
|
kind?: string;
|
|
26
25
|
getBox(input: TInput, context: Omit<AgentBackendContext, 'session'>): Promise<TBox> | TBox;
|
|
27
26
|
streamPrompt(box: TBox, message: string, context: AgentBackendContext): AsyncIterable<unknown>;
|
|
28
27
|
mapEvent?: (event: unknown, context: AgentBackendContext) => RuntimeStreamEvent | undefined;
|
|
29
28
|
getSessionId?: (box: TBox, input: TInput) => string | undefined;
|
|
30
29
|
}): AgentExecutionBackend<TInput>;
|
|
31
|
-
//#endregion
|
|
32
|
-
//#region src/runtime/profile-execution-backend.d.ts
|
|
33
30
|
/**
|
|
34
31
|
* Bind one exact profile and Runtime executor to the stable `AgentExecutionBackend` contract used
|
|
35
32
|
* by `runAgentTaskStream` and conversations.
|
|
@@ -41,12 +38,10 @@ declare function createSandboxPromptBackend<TBox, TInput extends AgentBackendInp
|
|
|
41
38
|
*
|
|
42
39
|
* @stable
|
|
43
40
|
*/
|
|
44
|
-
declare function createProfileExecutionBackend(options: {
|
|
41
|
+
export declare function createProfileExecutionBackend(options: {
|
|
45
42
|
profile: AgentProfile;
|
|
46
43
|
executor: ExecutorFactory<unknown>;
|
|
47
44
|
}): AgentExecutionBackend;
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/conversation/call-policy.d.ts
|
|
50
45
|
/**
|
|
51
46
|
*
|
|
52
47
|
* Per-call resilience policy for participant backends: deadline, retry with
|
|
@@ -83,8 +78,6 @@ interface BackendCallPolicy {
|
|
|
83
78
|
/** Circuit breaker that opens after N consecutive failures per participant. */
|
|
84
79
|
circuitBreaker?: CircuitBreakerConfig;
|
|
85
80
|
}
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region src/conversation/headers.d.ts
|
|
88
81
|
/**
|
|
89
82
|
* Header bag carried through `AgentBackendContext.propagatedHeaders` so
|
|
90
83
|
* backends that opt in can merge them into their outbound HTTP requests.
|
|
@@ -92,8 +85,6 @@ interface BackendCallPolicy {
|
|
|
92
85
|
* non-protocol headers (e.g. tracing) without colliding.
|
|
93
86
|
*/
|
|
94
87
|
type PropagatedHeaders = Readonly<Record<string, string>>;
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/conversation/types.d.ts
|
|
97
88
|
/** @stable */
|
|
98
89
|
interface ConversationParticipant {
|
|
99
90
|
/**
|
|
@@ -346,22 +337,16 @@ type ConversationStreamEvent = {
|
|
|
346
337
|
result: ConversationResult;
|
|
347
338
|
timestamp: string;
|
|
348
339
|
};
|
|
349
|
-
//#endregion
|
|
350
|
-
//#region src/conversation/conversation-backend.d.ts
|
|
351
340
|
/** Adapt a multi-participant conversation into the standard execution backend contract. */
|
|
352
|
-
declare function createConversationBackend(options: {
|
|
341
|
+
export declare function createConversationBackend(options: {
|
|
353
342
|
conversation: Conversation;
|
|
354
343
|
/** Optional backend kind label. Defaults to `'conversation'`. */
|
|
355
344
|
kind?: string;
|
|
356
345
|
}): AgentExecutionBackend;
|
|
357
|
-
//#endregion
|
|
358
|
-
//#region src/conversation/run-conversation.d.ts
|
|
359
346
|
/** Run a conversation to completion and return its terminal result. */
|
|
360
|
-
declare function runConversation(conversation: Conversation, options: RunConversationOptions): Promise<ConversationResult>;
|
|
347
|
+
export declare function runConversation(conversation: Conversation, options: RunConversationOptions): Promise<ConversationResult>;
|
|
361
348
|
/** Streaming conversation orchestrator: drives N participants in turn through their own backends, enforcing `maxTurns` / `maxCreditsCents` / `haltOn`, yielding per-event stream markers. */
|
|
362
|
-
declare function runConversationStream(conversation: Conversation, options: RunConversationOptions): AsyncIterable<ConversationStreamEvent>;
|
|
363
|
-
//#endregion
|
|
364
|
-
//#region src/conversation/run-persona.d.ts
|
|
349
|
+
export declare function runConversationStream(conversation: Conversation, options: RunConversationOptions): AsyncIterable<ConversationStreamEvent>;
|
|
365
350
|
/** A persona that drives the conversation: either a full driver `AgentProfile`
|
|
366
351
|
* (an LLM user-sim) or a deterministic script of user turns (the fast-path). */
|
|
367
352
|
type PersonaDriver = {
|
|
@@ -411,7 +396,7 @@ interface PersonaConversationResult {
|
|
|
411
396
|
* The persona leads (participant 0): it speaks, the worker answers, repeat,
|
|
412
397
|
* until `maxTurns`. Returns the persistent transcript + worker-only usage.
|
|
413
398
|
*/
|
|
414
|
-
declare function runPersonaConversation(opts: RunPersonaConversationOptions): Promise<PersonaConversationResult>;
|
|
399
|
+
export declare function runPersonaConversation(opts: RunPersonaConversationOptions): Promise<PersonaConversationResult>;
|
|
415
400
|
interface RunPersonaConfig<TScenario extends Scenario, TArtifact> {
|
|
416
401
|
/** Resolve transport/executable ports for each exact profile. */
|
|
417
402
|
executorFor: (profile: AgentProfile$1, role: 'worker' | 'persona') => ExecutorFactory<unknown>;
|
|
@@ -433,9 +418,7 @@ interface RunPersonaConfig<TScenario extends Scenario, TArtifact> {
|
|
|
433
418
|
* axis is the persona, and the runner is the cell. Meters the worker through
|
|
434
419
|
* `ctx.cost` so the matrix's backend-integrity guard sees real usage.
|
|
435
420
|
*/
|
|
436
|
-
declare function runPersonaDispatch<TScenario extends Scenario, TArtifact>(config: RunPersonaConfig<TScenario, TArtifact>): ProfileDispatchFn<TScenario, TArtifact>;
|
|
437
|
-
//#endregion
|
|
438
|
-
//#region src/improvement/official-optimizers.d.ts
|
|
421
|
+
export declare function runPersonaDispatch<TScenario extends Scenario, TArtifact>(config: RunPersonaConfig<TScenario, TArtifact>): ProfileDispatchFn<TScenario, TArtifact>;
|
|
439
422
|
/** Runtime context appended to an official optimizer's own configuration. */
|
|
440
423
|
interface OfficialOptimizerContextOptions {
|
|
441
424
|
/** Context supplied to the optimizer before Runtime appends the profile surface and findings. */
|
|
@@ -473,17 +456,15 @@ type OfficialSkillOptOptions<TScenario extends {
|
|
|
473
456
|
* The recipe is passed through unchanged. Use `engine`, `sequential`,
|
|
474
457
|
* `adaptive-sequential`, `best-of`, `vote`, or `omni` explicitly.
|
|
475
458
|
*/
|
|
476
|
-
declare function officialGepa<TScenario extends {
|
|
459
|
+
export declare function officialGepa<TScenario extends {
|
|
477
460
|
id: string;
|
|
478
461
|
kind: string;
|
|
479
462
|
}, TArtifact = unknown>(options: OfficialGepaOptions<TScenario, TArtifact>): ImproveMethodFactory<TScenario, TArtifact>;
|
|
480
463
|
/** Build a complete method backed by Microsoft's official SkillOpt trainer. */
|
|
481
|
-
declare function officialSkillOpt<TScenario extends {
|
|
464
|
+
export declare function officialSkillOpt<TScenario extends {
|
|
482
465
|
id: string;
|
|
483
466
|
kind: string;
|
|
484
467
|
}, TArtifact = unknown>(options: OfficialSkillOptOptions<TScenario, TArtifact>): ImproveMethodFactory<TScenario, TArtifact>;
|
|
485
|
-
//#endregion
|
|
486
|
-
//#region src/improvement/optimizer-prompt.d.ts
|
|
487
468
|
/**
|
|
488
469
|
* The senior scientific-method optimizer doctrine — the ONE substantial prompt
|
|
489
470
|
* core shared by every builder/author surface (tool build, MCP build, codebase
|
|
@@ -503,9 +484,7 @@ declare function officialSkillOpt<TScenario extends {
|
|
|
503
484
|
* (what a tool/MCP/codebase-edit deliverable looks like) wraps around it; this
|
|
504
485
|
* is the process itself.
|
|
505
486
|
*/
|
|
506
|
-
declare const optimizerMethod: string;
|
|
507
|
-
//#endregion
|
|
508
|
-
//#region src/improvement/profile-improvement-harness.d.ts
|
|
487
|
+
export declare const optimizerMethod: string;
|
|
509
488
|
type ProfileImprovementHarnessTrainOptions = Omit<ImproveTrainingOptions, 'mode'>;
|
|
510
489
|
interface CreateProfileImprovementHarnessOptions<TScenario extends Scenario$1, TArtifact> {
|
|
511
490
|
/** Exact baseline profile. It is parsed, detached, and frozen at construction. */
|
|
@@ -549,17 +528,13 @@ interface ProfileImprovementHarness<TScenario extends Scenario$1, TArtifact> {
|
|
|
549
528
|
* harness. The returned `run` method remains generic over every existing
|
|
550
529
|
* profile surface, optimization method, split, gate, and budget option.
|
|
551
530
|
*/
|
|
552
|
-
declare function createProfileImprovementHarness<TScenario extends Scenario$1, TArtifact>(options: CreateProfileImprovementHarnessOptions<TScenario, TArtifact>): ProfileImprovementHarness<TScenario, TArtifact>;
|
|
553
|
-
//#endregion
|
|
554
|
-
//#region src/improvement/reflective-generator.d.ts
|
|
531
|
+
export declare function createProfileImprovementHarness<TScenario extends Scenario$1, TArtifact>(options: CreateProfileImprovementHarnessOptions<TScenario, TArtifact>): ProfileImprovementHarness<TScenario, TArtifact>;
|
|
555
532
|
interface ReflectiveGeneratorOptions {
|
|
556
533
|
/** Bind proposal reads and paid calls to this candidate's worktree and account. */
|
|
557
534
|
createImprovementProposalSource(context: Parameters<CandidateGenerator['generate']>[0]): ImprovementProposalSource<SurfaceImprovementEdit>;
|
|
558
535
|
}
|
|
559
536
|
/** Cheap no-sandbox `CandidateGenerator` (the `shots=1` setting): draft surface edits via the improvement adapter and apply them as one coherent candidate. */
|
|
560
|
-
declare function reflectiveGenerator(opts: ReflectiveGeneratorOptions): CandidateGenerator;
|
|
561
|
-
//#endregion
|
|
562
|
-
//#region src/improvement/reflective-profile-proposer.d.ts
|
|
537
|
+
export declare function reflectiveGenerator(opts: ReflectiveGeneratorOptions): CandidateGenerator;
|
|
563
538
|
/** One chat completion, made by the caller's client. */
|
|
564
539
|
type ReflectiveProposerChat = (request: {
|
|
565
540
|
readonly messages: ReadonlyArray<{
|
|
@@ -622,9 +597,7 @@ interface ReflectiveProfileProposerOptions {
|
|
|
622
597
|
readonly maxSurfaceChars?: number;
|
|
623
598
|
}
|
|
624
599
|
/** Build the maintained reflective proposer for a profile text surface. */
|
|
625
|
-
declare function reflectiveProfileProposer(options: ReflectiveProfileProposerOptions): SurfaceProposer<ProposalFinding>;
|
|
626
|
-
//#endregion
|
|
627
|
-
//#region src/knowledge/activation.d.ts
|
|
600
|
+
export declare function reflectiveProfileProposer(options: ReflectiveProfileProposerOptions): SurfaceProposer<ProposalFinding>;
|
|
628
601
|
interface CreateKnowledgeImprovementActivationExecutorOptions extends Omit<PromoteKnowledgeCandidateOptions, 'root' | 'candidate'> {
|
|
629
602
|
root: string;
|
|
630
603
|
identity: string;
|
|
@@ -635,9 +608,7 @@ interface KnowledgeImprovementActivationExecutor {
|
|
|
635
608
|
reconcile: AgentImprovementActivationReconciliation;
|
|
636
609
|
}
|
|
637
610
|
/** Apply or restore one local knowledge candidate through the shared activation contract. */
|
|
638
|
-
declare function createKnowledgeImprovementActivationExecutor(options: CreateKnowledgeImprovementActivationExecutorOptions): KnowledgeImprovementActivationExecutor;
|
|
639
|
-
//#endregion
|
|
640
|
-
//#region src/knowledge/supervised-update.d.ts
|
|
611
|
+
export declare function createKnowledgeImprovementActivationExecutor(options: CreateKnowledgeImprovementActivationExecutorOptions): KnowledgeImprovementActivationExecutor;
|
|
641
612
|
interface KnowledgeReadinessCheckInput {
|
|
642
613
|
root: string;
|
|
643
614
|
goal: string;
|
|
@@ -651,8 +622,6 @@ type KnowledgeReadinessCheckResult = boolean | {
|
|
|
651
622
|
metadata?: Record<string, unknown>;
|
|
652
623
|
};
|
|
653
624
|
type KnowledgeReadinessCheck = (input: KnowledgeReadinessCheckInput) => Promise<KnowledgeReadinessCheckResult> | KnowledgeReadinessCheckResult;
|
|
654
|
-
//#endregion
|
|
655
|
-
//#region src/knowledge/improvement-job.d.ts
|
|
656
625
|
interface RunKnowledgeImprovementJobOptions extends Omit<KnowledgeImprovementOptions, 'updateKnowledge'> {
|
|
657
626
|
budget: Budget;
|
|
658
627
|
readinessCheck?: KnowledgeReadinessCheck;
|
|
@@ -698,11 +667,9 @@ interface KnowledgeImprovementExperimentBundles {
|
|
|
698
667
|
candidate: AgentCandidateBundle;
|
|
699
668
|
}
|
|
700
669
|
/** Produce a frozen KB candidate while leaving live knowledge content unchanged. */
|
|
701
|
-
declare function runKnowledgeImprovementJob(options: RunKnowledgeImprovementJobOptions): Promise<KnowledgeImprovementJobResult>;
|
|
670
|
+
export declare function runKnowledgeImprovementJob(options: RunKnowledgeImprovementJobOptions): Promise<KnowledgeImprovementJobResult>;
|
|
702
671
|
/** Attach both frozen knowledge inputs to one otherwise-identical bundle pair. */
|
|
703
|
-
declare function buildKnowledgeImprovementExperimentBundles(bundle: AgentCandidateBundle, knowledge: KnowledgeImprovementCandidatePair): KnowledgeImprovementExperimentBundles;
|
|
704
|
-
//#endregion
|
|
705
|
-
//#region src/model-resolution.d.ts
|
|
672
|
+
export declare function buildKnowledgeImprovementExperimentBundles(bundle: AgentCandidateBundle, knowledge: KnowledgeImprovementCandidatePair): KnowledgeImprovementExperimentBundles;
|
|
706
673
|
/**
|
|
707
674
|
*
|
|
708
675
|
* Chat-model resolution + catalog validation — the shared primitive every
|
|
@@ -742,16 +709,16 @@ interface RouterEnv {
|
|
|
742
709
|
TANGLE_ROUTER_BASE_URL?: string;
|
|
743
710
|
}
|
|
744
711
|
/** Default Tangle Router base URL used when no env override is set. */
|
|
745
|
-
declare const DEFAULT_ROUTER_BASE_URL = "https://router.tangle.tools";
|
|
712
|
+
export declare const DEFAULT_ROUTER_BASE_URL = "https://router.tangle.tools";
|
|
746
713
|
/** Resolve the router base URL from env, normalised — no trailing `/v1` or `/`. */
|
|
747
|
-
declare function resolveRouterBaseUrl(env?: RouterEnv): string;
|
|
714
|
+
export declare function resolveRouterBaseUrl(env?: RouterEnv): string;
|
|
748
715
|
/**
|
|
749
716
|
* Fetch the model catalog from the router's `/v1/models`. Throws on a non-2xx
|
|
750
717
|
* response — callers decide whether to fail open (empty catalog) or closed.
|
|
751
718
|
*/
|
|
752
|
-
declare function getModels(routerBaseUrl?: string): Promise<ModelInfo[]>;
|
|
719
|
+
export declare function getModels(routerBaseUrl?: string): Promise<ModelInfo[]>;
|
|
753
720
|
/** Trim a candidate model id; `undefined` for non-strings and blanks. */
|
|
754
|
-
declare function cleanModelId(value: unknown): string | undefined;
|
|
721
|
+
export declare function cleanModelId(value: unknown): string | undefined;
|
|
755
722
|
interface ChatModelCandidate {
|
|
756
723
|
/** Stable label for telemetry — e.g. `request`, `workspace`, `env`. */
|
|
757
724
|
source: string;
|
|
@@ -767,7 +734,7 @@ interface ResolvedChatModel {
|
|
|
767
734
|
* order, so each product keeps its own policy (request → workspace → env,
|
|
768
735
|
* etc.) while the first-non-blank logic and the telemetry shape stay shared.
|
|
769
736
|
*/
|
|
770
|
-
declare function resolveChatModel(candidates: ChatModelCandidate[], fallback: ResolvedChatModel): ResolvedChatModel;
|
|
737
|
+
export declare function resolveChatModel(candidates: ChatModelCandidate[], fallback: ResolvedChatModel): ResolvedChatModel;
|
|
771
738
|
type ChatModelValidation = {
|
|
772
739
|
succeeded: true;
|
|
773
740
|
value: string;
|
|
@@ -781,7 +748,7 @@ type ChatModelValidation = {
|
|
|
781
748
|
* catalog. Fails closed: when the catalog cannot be fetched, an unverifiable
|
|
782
749
|
* id is rejected rather than admitted — a bad model never reaches the agent.
|
|
783
750
|
*/
|
|
784
|
-
declare function validateChatModelId(modelId: unknown, options?: {
|
|
751
|
+
export declare function validateChatModelId(modelId: unknown, options?: {
|
|
785
752
|
/**
|
|
786
753
|
* Known-good ids that skip the catalog round trip — e.g. the product's
|
|
787
754
|
* default model plus any env-configured ids.
|
|
@@ -791,16 +758,12 @@ declare function validateChatModelId(modelId: unknown, options?: {
|
|
|
791
758
|
/** Injectable catalog loader — overridden in tests. */
|
|
792
759
|
loadModels?: (routerBaseUrl: string) => Promise<ModelInfo[]>;
|
|
793
760
|
}): Promise<ChatModelValidation>;
|
|
794
|
-
//#endregion
|
|
795
|
-
//#region src/pricing/router-prices.generated.d.ts
|
|
796
761
|
/** The Router catalog file and commit these prices were copied from. */
|
|
797
|
-
declare const ROUTER_PRICE_SOURCE: {
|
|
762
|
+
export declare const ROUTER_PRICE_SOURCE: {
|
|
798
763
|
readonly repository: "tangle-network/tangle-router";
|
|
799
764
|
readonly path: "pricing/researched-provider-prices.json";
|
|
800
765
|
readonly commit: "e3445f270eba5234a2f7e85dda1a88743c20f322";
|
|
801
766
|
};
|
|
802
|
-
//#endregion
|
|
803
|
-
//#region src/pricing/router-prices.d.ts
|
|
804
767
|
interface TokenWork {
|
|
805
768
|
readonly model: string;
|
|
806
769
|
/** The whole prompt, cache reads and writes included. */
|
|
@@ -817,41 +780,33 @@ interface TokenWork {
|
|
|
817
780
|
* their own rates when the Router lists them. A per-request tier (some models charge more past a
|
|
818
781
|
* prompt size) is not applied: a run total does not keep each request's prompt size.
|
|
819
782
|
*/
|
|
820
|
-
declare function priceTokens(work: TokenWork): number | undefined;
|
|
821
|
-
//#endregion
|
|
822
|
-
//#region src/readiness.d.ts
|
|
783
|
+
export declare function priceTokens(work: TokenWork): number | undefined;
|
|
823
784
|
/**
|
|
824
785
|
* Map a `KnowledgeReadinessReport` to a three-state branch (`ready` / `blocked` / `caveat`) the runtime, route handlers, and UI shells all switch on.
|
|
825
786
|
*
|
|
826
787
|
* @stable
|
|
827
788
|
*/
|
|
828
|
-
declare function decideKnowledgeReadiness(report: KnowledgeReadinessReport$1, options?: {
|
|
789
|
+
export declare function decideKnowledgeReadiness(report: KnowledgeReadinessReport$1, options?: {
|
|
829
790
|
minimumScore?: number;
|
|
830
791
|
}): KnowledgeReadinessDecision;
|
|
831
|
-
//#endregion
|
|
832
|
-
//#region src/run.d.ts
|
|
833
792
|
/**
|
|
834
793
|
* Single-shot task lifecycle for adapter-driven tasks: readiness-gated, emits the runtime lifecycle event vocabulary, session-store pluggable.
|
|
835
794
|
*
|
|
836
795
|
* @stable
|
|
837
796
|
*/
|
|
838
|
-
declare function runAgentTask<TState, TAction, TActionResult, TEval extends ControlEvalResult$1 = ControlEvalResult$1>(options: RunAgentTaskOptions<TState, TAction, TActionResult, TEval>): Promise<AgentTaskRunResult<TState, TAction, TActionResult, TEval>>;
|
|
797
|
+
export declare function runAgentTask<TState, TAction, TActionResult, TEval extends ControlEvalResult$1 = ControlEvalResult$1>(options: RunAgentTaskOptions<TState, TAction, TActionResult, TEval>): Promise<AgentTaskRunResult<TState, TAction, TActionResult, TEval>>;
|
|
839
798
|
/**
|
|
840
799
|
* Streaming task lifecycle: delegates execution to an `AgentExecutionBackend` (model API, sandbox, or custom iterable) and yields lifecycle events as they happen.
|
|
841
800
|
*
|
|
842
801
|
* @stable
|
|
843
802
|
*/
|
|
844
|
-
declare function runAgentTaskStream<TInput extends AgentBackendInput = AgentBackendInput>(options: RunAgentTaskStreamOptions<TInput>): AsyncIterable<RuntimeStreamEvent>;
|
|
845
|
-
//#endregion
|
|
846
|
-
//#region src/runtime/isolated-check-result.d.ts
|
|
803
|
+
export declare function runAgentTaskStream<TInput extends AgentBackendInput = AgentBackendInput>(options: RunAgentTaskStreamOptions<TInput>): AsyncIterable<RuntimeStreamEvent>;
|
|
847
804
|
/** Decode the existing execution contract without widening or reinterpreting its evidence. */
|
|
848
|
-
declare const isolatedCheckBoxEvidenceSchema: ZodType<IsolatedCheckBoxEvidence>;
|
|
805
|
+
export declare const isolatedCheckBoxEvidenceSchema: ZodType<IsolatedCheckBoxEvidence>;
|
|
849
806
|
/** Execution evidence, not a verdict about task correctness or permission to execute again. */
|
|
850
|
-
declare const isolatedCheckResultSchema: ZodType<IsolatedCheckResult>;
|
|
851
|
-
//#endregion
|
|
852
|
-
//#region src/sessions.d.ts
|
|
807
|
+
export declare const isolatedCheckResultSchema: ZodType<IsolatedCheckResult>;
|
|
853
808
|
/** In-memory `RuntimeSessionStore` for single-process use and tests. @stable */
|
|
854
|
-
declare class InMemoryRuntimeSessionStore implements RuntimeSessionStore {
|
|
809
|
+
export declare class InMemoryRuntimeSessionStore implements RuntimeSessionStore {
|
|
855
810
|
private readonly sessions;
|
|
856
811
|
private readonly events;
|
|
857
812
|
get(sessionId: string): RuntimeSession | undefined;
|
|
@@ -859,8 +814,6 @@ declare class InMemoryRuntimeSessionStore implements RuntimeSessionStore {
|
|
|
859
814
|
appendEvent(sessionId: string, event: RuntimeStreamEvent): void;
|
|
860
815
|
listEvents(sessionId: string): RuntimeStreamEvent[];
|
|
861
816
|
}
|
|
862
|
-
//#endregion
|
|
863
|
-
//#region src/sse.d.ts
|
|
864
817
|
/** @stable */
|
|
865
818
|
interface ServerSentEventOptions {
|
|
866
819
|
event?: string;
|
|
@@ -868,9 +821,8 @@ interface ServerSentEventOptions {
|
|
|
868
821
|
retry?: number;
|
|
869
822
|
}
|
|
870
823
|
/** Serialize a `KnowledgeReadinessReport` as a Server-Sent Event string. @stable */
|
|
871
|
-
declare function readinessServerSentEvent(report: KnowledgeReadinessReport$1, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
|
|
824
|
+
export declare function readinessServerSentEvent(report: KnowledgeReadinessReport$1, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
|
|
872
825
|
/** Serialize a `RuntimeStreamEvent` as a Server-Sent Event string. @stable */
|
|
873
|
-
declare function runtimeStreamServerSentEvent(event: RuntimeStreamEvent, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
|
|
874
|
-
|
|
875
|
-
export { type AgentAdapter, type AgentBackendContext, type AgentBackendInput, AgentEvalError, type AgentEvalErrorCode, type AgentExecutionBackend, type AgentImprovementActivationReconciliation, type AgentImprovementActivationResultStore, type AgentImprovementActivationTransition, type AgentKnowledgeProvider, type AgentRuntimeEvent, type AgentRuntimeEventSink, type AgentTaskContext, type AgentTaskRunResult, type AgentTaskSpec, type AgentTaskStatus, type AgenticGeneratorExecutorForWorktree, type AgenticGeneratorOptions, type AgenticGeneratorShotDisposition, type AgenticGeneratorShotExecution, type AgenticGeneratorShotReceipt, type AuthSource, type BackendCallPolicy, BackendTransportError, type CandidateGenerator, type ChatModelCandidate, type ChatModelValidation, type CheckpointServingPort, type CircuitBreakerConfig, ConfigError, type ControlBudget, type ControlDecision, type ControlEvalResult, type ControlRunResult, type ControlStep, type ControlledTrainingCommand, type Conversation, type ConversationDriveState, type ConversationParticipant, type ConversationPolicy, type ConversationResult, type ConversationStreamEvent, type ConversationTurn, type CreateKnowledgeImprovementActivationExecutorOptions, type CreateProfileImprovementHarnessOptions, DEFAULT_ROUTER_BASE_URL, type DataAcquisitionPlan, type DecideSearchImprovementOptions, type DeepReadonly, type DelegatedLoopRunner, type HaltContext, type HaltPredicate, type HaltReason, type HaltSignal, type ImproveCandidateValidationInput, type ImproveCandidateValidator, type ImproveCodeBaseOptions, type ImproveCodeOptions, type ImproveCodeResult, type ImproveCodeRunOptions, type ImproveCost, type ImproveCustomCodeGeneratorOptions, type ImproveLineage, type ImproveMethodContext, type ImproveMethodFactory, type ImproveMethodLineage, type ImproveMethodOptions, type ImproveMethodResult, type ImproveMethodSource, type ImproveOptimizationRunOptions, type ImproveProfileAgent, type ImproveProfileComponents, type ImproveProfileSurface, type ImproveRuntimeCodeGeneratorOptions, type ImproveScenarioPartitions, type ImproveSearchAgent, type ImproveSearchIdentity, type ImproveSearchMethod, type ImproveSearchOptions, type ImproveSearchResult, type ImproveSkillsOptions, type ImproveSurface, type ImproveTrainingOptions, type ImproveTrainingResult, type ImprovementCodeCandidate, type ImprovementProfileCandidate, InMemoryRuntimeSessionStore, JudgeError, type KnowledgeImprovementActivationExecutor, type KnowledgeImprovementCandidatePair, type KnowledgeImprovementExperimentBundles, type KnowledgeImprovementJobMeasurement, type KnowledgeImprovementJobResult, type KnowledgeReadinessCheck, type KnowledgeReadinessCheckInput, type KnowledgeReadinessCheckResult, type KnowledgeReadinessDecision, type KnowledgeReadinessReport, type KnowledgeRequirement, type ModelInfo, NotFoundError, type OfficialGepaOptions, type OfficialOptimizerContextOptions, type OfficialSensitiveCandidateInput, type OfficialSkillOptOptions, type OpenAIChatResponseFormat, type OpenAIChatTool, type OpenAIChatToolChoice, type OtelAttribute, type OtelExportConfig, type OtelExportStats, type OtelExporter, type OtelSpan, type PersonaConversationResult, type PersonaDriver, type ProfileImprovementHarness, type ProfileImprovementHarnessRunOptions, type ProfileImprovementHarnessTrainOptions, type ProfileTrainer, type ProfileTrainerRequest, ROUTER_PRICE_SOURCE, type ReadonlyAgentProfile, type ReflectiveGeneratorOptions, type ReflectiveProfileProposerOptions, type ReflectiveProposerChat, type ReflectiveProposerParent, type ReflectiveProposerReply, type ResolvedChatModel, type RetryBackoff, type RetryableErrorPredicate, type RouterEnv, type RunAgentTaskOptions, type RunAgentTaskStreamOptions, type RunConversationOptions, type RunKnowledgeImprovementJobOptions, type RunPersonaConfig, type RunPersonaConversationOptions, type RunRecord, type RuntimeCanonicalStreamEvent, type RuntimeEventCollector, type RuntimeFailureCause, type RuntimeFailureCode, type RuntimeFailureOwner, type RuntimeHookContext, type RuntimeHookErrorContext, type RuntimeHookEvent, type RuntimeHookPhase, type RuntimeHookTarget, type RuntimeHooks, type RuntimeRunCompleteInput, type RuntimeRunCost, type RuntimeRunHandle, type RuntimeRunOptions, type RuntimeRunPersistenceAdapter, type RuntimeRunRow, type RuntimeRunStatus, type RuntimeSession, type RuntimeSessionStore, type RuntimeStreamEvent, type RuntimeStreamEventCollector, type RuntimeStreamEventSink, type RuntimeStreamEventSummary, type RuntimeTelemetryOptions, type SanitizedKnowledgeReadinessReport, type SanitizedKnowledgeRequirement, type SearchCellContext, type SearchDispatchContext, SearchEnvironmentFault, type SearchImprovementDecision, type SearchLane, type SearchLaneKind, type SearchLaneOptions, type SearchMethodOptions, type SearchPromotion, type SearchTraceOptions, type ServerSentEventOptions, type SharedBoxSearchLane, type TokenWork, type TrainingBoundaryResult, type TurnOrder, ValidationError, type Verifier, type VerifyResult, agenticGenerator, auditLoopRunner, buildKnowledgeImprovementExperimentBundles, buildLoopOtelSpans, cleanModelId, commandVerifier, composeRuntimeHooks, createCommandProfileTrainer, createConversationBackend, createIterableBackend, createKnowledgeImprovementActivationExecutor, createOtelExporter, createProfileExecutionBackend, createProfileImprovementHarness, createRuntimeEventCollector, createRuntimeStreamEventCollector, createSandboxPromptBackend, decideKnowledgeReadiness, decideSearchImprovement, dedicatedLane, defineRuntimeHooks, getModels, improve, isolatedCheckBoxEvidenceSchema, isolatedCheckResultSchema, loopEventToOtelSpan, officialGepa, officialSkillOpt, optimizerMethod, padSpanId, padTraceId, priceTokens, readinessServerSentEvent, reflectiveGenerator, reflectiveProfileProposer, resolveChatModel, resolveRouterBaseUrl, routerLane, runAgentTask, runAgentTaskStream, runConversation, runConversationStream, runKnowledgeImprovementJob, runPersonaConversation, runPersonaDispatch, runtimeStreamServerSentEvent, sanitizeKnowledgeReadinessReport, searchMethod, sharedBoxLane, startRuntimeRun, subscriptionLane, validateChatModelId };
|
|
826
|
+
export declare function runtimeStreamServerSentEvent(event: RuntimeStreamEvent, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
|
|
827
|
+
export { type AgentAdapter, type AgentBackendContext, type AgentBackendInput, AgentEvalError, type AgentEvalErrorCode, type AgentExecutionBackend, type AgentImprovementActivationReconciliation, type AgentImprovementActivationResultStore, type AgentImprovementActivationTransition, type AgentKnowledgeProvider, type AgentRuntimeEvent, type AgentRuntimeEventSink, type AgentTaskContext, type AgentTaskRunResult, type AgentTaskSpec, type AgentTaskStatus, type AgenticGeneratorExecutorForWorktree, type AgenticGeneratorOptions, type AgenticGeneratorShotDisposition, type AgenticGeneratorShotExecution, type AgenticGeneratorShotReceipt, type AuthSource, type BackendCallPolicy, BackendTransportError, type CandidateGenerator, type ChatModelCandidate, type ChatModelValidation, type CheckpointServingPort, type CircuitBreakerConfig, ConfigError, type ControlBudget, type ControlDecision, type ControlEvalResult, type ControlRunResult, type ControlStep, type ControlledTrainingCommand, type Conversation, type ConversationDriveState, type ConversationParticipant, type ConversationPolicy, type ConversationResult, type ConversationStreamEvent, type ConversationTurn, type CreateKnowledgeImprovementActivationExecutorOptions, type CreateProfileImprovementHarnessOptions, type DataAcquisitionPlan, type DecideSearchImprovementOptions, type DeepReadonly, type DelegatedLoopRunner, type HaltContext, type HaltPredicate, type HaltReason, type HaltSignal, type ImproveCandidateValidationInput, type ImproveCandidateValidator, type ImproveCodeBaseOptions, type ImproveCodeOptions, type ImproveCodeResult, type ImproveCodeRunOptions, type ImproveCost, type ImproveCustomCodeGeneratorOptions, type ImproveLineage, type ImproveMethodContext, type ImproveMethodFactory, type ImproveMethodLineage, type ImproveMethodOptions, type ImproveMethodResult, type ImproveMethodSource, type ImproveOptimizationRunOptions, type ImproveProfileAgent, type ImproveProfileComponents, type ImproveProfileSurface, type ImproveRuntimeCodeGeneratorOptions, type ImproveScenarioPartitions, type ImproveSearchAgent, type ImproveSearchIdentity, type ImproveSearchMethod, type ImproveSearchOptions, type ImproveSearchResult, type ImproveSkillsOptions, type ImproveSurface, type ImproveTrainingOptions, type ImproveTrainingResult, type ImprovementCodeCandidate, type ImprovementProfileCandidate, JudgeError, type KnowledgeImprovementActivationExecutor, type KnowledgeImprovementCandidatePair, type KnowledgeImprovementExperimentBundles, type KnowledgeImprovementJobMeasurement, type KnowledgeImprovementJobResult, type KnowledgeReadinessCheck, type KnowledgeReadinessCheckInput, type KnowledgeReadinessCheckResult, type KnowledgeReadinessDecision, type KnowledgeReadinessReport, type KnowledgeRequirement, type ModelInfo, NotFoundError, type OfficialGepaOptions, type OfficialOptimizerContextOptions, type OfficialSensitiveCandidateInput, type OfficialSkillOptOptions, type OpenAIChatResponseFormat, type OpenAIChatTool, type OpenAIChatToolChoice, type OtelAttribute, type OtelExportConfig, type OtelExportStats, type OtelExporter, type OtelSpan, type PersonaConversationResult, type PersonaDriver, type ProfileImprovementHarness, type ProfileImprovementHarnessRunOptions, type ProfileImprovementHarnessTrainOptions, type ProfileTrainer, type ProfileTrainerRequest, type ReadonlyAgentProfile, type ReflectiveGeneratorOptions, type ReflectiveProfileProposerOptions, type ReflectiveProposerChat, type ReflectiveProposerParent, type ReflectiveProposerReply, type ResolvedChatModel, type RetryBackoff, type RetryableErrorPredicate, type RouterEnv, type RunAgentTaskOptions, type RunAgentTaskStreamOptions, type RunConversationOptions, type RunKnowledgeImprovementJobOptions, type RunPersonaConfig, type RunPersonaConversationOptions, type RunRecord, type RuntimeCanonicalStreamEvent, type RuntimeEventCollector, type RuntimeFailureCause, type RuntimeFailureCode, type RuntimeFailureOwner, type RuntimeHookContext, type RuntimeHookErrorContext, type RuntimeHookEvent, type RuntimeHookPhase, type RuntimeHookTarget, type RuntimeHooks, type RuntimeRunCompleteInput, type RuntimeRunCost, type RuntimeRunHandle, type RuntimeRunOptions, type RuntimeRunPersistenceAdapter, type RuntimeRunRow, type RuntimeRunStatus, type RuntimeSession, type RuntimeSessionStore, type RuntimeStreamEvent, type RuntimeStreamEventCollector, type RuntimeStreamEventSink, type RuntimeStreamEventSummary, type RuntimeTelemetryOptions, type SanitizedKnowledgeReadinessReport, type SanitizedKnowledgeRequirement, type SearchCellContext, type SearchDispatchContext, SearchEnvironmentFault, type SearchImprovementDecision, type SearchLane, type SearchLaneKind, type SearchLaneOptions, type SearchMethodOptions, type SearchPromotion, type SearchTraceOptions, type ServerSentEventOptions, type SharedBoxSearchLane, type TokenWork, type TrainingBoundaryResult, type TurnOrder, ValidationError, type Verifier, type VerifyResult, agenticGenerator, auditLoopRunner, buildLoopOtelSpans, commandVerifier, composeRuntimeHooks, createCommandProfileTrainer, createOtelExporter, createRuntimeEventCollector, createRuntimeStreamEventCollector, decideSearchImprovement, dedicatedLane, defineRuntimeHooks, improve, loopEventToOtelSpan, padSpanId, padTraceId, routerLane, sanitizeKnowledgeReadinessReport, searchMethod, sharedBoxLane, startRuntimeRun, subscriptionLane };
|
|
876
828
|
//# sourceMappingURL=index.d.ts.map
|