@kody-ade/kody-engine 0.4.385 → 0.4.386
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 +15 -2
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -15,7 +15,7 @@ var init_package = __esm({
|
|
|
15
15
|
"package.json"() {
|
|
16
16
|
package_default = {
|
|
17
17
|
name: "@kody-ade/kody-engine",
|
|
18
|
-
version: "0.4.
|
|
18
|
+
version: "0.4.386",
|
|
19
19
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
|
|
20
20
|
license: "MIT",
|
|
21
21
|
type: "module",
|
|
@@ -3931,6 +3931,9 @@ function taskArtifactStatePath(taskId, file) {
|
|
|
3931
3931
|
}
|
|
3932
3932
|
async function persistTaskArtifactsToState(config, cwd, artifacts) {
|
|
3933
3933
|
const tenantId = config.github?.owner && config.github.repo ? `${config.github.owner}/${config.github.repo}` : process.env.GITHUB_REPOSITORY?.trim();
|
|
3934
|
+
if (process.env.GITHUB_ACTIONS === "true" && (!process.env.CONVEX_URL || !process.env.KODY_SERVICE_KEY || !tenantId)) {
|
|
3935
|
+
throw new Error("Convex artifact backend is required in GitHub Actions (CONVEX_URL, KODY_SERVICE_KEY, and repository identity)");
|
|
3936
|
+
}
|
|
3934
3937
|
if (process.env.CONVEX_URL && process.env.KODY_SERVICE_KEY && tenantId) {
|
|
3935
3938
|
const backend = createStateBackendFromEnv();
|
|
3936
3939
|
for (const file of TASK_ARTIFACT_FILES) {
|
|
@@ -5662,7 +5665,11 @@ function readTaskStateLegacy(target, number, cwd, config) {
|
|
|
5662
5665
|
}
|
|
5663
5666
|
function backendScope(config) {
|
|
5664
5667
|
const tenantId = config?.github?.owner && config.github.repo ? `${config.github.owner}/${config.github.repo}` : process.env.GITHUB_REPOSITORY?.trim();
|
|
5665
|
-
|
|
5668
|
+
const configured = !!process.env.CONVEX_URL && !!process.env.KODY_SERVICE_KEY && !!tenantId;
|
|
5669
|
+
if (!configured && process.env.GITHUB_ACTIONS === "true") {
|
|
5670
|
+
throw new Error("Convex task-state backend is required in GitHub Actions (CONVEX_URL, KODY_SERVICE_KEY, and repository identity)");
|
|
5671
|
+
}
|
|
5672
|
+
if (!configured) return null;
|
|
5666
5673
|
return { tenantId };
|
|
5667
5674
|
}
|
|
5668
5675
|
async function readTaskState(target, number, cwd, config) {
|
|
@@ -22837,8 +22844,14 @@ function createSessionStore(opts) {
|
|
|
22837
22844
|
});
|
|
22838
22845
|
}
|
|
22839
22846
|
if (client && !tenantId) {
|
|
22847
|
+
if (process.env.GITHUB_ACTIONS === "true") {
|
|
22848
|
+
throw new Error("Convex chat backend requires GITHUB_REPOSITORY in GitHub Actions");
|
|
22849
|
+
}
|
|
22840
22850
|
logger.warn(`session ${opts.sessionId}: CONVEX_URL set but no tenant (GITHUB_REPOSITORY unset) \u2014 using JSONL`);
|
|
22841
22851
|
} else {
|
|
22852
|
+
if (process.env.GITHUB_ACTIONS === "true") {
|
|
22853
|
+
throw new Error("Convex chat backend is required in GitHub Actions (CONVEX_URL and KODY_SERVICE_KEY)");
|
|
22854
|
+
}
|
|
22842
22855
|
logger.info(`session ${opts.sessionId}: CONVEX_URL unset \u2014 using legacy state-repo JSONL store`);
|
|
22843
22856
|
}
|
|
22844
22857
|
return createJsonlStore(opts.sessionFile);
|
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.386",
|
|
4
4
|
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|