@kody-ade/kody-engine 0.4.419 → 0.4.421
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 +17 -9
- package/package.json +1 -1
- package/templates/kody.yml +6 -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.421",
|
|
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",
|
|
@@ -20659,7 +20659,7 @@ async function runImplementation(profileName, input) {
|
|
|
20659
20659
|
`);
|
|
20660
20660
|
return out;
|
|
20661
20661
|
};
|
|
20662
|
-
const resolved = loadRunnableProfile(profileName);
|
|
20662
|
+
const resolved = loadRunnableProfile(profileName, input.cwd);
|
|
20663
20663
|
const { profilePath, profile, missing } = resolved;
|
|
20664
20664
|
if (missing.length > 0) {
|
|
20665
20665
|
return finishAndEnd({
|
|
@@ -21233,8 +21233,8 @@ function clearStampedLifecycleLabels(profile, ctx) {
|
|
|
21233
21233
|
}
|
|
21234
21234
|
}
|
|
21235
21235
|
}
|
|
21236
|
-
function resolveProfilePath(profileName) {
|
|
21237
|
-
const found = resolveImplementation(profileName);
|
|
21236
|
+
function resolveProfilePath(profileName, cwd = process.cwd()) {
|
|
21237
|
+
const found = resolveImplementation(profileName, getImplementationRootsForCwd(cwd));
|
|
21238
21238
|
if (found) return found;
|
|
21239
21239
|
const here = path45.dirname(new URL(import.meta.url).pathname);
|
|
21240
21240
|
const candidates = [
|
|
@@ -21250,8 +21250,11 @@ function resolveProfilePath(profileName) {
|
|
|
21250
21250
|
}
|
|
21251
21251
|
return candidates[0];
|
|
21252
21252
|
}
|
|
21253
|
-
function loadRunnableProfile(profileName) {
|
|
21254
|
-
const candidates = resolveImplementationCandidates(
|
|
21253
|
+
function loadRunnableProfile(profileName, cwd) {
|
|
21254
|
+
const candidates = resolveImplementationCandidates(
|
|
21255
|
+
profileName,
|
|
21256
|
+
getImplementationRootsForCwd(cwd)
|
|
21257
|
+
);
|
|
21255
21258
|
const skipped = [];
|
|
21256
21259
|
for (const profilePath2 of candidates) {
|
|
21257
21260
|
const profile2 = loadProfile(profilePath2);
|
|
@@ -24012,6 +24015,7 @@ function coerceBare(spec, value) {
|
|
|
24012
24015
|
}
|
|
24013
24016
|
|
|
24014
24017
|
// src/kody-cli.ts
|
|
24018
|
+
init_definition_paths();
|
|
24015
24019
|
init_gha();
|
|
24016
24020
|
init_issue();
|
|
24017
24021
|
init_job();
|
|
@@ -24465,7 +24469,7 @@ async function runCi(argv) {
|
|
|
24465
24469
|
if (forceRunAction) {
|
|
24466
24470
|
const config = earlyConfig ?? loadConfig(cwd);
|
|
24467
24471
|
const manualGoalManager = forceRunAction === "goal-manager";
|
|
24468
|
-
const capabilityRoute = manualGoalManager ? null : resolveCapabilityAction(forceRunAction);
|
|
24472
|
+
const capabilityRoute = manualGoalManager ? null : resolveCapabilityAction(forceRunAction, capabilitiesRoot(cwd));
|
|
24469
24473
|
const workflowRoute = manualGoalManager || capabilityRoute || !readWorkflowDefinition(config, cwd, forceRunAction) ? void 0 : {
|
|
24470
24474
|
workflow: forceRunAction,
|
|
24471
24475
|
cliArgs: {}
|
|
@@ -24480,8 +24484,12 @@ async function runCi(argv) {
|
|
|
24480
24484
|
cliArgs: forceRunCliArgs
|
|
24481
24485
|
} : capabilityRoute ?? workflowRoute ?? scheduledWatchRoute;
|
|
24482
24486
|
if (!route) {
|
|
24483
|
-
|
|
24484
|
-
|
|
24487
|
+
const root = capabilitiesRoot(cwd);
|
|
24488
|
+
const available = listCapabilityActions(root).map((item) => item.action);
|
|
24489
|
+
process.stderr.write(
|
|
24490
|
+
`[kody] manual one-shot action '${forceRunAction}' has no capability action or workflow (capabilitiesRoot=${root}, available=${available.join(",") || "none"})
|
|
24491
|
+
`
|
|
24492
|
+
);
|
|
24485
24493
|
return 64;
|
|
24486
24494
|
}
|
|
24487
24495
|
if (route.implementation === "goal-manager" && typeof forceRunCliArgs.goal !== "string") {
|
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.421",
|
|
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",
|
package/templates/kody.yml
CHANGED
|
@@ -93,4 +93,9 @@ jobs:
|
|
|
93
93
|
INIT_MESSAGE: ${{ inputs.message }}
|
|
94
94
|
MODEL: ${{ inputs.model }}
|
|
95
95
|
DASHBOARD_URL: ${{ inputs.dashboardUrl }}
|
|
96
|
-
|
|
96
|
+
KODY_DEFINITIONS_ROOT: ${{ github.workspace }}/.kody-engine/definitions
|
|
97
|
+
KODY_DEFINITIONS_ROOT_CWD: ${{ github.workspace }}
|
|
98
|
+
working-directory: ${{ github.workspace }}
|
|
99
|
+
run: |
|
|
100
|
+
test -d .kody-engine/definitions/capabilities
|
|
101
|
+
npx -y -p @kody-ade/kody-engine@latest kody-engine ci --cwd "$GITHUB_WORKSPACE"
|