@garuda-agent/garuda 0.14.1 → 0.16.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.
- package/CHANGELOG.md +49 -1
- package/README.md +78 -8
- package/dist/acpCommand-AJJBKAE5.js +191 -0
- package/dist/chunk-23FXBNBB.js +46 -0
- package/dist/chunk-3EQU2GUX.js +27 -0
- package/dist/{chunk-YIZWYUBG.js → chunk-44QN5SWZ.js} +2 -2
- package/dist/chunk-4JSUUDFQ.js +118 -0
- package/dist/{chunk-KWRJREUH.js → chunk-B25VL4RU.js} +1 -42
- package/dist/{chunk-U4OQVT2T.js → chunk-B6FA4I7Q.js} +2 -2
- package/dist/chunk-EIXUSVFX.js +116 -0
- package/dist/{chunk-YM6T4J5V.js → chunk-ENLDPN4S.js} +8 -111
- package/dist/{chunk-D5O5CIWK.js → chunk-GXZACJUI.js} +8 -25
- package/dist/{chunk-QOW5TK4L.js → chunk-HE2K657U.js} +9 -7
- package/dist/chunk-NP6RIC25.js +331 -0
- package/dist/chunk-NXJ4XLB5.js +19 -0
- package/dist/chunk-R7I2NBPX.js +71 -0
- package/dist/{chunk-ZGZ2ZADL.js → chunk-TUUEBHG2.js} +2 -2
- package/dist/{chunk-W7BPYQMW.js → chunk-ULAJPMY7.js} +1 -67
- package/dist/{chunk-35GMLLJW.js → chunk-USCUXCAU.js} +2 -2
- package/dist/{chunk-ITITLNAR.js → chunk-WIJL72ZE.js} +150 -234
- package/dist/chunk-XOK5OZOC.js +9 -0
- package/dist/cli/index.js +68 -39
- package/dist/{create-Y5SXJUXO.js → create-VXIH2GUZ.js} +6 -5
- package/dist/{evalCommand-5TG2CKZY.js → evalCommand-OX2LQYEK.js} +35 -18
- package/dist/{inkChat-3J26R24L.js → inkChat-YMMMGU7Y.js} +16 -10
- package/dist/{install-XWLU22OH.js → install-EWDSPFFZ.js} +4 -3
- package/dist/{jobCommand-IYWZWTSI.js → jobCommand-ACSGSBQ4.js} +9 -7
- package/dist/{launchd-2FL5UN2U.js → launchd-SSX362VG.js} +5 -4
- package/dist/{lspCommand-TJEZBV2E.js → lspCommand-JRXKRSL7.js} +4 -3
- package/dist/{manager-EBTYO2GR.js → manager-AWU4NHHK.js} +4 -3
- package/dist/{nightCommand-DUNWJASI.js → nightCommand-65MUEV32.js} +9 -7
- package/dist/{remove-AENULZZE.js → remove-6GDSTAIO.js} +4 -3
- package/dist/{run-66Y6R2KU.js → run-ML6GSPN4.js} +5 -3
- package/dist/server-KHHNHUYV.js +694 -0
- package/dist/setupCommand-VA7D5MZK.js +303 -0
- package/package.json +2 -1
- package/dist/chunk-6TWBYMY7.js +0 -9
- package/dist/chunk-V7WPGQLB.js +0 -207
package/dist/cli/index.js
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
AutoApprover,
|
|
4
|
-
hasProviderKey,
|
|
5
|
-
keepProviderKey,
|
|
6
|
-
loadModelsConfig,
|
|
7
|
-
resolveModel
|
|
8
|
-
} from "../chunk-V7WPGQLB.js";
|
|
9
|
-
import {
|
|
10
|
-
Notifier,
|
|
11
|
-
pickChannel
|
|
12
|
-
} from "../chunk-N4I6YS3E.js";
|
|
13
2
|
import {
|
|
14
3
|
BUILD_PROMPT,
|
|
15
4
|
CommandArgs,
|
|
16
5
|
FOCUS_REPORTING_OFF,
|
|
17
6
|
FocusTracker,
|
|
18
|
-
SwitchApprover,
|
|
19
|
-
TerminalApprover,
|
|
20
7
|
commandNames,
|
|
21
8
|
complete,
|
|
22
9
|
describeError,
|
|
@@ -28,10 +15,21 @@ import {
|
|
|
28
15
|
runCommand,
|
|
29
16
|
runTurnInTerminal,
|
|
30
17
|
stopMessage
|
|
31
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-ENLDPN4S.js";
|
|
32
19
|
import {
|
|
33
20
|
PlainRenderer
|
|
34
21
|
} from "../chunk-FARS4R67.js";
|
|
22
|
+
import {
|
|
23
|
+
AutoApprover
|
|
24
|
+
} from "../chunk-NXJ4XLB5.js";
|
|
25
|
+
import {
|
|
26
|
+
Notifier,
|
|
27
|
+
pickChannel
|
|
28
|
+
} from "../chunk-N4I6YS3E.js";
|
|
29
|
+
import {
|
|
30
|
+
SwitchApprover,
|
|
31
|
+
TerminalApprover
|
|
32
|
+
} from "../chunk-4JSUUDFQ.js";
|
|
35
33
|
import {
|
|
36
34
|
DEFAULT_MAX_TOKENS,
|
|
37
35
|
FileSessionStore,
|
|
@@ -48,18 +46,30 @@ import {
|
|
|
48
46
|
redoPoint,
|
|
49
47
|
runAgent,
|
|
50
48
|
signature
|
|
51
|
-
} from "../chunk-
|
|
52
|
-
import "../chunk-A2QAIRQL.js";
|
|
53
|
-
import "../chunk-W7BPYQMW.js";
|
|
49
|
+
} from "../chunk-WIJL72ZE.js";
|
|
54
50
|
import "../chunk-G2AX7MGS.js";
|
|
51
|
+
import "../chunk-A2QAIRQL.js";
|
|
52
|
+
import "../chunk-ULAJPMY7.js";
|
|
53
|
+
import {
|
|
54
|
+
NO_MODEL,
|
|
55
|
+
chooseModel,
|
|
56
|
+
keepProviderKeys,
|
|
57
|
+
loadModelsConfig,
|
|
58
|
+
providerKeySource,
|
|
59
|
+
resolveModel
|
|
60
|
+
} from "../chunk-NP6RIC25.js";
|
|
61
|
+
import "../chunk-EIXUSVFX.js";
|
|
62
|
+
import "../chunk-R7I2NBPX.js";
|
|
55
63
|
import {
|
|
56
|
-
BUILTIN_COMMANDS,
|
|
57
64
|
loadSearchConfig
|
|
58
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-B25VL4RU.js";
|
|
66
|
+
import {
|
|
67
|
+
BUILTIN_COMMANDS
|
|
68
|
+
} from "../chunk-23FXBNBB.js";
|
|
59
69
|
import "../chunk-EU7PA45O.js";
|
|
60
70
|
import {
|
|
61
71
|
VERSION
|
|
62
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-XOK5OZOC.js";
|
|
63
73
|
import "../chunk-5DEWP3YX.js";
|
|
64
74
|
import "../chunk-ZAE25JM2.js";
|
|
65
75
|
import "../chunk-ATW7BNIG.js";
|
|
@@ -67,8 +77,9 @@ import "../chunk-PZS3V6P3.js";
|
|
|
67
77
|
import "../chunk-OUCV3FCT.js";
|
|
68
78
|
import {
|
|
69
79
|
JOB_DENIAL
|
|
70
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-GXZACJUI.js";
|
|
71
81
|
import "../chunk-WMOLXTBU.js";
|
|
82
|
+
import "../chunk-3EQU2GUX.js";
|
|
72
83
|
import "../chunk-HUIK3WXO.js";
|
|
73
84
|
import "../chunk-KKB5W47S.js";
|
|
74
85
|
import "../chunk-3NJNVZTK.js";
|
|
@@ -761,7 +772,7 @@ async function main() {
|
|
|
761
772
|
"--test-command <cmd>",
|
|
762
773
|
"with --from-git: the test command; {files} takes the test files (default: detected)"
|
|
763
774
|
).action(async (options) => {
|
|
764
|
-
const { runEvalCommand } = await import("../evalCommand-
|
|
775
|
+
const { runEvalCommand } = await import("../evalCommand-OX2LQYEK.js");
|
|
765
776
|
process.exitCode = await runEvalCommand({
|
|
766
777
|
...options,
|
|
767
778
|
model: options.model ?? process.env.GARUDA_MODEL,
|
|
@@ -783,15 +794,30 @@ async function main() {
|
|
|
783
794
|
program.command("night").description(
|
|
784
795
|
"run this project's night queue (jobs from /schedule), up to 3 at a time, then write one digest"
|
|
785
796
|
).option("--at <HH:MM>", "wait until this local time first (keep the terminal open)").option("--parallel <n>", "jobs at the same time (1 to 10, default 3)").addOption(new Option("--from-launchd").hideHelp()).action(async (options) => {
|
|
786
|
-
const { nightCommand } = await import("../nightCommand-
|
|
797
|
+
const { nightCommand } = await import("../nightCommand-65MUEV32.js");
|
|
787
798
|
process.exitCode = await nightCommand(options, new PlainRenderer());
|
|
788
799
|
});
|
|
800
|
+
program.command("setup").description(
|
|
801
|
+
"choose a provider and model and store its key (~/.garuda/credentials, only you can read it); editors run it to sign in"
|
|
802
|
+
).option("--show", "show the model and where each key comes from (keys masked)").option("--forget [key-name]", "remove a stored key, or all of them").action(async (options) => {
|
|
803
|
+
const { setupCommand, terminalIO } = await import("../setupCommand-VA7D5MZK.js");
|
|
804
|
+
process.exitCode = await setupCommand(options, { io: await terminalIO() });
|
|
805
|
+
});
|
|
806
|
+
program.command("acp").description(
|
|
807
|
+
"run as an agent for an editor over the Agent Client Protocol (VS Code with an extension, Zed, JetBrains, Neovim, Emacs); the editor starts it"
|
|
808
|
+
).argument("[action]", "setup: run garuda setup (the editor's sign-in, ACP Terminal Auth)").option("-m, --model <id>", "model id (or set GARUDA_MODEL)").action(async (action, options) => {
|
|
809
|
+
const { acpCommand } = await import("../acpCommand-AJJBKAE5.js");
|
|
810
|
+
process.exitCode = await acpCommand({
|
|
811
|
+
...options,
|
|
812
|
+
...action === void 0 ? {} : { action }
|
|
813
|
+
});
|
|
814
|
+
});
|
|
789
815
|
const lsp = program.command("lsp").description("show the language servers for diagnostics (TS/JS, Python, Java)").action(async () => {
|
|
790
|
-
const { lspStatusCommand } = await import("../lspCommand-
|
|
816
|
+
const { lspStatusCommand } = await import("../lspCommand-JRXKRSL7.js");
|
|
791
817
|
process.exitCode = await lspStatusCommand();
|
|
792
818
|
});
|
|
793
819
|
lsp.command("install").description("install a pinned language server into ~/.garuda/lsp (needs the network)").argument("<language>", "typescript, python or java").action(async (language) => {
|
|
794
|
-
const { lspInstallCommand } = await import("../lspCommand-
|
|
820
|
+
const { lspInstallCommand } = await import("../lspCommand-JRXKRSL7.js");
|
|
795
821
|
process.exitCode = await lspInstallCommand(language);
|
|
796
822
|
});
|
|
797
823
|
await program.parseAsync();
|
|
@@ -803,7 +829,7 @@ async function start(options, program) {
|
|
|
803
829
|
let job;
|
|
804
830
|
let jobGuard;
|
|
805
831
|
if (options.job !== void 0) {
|
|
806
|
-
const { prepareJob } = await import("../jobCommand-
|
|
832
|
+
const { prepareJob } = await import("../jobCommand-ACSGSBQ4.js");
|
|
807
833
|
const prepared = await prepareJob(
|
|
808
834
|
mainRoot,
|
|
809
835
|
options.job,
|
|
@@ -836,10 +862,10 @@ async function start(options, program) {
|
|
|
836
862
|
if (format !== "text" && prompt === void 0) {
|
|
837
863
|
program.error(`--output-format ${format} needs a task: use -p "task" or give it on stdin.`);
|
|
838
864
|
}
|
|
839
|
-
const spec = options.model ?? job?.job.model ?? process.env.GARUDA_MODEL;
|
|
840
|
-
if (!spec) program.error("Set a model with --model <id> or the GARUDA_MODEL variable.");
|
|
841
865
|
const models = await loadModelsConfig();
|
|
842
866
|
if (models.problem !== void 0) program.error(models.problem);
|
|
867
|
+
const spec = chooseModel(models.config, options.model, job?.job.model, process.env.GARUDA_MODEL);
|
|
868
|
+
if (!spec) program.error(NO_MODEL);
|
|
843
869
|
let resolved;
|
|
844
870
|
try {
|
|
845
871
|
resolved = resolveModel(spec, models.config);
|
|
@@ -857,10 +883,12 @@ async function start(options, program) {
|
|
|
857
883
|
}
|
|
858
884
|
}
|
|
859
885
|
const searchConfig = await loadSearchConfig();
|
|
860
|
-
const
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
886
|
+
const credentialsWarning = await keepProviderKeys([
|
|
887
|
+
resolved.def.apiKeyEnv,
|
|
888
|
+
sub?.def.apiKeyEnv,
|
|
889
|
+
"ANTHROPIC_API_KEY"
|
|
890
|
+
]);
|
|
891
|
+
const anthropicKey = providerKeySource("ANTHROPIC_API_KEY");
|
|
864
892
|
const { loadTeamPolicy } = await import("../policy-EJPLEEXP.js");
|
|
865
893
|
let team;
|
|
866
894
|
try {
|
|
@@ -958,7 +986,7 @@ async function start(options, program) {
|
|
|
958
986
|
job.job.status = "failed";
|
|
959
987
|
await saveJob(job.job);
|
|
960
988
|
if (options.fromLaunchd === true || job.job.launchd !== void 0) {
|
|
961
|
-
const { removeAgent, defaultAgentEnv } = await import("../launchd-
|
|
989
|
+
const { removeAgent, defaultAgentEnv } = await import("../launchd-SSX362VG.js");
|
|
962
990
|
await removeAgent(runtime.executor, job.job, defaultAgentEnv());
|
|
963
991
|
}
|
|
964
992
|
return 1;
|
|
@@ -975,6 +1003,7 @@ async function start(options, program) {
|
|
|
975
1003
|
);
|
|
976
1004
|
}
|
|
977
1005
|
for (const note of resolved.notes) renderer.info(note);
|
|
1006
|
+
if (credentialsWarning !== void 0) renderer.warn(credentialsWarning);
|
|
978
1007
|
if (runtime.price === void 0) {
|
|
979
1008
|
renderer.warn(
|
|
980
1009
|
`Garuda has no price for ${modelId}. Set "price" for it in ~/.garuda/models.json to see cost.`
|
|
@@ -1002,7 +1031,7 @@ async function start(options, program) {
|
|
|
1002
1031
|
],
|
|
1003
1032
|
skills: runtime.skills.map((k) => k.name),
|
|
1004
1033
|
agents: runtime.agents.map((a) => a.name),
|
|
1005
|
-
apiKeySource:
|
|
1034
|
+
apiKeySource: modelId.includes("/") || anthropicKey === void 0 ? "none" : anthropicKey === "file" ? "credentials" : "ANTHROPIC_API_KEY"
|
|
1006
1035
|
})
|
|
1007
1036
|
});
|
|
1008
1037
|
if (output !== void 0) events = output;
|
|
@@ -1028,7 +1057,7 @@ async function start(options, program) {
|
|
|
1028
1057
|
if (resolved2.kind === "prompt") prompt = resolved2.prompt;
|
|
1029
1058
|
}
|
|
1030
1059
|
if (job !== void 0) {
|
|
1031
|
-
const { testsBefore } = await import("../jobCommand-
|
|
1060
|
+
const { testsBefore } = await import("../jobCommand-ACSGSBQ4.js");
|
|
1032
1061
|
await testsBefore(job, runtime, renderer);
|
|
1033
1062
|
}
|
|
1034
1063
|
const outcome = await runTurnInTerminal(
|
|
@@ -1041,7 +1070,7 @@ async function start(options, program) {
|
|
|
1041
1070
|
await runtime.close();
|
|
1042
1071
|
finish(outcome);
|
|
1043
1072
|
if (job !== void 0) {
|
|
1044
|
-
const { finishJob } = await import("../jobCommand-
|
|
1073
|
+
const { finishJob } = await import("../jobCommand-ACSGSBQ4.js");
|
|
1045
1074
|
await finishJob(job, outcome, runtime, renderer, void 0, {
|
|
1046
1075
|
fromLaunchd: options.fromLaunchd === true
|
|
1047
1076
|
});
|
|
@@ -1127,7 +1156,7 @@ function wantsInk() {
|
|
|
1127
1156
|
}
|
|
1128
1157
|
async function loadInk(renderer) {
|
|
1129
1158
|
try {
|
|
1130
|
-
return await import("../inkChat-
|
|
1159
|
+
return await import("../inkChat-YMMMGU7Y.js");
|
|
1131
1160
|
} catch (error) {
|
|
1132
1161
|
renderer.info(`Plain chat (Ink is not available: ${error.message.split("\n")[0]}).`);
|
|
1133
1162
|
return void 0;
|
|
@@ -1159,8 +1188,8 @@ function recordJobDenial(job, tool, target) {
|
|
|
1159
1188
|
}
|
|
1160
1189
|
async function jobBatchClient(job, resolved, renderer) {
|
|
1161
1190
|
const { DeadlineClient } = await import("../deadline-F5RJJ2QW.js");
|
|
1162
|
-
const { nextTime } = await import("../launchd-
|
|
1163
|
-
const { DEFAULT_FINISH_BY, DEFAULT_STEP_LIMIT_MINUTES, SWITCH_BEFORE_MS } = await import("../create-
|
|
1191
|
+
const { nextTime } = await import("../launchd-SSX362VG.js");
|
|
1192
|
+
const { DEFAULT_FINISH_BY, DEFAULT_STEP_LIMIT_MINUTES, SWITCH_BEFORE_MS } = await import("../create-VXIH2GUZ.js");
|
|
1164
1193
|
const finishBy = job.job.finishBy ?? DEFAULT_FINISH_BY;
|
|
1165
1194
|
const stepLimit = job.job.stepLimitMinutes ?? DEFAULT_STEP_LIMIT_MINUTES;
|
|
1166
1195
|
const switchAt = new Date(nextTime(finishBy).getTime() - SWITCH_BEFORE_MS);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
jobBase,
|
|
4
4
|
linkCandidates,
|
|
5
5
|
worktreeDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-44QN5SWZ.js";
|
|
7
7
|
import {
|
|
8
8
|
agentLabel,
|
|
9
9
|
defaultAgentEnv,
|
|
@@ -12,16 +12,17 @@ import {
|
|
|
12
12
|
nextTime,
|
|
13
13
|
nightAgentTime,
|
|
14
14
|
nightSpec
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-USCUXCAU.js";
|
|
16
16
|
import {
|
|
17
17
|
jobPrompt
|
|
18
18
|
} from "./chunk-YQTGMCU6.js";
|
|
19
19
|
import "./chunk-OUCV3FCT.js";
|
|
20
20
|
import {
|
|
21
21
|
JobGitError
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-TUUEBHG2.js";
|
|
23
|
+
import "./chunk-GXZACJUI.js";
|
|
24
24
|
import "./chunk-WMOLXTBU.js";
|
|
25
|
+
import "./chunk-3EQU2GUX.js";
|
|
25
26
|
import "./chunk-HUIK3WXO.js";
|
|
26
27
|
import {
|
|
27
28
|
DEFAULT_JOB_MAX_STEPS,
|
|
@@ -220,4 +221,4 @@ export {
|
|
|
220
221
|
createJob,
|
|
221
222
|
switchTime
|
|
222
223
|
};
|
|
223
|
-
//# sourceMappingURL=create-
|
|
224
|
+
//# sourceMappingURL=create-VXIH2GUZ.js.map
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
AutoApprover
|
|
4
|
-
|
|
5
|
-
resolveModel
|
|
6
|
-
} from "./chunk-V7WPGQLB.js";
|
|
3
|
+
AutoApprover
|
|
4
|
+
} from "./chunk-NXJ4XLB5.js";
|
|
7
5
|
import {
|
|
8
6
|
CODE_INDEX_MODES,
|
|
9
7
|
DEFAULT_CODE_INDEX_MODE,
|
|
@@ -11,14 +9,24 @@ import {
|
|
|
11
9
|
Runtime,
|
|
12
10
|
detectProfiles,
|
|
13
11
|
newSessionId
|
|
14
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WIJL72ZE.js";
|
|
13
|
+
import "./chunk-G2AX7MGS.js";
|
|
15
14
|
import "./chunk-A2QAIRQL.js";
|
|
15
|
+
import "./chunk-ULAJPMY7.js";
|
|
16
|
+
import {
|
|
17
|
+
NO_MODEL,
|
|
18
|
+
chooseModel,
|
|
19
|
+
keepProviderKeys,
|
|
20
|
+
loadModelsConfig,
|
|
21
|
+
resolveModel
|
|
22
|
+
} from "./chunk-NP6RIC25.js";
|
|
23
|
+
import "./chunk-EIXUSVFX.js";
|
|
16
24
|
import {
|
|
17
25
|
totalTokens
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-R7I2NBPX.js";
|
|
27
|
+
import "./chunk-B25VL4RU.js";
|
|
28
|
+
import "./chunk-23FXBNBB.js";
|
|
29
|
+
import "./chunk-XOK5OZOC.js";
|
|
22
30
|
import "./chunk-5DEWP3YX.js";
|
|
23
31
|
import "./chunk-ZAE25JM2.js";
|
|
24
32
|
import "./chunk-ATW7BNIG.js";
|
|
@@ -26,7 +34,7 @@ import "./chunk-PZS3V6P3.js";
|
|
|
26
34
|
import {
|
|
27
35
|
LINK_CANDIDATES,
|
|
28
36
|
cleanArgs
|
|
29
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-44QN5SWZ.js";
|
|
30
38
|
import {
|
|
31
39
|
MANIFEST,
|
|
32
40
|
TEST_PATH,
|
|
@@ -36,7 +44,7 @@ import {
|
|
|
36
44
|
import {
|
|
37
45
|
git,
|
|
38
46
|
shellWord
|
|
39
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-TUUEBHG2.js";
|
|
40
48
|
import {
|
|
41
49
|
DEFAULT_ENV_ALLOWLIST,
|
|
42
50
|
EXECUTOR_NAMES,
|
|
@@ -44,8 +52,9 @@ import {
|
|
|
44
52
|
createExecutor,
|
|
45
53
|
expandAllowlist,
|
|
46
54
|
parseSettings
|
|
47
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-GXZACJUI.js";
|
|
48
56
|
import "./chunk-WMOLXTBU.js";
|
|
57
|
+
import "./chunk-3EQU2GUX.js";
|
|
49
58
|
import "./chunk-HUIK3WXO.js";
|
|
50
59
|
import "./chunk-3NJNVZTK.js";
|
|
51
60
|
|
|
@@ -2419,14 +2428,15 @@ async function runEvalCommand(options) {
|
|
|
2419
2428
|
return 0;
|
|
2420
2429
|
}
|
|
2421
2430
|
if (options.prepare !== void 0) return prepare(options.prepare);
|
|
2422
|
-
const modelId = options.model;
|
|
2423
|
-
if (!modelId) {
|
|
2424
|
-
process.stderr.write("Set a model with --model <id> or the GARUDA_MODEL variable.\n");
|
|
2425
|
-
return 1;
|
|
2426
|
-
}
|
|
2427
2431
|
const models = await loadModelsConfig();
|
|
2428
2432
|
if (models.problem !== void 0) {
|
|
2429
2433
|
process.stderr.write(`${models.problem}
|
|
2434
|
+
`);
|
|
2435
|
+
return 1;
|
|
2436
|
+
}
|
|
2437
|
+
const modelId = chooseModel(models.config, options.model);
|
|
2438
|
+
if (!modelId) {
|
|
2439
|
+
process.stderr.write(`${NO_MODEL}
|
|
2430
2440
|
`);
|
|
2431
2441
|
return 1;
|
|
2432
2442
|
}
|
|
@@ -2543,6 +2553,13 @@ async function runEvalCommand(options) {
|
|
|
2543
2553
|
`);
|
|
2544
2554
|
return 1;
|
|
2545
2555
|
}
|
|
2556
|
+
const credentialsWarning = await keepProviderKeys([
|
|
2557
|
+
resolved.def.apiKeyEnv,
|
|
2558
|
+
sub?.def.apiKeyEnv,
|
|
2559
|
+
"ANTHROPIC_API_KEY"
|
|
2560
|
+
]);
|
|
2561
|
+
if (credentialsWarning !== void 0) process.stderr.write(`${credentialsWarning}
|
|
2562
|
+
`);
|
|
2546
2563
|
const suite = options.suite ?? "basic";
|
|
2547
2564
|
const suiteTasks = suite === "all" ? ALL_TASKS : suite === "repo" ? repoTasks : EVAL_SUITES[suite];
|
|
2548
2565
|
if (suiteTasks === void 0) {
|
|
@@ -2792,4 +2809,4 @@ export {
|
|
|
2792
2809
|
BATCH_TASK_TIMEOUT_MS,
|
|
2793
2810
|
runEvalCommand
|
|
2794
2811
|
};
|
|
2795
|
-
//# sourceMappingURL=evalCommand-
|
|
2812
|
+
//# sourceMappingURL=evalCommand-OX2LQYEK.js.map
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FOCUS_REPORTING_OFF,
|
|
4
4
|
FOCUS_REPORTING_ON,
|
|
5
|
-
colorPreview,
|
|
6
5
|
focusEvent,
|
|
7
6
|
fuzzyFiles,
|
|
8
|
-
header,
|
|
9
7
|
runChat,
|
|
10
8
|
statusOf
|
|
11
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ENLDPN4S.js";
|
|
12
10
|
import {
|
|
13
11
|
retryText,
|
|
14
12
|
serverToolOutput,
|
|
@@ -17,20 +15,28 @@ import {
|
|
|
17
15
|
summariseResult,
|
|
18
16
|
todoLines
|
|
19
17
|
} from "./chunk-FARS4R67.js";
|
|
20
|
-
import
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
import {
|
|
19
|
+
colorPreview,
|
|
20
|
+
header
|
|
21
|
+
} from "./chunk-4JSUUDFQ.js";
|
|
22
|
+
import "./chunk-WIJL72ZE.js";
|
|
23
23
|
import "./chunk-G2AX7MGS.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-A2QAIRQL.js";
|
|
25
|
+
import "./chunk-ULAJPMY7.js";
|
|
26
|
+
import "./chunk-EIXUSVFX.js";
|
|
27
|
+
import "./chunk-R7I2NBPX.js";
|
|
28
|
+
import "./chunk-B25VL4RU.js";
|
|
29
|
+
import "./chunk-23FXBNBB.js";
|
|
25
30
|
import "./chunk-EU7PA45O.js";
|
|
26
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-XOK5OZOC.js";
|
|
27
32
|
import "./chunk-5DEWP3YX.js";
|
|
28
33
|
import "./chunk-ZAE25JM2.js";
|
|
29
34
|
import "./chunk-ATW7BNIG.js";
|
|
30
35
|
import "./chunk-PZS3V6P3.js";
|
|
31
36
|
import "./chunk-OUCV3FCT.js";
|
|
32
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-GXZACJUI.js";
|
|
33
38
|
import "./chunk-WMOLXTBU.js";
|
|
39
|
+
import "./chunk-3EQU2GUX.js";
|
|
34
40
|
import "./chunk-HUIK3WXO.js";
|
|
35
41
|
import "./chunk-KKB5W47S.js";
|
|
36
42
|
import "./chunk-3NJNVZTK.js";
|
|
@@ -1187,4 +1193,4 @@ async function runInkChat(runtime, approver, setEventTarget, banner, sessionPath
|
|
|
1187
1193
|
export {
|
|
1188
1194
|
runInkChat
|
|
1189
1195
|
};
|
|
1190
|
-
//# sourceMappingURL=inkChat-
|
|
1196
|
+
//# sourceMappingURL=inkChat-YMMMGU7Y.js.map
|
|
@@ -3,10 +3,11 @@ import {
|
|
|
3
3
|
INSTALL_TIMEOUT_MS,
|
|
4
4
|
installCommand,
|
|
5
5
|
installServer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B6FA4I7Q.js";
|
|
7
7
|
import "./chunk-EU7PA45O.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-GXZACJUI.js";
|
|
9
9
|
import "./chunk-WMOLXTBU.js";
|
|
10
|
+
import "./chunk-3EQU2GUX.js";
|
|
10
11
|
import "./chunk-HUIK3WXO.js";
|
|
11
12
|
import "./chunk-3NJNVZTK.js";
|
|
12
13
|
export {
|
|
@@ -14,4 +15,4 @@ export {
|
|
|
14
15
|
installCommand,
|
|
15
16
|
installServer
|
|
16
17
|
};
|
|
17
|
-
//# sourceMappingURL=install-
|
|
18
|
+
//# sourceMappingURL=install-EWDSPFFZ.js.map
|
|
@@ -5,18 +5,20 @@ import {
|
|
|
5
5
|
msUntil,
|
|
6
6
|
prepareJob,
|
|
7
7
|
testsBefore
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HE2K657U.js";
|
|
9
9
|
import "./chunk-N4I6YS3E.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-ULAJPMY7.js";
|
|
11
|
+
import "./chunk-R7I2NBPX.js";
|
|
11
12
|
import "./chunk-5DEWP3YX.js";
|
|
12
13
|
import "./chunk-PZS3V6P3.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-44QN5SWZ.js";
|
|
15
|
+
import "./chunk-USCUXCAU.js";
|
|
15
16
|
import "./chunk-YQTGMCU6.js";
|
|
16
17
|
import "./chunk-OUCV3FCT.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-TUUEBHG2.js";
|
|
19
|
+
import "./chunk-GXZACJUI.js";
|
|
19
20
|
import "./chunk-WMOLXTBU.js";
|
|
21
|
+
import "./chunk-3EQU2GUX.js";
|
|
20
22
|
import "./chunk-HUIK3WXO.js";
|
|
21
23
|
import "./chunk-KKB5W47S.js";
|
|
22
24
|
import "./chunk-3NJNVZTK.js";
|
|
@@ -27,4 +29,4 @@ export {
|
|
|
27
29
|
prepareJob,
|
|
28
30
|
testsBefore
|
|
29
31
|
};
|
|
30
|
-
//# sourceMappingURL=jobCommand-
|
|
32
|
+
//# sourceMappingURL=jobCommand-ACSGSBQ4.js.map
|
|
@@ -14,10 +14,11 @@ import {
|
|
|
14
14
|
removeSpec,
|
|
15
15
|
specPath,
|
|
16
16
|
specPlist
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-USCUXCAU.js";
|
|
18
|
+
import "./chunk-TUUEBHG2.js";
|
|
19
|
+
import "./chunk-GXZACJUI.js";
|
|
20
20
|
import "./chunk-WMOLXTBU.js";
|
|
21
|
+
import "./chunk-3EQU2GUX.js";
|
|
21
22
|
import "./chunk-HUIK3WXO.js";
|
|
22
23
|
import "./chunk-KKB5W47S.js";
|
|
23
24
|
import "./chunk-3NJNVZTK.js";
|
|
@@ -37,4 +38,4 @@ export {
|
|
|
37
38
|
specPath,
|
|
38
39
|
specPlist
|
|
39
40
|
};
|
|
40
|
-
//# sourceMappingURL=launchd-
|
|
41
|
+
//# sourceMappingURL=launchd-SSX362VG.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-36GQIVGT.js";
|
|
6
6
|
import {
|
|
7
7
|
installServer
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B6FA4I7Q.js";
|
|
9
9
|
import {
|
|
10
10
|
LSP_CONFIG_FILE,
|
|
11
11
|
loadLspConfig
|
|
@@ -18,8 +18,9 @@ import {
|
|
|
18
18
|
HostExecutor,
|
|
19
19
|
createExecutor,
|
|
20
20
|
loadSettings
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-GXZACJUI.js";
|
|
22
22
|
import "./chunk-WMOLXTBU.js";
|
|
23
|
+
import "./chunk-3EQU2GUX.js";
|
|
23
24
|
import "./chunk-HUIK3WXO.js";
|
|
24
25
|
import "./chunk-3NJNVZTK.js";
|
|
25
26
|
|
|
@@ -96,4 +97,4 @@ export {
|
|
|
96
97
|
lspInstallCommand,
|
|
97
98
|
lspStatusCommand
|
|
98
99
|
};
|
|
99
|
-
//# sourceMappingURL=lspCommand-
|
|
100
|
+
//# sourceMappingURL=lspCommand-JRXKRSL7.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-4P26OKTP.js";
|
|
12
12
|
import {
|
|
13
13
|
VERSION
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XOK5OZOC.js";
|
|
15
15
|
import {
|
|
16
16
|
USER_SCOPE
|
|
17
17
|
} from "./chunk-5DEWP3YX.js";
|
|
@@ -34,8 +34,9 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_ENV_ALLOWLIST,
|
|
36
36
|
sandboxPaths
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GXZACJUI.js";
|
|
38
38
|
import "./chunk-WMOLXTBU.js";
|
|
39
|
+
import "./chunk-3EQU2GUX.js";
|
|
39
40
|
import "./chunk-HUIK3WXO.js";
|
|
40
41
|
import "./chunk-3NJNVZTK.js";
|
|
41
42
|
|
|
@@ -844,4 +845,4 @@ export {
|
|
|
844
845
|
changeLines,
|
|
845
846
|
warnings
|
|
846
847
|
};
|
|
847
|
-
//# sourceMappingURL=manager-
|
|
848
|
+
//# sourceMappingURL=manager-AWU4NHHK.js.map
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
msUntil
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HE2K657U.js";
|
|
5
5
|
import {
|
|
6
6
|
notificationBytes,
|
|
7
7
|
pickChannel
|
|
8
8
|
} from "./chunk-N4I6YS3E.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-ULAJPMY7.js";
|
|
10
|
+
import "./chunk-R7I2NBPX.js";
|
|
10
11
|
import "./chunk-5DEWP3YX.js";
|
|
11
12
|
import "./chunk-PZS3V6P3.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-44QN5SWZ.js";
|
|
13
14
|
import {
|
|
14
15
|
defaultAgentEnv,
|
|
15
16
|
nightSpec,
|
|
16
17
|
removeSpec
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-USCUXCAU.js";
|
|
18
19
|
import "./chunk-YQTGMCU6.js";
|
|
19
20
|
import {
|
|
20
21
|
testSummary
|
|
@@ -22,11 +23,12 @@ import {
|
|
|
22
23
|
import {
|
|
23
24
|
hostCommand,
|
|
24
25
|
shellWord
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TUUEBHG2.js";
|
|
26
27
|
import {
|
|
27
28
|
createExecutor
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GXZACJUI.js";
|
|
29
30
|
import "./chunk-WMOLXTBU.js";
|
|
31
|
+
import "./chunk-3EQU2GUX.js";
|
|
30
32
|
import "./chunk-HUIK3WXO.js";
|
|
31
33
|
import {
|
|
32
34
|
JOBS_DIR,
|
|
@@ -244,4 +246,4 @@ Digest: ${file}`);
|
|
|
244
246
|
export {
|
|
245
247
|
nightCommand
|
|
246
248
|
};
|
|
247
|
-
//# sourceMappingURL=nightCommand-
|
|
249
|
+
//# sourceMappingURL=nightCommand-65MUEV32.js.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
git
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TUUEBHG2.js";
|
|
5
|
+
import "./chunk-GXZACJUI.js";
|
|
6
6
|
import "./chunk-WMOLXTBU.js";
|
|
7
|
+
import "./chunk-3EQU2GUX.js";
|
|
7
8
|
import "./chunk-HUIK3WXO.js";
|
|
8
9
|
import {
|
|
9
10
|
JOBS_DIR,
|
|
@@ -56,4 +57,4 @@ export {
|
|
|
56
57
|
jobLeftovers,
|
|
57
58
|
removeJob
|
|
58
59
|
};
|
|
59
|
-
//# sourceMappingURL=remove-
|
|
60
|
+
//# sourceMappingURL=remove-6GDSTAIO.js.map
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
BUILTIN_COMMANDS,
|
|
4
3
|
loadSearchConfig,
|
|
5
4
|
providerLabel,
|
|
6
5
|
saveSearchUse
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B25VL4RU.js";
|
|
7
|
+
import {
|
|
8
|
+
BUILTIN_COMMANDS
|
|
9
|
+
} from "./chunk-23FXBNBB.js";
|
|
8
10
|
import {
|
|
9
11
|
SERVER_NAME,
|
|
10
12
|
checkServerUrl
|
|
@@ -883,4 +885,4 @@ export {
|
|
|
883
885
|
initPrompt,
|
|
884
886
|
runInit
|
|
885
887
|
};
|
|
886
|
-
//# sourceMappingURL=run-
|
|
888
|
+
//# sourceMappingURL=run-ML6GSPN4.js.map
|