agency-lang 0.23.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 (129) hide show
  1. package/dist/lib/agents/agency-agent/agent.agency +21 -3
  2. package/dist/lib/agents/agency-agent/agent.js +163 -75
  3. package/dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.agency +0 -1
  4. package/dist/lib/agents/agency-agent/brains/coordinator/subagents/oracle.js +2 -3
  5. package/dist/lib/agents/agency-agent/lib/args.agency +4 -0
  6. package/dist/lib/agents/agency-agent/lib/args.js +6 -2
  7. package/dist/lib/agents/agency-agent/lib/effort.agency +26 -0
  8. package/dist/lib/agents/agency-agent/lib/effort.js +408 -0
  9. package/dist/lib/agents/agency-agent/lib/header.agency +2 -0
  10. package/dist/lib/agents/agency-agent/lib/header.js +11 -2
  11. package/dist/lib/agents/agency-agent/lib/outputCap.js +435 -0
  12. package/dist/lib/backends/typescriptBuilder.js +11 -6
  13. package/dist/lib/cli/diffusersImageRules.py +310 -0
  14. package/dist/lib/cli/diffusersImageServer.py +268 -0
  15. package/dist/lib/cli/local.js +10 -7
  16. package/dist/lib/cli/localFlag.js +6 -2
  17. package/dist/lib/cli/localServe.d.ts +27 -4
  18. package/dist/lib/cli/localServe.js +109 -35
  19. package/dist/lib/cli/localServerCommon.py +27 -0
  20. package/dist/lib/cli/mlxChatServer.py +469 -8
  21. package/dist/lib/cli/mlxServer.d.ts +7 -0
  22. package/dist/lib/cli/mlxServer.js +14 -3
  23. package/dist/lib/cli/mlxSpeechServer.py +1 -21
  24. package/dist/lib/cli/serveLog.d.ts +19 -2
  25. package/dist/lib/cli/serveLog.js +23 -3
  26. package/dist/lib/cli/statelog/spendTypes.d.ts +4 -0
  27. package/dist/lib/cli/statelog/spendTypes.js +1 -0
  28. package/dist/lib/cli/testReport.d.ts +3 -3
  29. package/dist/lib/config/config.d.ts +18 -2
  30. package/dist/lib/config/config.js +19 -12
  31. package/dist/lib/logsViewer/spanText.js +9 -0
  32. package/dist/lib/logsViewer/summary.js +7 -0
  33. package/dist/lib/logsViewer/tree.js +1 -0
  34. package/dist/lib/runtime/agencyLlm.d.ts +5 -0
  35. package/dist/lib/runtime/agencyLlm.js +4 -0
  36. package/dist/lib/runtime/asyncContext.d.ts +16 -0
  37. package/dist/lib/runtime/decision/collector.d.ts +69 -0
  38. package/dist/lib/runtime/decision/collector.js +251 -0
  39. package/dist/lib/runtime/decision/dispatch.d.ts +24 -0
  40. package/dist/lib/runtime/decision/dispatch.js +136 -0
  41. package/dist/lib/runtime/decision/questions.d.ts +40 -0
  42. package/dist/lib/runtime/decision/questions.js +163 -0
  43. package/dist/lib/runtime/deterministicClient.d.ts +15 -2
  44. package/dist/lib/runtime/deterministicClient.js +80 -0
  45. package/dist/lib/runtime/handoff.d.ts +168 -6
  46. package/dist/lib/runtime/handoff.js +277 -13
  47. package/dist/lib/runtime/index.d.ts +1 -1
  48. package/dist/lib/runtime/index.js +1 -1
  49. package/dist/lib/runtime/invocationUsage.d.ts +1 -1
  50. package/dist/lib/runtime/invocationUsage.js +2 -0
  51. package/dist/lib/runtime/llmClient.d.ts +14 -0
  52. package/dist/lib/runtime/llmClient.js +16 -1
  53. package/dist/lib/runtime/llmConfig.d.ts +8 -0
  54. package/dist/lib/runtime/llmConfig.js +44 -0
  55. package/dist/lib/runtime/llmDispatch.d.ts +7 -1
  56. package/dist/lib/runtime/llmDispatch.js +21 -2
  57. package/dist/lib/runtime/localDefaults.d.ts +44 -18
  58. package/dist/lib/runtime/localDefaults.js +111 -33
  59. package/dist/lib/runtime/policy.js +7 -4
  60. package/dist/lib/runtime/prompt.d.ts +6 -66
  61. package/dist/lib/runtime/prompt.js +489 -588
  62. package/dist/lib/runtime/providerModules.js +3 -0
  63. package/dist/lib/runtime/recordPaidUsage.d.ts +1 -1
  64. package/dist/lib/runtime/recordPaidUsage.js +2 -2
  65. package/dist/lib/runtime/replyAttachments.d.ts +3 -0
  66. package/dist/lib/runtime/replyAttachments.js +3 -1
  67. package/dist/lib/runtime/resumableScope.js +4 -0
  68. package/dist/lib/runtime/runBatch.d.ts +11 -0
  69. package/dist/lib/runtime/runBatch.js +16 -4
  70. package/dist/lib/runtime/runner.js +45 -0
  71. package/dist/lib/runtime/state/context.d.ts +1 -1
  72. package/dist/lib/runtime/state/context.js +3 -2
  73. package/dist/lib/runtime/state/stateStack.d.ts +22 -0
  74. package/dist/lib/runtime/state/stateStack.js +31 -0
  75. package/dist/lib/runtime/toolInvocation.d.ts +109 -0
  76. package/dist/lib/runtime/toolInvocation.js +181 -0
  77. package/dist/lib/runtime/toolLoopGuards.d.ts +43 -1
  78. package/dist/lib/runtime/toolLoopGuards.js +77 -4
  79. package/dist/lib/runtime/turnBoundary.d.ts +8 -0
  80. package/dist/lib/runtime/turnBoundary.js +19 -0
  81. package/dist/lib/runtime/utils.d.ts +25 -0
  82. package/dist/lib/runtime/utils.js +47 -0
  83. package/dist/lib/statelogClient.d.ts +15 -2
  84. package/dist/lib/statelogClient.js +11 -0
  85. package/dist/lib/stdlib/diffusersFiles.d.ts +19 -0
  86. package/dist/lib/stdlib/diffusersFiles.js +52 -0
  87. package/dist/lib/stdlib/hubClient.d.ts +4 -0
  88. package/dist/lib/stdlib/hubClient.js +22 -0
  89. package/dist/lib/stdlib/image.d.ts +3 -0
  90. package/dist/lib/stdlib/image.js +114 -26
  91. package/dist/lib/stdlib/llm.d.ts +14 -1
  92. package/dist/lib/stdlib/llm.js +25 -4
  93. package/dist/lib/stdlib/localModels.d.ts +18 -17
  94. package/dist/lib/stdlib/localModels.js +105 -64
  95. package/dist/lib/stdlib/mlxImage.d.ts +21 -0
  96. package/dist/lib/stdlib/mlxImage.js +136 -0
  97. package/dist/lib/stdlib/mlxModelRecord.d.ts +6 -1
  98. package/dist/lib/stdlib/mlxModelRecord.js +9 -2
  99. package/dist/lib/stdlib/mlxServerModels.d.ts +4 -0
  100. package/dist/lib/stdlib/mlxServerModels.js +6 -0
  101. package/dist/lib/stdlib/modelBackend.d.ts +28 -2
  102. package/dist/lib/stdlib/modelBackend.js +98 -20
  103. package/dist/lib/stdlib/modelCatalog.d.ts +21 -2
  104. package/dist/lib/stdlib/modelCatalog.js +85 -0
  105. package/dist/lib/stdlib/speech.js +5 -7
  106. package/dist/lib/stdlib/thread.d.ts +40 -1
  107. package/dist/lib/stdlib/thread.js +85 -0
  108. package/dist/lib/typeChecker/builtins.js +35 -0
  109. package/dist/scripts/agency.js +3 -2
  110. package/package.json +6 -2
  111. package/stdlib/docs/cli/local.md +19 -4
  112. package/stdlib/docs/guide/agency-config-file.md +2 -0
  113. package/stdlib/docs/guide/custom-providers.md +2 -0
  114. package/stdlib/docs/guide/decision-models.md +275 -0
  115. package/stdlib/docs/guide/functions.md +71 -0
  116. package/stdlib/docs/guide/llm-part-2.md +18 -2
  117. package/stdlib/docs/guide/llm.md +4 -1
  118. package/stdlib/docs/guide/message-threads.md +78 -2
  119. package/stdlib/docs/guide/policies.md +15 -0
  120. package/stdlib/docs/guide/using-local-models.md +84 -7
  121. package/stdlib/docs/stdlib/image.md +72 -8
  122. package/stdlib/docs/stdlib/llm.md +29 -14
  123. package/stdlib/docs/stdlib/thread.md +274 -26
  124. package/stdlib/image.agency +55 -6
  125. package/stdlib/image.js +226 -3
  126. package/stdlib/llm.agency +9 -1
  127. package/stdlib/llm.js +3 -3
  128. package/stdlib/thread.agency +144 -0
  129. package/stdlib/thread.js +411 -3
@@ -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"
@@ -10,6 +11,7 @@ import { clearMessages, pushMessage, repl, clearScreen } from "std::ui/cli"
10
11
  import { brainByName, allBrains } from "./brains/registry.agency"
11
12
  import { agentNameFor } from "./lib/agentName.agency"
12
13
  import { parseAgentArgs } from "./lib/args.agency"
14
+ import { parseEffort } from "./lib/effort.agency"
13
15
  import { mergedPalette } from "./lib/commandPalette.agency"
14
16
  import { getHeader } from "./lib/header.agency"
15
17
  import { maybeLoadMcp } from "./lib/mcp.agency"
@@ -17,7 +19,7 @@ import { printPolicyHelp } from "./lib/policy.agency"
17
19
  import { activePreset, startPreset } from "./lib/presets.agency"
18
20
  import { installSessionHooks, startInteractive } from "./lib/repl.agency"
19
21
  import { chooseSession, startSession } from "./lib/resume.agency"
20
- import { pickModelsForAgent, maybeEnableMemory } from "./lib/session.agency"
22
+ import { pickModelsForAgent } from "./lib/session.agency"
21
23
  import { loadSettings } from "./lib/settings.agency"
22
24
  import { applyToolLimits, limitFlagsFromArgs, setStartupLimitFlags } from "./lib/toolLimits.agency"
23
25
  import { setDebug, setVerbose, setInteractive } from "./lib/trace.agency"
@@ -142,9 +144,12 @@ node main() {
142
144
  startPreset(args.flags.preset ?? "", loadSettings())
143
145
  pickModelsForAgent(args)
144
146
 
145
- // 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
146
151
  // before any handler/REPL is installed.
147
- maybeEnableMemory()
152
+ disableMemory() with approve
148
153
 
149
154
  // Connect configured MCP servers and hand their (policy-gated) tools to the
150
155
  // coordinator. Must run before the first turn (mcpTools ordering contract).
@@ -159,6 +164,19 @@ node main() {
159
164
  maxTokens: capsMaxTokens
160
165
  })
161
166
  }
167
+ // --effort sets the provider's reasoning effort on every call. Without
168
+ // it a reasoning model runs at the provider's default, which is not
169
+ // what a benchmark run under fixed conditions wants.
170
+ const effort = parseEffort(args.flags.effort ?? null)
171
+ if (effort.error != "") {
172
+ print(color.red(effort.error))
173
+ process.exit(1)
174
+ }
175
+ if (effort.level != null) {
176
+ setLlmOptions({
177
+ reasoningEffort: effort.level
178
+ })
179
+ }
162
180
 
163
181
  setAgentCwd(cwd())
164
182
 
@@ -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";
@@ -10,6 +11,7 @@ import { clearMessages, pushMessage, repl, clearScreen } from "agency-lang/stdli
10
11
  import { brainByName, allBrains } from "./brains/registry.js";
11
12
  import { agentNameFor } from "./lib/agentName.js";
12
13
  import { parseAgentArgs } from "./lib/args.js";
14
+ import { parseEffort } from "./lib/effort.js";
13
15
  import { mergedPalette } from "./lib/commandPalette.js";
14
16
  import { getHeader } from "./lib/header.js";
15
17
  import { maybeLoadMcp } from "./lib/mcp.js";
@@ -17,7 +19,7 @@ import { printPolicyHelp } from "./lib/policy.js";
17
19
  import { activePreset, startPreset } from "./lib/presets.js";
18
20
  import { installSessionHooks, startInteractive } from "./lib/repl.js";
19
21
  import { chooseSession, startSession } from "./lib/resume.js";
20
- import { pickModelsForAgent, maybeEnableMemory } from "./lib/session.js";
22
+ import { pickModelsForAgent } from "./lib/session.js";
21
23
  import { loadSettings } from "./lib/settings.js";
22
24
  import { applyToolLimits, limitFlagsFromArgs, setStartupLimitFlags } from "./lib/toolLimits.js";
23
25
  import { setDebug, setVerbose, setInteractive } from "./lib/trace.js";
@@ -186,7 +188,7 @@ function registerTools(tools) {
186
188
  }
187
189
  }
188
190
  }
189
- __registerModuleFingerprint("dist/lib/agents/agency-agent/agent.agency", "7895daaab342ab8c994c7efdfb878130c18dbfcc1826734ca9029f25bc4ab6a6", import.meta.url);
191
+ __registerModuleFingerprint("dist/lib/agents/agency-agent/agent.agency", "e48a3277f98122b209a01450ad0676793069221bdefa929ef923a85730f32ef7", import.meta.url);
190
192
  __registerTool(print);
191
193
  __registerTool(printJSON);
192
194
  __registerTool(input);
@@ -221,6 +223,7 @@ __registerTool(applyAgentCwd);
221
223
  __registerTool(parseArgs);
222
224
  __registerTool(map);
223
225
  __registerTool(setLlmOptions);
226
+ __registerTool(disableMemory);
224
227
  __registerTool(evalOutput);
225
228
  __registerTool(evalValue);
226
229
  __registerTool(setAgentName);
@@ -239,6 +242,7 @@ __registerTool(brainByName);
239
242
  __registerTool(allBrains);
240
243
  __registerTool(agentNameFor);
241
244
  __registerTool(parseAgentArgs);
245
+ __registerTool(parseEffort);
242
246
  __registerTool(mergedPalette);
243
247
  __registerTool(getHeader);
244
248
  __registerTool(maybeLoadMcp);
@@ -250,7 +254,6 @@ __registerTool(startInteractive);
250
254
  __registerTool(chooseSession);
251
255
  __registerTool(startSession);
252
256
  __registerTool(pickModelsForAgent);
253
- __registerTool(maybeEnableMemory);
254
257
  __registerTool(loadSettings);
255
258
  __registerTool(applyToolLimits);
256
259
  __registerTool(limitFlagsFromArgs);
@@ -1072,24 +1075,28 @@ graph.node("main", async (__state) => {
1072
1075
  throw __funcResult.toError();
1073
1076
  }
1074
1077
  });
1075
- await runner.step(28, async (runner2) => {
1076
- const __funcResult = await __call(maybeEnableMemory, {
1077
- type: "positional",
1078
- args: []
1079
- });
1080
- if (hasInterrupts(__funcResult)) {
1081
- await getRuntimeContext().ctx.pendingPromises.awaitAll();
1082
- runner2.halt({
1083
- ...__state,
1084
- 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: []
1085
1083
  });
1086
- return;
1087
- }
1088
- if (isAborted(__funcResult)) {
1089
- throw __funcResult.toError();
1090
- }
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
+ });
1091
1096
  });
1092
1097
  await runner.step(29, async (runner2) => {
1098
+ });
1099
+ await runner.step(30, async (runner2) => {
1093
1100
  __stack.locals.__hoist_7 = await __call(loadSettings, {
1094
1101
  type: "positional",
1095
1102
  args: []
@@ -1106,7 +1113,7 @@ graph.node("main", async (__state) => {
1106
1113
  throw __stack.locals.__hoist_7.toError();
1107
1114
  }
1108
1115
  });
1109
- await runner.step(30, async (runner2) => {
1116
+ await runner.step(31, async (runner2) => {
1110
1117
  const __funcResult = await __call(maybeLoadMcp, {
1111
1118
  type: "positional",
1112
1119
  args: [__stack.locals.__hoist_7]
@@ -1123,7 +1130,7 @@ graph.node("main", async (__state) => {
1123
1130
  throw __funcResult.toError();
1124
1131
  }
1125
1132
  });
1126
- await runner.step(31, async (runner2) => {
1133
+ await runner.step(32, async (runner2) => {
1127
1134
  __stack.locals.__hoist_8 = await __call(limitFlagsFromArgs, {
1128
1135
  type: "positional",
1129
1136
  args: [__stack.locals.args]
@@ -1140,7 +1147,7 @@ graph.node("main", async (__state) => {
1140
1147
  throw __stack.locals.__hoist_8.toError();
1141
1148
  }
1142
1149
  });
1143
- await runner.step(32, async (runner2) => {
1150
+ await runner.step(33, async (runner2) => {
1144
1151
  const __funcResult = await __call(setStartupLimitFlags, {
1145
1152
  type: "positional",
1146
1153
  args: [__stack.locals.__hoist_8]
@@ -1157,7 +1164,7 @@ graph.node("main", async (__state) => {
1157
1164
  throw __funcResult.toError();
1158
1165
  }
1159
1166
  });
1160
- await runner.step(33, async (runner2) => {
1167
+ await runner.step(34, async (runner2) => {
1161
1168
  __stack.locals.__hoist_9 = await __call(activePreset, {
1162
1169
  type: "positional",
1163
1170
  args: []
@@ -1174,7 +1181,7 @@ graph.node("main", async (__state) => {
1174
1181
  throw __stack.locals.__hoist_9.toError();
1175
1182
  }
1176
1183
  });
1177
- await runner.step(34, async (runner2) => {
1184
+ await runner.step(35, async (runner2) => {
1178
1185
  const __funcResult = await __call(applyToolLimits, {
1179
1186
  type: "positional",
1180
1187
  args: [__stack.locals.__hoist_9, __stack.locals.isOneShot]
@@ -1191,7 +1198,7 @@ graph.node("main", async (__state) => {
1191
1198
  throw __funcResult.toError();
1192
1199
  }
1193
1200
  });
1194
- await runner.step(35, async (runner2) => {
1201
+ await runner.step(36, async (runner2) => {
1195
1202
  __stack.locals.__hoist_10 = await __call(getCapabilities, {
1196
1203
  type: "positional",
1197
1204
  args: []
@@ -1208,10 +1215,10 @@ graph.node("main", async (__state) => {
1208
1215
  throw __stack.locals.__hoist_10.toError();
1209
1216
  }
1210
1217
  });
1211
- await runner.step(36, async (runner2) => {
1218
+ await runner.step(37, async (runner2) => {
1212
1219
  __stack.locals.capsMaxTokens = __stack.locals.__hoist_10.maxTokens;
1213
1220
  });
1214
- await runner.ifElse(37, [
1221
+ await runner.ifElse(38, [
1215
1222
  {
1216
1223
  condition: async () => !__eq(__stack.locals.capsMaxTokens, null),
1217
1224
  body: async (runner2) => {
@@ -1237,27 +1244,108 @@ graph.node("main", async (__state) => {
1237
1244
  }
1238
1245
  }
1239
1246
  ]);
1240
- await runner.step(38, async (runner2) => {
1241
- __stack.locals.__hoist_11 = await __call(cwd, {
1247
+ await runner.step(39, async (runner2) => {
1248
+ });
1249
+ await runner.step(40, async (runner2) => {
1250
+ __stack.locals.effort = await __call(parseEffort, {
1251
+ type: "positional",
1252
+ args: [__stack.locals.args.flags.effort ?? null]
1253
+ });
1254
+ if (hasInterrupts(__stack.locals.effort)) {
1255
+ await getRuntimeContext().ctx.pendingPromises.awaitAll();
1256
+ runner2.halt({
1257
+ ...__state,
1258
+ data: __stack.locals.effort
1259
+ });
1260
+ return;
1261
+ }
1262
+ if (isAborted(__stack.locals.effort)) {
1263
+ throw __stack.locals.effort.toError();
1264
+ }
1265
+ });
1266
+ await runner.ifElse(41, [
1267
+ {
1268
+ condition: async () => !__eq(__stack.locals.effort.error, ``),
1269
+ body: async (runner2) => {
1270
+ await runner2.step(0, async (runner3) => {
1271
+ __stack.locals.__hoist_11 = await __callMethod(color, "red", {
1272
+ type: "positional",
1273
+ args: [__stack.locals.effort.error]
1274
+ });
1275
+ });
1276
+ await runner2.step(1, async (runner3) => {
1277
+ const __funcResult = await __call(print, {
1278
+ type: "positional",
1279
+ args: [__stack.locals.__hoist_11]
1280
+ });
1281
+ if (hasInterrupts(__funcResult)) {
1282
+ await getRuntimeContext().ctx.pendingPromises.awaitAll();
1283
+ runner3.halt({
1284
+ ...__state,
1285
+ data: __funcResult
1286
+ });
1287
+ return;
1288
+ }
1289
+ if (isAborted(__funcResult)) {
1290
+ throw __funcResult.toError();
1291
+ }
1292
+ });
1293
+ await runner2.step(2, async (runner3) => {
1294
+ await __callMethod(process, "exit", {
1295
+ type: "positional",
1296
+ args: [1]
1297
+ });
1298
+ });
1299
+ }
1300
+ }
1301
+ ]);
1302
+ await runner.ifElse(42, [
1303
+ {
1304
+ condition: async () => !__eq(__stack.locals.effort.level, null),
1305
+ body: async (runner2) => {
1306
+ await runner2.step(0, async (runner3) => {
1307
+ const __funcResult = await __call(setLlmOptions, {
1308
+ type: "positional",
1309
+ args: [{
1310
+ "reasoningEffort": __stack.locals.effort.level
1311
+ }]
1312
+ });
1313
+ if (hasInterrupts(__funcResult)) {
1314
+ await getRuntimeContext().ctx.pendingPromises.awaitAll();
1315
+ runner3.halt({
1316
+ ...__state,
1317
+ data: __funcResult
1318
+ });
1319
+ return;
1320
+ }
1321
+ if (isAborted(__funcResult)) {
1322
+ throw __funcResult.toError();
1323
+ }
1324
+ });
1325
+ }
1326
+ }
1327
+ ]);
1328
+ await runner.step(43, async (runner2) => {
1329
+ __stack.locals.__hoist_12 = await __call(cwd, {
1242
1330
  type: "positional",
1243
1331
  args: []
1244
1332
  });
1245
- if (hasInterrupts(__stack.locals.__hoist_11)) {
1333
+ if (hasInterrupts(__stack.locals.__hoist_12)) {
1246
1334
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
1247
1335
  runner2.halt({
1248
1336
  ...__state,
1249
- data: __stack.locals.__hoist_11
1337
+ data: __stack.locals.__hoist_12
1250
1338
  });
1251
1339
  return;
1252
1340
  }
1253
- if (isAborted(__stack.locals.__hoist_11)) {
1254
- throw __stack.locals.__hoist_11.toError();
1341
+ if (isAborted(__stack.locals.__hoist_12)) {
1342
+ throw __stack.locals.__hoist_12.toError();
1255
1343
  }
1256
1344
  });
1257
- await runner.step(39, async (runner2) => {
1345
+ await runner.step(44, async (runner2) => {
1258
1346
  const __funcResult = await __call(setAgentCwd, {
1259
1347
  type: "positional",
1260
- args: [__stack.locals.__hoist_11]
1348
+ args: [__stack.locals.__hoist_12]
1261
1349
  });
1262
1350
  if (hasInterrupts(__funcResult)) {
1263
1351
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
@@ -1271,12 +1359,12 @@ graph.node("main", async (__state) => {
1271
1359
  throw __funcResult.toError();
1272
1360
  }
1273
1361
  });
1274
- await runner.ifElse(40, [
1362
+ await runner.ifElse(45, [
1275
1363
  {
1276
1364
  condition: async () => __stack.locals.isOneShot && (__stack.locals.args.flags.continue || !__eq(__stack.locals.args.flags.resume, null)),
1277
1365
  body: async (runner2) => {
1278
1366
  await runner2.step(0, async (runner3) => {
1279
- __stack.locals.__hoist_12 = await __callMethod(color, "red", {
1367
+ __stack.locals.__hoist_13 = await __callMethod(color, "red", {
1280
1368
  type: "positional",
1281
1369
  args: [`--continue and --resume need an interactive session; one-shot runs are not saved.`]
1282
1370
  });
@@ -1284,7 +1372,7 @@ graph.node("main", async (__state) => {
1284
1372
  await runner2.step(1, async (runner3) => {
1285
1373
  const __funcResult = await __call(print, {
1286
1374
  type: "positional",
1287
- args: [__stack.locals.__hoist_12]
1375
+ args: [__stack.locals.__hoist_13]
1288
1376
  });
1289
1377
  if (hasInterrupts(__funcResult)) {
1290
1378
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
@@ -1307,9 +1395,9 @@ graph.node("main", async (__state) => {
1307
1395
  }
1308
1396
  }
1309
1397
  ]);
1310
- await runner.step(41, async (runner2) => {
1398
+ await runner.step(46, async (runner2) => {
1311
1399
  });
1312
- await runner.ifElse(42, [
1400
+ await runner.ifElse(47, [
1313
1401
  {
1314
1402
  condition: async () => !__stack.locals.isOneShot,
1315
1403
  body: async (runner2) => {
@@ -1331,26 +1419,26 @@ graph.node("main", async (__state) => {
1331
1419
  }
1332
1420
  });
1333
1421
  await runner2.step(1, async (runner3) => {
1334
- __stack.locals.__hoist_13 = await __call(mergedPalette, {
1422
+ __stack.locals.__hoist_14 = await __call(mergedPalette, {
1335
1423
  type: "positional",
1336
1424
  args: []
1337
1425
  });
1338
- if (hasInterrupts(__stack.locals.__hoist_13)) {
1426
+ if (hasInterrupts(__stack.locals.__hoist_14)) {
1339
1427
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
1340
1428
  runner3.halt({
1341
1429
  ...__state,
1342
- data: __stack.locals.__hoist_13
1430
+ data: __stack.locals.__hoist_14
1343
1431
  });
1344
1432
  return;
1345
1433
  }
1346
- if (isAborted(__stack.locals.__hoist_13)) {
1347
- throw __stack.locals.__hoist_13.toError();
1434
+ if (isAborted(__stack.locals.__hoist_14)) {
1435
+ throw __stack.locals.__hoist_14.toError();
1348
1436
  }
1349
1437
  });
1350
1438
  await runner2.step(2, async (runner3) => {
1351
1439
  const __funcResult = await __call(setSlashPalette, {
1352
1440
  type: "positional",
1353
- args: [__stack.locals.__hoist_13]
1441
+ args: [__stack.locals.__hoist_14]
1354
1442
  });
1355
1443
  if (hasInterrupts(__funcResult)) {
1356
1444
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
@@ -1365,26 +1453,26 @@ graph.node("main", async (__state) => {
1365
1453
  }
1366
1454
  });
1367
1455
  await runner2.step(3, async (runner3) => {
1368
- __stack.locals.__hoist_14 = await __call(chooseSession, {
1456
+ __stack.locals.__hoist_15 = await __call(chooseSession, {
1369
1457
  type: "positional",
1370
1458
  args: [__stack.locals.args.flags.continue, __stack.locals.args.flags.resume ?? null]
1371
1459
  });
1372
- if (hasInterrupts(__stack.locals.__hoist_14)) {
1460
+ if (hasInterrupts(__stack.locals.__hoist_15)) {
1373
1461
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
1374
1462
  runner3.halt({
1375
1463
  ...__state,
1376
- data: __stack.locals.__hoist_14
1464
+ data: __stack.locals.__hoist_15
1377
1465
  });
1378
1466
  return;
1379
1467
  }
1380
- if (isAborted(__stack.locals.__hoist_14)) {
1381
- throw __stack.locals.__hoist_14.toError();
1468
+ if (isAborted(__stack.locals.__hoist_15)) {
1469
+ throw __stack.locals.__hoist_15.toError();
1382
1470
  }
1383
1471
  });
1384
1472
  await runner2.step(4, async (runner3) => {
1385
1473
  const __funcResult = await __call(startSession, {
1386
1474
  type: "positional",
1387
- args: [__stack.locals.__hoist_14, __stack.locals.brain]
1475
+ args: [__stack.locals.__hoist_15, __stack.locals.brain]
1388
1476
  });
1389
1477
  if (hasInterrupts(__funcResult)) {
1390
1478
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
@@ -1401,7 +1489,7 @@ graph.node("main", async (__state) => {
1401
1489
  }
1402
1490
  }
1403
1491
  ]);
1404
- await runner.ifElse(43, [
1492
+ await runner.ifElse(48, [
1405
1493
  {
1406
1494
  condition: async () => __stack.locals.isOneShot,
1407
1495
  body: async (runner2) => {
@@ -1449,26 +1537,26 @@ graph.node("main", async (__state) => {
1449
1537
  }
1450
1538
  ]);
1451
1539
  await runner2.step(2, async (runner3) => {
1452
- __stack.locals.__hoist_15 = await __call(oneShotAgent, {
1540
+ __stack.locals.__hoist_16 = await __call(oneShotAgent, {
1453
1541
  type: "positional",
1454
1542
  args: [__stack.locals.startAgent, __stack.locals.prompt]
1455
1543
  });
1456
- if (hasInterrupts(__stack.locals.__hoist_15)) {
1544
+ if (hasInterrupts(__stack.locals.__hoist_16)) {
1457
1545
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
1458
1546
  runner3.halt({
1459
1547
  ...__state,
1460
- data: __stack.locals.__hoist_15
1548
+ data: __stack.locals.__hoist_16
1461
1549
  });
1462
1550
  return;
1463
1551
  }
1464
- if (isAborted(__stack.locals.__hoist_15)) {
1465
- throw __stack.locals.__hoist_15.toError();
1552
+ if (isAborted(__stack.locals.__hoist_16)) {
1553
+ throw __stack.locals.__hoist_16.toError();
1466
1554
  }
1467
1555
  });
1468
1556
  await runner2.step(3, async (runner3) => {
1469
1557
  const __funcResult = await __call(print, {
1470
1558
  type: "positional",
1471
- args: [__stack.locals.__hoist_15]
1559
+ args: [__stack.locals.__hoist_16]
1472
1560
  });
1473
1561
  if (hasInterrupts(__funcResult)) {
1474
1562
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
@@ -1483,33 +1571,33 @@ graph.node("main", async (__state) => {
1483
1571
  }
1484
1572
  });
1485
1573
  await runner2.step(4, async (runner3) => {
1486
- __stack.locals.__hoist_16 = await __call(getCost, {
1574
+ __stack.locals.__hoist_17 = await __call(getCost, {
1487
1575
  type: "positional",
1488
1576
  args: []
1489
1577
  });
1490
- if (hasInterrupts(__stack.locals.__hoist_16)) {
1578
+ if (hasInterrupts(__stack.locals.__hoist_17)) {
1491
1579
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
1492
1580
  runner3.halt({
1493
1581
  ...__state,
1494
- data: __stack.locals.__hoist_16
1582
+ data: __stack.locals.__hoist_17
1495
1583
  });
1496
1584
  return;
1497
1585
  }
1498
- if (isAborted(__stack.locals.__hoist_16)) {
1499
- throw __stack.locals.__hoist_16.toError();
1586
+ if (isAborted(__stack.locals.__hoist_17)) {
1587
+ throw __stack.locals.__hoist_17.toError();
1500
1588
  }
1501
1589
  });
1502
1590
  await runner2.step(5, async (runner3) => {
1503
- __stack.locals.__hoist_17 = await __callMethod(__stack.locals.__hoist_16, "toFixed", {
1591
+ __stack.locals.__hoist_18 = await __callMethod(__stack.locals.__hoist_17, "toFixed", {
1504
1592
  type: "positional",
1505
1593
  args: [4]
1506
1594
  });
1507
1595
  });
1508
1596
  await runner2.step(6, async (runner3) => {
1509
- __stack.locals.roundedCost = `$${__stack.locals.__hoist_17}`;
1597
+ __stack.locals.roundedCost = `$${__stack.locals.__hoist_18}`;
1510
1598
  });
1511
1599
  await runner2.step(7, async (runner3) => {
1512
- __stack.locals.__hoist_18 = await __callMethod(color, "dim", {
1600
+ __stack.locals.__hoist_19 = await __callMethod(color, "dim", {
1513
1601
  type: "positional",
1514
1602
  args: [`
1515
1603
  Session cost: ${__stack.locals.roundedCost}`]
@@ -1518,7 +1606,7 @@ Session cost: ${__stack.locals.roundedCost}`]
1518
1606
  await runner2.step(8, async (runner3) => {
1519
1607
  const __funcResult = await __call(print, {
1520
1608
  type: "positional",
1521
- args: [__stack.locals.__hoist_18]
1609
+ args: [__stack.locals.__hoist_19]
1522
1610
  });
1523
1611
  if (hasInterrupts(__funcResult)) {
1524
1612
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
@@ -1570,26 +1658,26 @@ Session cost: ${__stack.locals.roundedCost}`]
1570
1658
  }
1571
1659
  });
1572
1660
  await runner2.step(11, async (runner3) => {
1573
- __stack.locals.__hoist_19 = await __call(getHeader, {
1661
+ __stack.locals.__hoist_20 = await __call(getHeader, {
1574
1662
  type: "positional",
1575
1663
  args: [__stack.locals.brain.name]
1576
1664
  });
1577
- if (hasInterrupts(__stack.locals.__hoist_19)) {
1665
+ if (hasInterrupts(__stack.locals.__hoist_20)) {
1578
1666
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
1579
1667
  runner3.halt({
1580
1668
  ...__state,
1581
- data: __stack.locals.__hoist_19
1669
+ data: __stack.locals.__hoist_20
1582
1670
  });
1583
1671
  return;
1584
1672
  }
1585
- if (isAborted(__stack.locals.__hoist_19)) {
1586
- throw __stack.locals.__hoist_19.toError();
1673
+ if (isAborted(__stack.locals.__hoist_20)) {
1674
+ throw __stack.locals.__hoist_20.toError();
1587
1675
  }
1588
1676
  });
1589
1677
  await runner2.step(12, async (runner3) => {
1590
1678
  const __funcResult = await __call(print, {
1591
1679
  type: "positional",
1592
- args: [__stack.locals.__hoist_19]
1680
+ args: [__stack.locals.__hoist_20]
1593
1681
  });
1594
1682
  if (hasInterrupts(__funcResult)) {
1595
1683
  await getRuntimeContext().ctx.pendingPromises.awaitAll();
@@ -1657,7 +1745,7 @@ Session cost: ${__stack.locals.roundedCost}`]
1657
1745
  });
1658
1746
  });
1659
1747
  if (runner.halted) return runner.haltResult;
1660
- await runner.hook(44, async () => {
1748
+ await runner.hook(49, async () => {
1661
1749
  await callHook({
1662
1750
  name: "onNodeEnd",
1663
1751
  data: {
@@ -1739,7 +1827,7 @@ Agent crashed: ${__error.message}`);
1739
1827
  }
1740
1828
  }
1741
1829
  var stdin_default = graph;
1742
- const __sourceMap = { "dist/lib/agents/agency-agent/agent.agency:oneShotAgent": { "1": { "line": 43, "col": 2 }, "2": { "line": 47, "col": 2 }, "3": { "line": 48, "col": 2 }, "4": { "line": 49, "col": 2 }, "5": { "line": 59, "col": 2 }, "6": { "line": 60, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:__block_0": { "4.0": { "line": 50, "col": 4 }, "4.1": { "line": 53, "col": 18 }, "4.2.0": { "line": 53, "col": 4 }, "4.2.1": { "line": 54, "col": 6 }, "4.2.2": { "line": 55, "col": 25 }, "4.2.3.0": { "line": 55, "col": 11 }, "4.2.3.1": { "line": 56, "col": 6 }, "4.2.3": { "line": 55, "col": 11 }, "4.2": { "line": 53, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:main": { "2": { "line": 70, "col": 2 }, "3": { "line": 78, "col": 2 }, "4": { "line": 81, "col": 2 }, "6": { "line": 88, "col": 2 }, "7": { "line": 92, "col": 2 }, "8": { "line": 98, "col": 63 }, "9": { "line": 98, "col": 2 }, "10": { "line": 99, "col": 2 }, "11": { "line": 100, "col": 2 }, "12": { "line": 106, "col": 2 }, "13": { "line": 111, "col": 2 }, "14": { "line": 112, "col": 2 }, "15": { "line": 113, "col": 2 }, "16": { "line": 117, "col": 2 }, "17": { "line": 118, "col": 2 }, "18": { "line": 121, "col": 15 }, "19": { "line": 121, "col": 2 }, "20": { "line": 124, "col": 2 }, "21": { "line": 125, "col": 2 }, "22": { "line": 126, "col": 2 }, "23": { "line": 127, "col": 2 }, "25": { "line": 141, "col": 39 }, "26": { "line": 141, "col": 2 }, "27": { "line": 142, "col": 2 }, "28": { "line": 146, "col": 2 }, "29": { "line": 150, "col": 15 }, "30": { "line": 150, "col": 2 }, "31": { "line": 152, "col": 23 }, "32": { "line": 152, "col": 2 }, "33": { "line": 153, "col": 18 }, "34": { "line": 153, "col": 2 }, "36": { "line": 155, "col": 2 }, "37": { "line": 156, "col": 2 }, "38": { "line": 162, "col": 14 }, "39": { "line": 162, "col": 2 }, "40": { "line": 168, "col": 2 }, "42": { "line": 180, "col": 2 }, "43": { "line": 189, "col": 2 }, "3.0": { "line": 79, "col": 4 }, "4.0": { "line": 82, "col": 4 }, "6.0": { "line": 89, "col": 4 }, "6.1": { "line": 90, "col": 4 }, "11.0": { "line": 101, "col": 22 }, "11.2": { "line": 101, "col": 4 }, "11.3": { "line": 102, "col": 10 }, "11.4": { "line": 102, "col": 4 }, "11.5": { "line": 103, "col": 4 }, "11.6": { "line": 104, "col": 4 }, "23.0": { "line": 128, "col": 4 }, "23.1": { "line": 130, "col": 6 }, "23.2": { "line": 129, "col": 4 }, "23.3": { "line": 134, "col": 4 }, "23.4": { "line": 135, "col": 4 }, "23.5": { "line": 137, "col": 4 }, "37.0": { "line": 157, "col": 4 }, "40.0": { "line": 170, "col": 6 }, "40.1": { "line": 169, "col": 4 }, "40.2": { "line": 174, "col": 4 }, "42.0": { "line": 181, "col": 4 }, "42.1": { "line": 182, "col": 20 }, "42.2": { "line": 182, "col": 4 }, "42.3": { "line": 184, "col": 6 }, "42.4": { "line": 183, "col": 4 }, "43.0": { "line": 190, "col": 4 }, "43.1.0": { "line": 192, "col": 6 }, "43.1.1.0": { "line": 194, "col": 8 }, "43.1.1": { "line": 193, "col": 6 }, "43.1.2": { "line": 196, "col": 6 }, "43.1": { "line": 191, "col": 4 }, "43.2": { "line": 198, "col": 10 }, "43.3": { "line": 198, "col": 4 }, "43.5": { "line": 199, "col": 28 }, "43.6": { "line": 199, "col": 4 }, "43.7": { "line": 200, "col": 10 }, "43.8": { "line": 200, "col": 4 }, "43.9": { "line": 202, "col": 4 }, "43.10": { "line": 203, "col": 4 }, "43.11": { "line": 204, "col": 10 }, "43.12": { "line": 204, "col": 4 }, "43.13": { "line": 205, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:__block_1": {}, "dist/lib/agents/agency-agent/agent.agency:__block_2": { "43.13.0": { "line": 206, "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 } } };
1743
1831
  export {
1744
1832
  __getCheckpoints,
1745
1833
  __invokeFunction,
@@ -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", "b93f1c4271dbd4a282554817a6c0366b9d764d61e39139cc0a0711aa342938b5", 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);
@@ -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,