@kody-ade/kody-engine 0.4.204-next.2 → 0.4.204-next.4

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.
@@ -49,6 +49,14 @@ export interface Profile {
49
49
  * `schedule:`). Scheduled profiles must declare a `schedule` cron string.
50
50
  */
51
51
  kind: "oneshot" | "scheduled"
52
+ /**
53
+ * Recurrence cadence for a duty that runs on a timer (unified successor to a
54
+ * markdown duty's `every:` frontmatter). One of the ScheduleEvery values
55
+ * ("15m".."7d" | "manual"). Present → the duty-scheduler fires a one-shot run
56
+ * when due (no target). Absent → on-demand only (runs against an issue/PR).
57
+ * This is what makes "scheduled" just a field on the one duty shape.
58
+ */
59
+ every?: string
52
60
  /** Cron expression for scheduled profiles (e.g. "0 8 * * MON"). */
53
61
  schedule?: string
54
62
  /**
@@ -136,6 +144,14 @@ export interface Profile {
136
144
  * ENOENT even though profile.json (read here, earlier) loaded fine.
137
145
  */
138
146
  promptTemplates?: Record<string, string>
147
+ /**
148
+ * Subagent markdown captured (by declared name) at load time, BEFORE any
149
+ * task branch switch — same rationale as promptTemplates. loadSubagents
150
+ * prefers this snapshot so a duty's `agents/` surviving only on the default
151
+ * checkout (e.g. `.kody/duties/<slug>/agents/` absent on a PR branch) doesn't
152
+ * crash a PR-targeted duty. Populated by captureSubagentTemplates.
153
+ */
154
+ subagentTemplates?: Record<string, string>
139
155
  }
140
156
 
141
157
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.204-next.2",
3
+ "version": "0.4.204-next.4",
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",