@kody-ade/kody-engine 0.4.316 → 0.4.318
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 +21 -7
- 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.318",
|
|
19
19
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
20
20
|
license: "MIT",
|
|
21
21
|
type: "module",
|
|
@@ -20988,9 +20988,10 @@ function autoDispatch(opts) {
|
|
|
20988
20988
|
const actionName = opts?.config?.onPullRequest?.trim();
|
|
20989
20989
|
const action = String(event.action ?? "");
|
|
20990
20990
|
if (actionName && (action === "opened" || action === "synchronize" || action === "reopened")) {
|
|
20991
|
+
const pullRequest = objectValue(event.pull_request);
|
|
20992
|
+
if (isReleasePullRequest(pullRequest)) return null;
|
|
20991
20993
|
const route2 = resolveConfiguredAction(actionName);
|
|
20992
20994
|
if (!route2) return null;
|
|
20993
|
-
const pullRequest = objectValue(event.pull_request);
|
|
20994
20995
|
const prNum = Number(pullRequest?.number ?? event.number ?? 0);
|
|
20995
20996
|
if (prNum > 0) {
|
|
20996
20997
|
const targetKey = primaryNumericInputName(route2.executable) ?? "pr";
|
|
@@ -21193,6 +21194,11 @@ function associationAllowed(event, config) {
|
|
|
21193
21194
|
function objectValue(value) {
|
|
21194
21195
|
return value && typeof value === "object" ? value : void 0;
|
|
21195
21196
|
}
|
|
21197
|
+
function isReleasePullRequest(pullRequest) {
|
|
21198
|
+
const head = objectValue(pullRequest?.head);
|
|
21199
|
+
const ref = typeof head?.ref === "string" ? head.ref : "";
|
|
21200
|
+
return ref.startsWith("release/");
|
|
21201
|
+
}
|
|
21196
21202
|
var KODY_MENTION_RE = /(?:^|\s)@kody(?=\s|$|[^\w-])/i;
|
|
21197
21203
|
function hasKodyMention(body) {
|
|
21198
21204
|
return KODY_MENTION_RE.test(body);
|
|
@@ -21350,6 +21356,7 @@ function readRunRequestFromEnv(env = process.env) {
|
|
|
21350
21356
|
// src/kody-cli.ts
|
|
21351
21357
|
init_runtimePaths();
|
|
21352
21358
|
init_stateWorkspace();
|
|
21359
|
+
init_workflowDefinitions();
|
|
21353
21360
|
var FAILED_DISPATCH_LABEL = {
|
|
21354
21361
|
label: "kody:failed",
|
|
21355
21362
|
color: "e11d21",
|
|
@@ -21715,7 +21722,11 @@ async function runCi(argv) {
|
|
|
21715
21722
|
const config = earlyConfig ?? loadConfig(cwd);
|
|
21716
21723
|
const manualGoalManager = forceRunAction === "goal-manager";
|
|
21717
21724
|
const capabilityRoute = manualGoalManager ? null : resolveCapabilityAction(forceRunAction);
|
|
21718
|
-
const
|
|
21725
|
+
const workflowRoute = manualGoalManager || capabilityRoute || !readWorkflowDefinition(config, cwd, forceRunAction) ? void 0 : {
|
|
21726
|
+
workflow: forceRunAction,
|
|
21727
|
+
cliArgs: {}
|
|
21728
|
+
};
|
|
21729
|
+
const scheduledWatchRoute = manualGoalManager || capabilityRoute || workflowRoute ? void 0 : dispatchScheduledWatches({ force: true }).find(
|
|
21719
21730
|
(match) => match.action === forceRunAction || match.executable === forceRunAction
|
|
21720
21731
|
);
|
|
21721
21732
|
const route = manualGoalManager ? {
|
|
@@ -21723,9 +21734,9 @@ async function runCi(argv) {
|
|
|
21723
21734
|
capability: "goal-manager",
|
|
21724
21735
|
executable: "goal-manager",
|
|
21725
21736
|
cliArgs: forceRunCliArgs
|
|
21726
|
-
} : capabilityRoute ?? scheduledWatchRoute;
|
|
21737
|
+
} : capabilityRoute ?? workflowRoute ?? scheduledWatchRoute;
|
|
21727
21738
|
if (!route) {
|
|
21728
|
-
process.stderr.write(`[kody] manual one-shot action '${forceRunAction}' has no capability action
|
|
21739
|
+
process.stderr.write(`[kody] manual one-shot action '${forceRunAction}' has no capability action or workflow
|
|
21729
21740
|
`);
|
|
21730
21741
|
return 64;
|
|
21731
21742
|
}
|
|
@@ -21733,9 +21744,11 @@ async function runCi(argv) {
|
|
|
21733
21744
|
process.stderr.write("[kody] manual goal-manager run requires message goal id\n");
|
|
21734
21745
|
return 64;
|
|
21735
21746
|
}
|
|
21736
|
-
process.stdout.write(
|
|
21747
|
+
process.stdout.write(
|
|
21748
|
+
`\u2192 kody: manual one-shot run ${route.workflow ? `workflow ${route.workflow}` : `action ${route.action} (${route.capability})`}
|
|
21737
21749
|
|
|
21738
|
-
`
|
|
21750
|
+
`
|
|
21751
|
+
);
|
|
21739
21752
|
try {
|
|
21740
21753
|
const n = unpackAllSecrets();
|
|
21741
21754
|
if (n > 0) process.stdout.write(`\u2192 kody: unpacked ${n} secret(s)
|
|
@@ -21768,6 +21781,7 @@ async function runCi(argv) {
|
|
|
21768
21781
|
{
|
|
21769
21782
|
action: route.action,
|
|
21770
21783
|
capability: route.capability,
|
|
21784
|
+
workflow: route.workflow,
|
|
21771
21785
|
executable: route.executable,
|
|
21772
21786
|
cliArgs: { ...route.cliArgs, ...forceRunCliArgs },
|
|
21773
21787
|
flavor: "instant",
|
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.318",
|
|
4
4
|
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|