@tangle-network/agent-runtime 0.102.1 → 0.103.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 (77) hide show
  1. package/README.md +73 -10
  2. package/dist/agent.d.ts +1 -1
  3. package/dist/agent.js +5 -5
  4. package/dist/analyst-loop.d.ts +1 -1
  5. package/dist/candidate-execution/index.d.ts +5 -41
  6. package/dist/candidate-execution/index.js +8 -6
  7. package/dist/{chunk-KPHTCHQ4.js → chunk-3LJF5XSE.js} +79 -334
  8. package/dist/chunk-3LJF5XSE.js.map +1 -0
  9. package/dist/{chunk-3DW5DEKQ.js → chunk-5AITUUHO.js} +3 -3
  10. package/dist/{chunk-SQ3ZJH3Y.js → chunk-6WZZXQV5.js} +467 -23
  11. package/dist/chunk-6WZZXQV5.js.map +1 -0
  12. package/dist/{chunk-RTB3TC73.js → chunk-AAN2MB2X.js} +3 -3
  13. package/dist/{chunk-KSM6GFHP.js → chunk-B7K7V22Y.js} +2 -2
  14. package/dist/{chunk-6MR4IJRW.js → chunk-EAQ5YRRY.js} +1383 -63
  15. package/dist/chunk-EAQ5YRRY.js.map +1 -0
  16. package/dist/chunk-ISPWRSEC.js +408 -0
  17. package/dist/chunk-ISPWRSEC.js.map +1 -0
  18. package/dist/{chunk-7FJJUC73.js → chunk-LFM4JBRW.js} +29 -6
  19. package/dist/{chunk-7FJJUC73.js.map → chunk-LFM4JBRW.js.map} +1 -1
  20. package/dist/{chunk-ROILMKDL.js → chunk-QYCKIV6C.js} +3 -3
  21. package/dist/{chunk-LJLG734E.js → chunk-SBTWKPVR.js} +10 -11
  22. package/dist/{chunk-LJLG734E.js.map → chunk-SBTWKPVR.js.map} +1 -1
  23. package/dist/{chunk-CK76OZPM.js → chunk-SNSMRT6H.js} +56 -386
  24. package/dist/chunk-SNSMRT6H.js.map +1 -0
  25. package/dist/{chunk-KJ2Q4T7F.js → chunk-TUSOOIDV.js} +2 -2
  26. package/dist/{chunk-CI7WS6S2.js → chunk-ZOYN3JR5.js} +5 -5
  27. package/dist/{chunk-377GOJHJ.js → chunk-ZXICDSAK.js} +333 -4
  28. package/dist/chunk-ZXICDSAK.js.map +1 -0
  29. package/dist/{completion-gate-C6dhVN-N.d.ts → completion-gate-DLINnrkM.d.ts} +1 -1
  30. package/dist/{coordination-D9l_YmwW.d.ts → coordination-DTehA977.d.ts} +250 -8
  31. package/dist/environment-provider.d.ts +2 -2
  32. package/dist/index.d.ts +12 -12
  33. package/dist/index.js +17 -15
  34. package/dist/index.js.map +1 -1
  35. package/dist/intelligence.d.ts +26 -8
  36. package/dist/intelligence.js +24 -7
  37. package/dist/intelligence.js.map +1 -1
  38. package/dist/knowledge.d.ts +6 -6
  39. package/dist/knowledge.js +9 -9
  40. package/dist/{loop-runner-bin-PnWslIw4.d.ts → loop-runner-bin-DhIXsLAd.d.ts} +2 -2
  41. package/dist/loop-runner-bin.d.ts +5 -5
  42. package/dist/loop-runner-bin.js +6 -6
  43. package/dist/loops.d.ts +305 -148
  44. package/dist/loops.js +82 -14
  45. package/dist/mcp/bin.js +3 -3
  46. package/dist/mcp/index.d.ts +6 -6
  47. package/dist/mcp/index.js +6 -6
  48. package/dist/profiles.d.ts +1 -1
  49. package/dist/{profile-DbfaMTdk.d.ts → protected-model-port-DzkUY3HQ.d.ts} +41 -3
  50. package/dist/{structural-rollout-D7xik9XR.d.ts → structural-rollout-BFPIy3iw.d.ts} +3 -3
  51. package/dist/supervise-Cp8bNcJi.d.ts +379 -0
  52. package/dist/testing.js +10 -10
  53. package/dist/testing.js.map +1 -1
  54. package/dist/{types-CWqfCO8s.d.ts → types-Cbp72qyu.d.ts} +1 -1
  55. package/dist/{types-CLat4bT9.d.ts → types-DK11_O4L.d.ts} +1 -1
  56. package/dist/types-lZTE_LBd.d.ts +957 -0
  57. package/dist/{worktree-fanout-DsIR4d6w.d.ts → worktree-fanout-DiiJWjJO.d.ts} +17 -5
  58. package/package.json +3 -2
  59. package/skills/build-with-agent-runtime/SKILL.md +7 -5
  60. package/skills/generate-eval/SKILL.md +45 -52
  61. package/skills/loop-writer/SKILL.md +79 -147
  62. package/skills/supervise/SKILL.md +33 -14
  63. package/dist/chunk-377GOJHJ.js.map +0 -1
  64. package/dist/chunk-6MR4IJRW.js.map +0 -1
  65. package/dist/chunk-CK76OZPM.js.map +0 -1
  66. package/dist/chunk-IMSNJSXH.js +0 -73
  67. package/dist/chunk-IMSNJSXH.js.map +0 -1
  68. package/dist/chunk-KPHTCHQ4.js.map +0 -1
  69. package/dist/chunk-SQ3ZJH3Y.js.map +0 -1
  70. package/dist/supervise-BQdNAXtK.d.ts +0 -131
  71. package/dist/types-D870JlH0.d.ts +0 -500
  72. /package/dist/{chunk-3DW5DEKQ.js.map → chunk-5AITUUHO.js.map} +0 -0
  73. /package/dist/{chunk-RTB3TC73.js.map → chunk-AAN2MB2X.js.map} +0 -0
  74. /package/dist/{chunk-KSM6GFHP.js.map → chunk-B7K7V22Y.js.map} +0 -0
  75. /package/dist/{chunk-ROILMKDL.js.map → chunk-QYCKIV6C.js.map} +0 -0
  76. /package/dist/{chunk-KJ2Q4T7F.js.map → chunk-TUSOOIDV.js.map} +0 -0
  77. /package/dist/{chunk-CI7WS6S2.js.map → chunk-ZOYN3JR5.js.map} +0 -0
@@ -2,11 +2,11 @@ import {
2
2
  createSupervisor,
3
3
  routerToolLoop,
4
4
  withDriverExecutor
5
- } from "./chunk-SQ3ZJH3Y.js";
5
+ } from "./chunk-6WZZXQV5.js";
6
6
  import {
7
7
  InMemoryResultBlobStore,
8
8
  InMemorySpawnJournal
9
- } from "./chunk-IMSNJSXH.js";
9
+ } from "./chunk-ISPWRSEC.js";
10
10
 
11
11
  // src/improvement/optimizer-prompt.ts
12
12
  var optimizerMethod = [
@@ -1335,4 +1335,4 @@ export {
1335
1335
  defaultExtractCandidate,
1336
1336
  structuralRollout
1337
1337
  };
1338
- //# sourceMappingURL=chunk-ROILMKDL.js.map
1338
+ //# sourceMappingURL=chunk-QYCKIV6C.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-UPWGXKXB.js";
7
7
  import {
8
8
  contentAddress
9
- } from "./chunk-IMSNJSXH.js";
9
+ } from "./chunk-ISPWRSEC.js";
10
10
 
11
11
  // src/candidate-execution/profile.ts
12
12
  import {
@@ -155,6 +155,9 @@ var CANDIDATE_PROFILE_DIRECT_FIELDS = [
155
155
  ];
156
156
  function freezeGenericAgentCandidateProfile(input) {
157
157
  const profile = parseExactAgentProfile(input, "profile");
158
+ return candidateProfileFromGenericProfile(profile);
159
+ }
160
+ function candidateProfileFromGenericProfile(profile) {
158
161
  if (profile.connections !== void 0) unsupportedProfileField("connections");
159
162
  if (profile.metadata !== void 0) unsupportedProfileField("metadata");
160
163
  if (profile.extensions !== void 0) unsupportedProfileField("extensions");
@@ -192,17 +195,13 @@ function freezeGenericAgentCandidateProfile(input) {
192
195
  );
193
196
  }
194
197
  const parsed = parseExactCandidateProfile(candidate);
195
- assertCandidateProfileBinding(profile, parsed);
196
198
  return parsed;
197
199
  }
198
200
  function assertCandidateProfileBinding(measuredInput, bundled) {
199
- const measured = parseExactAgentProfile(measuredInput, "proposal candidate profile");
200
- if (measured.connections || measured.metadata || measured.extensions) {
201
- throw new Error("proposal candidate profile contains fields unsupported by sealed candidates");
202
- }
203
- const normalized = agentCandidateProfileAsAgentProfile(bundled);
204
- if (canonicalCandidateDigest(measured) !== canonicalCandidateDigest(normalized)) {
205
- throw new Error("proposal candidateProfile does not match candidateBundle.profile");
201
+ const measured = parseExactAgentProfile(measuredInput, "measured agent profile");
202
+ const expected = candidateProfileFromGenericProfile(measured);
203
+ if (canonicalCandidateDigest(expected) !== canonicalCandidateDigest(bundled)) {
204
+ throw new Error("measured agent profile does not match sealed candidate profile");
206
205
  }
207
206
  }
208
207
  function parseExactAgentProfile(input, label) {
@@ -277,7 +276,7 @@ function agentCandidateProfileAsAgentProfile(candidate) {
277
276
  }
278
277
  if (candidate.resources) {
279
278
  if (candidate.resources.failOnError !== true) {
280
- throw new Error("proposal candidate profile contains fields unsupported by sealed candidates");
279
+ throw new Error("sealed candidate profile contains fields unsupported by generic profiles");
281
280
  }
282
281
  output.resources = {
283
282
  failOnError: true,
@@ -5574,4 +5573,4 @@ export {
5574
5573
  executePreparedAgentCandidate,
5575
5574
  prepareAgentCandidateExecution
5576
5575
  };
5577
- //# sourceMappingURL=chunk-LJLG734E.js.map
5576
+ //# sourceMappingURL=chunk-SBTWKPVR.js.map