@tangle-network/agent-runtime 0.101.1 → 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.
- package/dist/candidate-execution/index.d.ts +13 -2
- package/dist/candidate-execution/index.js +7 -3
- package/dist/{chunk-TA4RBJLE.js → chunk-23Z7N5IG.js} +4 -4
- package/dist/{chunk-RJPQLUDA.js → chunk-4AMAFNUD.js} +28 -6
- package/dist/chunk-4AMAFNUD.js.map +1 -0
- package/dist/{chunk-BXZ7GPL4.js → chunk-AIBIRAJ6.js} +2 -2
- package/dist/{chunk-U4PRAATQ.js → chunk-DA7YL6I4.js} +3 -3
- package/dist/{chunk-DI677IPX.js → chunk-LKKIM5QD.js} +3 -3
- package/dist/chunk-SPCD4IQQ.js +578 -0
- package/dist/chunk-SPCD4IQQ.js.map +1 -0
- package/dist/{chunk-HGSHPVJ6.js → chunk-TGDHHHH4.js} +189 -189
- package/dist/{chunk-HGSHPVJ6.js.map → chunk-TGDHHHH4.js.map} +1 -1
- package/dist/{improve-g75IE2Cx.d.ts → improve-CIml6hT3.d.ts} +7 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +60 -59
- package/dist/intelligence.js +59 -470
- package/dist/intelligence.js.map +1 -1
- package/dist/knowledge.js +5 -5
- package/dist/testing.js +252 -210
- package/dist/testing.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-RJPQLUDA.js.map +0 -1
- /package/dist/{chunk-TA4RBJLE.js.map → chunk-23Z7N5IG.js.map} +0 -0
- /package/dist/{chunk-BXZ7GPL4.js.map → chunk-AIBIRAJ6.js.map} +0 -0
- /package/dist/{chunk-U4PRAATQ.js.map → chunk-DA7YL6I4.js.map} +0 -0
- /package/dist/{chunk-DI677IPX.js.map → chunk-LKKIM5QD.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-
|
|
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-
|
|
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,7 +4,7 @@ import {
|
|
|
4
4
|
createProtectedAgentCandidateModelPort,
|
|
5
5
|
disposePreparedAgentCandidateExecution,
|
|
6
6
|
recoverExpiredAgentCandidateExecution
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DA7YL6I4.js";
|
|
8
8
|
import {
|
|
9
9
|
mcpToolsForRuntimeMcp,
|
|
10
10
|
mcpToolsForRuntimeMcpSubset
|
|
@@ -55,6 +55,9 @@ import {
|
|
|
55
55
|
slugifySpeaker,
|
|
56
56
|
turnId
|
|
57
57
|
} from "./chunk-2KGAN2HM.js";
|
|
58
|
+
import {
|
|
59
|
+
exactProcessProviderAsCandidateExecutor
|
|
60
|
+
} from "./chunk-SPCD4IQQ.js";
|
|
58
61
|
import "./chunk-MAONWP4R.js";
|
|
59
62
|
import {
|
|
60
63
|
InMemoryRuntimeSessionStore,
|
|
@@ -76,15 +79,15 @@ import {
|
|
|
76
79
|
knowledgeReadinessDeliverable,
|
|
77
80
|
runKnowledgeImprovementJob,
|
|
78
81
|
runSupervisedKnowledgeUpdate
|
|
79
|
-
} from "./chunk-
|
|
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-
|
|
87
|
-
import "./chunk-
|
|
89
|
+
} from "./chunk-AIBIRAJ6.js";
|
|
90
|
+
import "./chunk-LKKIM5QD.js";
|
|
88
91
|
import {
|
|
89
92
|
AGENTIC_PROFILE_RESOURCE_ROOT,
|
|
90
93
|
agenticGenerator,
|
|
@@ -92,7 +95,7 @@ import {
|
|
|
92
95
|
improve,
|
|
93
96
|
improvementDriver,
|
|
94
97
|
rawTraceDistiller
|
|
95
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-4AMAFNUD.js";
|
|
96
99
|
import {
|
|
97
100
|
AGENT_CANDIDATE_EXECUTION_SUPPORT,
|
|
98
101
|
CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV,
|
|
@@ -110,7 +113,7 @@ import {
|
|
|
110
113
|
persistCandidateOutputArtifact,
|
|
111
114
|
prepareAgentCandidateExecution,
|
|
112
115
|
verifyAgentCandidateBundle
|
|
113
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-TGDHHHH4.js";
|
|
114
117
|
import {
|
|
115
118
|
composeRuntimeHooks,
|
|
116
119
|
defineRuntimeHooks,
|
|
@@ -1580,6 +1583,7 @@ export {
|
|
|
1580
1583
|
defineRuntimeHooks,
|
|
1581
1584
|
deriveExecutionId,
|
|
1582
1585
|
disposePreparedAgentCandidateExecution,
|
|
1586
|
+
exactProcessProviderAsCandidateExecutor,
|
|
1583
1587
|
executePreparedAgentCandidate,
|
|
1584
1588
|
exportEvalRuns,
|
|
1585
1589
|
formatSupervisedKnowledgeTask,
|