@tangle-network/agent-runtime 0.94.5 → 0.94.6
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 +39 -4
- package/dist/candidate-execution/index.js +8 -2
- package/dist/{chunk-MZH4HORF.js → chunk-5BT2NMML.js} +689 -3
- package/dist/chunk-5BT2NMML.js.map +1 -0
- package/dist/{chunk-KHLE3C5G.js → chunk-HKMKUESZ.js} +169 -50
- package/dist/chunk-HKMKUESZ.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +1 -1
- package/dist/intelligence.js +1 -1
- package/dist/{prepare-BKxAiUcH.d.ts → prepare-DIeVgQG3.d.ts} +1 -1
- package/package.json +4 -2
- package/dist/chunk-KHLE3C5G.js.map +0 -1
- package/dist/chunk-MZH4HORF.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CodeSurface } from '@tangle-network/agent-eval/campaign';
|
|
2
|
-
import { AgentCandidateCodeDisabled, AgentCandidateCodeNoOp, AgentCandidateGitHubRepository, AgentProfile, AgentProfileDiff, AgentCandidateProfile, AgentCandidateExecution, AgentCandidateKnowledge, AgentCandidateMemoryPolicy, AgentCandidateLineage, Sha256Digest, AgentCandidateArtifactRef } from '@tangle-network/agent-interface';
|
|
3
|
-
import { a9 as sealAgentCandidateBundle, a0 as PreparedAgentCandidateExecution, j as AgentCandidateExecutionClaim, l as AgentCandidateExecutionClaimStore, k as AgentCandidateExecutionClaimResult, i as AgentCandidateExecutionAttemptRef, h as AgentCandidateExecutionAttemptRecord, p as AgentCandidateExecutionLease, r as AgentCandidateExecutionPhaseResult, v as AgentCandidateExecutionTerminalResult, t as AgentCandidateExecutionStageResult, o as AgentCandidateExecutionFinishResult, s as AgentCandidateExecutionRecoveryEvidence, M as AgentCandidateOutputArtifactPort, N as AgentCandidateOutputPurpose, L as AgentCandidateModelPort, R as AgentCandidateProtectedModelReservation, O as AgentCandidateProtectedModelActivation, S as AgentCandidateProtectedModelSettlement, z as AgentCandidateExecutorPort, b as AgentCandidateExecutionPorts, W as AgentCandidateVerificationPorts, a5 as VerifiedAgentCandidate } from '../prepare-
|
|
4
|
-
export { d as AgentCandidateArtifactPort, e as AgentCandidateBenchmarkGraderIdentity, f as AgentCandidateBenchmarkGraderPort, A as AgentCandidateBundleInput, g as AgentCandidateContainerPort, m as AgentCandidateExecutionCleanupHandles, n as AgentCandidateExecutionFailureClass, q as AgentCandidateExecutionPhase, u as AgentCandidateExecutionTerminalRecord, w as AgentCandidateExecutionUsage, x as AgentCandidateExecutorFinalCapture, y as AgentCandidateExecutorMemoryCapture, B as AgentCandidateExecutorProfileFile, C as AgentCandidateExecutorRequest, D as AgentCandidateExecutorStopRequest, F as AgentCandidateExecutorTaskOutcomeCapture,
|
|
2
|
+
import { AgentCandidateCodeDisabled, AgentCandidateCodeNoOp, AgentCandidateGitHubRepository, AgentProfile, AgentProfileDiff, AgentCandidateProfile, AgentCandidateExecution, AgentCandidateKnowledge, AgentCandidateMemoryPolicy, AgentCandidateLineage, Sha256Digest, AgentCandidateArtifactRef, AgentCandidateWorkspaceSnapshotEvidence } from '@tangle-network/agent-interface';
|
|
3
|
+
import { a9 as sealAgentCandidateBundle, a0 as PreparedAgentCandidateExecution, j as AgentCandidateExecutionClaim, l as AgentCandidateExecutionClaimStore, k as AgentCandidateExecutionClaimResult, i as AgentCandidateExecutionAttemptRef, h as AgentCandidateExecutionAttemptRecord, p as AgentCandidateExecutionLease, r as AgentCandidateExecutionPhaseResult, v as AgentCandidateExecutionTerminalResult, t as AgentCandidateExecutionStageResult, o as AgentCandidateExecutionFinishResult, s as AgentCandidateExecutionRecoveryEvidence, M as AgentCandidateOutputArtifactPort, N as AgentCandidateOutputPurpose, L as AgentCandidateModelPort, R as AgentCandidateProtectedModelReservation, O as AgentCandidateProtectedModelActivation, S as AgentCandidateProtectedModelSettlement, z as AgentCandidateExecutorPort, b as AgentCandidateExecutionPorts, W as AgentCandidateVerificationPorts, a5 as VerifiedAgentCandidate, G as AgentCandidateExecutorWorkspaceFile, X as AgentCandidateWorkspacePort } from '../prepare-DIeVgQG3.js';
|
|
4
|
+
export { d as AgentCandidateArtifactPort, e as AgentCandidateBenchmarkGraderIdentity, f as AgentCandidateBenchmarkGraderPort, A as AgentCandidateBundleInput, g as AgentCandidateContainerPort, m as AgentCandidateExecutionCleanupHandles, n as AgentCandidateExecutionFailureClass, q as AgentCandidateExecutionPhase, u as AgentCandidateExecutionTerminalRecord, w as AgentCandidateExecutionUsage, x as AgentCandidateExecutorFinalCapture, y as AgentCandidateExecutorMemoryCapture, B as AgentCandidateExecutorProfileFile, C as AgentCandidateExecutorRequest, D as AgentCandidateExecutorStopRequest, F as AgentCandidateExecutorTaskOutcomeCapture, H as AgentCandidateExecutorWorkspaceInput, I as AgentCandidateMemoryPort, J as AgentCandidateMemoryResetResult, K as AgentCandidateModelLimits, Q as AgentCandidateProtectedModelCall, T as AgentCandidateProtectedRunCapture, U as AgentCandidateRepositoryPort, V as AgentCandidateRetryRejection, c as AgentCandidateRunFinalization, a as AgentCandidateTaskExecution, Y as CANDIDATE_TRACE_ENV, Z as CANDIDATE_TRACE_TAGS, _ as CanonicalCandidateDocument, E as ExecutePreparedAgentCandidateOptions, $ as InMemoryAgentCandidateExecutionClaimStore, P as PrepareAgentCandidateExecutionOptions, a1 as PreparedAgentCandidateInstruction, a2 as PreparedAgentCandidateLaunch, a3 as PreparedAgentCandidateTrace, a4 as ResolvedAgentCandidateContainer, a6 as VerifiedAgentCandidateTaskOutcome, a7 as executePreparedAgentCandidate, a8 as prepareAgentCandidateExecution } from '../prepare-DIeVgQG3.js';
|
|
5
5
|
import { TraceStore } from '@tangle-network/agent-eval';
|
|
6
6
|
|
|
7
7
|
/** A complete profile that can be frozen without losing behavior. */
|
|
@@ -152,4 +152,39 @@ declare function recoverExpiredAgentCandidateExecution(options: RecoverExpiredAg
|
|
|
152
152
|
/** Verifies every digest, resource, workspace, and Git object in a candidate bundle. */
|
|
153
153
|
declare function verifyAgentCandidateBundle(input: unknown, ports: AgentCandidateVerificationPorts): Promise<VerifiedAgentCandidate>;
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
interface AgentCandidateWorkspaceArchiveLimits {
|
|
156
|
+
maxArchiveBytes: number;
|
|
157
|
+
maxEmbeddedArtifactBytes: number;
|
|
158
|
+
maxFiles: number;
|
|
159
|
+
maxFileBytes: number;
|
|
160
|
+
maxTotalFileBytes: number;
|
|
161
|
+
maxPathBytes: number;
|
|
162
|
+
maxRepositoryBundleBytes: number;
|
|
163
|
+
}
|
|
164
|
+
interface CaptureAgentCandidateWorkspaceOptions {
|
|
165
|
+
/** Include Git HEAD so task preparation can prove its exact commit and tree. */
|
|
166
|
+
includeRepository?: boolean;
|
|
167
|
+
limits?: Partial<AgentCandidateWorkspaceArchiveLimits>;
|
|
168
|
+
/** Use the evaluator-owned artifact store when manifest or archive bytes should not be embedded. */
|
|
169
|
+
artifactPersistence?: {
|
|
170
|
+
executionId: string;
|
|
171
|
+
outputArtifacts: AgentCandidateOutputArtifactPort;
|
|
172
|
+
signal?: AbortSignal;
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
interface CreateAgentCandidateWorkspacePortOptions {
|
|
176
|
+
limits?: Partial<AgentCandidateWorkspaceArchiveLimits>;
|
|
177
|
+
}
|
|
178
|
+
interface CapturedAgentCandidateWorkspace {
|
|
179
|
+
readonly snapshot: AgentCandidateWorkspaceSnapshotEvidence;
|
|
180
|
+
/** Caller-owned bytes accepted by createAgentCandidateWorkspacePort. */
|
|
181
|
+
readonly archive: Uint8Array;
|
|
182
|
+
}
|
|
183
|
+
/** Capture one exact regular-file workspace for immutable candidate execution. */
|
|
184
|
+
declare function captureAgentCandidateWorkspace(rootInput: string, options?: CaptureAgentCandidateWorkspaceOptions): Promise<CapturedAgentCandidateWorkspace>;
|
|
185
|
+
/** Capture detached files returned by a remote executor into the standard archive. */
|
|
186
|
+
declare function captureAgentCandidateWorkspaceFiles(input: readonly AgentCandidateExecutorWorkspaceFile[], options?: Omit<CaptureAgentCandidateWorkspaceOptions, 'includeRepository'>): Promise<CapturedAgentCandidateWorkspace>;
|
|
187
|
+
/** Create the standard bounded materializer for candidate execution ports. */
|
|
188
|
+
declare function createAgentCandidateWorkspacePort(options?: CreateAgentCandidateWorkspacePortOptions): AgentCandidateWorkspacePort;
|
|
189
|
+
|
|
190
|
+
export { type AgentCandidateCodeSource, type AgentCandidateCodeSurfaceSource, AgentCandidateExecutionAttemptRecord, AgentCandidateExecutionAttemptRef, AgentCandidateExecutionClaim, AgentCandidateExecutionClaimResult, AgentCandidateExecutionClaimStore, AgentCandidateExecutionFinishResult, AgentCandidateExecutionLease, AgentCandidateExecutionPhaseResult, AgentCandidateExecutionPorts, AgentCandidateExecutionRecoveryEvidence, AgentCandidateExecutionStageResult, AgentCandidateExecutionTerminalResult, AgentCandidateExecutorPort, AgentCandidateExecutorWorkspaceFile, type AgentCandidateModelGrantActivateInput, type AgentCandidateModelGrantClient, type AgentCandidateModelGrantReservation, type AgentCandidateModelGrantReserveInput, type AgentCandidateModelGrantSettleInput, AgentCandidateModelPort, AgentCandidateOutputArtifactPort, AgentCandidateOutputPurpose, type AgentCandidateProfileSource, AgentCandidateProtectedModelActivation, AgentCandidateProtectedModelReservation, AgentCandidateProtectedModelSettlement, AgentCandidateVerificationPorts, type AgentCandidateWorkspaceArchiveLimits, AgentCandidateWorkspacePort, type BuildAgentCandidateBundleInput, type CaptureAgentCandidateWorkspaceOptions, type CapturedAgentCandidateWorkspace, type CreateAgentCandidateWorkspacePortOptions, type CreateProtectedAgentCandidateModelPortOptions, type DisposePreparedAgentCandidateOptions, FileAgentCandidateExecutionClaimStore, type FileAgentCandidateExecutionClaimStoreOptions, PreparedAgentCandidateExecution, type RecoverExpiredAgentCandidateOptions, VerifiedAgentCandidate, applyExactAgentProfileDiff, buildAgentCandidateBundle, candidateExecutionClaim, captureAgentCandidateWorkspace, captureAgentCandidateWorkspaceFiles, createAgentCandidateWorkspacePort, createProtectedAgentCandidateModelPort, disposePreparedAgentCandidateExecution, parseExactAgentProfile, parseExactAgentProfileDiff, persistCandidateOutputArtifact, recoverExpiredAgentCandidateExecution, sealAgentCandidateBundle, verifyAgentCandidateBundle };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FileAgentCandidateExecutionClaimStore,
|
|
3
3
|
buildAgentCandidateBundle,
|
|
4
|
+
captureAgentCandidateWorkspace,
|
|
5
|
+
captureAgentCandidateWorkspaceFiles,
|
|
6
|
+
createAgentCandidateWorkspacePort,
|
|
4
7
|
createProtectedAgentCandidateModelPort,
|
|
5
8
|
disposePreparedAgentCandidateExecution,
|
|
6
9
|
recoverExpiredAgentCandidateExecution
|
|
7
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-5BT2NMML.js";
|
|
8
11
|
import {
|
|
9
12
|
CANDIDATE_TRACE_ENV,
|
|
10
13
|
CANDIDATE_TRACE_TAGS,
|
|
@@ -18,7 +21,7 @@ import {
|
|
|
18
21
|
prepareAgentCandidateExecution,
|
|
19
22
|
sealAgentCandidateBundle,
|
|
20
23
|
verifyAgentCandidateBundle
|
|
21
|
-
} from "../chunk-
|
|
24
|
+
} from "../chunk-HKMKUESZ.js";
|
|
22
25
|
import "../chunk-WIPGQ4GT.js";
|
|
23
26
|
import "../chunk-3MDZX7YU.js";
|
|
24
27
|
import "../chunk-DGUM43GV.js";
|
|
@@ -30,6 +33,9 @@ export {
|
|
|
30
33
|
applyExactAgentProfileDiff,
|
|
31
34
|
buildAgentCandidateBundle,
|
|
32
35
|
candidateExecutionClaim,
|
|
36
|
+
captureAgentCandidateWorkspace,
|
|
37
|
+
captureAgentCandidateWorkspaceFiles,
|
|
38
|
+
createAgentCandidateWorkspacePort,
|
|
33
39
|
createProtectedAgentCandidateModelPort,
|
|
34
40
|
disposePreparedAgentCandidateExecution,
|
|
35
41
|
executePreparedAgentCandidate,
|