@tangle-network/agent-runtime 3.0.35 → 3.0.36

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 (27) hide show
  1. package/dist/agent.js +1 -1
  2. package/dist/{coordination-manager-CZzhPx_F.js → coordination-manager-CvWBnD3a.js} +5 -4
  3. package/dist/{coordination-manager-CZzhPx_F.js.map → coordination-manager-CvWBnD3a.js.map} +1 -1
  4. package/dist/{delegate-D0NpQF_z.js → delegate-EaeQed8U.js} +2 -2
  5. package/dist/{delegate-D0NpQF_z.js.map → delegate-EaeQed8U.js.map} +1 -1
  6. package/dist/durable.js +2 -2
  7. package/dist/{graph-BKMPvIk6.js → graph-XqPnqBK7.js} +3 -3
  8. package/dist/{graph-BKMPvIk6.js.map → graph-XqPnqBK7.js.map} +1 -1
  9. package/dist/index.js +2 -2
  10. package/dist/kernel.js +6 -6
  11. package/dist/{loop-runner-BmoENiTj.js → loop-runner-8agTjOrD.js} +2 -2
  12. package/dist/{loop-runner-BmoENiTj.js.map → loop-runner-8agTjOrD.js.map} +1 -1
  13. package/dist/loop-runner-bin.js +1 -1
  14. package/dist/mcp/bin.js +2 -2
  15. package/dist/mcp/index.js +3 -3
  16. package/dist/{provision-supervisor-BqbXjSYT.js → provision-supervisor-DFZxaxuY.js} +2 -2
  17. package/dist/{provision-supervisor-BqbXjSYT.js.map → provision-supervisor-DFZxaxuY.js.map} +1 -1
  18. package/dist/{runtime-Cxlb_vie.js → runtime-BmAGI6UG.js} +48 -24
  19. package/dist/runtime-BmAGI6UG.js.map +1 -0
  20. package/dist/{server-DINjmAT0.js → server-B1BzXziA.js} +2 -2
  21. package/dist/{server-DINjmAT0.js.map → server-B1BzXziA.js.map} +1 -1
  22. package/dist/{supervise-CeUM7jMe.js → supervise-zmX0eE6B.js} +2 -2
  23. package/dist/{supervise-CeUM7jMe.js.map → supervise-zmX0eE6B.js.map} +1 -1
  24. package/dist/testing.js +10 -10
  25. package/dist/tui/index.js +1 -1
  26. package/package.json +1 -1
  27. package/dist/runtime-Cxlb_vie.js.map +0 -1
package/dist/agent.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ki as mapSandboxEvent } from "./scope-CBW-oIwP.js";
2
2
  import { l as sha256 } from "./jsonl-file-BBP9Dz9w.js";
3
3
  import { A as createSandboxForSpec, Kt as assertProfileMaterialization, qt as assertProfileMaterializes, tn as sandboxActProfileMaterialization } from "./supervisor-B68cSh2T.js";
4
- import "./runtime-Cxlb_vie.js";
4
+ import "./runtime-BmAGI6UG.js";
5
5
  import { existsSync, readFileSync, statSync } from "node:fs";
6
6
  import { isAbsolute, join, relative, resolve, sep } from "node:path";
7
7
  import { parseFindingSubject } from "@tangle-network/agent-eval/analyst";
@@ -4266,10 +4266,11 @@ function workerOutputReadOptions(raw) {
4266
4266
  function samePath(left, right) {
4267
4267
  return left.length === right.length && left.every((field, index) => field === right[index]);
4268
4268
  }
4269
+ const shapeOf = (value) => value === null ? "null" : typeof value !== "object" ? `a ${typeof value}` : `${Array.isArray(value) ? "an array" : "an object"} with fields ${Object.keys(value).slice(0, 20).join(", ") || "none"}`;
4269
4270
  function selectWorkerOutput(output, path) {
4270
4271
  let selected = output;
4271
- for (const field of path) {
4272
- if (selected === null || typeof selected !== "object" || !Object.hasOwn(selected, field)) throw new Error("observe_agent outputPath does not identify a retained field");
4272
+ for (const [step, field] of path.entries()) {
4273
+ if (selected === null || typeof selected !== "object" || !Object.hasOwn(selected, field)) throw new Error(`observe_agent outputPath ${JSON.stringify(path)} does not identify a retained field: the artifact at ${JSON.stringify(path.slice(0, step))} is ${shapeOf(selected)}. Omit outputPath to read the complete artifact.`);
4273
4274
  selected = selected[field];
4274
4275
  }
4275
4276
  return selected;
@@ -4484,7 +4485,7 @@ async function spawnWorkerHandler(ctx, raw) {
4484
4485
  function observeAgentTool(ctx) {
4485
4486
  return {
4486
4487
  name: "observe_agent",
4487
- description: "Inspect a worker WHILE IT RUNS, not only after it finishes: status, spend so far, and `progress` — how long since it last did anything (`idleMs`), whether that counts as stalled, how many turns it has taken, the last tools/files it touched (`recentActivity`), what its executor CHANGED about the profile you gave it (`derived` — an MCP config it materialized, an extension it had to add), whether a steer can even reach it (`steerable`), and how many steers it has not yet read (`pendingMessages`). For a worker that leads its own team, `progress.team` counts the agents below it (working, queued, done, down) and its idle clock reads the newest activity anywhere in that team, so a lead whose workers are busy is not stalled. A queued worker waits for a worker slot and is never stalled. A worker whose executor has FINISHED but whose settlement you have not yet drained reports `settlementPending` with its terminal kind; its `status` still reads running until your next wake delivers it, so end your turn rather than observing again. The settled output artifact is returned once drained. Select a field with `outputPath`, for example [\"content\"] to read a provider result without its event history. Omit it to read the complete artifact. Large outputs return a bounded JSON `outputPage`; repeat with `outputOffset: outputPage.nextOffset` until it is null, concatenate page text, then parse the JSON. Offsets and limits count UTF-16 characters. The full artifact stays retained; an outRef is a content address, not a workspace path. Use this BEFORE steer_agent: a steer is only worth sending when the progress says the worker is on the wrong path or has stopped making any.",
4488
+ description: "Inspect a worker WHILE IT RUNS, not only after it finishes: status, spend so far, and `progress` — how long since it last did anything (`idleMs`), whether that counts as stalled, how many turns it has taken, the last tools/files it touched (`recentActivity`), what its executor CHANGED about the profile you gave it (`derived` — an MCP config it materialized, an extension it had to add), whether a steer can even reach it (`steerable`), and how many steers it has not yet read (`pendingMessages`). For a worker that leads its own team, `progress.team` counts the agents below it (working, queued, done, down) and its idle clock reads the newest activity anywhere in that team, so a lead whose workers are busy is not stalled. A queued worker waits for a worker slot and is never stalled. A worker whose executor has FINISHED but whose settlement you have not yet drained reports `settlementPending` with its terminal kind; its `status` still reads running until your next wake delivers it, so end your turn rather than observing again. The settled output artifact is returned once drained: what the worker submitted, often a plain string, else its provider result. Omit `outputPath` to read it whole; [\"content\"] selects a provider result without its events. Large outputs return a bounded JSON `outputPage`; repeat with `outputOffset: outputPage.nextOffset` until it is null, concatenate page text, then parse the JSON. Offsets and limits count UTF-16 characters. The full artifact stays retained; an outRef is a content address, not a workspace path. Use this BEFORE steer_agent: a steer is only worth sending when the progress says the worker is on the wrong path or has stopped making any.",
4488
4489
  inputSchema: {
4489
4490
  type: "object",
4490
4491
  properties: {
@@ -5131,4 +5132,4 @@ function createResumeReplay({ opts, bus, ledger, analysis, projectSettled }) {
5131
5132
  }
5132
5133
  export { downMessageRefusalReasons as a, createSteerAcknowledger as c, coordinationVerbNames as d, createFileRunContext as f, watchTrace as i, budgetOverspendText as l, withRunContext as m, createCoordinationToolsForManager as n, createEventBus as o, createInMemoryRunContext as p, defaultToolDetectors as r, createCancelAcknowledger as s, createCoordinationTools as t, normalizeAnalyzeOnSettle as u };
5133
5134
 
5134
- //# sourceMappingURL=coordination-manager-CZzhPx_F.js.map
5135
+ //# sourceMappingURL=coordination-manager-CvWBnD3a.js.map