@kody-ade/kody-engine 0.4.176 → 0.4.177
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/kody.js +9 -5
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -1309,7 +1309,7 @@ var init_loadPriorArt = __esm({
|
|
|
1309
1309
|
// package.json
|
|
1310
1310
|
var package_default = {
|
|
1311
1311
|
name: "@kody-ade/kody-engine",
|
|
1312
|
-
version: "0.4.
|
|
1312
|
+
version: "0.4.177",
|
|
1313
1313
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
1314
1314
|
license: "MIT",
|
|
1315
1315
|
type: "module",
|
|
@@ -12554,13 +12554,11 @@ var runPreviewBuild = async (ctx, _profile, _args) => {
|
|
|
12554
12554
|
}
|
|
12555
12555
|
let repo;
|
|
12556
12556
|
let ref;
|
|
12557
|
-
let flyToken;
|
|
12558
12557
|
let masterKey;
|
|
12559
12558
|
let ghToken4;
|
|
12560
12559
|
try {
|
|
12561
12560
|
repo = required("GITHUB_REPOSITORY");
|
|
12562
12561
|
ref = required("GITHUB_SHA");
|
|
12563
|
-
flyToken = required("FLY_API_TOKEN");
|
|
12564
12562
|
masterKey = required("KODY_MASTER_KEY");
|
|
12565
12563
|
ghToken4 = required("GITHUB_TOKEN");
|
|
12566
12564
|
} catch (err) {
|
|
@@ -12568,14 +12566,20 @@ var runPreviewBuild = async (ctx, _profile, _args) => {
|
|
|
12568
12566
|
ctx.output.reason = `runPreviewBuild: ${err instanceof Error ? err.message : String(err)}`;
|
|
12569
12567
|
return;
|
|
12570
12568
|
}
|
|
12571
|
-
const orgSlug = (process.env.FLY_ORG_SLUG ?? "personal").trim();
|
|
12572
|
-
const region = (process.env.FLY_REGION ?? "fra").trim();
|
|
12573
12569
|
const ghcrOwner = process.env.KODY_PREVIEW_GHCR_OWNER?.trim() || "";
|
|
12574
12570
|
const appName = previewAppName(repo, pr);
|
|
12575
12571
|
const tag = defaultImageTag(repo, ref);
|
|
12576
12572
|
try {
|
|
12577
12573
|
const doc = await fetchVaultDoc(repo, ghToken4, masterKey);
|
|
12578
12574
|
const { buildEnv, buildMode } = buildEnvFromVault(doc);
|
|
12575
|
+
const flyToken = doc.secrets?.FLY_API_TOKEN?.value?.trim();
|
|
12576
|
+
if (!flyToken) {
|
|
12577
|
+
ctx.output.exitCode = 99;
|
|
12578
|
+
ctx.output.reason = "runPreviewBuild: vault has no FLY_API_TOKEN \u2014 add it via the dashboard's /secrets page";
|
|
12579
|
+
return;
|
|
12580
|
+
}
|
|
12581
|
+
const orgSlug = doc.secrets?.FLY_ORG_SLUG?.value?.trim() || (process.env.FLY_ORG_SLUG ?? "personal").trim();
|
|
12582
|
+
const region = doc.secrets?.FLY_DEFAULT_REGION?.value?.trim() || (process.env.FLY_REGION ?? "fra").trim();
|
|
12579
12583
|
console.log(
|
|
12580
12584
|
`[preview-build] vault: ${Object.keys(buildEnv).length} secrets, mode=${buildMode}`
|
|
12581
12585
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.177",
|
|
4
4
|
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|