@kody-ade/kody-engine 0.4.244 → 0.4.245

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.
@@ -56,10 +56,10 @@ export interface Profile {
56
56
  */
57
57
  role: "primitive" | "orchestrator" | "container" | "watch" | "utility"
58
58
  /**
59
- * A agentResponsibility is the WHY/WHEN layer: it references an agentAction (the HOW) by name
60
- * rather than embedding it. When set, the loader resolves that agentAction's
61
- * full profile (claudeCode/scripts/prompt/agents) and overlays this agentResponsibility's
62
- * name + agent (WHO) + every (WHEN) + mentions. Absent this profile IS an
59
+ * A agentResponsibility is the WHY layer: it references an agentAction (the HOW) by name
60
+ * rather than embedding it. When set, loader resolves the agentAction's
61
+ * full profile (claudeCode/scripts/prompt/agents) and overlays agentResponsibility's
62
+ * name + agent (WHO) + mentions. Absent -> this profile IS an
63
63
  * agentAction (defines its own how). agentAction = how, agent = who, agentResponsibility = why.
64
64
  */
65
65
  agentAction?: string
@@ -70,14 +70,6 @@ export interface Profile {
70
70
  * `schedule:`). Scheduled profiles must declare a `schedule` cron string.
71
71
  */
72
72
  kind: "oneshot" | "scheduled"
73
- /**
74
- * Recurrence cadence for a agentResponsibility that runs on a timer (unified successor to a
75
- * markdown agentResponsibility's `every:` metadata). One of the ScheduleEvery values
76
- * ("15m".."7d" | "manual"). Present → the agent-responsibility-scheduler fires a one-shot run
77
- * when due (no target). Absent → on-demand only (runs against an issue/PR).
78
- * This is what makes "scheduled" just a field on the one agentResponsibility shape.
79
- */
80
- every?: string
81
73
  /**
82
74
  * Locked-toolbox palette (unified successor to a markdown agentResponsibility's `tools:`
83
75
  * metadata). When non-empty, loadAgentResponsibilityState sets ctx.data.agentResponsibilityTools so the
@@ -477,21 +469,23 @@ export interface Context {
477
469
  * `@kody <next>` comment, which is silently ignored when Kody comments as
478
470
  * a GitHub App (bot author), stalling the pipeline at classify.
479
471
  */
480
- nextDispatch?: {
481
- action?: string
482
- agentResponsibility?: string
483
- agentAction?: string
484
- cliArgs: Record<string, unknown>
485
- }
472
+ nextDispatch?: {
473
+ action?: string
474
+ agentResponsibility?: string
475
+ agentAction?: string
476
+ cliArgs: Record<string, unknown>
477
+ saveReport?: boolean
478
+ }
486
479
  /** In-process hand-off to a full Job, preserving job identity in task state. */
487
480
  nextJob?: Job
488
481
  /** Where to return after nextJob succeeds. Used by task-jobs to keep draining pending work. */
489
- afterNextJob?: {
490
- action?: string
491
- agentResponsibility?: string
492
- agentAction?: string
493
- cliArgs: Record<string, unknown>
494
- }
482
+ afterNextJob?: {
483
+ action?: string
484
+ agentResponsibility?: string
485
+ agentAction?: string
486
+ cliArgs: Record<string, unknown>
487
+ saveReport?: boolean
488
+ }
495
489
  }
496
490
  /**
497
491
  * If a preflight script sets this to true, the executor skips the agent
@@ -558,4 +552,6 @@ export interface Job {
558
552
  flavor: JobFlavor
559
553
  /** Manual force-run (bypass cadence) for a scheduled job. */
560
554
  force?: boolean
555
+ /** Save this responsibility run output as reports/<responsibility>.md. */
556
+ saveReport?: boolean
561
557
  }