agency-lang 0.6.1 → 0.6.3
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.
- package/dist/lib/agents/agency-agent/agent.agency +1 -1
- package/dist/lib/agents/agency-agent/agent.js +48 -120
- package/dist/lib/agents/agency-agent/code.js +532 -0
- package/dist/lib/agents/agency-agent/images/images.js +3 -0
- package/dist/lib/agents/agency-agent/lib/config.js +3 -0
- package/dist/lib/agents/agency-agent/lib/defaultPolicy.js +5 -6
- package/dist/lib/agents/agency-agent/lib/models.agency +154 -0
- package/dist/lib/agents/agency-agent/lib/models.js +711 -0
- package/dist/lib/agents/agency-agent/lib/utils.js +9 -22
- package/dist/lib/agents/agency-agent/prompts/codeSample.js +9 -22
- package/dist/lib/agents/agency-agent/research.js +311 -0
- package/dist/lib/agents/agency-agent/shared.agency +19 -67
- package/dist/lib/agents/agency-agent/shared.js +52 -150
- package/dist/lib/agents/agency-agent/subagents/code.js +16 -20
- package/dist/lib/agents/agency-agent/subagents/explorer.js +9 -10
- package/dist/lib/agents/agency-agent/subagents/oracle.js +10 -11
- package/dist/lib/agents/agency-agent/subagents/research.js +12 -13
- package/dist/lib/agents/agency-agent/subagents/review.js +12 -36
- package/dist/lib/agents/agency-agent/tests/agentTurn.js +5 -6
- package/dist/lib/agents/agency-agent/tests/execPolicy.js +15 -31
- package/dist/lib/agents/agency-agent/tests/toolWiring.js +13 -26
- package/dist/lib/agents/agency-agent/toolWiring.js +696 -0
- package/dist/lib/agents/docs/cli/cli/optimize.md +197 -72
- package/dist/lib/agents/docs/cli/optimize.md +197 -72
- package/dist/lib/agents/eval/goalJudge.agency +4 -1
- package/dist/lib/agents/eval/goalJudge.js +14 -10
- package/dist/lib/agents/eval/judge.js +5 -6
- package/dist/lib/agents/eval/judgePairwise.js +5 -6
- package/dist/lib/agents/gepaReflect.js +316 -0
- package/dist/lib/agents/mutatePrompt.js +301 -0
- package/dist/lib/agents/optimize/gepaReflect.js +5 -6
- package/dist/lib/agents/optimize/mutatePrompt.js +5 -6
- package/dist/lib/agents/policy/agent.js +16 -45
- package/dist/lib/agents/review/agent.js +6 -11
- package/dist/lib/backends/typescriptBuilder.d.ts +1 -0
- package/dist/lib/backends/typescriptBuilder.integration.test.js +80 -0
- package/dist/lib/backends/typescriptBuilder.js +76 -18
- package/dist/lib/backends/typescriptGenerator/validationDescriptor.d.ts +6 -0
- package/dist/lib/backends/typescriptGenerator/validationDescriptor.js +108 -31
- package/dist/lib/cli/eval/optimize.js +4 -2
- package/dist/lib/optimize/baseOptimizer.d.ts +27 -0
- package/dist/lib/optimize/baseOptimizer.js +56 -3
- package/dist/lib/optimize/grading/functionGrader.d.ts +5 -1
- package/dist/lib/optimize/grading/functionGrader.js +9 -1
- package/dist/lib/optimize/grading/functionGrader.test.js +22 -0
- package/dist/lib/optimize/grading/graders/llmJudge.d.ts +1 -0
- package/dist/lib/optimize/grading/graders/llmJudge.js +5 -1
- package/dist/lib/optimize/grading/graders/llmJudge.test.js +12 -2
- package/dist/lib/optimize/optimizers/example.d.ts +9 -10
- package/dist/lib/optimize/optimizers/example.js +33 -33
- package/dist/lib/optimize/optimizers/example.test.js +11 -0
- package/dist/lib/optimize/optimizers/gepa.d.ts +0 -2
- package/dist/lib/optimize/optimizers/gepa.js +3 -18
- package/dist/lib/optimize/optimizers/gepa.test.js +11 -0
- package/dist/lib/optimize/optimizers/greedyReflective.d.ts +0 -7
- package/dist/lib/optimize/optimizers/greedyReflective.js +2 -36
- package/dist/lib/runtime/errors.d.ts +21 -10
- package/dist/lib/runtime/errors.js +46 -22
- package/dist/lib/runtime/errors.test.js +56 -2
- package/dist/lib/runtime/guard.d.ts +22 -5
- package/dist/lib/runtime/guard.js +30 -7
- package/dist/lib/runtime/guard.test.js +30 -1
- package/dist/lib/runtime/hooks.js +5 -2
- package/dist/lib/runtime/index.d.ts +2 -2
- package/dist/lib/runtime/index.js +2 -2
- package/dist/lib/runtime/node.d.ts +43 -0
- package/dist/lib/runtime/node.js +129 -52
- package/dist/lib/runtime/prompt.js +16 -28
- package/dist/lib/runtime/result.d.ts +6 -0
- package/dist/lib/runtime/result.js +19 -15
- package/dist/lib/runtime/result.test.js +55 -4
- package/dist/lib/runtime/runBatch.js +3 -2
- package/dist/lib/runtime/runBatch.test.js +33 -0
- package/dist/lib/runtime/state/stateStack.test.js +6 -2
- package/dist/lib/runtime/threadRepair.d.ts +36 -0
- package/dist/lib/runtime/threadRepair.js +69 -0
- package/dist/lib/runtime/threadRepair.test.d.ts +1 -0
- package/dist/lib/runtime/threadRepair.test.js +89 -0
- package/dist/lib/serve/discovery.js +24 -2
- package/dist/lib/serve/http/adapter.js +1 -5
- package/dist/lib/serve/http/adapter.test.js +3 -0
- package/dist/lib/serve/http/functionFrame.integration.test.d.ts +1 -0
- package/dist/lib/serve/http/functionFrame.integration.test.js +83 -0
- package/dist/lib/serve/mcp/adapter.js +1 -1
- package/dist/lib/serve/mcp/adapter.test.js +4 -2
- package/dist/lib/serve/mcp/httpTransport.test.js +1 -0
- package/dist/lib/serve/types.d.ts +10 -0
- package/dist/lib/stdlib/http.js +19 -2
- package/dist/lib/stdlib/thread.d.ts +29 -4
- package/dist/lib/stdlib/thread.js +60 -15
- package/dist/lib/templates/backends/typescriptGenerator/functionCatchFailure.d.ts +1 -1
- package/dist/lib/templates/backends/typescriptGenerator/functionCatchFailure.js +8 -15
- package/dist/lib/templates/backends/typescriptGenerator/imports.d.ts +1 -1
- package/dist/lib/templates/backends/typescriptGenerator/imports.js +7 -2
- package/dist/lib/typeChecker/valueParamSubstitution.js +17 -3
- package/package.json +1 -1
- package/stdlib/agency/eval.js +9 -22
- package/stdlib/agency.agency +10 -10
- package/stdlib/agency.js +30 -76
- package/stdlib/agent.js +13 -38
- package/stdlib/args.js +5 -6
- package/stdlib/array.js +17 -54
- package/stdlib/browser.js +5 -6
- package/stdlib/calendar.js +10 -26
- package/stdlib/chart.js +8 -18
- package/stdlib/cli.agency +2 -2
- package/stdlib/cli.js +12 -29
- package/stdlib/clipboard.agency +1 -1
- package/stdlib/clipboard.js +7 -12
- package/stdlib/concurrency.js +5 -6
- package/stdlib/date.js +19 -62
- package/stdlib/email.js +7 -14
- package/stdlib/fs.js +10 -26
- package/stdlib/http.agency +3 -3
- package/stdlib/http.js +10 -17
- package/stdlib/imessage.js +5 -6
- package/stdlib/index.agency +13 -3
- package/stdlib/index.js +28 -86
- package/stdlib/keyring.agency +1 -1
- package/stdlib/keyring.js +9 -19
- package/stdlib/layout.agency +3 -3
- package/stdlib/layout.js +25 -77
- package/stdlib/llm.agency +9 -3
- package/stdlib/llm.js +17 -21
- package/stdlib/markdown.js +8 -18
- package/stdlib/math.js +8 -18
- package/stdlib/memory.agency +2 -2
- package/stdlib/memory.js +15 -42
- package/stdlib/oauth.js +8 -18
- package/stdlib/object.js +9 -22
- package/stdlib/path.js +11 -30
- package/stdlib/policy.js +31 -92
- package/stdlib/schemas.js +3 -0
- package/stdlib/search.js +5 -6
- package/stdlib/shell.agency +3 -3
- package/stdlib/shell.js +15 -37
- package/stdlib/skills.js +13 -38
- package/stdlib/sms.js +5 -6
- package/stdlib/speech.js +7 -14
- package/stdlib/statelog.agency +4 -4
- package/stdlib/statelog.js +14 -34
- package/stdlib/strategy.js +9 -22
- package/stdlib/syntax.agency +1 -1
- package/stdlib/syntax.js +9 -20
- package/stdlib/system.js +15 -46
- package/stdlib/table.agency +1 -1
- package/stdlib/table.js +12 -31
- package/stdlib/thread.agency +4 -3
- package/stdlib/thread.js +25 -43
- package/stdlib/threads.agency +1 -1
- package/stdlib/threads.js +10 -23
- package/stdlib/types.js +27 -0
- package/stdlib/ui.agency +6 -6
- package/stdlib/ui.js +66 -232
- package/stdlib/validators.agency +11 -11
- package/stdlib/validators.js +26 -68
- package/stdlib/weather.js +7 -14
- package/stdlib/wikipedia.js +7 -14
|
@@ -697,7 +697,7 @@ node main() {
|
|
|
697
697
|
},
|
|
698
698
|
provider: {
|
|
699
699
|
type: "string",
|
|
700
|
-
description: "Force the LLM provider (
|
|
700
|
+
description: "Force the LLM provider. Given alone (openai/anthropic/google) it selects that provider's default models and skips env auto-detection; pair it with --model for a custom/local model name"
|
|
701
701
|
},
|
|
702
702
|
interactive: {
|
|
703
703
|
type: "boolean",
|
|
@@ -48,9 +48,9 @@ import {
|
|
|
48
48
|
isDebugger,
|
|
49
49
|
respondToInterrupts as _respondToInterrupts,
|
|
50
50
|
rewindFrom as _rewindFrom,
|
|
51
|
+
runExportedFunction as _runExportedFunction,
|
|
51
52
|
RestoreSignal,
|
|
52
|
-
|
|
53
|
-
isAbortError as __isAbortError,
|
|
53
|
+
AgencyAbort,
|
|
54
54
|
deepFreeze as __deepFreeze,
|
|
55
55
|
__UNINIT_STATIC,
|
|
56
56
|
__readStatic,
|
|
@@ -115,6 +115,7 @@ function propagate() {
|
|
|
115
115
|
}
|
|
116
116
|
const respondToInterrupts = (interrupts, responses, opts) => _respondToInterrupts({ ctx: __globalCtx, interrupts, responses, overrides: opts?.overrides, metadata: opts?.metadata, registerTopLevelCallbacks: __registerTopLevelCallbacks, moduleDir: __dirname });
|
|
117
117
|
const rewindFrom = (checkpoint2, overrides, opts) => _rewindFrom({ ctx: __globalCtx, checkpoint: checkpoint2, overrides, metadata: opts?.metadata, registerTopLevelCallbacks: __registerTopLevelCallbacks, moduleDir: __dirname });
|
|
118
|
+
const __invokeFunction = (fn, namedArgs) => _runExportedFunction({ ctx: __globalCtx, fn, namedArgs, initializeGlobals: __initializeGlobals, registerTopLevelCallbacks: __registerTopLevelCallbacks, moduleDir: __dirname });
|
|
118
119
|
const __setDebugger = (dbg) => {
|
|
119
120
|
__globalCtx.debuggerState = dbg;
|
|
120
121
|
};
|
|
@@ -398,31 +399,31 @@ unless the user has clearly asked for an action ("do X", "fix Y",
|
|
|
398
399
|
"build Z"). If the user is exploring or thinking out loud, think
|
|
399
400
|
with them \u2014 don't sprint to implementation.
|
|
400
401
|
`);
|
|
401
|
-
mainAgentTools = __deepFreeze([await __callMethod(__readStatic(researchAgent, "researchAgent", "/Users/
|
|
402
|
+
mainAgentTools = __deepFreeze([await __callMethod(__readStatic(researchAgent, "researchAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/subagents/research.agency"), "partial", {
|
|
402
403
|
type: "named",
|
|
403
404
|
positionalArgs: [],
|
|
404
405
|
namedArgs: {
|
|
405
406
|
allowHandoff: false
|
|
406
407
|
}
|
|
407
|
-
}), await __callMethod(__readStatic(codeAgent, "codeAgent", "/Users/
|
|
408
|
+
}), await __callMethod(__readStatic(codeAgent, "codeAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/subagents/code.agency"), "partial", {
|
|
408
409
|
type: "named",
|
|
409
410
|
positionalArgs: [],
|
|
410
411
|
namedArgs: {
|
|
411
412
|
allowHandoff: false
|
|
412
413
|
}
|
|
413
|
-
}), await __callMethod(__readStatic(reviewAgent, "reviewAgent", "/Users/
|
|
414
|
+
}), await __callMethod(__readStatic(reviewAgent, "reviewAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/subagents/review.agency"), "partial", {
|
|
414
415
|
type: "named",
|
|
415
416
|
positionalArgs: [],
|
|
416
417
|
namedArgs: {
|
|
417
418
|
allowHandoff: false
|
|
418
419
|
}
|
|
419
|
-
}), await __callMethod(__readStatic(oracleAgent, "oracleAgent", "/Users/
|
|
420
|
+
}), await __callMethod(__readStatic(oracleAgent, "oracleAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/subagents/oracle.agency"), "partial", {
|
|
420
421
|
type: "named",
|
|
421
422
|
positionalArgs: [],
|
|
422
423
|
namedArgs: {
|
|
423
424
|
allowHandoff: false
|
|
424
425
|
}
|
|
425
|
-
}), await __callMethod(__readStatic(explorerAgent, "explorerAgent", "/Users/
|
|
426
|
+
}), await __callMethod(__readStatic(explorerAgent, "explorerAgent", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/subagents/explorer.agency"), "partial", {
|
|
426
427
|
type: "named",
|
|
427
428
|
positionalArgs: [],
|
|
428
429
|
namedArgs: {
|
|
@@ -565,10 +566,7 @@ async function ____cb_top_0_impl(data) {
|
|
|
565
566
|
if (__error instanceof RestoreSignal) {
|
|
566
567
|
throw __error;
|
|
567
568
|
}
|
|
568
|
-
if (__error instanceof
|
|
569
|
-
throw __error;
|
|
570
|
-
}
|
|
571
|
-
if (__isAbortError(__error)) {
|
|
569
|
+
if (__error instanceof AgencyAbort) {
|
|
572
570
|
throw __error;
|
|
573
571
|
}
|
|
574
572
|
{
|
|
@@ -766,10 +764,7 @@ async function ____cb_top_1_impl(data) {
|
|
|
766
764
|
if (__error instanceof RestoreSignal) {
|
|
767
765
|
throw __error;
|
|
768
766
|
}
|
|
769
|
-
if (__error instanceof
|
|
770
|
-
throw __error;
|
|
771
|
-
}
|
|
772
|
-
if (__isAbortError(__error)) {
|
|
767
|
+
if (__error instanceof AgencyAbort) {
|
|
773
768
|
throw __error;
|
|
774
769
|
}
|
|
775
770
|
{
|
|
@@ -906,10 +901,7 @@ async function ____cb_top_2_impl(data) {
|
|
|
906
901
|
if (__error instanceof RestoreSignal) {
|
|
907
902
|
throw __error;
|
|
908
903
|
}
|
|
909
|
-
if (__error instanceof
|
|
910
|
-
throw __error;
|
|
911
|
-
}
|
|
912
|
-
if (__isAbortError(__error)) {
|
|
904
|
+
if (__error instanceof AgencyAbort) {
|
|
913
905
|
throw __error;
|
|
914
906
|
}
|
|
915
907
|
{
|
|
@@ -1049,10 +1041,7 @@ async function ____cb_top_3_impl(data) {
|
|
|
1049
1041
|
if (__error instanceof RestoreSignal) {
|
|
1050
1042
|
throw __error;
|
|
1051
1043
|
}
|
|
1052
|
-
if (__error instanceof
|
|
1053
|
-
throw __error;
|
|
1054
|
-
}
|
|
1055
|
-
if (__isAbortError(__error)) {
|
|
1044
|
+
if (__error instanceof AgencyAbort) {
|
|
1056
1045
|
throw __error;
|
|
1057
1046
|
}
|
|
1058
1047
|
{
|
|
@@ -1162,10 +1151,7 @@ async function ___showTraces_impl() {
|
|
|
1162
1151
|
if (__error instanceof RestoreSignal) {
|
|
1163
1152
|
throw __error;
|
|
1164
1153
|
}
|
|
1165
|
-
if (__error instanceof
|
|
1166
|
-
throw __error;
|
|
1167
|
-
}
|
|
1168
|
-
if (__isAbortError(__error)) {
|
|
1154
|
+
if (__error instanceof AgencyAbort) {
|
|
1169
1155
|
throw __error;
|
|
1170
1156
|
}
|
|
1171
1157
|
{
|
|
@@ -1323,10 +1309,7 @@ async function __renderLLMCallResponse_impl(data) {
|
|
|
1323
1309
|
if (__error instanceof RestoreSignal) {
|
|
1324
1310
|
throw __error;
|
|
1325
1311
|
}
|
|
1326
|
-
if (__error instanceof
|
|
1327
|
-
throw __error;
|
|
1328
|
-
}
|
|
1329
|
-
if (__isAbortError(__error)) {
|
|
1312
|
+
if (__error instanceof AgencyAbort) {
|
|
1330
1313
|
throw __error;
|
|
1331
1314
|
}
|
|
1332
1315
|
{
|
|
@@ -1444,7 +1427,6 @@ async function __loadAgentsMd_impl(dir) {
|
|
|
1444
1427
|
]);
|
|
1445
1428
|
await runner.handle(2, async (__data) => approve(), async (runner2) => {
|
|
1446
1429
|
await runner2.step(0, async (runner3) => {
|
|
1447
|
-
__self.__retryable = false;
|
|
1448
1430
|
__stack.locals.result = await __call(read, {
|
|
1449
1431
|
type: "positional",
|
|
1450
1432
|
args: [`AGENTS.md`, __stack.args.dir]
|
|
@@ -1456,10 +1438,7 @@ async function __loadAgentsMd_impl(dir) {
|
|
|
1456
1438
|
}
|
|
1457
1439
|
});
|
|
1458
1440
|
});
|
|
1459
|
-
await runner.
|
|
1460
|
-
__self.__retryable = false;
|
|
1461
|
-
});
|
|
1462
|
-
await runner.ifElse(4, [
|
|
1441
|
+
await runner.ifElse(3, [
|
|
1463
1442
|
{
|
|
1464
1443
|
condition: async () => await isFailure(__stack.locals.result),
|
|
1465
1444
|
body: async (runner2) => {
|
|
@@ -1471,7 +1450,7 @@ async function __loadAgentsMd_impl(dir) {
|
|
|
1471
1450
|
}
|
|
1472
1451
|
}
|
|
1473
1452
|
]);
|
|
1474
|
-
await runner.step(
|
|
1453
|
+
await runner.step(4, async (runner2) => {
|
|
1475
1454
|
__functionCompleted = true;
|
|
1476
1455
|
runner2.halt(`
|
|
1477
1456
|
|
|
@@ -1491,10 +1470,7 @@ ${__stack.locals.result.value}
|
|
|
1491
1470
|
if (__error instanceof RestoreSignal) {
|
|
1492
1471
|
throw __error;
|
|
1493
1472
|
}
|
|
1494
|
-
if (__error instanceof
|
|
1495
|
-
throw __error;
|
|
1496
|
-
}
|
|
1497
|
-
if (__isAbortError(__error)) {
|
|
1473
|
+
if (__error instanceof AgencyAbort) {
|
|
1498
1474
|
throw __error;
|
|
1499
1475
|
}
|
|
1500
1476
|
{
|
|
@@ -1614,10 +1590,7 @@ async function __builtinPalette_impl() {
|
|
|
1614
1590
|
if (__error instanceof RestoreSignal) {
|
|
1615
1591
|
throw __error;
|
|
1616
1592
|
}
|
|
1617
|
-
if (__error instanceof
|
|
1618
|
-
throw __error;
|
|
1619
|
-
}
|
|
1620
|
-
if (__isAbortError(__error)) {
|
|
1593
|
+
if (__error instanceof AgencyAbort) {
|
|
1621
1594
|
throw __error;
|
|
1622
1595
|
}
|
|
1623
1596
|
{
|
|
@@ -1758,10 +1731,7 @@ async function __mergedPalette_impl() {
|
|
|
1758
1731
|
if (__error instanceof RestoreSignal) {
|
|
1759
1732
|
throw __error;
|
|
1760
1733
|
}
|
|
1761
|
-
if (__error instanceof
|
|
1762
|
-
throw __error;
|
|
1763
|
-
}
|
|
1764
|
-
if (__isAbortError(__error)) {
|
|
1734
|
+
if (__error instanceof AgencyAbort) {
|
|
1765
1735
|
throw __error;
|
|
1766
1736
|
}
|
|
1767
1737
|
{
|
|
@@ -2137,10 +2107,7 @@ async function ___runTurn_impl(msg) {
|
|
|
2137
2107
|
if (__error instanceof RestoreSignal) {
|
|
2138
2108
|
throw __error;
|
|
2139
2109
|
}
|
|
2140
|
-
if (__error instanceof
|
|
2141
|
-
throw __error;
|
|
2142
|
-
}
|
|
2143
|
-
if (__isAbortError(__error)) {
|
|
2110
|
+
if (__error instanceof AgencyAbort) {
|
|
2144
2111
|
throw __error;
|
|
2145
2112
|
}
|
|
2146
2113
|
{
|
|
@@ -2320,10 +2287,7 @@ async function __mainAgent_impl(prompt) {
|
|
|
2320
2287
|
if (__error instanceof RestoreSignal) {
|
|
2321
2288
|
throw __error;
|
|
2322
2289
|
}
|
|
2323
|
-
if (__error instanceof
|
|
2324
|
-
throw __error;
|
|
2325
|
-
}
|
|
2326
|
-
if (__isAbortError(__error)) {
|
|
2290
|
+
if (__error instanceof AgencyAbort) {
|
|
2327
2291
|
throw __error;
|
|
2328
2292
|
}
|
|
2329
2293
|
{
|
|
@@ -2556,10 +2520,7 @@ async function __agentReplyVia_impl(target, userMsg) {
|
|
|
2556
2520
|
if (__error instanceof RestoreSignal) {
|
|
2557
2521
|
throw __error;
|
|
2558
2522
|
}
|
|
2559
|
-
if (__error instanceof
|
|
2560
|
-
throw __error;
|
|
2561
|
-
}
|
|
2562
|
-
if (__isAbortError(__error)) {
|
|
2523
|
+
if (__error instanceof AgencyAbort) {
|
|
2563
2524
|
throw __error;
|
|
2564
2525
|
}
|
|
2565
2526
|
{
|
|
@@ -2685,10 +2646,7 @@ async function __agentReply_impl(userMsg) {
|
|
|
2685
2646
|
if (__error instanceof RestoreSignal) {
|
|
2686
2647
|
throw __error;
|
|
2687
2648
|
}
|
|
2688
|
-
if (__error instanceof
|
|
2689
|
-
throw __error;
|
|
2690
|
-
}
|
|
2691
|
-
if (__isAbortError(__error)) {
|
|
2649
|
+
if (__error instanceof AgencyAbort) {
|
|
2692
2650
|
throw __error;
|
|
2693
2651
|
}
|
|
2694
2652
|
{
|
|
@@ -2804,10 +2762,7 @@ async function __roundedCost_impl() {
|
|
|
2804
2762
|
if (__error instanceof RestoreSignal) {
|
|
2805
2763
|
throw __error;
|
|
2806
2764
|
}
|
|
2807
|
-
if (__error instanceof
|
|
2808
|
-
throw __error;
|
|
2809
|
-
}
|
|
2810
|
-
if (__isAbortError(__error)) {
|
|
2765
|
+
if (__error instanceof AgencyAbort) {
|
|
2811
2766
|
throw __error;
|
|
2812
2767
|
}
|
|
2813
2768
|
{
|
|
@@ -2918,10 +2873,7 @@ async function ___buildStatus_impl() {
|
|
|
2918
2873
|
if (__error instanceof RestoreSignal) {
|
|
2919
2874
|
throw __error;
|
|
2920
2875
|
}
|
|
2921
|
-
if (__error instanceof
|
|
2922
|
-
throw __error;
|
|
2923
|
-
}
|
|
2924
|
-
if (__isAbortError(__error)) {
|
|
2876
|
+
if (__error instanceof AgencyAbort) {
|
|
2925
2877
|
throw __error;
|
|
2926
2878
|
}
|
|
2927
2879
|
{
|
|
@@ -3038,10 +2990,7 @@ async function __sample_impl(arr) {
|
|
|
3038
2990
|
if (__error instanceof RestoreSignal) {
|
|
3039
2991
|
throw __error;
|
|
3040
2992
|
}
|
|
3041
|
-
if (__error instanceof
|
|
3042
|
-
throw __error;
|
|
3043
|
-
}
|
|
3044
|
-
if (__isAbortError(__error)) {
|
|
2993
|
+
if (__error instanceof AgencyAbort) {
|
|
3045
2994
|
throw __error;
|
|
3046
2995
|
}
|
|
3047
2996
|
{
|
|
@@ -3138,7 +3087,7 @@ async function __printHeader_impl() {
|
|
|
3138
3087
|
await runner.step(1, async (runner2) => {
|
|
3139
3088
|
__stack.locals.fig = await __call(sample, {
|
|
3140
3089
|
type: "positional",
|
|
3141
|
-
args: [__readStatic(figs, "figs", "/Users/
|
|
3090
|
+
args: [__readStatic(figs, "figs", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/images/images.agency")]
|
|
3142
3091
|
});
|
|
3143
3092
|
if (hasInterrupts(__stack.locals.fig)) {
|
|
3144
3093
|
await getRuntimeContext().ctx.pendingPromises.awaitAll();
|
|
@@ -3147,7 +3096,6 @@ async function __printHeader_impl() {
|
|
|
3147
3096
|
}
|
|
3148
3097
|
});
|
|
3149
3098
|
await runner.step(2, async (runner2) => {
|
|
3150
|
-
__self.__retryable = false;
|
|
3151
3099
|
__stack.locals.data = await __call(box, {
|
|
3152
3100
|
type: "named",
|
|
3153
3101
|
positionalArgs: [],
|
|
@@ -3337,10 +3285,7 @@ async function __printHeader_impl() {
|
|
|
3337
3285
|
if (__error instanceof RestoreSignal) {
|
|
3338
3286
|
throw __error;
|
|
3339
3287
|
}
|
|
3340
|
-
if (__error instanceof
|
|
3341
|
-
throw __error;
|
|
3342
|
-
}
|
|
3343
|
-
if (__isAbortError(__error)) {
|
|
3288
|
+
if (__error instanceof AgencyAbort) {
|
|
3344
3289
|
throw __error;
|
|
3345
3290
|
}
|
|
3346
3291
|
{
|
|
@@ -3432,7 +3377,7 @@ async function __givePolicyChoice_impl() {
|
|
|
3432
3377
|
__stack.locals.title = `Welcome to the agency agent. Please pick a policy to start.`;
|
|
3433
3378
|
});
|
|
3434
3379
|
await runner.step(2, async (runner2) => {
|
|
3435
|
-
__stack.locals.body = `Don't worry, you can change this later. The policy just controls how the agent asks for your approval when it wants to do something. You can also create your own custom policy file at ${__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/
|
|
3380
|
+
__stack.locals.body = `Don't worry, you can change this later. The policy just controls how the agent asks for your approval when it wants to do something. You can also create your own custom policy file at ${__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/config.agency")} and the agent will use it automatically.`;
|
|
3436
3381
|
});
|
|
3437
3382
|
await runner.step(3, async (runner2) => {
|
|
3438
3383
|
__stack.locals.items = [{
|
|
@@ -3463,7 +3408,7 @@ async function __givePolicyChoice_impl() {
|
|
|
3463
3408
|
condition: async () => __stack.locals.answer === `minimal`,
|
|
3464
3409
|
body: async (runner2) => {
|
|
3465
3410
|
__functionCompleted = true;
|
|
3466
|
-
runner2.halt(__readStatic(minimalAutoApprovePolicy, "minimalAutoApprovePolicy", "/Users/
|
|
3411
|
+
runner2.halt(__readStatic(minimalAutoApprovePolicy, "minimalAutoApprovePolicy", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/defaultPolicy.agency"));
|
|
3467
3412
|
return;
|
|
3468
3413
|
}
|
|
3469
3414
|
},
|
|
@@ -3471,7 +3416,7 @@ async function __givePolicyChoice_impl() {
|
|
|
3471
3416
|
condition: async () => __stack.locals.answer === `recommended`,
|
|
3472
3417
|
body: async (runner2) => {
|
|
3473
3418
|
__functionCompleted = true;
|
|
3474
|
-
runner2.halt(__readStatic(recommendedAutoApprovePolicy, "recommendedAutoApprovePolicy", "/Users/
|
|
3419
|
+
runner2.halt(__readStatic(recommendedAutoApprovePolicy, "recommendedAutoApprovePolicy", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/defaultPolicy.agency"));
|
|
3475
3420
|
return;
|
|
3476
3421
|
}
|
|
3477
3422
|
}
|
|
@@ -3487,10 +3432,7 @@ async function __givePolicyChoice_impl() {
|
|
|
3487
3432
|
if (__error instanceof RestoreSignal) {
|
|
3488
3433
|
throw __error;
|
|
3489
3434
|
}
|
|
3490
|
-
if (__error instanceof
|
|
3491
|
-
throw __error;
|
|
3492
|
-
}
|
|
3493
|
-
if (__isAbortError(__error)) {
|
|
3435
|
+
if (__error instanceof AgencyAbort) {
|
|
3494
3436
|
throw __error;
|
|
3495
3437
|
}
|
|
3496
3438
|
{
|
|
@@ -3633,7 +3575,7 @@ Current working directory: ${await __call(cwd, {
|
|
|
3633
3575
|
__self.__retryable = false;
|
|
3634
3576
|
__stack.locals.policy = await __call(parsePolicyFile, {
|
|
3635
3577
|
type: "positional",
|
|
3636
|
-
args: [__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/
|
|
3578
|
+
args: [__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/config.agency")]
|
|
3637
3579
|
});
|
|
3638
3580
|
if (hasInterrupts(__stack.locals.policy)) {
|
|
3639
3581
|
await getRuntimeContext().ctx.pendingPromises.awaitAll();
|
|
@@ -3661,7 +3603,7 @@ Current working directory: ${await __call(cwd, {
|
|
|
3661
3603
|
type: "positional",
|
|
3662
3604
|
args: [await __callMethod(color, "yellow", {
|
|
3663
3605
|
type: "positional",
|
|
3664
|
-
args: [`No existing policy found at ${__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/
|
|
3606
|
+
args: [`No existing policy found at ${__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/config.agency")}.`]
|
|
3665
3607
|
})]
|
|
3666
3608
|
});
|
|
3667
3609
|
if (hasInterrupts(__funcResult)) {
|
|
@@ -3674,7 +3616,7 @@ Current working directory: ${await __call(cwd, {
|
|
|
3674
3616
|
__self.__retryable = false;
|
|
3675
3617
|
const __funcResult = await __call(setPolicy, {
|
|
3676
3618
|
type: "positional",
|
|
3677
|
-
args: [__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/
|
|
3619
|
+
args: [__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/config.agency"), await __call(givePolicyChoice, {
|
|
3678
3620
|
type: "positional",
|
|
3679
3621
|
args: []
|
|
3680
3622
|
})]
|
|
@@ -3692,7 +3634,7 @@ Current working directory: ${await __call(cwd, {
|
|
|
3692
3634
|
__self.__retryable = false;
|
|
3693
3635
|
const __funcResult = await __call(setPolicy, {
|
|
3694
3636
|
type: "positional",
|
|
3695
|
-
args: [__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/
|
|
3637
|
+
args: [__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/config.agency"), __readStatic(recommendedAutoApprovePolicy, "recommendedAutoApprovePolicy", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/defaultPolicy.agency")]
|
|
3696
3638
|
});
|
|
3697
3639
|
if (hasInterrupts(__funcResult)) {
|
|
3698
3640
|
await getRuntimeContext().ctx.pendingPromises.awaitAll();
|
|
@@ -3741,7 +3683,7 @@ Current working directory: ${await __call(cwd, {
|
|
|
3741
3683
|
__self.__retryable = false;
|
|
3742
3684
|
const __funcResult = await __call(setPolicy, {
|
|
3743
3685
|
type: "positional",
|
|
3744
|
-
args: [__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/
|
|
3686
|
+
args: [__readStatic(POLICY_PATH, "POLICY_PATH", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/config.agency"), __stack.locals.policy.value]
|
|
3745
3687
|
});
|
|
3746
3688
|
if (hasInterrupts(__funcResult)) {
|
|
3747
3689
|
await getRuntimeContext().ctx.pendingPromises.awaitAll();
|
|
@@ -3760,8 +3702,8 @@ Current working directory: ${await __call(cwd, {
|
|
|
3760
3702
|
type: "named",
|
|
3761
3703
|
positionalArgs: [],
|
|
3762
3704
|
namedArgs: {
|
|
3763
|
-
file: __readStatic(POLICY_PATH, "POLICY_PATH", "/Users/
|
|
3764
|
-
fields: __readStatic(ALWAYS_FIELDS, "ALWAYS_FIELDS", "/Users/
|
|
3705
|
+
file: __readStatic(POLICY_PATH, "POLICY_PATH", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/config.agency"),
|
|
3706
|
+
fields: __readStatic(ALWAYS_FIELDS, "ALWAYS_FIELDS", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/config.agency")
|
|
3765
3707
|
}
|
|
3766
3708
|
}));
|
|
3767
3709
|
return;
|
|
@@ -3777,10 +3719,7 @@ Current working directory: ${await __call(cwd, {
|
|
|
3777
3719
|
if (__error instanceof RestoreSignal) {
|
|
3778
3720
|
throw __error;
|
|
3779
3721
|
}
|
|
3780
|
-
if (__error instanceof
|
|
3781
|
-
throw __error;
|
|
3782
|
-
}
|
|
3783
|
-
if (__isAbortError(__error)) {
|
|
3722
|
+
if (__error instanceof AgencyAbort) {
|
|
3784
3723
|
throw __error;
|
|
3785
3724
|
}
|
|
3786
3725
|
{
|
|
@@ -3938,10 +3877,7 @@ async function __oneShotAgent_impl(target, prompt) {
|
|
|
3938
3877
|
if (__error instanceof RestoreSignal) {
|
|
3939
3878
|
throw __error;
|
|
3940
3879
|
}
|
|
3941
|
-
if (__error instanceof
|
|
3942
|
-
throw __error;
|
|
3943
|
-
}
|
|
3944
|
-
if (__isAbortError(__error)) {
|
|
3880
|
+
if (__error instanceof AgencyAbort) {
|
|
3945
3881
|
throw __error;
|
|
3946
3882
|
}
|
|
3947
3883
|
{
|
|
@@ -4136,10 +4072,7 @@ async function ___runSeedTurn_impl(target, msg) {
|
|
|
4136
4072
|
if (__error instanceof RestoreSignal) {
|
|
4137
4073
|
throw __error;
|
|
4138
4074
|
}
|
|
4139
|
-
if (__error instanceof
|
|
4140
|
-
throw __error;
|
|
4141
|
-
}
|
|
4142
|
-
if (__isAbortError(__error)) {
|
|
4075
|
+
if (__error instanceof AgencyAbort) {
|
|
4143
4076
|
throw __error;
|
|
4144
4077
|
}
|
|
4145
4078
|
{
|
|
@@ -4291,7 +4224,7 @@ async function __startInteractive_impl(handler, seedTarget, seedPrompt) {
|
|
|
4291
4224
|
status: _buildStatus,
|
|
4292
4225
|
onSubmit: _runTurn,
|
|
4293
4226
|
prompt: `> `,
|
|
4294
|
-
historyFile: __readStatic(HISTORY_PATH, "HISTORY_PATH", "/Users/
|
|
4227
|
+
historyFile: __readStatic(HISTORY_PATH, "HISTORY_PATH", "/Users/adityabhargava/agency-lang/packages/agency-lang/dist/lib/agents/agency-agent/lib/config.agency"),
|
|
4295
4228
|
historyMax: 1e3,
|
|
4296
4229
|
paletteCommands: await __call(mergedPalette, {
|
|
4297
4230
|
type: "positional",
|
|
@@ -4335,10 +4268,7 @@ Goodbye!`]
|
|
|
4335
4268
|
if (__error instanceof RestoreSignal) {
|
|
4336
4269
|
throw __error;
|
|
4337
4270
|
}
|
|
4338
|
-
if (__error instanceof
|
|
4339
|
-
throw __error;
|
|
4340
|
-
}
|
|
4341
|
-
if (__isAbortError(__error)) {
|
|
4271
|
+
if (__error instanceof AgencyAbort) {
|
|
4342
4272
|
throw __error;
|
|
4343
4273
|
}
|
|
4344
4274
|
{
|
|
@@ -4474,7 +4404,7 @@ graph.node("main", async (__state) => {
|
|
|
4474
4404
|
},
|
|
4475
4405
|
"provider": {
|
|
4476
4406
|
"type": `string`,
|
|
4477
|
-
"description": `Force the LLM provider (
|
|
4407
|
+
"description": `Force the LLM provider. Given alone (openai/anthropic/google) it selects that provider's default models and skips env auto-detection; pair it with --model for a custom/local model name`
|
|
4478
4408
|
},
|
|
4479
4409
|
"interactive": {
|
|
4480
4410
|
"type": `boolean`,
|
|
@@ -4847,10 +4777,7 @@ graph.node("main", async (__state) => {
|
|
|
4847
4777
|
if (__error instanceof RestoreSignal) {
|
|
4848
4778
|
throw __error;
|
|
4849
4779
|
}
|
|
4850
|
-
if (__error instanceof
|
|
4851
|
-
throw __error;
|
|
4852
|
-
}
|
|
4853
|
-
if (__isAbortError(__error)) {
|
|
4780
|
+
if (__error instanceof AgencyAbort) {
|
|
4854
4781
|
throw __error;
|
|
4855
4782
|
}
|
|
4856
4783
|
{
|
|
@@ -4899,9 +4826,10 @@ Agent crashed: ${__error.message}`);
|
|
|
4899
4826
|
}
|
|
4900
4827
|
}
|
|
4901
4828
|
var stdin_default = graph;
|
|
4902
|
-
const __sourceMap = { "dist/lib/agents/agency-agent/agent.agency:__cb_top_0": { "1": { "line": 97, "col": 2 }, "1.0": { "line": 98, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:__cb_top_1": { "1": { "line": 103, "col": 2 }, "1.0.0": { "line": 104, "col": 4 }, "1.0.1": { "line": 105, "col": 6 }, "1.0.2": { "line": 106, "col": 11 }, "1.0.3": { "line": 107, "col": 6 }, "1.0.4": { "line": 109, "col": 6 }, "1.0": { "line": 104, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:__cb_top_2": { "1": { "line": 115, "col": 2 }, "1.0": { "line": 116, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:__cb_top_3": { "1": { "line": 121, "col": 2 }, "1.0": { "line": 122, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:_showTraces": { "1": { "line": 93, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:renderLLMCallResponse": { "1": { "line": 142, "col": 2 }, "2": { "line": 143, "col": 2 }, "3": { "line": 146, "col": 2 }, "5": { "line": 151, "col": 2 }, "2.0": { "line": 144, "col": 4 }, "3.0.0": { "line": 148, "col": 6 }, "3.0": { "line": 147, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:loadAgentsMd": { "1": { "line": 162, "col": 2 }, "2": { "line": 165, "col": 2 }, "
|
|
4829
|
+
const __sourceMap = { "dist/lib/agents/agency-agent/agent.agency:__cb_top_0": { "1": { "line": 97, "col": 2 }, "1.0": { "line": 98, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:__cb_top_1": { "1": { "line": 103, "col": 2 }, "1.0.0": { "line": 104, "col": 4 }, "1.0.1": { "line": 105, "col": 6 }, "1.0.2": { "line": 106, "col": 11 }, "1.0.3": { "line": 107, "col": 6 }, "1.0.4": { "line": 109, "col": 6 }, "1.0": { "line": 104, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:__cb_top_2": { "1": { "line": 115, "col": 2 }, "1.0": { "line": 116, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:__cb_top_3": { "1": { "line": 121, "col": 2 }, "1.0": { "line": 122, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:_showTraces": { "1": { "line": 93, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:renderLLMCallResponse": { "1": { "line": 142, "col": 2 }, "2": { "line": 143, "col": 2 }, "3": { "line": 146, "col": 2 }, "5": { "line": 151, "col": 2 }, "2.0": { "line": 144, "col": 4 }, "3.0.0": { "line": 148, "col": 6 }, "3.0": { "line": 147, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:loadAgentsMd": { "1": { "line": 162, "col": 2 }, "2": { "line": 165, "col": 2 }, "3": { "line": 166, "col": 2 }, "4": { "line": 169, "col": 2 }, "1.0": { "line": 163, "col": 4 }, "2.0": { "line": 165, "col": 2 }, "3.0": { "line": 167, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:builtinPalette": { "1": { "line": 183, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:mergedPalette": { "1": { "line": 195, "col": 2 }, "2": { "line": 196, "col": 2 }, "3": { "line": 203, "col": 2 }, "4": { "line": 204, "col": 2 }, "5": { "line": 207, "col": 2 }, "2.0": { "line": 197, "col": 4 }, "2.1.0": { "line": 199, "col": 6 }, "2.1": { "line": 198, "col": 4 }, "2.2": { "line": 201, "col": 4 }, "4.0": { "line": 205, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:_runTurn": { "2": { "line": 218, "col": 2 }, "3": { "line": 219, "col": 2 }, "4": { "line": 222, "col": 2 }, "5": { "line": 225, "col": 2 }, "7": { "line": 229, "col": 2 }, "9": { "line": 233, "col": 2 }, "11": { "line": 261, "col": 2 }, "12": { "line": 262, "col": 2 }, "14": { "line": 267, "col": 2 }, "3.0": { "line": 220, "col": 4 }, "4.0": { "line": 223, "col": 4 }, "5.0": { "line": 226, "col": 4 }, "5.1": { "line": 227, "col": 4 }, "7.0": { "line": 230, "col": 4 }, "7.1": { "line": 231, "col": 4 }, "9.1": { "line": 241, "col": 4 }, "9.2": { "line": 242, "col": 4 }, "9.3": { "line": 243, "col": 4 }, "9.4.0": { "line": 245, "col": 6 }, "9.4.1": { "line": 246, "col": 6 }, "9.4": { "line": 244, "col": 4 }, "9.5": { "line": 248, "col": 4 }, "9.6": { "line": 249, "col": 4 }, "9.7.0": { "line": 251, "col": 6 }, "9.7.1": { "line": 252, "col": 6 }, "9.7.2.0": { "line": 254, "col": 8 }, "9.7.2": { "line": 253, "col": 6 }, "9.7": { "line": 250, "col": 4 }, "9.9": { "line": 257, "col": 4 }, "12.0": { "line": 263, "col": 4 }, "12.1": { "line": 265, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:mainAgent": { "1": { "line": 450, "col": 2 }, "3": { "line": 464, "col": 2 }, "1.0": { "line": 451, "col": 4 }, "1.1.1": { "line": 456, "col": 6 }, "1.1.2": { "line": 457, "col": 6 }, "1.1": { "line": 452, "col": 4 }, "1.3": { "line": 459, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:agentReplyVia": { "1": { "line": 473, "col": 2 }, "2": { "line": 474, "col": 2 }, "4": { "line": 477, "col": 2 }, "6": { "line": 480, "col": 2 }, "8": { "line": 483, "col": 2 }, "10": { "line": 486, "col": 2 }, "12": { "line": 489, "col": 2 }, "2.0": { "line": 475, "col": 4 }, "4.0": { "line": 478, "col": 4 }, "6.0": { "line": 481, "col": 4 }, "8.0": { "line": 484, "col": 4 }, "10.0": { "line": 487, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:agentReply": { "1": { "line": 499, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:roundedCost": { "1": { "line": 503, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:_buildStatus": { "1": { "line": 507, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:sample": { "1": { "line": 515, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:printHeader": { "1": { "line": 519, "col": 2 }, "2": { "line": 520, "col": 2 }, "3": { "line": 542, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:__block_0": { "2.0": { "line": 527, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:__block_1": { "2.0.0": { "line": 528, "col": 6 }, "2.0.1": { "line": 536, "col": 6 }, "2.0.2": { "line": 537, "col": 6 } }, "dist/lib/agents/agency-agent/agent.agency:__block_2": { "2.0.0.0": { "line": 529, "col": 8 }, "2.0.0.1": { "line": 530, "col": 8 }, "2.0.0.2": { "line": 531, "col": 8 }, "2.0.0.3": { "line": 532, "col": 8 }, "2.0.0.4": { "line": 533, "col": 8 }, "2.0.0.5": { "line": 534, "col": 8 } }, "dist/lib/agents/agency-agent/agent.agency:__block_3": { "2.0.2.0": { "line": 538, "col": 8 } }, "dist/lib/agents/agency-agent/agent.agency:givePolicyChoice": { "1": { "line": 546, "col": 2 }, "2": { "line": 547, "col": 2 }, "3": { "line": 548, "col": 2 }, "4": { "line": 559, "col": 2 }, "5": { "line": 560, "col": 2 } }, "dist/lib/agents/agency-agent/agent.agency:setupSession": { "2": { "line": 578, "col": 2 }, "3": { "line": 583, "col": 2 }, "4": { "line": 584, "col": 2 }, "5": { "line": 586, "col": 2 }, "6": { "line": 587, "col": 2 }, "8": { "line": 604, "col": 2 }, "3.0": { "line": 583, "col": 2 }, "6.0": { "line": 587, "col": 2 }, "6.1.0.0": { "line": 590, "col": 8 }, "6.1.0.1": { "line": 591, "col": 8 }, "6.1.0.2": { "line": 593, "col": 8 }, "6.1.0": { "line": 589, "col": 6 }, "6.1.2": { "line": 596, "col": 6 }, "6.1.3": { "line": 597, "col": 6 }, "6.1": { "line": 588, "col": 4 }, "6.3": { "line": 600, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:oneShotAgent": { "1": { "line": 614, "col": 2 }, "2": { "line": 615, "col": 2 }, "3": { "line": 616, "col": 2 }, "4": { "line": 617, "col": 2 }, "5": { "line": 622, "col": 2 }, "4.0": { "line": 618, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:_runSeedTurn": { "1": { "line": 629, "col": 2 }, "2": { "line": 630, "col": 2 }, "3": { "line": 631, "col": 2 }, "3.0": { "line": 632, "col": 4 }, "3.1": { "line": 634, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:startInteractive": { "1": { "line": 645, "col": 2 }, "3": { "line": 660, "col": 2 }, "1.0.0": { "line": 647, "col": 6 }, "1.0": { "line": 646, "col": 4 }, "1.1": { "line": 649, "col": 4 } }, "dist/lib/agents/agency-agent/agent.agency:main": { "2": { "line": 666, "col": 2 }, "3": { "line": 714, "col": 2 }, "4": { "line": 717, "col": 2 }, "6": { "line": 728, "col": 2 }, "7": { "line": 738, "col": 2 }, "8": { "line": 739, "col": 2 }, "9": { "line": 740, "col": 2 }, "10": { "line": 741, "col": 2 }, "11": { "line": 744, "col": 2 }, "13": { "line": 759, "col": 2 }, "15": { "line": 778, "col": 2 }, "16": { "line": 779, "col": 2 }, "18": { "line": 797, "col": 2 }, "19": { "line": 798, "col": 2 }, "20": { "line": 799, "col": 2 }, "21": { "line": 800, "col": 2 }, "22": { "line": 801, "col": 2 }, "3.0": { "line": 715, "col": 4 }, "4.0": { "line": 718, "col": 4 }, "11.0": { "line": 745, "col": 4 }, "11.1": { "line": 750, "col": 4 }, "13.0": { "line": 760, "col": 4 }, "13.1": { "line": 761, "col": 4 }, "13.2": { "line": 762, "col": 4 }, "13.3": { "line": 763, "col": 4 }, "13.4": { "line": 764, "col": 4 }, "13.5": { "line": 765, "col": 4 }, "16.0": { "line": 780, "col": 4 }, "16.1.0": { "line": 782, "col": 6 }, "16.1.1.0": { "line": 784, "col": 8 }, "16.1.1": { "line": 783, "col": 6 }, "16.1.2": { "line": 786, "col": 6 }, "16.1": { "line": 781, "col": 4 }, "16.2": { "line": 788, "col": 4 }, "16.3": { "line": 789, "col": 4 } } };
|
|
4903
4830
|
export {
|
|
4904
4831
|
__getCheckpoints,
|
|
4832
|
+
__invokeFunction,
|
|
4905
4833
|
__mainNodeParams,
|
|
4906
4834
|
__setDebugger,
|
|
4907
4835
|
__setLLMClient,
|