@kody-ade/kody-engine 0.4.422 → 0.4.423
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 +8 -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.423",
|
|
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",
|
|
@@ -1895,6 +1895,11 @@ function definitionsRoot(cwd = process.cwd()) {
|
|
|
1895
1895
|
if (fs5.existsSync(hydrated)) return hydrated;
|
|
1896
1896
|
return override ? path6.resolve(override) : hydrated;
|
|
1897
1897
|
}
|
|
1898
|
+
function hasExplicitDefinitionsRoot(cwd = process.cwd(), env = process.env) {
|
|
1899
|
+
const root = env.KODY_DEFINITIONS_ROOT?.trim();
|
|
1900
|
+
const rootCwd = env.KODY_DEFINITIONS_ROOT_CWD?.trim();
|
|
1901
|
+
return Boolean(root && rootCwd && path6.resolve(cwd) === path6.resolve(rootCwd));
|
|
1902
|
+
}
|
|
1898
1903
|
function capabilitiesRoot(cwd = process.cwd()) {
|
|
1899
1904
|
return path6.join(definitionsRoot(cwd), "capabilities");
|
|
1900
1905
|
}
|
|
@@ -26295,6 +26300,7 @@ ${CHAT_HELP}`);
|
|
|
26295
26300
|
|
|
26296
26301
|
// src/entry.ts
|
|
26297
26302
|
init_config();
|
|
26303
|
+
init_definition_paths();
|
|
26298
26304
|
|
|
26299
26305
|
// src/definition-hydration.ts
|
|
26300
26306
|
init_state_backend();
|
|
@@ -27962,7 +27968,7 @@ async function main(argv = process.argv.slice(2)) {
|
|
|
27962
27968
|
unpackAllSecrets();
|
|
27963
27969
|
const cwdFlag = argv.indexOf("--cwd");
|
|
27964
27970
|
const definitionCwd = cwdFlag >= 0 && argv[cwdFlag + 1] ? argv[cwdFlag + 1] : process.cwd();
|
|
27965
|
-
const shouldHydrate = Boolean(process.env.CONVEX_URL?.trim()) || process.env.GITHUB_ACTIONS === "true" && Boolean(process.env.GITHUB_EVENT_NAME);
|
|
27971
|
+
const shouldHydrate = !hasExplicitDefinitionsRoot(definitionCwd) && (Boolean(process.env.CONVEX_URL?.trim()) || process.env.GITHUB_ACTIONS === "true" && Boolean(process.env.GITHUB_EVENT_NAME));
|
|
27966
27972
|
if (shouldHydrate) {
|
|
27967
27973
|
try {
|
|
27968
27974
|
await hydrateDefinitionsFromEnv(definitionCwd);
|
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.423",
|
|
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",
|