@generacy-ai/cockpit 0.7.0 → 0.8.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/config/loader.ts"],"names":[],"mappings":"AAIA,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,wBAAwB;IACvC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,CAAC;CAC1C;AAuBD,wBAAsB,iBAAiB,CACrC,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAAC,mBAAmB,CAAC,CA+C9B"}
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/config/loader.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,wBAAwB;IACvC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,CAAC;CAC1C;AAuBD,wBAAsB,iBAAiB,CACrC,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAAC,mBAAmB,CAAC,CAoE9B"}
@@ -2,7 +2,7 @@ import { readFile } from 'node:fs/promises';
2
2
  import { existsSync } from 'node:fs';
3
3
  import { findWorkspaceConfigPath } from '@generacy-ai/config';
4
4
  import { parse as parseYaml } from 'yaml';
5
- import { CockpitConfigSchema, } from './schema.js';
5
+ import { CockpitAutoConfigSchema, CockpitBaseConfigSchema, } from './schema.js';
6
6
  async function parseGhWhoami() {
7
7
  const { execFile } = await import('node:child_process');
8
8
  return new Promise((resolve) => {
@@ -50,8 +50,28 @@ export async function loadCockpitConfig(options = {}) {
50
50
  cockpitBlock = doc['cockpit'];
51
51
  }
52
52
  }
53
- const parsedCockpit = CockpitConfigSchema.parse(cockpitBlock ?? {});
54
- const source = parsedCockpit.owner != null || parsedCockpit.assignee != null ? 'cockpit-block' : 'defaults';
53
+ const parsedCockpit = CockpitBaseConfigSchema.parse(cockpitBlock ?? {});
54
+ // `auto` degrades to a warning on parse failure so a bad (or newer) auto
55
+ // block never breaks owner/assignee consumers (advance, queue, resume, …).
56
+ let auto;
57
+ if (cockpitBlock != null && typeof cockpitBlock === 'object') {
58
+ const autoRaw = cockpitBlock['auto'];
59
+ if (autoRaw !== undefined) {
60
+ const autoResult = CockpitAutoConfigSchema.safeParse(autoRaw);
61
+ if (autoResult.success) {
62
+ auto = autoResult.data;
63
+ }
64
+ else {
65
+ const detail = autoResult.error.issues
66
+ .map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`)
67
+ .join('; ');
68
+ warnings.push(`cockpit.auto ignored (invalid): ${detail}`);
69
+ }
70
+ }
71
+ }
72
+ const source = parsedCockpit.owner != null || parsedCockpit.assignee != null || auto != null
73
+ ? 'cockpit-block'
74
+ : 'defaults';
55
75
  let owner = parsedCockpit.owner;
56
76
  if (owner == null) {
57
77
  try {
@@ -64,7 +84,7 @@ export async function loadCockpitConfig(options = {}) {
64
84
  // gh failure is non-fatal — leave owner undefined.
65
85
  }
66
86
  }
67
- const config = { owner, assignee: parsedCockpit.assignee };
87
+ const config = { owner, assignee: parsedCockpit.assignee, auto };
68
88
  return { config, source, warnings };
69
89
  }
70
90
  //# sourceMappingURL=loader.js.map
@@ -1 +1 @@
1
- {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I,GAAG,UAAU,CAAC,IAAI,CAAC;YACzB,CAAC;iBAAM,CAAC;gBACN,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,MAAM;qBACnC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;qBACvE,IAAI,CAAC,IAAI,CAAC,CAAC;gBACd,QAAQ,CAAC,IAAI,CAAC,mCAAmC,MAAM,EAAE,CAAC,CAAC;YAC7D,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GACV,aAAa,CAAC,KAAK,IAAI,IAAI,IAAI,aAAa,CAAC,QAAQ,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI;QAC3E,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,UAAU,CAAC;IAEjB,IAAI,KAAK,GAAuB,aAAa,CAAC,KAAK,CAAC;IACpD,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,MAAM,MAAM,EAAE,CAAC;YAC7B,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACtC,KAAK,GAAG,KAAK,CAAC;YAChB,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,mDAAmD;QACrD,CAAC;IACH,CAAC;IAED,MAAM,MAAM,GAAkB,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;IAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AACtC,CAAC"}
@@ -1,13 +1,758 @@
1
1
  import { z } from 'zod';
2
+ /**
3
+ * Named analysis roles the `/cockpit:auto` playbook dispatches to subagents.
4
+ * Mirrors the agent files shipped in `claude-plugin-cockpit/agents/`.
5
+ */
6
+ export declare const COCKPIT_AGENT_ROLES: readonly ["clarifier", "reviewer", "validator", "fixer", "diagnoser"];
7
+ export type CockpitAgentRole = (typeof COCKPIT_AGENT_ROLES)[number];
8
+ /**
9
+ * Per-role agent selectors for `/cockpit:auto` subagents. Each entry reuses
10
+ * the orchestrator's `AgentEntrySchema` shape (`{ provider?, model?, effort? }`).
11
+ * Resolution: role entry → `default` → inherit the loop session's model.
12
+ */
13
+ export declare const CockpitAutoAgentsSchema: z.ZodObject<{
14
+ default: z.ZodOptional<z.ZodObject<{
15
+ provider: z.ZodOptional<z.ZodString>;
16
+ model: z.ZodOptional<z.ZodString>;
17
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
18
+ }, "strict", z.ZodTypeAny, {
19
+ provider?: string | undefined;
20
+ model?: string | undefined;
21
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
22
+ }, {
23
+ provider?: string | undefined;
24
+ model?: string | undefined;
25
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
26
+ }>>;
27
+ clarifier: z.ZodOptional<z.ZodObject<{
28
+ provider: z.ZodOptional<z.ZodString>;
29
+ model: z.ZodOptional<z.ZodString>;
30
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
31
+ }, "strict", z.ZodTypeAny, {
32
+ provider?: string | undefined;
33
+ model?: string | undefined;
34
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
35
+ }, {
36
+ provider?: string | undefined;
37
+ model?: string | undefined;
38
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
39
+ }>>;
40
+ reviewer: z.ZodOptional<z.ZodObject<{
41
+ provider: z.ZodOptional<z.ZodString>;
42
+ model: z.ZodOptional<z.ZodString>;
43
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
44
+ }, "strict", z.ZodTypeAny, {
45
+ provider?: string | undefined;
46
+ model?: string | undefined;
47
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
48
+ }, {
49
+ provider?: string | undefined;
50
+ model?: string | undefined;
51
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
52
+ }>>;
53
+ validator: z.ZodOptional<z.ZodObject<{
54
+ provider: z.ZodOptional<z.ZodString>;
55
+ model: z.ZodOptional<z.ZodString>;
56
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
57
+ }, "strict", z.ZodTypeAny, {
58
+ provider?: string | undefined;
59
+ model?: string | undefined;
60
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
61
+ }, {
62
+ provider?: string | undefined;
63
+ model?: string | undefined;
64
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
65
+ }>>;
66
+ fixer: z.ZodOptional<z.ZodObject<{
67
+ provider: z.ZodOptional<z.ZodString>;
68
+ model: z.ZodOptional<z.ZodString>;
69
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
70
+ }, "strict", z.ZodTypeAny, {
71
+ provider?: string | undefined;
72
+ model?: string | undefined;
73
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
74
+ }, {
75
+ provider?: string | undefined;
76
+ model?: string | undefined;
77
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
78
+ }>>;
79
+ diagnoser: z.ZodOptional<z.ZodObject<{
80
+ provider: z.ZodOptional<z.ZodString>;
81
+ model: z.ZodOptional<z.ZodString>;
82
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
83
+ }, "strict", z.ZodTypeAny, {
84
+ provider?: string | undefined;
85
+ model?: string | undefined;
86
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
87
+ }, {
88
+ provider?: string | undefined;
89
+ model?: string | undefined;
90
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
91
+ }>>;
92
+ }, "strict", z.ZodTypeAny, {
93
+ clarifier?: {
94
+ provider?: string | undefined;
95
+ model?: string | undefined;
96
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
97
+ } | undefined;
98
+ reviewer?: {
99
+ provider?: string | undefined;
100
+ model?: string | undefined;
101
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
102
+ } | undefined;
103
+ validator?: {
104
+ provider?: string | undefined;
105
+ model?: string | undefined;
106
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
107
+ } | undefined;
108
+ fixer?: {
109
+ provider?: string | undefined;
110
+ model?: string | undefined;
111
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
112
+ } | undefined;
113
+ diagnoser?: {
114
+ provider?: string | undefined;
115
+ model?: string | undefined;
116
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
117
+ } | undefined;
118
+ default?: {
119
+ provider?: string | undefined;
120
+ model?: string | undefined;
121
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
122
+ } | undefined;
123
+ }, {
124
+ clarifier?: {
125
+ provider?: string | undefined;
126
+ model?: string | undefined;
127
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
128
+ } | undefined;
129
+ reviewer?: {
130
+ provider?: string | undefined;
131
+ model?: string | undefined;
132
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
133
+ } | undefined;
134
+ validator?: {
135
+ provider?: string | undefined;
136
+ model?: string | undefined;
137
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
138
+ } | undefined;
139
+ fixer?: {
140
+ provider?: string | undefined;
141
+ model?: string | undefined;
142
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
143
+ } | undefined;
144
+ diagnoser?: {
145
+ provider?: string | undefined;
146
+ model?: string | undefined;
147
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
148
+ } | undefined;
149
+ default?: {
150
+ provider?: string | undefined;
151
+ model?: string | undefined;
152
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
153
+ } | undefined;
154
+ }>;
155
+ export type CockpitAutoAgents = z.infer<typeof CockpitAutoAgentsSchema>;
156
+ /**
157
+ * `cockpit.auto` block — configuration for the `/cockpit:auto` run loop.
158
+ *
159
+ * - `loop`: model/effort for the dispatch loop session itself. Consumed by
160
+ * launchers that start a `/cockpit:auto` session headlessly (the playbook
161
+ * cannot change its own session model mid-run).
162
+ * - `heartbeatSeconds`: base interval for the belt-and-braces heartbeat
163
+ * (default 300). The playbook backs off from this base while drains stay
164
+ * empty; clamped to the harness ScheduleWakeup range [60, 3600].
165
+ * - `quiet`: suppress transcript narration (ledger echoes, status tables,
166
+ * printed run summary) for headless runs. Durable records (ledger file,
167
+ * tracking-issue comments) are unaffected.
168
+ * - `agents`: per-role model/effort overrides for the analysis subagents.
169
+ */
170
+ export declare const CockpitAutoConfigSchema: z.ZodObject<{
171
+ loop: z.ZodOptional<z.ZodObject<{
172
+ provider: z.ZodOptional<z.ZodString>;
173
+ model: z.ZodOptional<z.ZodString>;
174
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
175
+ }, "strict", z.ZodTypeAny, {
176
+ provider?: string | undefined;
177
+ model?: string | undefined;
178
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
179
+ }, {
180
+ provider?: string | undefined;
181
+ model?: string | undefined;
182
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
183
+ }>>;
184
+ heartbeatSeconds: z.ZodOptional<z.ZodNumber>;
185
+ quiet: z.ZodOptional<z.ZodBoolean>;
186
+ agents: z.ZodOptional<z.ZodObject<{
187
+ default: z.ZodOptional<z.ZodObject<{
188
+ provider: z.ZodOptional<z.ZodString>;
189
+ model: z.ZodOptional<z.ZodString>;
190
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
191
+ }, "strict", z.ZodTypeAny, {
192
+ provider?: string | undefined;
193
+ model?: string | undefined;
194
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
195
+ }, {
196
+ provider?: string | undefined;
197
+ model?: string | undefined;
198
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
199
+ }>>;
200
+ clarifier: z.ZodOptional<z.ZodObject<{
201
+ provider: z.ZodOptional<z.ZodString>;
202
+ model: z.ZodOptional<z.ZodString>;
203
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
204
+ }, "strict", z.ZodTypeAny, {
205
+ provider?: string | undefined;
206
+ model?: string | undefined;
207
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
208
+ }, {
209
+ provider?: string | undefined;
210
+ model?: string | undefined;
211
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
212
+ }>>;
213
+ reviewer: z.ZodOptional<z.ZodObject<{
214
+ provider: z.ZodOptional<z.ZodString>;
215
+ model: z.ZodOptional<z.ZodString>;
216
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
217
+ }, "strict", z.ZodTypeAny, {
218
+ provider?: string | undefined;
219
+ model?: string | undefined;
220
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
221
+ }, {
222
+ provider?: string | undefined;
223
+ model?: string | undefined;
224
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
225
+ }>>;
226
+ validator: z.ZodOptional<z.ZodObject<{
227
+ provider: z.ZodOptional<z.ZodString>;
228
+ model: z.ZodOptional<z.ZodString>;
229
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
230
+ }, "strict", z.ZodTypeAny, {
231
+ provider?: string | undefined;
232
+ model?: string | undefined;
233
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
234
+ }, {
235
+ provider?: string | undefined;
236
+ model?: string | undefined;
237
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
238
+ }>>;
239
+ fixer: z.ZodOptional<z.ZodObject<{
240
+ provider: z.ZodOptional<z.ZodString>;
241
+ model: z.ZodOptional<z.ZodString>;
242
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
243
+ }, "strict", z.ZodTypeAny, {
244
+ provider?: string | undefined;
245
+ model?: string | undefined;
246
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
247
+ }, {
248
+ provider?: string | undefined;
249
+ model?: string | undefined;
250
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
251
+ }>>;
252
+ diagnoser: z.ZodOptional<z.ZodObject<{
253
+ provider: z.ZodOptional<z.ZodString>;
254
+ model: z.ZodOptional<z.ZodString>;
255
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
256
+ }, "strict", z.ZodTypeAny, {
257
+ provider?: string | undefined;
258
+ model?: string | undefined;
259
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
260
+ }, {
261
+ provider?: string | undefined;
262
+ model?: string | undefined;
263
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
264
+ }>>;
265
+ }, "strict", z.ZodTypeAny, {
266
+ clarifier?: {
267
+ provider?: string | undefined;
268
+ model?: string | undefined;
269
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
270
+ } | undefined;
271
+ reviewer?: {
272
+ provider?: string | undefined;
273
+ model?: string | undefined;
274
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
275
+ } | undefined;
276
+ validator?: {
277
+ provider?: string | undefined;
278
+ model?: string | undefined;
279
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
280
+ } | undefined;
281
+ fixer?: {
282
+ provider?: string | undefined;
283
+ model?: string | undefined;
284
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
285
+ } | undefined;
286
+ diagnoser?: {
287
+ provider?: string | undefined;
288
+ model?: string | undefined;
289
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
290
+ } | undefined;
291
+ default?: {
292
+ provider?: string | undefined;
293
+ model?: string | undefined;
294
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
295
+ } | undefined;
296
+ }, {
297
+ clarifier?: {
298
+ provider?: string | undefined;
299
+ model?: string | undefined;
300
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
301
+ } | undefined;
302
+ reviewer?: {
303
+ provider?: string | undefined;
304
+ model?: string | undefined;
305
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
306
+ } | undefined;
307
+ validator?: {
308
+ provider?: string | undefined;
309
+ model?: string | undefined;
310
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
311
+ } | undefined;
312
+ fixer?: {
313
+ provider?: string | undefined;
314
+ model?: string | undefined;
315
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
316
+ } | undefined;
317
+ diagnoser?: {
318
+ provider?: string | undefined;
319
+ model?: string | undefined;
320
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
321
+ } | undefined;
322
+ default?: {
323
+ provider?: string | undefined;
324
+ model?: string | undefined;
325
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
326
+ } | undefined;
327
+ }>>;
328
+ }, "strict", z.ZodTypeAny, {
329
+ loop?: {
330
+ provider?: string | undefined;
331
+ model?: string | undefined;
332
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
333
+ } | undefined;
334
+ heartbeatSeconds?: number | undefined;
335
+ quiet?: boolean | undefined;
336
+ agents?: {
337
+ clarifier?: {
338
+ provider?: string | undefined;
339
+ model?: string | undefined;
340
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
341
+ } | undefined;
342
+ reviewer?: {
343
+ provider?: string | undefined;
344
+ model?: string | undefined;
345
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
346
+ } | undefined;
347
+ validator?: {
348
+ provider?: string | undefined;
349
+ model?: string | undefined;
350
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
351
+ } | undefined;
352
+ fixer?: {
353
+ provider?: string | undefined;
354
+ model?: string | undefined;
355
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
356
+ } | undefined;
357
+ diagnoser?: {
358
+ provider?: string | undefined;
359
+ model?: string | undefined;
360
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
361
+ } | undefined;
362
+ default?: {
363
+ provider?: string | undefined;
364
+ model?: string | undefined;
365
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
366
+ } | undefined;
367
+ } | undefined;
368
+ }, {
369
+ loop?: {
370
+ provider?: string | undefined;
371
+ model?: string | undefined;
372
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
373
+ } | undefined;
374
+ heartbeatSeconds?: number | undefined;
375
+ quiet?: boolean | undefined;
376
+ agents?: {
377
+ clarifier?: {
378
+ provider?: string | undefined;
379
+ model?: string | undefined;
380
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
381
+ } | undefined;
382
+ reviewer?: {
383
+ provider?: string | undefined;
384
+ model?: string | undefined;
385
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
386
+ } | undefined;
387
+ validator?: {
388
+ provider?: string | undefined;
389
+ model?: string | undefined;
390
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
391
+ } | undefined;
392
+ fixer?: {
393
+ provider?: string | undefined;
394
+ model?: string | undefined;
395
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
396
+ } | undefined;
397
+ diagnoser?: {
398
+ provider?: string | undefined;
399
+ model?: string | undefined;
400
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
401
+ } | undefined;
402
+ default?: {
403
+ provider?: string | undefined;
404
+ model?: string | undefined;
405
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
406
+ } | undefined;
407
+ } | undefined;
408
+ }>;
409
+ export type CockpitAutoConfig = z.infer<typeof CockpitAutoConfigSchema>;
410
+ /**
411
+ * Base `cockpit:` block fields. Parsed strictly-throwing by the loader (as
412
+ * before); kept separate from `auto` so an invalid `auto` block degrades to a
413
+ * warning instead of breaking `owner`/`assignee` consumers.
414
+ */
415
+ export declare const CockpitBaseConfigSchema: z.ZodObject<{
416
+ owner: z.ZodOptional<z.ZodString>;
417
+ assignee: z.ZodOptional<z.ZodString>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ owner?: string | undefined;
420
+ assignee?: string | undefined;
421
+ }, {
422
+ owner?: string | undefined;
423
+ assignee?: string | undefined;
424
+ }>;
2
425
  export declare const CockpitConfigSchema: z.ZodObject<{
3
426
  owner: z.ZodOptional<z.ZodString>;
4
427
  assignee: z.ZodOptional<z.ZodString>;
428
+ } & {
429
+ auto: z.ZodOptional<z.ZodObject<{
430
+ loop: z.ZodOptional<z.ZodObject<{
431
+ provider: z.ZodOptional<z.ZodString>;
432
+ model: z.ZodOptional<z.ZodString>;
433
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
434
+ }, "strict", z.ZodTypeAny, {
435
+ provider?: string | undefined;
436
+ model?: string | undefined;
437
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
438
+ }, {
439
+ provider?: string | undefined;
440
+ model?: string | undefined;
441
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
442
+ }>>;
443
+ heartbeatSeconds: z.ZodOptional<z.ZodNumber>;
444
+ quiet: z.ZodOptional<z.ZodBoolean>;
445
+ agents: z.ZodOptional<z.ZodObject<{
446
+ default: z.ZodOptional<z.ZodObject<{
447
+ provider: z.ZodOptional<z.ZodString>;
448
+ model: z.ZodOptional<z.ZodString>;
449
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
450
+ }, "strict", z.ZodTypeAny, {
451
+ provider?: string | undefined;
452
+ model?: string | undefined;
453
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
454
+ }, {
455
+ provider?: string | undefined;
456
+ model?: string | undefined;
457
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
458
+ }>>;
459
+ clarifier: z.ZodOptional<z.ZodObject<{
460
+ provider: z.ZodOptional<z.ZodString>;
461
+ model: z.ZodOptional<z.ZodString>;
462
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
463
+ }, "strict", z.ZodTypeAny, {
464
+ provider?: string | undefined;
465
+ model?: string | undefined;
466
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
467
+ }, {
468
+ provider?: string | undefined;
469
+ model?: string | undefined;
470
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
471
+ }>>;
472
+ reviewer: z.ZodOptional<z.ZodObject<{
473
+ provider: z.ZodOptional<z.ZodString>;
474
+ model: z.ZodOptional<z.ZodString>;
475
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
476
+ }, "strict", z.ZodTypeAny, {
477
+ provider?: string | undefined;
478
+ model?: string | undefined;
479
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
480
+ }, {
481
+ provider?: string | undefined;
482
+ model?: string | undefined;
483
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
484
+ }>>;
485
+ validator: z.ZodOptional<z.ZodObject<{
486
+ provider: z.ZodOptional<z.ZodString>;
487
+ model: z.ZodOptional<z.ZodString>;
488
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
489
+ }, "strict", z.ZodTypeAny, {
490
+ provider?: string | undefined;
491
+ model?: string | undefined;
492
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
493
+ }, {
494
+ provider?: string | undefined;
495
+ model?: string | undefined;
496
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
497
+ }>>;
498
+ fixer: z.ZodOptional<z.ZodObject<{
499
+ provider: z.ZodOptional<z.ZodString>;
500
+ model: z.ZodOptional<z.ZodString>;
501
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
502
+ }, "strict", z.ZodTypeAny, {
503
+ provider?: string | undefined;
504
+ model?: string | undefined;
505
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
506
+ }, {
507
+ provider?: string | undefined;
508
+ model?: string | undefined;
509
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
510
+ }>>;
511
+ diagnoser: z.ZodOptional<z.ZodObject<{
512
+ provider: z.ZodOptional<z.ZodString>;
513
+ model: z.ZodOptional<z.ZodString>;
514
+ effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
515
+ }, "strict", z.ZodTypeAny, {
516
+ provider?: string | undefined;
517
+ model?: string | undefined;
518
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
519
+ }, {
520
+ provider?: string | undefined;
521
+ model?: string | undefined;
522
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
523
+ }>>;
524
+ }, "strict", z.ZodTypeAny, {
525
+ clarifier?: {
526
+ provider?: string | undefined;
527
+ model?: string | undefined;
528
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
529
+ } | undefined;
530
+ reviewer?: {
531
+ provider?: string | undefined;
532
+ model?: string | undefined;
533
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
534
+ } | undefined;
535
+ validator?: {
536
+ provider?: string | undefined;
537
+ model?: string | undefined;
538
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
539
+ } | undefined;
540
+ fixer?: {
541
+ provider?: string | undefined;
542
+ model?: string | undefined;
543
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
544
+ } | undefined;
545
+ diagnoser?: {
546
+ provider?: string | undefined;
547
+ model?: string | undefined;
548
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
549
+ } | undefined;
550
+ default?: {
551
+ provider?: string | undefined;
552
+ model?: string | undefined;
553
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
554
+ } | undefined;
555
+ }, {
556
+ clarifier?: {
557
+ provider?: string | undefined;
558
+ model?: string | undefined;
559
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
560
+ } | undefined;
561
+ reviewer?: {
562
+ provider?: string | undefined;
563
+ model?: string | undefined;
564
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
565
+ } | undefined;
566
+ validator?: {
567
+ provider?: string | undefined;
568
+ model?: string | undefined;
569
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
570
+ } | undefined;
571
+ fixer?: {
572
+ provider?: string | undefined;
573
+ model?: string | undefined;
574
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
575
+ } | undefined;
576
+ diagnoser?: {
577
+ provider?: string | undefined;
578
+ model?: string | undefined;
579
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
580
+ } | undefined;
581
+ default?: {
582
+ provider?: string | undefined;
583
+ model?: string | undefined;
584
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
585
+ } | undefined;
586
+ }>>;
587
+ }, "strict", z.ZodTypeAny, {
588
+ loop?: {
589
+ provider?: string | undefined;
590
+ model?: string | undefined;
591
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
592
+ } | undefined;
593
+ heartbeatSeconds?: number | undefined;
594
+ quiet?: boolean | undefined;
595
+ agents?: {
596
+ clarifier?: {
597
+ provider?: string | undefined;
598
+ model?: string | undefined;
599
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
600
+ } | undefined;
601
+ reviewer?: {
602
+ provider?: string | undefined;
603
+ model?: string | undefined;
604
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
605
+ } | undefined;
606
+ validator?: {
607
+ provider?: string | undefined;
608
+ model?: string | undefined;
609
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
610
+ } | undefined;
611
+ fixer?: {
612
+ provider?: string | undefined;
613
+ model?: string | undefined;
614
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
615
+ } | undefined;
616
+ diagnoser?: {
617
+ provider?: string | undefined;
618
+ model?: string | undefined;
619
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
620
+ } | undefined;
621
+ default?: {
622
+ provider?: string | undefined;
623
+ model?: string | undefined;
624
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
625
+ } | undefined;
626
+ } | undefined;
627
+ }, {
628
+ loop?: {
629
+ provider?: string | undefined;
630
+ model?: string | undefined;
631
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
632
+ } | undefined;
633
+ heartbeatSeconds?: number | undefined;
634
+ quiet?: boolean | undefined;
635
+ agents?: {
636
+ clarifier?: {
637
+ provider?: string | undefined;
638
+ model?: string | undefined;
639
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
640
+ } | undefined;
641
+ reviewer?: {
642
+ provider?: string | undefined;
643
+ model?: string | undefined;
644
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
645
+ } | undefined;
646
+ validator?: {
647
+ provider?: string | undefined;
648
+ model?: string | undefined;
649
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
650
+ } | undefined;
651
+ fixer?: {
652
+ provider?: string | undefined;
653
+ model?: string | undefined;
654
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
655
+ } | undefined;
656
+ diagnoser?: {
657
+ provider?: string | undefined;
658
+ model?: string | undefined;
659
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
660
+ } | undefined;
661
+ default?: {
662
+ provider?: string | undefined;
663
+ model?: string | undefined;
664
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
665
+ } | undefined;
666
+ } | undefined;
667
+ }>>;
5
668
  }, "strip", z.ZodTypeAny, {
6
669
  owner?: string | undefined;
7
670
  assignee?: string | undefined;
671
+ auto?: {
672
+ loop?: {
673
+ provider?: string | undefined;
674
+ model?: string | undefined;
675
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
676
+ } | undefined;
677
+ heartbeatSeconds?: number | undefined;
678
+ quiet?: boolean | undefined;
679
+ agents?: {
680
+ clarifier?: {
681
+ provider?: string | undefined;
682
+ model?: string | undefined;
683
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
684
+ } | undefined;
685
+ reviewer?: {
686
+ provider?: string | undefined;
687
+ model?: string | undefined;
688
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
689
+ } | undefined;
690
+ validator?: {
691
+ provider?: string | undefined;
692
+ model?: string | undefined;
693
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
694
+ } | undefined;
695
+ fixer?: {
696
+ provider?: string | undefined;
697
+ model?: string | undefined;
698
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
699
+ } | undefined;
700
+ diagnoser?: {
701
+ provider?: string | undefined;
702
+ model?: string | undefined;
703
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
704
+ } | undefined;
705
+ default?: {
706
+ provider?: string | undefined;
707
+ model?: string | undefined;
708
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
709
+ } | undefined;
710
+ } | undefined;
711
+ } | undefined;
8
712
  }, {
9
713
  owner?: string | undefined;
10
714
  assignee?: string | undefined;
715
+ auto?: {
716
+ loop?: {
717
+ provider?: string | undefined;
718
+ model?: string | undefined;
719
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
720
+ } | undefined;
721
+ heartbeatSeconds?: number | undefined;
722
+ quiet?: boolean | undefined;
723
+ agents?: {
724
+ clarifier?: {
725
+ provider?: string | undefined;
726
+ model?: string | undefined;
727
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
728
+ } | undefined;
729
+ reviewer?: {
730
+ provider?: string | undefined;
731
+ model?: string | undefined;
732
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
733
+ } | undefined;
734
+ validator?: {
735
+ provider?: string | undefined;
736
+ model?: string | undefined;
737
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
738
+ } | undefined;
739
+ fixer?: {
740
+ provider?: string | undefined;
741
+ model?: string | undefined;
742
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
743
+ } | undefined;
744
+ diagnoser?: {
745
+ provider?: string | undefined;
746
+ model?: string | undefined;
747
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
748
+ } | undefined;
749
+ default?: {
750
+ provider?: string | undefined;
751
+ model?: string | undefined;
752
+ effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
753
+ } | undefined;
754
+ } | undefined;
755
+ } | undefined;
11
756
  }>;
12
757
  export type CockpitConfig = z.infer<typeof CockpitConfigSchema>;
13
758
  export type CockpitConfigSource = 'cockpit-block' | 'defaults';
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,UAAU,CAAC;AAE/D,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,UAAU,CAAC;AAE/D,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB"}
@@ -1,6 +1,63 @@
1
1
  import { z } from 'zod';
2
- export const CockpitConfigSchema = z.object({
2
+ import { AgentEntrySchema } from '@generacy-ai/config';
3
+ /**
4
+ * Named analysis roles the `/cockpit:auto` playbook dispatches to subagents.
5
+ * Mirrors the agent files shipped in `claude-plugin-cockpit/agents/`.
6
+ */
7
+ export const COCKPIT_AGENT_ROLES = [
8
+ 'clarifier',
9
+ 'reviewer',
10
+ 'validator',
11
+ 'fixer',
12
+ 'diagnoser',
13
+ ];
14
+ /**
15
+ * Per-role agent selectors for `/cockpit:auto` subagents. Each entry reuses
16
+ * the orchestrator's `AgentEntrySchema` shape (`{ provider?, model?, effort? }`).
17
+ * Resolution: role entry → `default` → inherit the loop session's model.
18
+ */
19
+ export const CockpitAutoAgentsSchema = z
20
+ .object({
21
+ default: AgentEntrySchema.optional(),
22
+ clarifier: AgentEntrySchema.optional(),
23
+ reviewer: AgentEntrySchema.optional(),
24
+ validator: AgentEntrySchema.optional(),
25
+ fixer: AgentEntrySchema.optional(),
26
+ diagnoser: AgentEntrySchema.optional(),
27
+ })
28
+ .strict();
29
+ /**
30
+ * `cockpit.auto` block — configuration for the `/cockpit:auto` run loop.
31
+ *
32
+ * - `loop`: model/effort for the dispatch loop session itself. Consumed by
33
+ * launchers that start a `/cockpit:auto` session headlessly (the playbook
34
+ * cannot change its own session model mid-run).
35
+ * - `heartbeatSeconds`: base interval for the belt-and-braces heartbeat
36
+ * (default 300). The playbook backs off from this base while drains stay
37
+ * empty; clamped to the harness ScheduleWakeup range [60, 3600].
38
+ * - `quiet`: suppress transcript narration (ledger echoes, status tables,
39
+ * printed run summary) for headless runs. Durable records (ledger file,
40
+ * tracking-issue comments) are unaffected.
41
+ * - `agents`: per-role model/effort overrides for the analysis subagents.
42
+ */
43
+ export const CockpitAutoConfigSchema = z
44
+ .object({
45
+ loop: AgentEntrySchema.optional(),
46
+ heartbeatSeconds: z.number().int().min(60).max(3600).optional(),
47
+ quiet: z.boolean().optional(),
48
+ agents: CockpitAutoAgentsSchema.optional(),
49
+ })
50
+ .strict();
51
+ /**
52
+ * Base `cockpit:` block fields. Parsed strictly-throwing by the loader (as
53
+ * before); kept separate from `auto` so an invalid `auto` block degrades to a
54
+ * warning instead of breaking `owner`/`assignee` consumers.
55
+ */
56
+ export const CockpitBaseConfigSchema = z.object({
3
57
  owner: z.string().min(1).optional(),
4
58
  assignee: z.string().min(1).optional(),
5
59
  });
60
+ export const CockpitConfigSchema = CockpitBaseConfigSchema.extend({
61
+ auto: CockpitAutoConfigSchema.optional(),
62
+ });
6
63
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
1
+ {"version":3,"file":"schema.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QAAQ,EAAE;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAChE,IAAI,EAAE,uBAAuB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { COCKPIT_STATES, type CockpitState, type ClassifyResult, } from './types.js';
2
2
  export { classify } from './state/classifier.js';
3
3
  export { TIER_RANK, WAITING_PIPELINE_ORDER } from './state/precedence.js';
4
- export { CockpitConfigSchema, type CockpitConfig, type CockpitConfigSource, type LoadedCockpitConfig, } from './config/schema.js';
4
+ export { CockpitConfigSchema, CockpitBaseConfigSchema, CockpitAutoConfigSchema, CockpitAutoAgentsSchema, COCKPIT_AGENT_ROLES, type CockpitConfig, type CockpitConfigSource, type CockpitAutoConfig, type CockpitAutoAgents, type CockpitAgentRole, type LoadedCockpitConfig, } from './config/schema.js';
5
5
  export { loadCockpitConfig, type LoadCockpitConfigOptions, } from './config/loader.js';
6
6
  export { parseEpicBody } from './resolver/parse-epic-body.js';
7
7
  export { resolveEpic } from './resolver/resolve.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,cAAc,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAG1E,OAAO,EACL,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iBAAiB,EACjB,KAAK,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Ac,EACd,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,UAAU,EAEf,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,UAAU,EAEf,cAAc,EACd,gBAAgB,EAChB,KAAK,QAAQ,IAAI,YAAY,EAE7B,aAAa,EACb,YAAY,EACZ,6BAA6B,EAC7B,8BAA8B,EAC9B,oCAAoC,EACpC,gCAAgC,EAChC,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B,EAE5B,iCAAiC,EACjC,KAAK,qBAAqB,EAC1B,KAAK,sCAAsC,EAE3C,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,iCAAiC,EACjC,KAAK,6BAA6B,EAElC,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,GAChC,MAAM,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ export { COCKPIT_STATES, } from './types.js';
5
5
  export { classify } from './state/classifier.js';
6
6
  export { TIER_RANK, WAITING_PIPELINE_ORDER } from './state/precedence.js';
7
7
  // Config
8
- export { CockpitConfigSchema, } from './config/schema.js';
8
+ export { CockpitConfigSchema, CockpitBaseConfigSchema, CockpitAutoConfigSchema, CockpitAutoAgentsSchema, COCKPIT_AGENT_ROLES, } from './config/schema.js';
9
9
  export { loadCockpitConfig, } from './config/loader.js';
10
10
  // Resolver (single-source epic discovery)
11
11
  export { parseEpicBody } from './resolver/parse-epic-body.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C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BAAwB,GAIzB,MAAM,8BAA8B,CAAC;AAEtC,2EAA2E;AAC3E,+EAA+E;AAC/E,6DAA6D;AAC7D,wEAAwE;AACxE,8EAA8E;AAC9E,kFAAkF;AAClF,8EAA8E;AAC9E,OAAO;AACL,6BAA6B;AAC7B,cAAc,EACd,iBAAiB,EACjB,gBAAgB;AAIhB,gBAAgB;AAChB,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB;AAIrB,qDAAqD;AACrD,cAAc,EACd,gBAAgB;AAEhB,aAAa;AACb,aAAa,EACb,YAAY,EACZ,6BAA6B,EAC7B,8BAA8B,EAC9B,oCAAoC,EACpC,gCAAgC,EAChC,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,4BAA4B;AAC5B,sFAAsF;AACtF,iCAAiC;AAGjC,WAAW;AACX,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,iCAAiC;AAEjC,0DAA0D;AAC1D,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,GAKtB,MAAM,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@generacy-ai/cockpit",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Foundation library for the Generacy Epic Cockpit: classifier, config loader, epic manifest, gh wrapper",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "yaml": "^2.4.0",
18
18
  "zod": "^3.23.0",
19
- "@generacy-ai/config": "0.4.0",
19
+ "@generacy-ai/config": "0.5.0",
20
20
  "@generacy-ai/workflow-engine": "0.5.0"
21
21
  },
22
22
  "devDependencies": {