@kody-ade/kody-engine 0.1.6 → 0.1.7
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/bin/cli.mjs +18 -6
- package/dist/bin/cli.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bin/cli.mjs
CHANGED
|
@@ -2202,7 +2202,9 @@ function validateAuth() {
|
|
|
2202
2202
|
logger.warn("\u26A0 Not running in GitHub Actions \u2014 OIDC auth may not work");
|
|
2203
2203
|
logger.warn(" Run locally or in CI with id-token: write permission");
|
|
2204
2204
|
} else {
|
|
2205
|
-
logger.info(
|
|
2205
|
+
logger.info(
|
|
2206
|
+
"\u2713 Running in GitHub Actions \u2014 OIDC auth available via id-token permission"
|
|
2207
|
+
);
|
|
2206
2208
|
}
|
|
2207
2209
|
}
|
|
2208
2210
|
var VALID_STAGES2, STAGE_ORDER;
|
|
@@ -2224,7 +2226,7 @@ import * as fs4 from "fs";
|
|
|
2224
2226
|
function preflight() {
|
|
2225
2227
|
const checks = [
|
|
2226
2228
|
{
|
|
2227
|
-
name: "
|
|
2229
|
+
name: "opencode CLI (via pnpm)",
|
|
2228
2230
|
test: () => execFileSync2("pnpm", ["opencode", "--version"], { stdio: "pipe" }),
|
|
2229
2231
|
errorMessage: "Run: pnpm install"
|
|
2230
2232
|
},
|
|
@@ -2487,7 +2489,8 @@ var init_runner_backend = __esm({
|
|
|
2487
2489
|
"--dir",
|
|
2488
2490
|
cwd
|
|
2489
2491
|
];
|
|
2490
|
-
if (options.sessionId)
|
|
2492
|
+
if (options.sessionId)
|
|
2493
|
+
args2.push("--session", options.sessionId, "--fork");
|
|
2491
2494
|
args2.push(prompt);
|
|
2492
2495
|
return spawn2(resolveOpenCodeBinary(), args2, {
|
|
2493
2496
|
cwd,
|
|
@@ -2498,7 +2501,15 @@ var init_runner_backend = __esm({
|
|
|
2498
2501
|
}
|
|
2499
2502
|
});
|
|
2500
2503
|
}
|
|
2501
|
-
const args = [
|
|
2504
|
+
const args = [
|
|
2505
|
+
"exec",
|
|
2506
|
+
"opencode",
|
|
2507
|
+
"run",
|
|
2508
|
+
"--agent",
|
|
2509
|
+
stage,
|
|
2510
|
+
"--format",
|
|
2511
|
+
"json"
|
|
2512
|
+
];
|
|
2502
2513
|
args.push(prompt);
|
|
2503
2514
|
return spawn2("pnpm", args, {
|
|
2504
2515
|
cwd,
|
|
@@ -2522,7 +2533,8 @@ var init_runner_backend = __esm({
|
|
|
2522
2533
|
"--dir",
|
|
2523
2534
|
cwd
|
|
2524
2535
|
];
|
|
2525
|
-
if (options.sessionId)
|
|
2536
|
+
if (options.sessionId)
|
|
2537
|
+
args2.push("--session", options.sessionId, "--fork");
|
|
2526
2538
|
args2.push(prompt);
|
|
2527
2539
|
return spawn2(resolveOpenCodeBinary(), args2, {
|
|
2528
2540
|
cwd,
|
|
@@ -2535,7 +2547,7 @@ var init_runner_backend = __esm({
|
|
|
2535
2547
|
}
|
|
2536
2548
|
});
|
|
2537
2549
|
}
|
|
2538
|
-
const args = ["
|
|
2550
|
+
const args = ["opencode", "run", "--agent", stage, "--format", "json"];
|
|
2539
2551
|
args.push(prompt);
|
|
2540
2552
|
return spawn2("pnpm", args, {
|
|
2541
2553
|
cwd,
|