@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
package/dist/intelligence.d.ts
CHANGED
|
@@ -7,13 +7,16 @@ import { P as PrepareAgentCandidateExecutionOptions, E as ExecutePreparedAgentCa
|
|
|
7
7
|
export { p as parseCandidateProfileMaterialization } from './profile-DbfaMTdk.js';
|
|
8
8
|
import { A as AgentImprovementActivationTargetPlan } from './activation-Cm-9MMX1.js';
|
|
9
9
|
export { a as AgentImprovementActivationReconciliation, b as AgentImprovementActivationResultStore, c as AgentImprovementActivationTransition, d as AgentImprovementActivationTransitionInput, C as CreateAgentImprovementActivationResultOptions, E as ExecuteAgentImprovementActivationInput, e as ExecuteAgentImprovementActivationOptions, f as createAgentImprovementActivationResult, g as executeAgentImprovementActivation, v as verifyAgentImprovementActivationResult } from './activation-Cm-9MMX1.js';
|
|
10
|
-
import {
|
|
10
|
+
import { TraceStore } from '@tangle-network/agent-eval';
|
|
11
11
|
import { CandidateExperimentExecutionInput, Scenario, CompareCandidateExperimentOptions } from '@tangle-network/agent-eval/contract';
|
|
12
|
-
import {
|
|
12
|
+
import { AgentExactProcessResources } from '@tangle-network/agent-interface/environment-provider';
|
|
13
13
|
import { c as AgentCandidateRunFinalization, d as AgentCandidateTaskExecution, e as AgentCandidateExecutionPorts, a as AgentCandidateBenchmarkGraderPort, b as AgentCandidateOutputArtifactPort, A as AgentCandidateExecutorPort } from './types-CWqfCO8s.js';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { AgentEnvironmentProviderRef, AgentEnvironmentProviderRegistry } from './environment-provider.js';
|
|
15
|
+
import { AnalystFinding } from '@tangle-network/agent-eval/analyst';
|
|
16
|
+
import { R as RunAnalystLoopOpts, a as RunAnalystLoopResult } from './types-CmYCMbFT.js';
|
|
17
|
+
import { I as ImproveOptions, a as ImproveResult } from './improve-CIml6hT3.js';
|
|
18
|
+
import '@tangle-network/sandbox';
|
|
19
|
+
import './types-CmnA2iL3.js';
|
|
17
20
|
import '@tangle-network/agent-eval/campaign';
|
|
18
21
|
import './local-harness-ZqCx51u7.js';
|
|
19
22
|
import 'node:child_process';
|
|
@@ -777,6 +780,57 @@ declare function verifyAgentImprovementActivation(input: {
|
|
|
777
780
|
/** Recheck one Runtime receipt against its exact signed experiment cell. */
|
|
778
781
|
declare function verifyCandidateExecutionEvidence(input: unknown, options: VerifyCandidateExecutionEvidenceOptions): CandidateExecutionEvidence;
|
|
779
782
|
|
|
783
|
+
/** Candidate surfaces implemented by the neutral exact-process executor. */
|
|
784
|
+
declare const exactProcessCandidateExperimentExecutionSupport: Readonly<{
|
|
785
|
+
outcomes: readonly ["output"];
|
|
786
|
+
outputMediaTypes: readonly ["text/*", "application/json", "*+json"];
|
|
787
|
+
code: readonly ["disabled"];
|
|
788
|
+
memory: readonly ["disabled"];
|
|
789
|
+
knowledge: true;
|
|
790
|
+
profile: Readonly<{
|
|
791
|
+
mcpTransports: readonly ["stdio"];
|
|
792
|
+
remoteMcp: false;
|
|
793
|
+
tools: false;
|
|
794
|
+
permissions: false;
|
|
795
|
+
modes: false;
|
|
796
|
+
confidential: false;
|
|
797
|
+
}>;
|
|
798
|
+
isolation: Readonly<{
|
|
799
|
+
freshEnvironment: true;
|
|
800
|
+
exactProcess: true;
|
|
801
|
+
egress: readonly ["blocked", "strict"];
|
|
802
|
+
}>;
|
|
803
|
+
}>;
|
|
804
|
+
interface CreateExactProcessCandidateExperimentExecutorOptions {
|
|
805
|
+
provider: AgentEnvironmentProviderRef;
|
|
806
|
+
providerRegistry?: AgentEnvironmentProviderRegistry;
|
|
807
|
+
resources: AgentExactProcessResources;
|
|
808
|
+
providerOptions?: Record<string, unknown>;
|
|
809
|
+
provisionTimeoutMs?: number;
|
|
810
|
+
recoveryRetentionMs?: number;
|
|
811
|
+
ports: AgentCandidateExecutionPorts;
|
|
812
|
+
grader: AgentCandidateBenchmarkGraderPort;
|
|
813
|
+
outputArtifacts: AgentCandidateOutputArtifactPort;
|
|
814
|
+
traceStore: TraceStore;
|
|
815
|
+
claimStore: AgentCandidateExecutionClaimStore;
|
|
816
|
+
cleanupTimeoutMs?: number;
|
|
817
|
+
resultTimeoutMs?: number;
|
|
818
|
+
}
|
|
819
|
+
interface ExactProcessCandidateExperimentExecution extends CandidateExperimentExecutionInput {
|
|
820
|
+
executionId: string;
|
|
821
|
+
attempt?: number;
|
|
822
|
+
executionRoots: AgentCandidateExperimentCellPlacement['executionRoots'];
|
|
823
|
+
stagingRoots: AgentCandidateExperimentCellPlacement['stagingRoots'];
|
|
824
|
+
preparation?: PrepareAgentCandidateExecutionOptions;
|
|
825
|
+
}
|
|
826
|
+
interface ExactProcessCandidateExperimentExecutor {
|
|
827
|
+
/** Runtime's expired-attempt path reuses this port only to stop and dispose. */
|
|
828
|
+
readonly executor: AgentCandidateExecutorPort;
|
|
829
|
+
execute(input: ExactProcessCandidateExperimentExecution): Promise<CandidateExecutionEvidence>;
|
|
830
|
+
}
|
|
831
|
+
/** Execute one signed experiment cell through any declared exact-process provider. */
|
|
832
|
+
declare function createExactProcessCandidateExperimentExecutor(options: CreateExactProcessCandidateExperimentExecutorOptions): ExactProcessCandidateExperimentExecutor;
|
|
833
|
+
|
|
780
834
|
type AgentImprovementProfileActivationTarget = Omit<AgentImprovementActivationTargetPlan, 'surface'> & {
|
|
781
835
|
surface: AgentImprovementProfileSurface;
|
|
782
836
|
};
|
|
@@ -927,59 +981,6 @@ declare function composeCertifiedProfileFromWire(base: {
|
|
|
927
981
|
systemPrompt: string;
|
|
928
982
|
}, profile: CertifiedProfile | null, ctx?: ResolveCtx): Promise<ResolvedSurface>;
|
|
929
983
|
|
|
930
|
-
type SandboxClientPort = Pick<SandboxClient, 'create' | 'get' | 'list'>;
|
|
931
|
-
/** Declares the exact candidate surfaces the sandbox executor can run. */
|
|
932
|
-
declare const sandboxCandidateExperimentExecutionSupport: Readonly<{
|
|
933
|
-
outcomes: readonly ["output"];
|
|
934
|
-
outputMediaTypes: readonly ["text/*", "application/json", "*+json"];
|
|
935
|
-
code: readonly ["disabled"];
|
|
936
|
-
memory: readonly ["disabled"];
|
|
937
|
-
knowledge: true;
|
|
938
|
-
profile: Readonly<{
|
|
939
|
-
mcpTransports: readonly ["stdio"];
|
|
940
|
-
remoteMcp: false;
|
|
941
|
-
tools: false;
|
|
942
|
-
permissions: false;
|
|
943
|
-
modes: false;
|
|
944
|
-
confidential: false;
|
|
945
|
-
}>;
|
|
946
|
-
isolation: Readonly<{
|
|
947
|
-
freshSandbox: true;
|
|
948
|
-
exactProcess: true;
|
|
949
|
-
egress: readonly ["blocked", "strict"];
|
|
950
|
-
}>;
|
|
951
|
-
}>;
|
|
952
|
-
interface CreateSandboxCandidateExperimentExecutorOptions {
|
|
953
|
-
client: SandboxClientPort;
|
|
954
|
-
ports: AgentCandidateExecutionPorts;
|
|
955
|
-
grader: AgentCandidateBenchmarkGraderPort;
|
|
956
|
-
outputArtifacts: AgentCandidateOutputArtifactPort;
|
|
957
|
-
traceStore: TraceStore;
|
|
958
|
-
claimStore: AgentCandidateExecutionClaimStore;
|
|
959
|
-
sandbox?: {
|
|
960
|
-
teamId?: string;
|
|
961
|
-
resources?: SandboxResources;
|
|
962
|
-
createTimeoutMs?: number;
|
|
963
|
-
evidenceRetentionSeconds?: number;
|
|
964
|
-
};
|
|
965
|
-
cleanupTimeoutMs?: number;
|
|
966
|
-
resultTimeoutMs?: number;
|
|
967
|
-
}
|
|
968
|
-
interface SandboxCandidateExperimentExecution extends CandidateExperimentExecutionInput {
|
|
969
|
-
executionId: string;
|
|
970
|
-
attempt?: number;
|
|
971
|
-
executionRoots: AgentCandidateExperimentCellPlacement['executionRoots'];
|
|
972
|
-
stagingRoots: AgentCandidateExperimentCellPlacement['stagingRoots'];
|
|
973
|
-
preparation?: PrepareAgentCandidateExecutionOptions;
|
|
974
|
-
}
|
|
975
|
-
interface SandboxCandidateExperimentExecutor {
|
|
976
|
-
/** The same port is usable by Runtime's expired-claim recovery path. */
|
|
977
|
-
readonly executor: AgentCandidateExecutorPort;
|
|
978
|
-
execute(input: SandboxCandidateExperimentExecution): Promise<CandidateExecutionEvidence>;
|
|
979
|
-
}
|
|
980
|
-
/** Execute one signed experiment cell inside a fresh Tangle sandbox. */
|
|
981
|
-
declare function createSandboxCandidateExperimentExecutor(options: CreateSandboxCandidateExperimentExecutorOptions): SandboxCandidateExperimentExecutor;
|
|
982
|
-
|
|
983
984
|
/**
|
|
984
985
|
*
|
|
985
986
|
* `withIntelligence` — the ONE agent-runtime hook that unifies Tangle
|
|
@@ -1367,4 +1368,4 @@ interface DoctorReport {
|
|
|
1367
1368
|
*/
|
|
1368
1369
|
declare function createIntelligenceClient(config: IntelligenceConfig): IntelligenceClient;
|
|
1369
1370
|
|
|
1370
|
-
export { AGENT_IMPROVEMENT_PROFILE_SURFACES, AgentCandidateExperimentCellExecutionError, type AgentCandidateExperimentCellPlacement, type AgentImprovementActivationTargetIdentity, AgentImprovementActivationTargetPlan, type AgentImprovementProfileActivationPreparation, type AgentImprovementProfileActivationTarget, type AgentImprovementProfileReplacement, type AgentImprovementProfileSurface, type AgentImprovementProfileTargetState, type AgentImprovementProfileTargetTransition, type AgentImprovementTargetProfileDiffOptions, type AppliedIntelligence, type CapabilityAuth, type CapabilityInterface, type CapabilityManifest, CapabilityNotAdmittedError, type CapabilitySurface, type CertProvenance, type CertifiedArtifact, type CertifiedCapability, type CertifiedCapabilitySummary, type CertifiedProfile, type CertifiedPromptSource, type CertifiedPromptSourceOptions, type CertifiedPromptSurface, type ContentRef, type CorpusAccess, type CreateAgentImprovementActivationOptions, type CreateAgentImprovementProposalOptions, type
|
|
1371
|
+
export { AGENT_IMPROVEMENT_PROFILE_SURFACES, AgentCandidateExperimentCellExecutionError, type AgentCandidateExperimentCellPlacement, type AgentImprovementActivationTargetIdentity, AgentImprovementActivationTargetPlan, type AgentImprovementProfileActivationPreparation, type AgentImprovementProfileActivationTarget, type AgentImprovementProfileReplacement, type AgentImprovementProfileSurface, type AgentImprovementProfileTargetState, type AgentImprovementProfileTargetTransition, type AgentImprovementTargetProfileDiffOptions, type AppliedIntelligence, type CapabilityAuth, type CapabilityInterface, type CapabilityManifest, CapabilityNotAdmittedError, type CapabilitySurface, type CertProvenance, type CertifiedArtifact, type CertifiedCapability, type CertifiedCapabilitySummary, type CertifiedProfile, type CertifiedPromptSource, type CertifiedPromptSourceOptions, type CertifiedPromptSurface, type ContentRef, type CorpusAccess, type CreateAgentImprovementActivationOptions, type CreateAgentImprovementProposalOptions, type CreateExactProcessCandidateExperimentExecutorOptions, type CredentialRef, type DeliveryBinding, type DeliveryBindingKind, type DiffProvenance, type DoctorReport, type EffortOverrides, type EffortOverridesCompiled, type EffortSettings, type EffortTier, type ExactProcessCandidateExperimentExecution, type ExactProcessCandidateExperimentExecutor, type ExecuteAgentCandidateExperimentCellOptions, type HostSpec, type IntelligenceAgent, type IntelligenceClient, type IntelligenceConfig, type IntelligenceHookConfig, type IntelligenceWrapped, type JsonSchema, type ModeReadiness, type ProposeAgentImprovementOptions, type ProposeAgentImprovementResult, type ProposedProfileDiff, type ProvisionedHost, type PullCertifiedOptions, type PullOutcome, type RecordTraceMeta, type Redactor, type RepoConfig, type ResolveCtx, type ResolvedHook, type ResolvedRetrieval, type ResolvedSubagent, type ResolvedSurface, type ReviewAgentImprovementInput, type RunAgentCandidateExperimentOptions, type RunAgentCandidateExperimentResult, type RunRecord, type RunReport, type TraceHandle, type TraceMeta, type TraceOutcome, type UsageClass, type UsageSplit, type VerifyCandidateExecutionEvidenceOptions, agentImprovementProfileSurfaceDigest, agentImprovementProfileSurfaceInput, agentImprovementTargetProfileDiffs, buildAgentImprovementActivationTargets, compileEffort, composeCertifiedProfile, composeCertifiedProfileFromWire, composeCertifiedPrompt, createAgentImprovementActivation, createAgentImprovementMeasuredComparison, createAgentImprovementProposal, createCertifiedPromptSource, createExactProcessCandidateExperimentExecutor, createIntelligenceClient, defaultEffortTier, defaultRedactor, exactProcessCandidateExperimentExecutionSupport, executeAgentCandidateExperimentCell, isAgentImprovementProfileSurface, isIntelligenceOff, manifestFromProfile, normalizeCertifiedProfile, prepareAgentImprovementProfileActivation, proposeAgentImprovement, pullCertified, resolveEffort, resolveIntelligenceBaseUrl, resolveRedactor, reviewAgentImprovementProposal, runAgentCandidateExperiment, verifyAgentImprovementActivation, verifyAgentImprovementProposal, verifyAgentImprovementReview, verifyCandidateExecutionEvidence, withIntelligence };
|