@tangle-network/agent-runtime 0.95.0 → 0.97.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 (86) hide show
  1. package/README.md +64 -15
  2. package/dist/activation-B0ZD7nfX.d.ts +63 -0
  3. package/dist/agent.d.ts +5 -169
  4. package/dist/agent.js +8 -229
  5. package/dist/agent.js.map +1 -1
  6. package/dist/analyst-loop.d.ts +6 -9
  7. package/dist/analyst-loop.js +1 -2
  8. package/dist/candidate-execution/index.js +6 -7
  9. package/dist/chunk-3XKSBI2U.js +474 -0
  10. package/dist/chunk-3XKSBI2U.js.map +1 -0
  11. package/dist/{chunk-6YBA64Z2.js → chunk-6XKPVJAZ.js} +5 -18
  12. package/dist/chunk-6XKPVJAZ.js.map +1 -0
  13. package/dist/{chunk-MKGRLDWB.js → chunk-BLQIYRVR.js} +17 -2
  14. package/dist/chunk-BLQIYRVR.js.map +1 -0
  15. package/dist/{chunk-QDSOD7RC.js → chunk-FD2MBMOH.js} +13 -101
  16. package/dist/chunk-FD2MBMOH.js.map +1 -0
  17. package/dist/{chunk-YLUOTX6U.js → chunk-FXF2OL34.js} +7 -7
  18. package/dist/{chunk-EP6RVHMX.js → chunk-HZDEXTSL.js} +848 -2
  19. package/dist/chunk-HZDEXTSL.js.map +1 -0
  20. package/dist/chunk-PSOCBNM3.js +2069 -0
  21. package/dist/chunk-PSOCBNM3.js.map +1 -0
  22. package/dist/{chunk-BPGXIKK7.js → chunk-SGQ4YIQW.js} +4 -4
  23. package/dist/{chunk-IADLKE7I.js → chunk-UQ6PNNXM.js} +5 -7
  24. package/dist/{chunk-IADLKE7I.js.map → chunk-UQ6PNNXM.js.map} +1 -1
  25. package/dist/{chunk-Z5I642SY.js → chunk-WYC2XJF2.js} +2 -2
  26. package/dist/{chunk-ZEYAT33L.js → chunk-Y3SRWZMP.js} +2 -2
  27. package/dist/{chunk-WTZ37EQY.js → chunk-YOLKCWRV.js} +197 -90
  28. package/dist/chunk-YOLKCWRV.js.map +1 -0
  29. package/dist/conversation.js +0 -1
  30. package/dist/environment-provider.js +0 -1
  31. package/dist/{agentic-generator-hCaQRAes.d.ts → improve-g75IE2Cx.d.ts} +152 -3
  32. package/dist/{improvement-adapter-BieWeK5J.d.ts → improvement-adapter-HAZz-7vK.d.ts} +8 -31
  33. package/dist/index.d.ts +41 -11
  34. package/dist/index.js +180 -51
  35. package/dist/index.js.map +1 -1
  36. package/dist/intelligence.d.ts +16 -9
  37. package/dist/intelligence.js +13 -8
  38. package/dist/intelligence.js.map +1 -1
  39. package/dist/knowledge.d.ts +30 -13
  40. package/dist/knowledge.js +11 -10
  41. package/dist/{loop-runner-bin-BIQldFS8.d.ts → loop-runner-bin-Cn1N2rRo.d.ts} +1 -1
  42. package/dist/loop-runner-bin.d.ts +2 -2
  43. package/dist/loop-runner-bin.js +6 -8
  44. package/dist/loops.d.ts +1 -1
  45. package/dist/loops.js +4 -6
  46. package/dist/mcp/bin.js +3 -5
  47. package/dist/mcp/bin.js.map +1 -1
  48. package/dist/mcp/index.js +10 -12
  49. package/dist/mcp/index.js.map +1 -1
  50. package/dist/platform.js +0 -2
  51. package/dist/platform.js.map +1 -1
  52. package/dist/primeintellect/index.js +0 -1
  53. package/dist/primeintellect/index.js.map +1 -1
  54. package/dist/profiles.js +0 -1
  55. package/dist/profiles.js.map +1 -1
  56. package/dist/{types-BC3bZpH0.d.ts → types-CmYCMbFT.d.ts} +12 -54
  57. package/package.json +8 -13
  58. package/skills/build-with-agent-runtime/SKILL.md +122 -213
  59. package/dist/chunk-6O73TRHW.js +0 -142
  60. package/dist/chunk-6O73TRHW.js.map +0 -1
  61. package/dist/chunk-6YBA64Z2.js.map +0 -1
  62. package/dist/chunk-AP7CPGMZ.js +0 -334
  63. package/dist/chunk-AP7CPGMZ.js.map +0 -1
  64. package/dist/chunk-DGUM43GV.js +0 -11
  65. package/dist/chunk-DGUM43GV.js.map +0 -1
  66. package/dist/chunk-DHCHL6OG.js +0 -625
  67. package/dist/chunk-DHCHL6OG.js.map +0 -1
  68. package/dist/chunk-EP6RVHMX.js.map +0 -1
  69. package/dist/chunk-G55QE4IQ.js +0 -1137
  70. package/dist/chunk-G55QE4IQ.js.map +0 -1
  71. package/dist/chunk-ISTDY47H.js +0 -849
  72. package/dist/chunk-ISTDY47H.js.map +0 -1
  73. package/dist/chunk-MKGRLDWB.js.map +0 -1
  74. package/dist/chunk-QDSOD7RC.js.map +0 -1
  75. package/dist/chunk-WTZ37EQY.js.map +0 -1
  76. package/dist/generator-YkAQrOoD.d.ts +0 -382
  77. package/dist/improve-B-UYaEH5.d.ts +0 -172
  78. package/dist/lifecycle.d.ts +0 -870
  79. package/dist/lifecycle.js +0 -981
  80. package/dist/lifecycle.js.map +0 -1
  81. package/dist/mcp-serve-verifier-Bs_n0xPc.d.ts +0 -34
  82. package/skills/agent-runtime-adoption/SKILL.md +0 -246
  83. /package/dist/{chunk-YLUOTX6U.js.map → chunk-FXF2OL34.js.map} +0 -0
  84. /package/dist/{chunk-BPGXIKK7.js.map → chunk-SGQ4YIQW.js.map} +0 -0
  85. /package/dist/{chunk-Z5I642SY.js.map → chunk-WYC2XJF2.js.map} +0 -0
  86. /package/dist/{chunk-ZEYAT33L.js.map → chunk-Y3SRWZMP.js.map} +0 -0
@@ -1,21 +1,21 @@
1
- import { AgentProfileDiff, AgentProfile, AgentProfileMcpServer, AgentImprovementActivationTarget, AgentImprovementMeasuredComparison, AgentCandidateExperiment, AgentCandidateExperimentMeasurement, AgentImprovementProposal, AgentImprovementReviewDecision, AgentCandidateBenchmarkCellRef, Sha256Digest, AgentImprovementReview, AgentImprovementActivation, CandidateExecutionEvidence } from '@tangle-network/agent-interface';
2
- export { AgentCandidateProfileActivation, AgentImprovementMeasuredComparison, AgentImprovementProposal, AgentImprovementReview, AgentImprovementReviewDecision, CandidateExecutionEvidence } from '@tangle-network/agent-interface';
1
+ import { AgentProfileDiff, AgentProfile, AgentProfileMcpServer, AgentImprovementActivationTarget, AgentImprovementSurface, AgentCandidateExperiment, AgentImprovementActivationIntent, AgentImprovementMeasuredComparison, AgentCandidateExperimentMeasurement, AgentImprovementProposal, AgentImprovementReviewDecision, AgentCandidateBenchmarkCellRef, Sha256Digest, AgentImprovementReview, AgentImprovementActivation, CandidateExecutionEvidence } from '@tangle-network/agent-interface';
2
+ export { AgentImprovementActivation, AgentImprovementActivationIntent, AgentImprovementActivationOutcome, AgentImprovementActivationResult, AgentImprovementMeasuredComparison, AgentImprovementProposal, AgentImprovementReview, AgentImprovementReviewDecision, CandidateExecutionEvidence, AgentCandidateProfileActivation as CandidateProfileMaterialization } from '@tangle-network/agent-interface';
3
3
  import { b as LoopTraceEvent } from './types-B3vAW0Oq.js';
4
4
  import { b as ToolSpec, c as RuntimeTelemetryOptions } from './sanitize-BTSsdBXw.js';
5
5
  import { R as RuntimeStreamEvent } from './types-BwoZWq-i.js';
6
6
  import { P as PrepareAgentCandidateExecutionOptions, E as ExecutePreparedAgentCandidateOptions, A as AgentCandidateExecutionClaimStore } from './profile-DbfaMTdk.js';
7
- export { p as parseAgentCandidateProfileActivation } from './profile-DbfaMTdk.js';
7
+ export { p as parseCandidateProfileMaterialization } from './profile-DbfaMTdk.js';
8
+ export { A as AgentImprovementActivationReconciliation, a as AgentImprovementActivationResultStore, b as AgentImprovementActivationTargetPlan, 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-B0ZD7nfX.js';
8
9
  import { AnalystFinding } from '@tangle-network/agent-eval/analyst';
9
10
  import { CandidateExperimentExecutionInput, Scenario, CompareCandidateExperimentOptions } from '@tangle-network/agent-eval/contract';
10
- import { R as RunAnalystLoopOpts, a as RunAnalystLoopResult } from './types-BC3bZpH0.js';
11
+ import { R as RunAnalystLoopOpts, a as RunAnalystLoopResult } from './types-CmYCMbFT.js';
11
12
  import { c as AgentCandidateRunFinalization, d as AgentCandidateTaskExecution, e as AgentCandidateExecutionPorts, a as AgentCandidateBenchmarkGraderPort, b as AgentCandidateOutputArtifactPort, A as AgentCandidateExecutorPort } from './types-CWqfCO8s.js';
12
- import { I as ImproveOptions, a as ImproveResult } from './improve-B-UYaEH5.js';
13
+ import { I as ImproveOptions, a as ImproveResult } from './improve-g75IE2Cx.js';
13
14
  import { TraceStore } from '@tangle-network/agent-eval';
14
15
  import { SandboxClient, SandboxResources } from '@tangle-network/sandbox';
15
16
  import '@tangle-network/agent-eval/campaign';
16
17
  import './local-harness-ZqCx51u7.js';
17
18
  import 'node:child_process';
18
- import './agentic-generator-hCaQRAes.js';
19
19
 
20
20
  /**
21
21
  *
@@ -632,6 +632,10 @@ declare class CapabilityNotAdmittedError extends Error {
632
632
  */
633
633
  declare function manifestFromProfile(profile: CertifiedProfile): CapabilityManifest;
634
634
 
635
+ type AgentImprovementActivationTargetIdentity = Pick<AgentImprovementActivationTarget, 'surface' | 'identity'>;
636
+ /** Bind caller-owned target identities to the exact source state Runtime measured. */
637
+ declare function buildAgentImprovementActivationTargets(surfaces: readonly AgentImprovementSurface[], experiment: AgentCandidateExperiment, intent: AgentImprovementActivationIntent, identities: readonly AgentImprovementActivationTargetIdentity[]): [AgentImprovementActivationTarget, ...AgentImprovementActivationTarget[]];
638
+
635
639
  interface AgentCandidateExperimentCellPlacement {
636
640
  executionId: string;
637
641
  attempt?: number;
@@ -686,15 +690,18 @@ interface ReviewAgentImprovementInput {
686
690
  now?: () => Date;
687
691
  }
688
692
  interface CreateAgentImprovementActivationOptions {
689
- targets: [AgentImprovementActivationTarget, ...AgentImprovementActivationTarget[]];
693
+ intent: AgentImprovementActivationIntent;
694
+ /** Runtime derives each exact source digest; callers identify only the records to change. */
695
+ targets: [AgentImprovementActivationTargetIdentity, ...AgentImprovementActivationTargetIdentity[]];
690
696
  fundingOwner: string;
691
697
  authorizedBy: string;
698
+ expiresAt: string;
692
699
  now?: () => Date;
693
700
  }
694
701
  interface ProposeAgentImprovementOptions<TScenario extends Scenario, TArtifact> {
695
702
  runId: string;
696
703
  profile: AgentProfile;
697
- analysis: Omit<RunAnalystLoopOpts, 'runId' | 'improvementAdapter' | 'autoApply'>;
704
+ analysis: Omit<RunAnalystLoopOpts, 'runId' | 'improvementProposalSource'>;
698
705
  improvement: ImproveOptions<TScenario, TArtifact>;
699
706
  buildExperiment: (input: {
700
707
  analysis: RunAnalystLoopResult;
@@ -1289,4 +1296,4 @@ interface DoctorReport {
1289
1296
  */
1290
1297
  declare function createIntelligenceClient(config: IntelligenceConfig): IntelligenceClient;
1291
1298
 
1292
- export { AgentCandidateExperimentCellExecutionError, type AgentCandidateExperimentCellPlacement, 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 CreateSandboxCandidateExperimentExecutorOptions, type CredentialRef, type DeliveryBinding, type DeliveryBindingKind, type DiffProvenance, type DoctorReport, type EffortOverrides, type EffortOverridesCompiled, type EffortSettings, type EffortTier, 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 SandboxCandidateExperimentExecution, type SandboxCandidateExperimentExecutor, type TraceHandle, type TraceMeta, type TraceOutcome, type UsageClass, type UsageSplit, type VerifyCandidateExecutionEvidenceOptions, compileEffort, composeCertifiedProfile, composeCertifiedProfileFromWire, composeCertifiedPrompt, createAgentImprovementActivation, createAgentImprovementMeasuredComparison, createAgentImprovementProposal, createCertifiedPromptSource, createIntelligenceClient, createSandboxCandidateExperimentExecutor, defaultEffortTier, defaultRedactor, executeAgentCandidateExperimentCell, isIntelligenceOff, manifestFromProfile, normalizeCertifiedProfile, proposeAgentImprovement, pullCertified, resolveEffort, resolveIntelligenceBaseUrl, resolveRedactor, reviewAgentImprovementProposal, runAgentCandidateExperiment, sandboxCandidateExperimentExecutionSupport, verifyAgentImprovementActivation, verifyAgentImprovementProposal, verifyAgentImprovementReview, verifyCandidateExecutionEvidence, withIntelligence };
1299
+ export { AgentCandidateExperimentCellExecutionError, type AgentCandidateExperimentCellPlacement, type AgentImprovementActivationTargetIdentity, 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 CreateSandboxCandidateExperimentExecutorOptions, type CredentialRef, type DeliveryBinding, type DeliveryBindingKind, type DiffProvenance, type DoctorReport, type EffortOverrides, type EffortOverridesCompiled, type EffortSettings, type EffortTier, 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 SandboxCandidateExperimentExecution, type SandboxCandidateExperimentExecutor, type TraceHandle, type TraceMeta, type TraceOutcome, type UsageClass, type UsageSplit, type VerifyCandidateExecutionEvidenceOptions, buildAgentImprovementActivationTargets, compileEffort, composeCertifiedProfile, composeCertifiedProfileFromWire, composeCertifiedPrompt, createAgentImprovementActivation, createAgentImprovementMeasuredComparison, createAgentImprovementProposal, createCertifiedPromptSource, createIntelligenceClient, createSandboxCandidateExperimentExecutor, defaultEffortTier, defaultRedactor, executeAgentCandidateExperimentCell, isIntelligenceOff, manifestFromProfile, normalizeCertifiedProfile, proposeAgentImprovement, pullCertified, resolveEffort, resolveIntelligenceBaseUrl, resolveRedactor, reviewAgentImprovementProposal, runAgentCandidateExperiment, sandboxCandidateExperimentExecutionSupport, verifyAgentImprovementActivation, verifyAgentImprovementProposal, verifyAgentImprovementReview, verifyCandidateExecutionEvidence, withIntelligence };
@@ -1,17 +1,21 @@
1
1
  import {
2
2
  AgentCandidateExperimentCellExecutionError,
3
+ buildAgentImprovementActivationTargets,
3
4
  createAgentImprovementActivation,
5
+ createAgentImprovementActivationResult,
4
6
  createAgentImprovementMeasuredComparison,
5
7
  createAgentImprovementProposal,
6
8
  executeAgentCandidateExperimentCell,
9
+ executeAgentImprovementActivation,
7
10
  proposeAgentImprovement,
8
11
  reviewAgentImprovementProposal,
9
12
  runAgentCandidateExperiment,
10
13
  verifyAgentImprovementActivation,
14
+ verifyAgentImprovementActivationResult,
11
15
  verifyAgentImprovementProposal,
12
16
  verifyAgentImprovementReview,
13
17
  verifyCandidateExecutionEvidence
14
- } from "./chunk-G55QE4IQ.js";
18
+ } from "./chunk-PSOCBNM3.js";
15
19
  import {
16
20
  AGENT_CANDIDATE_EXECUTION_SUPPORT,
17
21
  CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV,
@@ -19,21 +23,18 @@ import {
19
23
  candidateKnowledgeExecutionPaths,
20
24
  canonicalCandidateBytes,
21
25
  parseAgentCandidateProfileActivation
22
- } from "./chunk-WTZ37EQY.js";
26
+ } from "./chunk-YOLKCWRV.js";
23
27
  import {
24
28
  buildLoopOtelSpans,
25
29
  buildRuntimeEventOtelSpans,
26
30
  createOtelExporter,
27
31
  flatOtelSpan
28
- } from "./chunk-ISTDY47H.js";
32
+ } from "./chunk-HZDEXTSL.js";
29
33
  import "./chunk-IMSNJSXH.js";
30
34
  import "./chunk-3MDZX7YU.js";
31
- import "./chunk-QDSOD7RC.js";
35
+ import "./chunk-FD2MBMOH.js";
32
36
  import "./chunk-M22PL4GH.js";
33
- import "./chunk-DHCHL6OG.js";
34
- import "./chunk-EP6RVHMX.js";
35
37
  import "./chunk-YEJR7IXO.js";
36
- import "./chunk-DGUM43GV.js";
37
38
 
38
39
  // src/intelligence/index.ts
39
40
  import { contentHash } from "@tangle-network/agent-eval";
@@ -1684,11 +1685,13 @@ function createIntelligenceClient(config) {
1684
1685
  export {
1685
1686
  AgentCandidateExperimentCellExecutionError,
1686
1687
  CapabilityNotAdmittedError,
1688
+ buildAgentImprovementActivationTargets,
1687
1689
  compileEffort,
1688
1690
  composeCertifiedProfile,
1689
1691
  composeCertifiedProfileFromWire,
1690
1692
  composeCertifiedPrompt,
1691
1693
  createAgentImprovementActivation,
1694
+ createAgentImprovementActivationResult,
1692
1695
  createAgentImprovementMeasuredComparison,
1693
1696
  createAgentImprovementProposal,
1694
1697
  createCertifiedPromptSource,
@@ -1697,10 +1700,11 @@ export {
1697
1700
  defaultEffortTier,
1698
1701
  defaultRedactor,
1699
1702
  executeAgentCandidateExperimentCell,
1703
+ executeAgentImprovementActivation,
1700
1704
  isIntelligenceOff,
1701
1705
  manifestFromProfile,
1702
1706
  normalizeCertifiedProfile,
1703
- parseAgentCandidateProfileActivation,
1707
+ parseAgentCandidateProfileActivation as parseCandidateProfileMaterialization,
1704
1708
  proposeAgentImprovement,
1705
1709
  pullCertified,
1706
1710
  resolveEffort,
@@ -1710,6 +1714,7 @@ export {
1710
1714
  runAgentCandidateExperiment,
1711
1715
  sandboxCandidateExperimentExecutionSupport,
1712
1716
  verifyAgentImprovementActivation,
1717
+ verifyAgentImprovementActivationResult,
1713
1718
  verifyAgentImprovementProposal,
1714
1719
  verifyAgentImprovementReview,
1715
1720
  verifyCandidateExecutionEvidence,