@kody-ade/kody-engine 0.4.220 → 0.4.222
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/README.md +7 -5
- package/dist/bin/kody.js +486 -517
- package/dist/duties/duty-scheduler/duty.md +3 -0
- package/dist/duties/duty-scheduler/profile.json +6 -0
- package/dist/duties/duty-tick/duty.md +3 -0
- package/dist/duties/duty-tick/profile.json +6 -0
- package/dist/duties/duty-tick-scripted/duty.md +3 -0
- package/dist/duties/duty-tick-scripted/profile.json +6 -0
- package/dist/duties/goal-scheduler/duty.md +3 -0
- package/dist/duties/goal-scheduler/profile.json +6 -0
- package/dist/duties/goal-tick/duty.md +3 -0
- package/dist/duties/goal-tick/profile.json +6 -0
- package/dist/duties/job-live-verify/duty.md +3 -0
- package/dist/duties/job-live-verify/profile.json +6 -0
- package/dist/duties/plan-verify/duty.md +3 -0
- package/dist/duties/plan-verify/profile.json +6 -0
- package/dist/duties/probe-skill/duty.md +3 -0
- package/dist/duties/probe-skill/profile.json +6 -0
- package/dist/duties/qa-goal/duty.md +3 -0
- package/dist/duties/qa-goal/profile.json +6 -0
- package/dist/duties/task-job-fail-once/duty.md +3 -0
- package/dist/duties/task-job-fail-once/profile.json +6 -0
- package/dist/duties/task-job-pass-a/duty.md +3 -0
- package/dist/duties/task-job-pass-a/profile.json +6 -0
- package/dist/duties/task-job-pass-b/duty.md +3 -0
- package/dist/duties/task-job-pass-b/profile.json +6 -0
- package/dist/duties/task-jobs/duty.md +3 -0
- package/dist/duties/task-jobs/profile.json +6 -0
- package/dist/executables/types.ts +7 -10
- package/package.json +1 -1
|
@@ -416,11 +416,11 @@ export interface Context {
|
|
|
416
416
|
* `@kody <next>` comment, which is silently ignored when Kody comments as
|
|
417
417
|
* a GitHub App (bot author), stalling the pipeline at classify.
|
|
418
418
|
*/
|
|
419
|
-
nextDispatch?: { executable
|
|
419
|
+
nextDispatch?: { action?: string; duty?: string; executable?: string; cliArgs: Record<string, unknown> }
|
|
420
420
|
/** In-process hand-off to a full Job, preserving job identity in task state. */
|
|
421
421
|
nextJob?: Job
|
|
422
422
|
/** Where to return after nextJob succeeds. Used by task-jobs to keep draining pending work. */
|
|
423
|
-
afterNextJob?: { executable
|
|
423
|
+
afterNextJob?: { action?: string; duty?: string; executable?: string; cliArgs: Record<string, unknown> }
|
|
424
424
|
}
|
|
425
425
|
/**
|
|
426
426
|
* If a preflight script sets this to true, the executor skips the agent
|
|
@@ -452,17 +452,15 @@ export type AnyScript = PreflightScript | PostflightScript
|
|
|
452
452
|
// Job — the unified work request (task-state jobs collect run attempts).
|
|
453
453
|
//
|
|
454
454
|
// A Job is the required work the engine tries to execute, regardless of how it
|
|
455
|
-
// was triggered. It
|
|
456
|
-
//
|
|
455
|
+
// was triggered. It must reference a duty/action (why). The executable is only
|
|
456
|
+
// the duty-selected implementation detail (how), never a standalone request.
|
|
457
457
|
// Task state stores this durable job separately from individual run attempts.
|
|
458
458
|
// Two flavors:
|
|
459
459
|
// - "instant" — run once now (an `@kody <verb>` comment or a manual dispatch)
|
|
460
460
|
// - "scheduled" — fired on `schedule` (cron) by the tick path
|
|
461
461
|
//
|
|
462
|
-
//
|
|
463
|
-
//
|
|
464
|
-
// `schedule` + `persona`. `runJob` (src/job.ts) lowers a Job onto the existing
|
|
465
|
-
// executor and seeds both stable job metadata and per-run metadata.
|
|
462
|
+
// `runJob` (src/job.ts) lowers a Job onto the private executor after resolving
|
|
463
|
+
// the duty, and seeds both stable job metadata and per-run metadata.
|
|
466
464
|
// ────────────────────────────────────────────────────────────────────────────
|
|
467
465
|
|
|
468
466
|
export type JobFlavor = "instant" | "scheduled"
|
|
@@ -470,8 +468,7 @@ export type JobFlavor = "instant" | "scheduled"
|
|
|
470
468
|
export interface Job {
|
|
471
469
|
/** Public action the user/operator invoked. Mirrors the duty action. */
|
|
472
470
|
action?: string
|
|
473
|
-
/** How:
|
|
474
|
-
* agent-only with no specific verb. */
|
|
471
|
+
/** How: implementation profile selected by the duty. Not valid by itself. */
|
|
475
472
|
executable?: string
|
|
476
473
|
/** Why (referenced): a duty slug whose intent drives the run. */
|
|
477
474
|
duty?: 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.222",
|
|
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",
|