@kody-ade/kody-engine 0.4.221 → 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.
@@ -0,0 +1,3 @@
1
+ # Duty Scheduler
2
+
3
+ Scan `.kody/duties/` for due duty folders and run each due duty through its declared executable.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "duty-scheduler",
3
+ "action": "duty-scheduler",
4
+ "executable": "duty-scheduler",
5
+ "describe": "Schedule due duty folders."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Duty Tick
2
+
3
+ Run one scheduled duty folder using its duty prompt, staff persona, tools, and state.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "duty-tick",
3
+ "action": "duty-tick",
4
+ "executable": "duty-tick",
5
+ "describe": "Run one folder duty tick."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Duty Tick Scripted
2
+
3
+ Run one scheduled duty folder through its deterministic tick script and persist the next duty state.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "duty-tick-scripted",
3
+ "action": "duty-tick-scripted",
4
+ "executable": "duty-tick-scripted",
5
+ "describe": "Run one scripted folder duty tick."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Goal Scheduler
2
+
3
+ Scan active goal state and run one goal tick per active goal.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "goal-scheduler",
3
+ "action": "goal-scheduler",
4
+ "executable": "goal-scheduler",
5
+ "describe": "Schedule active goals."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Goal Tick
2
+
3
+ Read one goal state file, dispatch the next ready task, or finalize the goal when all tasks are complete.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "goal-tick",
3
+ "action": "goal-tick",
4
+ "executable": "goal-tick",
5
+ "describe": "Advance one goal."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Job Live Verify
2
+
3
+ Verify live job reference, staff, duty, executable, skill, and state wiring.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "job-live-verify",
3
+ "action": "job-live-verify",
4
+ "executable": "job-live-verify",
5
+ "describe": "Verify live job wiring."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Plan Verify
2
+
3
+ Verify one planned task slice.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "plan-verify",
3
+ "action": "plan-verify",
4
+ "executable": "plan-verify",
5
+ "describe": "Verify a planned task slice."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Probe Skill
2
+
3
+ Run the probe skill test executable.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "probe-skill",
3
+ "action": "probe-skill",
4
+ "executable": "probe-skill",
5
+ "describe": "Run the probe skill test executable."
6
+ }
@@ -0,0 +1,3 @@
1
+ # QA Goal
2
+
3
+ Run one QA goal workflow.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "qa-goal",
3
+ "action": "qa-goal",
4
+ "executable": "qa-goal",
5
+ "describe": "Run a QA goal."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Task Job Fail Once
2
+
3
+ Fail the first run and pass after a recorded failed attempt.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "task-job-fail-once",
3
+ "action": "task-job-fail-once",
4
+ "executable": "task-job-fail-once",
5
+ "describe": "Fail once for task job retry verification."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Task Job Pass A
2
+
3
+ Run task job pass test A.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "task-job-pass-a",
3
+ "action": "task-job-pass-a",
4
+ "executable": "task-job-pass-a",
5
+ "describe": "Pass task job test A."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Task Job Pass B
2
+
3
+ Run task job pass test B.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "task-job-pass-b",
3
+ "action": "task-job-pass-b",
4
+ "executable": "task-job-pass-b",
5
+ "describe": "Pass task job test B."
6
+ }
@@ -0,0 +1,3 @@
1
+ # Task Jobs
2
+
3
+ Drain the next pending planned task job and return until the plan is complete.
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "task-jobs",
3
+ "action": "task-jobs",
4
+ "executable": "task-jobs",
5
+ "describe": "Run planned task jobs."
6
+ }
@@ -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: string; cliArgs: Record<string, unknown> }
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: string; cliArgs: Record<string, unknown> }
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 REFERENCES the reusable nouns `executable` (how),
456
- // `persona` (who), `duty` (why, by slug) and OWNS its `schedule` (when).
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
- // Fields are optional-heavy on purpose: a comment-minted instant job carries
463
- // `executable` + inline `why`; a cron-minted scheduled job carries `duty` +
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: executable (profile) name to run. 0–1; omitted when intent is
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.221",
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",