@kody-ade/kody-engine 0.4.360 → 0.4.361
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 -8
- 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.361",
|
|
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",
|
|
@@ -2709,7 +2709,7 @@ ${marker}` });
|
|
|
2709
2709
|
}
|
|
2710
2710
|
function dispatchWorkflow(workflowFile, capability, issueNumber, repoSlug, ref) {
|
|
2711
2711
|
const expected = expectedDispatchTarget(capability);
|
|
2712
|
-
if (repoSlug && expected) {
|
|
2712
|
+
if (repoSlug && expected && issueNumber) {
|
|
2713
2713
|
const target = readDispatchTargetKind(repoSlug, issueNumber);
|
|
2714
2714
|
if (!target.ok) return target;
|
|
2715
2715
|
if (expected === "issue" && target.kind === "pr") {
|
|
@@ -2733,8 +2733,7 @@ function dispatchWorkflow(workflowFile, capability, issueNumber, repoSlug, ref)
|
|
|
2733
2733
|
...ref ? ["--ref", ref] : [],
|
|
2734
2734
|
"-f",
|
|
2735
2735
|
`capability=${capability}`,
|
|
2736
|
-
"-f",
|
|
2737
|
-
`issue_number=${issueNumber}`
|
|
2736
|
+
...issueNumber ? ["-f", `issue_number=${issueNumber}`] : []
|
|
2738
2737
|
]);
|
|
2739
2738
|
return { ok: true };
|
|
2740
2739
|
} catch (err) {
|
|
@@ -2918,9 +2917,10 @@ function capabilityToolDefinitions(opts) {
|
|
|
2918
2917
|
},
|
|
2919
2918
|
handler: async (args) => {
|
|
2920
2919
|
const name = String(args.name ?? "");
|
|
2921
|
-
const
|
|
2922
|
-
|
|
2923
|
-
|
|
2920
|
+
const rawIssue = args.issue ?? args.issueNumber;
|
|
2921
|
+
const issue = rawIssue == null ? void 0 : Number(rawIssue);
|
|
2922
|
+
if (issue !== void 0 && (!Number.isFinite(issue) || issue <= 0)) {
|
|
2923
|
+
return { content: [{ type: "text", text: "Start failed: `issue` must be a positive number when provided." }] };
|
|
2924
2924
|
}
|
|
2925
2925
|
const result = startCapability(
|
|
2926
2926
|
workflowFile,
|
|
@@ -2929,7 +2929,7 @@ function capabilityToolDefinitions(opts) {
|
|
|
2929
2929
|
opts.repoSlug,
|
|
2930
2930
|
opts.defaultBranch
|
|
2931
2931
|
);
|
|
2932
|
-
const text = result.ok ? `Started capability \`${name}
|
|
2932
|
+
const text = result.ok ? `Started capability \`${name}\`${issue ? ` on #${issue}` : ""} via workflow_dispatch.` : `Start failed for capability \`${name}\`${issue ? ` on #${issue}` : ""}: ${result.error}`;
|
|
2933
2933
|
return { content: [{ type: "text", text }] };
|
|
2934
2934
|
}
|
|
2935
2935
|
};
|
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.361",
|
|
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",
|