@kody-ade/kody-engine 0.4.459 → 0.4.460
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 +16 -13
- 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.460",
|
|
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",
|
|
@@ -24599,7 +24599,9 @@ async function discoverAppRepositories(creds) {
|
|
|
24599
24599
|
}
|
|
24600
24600
|
|
|
24601
24601
|
// src/kody-cli.ts
|
|
24602
|
+
init_capabilityFolders();
|
|
24602
24603
|
init_config();
|
|
24604
|
+
init_definition_paths();
|
|
24603
24605
|
|
|
24604
24606
|
// src/dispatch.ts
|
|
24605
24607
|
init_config();
|
|
@@ -25042,12 +25044,11 @@ function coerceBare(spec, value) {
|
|
|
25042
25044
|
}
|
|
25043
25045
|
|
|
25044
25046
|
// src/kody-cli.ts
|
|
25045
|
-
init_capabilityFolders();
|
|
25046
|
-
init_definition_paths();
|
|
25047
25047
|
init_gha();
|
|
25048
25048
|
init_issue();
|
|
25049
25049
|
init_job();
|
|
25050
25050
|
init_lifecycleLabels();
|
|
25051
|
+
init_loopDefinitions();
|
|
25051
25052
|
init_registry();
|
|
25052
25053
|
|
|
25053
25054
|
// src/run-request.ts
|
|
@@ -25112,7 +25113,6 @@ function readRunRequestFromEnv(env = process.env) {
|
|
|
25112
25113
|
|
|
25113
25114
|
// src/kody-cli.ts
|
|
25114
25115
|
init_runtimePaths();
|
|
25115
|
-
init_loopDefinitions();
|
|
25116
25116
|
init_stateWorkspace();
|
|
25117
25117
|
init_workflowDefinitions();
|
|
25118
25118
|
var FAILED_DISPATCH_LABEL = {
|
|
@@ -25123,6 +25123,11 @@ var FAILED_DISPATCH_LABEL = {
|
|
|
25123
25123
|
function objectValue2(value) {
|
|
25124
25124
|
return value && typeof value === "object" ? value : void 0;
|
|
25125
25125
|
}
|
|
25126
|
+
function workflowDispatchTargetArgs(workflow, target) {
|
|
25127
|
+
const steps = workflow.steps ?? [];
|
|
25128
|
+
const startStep = workflow.startAt ? steps.find((step) => (step.id ?? step.capability) === workflow.startAt) : steps[0];
|
|
25129
|
+
return { [startStep?.target ?? "issue"]: target };
|
|
25130
|
+
}
|
|
25126
25131
|
var CI_HELP = `kody ci \u2014 minimal-YAML autonomous engineer (CI preflight + run)
|
|
25127
25132
|
|
|
25128
25133
|
Usage:
|
|
@@ -25483,17 +25488,15 @@ async function runCi(argv) {
|
|
|
25483
25488
|
const capabilityInput = String(inputs?.capability ?? "").trim();
|
|
25484
25489
|
const messageInput = String(inputs?.message ?? "").trim();
|
|
25485
25490
|
const noTarget = !sessionInput && !(Number.isFinite(issueInput) && issueInput > 0);
|
|
25486
|
-
|
|
25491
|
+
const targetedWorkflow = !noTarget && capabilityInput ? readWorkflowDefinition(earlyConfig, cwd, capabilityInput) : null;
|
|
25492
|
+
if (targetedWorkflow) {
|
|
25493
|
+
forceRunAction = capabilityInput;
|
|
25494
|
+
forceRunCliArgs = workflowDispatchTargetArgs(targetedWorkflow, issueInput);
|
|
25495
|
+
} else if (noTarget && capabilityInput) {
|
|
25487
25496
|
forceRunAction = capabilityInput;
|
|
25488
25497
|
if (messageInput) {
|
|
25489
|
-
const route = resolveCapabilityAction(
|
|
25490
|
-
|
|
25491
|
-
capabilitiesRoot(cwd)
|
|
25492
|
-
);
|
|
25493
|
-
const textInputs = route?.implementation ? (getProfileInputs(
|
|
25494
|
-
route.implementation,
|
|
25495
|
-
getRuntimeProfileRootsForCwd(cwd)
|
|
25496
|
-
) ?? []).filter(
|
|
25498
|
+
const route = resolveCapabilityAction(capabilityInput, capabilitiesRoot(cwd));
|
|
25499
|
+
const textInputs = route?.implementation ? (getProfileInputs(route.implementation, getRuntimeProfileRootsForCwd(cwd)) ?? []).filter(
|
|
25497
25500
|
(input) => input.type === "string"
|
|
25498
25501
|
) : [];
|
|
25499
25502
|
if (textInputs.length === 1) {
|
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.460",
|
|
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",
|