agency-lang 0.24.0 → 0.25.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 (96) hide show
  1. package/dist/lib/agents/agency-agent/agent.agency +7 -3
  2. package/dist/lib/agents/agency-agent/agent.js +43 -38
  3. package/dist/lib/agents/agency-agent/brains/coordinator/coordinator.js +6 -6
  4. package/dist/lib/agents/agency-agent/brains/coordinator/learn.js +3 -3
  5. package/dist/lib/agents/agency-agent/brains/coordinator/subagents/code.js +9 -9
  6. package/dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency +0 -1
  7. package/dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.js +3 -4
  8. package/dist/lib/agents/agency-agent/brains/coordinator/subagents/research.js +4 -4
  9. package/dist/lib/agents/agency-agent/brains/coordinator/subagents/review.js +2 -2
  10. package/dist/lib/agents/agency-agent/lib/capabilitiesUi.js +3 -3
  11. package/dist/lib/agents/agency-agent/lib/header.agency +2 -0
  12. package/dist/lib/agents/agency-agent/lib/header.js +12 -3
  13. package/dist/lib/agents/agency-agent/lib/learned.js +4 -4
  14. package/dist/lib/agents/agency-agent/lib/modelRequest.js +3 -3
  15. package/dist/lib/agents/agency-agent/{brains/coordinator/subagents/announce.js → lib/outputCap.js} +142 -91
  16. package/dist/lib/agents/agency-agent/lib/policy.js +14 -14
  17. package/dist/lib/agents/agency-agent/lib/presets.js +7 -7
  18. package/dist/lib/agents/agency-agent/lib/repl.js +3 -3
  19. package/dist/lib/agents/agency-agent/lib/resolution.js +2 -2
  20. package/dist/lib/agents/agency-agent/lib/search.js +3 -3
  21. package/dist/lib/agents/agency-agent/lib/session.js +3 -3
  22. package/dist/lib/agents/agency-agent/lib/sessions.js +2 -2
  23. package/dist/lib/agents/agency-agent/lib/settings.js +12 -12
  24. package/dist/lib/agents/agency-agent/lib/slashCommands/policy.js +3 -3
  25. package/dist/lib/agents/agency-agent/lib/toolLimits.js +2 -2
  26. package/dist/lib/agents/agency-agent/lib/turn.js +2 -2
  27. package/dist/lib/agents/agency-agent/shared.js +3 -3
  28. package/dist/lib/cli/diffusersImageRules.py +310 -0
  29. package/dist/lib/cli/diffusersImageServer.py +268 -0
  30. package/dist/lib/cli/local.js +10 -7
  31. package/dist/lib/cli/localFlag.js +6 -2
  32. package/dist/lib/cli/localServe.d.ts +27 -4
  33. package/dist/lib/cli/localServe.js +109 -35
  34. package/dist/lib/cli/localServerCommon.py +27 -0
  35. package/dist/lib/cli/mlxServer.js +4 -2
  36. package/dist/lib/cli/mlxSpeechServer.py +1 -21
  37. package/dist/lib/cli/serveLog.d.ts +19 -2
  38. package/dist/lib/cli/serveLog.js +23 -3
  39. package/dist/lib/cli/testReport.d.ts +3 -3
  40. package/dist/lib/config/config.d.ts +6 -2
  41. package/dist/lib/config/config.js +1 -1
  42. package/dist/lib/runtime/asyncContext.d.ts +9 -0
  43. package/dist/lib/runtime/handoff.d.ts +168 -6
  44. package/dist/lib/runtime/handoff.js +277 -13
  45. package/dist/lib/runtime/prompt.d.ts +2 -66
  46. package/dist/lib/runtime/prompt.js +466 -571
  47. package/dist/lib/runtime/providerModules.js +3 -0
  48. package/dist/lib/runtime/replyAttachments.d.ts +3 -0
  49. package/dist/lib/runtime/replyAttachments.js +3 -1
  50. package/dist/lib/runtime/resumableScope.js +1 -0
  51. package/dist/lib/runtime/runBatch.js +1 -0
  52. package/dist/lib/runtime/runner.js +1 -0
  53. package/dist/lib/runtime/state/stateStack.d.ts +22 -0
  54. package/dist/lib/runtime/state/stateStack.js +31 -0
  55. package/dist/lib/runtime/toolInvocation.d.ts +109 -0
  56. package/dist/lib/runtime/toolInvocation.js +181 -0
  57. package/dist/lib/runtime/toolLoopGuards.d.ts +43 -1
  58. package/dist/lib/runtime/toolLoopGuards.js +77 -4
  59. package/dist/lib/runtime/turnBoundary.d.ts +8 -0
  60. package/dist/lib/runtime/turnBoundary.js +19 -0
  61. package/dist/lib/statelogClient.d.ts +1 -1
  62. package/dist/lib/stdlib/diffusersFiles.d.ts +19 -0
  63. package/dist/lib/stdlib/diffusersFiles.js +52 -0
  64. package/dist/lib/stdlib/hubClient.d.ts +4 -0
  65. package/dist/lib/stdlib/hubClient.js +22 -0
  66. package/dist/lib/stdlib/image.d.ts +3 -0
  67. package/dist/lib/stdlib/image.js +114 -26
  68. package/dist/lib/stdlib/localModels.d.ts +18 -17
  69. package/dist/lib/stdlib/localModels.js +105 -64
  70. package/dist/lib/stdlib/mlxImage.d.ts +21 -0
  71. package/dist/lib/stdlib/mlxImage.js +136 -0
  72. package/dist/lib/stdlib/mlxModelRecord.d.ts +6 -1
  73. package/dist/lib/stdlib/mlxModelRecord.js +9 -2
  74. package/dist/lib/stdlib/mlxServerModels.d.ts +4 -0
  75. package/dist/lib/stdlib/mlxServerModels.js +6 -0
  76. package/dist/lib/stdlib/modelBackend.d.ts +28 -2
  77. package/dist/lib/stdlib/modelBackend.js +98 -20
  78. package/dist/lib/stdlib/modelCatalog.d.ts +3 -2
  79. package/dist/lib/stdlib/modelCatalog.js +23 -0
  80. package/dist/lib/stdlib/speech.js +5 -7
  81. package/dist/lib/stdlib/thread.d.ts +10 -1
  82. package/dist/lib/stdlib/thread.js +34 -0
  83. package/dist/scripts/agency.js +3 -2
  84. package/package.json +1 -1
  85. package/stdlib/docs/cli/local.md +19 -4
  86. package/stdlib/docs/guide/functions.md +71 -0
  87. package/stdlib/docs/guide/using-local-models.md +34 -0
  88. package/stdlib/docs/stdlib/image.md +72 -8
  89. package/stdlib/docs/stdlib/thread.md +82 -36
  90. package/stdlib/image.agency +55 -6
  91. package/stdlib/image.js +226 -3
  92. package/stdlib/thread.agency +30 -0
  93. package/stdlib/thread.js +265 -3
  94. package/dist/lib/agents/agency-agent/brains/coordinator/subagents/context.js +0 -533
  95. package/dist/lib/agents/gepaReflect.js +0 -316
  96. package/dist/lib/agents/mutatePrompt.js +0 -301
@@ -1,6 +1,7 @@
1
1
  import { parseArgs } from "std::args"
2
2
  import { map } from "std::array"
3
3
  import { setLlmOptions } from "std::llm"
4
+ import { disableMemory } from "std::memory"
4
5
  import { evalOutput, evalValue, setAgentName } from "std::statelog"
5
6
  import { cwd, env, isTTY, readStdin, setTitle } from "std::system"
6
7
  import { getCost } from "std::thread"
@@ -18,7 +19,7 @@ import { printPolicyHelp } from "./lib/policy.agency"
18
19
  import { activePreset, startPreset } from "./lib/presets.agency"
19
20
  import { installSessionHooks, startInteractive } from "./lib/repl.agency"
20
21
  import { chooseSession, startSession } from "./lib/resume.agency"
21
- import { pickModelsForAgent, maybeEnableMemory } from "./lib/session.agency"
22
+ import { pickModelsForAgent } from "./lib/session.agency"
22
23
  import { loadSettings } from "./lib/settings.agency"
23
24
  import { applyToolLimits, limitFlagsFromArgs, setStartupLimitFlags } from "./lib/toolLimits.agency"
24
25
  import { setDebug, setVerbose, setInteractive } from "./lib/trace.agency"
@@ -143,9 +144,12 @@ node main() {
143
144
  startPreset(args.flags.preset ?? "", loadSettings())
144
145
  pickModelsForAgent(args)
145
146
 
146
- // Persistent knowledge graph, gated on the capability profile. Must run
147
+ // Memory stays off for the agent. After every model reply it ran a fact
148
+ // extraction and a summary on another model, and the tool calls waited
149
+ // for both, often a minute or more per round. The research memory also
150
+ // compacted the coordinator's own thread during a handoff. Must run
147
151
  // before any handler/REPL is installed.
148
- maybeEnableMemory()
152
+ disableMemory() with approve
149
153
 
150
154
  // Connect configured MCP servers and hand their (policy-gated) tools to the
151
155
  // coordinator. Must run before the first turn (mcpTools ordering contract).
@@ -2,6 +2,7 @@ import { print, printJSON, input, sleep, saveDraft, _guard, _pairsOf, read, writ
2
2
  import { parseArgs } from "agency-lang/stdlib/args.js";
3
3
  import { map } from "agency-lang/stdlib/array.js";
4
4
  import { setLlmOptions } from "agency-lang/stdlib/llm.js";
5
+ import { disableMemory } from "agency-lang/stdlib/memory.js";
5
6
  import { evalOutput, evalValue, setAgentName } from "agency-lang/stdlib/statelog.js";
6
7
  import { cwd, env, isTTY, readStdin, setTitle } from "agency-lang/stdlib/system.js";
7
8
  import { getCost } from "agency-lang/stdlib/thread.js";
@@ -18,7 +19,7 @@ import { printPolicyHelp } from "./lib/policy.js";
18
19
  import { activePreset, startPreset } from "./lib/presets.js";
19
20
  import { installSessionHooks, startInteractive } from "./lib/repl.js";
20
21
  import { chooseSession, startSession } from "./lib/resume.js";
21
- import { pickModelsForAgent, maybeEnableMemory } from "./lib/session.js";
22
+ import { pickModelsForAgent } from "./lib/session.js";
22
23
  import { loadSettings } from "./lib/settings.js";
23
24
  import { applyToolLimits, limitFlagsFromArgs, setStartupLimitFlags } from "./lib/toolLimits.js";
24
25
  import { setDebug, setVerbose, setInteractive } from "./lib/trace.js";
@@ -187,7 +188,7 @@ function registerTools(tools) {
187
188
  }
188
189
  }
189
190
  }
190
- __registerModuleFingerprint("dist/lib/agents/agency-agent/agent.agency", "36859b3fce9a08dda5d9dbb68aeb4e928266f8f5b45fefaba17e89da160b07cf", import.meta.url);
191
+ __registerModuleFingerprint("dist/lib/agents/agency-agent/agent.agency", "e48a3277f98122b209a01450ad0676793069221bdefa929ef923a85730f32ef7", import.meta.url);
191
192
  __registerTool(print);
192
193
  __registerTool(printJSON);
193
194
  __registerTool(input);
@@ -222,6 +223,7 @@ __registerTool(applyAgentCwd);
222
223
  __registerTool(parseArgs);
223
224
  __registerTool(map);
224
225
  __registerTool(setLlmOptions);
226
+ __registerTool(disableMemory);
225
227
  __registerTool(evalOutput);
226
228
  __registerTool(evalValue);
227
229
  __registerTool(setAgentName);
@@ -252,7 +254,6 @@ __registerTool(startInteractive);
252
254
  __registerTool(chooseSession);
253
255
  __registerTool(startSession);
254
256
  __registerTool(pickModelsForAgent);
255
- __registerTool(maybeEnableMemory);
256
257
  __registerTool(loadSettings);
257
258
  __registerTool(applyToolLimits);
258
259
  __registerTool(limitFlagsFromArgs);
@@ -1074,24 +1075,28 @@ graph.node("main", async (__state) => {
1074
1075
  throw __funcResult.toError();
1075
1076
  }
1076
1077
  });
1077
- await runner.step(28, async (runner2) => {
1078
- const __funcResult = await __call(maybeEnableMemory, {
1079
- type: "positional",
1080
- args: []
1081
- });
1082
- if (hasInterrupts(__funcResult)) {
1083
- await getRuntimeContext().ctx.pendingPromises.awaitAll();
1084
- runner2.halt({
1085
- ...__state,
1086
- data: __funcResult
1078
+ await runner.handle(28, async (__data) => approve(), async (runner2) => {
1079
+ await runner2.step(0, async (runner3) => {
1080
+ const __funcResult = await __call(disableMemory, {
1081
+ type: "positional",
1082
+ args: []
1087
1083
  });
1088
- return;
1089
- }
1090
- if (isAborted(__funcResult)) {
1091
- throw __funcResult.toError();
1092
- }
1084
+ if (hasInterrupts(__funcResult)) {
1085
+ await getRuntimeContext().ctx.pendingPromises.awaitAll();
1086
+ runner3.halt({
1087
+ ...__state,
1088
+ data: __funcResult
1089
+ });
1090
+ return;
1091
+ }
1092
+ if (isAborted(__funcResult)) {
1093
+ throw __funcResult.toError();
1094
+ }
1095
+ });
1093
1096
  });
1094
1097
  await runner.step(29, async (runner2) => {
1098
+ });
1099
+ await runner.step(30, async (runner2) => {
1095
1100
  __stack.locals.__hoist_7 = await __call(loadSettings, {
1096
1101
  type: "positional",
1097
1102
  args: []
@@ -1108,7 +1113,7 @@ graph.node("main", async (__state) => {
1108
1113
  throw __stack.locals.__hoist_7.toError();
1109
1114
  }
1110
1115
  });
1111
- await runner.step(30, async (runner2) => {
1116
+ await runner.step(31, async (runner2) => {
1112
1117
  const __funcResult = await __call(maybeLoadMcp, {
1113
1118
  type: "positional",
1114
1119
  args: [__stack.locals.__hoist_7]
@@ -1125,7 +1130,7 @@ graph.node("main", async (__state) => {
1125
1130
  throw __funcResult.toError();
1126
1131
  }
1127
1132
  });
1128
- await runner.step(31, async (runner2) => {
1133
+ await runner.step(32, async (runner2) => {
1129
1134
  __stack.locals.__hoist_8 = await __call(limitFlagsFromArgs, {
1130
1135
  type: "positional",
1131
1136
  args: [__stack.locals.args]
@@ -1142,7 +1147,7 @@ graph.node("main", async (__state) => {
1142
1147
  throw __stack.locals.__hoist_8.toError();
1143
1148
  }
1144
1149
  });
1145
- await runner.step(32, async (runner2) => {
1150
+ await runner.step(33, async (runner2) => {
1146
1151
  const __funcResult = await __call(setStartupLimitFlags, {
1147
1152
  type: "positional",
1148
1153
  args: [__stack.locals.__hoist_8]
@@ -1159,7 +1164,7 @@ graph.node("main", async (__state) => {
1159
1164
  throw __funcResult.toError();
1160
1165
  }
1161
1166
  });
1162
- await runner.step(33, async (runner2) => {
1167
+ await runner.step(34, async (runner2) => {
1163
1168
  __stack.locals.__hoist_9 = await __call(activePreset, {
1164
1169
  type: "positional",
1165
1170
  args: []
@@ -1176,7 +1181,7 @@ graph.node("main", async (__state) => {
1176
1181
  throw __stack.locals.__hoist_9.toError();
1177
1182
  }
1178
1183
  });
1179
- await runner.step(34, async (runner2) => {
1184
+ await runner.step(35, async (runner2) => {
1180
1185
  const __funcResult = await __call(applyToolLimits, {
1181
1186
  type: "positional",
1182
1187
  args: [__stack.locals.__hoist_9, __stack.locals.isOneShot]
@@ -1193,7 +1198,7 @@ graph.node("main", async (__state) => {
1193
1198
  throw __funcResult.toError();
1194
1199
  }
1195
1200
  });
1196
- await runner.step(35, async (runner2) => {
1201
+ await runner.step(36, async (runner2) => {
1197
1202
  __stack.locals.__hoist_10 = await __call(getCapabilities, {
1198
1203
  type: "positional",
1199
1204
  args: []
@@ -1210,10 +1215,10 @@ graph.node("main", async (__state) => {
1210
1215
  throw __stack.locals.__hoist_10.toError();
1211
1216
  }
1212
1217
  });
1213
- await runner.step(36, async (runner2) => {
1218
+ await runner.step(37, async (runner2) => {
1214
1219
  __stack.locals.capsMaxTokens = __stack.locals.__hoist_10.maxTokens;
1215
1220
  });
1216
- await runner.ifElse(37, [
1221
+ await runner.ifElse(38, [
1217
1222
  {
1218
1223
  condition: async () => !__eq(__stack.locals.capsMaxTokens, null),
1219
1224
  body: async (runner2) => {
@@ -1239,9 +1244,9 @@ graph.node("main", async (__state) => {
1239
1244
  }
1240
1245
  }
1241
1246
  ]);
1242
- await runner.step(38, async (runner2) => {
1243
- });
1244
1247
  await runner.step(39, async (runner2) => {
1248
+ });
1249
+ await runner.step(40, async (runner2) => {
1245
1250
  __stack.locals.effort = await __call(parseEffort, {
1246
1251
  type: "positional",
1247
1252
  args: [__stack.locals.args.flags.effort ?? null]
@@ -1258,7 +1263,7 @@ graph.node("main", async (__state) => {
1258
1263
  throw __stack.locals.effort.toError();
1259
1264
  }
1260
1265
  });
1261
- await runner.ifElse(40, [
1266
+ await runner.ifElse(41, [
1262
1267
  {
1263
1268
  condition: async () => !__eq(__stack.locals.effort.error, ``),
1264
1269
  body: async (runner2) => {
@@ -1294,7 +1299,7 @@ graph.node("main", async (__state) => {
1294
1299
  }
1295
1300
  }
1296
1301
  ]);
1297
- await runner.ifElse(41, [
1302
+ await runner.ifElse(42, [
1298
1303
  {
1299
1304
  condition: async () => !__eq(__stack.locals.effort.level, null),
1300
1305
  body: async (runner2) => {
@@ -1320,7 +1325,7 @@ graph.node("main", async (__state) => {
1320
1325
  }
1321
1326
  }
1322
1327
  ]);
1323
- await runner.step(42, async (runner2) => {
1328
+ await runner.step(43, async (runner2) => {
1324
1329
  __stack.locals.__hoist_12 = await __call(cwd, {
1325
1330
  type: "positional",
1326
1331
  args: []
@@ -1337,7 +1342,7 @@ graph.node("main", async (__state) => {
1337
1342
  throw __stack.locals.__hoist_12.toError();
1338
1343
  }
1339
1344
  });
1340
- await runner.step(43, async (runner2) => {
1345
+ await runner.step(44, async (runner2) => {
1341
1346
  const __funcResult = await __call(setAgentCwd, {
1342
1347
  type: "positional",
1343
1348
  args: [__stack.locals.__hoist_12]
@@ -1354,7 +1359,7 @@ graph.node("main", async (__state) => {
1354
1359
  throw __funcResult.toError();
1355
1360
  }
1356
1361
  });
1357
- await runner.ifElse(44, [
1362
+ await runner.ifElse(45, [
1358
1363
  {
1359
1364
  condition: async () => __stack.locals.isOneShot && (__stack.locals.args.flags.continue || !__eq(__stack.locals.args.flags.resume, null)),
1360
1365
  body: async (runner2) => {
@@ -1390,9 +1395,9 @@ graph.node("main", async (__state) => {
1390
1395
  }
1391
1396
  }
1392
1397
  ]);
1393
- await runner.step(45, async (runner2) => {
1398
+ await runner.step(46, async (runner2) => {
1394
1399
  });
1395
- await runner.ifElse(46, [
1400
+ await runner.ifElse(47, [
1396
1401
  {
1397
1402
  condition: async () => !__stack.locals.isOneShot,
1398
1403
  body: async (runner2) => {
@@ -1484,7 +1489,7 @@ graph.node("main", async (__state) => {
1484
1489
  }
1485
1490
  }
1486
1491
  ]);
1487
- await runner.ifElse(47, [
1492
+ await runner.ifElse(48, [
1488
1493
  {
1489
1494
  condition: async () => __stack.locals.isOneShot,
1490
1495
  body: async (runner2) => {
@@ -1740,7 +1745,7 @@ Session cost: ${__stack.locals.roundedCost}`]
1740
1745
  });
1741
1746
  });
1742
1747
  if (runner.halted) return runner.haltResult;
1743
- await runner.hook(48, async () => {
1748
+ await runner.hook(49, async () => {
1744
1749
  await callHook({
1745
1750
  name: "onNodeEnd",
1746
1751
  data: {
@@ -1822,7 +1827,7 @@ Agent crashed: ${__error.message}`);
1822
1827
  }
1823
1828
  }
1824
1829
  var stdin_default = graph;
1825
- const __sourceMap = { "dist/lib/agents/agency-agent/agent.agency:oneShotAgent": { "1": { "line": 44, "col": 2 }, "2": { "line": 48, "col": 2 }, "3": { "line": 49, "col": 2 }, "4": { "line": 50, "col": 2 }, "5": { "line": 60, "col": 2 }, "6": { "line": 61, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:__block_0": { "4.0": { "line": 51, "col": 4 }, "4.1": { "line": 54, "col": 18 }, "4.2.0": { "line": 54, "col": 4 }, "4.2.1": { "line": 55, "col": 6 }, "4.2.2": { "line": 56, "col": 25 }, "4.2.3.0": { "line": 56, "col": 11 }, "4.2.3.1": { "line": 57, "col": 6 }, "4.2.3": { "line": 56, "col": 11 }, "4.2": { "line": 54, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:main": { "2": { "line": 71, "col": 2 }, "3": { "line": 79, "col": 2 }, "4": { "line": 82, "col": 2 }, "6": { "line": 89, "col": 2 }, "7": { "line": 93, "col": 2 }, "8": { "line": 99, "col": 63 }, "9": { "line": 99, "col": 2 }, "10": { "line": 100, "col": 2 }, "11": { "line": 101, "col": 2 }, "12": { "line": 107, "col": 2 }, "13": { "line": 112, "col": 2 }, "14": { "line": 113, "col": 2 }, "15": { "line": 114, "col": 2 }, "16": { "line": 118, "col": 2 }, "17": { "line": 119, "col": 2 }, "18": { "line": 122, "col": 15 }, "19": { "line": 122, "col": 2 }, "20": { "line": 125, "col": 2 }, "21": { "line": 126, "col": 2 }, "22": { "line": 127, "col": 2 }, "23": { "line": 128, "col": 2 }, "25": { "line": 142, "col": 39 }, "26": { "line": 142, "col": 2 }, "27": { "line": 143, "col": 2 }, "28": { "line": 147, "col": 2 }, "29": { "line": 151, "col": 15 }, "30": { "line": 151, "col": 2 }, "31": { "line": 153, "col": 23 }, "32": { "line": 153, "col": 2 }, "33": { "line": 154, "col": 18 }, "34": { "line": 154, "col": 2 }, "36": { "line": 156, "col": 2 }, "37": { "line": 157, "col": 2 }, "39": { "line": 165, "col": 2 }, "40": { "line": 166, "col": 2 }, "41": { "line": 170, "col": 2 }, "42": { "line": 176, "col": 14 }, "43": { "line": 176, "col": 2 }, "44": { "line": 182, "col": 2 }, "46": { "line": 194, "col": 2 }, "47": { "line": 203, "col": 2 }, "3.0": { "line": 80, "col": 4 }, "4.0": { "line": 83, "col": 4 }, "6.0": { "line": 90, "col": 4 }, "6.1": { "line": 91, "col": 4 }, "11.0": { "line": 102, "col": 22 }, "11.2": { "line": 102, "col": 4 }, "11.3": { "line": 103, "col": 10 }, "11.4": { "line": 103, "col": 4 }, "11.5": { "line": 104, "col": 4 }, "11.6": { "line": 105, "col": 4 }, "23.0": { "line": 129, "col": 4 }, "23.1": { "line": 131, "col": 6 }, "23.2": { "line": 130, "col": 4 }, "23.3": { "line": 135, "col": 4 }, "23.4": { "line": 136, "col": 4 }, "23.5": { "line": 138, "col": 4 }, "37.0": { "line": 158, "col": 4 }, "40.0": { "line": 167, "col": 10 }, "40.1": { "line": 167, "col": 4 }, "40.2": { "line": 168, "col": 4 }, "41.0": { "line": 171, "col": 4 }, "44.0": { "line": 184, "col": 6 }, "44.1": { "line": 183, "col": 4 }, "44.2": { "line": 188, "col": 4 }, "46.0": { "line": 195, "col": 4 }, "46.1": { "line": 196, "col": 20 }, "46.2": { "line": 196, "col": 4 }, "46.3": { "line": 198, "col": 6 }, "46.4": { "line": 197, "col": 4 }, "47.0": { "line": 204, "col": 4 }, "47.1.0": { "line": 206, "col": 6 }, "47.1.1.0": { "line": 208, "col": 8 }, "47.1.1": { "line": 207, "col": 6 }, "47.1.2": { "line": 210, "col": 6 }, "47.1": { "line": 205, "col": 4 }, "47.2": { "line": 212, "col": 10 }, "47.3": { "line": 212, "col": 4 }, "47.5": { "line": 213, "col": 28 }, "47.6": { "line": 213, "col": 4 }, "47.7": { "line": 214, "col": 10 }, "47.8": { "line": 214, "col": 4 }, "47.9": { "line": 216, "col": 4 }, "47.10": { "line": 217, "col": 4 }, "47.11": { "line": 218, "col": 10 }, "47.12": { "line": 218, "col": 4 }, "47.13": { "line": 219, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:__block_1": {}, "dist/lib/agents/agency-agent/agent.agency:__block_2": { "47.13.0": { "line": 220, "col": 6 } } };
1830
+ const __sourceMap = { "dist/lib/agents/agency-agent/agent.agency:oneShotAgent": { "1": { "line": 45, "col": 2 }, "2": { "line": 49, "col": 2 }, "3": { "line": 50, "col": 2 }, "4": { "line": 51, "col": 2 }, "5": { "line": 61, "col": 2 }, "6": { "line": 62, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:__block_0": { "4.0": { "line": 52, "col": 4 }, "4.1": { "line": 55, "col": 18 }, "4.2.0": { "line": 55, "col": 4 }, "4.2.1": { "line": 56, "col": 6 }, "4.2.2": { "line": 57, "col": 25 }, "4.2.3.0": { "line": 57, "col": 11 }, "4.2.3.1": { "line": 58, "col": 6 }, "4.2.3": { "line": 57, "col": 11 }, "4.2": { "line": 55, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:main": { "2": { "line": 72, "col": 2 }, "3": { "line": 80, "col": 2 }, "4": { "line": 83, "col": 2 }, "6": { "line": 90, "col": 2 }, "7": { "line": 94, "col": 2 }, "8": { "line": 100, "col": 63 }, "9": { "line": 100, "col": 2 }, "10": { "line": 101, "col": 2 }, "11": { "line": 102, "col": 2 }, "12": { "line": 108, "col": 2 }, "13": { "line": 113, "col": 2 }, "14": { "line": 114, "col": 2 }, "15": { "line": 115, "col": 2 }, "16": { "line": 119, "col": 2 }, "17": { "line": 120, "col": 2 }, "18": { "line": 123, "col": 15 }, "19": { "line": 123, "col": 2 }, "20": { "line": 126, "col": 2 }, "21": { "line": 127, "col": 2 }, "22": { "line": 128, "col": 2 }, "23": { "line": 129, "col": 2 }, "25": { "line": 143, "col": 39 }, "26": { "line": 143, "col": 2 }, "27": { "line": 144, "col": 2 }, "28": { "line": 151, "col": 2 }, "30": { "line": 155, "col": 15 }, "31": { "line": 155, "col": 2 }, "32": { "line": 157, "col": 23 }, "33": { "line": 157, "col": 2 }, "34": { "line": 158, "col": 18 }, "35": { "line": 158, "col": 2 }, "37": { "line": 160, "col": 2 }, "38": { "line": 161, "col": 2 }, "40": { "line": 169, "col": 2 }, "41": { "line": 170, "col": 2 }, "42": { "line": 174, "col": 2 }, "43": { "line": 180, "col": 14 }, "44": { "line": 180, "col": 2 }, "45": { "line": 186, "col": 2 }, "47": { "line": 198, "col": 2 }, "48": { "line": 207, "col": 2 }, "3.0": { "line": 81, "col": 4 }, "4.0": { "line": 84, "col": 4 }, "6.0": { "line": 91, "col": 4 }, "6.1": { "line": 92, "col": 4 }, "11.0": { "line": 103, "col": 22 }, "11.2": { "line": 103, "col": 4 }, "11.3": { "line": 104, "col": 10 }, "11.4": { "line": 104, "col": 4 }, "11.5": { "line": 105, "col": 4 }, "11.6": { "line": 106, "col": 4 }, "23.0": { "line": 130, "col": 4 }, "23.1": { "line": 132, "col": 6 }, "23.2": { "line": 131, "col": 4 }, "23.3": { "line": 136, "col": 4 }, "23.4": { "line": 137, "col": 4 }, "23.5": { "line": 139, "col": 4 }, "38.0": { "line": 162, "col": 4 }, "41.0": { "line": 171, "col": 10 }, "41.1": { "line": 171, "col": 4 }, "41.2": { "line": 172, "col": 4 }, "42.0": { "line": 175, "col": 4 }, "45.0": { "line": 188, "col": 6 }, "45.1": { "line": 187, "col": 4 }, "45.2": { "line": 192, "col": 4 }, "47.0": { "line": 199, "col": 4 }, "47.1": { "line": 200, "col": 20 }, "47.2": { "line": 200, "col": 4 }, "47.3": { "line": 202, "col": 6 }, "47.4": { "line": 201, "col": 4 }, "48.0": { "line": 208, "col": 4 }, "48.1.0": { "line": 210, "col": 6 }, "48.1.1.0": { "line": 212, "col": 8 }, "48.1.1": { "line": 211, "col": 6 }, "48.1.2": { "line": 214, "col": 6 }, "48.1": { "line": 209, "col": 4 }, "48.2": { "line": 216, "col": 10 }, "48.3": { "line": 216, "col": 4 }, "48.5": { "line": 217, "col": 28 }, "48.6": { "line": 217, "col": 4 }, "48.7": { "line": 218, "col": 10 }, "48.8": { "line": 218, "col": 4 }, "48.9": { "line": 220, "col": 4 }, "48.10": { "line": 221, "col": 4 }, "48.11": { "line": 222, "col": 10 }, "48.12": { "line": 222, "col": 4 }, "48.13": { "line": 223, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:__block_1": {}, "dist/lib/agents/agency-agent/agent.agency:__block_2": { "48.13.0": { "line": 224, "col": 6 } } };
1826
1831
  export {
1827
1832
  __getCheckpoints,
1828
1833
  __invokeFunction,
@@ -185,7 +185,7 @@ function registerTools(tools) {
185
185
  }
186
186
  }
187
187
  }
188
- __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/coordinator.agency", "93a22a29ec8339bd249d199e45accbcbaa793c2efb69e791e91e6bb3ae7d1a9f", import.meta.url);
188
+ __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/coordinator.agency", "637cbc310ff860e34bf311e1ea3d6b81eeea5234db92e0dbd3f114ce77a97de6", import.meta.url);
189
189
  __registerTool(print);
190
190
  __registerTool(printJSON);
191
191
  __registerTool(input);
@@ -292,10 +292,10 @@ async function __initializeStatic(__ctx) {
292
292
  } finally {
293
293
  getRuntimeContext().ctx.popHandler();
294
294
  }
295
- mainAgentTools = __deepFreeze([__readStatic(researchAgent, "researchAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/research.agency"), __readStatic(codeAgent, "codeAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/code.agency"), __readStatic(reviewAgent, "reviewAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/review.agency"), __readStatic(oracleAgent, "oracleAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency"), __readStatic(explorerAgent, "explorerAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/explorer.agency"), __readStatic(writingAgent, "writingAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/writing.agency"), __readStatic(rewriteAgent, "rewriteAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/rewrite.agency"), __readStatic(generateImageFile, "generateImageFile", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/images.agency"), __readStatic(viewImageFile, "viewImageFile", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/images.agency"), __readStatic(learnSkill, "learnSkill", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/learn.agency"), __readStatic(writeToolFor, "writeToolFor", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/learn.agency"), __readStatic(coordinatorSkills, "coordinatorSkills", "dist/lib/agents/agency-agent/brains/coordinator/coordinator.agency"), __readStatic(listPresets, "listPresets", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/presetTools.agency"), __readStatic(savePreset, "savePreset", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/presetTools.agency"), __readStatic(deletePreset, "deletePreset", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/presetTools.agency"), __readStatic(setDefaultPreset, "setDefaultPreset", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/presetTools.agency"), ...await __call(readOnlyFileTools, {
295
+ mainAgentTools = __deepFreeze([__readStatic(researchAgent, "researchAgent", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/research.agency"), __readStatic(codeAgent, "codeAgent", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/code.agency"), __readStatic(reviewAgent, "reviewAgent", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/review.agency"), __readStatic(oracleAgent, "oracleAgent", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency"), __readStatic(explorerAgent, "explorerAgent", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/explorer.agency"), __readStatic(writingAgent, "writingAgent", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/writing.agency"), __readStatic(rewriteAgent, "rewriteAgent", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/rewrite.agency"), __readStatic(generateImageFile, "generateImageFile", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/images.agency"), __readStatic(viewImageFile, "viewImageFile", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/images.agency"), __readStatic(learnSkill, "learnSkill", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/learn.agency"), __readStatic(writeToolFor, "writeToolFor", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/learn.agency"), __readStatic(coordinatorSkills, "coordinatorSkills", "dist/lib/agents/agency-agent/brains/coordinator/coordinator.agency"), __readStatic(listPresets, "listPresets", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/presetTools.agency"), __readStatic(savePreset, "savePreset", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/presetTools.agency"), __readStatic(deletePreset, "deletePreset", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/presetTools.agency"), __readStatic(setDefaultPreset, "setDefaultPreset", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/presetTools.agency"), ...await __call(readOnlyFileTools, {
296
296
  type: "positional",
297
297
  args: []
298
- }), await __callMethod(__readStatic(edit, "edit", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/fs.agency"), "partial", {
298
+ }), await __callMethod(__readStatic(edit, "edit", "/Users/adit/agency-lang/packages/agency-lang/stdlib/fs.agency"), "partial", {
299
299
  type: "named",
300
300
  positionalArgs: [],
301
301
  namedArgs: {
@@ -637,7 +637,7 @@ async function __coordinatorInit_impl(context) {
637
637
  await runner.step(5, async (runner2) => {
638
638
  __stack.locals.__hoist_4 = await __call(checkBundledSkill, {
639
639
  type: "positional",
640
- args: [__readStatic(superpowersSkill, "superpowersSkill", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/code.agency"), `brainstorming`]
640
+ args: [__readStatic(superpowersSkill, "superpowersSkill", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/code.agency"), `brainstorming`]
641
641
  });
642
642
  if (hasInterrupts(__stack.locals.__hoist_4)) {
643
643
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
@@ -854,7 +854,7 @@ async function __turnTools_impl(turnStart) {
854
854
  }
855
855
  });
856
856
  await runner.step(3, async (runner2) => {
857
- __stack.locals.__hoist_2 = await __callMethod(__readStatic(elapsedTime, "elapsedTime", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/date.agency"), "partial", {
857
+ __stack.locals.__hoist_2 = await __callMethod(__readStatic(elapsedTime, "elapsedTime", "/Users/adit/agency-lang/packages/agency-lang/stdlib/date.agency"), "partial", {
858
858
  type: "named",
859
859
  positionalArgs: [],
860
860
  namedArgs: {
@@ -864,7 +864,7 @@ async function __turnTools_impl(turnStart) {
864
864
  });
865
865
  await runner.step(4, async (runner2) => {
866
866
  __functionCompleted = true;
867
- runner2.halt([...__readStatic(mainAgentTools, "mainAgentTools", "dist/lib/agents/agency-agent/brains/coordinator/coordinator.agency"), ...__stack.locals.__hoist_0, ...__stack.locals.__hoist_1, __readStatic(whatIAmDoing, "whatIAmDoing", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/agents/lib/toolkits.agency"), __readStatic(question, "question", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/agent.agency"), __stack.locals.__hoist_2]);
867
+ runner2.halt([...__readStatic(mainAgentTools, "mainAgentTools", "dist/lib/agents/agency-agent/brains/coordinator/coordinator.agency"), ...__stack.locals.__hoist_0, ...__stack.locals.__hoist_1, __readStatic(whatIAmDoing, "whatIAmDoing", "/Users/adit/agency-lang/packages/agency-lang/stdlib/agents/lib/toolkits.agency"), __readStatic(question, "question", "/Users/adit/agency-lang/packages/agency-lang/stdlib/agent.agency"), __stack.locals.__hoist_2]);
868
868
  return;
869
869
  });
870
870
  });
@@ -154,7 +154,7 @@ function registerTools(tools) {
154
154
  }
155
155
  }
156
156
  }
157
- __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/learn.agency", "bd71c5f741e508e5dc8b9f88ec98b6d30781383d7a53267a1ebcd32bcc3f4b8a", import.meta.url);
157
+ __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/learn.agency", "fc4168c2349369ee75d89a4b09c4d06e321b25f1a4f0ebb9a3f57443c0ce713d", import.meta.url);
158
158
  __registerTool(print);
159
159
  __registerTool(printJSON);
160
160
  __registerTool(input);
@@ -484,7 +484,7 @@ async function __writeToolFor_impl(name, purpose, request) {
484
484
  body: async (runner2) => {
485
485
  await runner2.step(0, async (runner3) => {
486
486
  __functionCompleted = true;
487
- runner3.halt(`Not saved: the name must be at most ${__stack.locals.cap} characters, because the tool is offered as ${__readStatic(LEARNED_TOOL_PREFIX, "LEARNED_TOOL_PREFIX", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/learned.agency")}${__stack.args.name} and providers cap a tool name at ${__readStatic(MAX_TOOL_NAME_LEN, "MAX_TOOL_NAME_LEN", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/skills.agency")}`);
487
+ runner3.halt(`Not saved: the name must be at most ${__stack.locals.cap} characters, because the tool is offered as ${__readStatic(LEARNED_TOOL_PREFIX, "LEARNED_TOOL_PREFIX", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/learned.agency")}${__stack.args.name} and providers cap a tool name at ${__readStatic(MAX_TOOL_NAME_LEN, "MAX_TOOL_NAME_LEN", "/Users/adit/agency-lang/packages/agency-lang/stdlib/skills.agency")}`);
488
488
  return;
489
489
  });
490
490
  }
@@ -552,7 +552,7 @@ async function __writeToolFor_impl(name, purpose, request) {
552
552
  ]);
553
553
  await runner.step(7, async (runner2) => {
554
554
  __functionCompleted = true;
555
- runner2.halt(`Saved the '${__stack.locals.saved.value.name}' tool to the learned catalog as ${__readStatic(LEARNED_TOOL_PREFIX, "LEARNED_TOOL_PREFIX", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/learned.agency")}${__stack.locals.saved.value.name}.`);
555
+ runner2.halt(`Saved the '${__stack.locals.saved.value.name}' tool to the learned catalog as ${__readStatic(LEARNED_TOOL_PREFIX, "LEARNED_TOOL_PREFIX", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/learned.agency")}${__stack.locals.saved.value.name}.`);
556
556
  return;
557
557
  });
558
558
  });
@@ -189,7 +189,7 @@ function registerTools(tools) {
189
189
  }
190
190
  }
191
191
  }
192
- __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/subagents/code.agency", "e6fbe59c5fb45ee166de4c80fc2ddc643b883291dc1cf435a53a73a0a05fb3d4", import.meta.url);
192
+ __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/subagents/code.agency", "cb00ad9a6c8e87ae29c8f9db7fc820ffecb84c108e574f59552a595e07fc8b3b", import.meta.url);
193
193
  __registerTool(print);
194
194
  __registerTool(printJSON);
195
195
  __registerTool(input);
@@ -282,7 +282,7 @@ async function __initializeStatic(__ctx) {
282
282
  type: "named",
283
283
  positionalArgs: [await __callMethod(path, "join", {
284
284
  type: "positional",
285
- args: [__readStatic(AGENT_SOURCE_DIR, "AGENT_SOURCE_DIR", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/agentSource.agency"), `skills/superpowers`]
285
+ args: [__readStatic(AGENT_SOURCE_DIR, "AGENT_SOURCE_DIR", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/agentSource.agency"), `skills/superpowers`]
286
286
  }), `flat`],
287
287
  namedArgs: {
288
288
  name: `superpowersSkill`
@@ -298,7 +298,7 @@ async function __initializeStatic(__ctx) {
298
298
  codeTools = __deepFreeze([...await __call(codingAgentTools, {
299
299
  type: "positional",
300
300
  args: []
301
- }), agencyCli, __readStatic(superpowersSkill, "superpowersSkill", "dist/lib/agents/agency-agent/brains/coordinator/subagents/code.agency"), __readStatic(oracleAgent, "oracleAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency")]);
301
+ }), agencyCli, __readStatic(superpowersSkill, "superpowersSkill", "dist/lib/agents/agency-agent/brains/coordinator/subagents/code.agency"), __readStatic(oracleAgent, "oracleAgent", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency")]);
302
302
  WEB_SEARCH_NOTE = __deepFreeze(`
303
303
  You have **web search**. Use it directly whenever a task needs current or
304
304
  external information \u2014 a fact to verify, a library or API to check, a
@@ -493,7 +493,7 @@ async function __agencyCli_impl(args) {
493
493
  __functionCompleted = true;
494
494
  runner3.halt({
495
495
  "stdout": ``,
496
- "stderr": __readStatic(CLI_NOT_AVAILABLE, "CLI_NOT_AVAILABLE", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/agency.agency"),
496
+ "stderr": __readStatic(CLI_NOT_AVAILABLE, "CLI_NOT_AVAILABLE", "/Users/adit/agency-lang/packages/agency-lang/stdlib/agency.agency"),
497
497
  "exitCode": __stack.locals.result.exitCode
498
498
  });
499
499
  return;
@@ -629,7 +629,7 @@ async function __promptFile_impl(filename) {
629
629
  type: "positional",
630
630
  args: [__stack.args.filename, await __callMethod(path, "join", {
631
631
  type: "positional",
632
- args: [__readStatic(AGENT_SOURCE_DIR, "AGENT_SOURCE_DIR", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/agentSource.agency"), `brains/coordinator/prompts`]
632
+ args: [__readStatic(AGENT_SOURCE_DIR, "AGENT_SOURCE_DIR", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/agentSource.agency"), `brains/coordinator/prompts`]
633
633
  })]
634
634
  });
635
635
  if (hasInterrupts(__stack.locals.contents)) {
@@ -1410,7 +1410,7 @@ async function __consultExpert_impl(task, agencyTask) {
1410
1410
  maxTime: 3e5,
1411
1411
  model: __stack.locals.__hoist_0,
1412
1412
  provider: __stack.locals.__hoist_1,
1413
- extraTools: [__readStatic(question, "question", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/agent.agency")]
1413
+ extraTools: [__readStatic(question, "question", "/Users/adit/agency-lang/packages/agency-lang/stdlib/agent.agency")]
1414
1414
  }
1415
1415
  }));
1416
1416
  return;
@@ -1459,7 +1459,7 @@ async function __consultExpert_impl(task, agencyTask) {
1459
1459
  maxTime: 3e5,
1460
1460
  model: __stack.locals.__hoist_2,
1461
1461
  provider: __stack.locals.__hoist_3,
1462
- extraTools: [__readStatic(question, "question", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/agent.agency")]
1462
+ extraTools: [__readStatic(question, "question", "/Users/adit/agency-lang/packages/agency-lang/stdlib/agent.agency")]
1463
1463
  }
1464
1464
  }));
1465
1465
  return;
@@ -1782,7 +1782,7 @@ Deliverable: ONLY the Agency module source that will be saved as ${__stack.local
1782
1782
  requireMain: __eq(__stack.locals.target, ``),
1783
1783
  maxCost: __readStatic(ESCALATE_MAX_COST, "ESCALATE_MAX_COST", "dist/lib/agents/agency-agent/brains/coordinator/subagents/code.agency"),
1784
1784
  maxTime: __readStatic(ESCALATE_MAX_TIME, "ESCALATE_MAX_TIME", "dist/lib/agents/agency-agent/brains/coordinator/subagents/code.agency"),
1785
- extraTools: [__readStatic(question, "question", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/agent.agency")]
1785
+ extraTools: [__readStatic(question, "question", "/Users/adit/agency-lang/packages/agency-lang/stdlib/agent.agency")]
1786
1786
  }
1787
1787
  });
1788
1788
  if (hasInterrupts(__stack.locals.written)) {
@@ -2217,7 +2217,7 @@ async function __supervisedRun_impl(task, alternatives, work) {
2217
2217
  }
2218
2218
  });
2219
2219
  await runner.step(2, async (runner2) => {
2220
- __stack.locals.__hoist_0 = await __callMethod(__readStatic(progressCheck, "progressCheck", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/supervisor.agency"), "partial", {
2220
+ __stack.locals.__hoist_0 = await __callMethod(__readStatic(progressCheck, "progressCheck", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/brains/coordinator/subagents/supervisor.agency"), "partial", {
2221
2221
  type: "named",
2222
2222
  positionalArgs: [],
2223
2223
  namedArgs: {
@@ -41,7 +41,6 @@ export handoff def oracleAgent(
41
41
 
42
42
  The oracle continues this conversation: it sees everything above, and
43
43
  its reading and reasoning stay in your history. Ask the question itself.
44
- Call it alone, with no other tool calls in the same response.
45
44
 
46
45
  @param userMsg - the question
47
46
  @param maxSeconds - working-time cap in seconds, when the user gave a
@@ -157,7 +157,7 @@ function registerTools(tools) {
157
157
  }
158
158
  }
159
159
  }
160
- __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency", "eb11492d36a8c164759b48afe078a786364e91dbbf5afb6e39f9efa2fc384793", import.meta.url);
160
+ __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency", "4188f8a5940566724149ff82ca14668f990fa4e96043ddc4a2cc065d7baabf6f", import.meta.url);
161
161
  __registerTool(print);
162
162
  __registerTool(printJSON);
163
163
  __registerTool(input);
@@ -363,7 +363,7 @@ async function __oracleAgent_impl(userMsg, maxSeconds = __UNSET, maxDollars = __
363
363
  maxTime: __bstack.locals.__hoist_1,
364
364
  model: __bstack.locals.__hoist_2,
365
365
  provider: __bstack.locals.__hoist_3,
366
- extraTools: [__readStatic(question, "question", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/agent.agency")]
366
+ extraTools: [__readStatic(question, "question", "/Users/adit/agency-lang/packages/agency-lang/stdlib/agent.agency")]
367
367
  }
368
368
  }));
369
369
  return;
@@ -471,7 +471,6 @@ const oracleAgent = __AgencyFunction.create({
471
471
 
472
472
  The oracle continues this conversation: it sees everything above, and
473
473
  its reading and reasoning stay in your history. Ask the question itself.
474
- Call it alone, with no other tool calls in the same response.
475
474
 
476
475
  @param userMsg - the question
477
476
  @param maxSeconds - working-time cap in seconds, when the user gave a
@@ -486,7 +485,7 @@ const oracleAgent = __AgencyFunction.create({
486
485
  }
487
486
  }, __toolRegistry);
488
487
  var stdin_default = graph;
489
- const __sourceMap = { "dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency:oracleAgent": { "1": { "line": 51, "col": 2 }, "2": { "line": 52, "col": 2 } }, "dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency:__block_0": { "2.0": { "line": 55, "col": 15 }, "2.1": { "line": 56, "col": 15 }, "2.2": { "line": 57, "col": 13 }, "2.3": { "line": 58, "col": 16 }, "2.4": { "line": 53, "col": 4 } } };
488
+ const __sourceMap = { "dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency:oracleAgent": { "1": { "line": 50, "col": 2 }, "2": { "line": 51, "col": 2 } }, "dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency:__block_0": { "2.0": { "line": 54, "col": 15 }, "2.1": { "line": 55, "col": 15 }, "2.2": { "line": 56, "col": 13 }, "2.3": { "line": 57, "col": 16 }, "2.4": { "line": 52, "col": 4 } } };
490
489
  export {
491
490
  __getCheckpoints,
492
491
  __invokeFunction,
@@ -164,7 +164,7 @@ function registerTools(tools) {
164
164
  }
165
165
  }
166
166
  }
167
- __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/subagents/research.agency", "9248dd86ca3c035dd57ca1158c3e22792b632d2da25d8dcd8dc5cf5e9023108d", import.meta.url);
167
+ __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/subagents/research.agency", "4597389ae5a20de88a021056988afa57984b3a4ccf7df607cf6178bfefb912e8", import.meta.url);
168
168
  __registerTool(print);
169
169
  __registerTool(printJSON);
170
170
  __registerTool(input);
@@ -221,13 +221,13 @@ async function __initializeStatic(__ctx) {
221
221
  }), ...await __call(planningTools, {
222
222
  type: "positional",
223
223
  args: []
224
- }), await __callMethod(__readStatic(highlight, "highlight", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/syntax.agency"), "partial", {
224
+ }), await __callMethod(__readStatic(highlight, "highlight", "/Users/adit/agency-lang/packages/agency-lang/stdlib/syntax.agency"), "partial", {
225
225
  type: "named",
226
226
  positionalArgs: [],
227
227
  namedArgs: {
228
228
  language: `ts`
229
229
  }
230
- }), __readStatic(print, "print", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/index.agency")]);
230
+ }), __readStatic(print, "print", "/Users/adit/agency-lang/packages/agency-lang/stdlib/index.agency")]);
231
231
  replStyle = __deepFreeze(`Reply for a terminal REPL that renders Markdown: use headings, bullets, bold, links, and fenced code blocks. Put a blank line between a heading and whatever follows it, or the renderer truncates the rest.
232
232
 
233
233
  Show multi-line code with \`print(highlight(code))\`, which writes a colored block to the user's console. Skip that for a single identifier.
@@ -409,7 +409,7 @@ async function __researchAgent_impl(userMsg, agencyTopic = __UNSET, maxSeconds =
409
409
  maxCost: __bstack.locals.__hoist_0,
410
410
  maxTime: __bstack.locals.__hoist_1,
411
411
  session: `research`,
412
- extraTools: [...__readStatic(researchTools, "researchTools", "dist/lib/agents/agency-agent/brains/coordinator/subagents/research.agency"), __readStatic(question, "question", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/agent.agency")]
412
+ extraTools: [...__readStatic(researchTools, "researchTools", "dist/lib/agents/agency-agent/brains/coordinator/subagents/research.agency"), __readStatic(question, "question", "/Users/adit/agency-lang/packages/agency-lang/stdlib/agent.agency")]
413
413
  }
414
414
  }));
415
415
  return;
@@ -166,7 +166,7 @@ function registerTools(tools) {
166
166
  }
167
167
  }
168
168
  }
169
- __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/subagents/review.agency", "2ad4b64fe01d7f199651ec3c2ad10e92496d5391a8a58bb7a7739f64561982e2", import.meta.url);
169
+ __registerModuleFingerprint("dist/lib/agents/agency-agent/brains/coordinator/subagents/review.agency", "d79cc923629d7f41150e5ce5b90fc10bd5ca636e1c6a8ec936201072c6d6d24a", import.meta.url);
170
170
  __registerTool(print);
171
171
  __registerTool(printJSON);
172
172
  __registerTool(input);
@@ -519,7 +519,7 @@ async function __review_impl(userMsg) {
519
519
  type: "named",
520
520
  positionalArgs: [codeSnippet.code],
521
521
  namedArgs: {
522
- extraTools: [__readStatic(question, "question", "/Users/adityabhargava/agency-lang/packages/agency-lang/stdlib/agent.agency")]
522
+ extraTools: [__readStatic(question, "question", "/Users/adit/agency-lang/packages/agency-lang/stdlib/agent.agency")]
523
523
  }
524
524
  });
525
525
  if (hasInterrupts(__stack.locals.__hoist_0)) {
@@ -160,7 +160,7 @@ function registerTools(tools) {
160
160
  }
161
161
  }
162
162
  }
163
- __registerModuleFingerprint("dist/lib/agents/agency-agent/lib/capabilitiesUi.agency", "459739eb7102b4bf7bb9b7c06cd90963a3e3a4c56d015d2f612a01b8e1cf907e", import.meta.url);
163
+ __registerModuleFingerprint("dist/lib/agents/agency-agent/lib/capabilitiesUi.agency", "33c35c0c3fadfb0f6deb64372949e8d3cbafdb73fb5cefc6bb01a3b44845f424", import.meta.url);
164
164
  __registerTool(print);
165
165
  __registerTool(printJSON);
166
166
  __registerTool(input);
@@ -793,7 +793,7 @@ async function __showCapabilities_impl() {
793
793
  return;
794
794
  }
795
795
  });
796
- await runner.loop(4, async () => __readStatic(CAPABILITY_FIELDS, "CAPABILITY_FIELDS", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/capabilities.agency"), async (field, _, runner2) => {
796
+ await runner.loop(4, async () => __readStatic(CAPABILITY_FIELDS, "CAPABILITY_FIELDS", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/capabilities.agency"), async (field, _, runner2) => {
797
797
  await runner2.step(0, async (runner3) => {
798
798
  __stack.locals.__hoist_2 = await __call(capabilityRow, {
799
799
  type: "positional",
@@ -1836,7 +1836,7 @@ async function __editCapabilities_impl() {
1836
1836
  await runner.step(1, async (runner2) => {
1837
1837
  __stack.locals.fieldItems = [];
1838
1838
  });
1839
- await runner.loop(2, async () => __readStatic(CAPABILITY_FIELDS, "CAPABILITY_FIELDS", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/capabilities.agency"), async (field, _, runner2) => {
1839
+ await runner.loop(2, async () => __readStatic(CAPABILITY_FIELDS, "CAPABILITY_FIELDS", "/Users/adit/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/capabilities.agency"), async (field, _, runner2) => {
1840
1840
  await runner2.step(0, async (runner3) => {
1841
1841
  await __callMethod(__stack.locals.fieldItems, "push", {
1842
1842
  type: "positional",
@@ -159,6 +159,8 @@ def extendedInfo(left, brainName: string) {
159
159
  }
160
160
  }
161
161
  left.text(render(argsTable))
162
+ // Startup turns memory off (see main() in agent.agency).
163
+ left.text("Memory temporarily disabled.", dim: true)
162
164
 
163
165
  // heading(left, "Brain")
164
166
  // left.text(brainName, dim: true)