@tangle-network/agent-runtime 0.190.0 → 0.191.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 (74) hide show
  1. package/dist/{activation-BgRWFKZi.js → activation-BpTEBhQR.js} +2 -2
  2. package/dist/{activation-BgRWFKZi.js.map → activation-BpTEBhQR.js.map} +1 -1
  3. package/dist/agent.d.ts +1 -1
  4. package/dist/agent.js +2 -2
  5. package/dist/{authoring-dQQ2z1fT.js → authoring-DV0fkyxx.js} +7 -3
  6. package/dist/{authoring-dQQ2z1fT.js.map → authoring-DV0fkyxx.js.map} +1 -1
  7. package/dist/conversation.d.ts +1 -1
  8. package/dist/{coordination-driver-Da1IGdTP.js → coordination-driver-Bw0Prnim.js} +668 -35
  9. package/dist/coordination-driver-Bw0Prnim.js.map +1 -0
  10. package/dist/durable.d.ts +2 -2
  11. package/dist/durable.js +1 -1
  12. package/dist/{environment-provider-Bf-hgR6p.d.ts → environment-provider-CJ43FJfJ.d.ts} +2 -2
  13. package/dist/{environment-provider-DcelIawX.js → environment-provider-DEwsolvi.js} +43 -6
  14. package/dist/environment-provider-DEwsolvi.js.map +1 -0
  15. package/dist/environment-provider.d.ts +1 -1
  16. package/dist/environment-provider.js +1 -1
  17. package/dist/{graph-Bd1elhdL.js → graph-BzsMtBYp.js} +3 -2
  18. package/dist/graph-BzsMtBYp.js.map +1 -0
  19. package/dist/graph.d.ts +3 -3
  20. package/dist/graph.js +3 -3
  21. package/dist/{redact-Cv1GfOFO.d.ts → improve-Cbbt3jE6.d.ts} +4 -36
  22. package/dist/{improvement-cycle-BanlFMyL.js → improvement-cycle-jC89uaRW.js} +3 -3
  23. package/dist/{improvement-cycle-BanlFMyL.js.map → improvement-cycle-jC89uaRW.js.map} +1 -1
  24. package/dist/{index-DpNil9jh.d.ts → index-B2rVjcPT.d.ts} +311 -13
  25. package/dist/{index-Clb7_qML.d.ts → index-OSRVFARy.d.ts} +2 -2
  26. package/dist/{index-C-gBk5M9.d.ts → index-Y14IrBuB.d.ts} +4 -4
  27. package/dist/index.d.ts +9 -8
  28. package/dist/index.js +7 -8
  29. package/dist/index.js.map +1 -1
  30. package/dist/intelligence.d.ts +5 -4
  31. package/dist/intelligence.js +4 -5
  32. package/dist/intelligence.js.map +1 -1
  33. package/dist/kernel.d.ts +6 -6
  34. package/dist/kernel.js +9 -9
  35. package/dist/{knowledge-BXdXlv48.js → knowledge-BuXP5ynd.js} +3 -3
  36. package/dist/{knowledge-BXdXlv48.js.map → knowledge-BuXP5ynd.js.map} +1 -1
  37. package/dist/knowledge.d.ts +1 -1
  38. package/dist/knowledge.js +1 -1
  39. package/dist/{loop-runner-bin-CGQzzWAc.js → loop-runner-bin-B_Xh4jLi.js} +3 -3
  40. package/dist/{loop-runner-bin-CGQzzWAc.js.map → loop-runner-bin-B_Xh4jLi.js.map} +1 -1
  41. package/dist/{loop-runner-bin-Cy4f9M6p.d.ts → loop-runner-bin-C2Yw-RBc.d.ts} +3 -3
  42. package/dist/loop-runner-bin.d.ts +1 -1
  43. package/dist/loop-runner-bin.js +1 -1
  44. package/dist/mcp/bin.js +3 -3
  45. package/dist/mcp/index.d.ts +4 -4
  46. package/dist/mcp/index.js +6 -6
  47. package/dist/{openai-tools-BSDk_umV.js → openai-tools-Dqg8IhKd.js} +2 -2
  48. package/dist/{openai-tools-BSDk_umV.js.map → openai-tools-Dqg8IhKd.js.map} +1 -1
  49. package/dist/primeintellect/index.d.ts +1 -1
  50. package/dist/{provision-supervisor-bwpzajiz.js → provision-supervisor-DAcTZDQG.js} +4 -4
  51. package/dist/{provision-supervisor-bwpzajiz.js.map → provision-supervisor-DAcTZDQG.js.map} +1 -1
  52. package/dist/{supervisor-CqJW4qap.js → redact-BP8Xn2A3.js} +83 -4
  53. package/dist/redact-BP8Xn2A3.js.map +1 -0
  54. package/dist/{runtime-BMWmSu4A.d.ts → runtime-DI4mJNXI.d.ts} +3 -3
  55. package/dist/{runtime-Ddh7PyCy.js → runtime-Dm63BrGY.js} +63 -19
  56. package/dist/{runtime-Ddh7PyCy.js.map → runtime-Dm63BrGY.js.map} +1 -1
  57. package/dist/{stream-agent-turn-uqzf9ZEh.d.ts → stream-agent-turn-_GgUW49y.d.ts} +35 -3
  58. package/dist/{structural-rollout-0NKvKuFm.js → structural-rollout-ChpGSR0q.js} +2 -2
  59. package/dist/{structural-rollout-0NKvKuFm.js.map → structural-rollout-ChpGSR0q.js.map} +1 -1
  60. package/dist/{supervise-yDiZAqlN.js → supervise-B89x7rgF.js} +21 -6
  61. package/dist/supervise-B89x7rgF.js.map +1 -0
  62. package/dist/testing.d.ts +2 -2
  63. package/dist/testing.js +12 -12
  64. package/dist/tui/index.d.ts +1 -1
  65. package/dist/tui/index.js +1 -1
  66. package/dist/{types-02hXqnSP.d.ts → types-DKA_PDv0.d.ts} +27 -2
  67. package/package.json +1 -1
  68. package/dist/coordination-driver-Da1IGdTP.js.map +0 -1
  69. package/dist/environment-provider-DcelIawX.js.map +0 -1
  70. package/dist/graph-Bd1elhdL.js.map +0 -1
  71. package/dist/redact-D-u-rrcn.js +0 -82
  72. package/dist/redact-D-u-rrcn.js.map +0 -1
  73. package/dist/supervise-yDiZAqlN.js.map +0 -1
  74. package/dist/supervisor-CqJW4qap.js.map +0 -1
@@ -1,9 +1,41 @@
1
1
  import { J as AgentTaskStatus, Y as BackendErrorDetail, at as RuntimeStreamEvent } from "./types-BdolQ6Zi.js";
2
- import { p as ExecutorFactory } from "./types-02hXqnSP.js";
2
+ import { p as ExecutorFactory } from "./types-DKA_PDv0.js";
3
3
  import { AgentProfile } from "@tangle-network/agent-interface";
4
4
  import { AgentRunOutcome } from "@tangle-network/sandbox/runtime";
5
5
  import { PromptOptions, SandboxEvent, SandboxInstance } from "@tangle-network/sandbox";
6
6
  import { AgentTurnInput, AgentTurnInput as AgentTurnInput$1 } from "@tangle-network/agent-interface/environment-provider";
7
+ //#region src/redact.d.ts
8
+ /**
9
+ *
10
+ * Redaction for values that may leave the Runtime process. The default scrubs
11
+ * common leak classes (API keys, bearer tokens, emails, private keys) from
12
+ * strings and walks nested objects and arrays. A customer with domain-specific
13
+ * PII supplies their own `redact` hook.
14
+ *
15
+ * This is intentionally narrower than `src/sanitize.ts` (which redacts the
16
+ * runtime's *event envelope* field-by-field): here the value is opaque
17
+ * customer payload, so the scrub is value-shaped, not schema-shaped.
18
+ *
19
+ * @experimental
20
+ */
21
+ /** A redactor maps an arbitrary trace value to a safe-to-export value. Pure;
22
+ * must not throw on cyclic input (the default tolerates cycles). */
23
+ type Redactor = (value: unknown) => unknown;
24
+ /**
25
+ * The built-in redactor. Walks objects and arrays; replaces values under
26
+ * secret-bearing keys wholesale; scrubs in-value patterns from every string.
27
+ * Cycle-safe (a seen-set short-circuits self-referential payloads to
28
+ * `'[circular]'`), depth-bounded, and total — never throws on customer input.
29
+ */
30
+ declare function defaultRedactor(value: unknown): unknown;
31
+ /**
32
+ * Resolve the redactor a client uses. A caller-supplied hook handles
33
+ * domain-specific values first, then the built-in scrubber still removes
34
+ * common credentials and email addresses. Returning `false` is the explicit
35
+ * opt-out for already-reviewed public values.
36
+ */
37
+ declare function resolveRedactor(redact: Redactor | false | undefined): Redactor;
38
+ //#endregion
7
39
  //#region src/runtime/stream-agent-turn.d.ts
8
40
  /**
9
41
  * The execution substrate one turn runs on — a closed discriminated union over
@@ -124,5 +156,5 @@ declare function streamAgentTurn(backend: AgentTurnBackend, input: AgentTurnInpu
124
156
  */
125
157
  declare function collectAgentTurn(stream: AsyncIterable<RuntimeStreamEvent>): Promise<CollectedAgentTurn>;
126
158
  //#endregion
127
- export { StreamAgentTurnOptions as a, CollectedAgentTurn as i, AgentTurnInput$1 as n, collectAgentTurn as o, AgentTurnUsage as r, streamAgentTurn as s, AgentTurnBackend as t };
128
- //# sourceMappingURL=stream-agent-turn-uqzf9ZEh.d.ts.map
159
+ export { StreamAgentTurnOptions as a, Redactor as c, CollectedAgentTurn as i, defaultRedactor as l, AgentTurnInput$1 as n, collectAgentTurn as o, AgentTurnUsage as r, streamAgentTurn as s, AgentTurnBackend as t, resolveRedactor as u };
160
+ //# sourceMappingURL=stream-agent-turn-_GgUW49y.d.ts.map
@@ -2,7 +2,7 @@ import { n as streamAgentTurn, t as collectAgentTurn } from "./stream-agent-turn
2
2
  import { i as InMemorySpawnJournal, r as InMemoryResultBlobStore } from "./spawn-journal-B9eTmVAn.js";
3
3
  import { t as executableAgentProfileSnapshot } from "./executable-spec-DxuiDFAU.js";
4
4
  import { c as profileModelExecutionSettings, i as concreteModelId, o as enforceTokenLimits, t as assertExecutableAgentProfile } from "./model-policy-Wf2MxXJ9.js";
5
- import { Jt as observedModelMatchesDeclared, at as createExecutor, f as withDriverExecutor, n as createSupervisor, nt as captureReusableExecutorConfig } from "./supervisor-CqJW4qap.js";
5
+ import { Zt as observedModelMatchesDeclared, a as createSupervisor, at as captureReusableExecutorConfig, ct as createExecutor, h as withDriverExecutor } from "./redact-BP8Xn2A3.js";
6
6
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest } from "@tangle-network/agent-interface";
7
7
  import { costForTokenPricing, makeProposalFinding } from "@tangle-network/agent-eval";
8
8
  import { randomBytes } from "node:crypto";
@@ -1727,4 +1727,4 @@ function structuralRollout(config = {}) {
1727
1727
  //#endregion
1728
1728
  export { observe as C, optimizerMethod as D, profileOptimizerModelCall as E, strategyAuthorMethod as O, defaultAnalystInstruction as S, profileChatClient as T, depthStrategy as _, defaultStructuralRolloutPolicy as a, sample as b, officialChecksFromMeta as c, selectBestIndex as d, structuralRollout as f, defineStrategy as g, breadthStrategy as h, defaultExtractCandidate as i, resolveEntrySymbol as l, adaptiveRefine as m, compareCheckOutcomes as n, filterAuthoredAsserts as o, visibleCheckScore as p, composeCheckSources as r, modelAuthoredChecks as s, canDisplace as t, sandboxCheckRunner as u, refine as v, renderReport as w, sampleThenRefine as x, runAgentic as y };
1729
1729
 
1730
- //# sourceMappingURL=structural-rollout-0NKvKuFm.js.map
1730
+ //# sourceMappingURL=structural-rollout-ChpGSR0q.js.map