@tangle-network/agent-runtime 0.101.0 → 0.102.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.
Files changed (53) hide show
  1. package/README.md +1 -1
  2. package/dist/agent.js +4 -3
  3. package/dist/agent.js.map +1 -1
  4. package/dist/candidate-execution/index.d.ts +13 -2
  5. package/dist/candidate-execution/index.js +7 -3
  6. package/dist/{chunk-LV6WCT43.js → chunk-23Z7N5IG.js} +5 -5
  7. package/dist/chunk-2VZYRB55.js +834 -0
  8. package/dist/chunk-2VZYRB55.js.map +1 -0
  9. package/dist/{chunk-VOPHC4LB.js → chunk-4AMAFNUD.js} +32 -192
  10. package/dist/chunk-4AMAFNUD.js.map +1 -0
  11. package/dist/{chunk-BXZ7GPL4.js → chunk-AIBIRAJ6.js} +2 -2
  12. package/dist/{chunk-Y3SRWZMP.js → chunk-AYU35OTU.js} +2 -2
  13. package/dist/{chunk-U4PRAATQ.js → chunk-DA7YL6I4.js} +3 -3
  14. package/dist/{chunk-HZDEXTSL.js → chunk-IKGCKPDX.js} +2 -833
  15. package/dist/chunk-IKGCKPDX.js.map +1 -0
  16. package/dist/{chunk-WYC2XJF2.js → chunk-KSBUSEUA.js} +2 -2
  17. package/dist/{chunk-UQ6PNNXM.js → chunk-KVJQV342.js} +5 -3
  18. package/dist/{chunk-UQ6PNNXM.js.map → chunk-KVJQV342.js.map} +1 -1
  19. package/dist/chunk-LKKIM5QD.js +200 -0
  20. package/dist/chunk-LKKIM5QD.js.map +1 -0
  21. package/dist/{chunk-FXF2OL34.js → chunk-MAONWP4R.js} +2 -2
  22. package/dist/{chunk-SGQ4YIQW.js → chunk-N2CEE5Q3.js} +3 -3
  23. package/dist/chunk-SPCD4IQQ.js +578 -0
  24. package/dist/chunk-SPCD4IQQ.js.map +1 -0
  25. package/dist/{chunk-HGSHPVJ6.js → chunk-TGDHHHH4.js} +189 -189
  26. package/dist/{chunk-HGSHPVJ6.js.map → chunk-TGDHHHH4.js.map} +1 -1
  27. package/dist/{improve-g75IE2Cx.d.ts → improve-CIml6hT3.d.ts} +7 -0
  28. package/dist/index.d.ts +4 -4
  29. package/dist/index.js +16 -10
  30. package/dist/index.js.map +1 -1
  31. package/dist/intelligence.d.ts +60 -59
  32. package/dist/intelligence.js +65 -473
  33. package/dist/intelligence.js.map +1 -1
  34. package/dist/knowledge.js +8 -6
  35. package/dist/loop-runner-bin.js +5 -4
  36. package/dist/loops.js +4 -3
  37. package/dist/mcp/bin.js +4 -3
  38. package/dist/mcp/bin.js.map +1 -1
  39. package/dist/mcp/index.js +6 -5
  40. package/dist/mcp/index.js.map +1 -1
  41. package/dist/testing.d.ts +6 -0
  42. package/dist/testing.js +2638 -0
  43. package/dist/testing.js.map +1 -0
  44. package/package.json +11 -4
  45. package/dist/chunk-HZDEXTSL.js.map +0 -1
  46. package/dist/chunk-VOPHC4LB.js.map +0 -1
  47. /package/dist/{chunk-LV6WCT43.js.map → chunk-23Z7N5IG.js.map} +0 -0
  48. /package/dist/{chunk-BXZ7GPL4.js.map → chunk-AIBIRAJ6.js.map} +0 -0
  49. /package/dist/{chunk-Y3SRWZMP.js.map → chunk-AYU35OTU.js.map} +0 -0
  50. /package/dist/{chunk-U4PRAATQ.js.map → chunk-DA7YL6I4.js.map} +0 -0
  51. /package/dist/{chunk-WYC2XJF2.js.map → chunk-KSBUSEUA.js.map} +0 -0
  52. /package/dist/{chunk-FXF2OL34.js.map → chunk-MAONWP4R.js.map} +0 -0
  53. /package/dist/{chunk-SGQ4YIQW.js.map → chunk-N2CEE5Q3.js.map} +0 -0
@@ -66,6 +66,13 @@ interface CandidateGenerator {
66
66
  }): Promise<{
67
67
  applied: boolean;
68
68
  summary: string;
69
+ /** Short slug for the candidate. When present (with `rationale`), the
70
+ * driver returns a `ProposedCandidate` wrapper so the label survives to
71
+ * `GenerationRecord` and the emitted provenance. */
72
+ label?: string;
73
+ /** Why this change was proposed — bounded, derived from the findings the
74
+ * shot addressed. Paired with `label`. */
75
+ rationale?: string;
69
76
  }>;
70
77
  }
71
78
  interface ImprovementDriverOptions {
package/dist/index.d.ts CHANGED
@@ -2,12 +2,12 @@ import { AgentEvalError, AnalystFinding, KnowledgeReadinessReport, RunRecord, Co
2
2
  export { AgentEvalError, AgentEvalErrorCode, ConfigError, ControlBudget, ControlDecision, ControlEvalResult, ControlRunResult, ControlStep, DataAcquisitionPlan, JudgeError, KnowledgeReadinessReport, KnowledgeRequirement, NotFoundError, RunRecord, ValidationError } from '@tangle-network/agent-eval';
3
3
  import { c as createOpenAICompatibleBackend } from './backends-BO4Jqoe2.js';
4
4
  export { a as createIterableBackend, b as createSandboxPromptBackend } from './backends-BO4Jqoe2.js';
5
- export { AGENT_CANDIDATE_EXECUTION_SUPPORT, AgentCandidateBundleInput, AgentCandidateCodeSource, AgentCandidateCodeSurfaceSource, AgentCandidateModelGrantActivateInput, AgentCandidateModelGrantClient, AgentCandidateModelGrantReservation, AgentCandidateModelGrantReserveInput, AgentCandidateModelGrantSettleInput, AgentCandidateProfileSource, AgentCandidateWorkspaceArchiveLimits, BuildAgentCandidateBundleInput, CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, CANDIDATE_KNOWLEDGE_ROOT_ENV, CaptureAgentCandidateWorkspaceOptions, CapturedAgentCandidateWorkspace, CreateAgentCandidateWorkspacePortOptions, CreateProtectedAgentCandidateModelPortOptions, DisposePreparedAgentCandidateOptions, FileAgentCandidateExecutionClaimStore, FileAgentCandidateExecutionClaimStoreOptions, RecoverExpiredAgentCandidateOptions, buildAgentCandidateBundle, candidateExecutionClaim, candidateKnowledgeExecutionPaths, captureAgentCandidateWorkspace, captureAgentCandidateWorkspaceFiles, createAgentCandidateWorkspacePort, createProtectedAgentCandidateModelPort, disposePreparedAgentCandidateExecution, persistCandidateOutputArtifact, recoverExpiredAgentCandidateExecution, sealAgentCandidateBundle, verifyAgentCandidateBundle } from './candidate-execution/index.js';
5
+ export { AGENT_CANDIDATE_EXECUTION_SUPPORT, AgentCandidateBundleInput, AgentCandidateCodeSource, AgentCandidateCodeSurfaceSource, AgentCandidateModelGrantActivateInput, AgentCandidateModelGrantClient, AgentCandidateModelGrantReservation, AgentCandidateModelGrantReserveInput, AgentCandidateModelGrantSettleInput, AgentCandidateProfileSource, AgentCandidateWorkspaceArchiveLimits, BuildAgentCandidateBundleInput, CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, CANDIDATE_KNOWLEDGE_ROOT_ENV, CaptureAgentCandidateWorkspaceOptions, CapturedAgentCandidateWorkspace, CreateAgentCandidateWorkspacePortOptions, CreateProtectedAgentCandidateModelPortOptions, DisposePreparedAgentCandidateOptions, ExactProcessCandidateExecutorOptions, FileAgentCandidateExecutionClaimStore, FileAgentCandidateExecutionClaimStoreOptions, RecoverExpiredAgentCandidateOptions, buildAgentCandidateBundle, candidateExecutionClaim, candidateKnowledgeExecutionPaths, captureAgentCandidateWorkspace, captureAgentCandidateWorkspaceFiles, createAgentCandidateWorkspacePort, createProtectedAgentCandidateModelPort, disposePreparedAgentCandidateExecution, exactProcessProviderAsCandidateExecutor, persistCandidateOutputArtifact, recoverExpiredAgentCandidateExecution, sealAgentCandidateBundle, verifyAgentCandidateBundle } from './candidate-execution/index.js';
6
6
  export { a as AgentCandidateExecutionAttemptRecord, b as AgentCandidateExecutionAttemptRef, c as AgentCandidateExecutionClaim, d as AgentCandidateExecutionClaimResult, A as AgentCandidateExecutionClaimStore, e as AgentCandidateExecutionCleanupHandles, f as AgentCandidateExecutionFailureClass, g as AgentCandidateExecutionFinishResult, h as AgentCandidateExecutionLease, i as AgentCandidateExecutionPhase, j as AgentCandidateExecutionPhaseResult, k as AgentCandidateExecutionRecoveryEvidence, l as AgentCandidateExecutionStageResult, m as AgentCandidateExecutionTerminalRecord, n as AgentCandidateExecutionTerminalResult, o as AgentCandidatePreparationEvidence, q as AgentCandidateRetryRejection, E as ExecutePreparedAgentCandidateOptions, I as InMemoryAgentCandidateExecutionClaimStore, P as PrepareAgentCandidateExecutionOptions, r as applyExactAgentProfileDiff, s as executePreparedAgentCandidate, t as parseExactAgentProfile, u as parseExactAgentProfileDiff, v as prepareAgentCandidateExecution } from './profile-DbfaMTdk.js';
7
7
  export { f as AgentCandidateArtifactPort, a as AgentCandidateBenchmarkGraderPort, g as AgentCandidateContainerPort, e as AgentCandidateExecutionPorts, h as AgentCandidateExecutorFinalCapture, i as AgentCandidateExecutorMemoryCapture, A as AgentCandidateExecutorPort, j as AgentCandidateExecutorProfileFile, k as AgentCandidateExecutorRequest, l as AgentCandidateExecutorStopRequest, m as AgentCandidateExecutorTaskOutcomeCapture, n as AgentCandidateExecutorWorkspaceFile, o as AgentCandidateExecutorWorkspaceInput, p as AgentCandidateMemoryPort, q as AgentCandidateMemoryResetResult, r as AgentCandidateModelLimits, s as AgentCandidateModelPort, b as AgentCandidateOutputArtifactPort, t as AgentCandidateOutputPurpose, u as AgentCandidateProtectedModelActivation, v as AgentCandidateProtectedModelReservation, w as AgentCandidateProtectedModelSettlement, x as AgentCandidateProtectedRunCapture, y as AgentCandidateRepositoryPort, c as AgentCandidateRunFinalization, d as AgentCandidateTaskExecution, z as AgentCandidateVerificationPorts, B as AgentCandidateWorkspacePort, C as CANDIDATE_TRACE_ENV, D as CANDIDATE_TRACE_TAGS, E as CanonicalCandidateDocument, P as PreparedAgentCandidateExecution, F as PreparedAgentCandidateInstruction, G as PreparedAgentCandidateKnowledge, H as PreparedAgentCandidateLaunch, I as PreparedAgentCandidateTrace, R as ResolvedAgentCandidateContainer, V as VerifiedAgentCandidate, J as VerifiedAgentCandidateTaskOutcome } from './types-CWqfCO8s.js';
8
8
  export { AuthSource, BackendCallPolicy, CircuitBreakerConfig, CircuitBreakerState, CircuitOpenError, Conversation, ConversationDriveState, ConversationJournal, ConversationJournalEntry, ConversationParticipant, ConversationPolicy, ConversationResult, ConversationStreamEvent, ConversationTurn, D1DatabaseLike, D1StmtLike, DEFAULT_MAX_DEPTH, DeadlineExceededError, FORWARD_HEADERS, FileConversationJournal, ForwardHeaderName, HaltContext, HaltPredicate, HaltReason, HaltSignal, InMemoryConversationJournal, PersonaConversationResult, PersonaDriver, PropagatedHeaders, RetryBackoff, RetryableErrorPredicate, RunConversationOptions, RunPersonaConfig, RunPersonaConversationOptions, SqlAdapter, SqlConversationJournal, TurnOrder, buildForwardHeaders, computeBackoff, createConversationBackend, d1ToSqlAdapter, defaultIsRetryable, defineConversation, isDepthExceeded, makePerAttemptSignal, readDepth, runConversation, runConversationStream, runPersonaConversation, runPersonaDispatch, sleep, slugifySpeaker, turnId } from './conversation.js';
9
- import { V as Verifier, C as CandidateGenerator } from './improve-g75IE2Cx.js';
10
- export { A as AGENTIC_PROFILE_RESOURCE_ROOT, b as AgenticGeneratorOptions, c as AgenticGeneratorShotDisposition, d as AgenticGeneratorShotExecution, e as AgenticGeneratorShotReceipt, f as ImproveCodeOptions, I as ImproveOptions, a as ImproveResult, g as ImproveSkillsOptions, h as ImproveSurface, i as ImprovementCandidate, j as ImprovementDriverOptions, M as ManagedImprovementDriver, k as VerifyResult, l as agenticGenerator, m as commandVerifier, n as improve, o as improvementDriver } from './improve-g75IE2Cx.js';
9
+ import { V as Verifier, C as CandidateGenerator } from './improve-CIml6hT3.js';
10
+ export { A as AGENTIC_PROFILE_RESOURCE_ROOT, b as AgenticGeneratorOptions, c as AgenticGeneratorShotDisposition, d as AgenticGeneratorShotExecution, e as AgenticGeneratorShotReceipt, f as ImproveCodeOptions, I as ImproveOptions, a as ImproveResult, g as ImproveSkillsOptions, h as ImproveSurface, i as ImprovementCandidate, j as ImprovementDriverOptions, M as ManagedImprovementDriver, k as VerifyResult, l as agenticGenerator, m as commandVerifier, n as improve, o as improvementDriver } from './improve-CIml6hT3.js';
11
11
  import { ProposeContext, SurfaceProposer } from '@tangle-network/agent-eval/campaign';
12
12
  import { AgentProfile, AgentProfileDiff } from '@tangle-network/agent-interface';
13
13
  export { AgentCandidateBenchmarkGraderIdentity } from '@tangle-network/agent-interface';
@@ -24,6 +24,7 @@ import { R as RuntimeHooks } from './types-B3vAW0Oq.js';
24
24
  export { c as RuntimeDecisionEvidenceRef, d as RuntimeDecisionKind, e as RuntimeDecisionPoint, f as RuntimeHookContext, g as RuntimeHookErrorContext, h as RuntimeHookEvent, i as RuntimeHookPhase, j as RuntimeHookTarget, k as RuntimeRunHandle, l as RuntimeRunPersistenceAdapter, m as RuntimeRunRow, n as composeRuntimeHooks, o as defineRuntimeHooks, p as notifyRuntimeDecisionPoint, q as notifyRuntimeHookEvent, s as startRuntimeRun } from './types-B3vAW0Oq.js';
25
25
  import { c as RuntimeTelemetryOptions } from './sanitize-BTSsdBXw.js';
26
26
  export { d as RuntimeEventCollector, e as RuntimeStreamEventCollector, S as SanitizedKnowledgeReadinessReport, f as createRuntimeEventCollector, g as createRuntimeStreamEventCollector, s as sanitizeAgentRuntimeEvent, h as sanitizeKnowledgeReadinessReport, i as sanitizeRuntimeStreamEvent } from './sanitize-BTSsdBXw.js';
27
+ import '@tangle-network/agent-interface/environment-provider';
27
28
  import './local-harness-ZqCx51u7.js';
28
29
  import 'node:child_process';
29
30
  import '@tangle-network/agent-knowledge';
@@ -37,7 +38,6 @@ import './kb-gate-CwHO0vz6.js';
37
38
  import './worktree-fanout-DCA3G4bO.js';
38
39
  import './substrate-DO2GHNg2.js';
39
40
  import './environment-provider.js';
40
- import '@tangle-network/agent-interface/environment-provider';
41
41
 
42
42
  /**
43
43
  * `handleChatTurn` — framework-neutral chat-turn HTTP orchestrator.
package/dist/index.js CHANGED
@@ -4,11 +4,11 @@ import {
4
4
  createProtectedAgentCandidateModelPort,
5
5
  disposePreparedAgentCandidateExecution,
6
6
  recoverExpiredAgentCandidateExecution
7
- } from "./chunk-U4PRAATQ.js";
7
+ } from "./chunk-DA7YL6I4.js";
8
8
  import {
9
9
  mcpToolsForRuntimeMcp,
10
10
  mcpToolsForRuntimeMcpSubset
11
- } from "./chunk-WYC2XJF2.js";
11
+ } from "./chunk-KSBUSEUA.js";
12
12
  import {
13
13
  DEFAULT_ROUTER_BASE_URL,
14
14
  cleanModelId,
@@ -27,7 +27,7 @@ import {
27
27
  runLoopRunnerCli,
28
28
  selfImproveLoopRunner,
29
29
  worktreeLoopRunner
30
- } from "./chunk-SGQ4YIQW.js";
30
+ } from "./chunk-N2CEE5Q3.js";
31
31
  import "./chunk-SGKPNBXE.js";
32
32
  import {
33
33
  CircuitBreakerState,
@@ -55,7 +55,10 @@ import {
55
55
  slugifySpeaker,
56
56
  turnId
57
57
  } from "./chunk-2KGAN2HM.js";
58
- import "./chunk-FXF2OL34.js";
58
+ import {
59
+ exactProcessProviderAsCandidateExecutor
60
+ } from "./chunk-SPCD4IQQ.js";
61
+ import "./chunk-MAONWP4R.js";
59
62
  import {
60
63
  InMemoryRuntimeSessionStore,
61
64
  createIterableBackend,
@@ -76,14 +79,15 @@ import {
76
79
  knowledgeReadinessDeliverable,
77
80
  runKnowledgeImprovementJob,
78
81
  runSupervisedKnowledgeUpdate
79
- } from "./chunk-LV6WCT43.js";
82
+ } from "./chunk-23Z7N5IG.js";
80
83
  import "./chunk-5QOB7H74.js";
81
84
  import {
82
85
  captureAgentCandidateWorkspace,
83
86
  captureAgentCandidateWorkspaceFiles,
84
87
  createAgentCandidateWorkspacePort,
85
88
  sealAgentCandidateBundle
86
- } from "./chunk-BXZ7GPL4.js";
89
+ } from "./chunk-AIBIRAJ6.js";
90
+ import "./chunk-LKKIM5QD.js";
87
91
  import {
88
92
  AGENTIC_PROFILE_RESOURCE_ROOT,
89
93
  agenticGenerator,
@@ -91,7 +95,7 @@ import {
91
95
  improve,
92
96
  improvementDriver,
93
97
  rawTraceDistiller
94
- } from "./chunk-VOPHC4LB.js";
98
+ } from "./chunk-4AMAFNUD.js";
95
99
  import {
96
100
  AGENT_CANDIDATE_EXECUTION_SUPPORT,
97
101
  CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV,
@@ -109,13 +113,13 @@ import {
109
113
  persistCandidateOutputArtifact,
110
114
  prepareAgentCandidateExecution,
111
115
  verifyAgentCandidateBundle
112
- } from "./chunk-HGSHPVJ6.js";
116
+ } from "./chunk-TGDHHHH4.js";
113
117
  import {
114
118
  composeRuntimeHooks,
115
119
  defineRuntimeHooks,
116
120
  notifyRuntimeDecisionPoint,
117
121
  notifyRuntimeHookEvent
118
- } from "./chunk-UQ6PNNXM.js";
122
+ } from "./chunk-KVJQV342.js";
119
123
  import "./chunk-DPEUKJRO.js";
120
124
  import {
121
125
  INTELLIGENCE_WIRE_VERSION,
@@ -130,7 +134,8 @@ import {
130
134
  sanitizeAgentRuntimeEvent,
131
135
  sanitizeKnowledgeReadinessReport,
132
136
  sanitizeRuntimeStreamEvent
133
- } from "./chunk-HZDEXTSL.js";
137
+ } from "./chunk-2VZYRB55.js";
138
+ import "./chunk-IKGCKPDX.js";
134
139
  import "./chunk-IMSNJSXH.js";
135
140
  import "./chunk-M6MD6JBS.js";
136
141
  import "./chunk-3MDZX7YU.js";
@@ -1578,6 +1583,7 @@ export {
1578
1583
  defineRuntimeHooks,
1579
1584
  deriveExecutionId,
1580
1585
  disposePreparedAgentCandidateExecution,
1586
+ exactProcessProviderAsCandidateExecutor,
1581
1587
  executePreparedAgentCandidate,
1582
1588
  exportEvalRuns,
1583
1589
  formatSupervisedKnowledgeTask,