@kody-ade/kody-engine 0.4.504 → 0.4.505
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 +22 -4
- 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.505",
|
|
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",
|
|
@@ -22317,6 +22317,7 @@ async function runLinearCapabilityWorkflow(parent, workflow, capability, base) {
|
|
|
22317
22317
|
workflowTitle: capability.title,
|
|
22318
22318
|
workflowStepCount: workflow.steps.length,
|
|
22319
22319
|
workflowIssueNumber: workflowIssueNumber(parent),
|
|
22320
|
+
workflowContext: workflowInputContext(parent.cliArgs),
|
|
22320
22321
|
workflowFacts: parent.workflowFacts ?? {},
|
|
22321
22322
|
workflowStack: [
|
|
22322
22323
|
...Array.isArray(base.preloadedData?.workflowStack) ? base.preloadedData.workflowStack.filter((entry) => typeof entry === "string") : [],
|
|
@@ -22362,7 +22363,10 @@ async function runLinearCapabilityWorkflow(parent, workflow, capability, base) {
|
|
|
22362
22363
|
...chainData,
|
|
22363
22364
|
...result.taskState ? { taskState: result.taskState } : {},
|
|
22364
22365
|
...outcome ? { workflowLastOutcome: outcome } : {},
|
|
22365
|
-
...result.capabilityOutput !== void 0 ? {
|
|
22366
|
+
...result.capabilityOutput !== void 0 ? {
|
|
22367
|
+
workflowLastOutput: result.capabilityOutput,
|
|
22368
|
+
workflowContext: mergeWorkflowContext(chainData.workflowContext, result.capabilityOutput)
|
|
22369
|
+
} : {},
|
|
22366
22370
|
...prUrl ? { workflowPrUrl: prUrl } : {},
|
|
22367
22371
|
...parsePrNumber5(prUrl) ? { workflowPrNumber: parsePrNumber5(prUrl) } : {}
|
|
22368
22372
|
};
|
|
@@ -22429,6 +22433,7 @@ function workflowChainData(parent, capability, base, state) {
|
|
|
22429
22433
|
workflowTitle: capability.title,
|
|
22430
22434
|
workflowStepCount: capability.config.workflow?.steps.length ?? 0,
|
|
22431
22435
|
workflowIssueNumber: workflowIssueNumber(parent),
|
|
22436
|
+
workflowContext: base.preloadedData?.workflowContext ?? workflowInputContext(parent.cliArgs),
|
|
22432
22437
|
workflowFacts: state.facts,
|
|
22433
22438
|
workflowEvidence: state.evidence,
|
|
22434
22439
|
workflowArtifacts: state.artifacts,
|
|
@@ -22506,7 +22511,10 @@ async function runGraphCapabilityWorkflow(parent, workflow, capability, base, ch
|
|
|
22506
22511
|
...result.taskState ? { taskState: result.taskState } : {},
|
|
22507
22512
|
...outcome ? { workflowLastOutcome: outcome } : {},
|
|
22508
22513
|
...result.capabilityResults?.at(-1) ? { workflowLastResult: result.capabilityResults.at(-1) } : {},
|
|
22509
|
-
...result.capabilityOutput !== void 0 ? {
|
|
22514
|
+
...result.capabilityOutput !== void 0 ? {
|
|
22515
|
+
workflowLastOutput: result.capabilityOutput,
|
|
22516
|
+
workflowContext: mergeWorkflowContext(chainData.workflowContext, result.capabilityOutput)
|
|
22517
|
+
} : {},
|
|
22510
22518
|
...prUrl ? { workflowPrUrl: prUrl } : {},
|
|
22511
22519
|
...parsePrNumber5(prUrl) ? { workflowPrNumber: parsePrNumber5(prUrl) } : {}
|
|
22512
22520
|
};
|
|
@@ -22647,7 +22655,7 @@ function workflowStepToJob(step, parent, chainData, cwd) {
|
|
|
22647
22655
|
rawArgs.issue = targetNumber;
|
|
22648
22656
|
}
|
|
22649
22657
|
const genericInput = capabilityStepInput(
|
|
22650
|
-
step.input ?? chainData.workflowLastOutput ?? genericInputFromArgs(rawArgs),
|
|
22658
|
+
step.input ?? chainData.workflowContext ?? chainData.workflowLastOutput ?? genericInputFromArgs(rawArgs),
|
|
22651
22659
|
step.target,
|
|
22652
22660
|
targetNumber
|
|
22653
22661
|
);
|
|
@@ -22686,6 +22694,16 @@ function genericInputFromArgs(args) {
|
|
|
22686
22694
|
}
|
|
22687
22695
|
return args;
|
|
22688
22696
|
}
|
|
22697
|
+
function workflowInputContext(args) {
|
|
22698
|
+
const input = genericInputFromArgs(args);
|
|
22699
|
+
if (input && typeof input === "object" && !Array.isArray(input)) return { ...input };
|
|
22700
|
+
return input === void 0 ? {} : { request: input };
|
|
22701
|
+
}
|
|
22702
|
+
function mergeWorkflowContext(current, output) {
|
|
22703
|
+
const context = current && typeof current === "object" && !Array.isArray(current) ? current : {};
|
|
22704
|
+
if (!output || typeof output !== "object" || Array.isArray(output)) return { ...context };
|
|
22705
|
+
return { ...context, ...output };
|
|
22706
|
+
}
|
|
22689
22707
|
function parseGenericInput(value) {
|
|
22690
22708
|
if (typeof value !== "string") return value;
|
|
22691
22709
|
try {
|
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.505",
|
|
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",
|