agent-dealer 1.2.13 → 1.2.15

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.
Files changed (49) hide show
  1. package/bundle/server/dist/adapters/git-worktree.js +15 -0
  2. package/bundle/server/dist/adapters/git-worktree.test.js +30 -0
  3. package/bundle/server/dist/adapters/linear-inbox.js +97 -0
  4. package/bundle/server/dist/adapters/linear-inbox.test.js +299 -1
  5. package/bundle/server/dist/adapters/linear-sync.js +33 -10
  6. package/bundle/server/dist/capacity/claude-events.js +25 -5
  7. package/bundle/server/dist/capacity/claude-local-cache.js +159 -13
  8. package/bundle/server/dist/capacity/claude-local-cache.test.js +191 -3
  9. package/bundle/server/dist/coordinator/auto-merge.js +10 -0
  10. package/bundle/server/dist/coordinator/branch-progress.js +5 -4
  11. package/bundle/server/dist/coordinator/commands.js +37 -3
  12. package/bundle/server/dist/coordinator/delete-issue.js +473 -0
  13. package/bundle/server/dist/coordinator/developer-effect.js +33 -6
  14. package/bundle/server/dist/coordinator/linear-merge-verify.js +382 -0
  15. package/bundle/server/dist/coordinator/linear-merge-verify.test.js +376 -0
  16. package/bundle/server/dist/coordinator/prompts.js +9 -1
  17. package/bundle/server/dist/coordinator/prompts.test.js +93 -0
  18. package/bundle/server/dist/coordinator/source-attachments.js +496 -0
  19. package/bundle/server/dist/coordinator/source-attachments.test.js +396 -0
  20. package/bundle/server/dist/coordinator/source-reload.js +178 -0
  21. package/bundle/server/dist/db/index.js +4 -0
  22. package/bundle/server/dist/db/schema.sql +32 -0
  23. package/bundle/server/dist/docs-linear-attachments.test.js +36 -0
  24. package/bundle/server/dist/paths.js +12 -0
  25. package/bundle/server/dist/repository/runtime-capacity.js +19 -3
  26. package/bundle/server/dist/repository/source-attachments.js +56 -0
  27. package/bundle/server/dist/routes/human-actions.js +17 -0
  28. package/bundle/server/dist/routes/issues-delete.test.js +666 -0
  29. package/bundle/server/dist/routes/issues-execution-contract.test.js +296 -0
  30. package/bundle/server/dist/routes/issues-source-attachments.test.js +447 -0
  31. package/bundle/server/dist/routes/issues.js +109 -1
  32. package/bundle/server/dist/routes/runtime-capacity.test.js +35 -0
  33. package/bundle/server/package.json +2 -2
  34. package/bundle/server/static-ui/assets/index-DVyqblie.js +64 -0
  35. package/bundle/server/static-ui/index.html +1 -1
  36. package/bundle/shared/dist/index.d.ts +108 -2
  37. package/bundle/shared/dist/index.js +12 -1
  38. package/bundle/shared/dist/issues.d.ts +43 -2
  39. package/bundle/shared/dist/issues.js +10 -0
  40. package/bundle/shared/dist/linear-intake.d.ts +85 -0
  41. package/bundle/shared/dist/linear-intake.js +56 -0
  42. package/bundle/shared/dist/linear-intake.test.js +55 -1
  43. package/bundle/shared/dist/runtime-capacity.d.ts +147 -0
  44. package/bundle/shared/dist/runtime-capacity.js +15 -0
  45. package/bundle/shared/dist/workflow.d.ts +4 -4
  46. package/bundle/shared/dist/workflow.js +7 -0
  47. package/bundle/shared/package.json +1 -1
  48. package/package.json +1 -1
  49. package/bundle/server/static-ui/assets/index-BzLjMBI9.js +0 -64
@@ -25,6 +25,30 @@ export type CapacityUnavailableReason = z.infer<typeof CapacityUnavailableReason
25
25
  */
26
26
  export declare const CapacityCriticalRole: z.ZodEnum<["five_hour", "weekly"]>;
27
27
  export type CapacityCriticalRole = z.infer<typeof CapacityCriticalRole>;
28
+ /**
29
+ * NOT-366: why a window could not be acquired, as operator-readable text plus
30
+ * the failure streak — so a three-day break reads differently from one
31
+ * transient miss. `message` is plain prose (never an internal failure-kind
32
+ * or sentinel identifier). Absent/null whenever the window carries a reading
33
+ * from a successful acquisition.
34
+ */
35
+ export declare const CapacityUnavailableDetail: z.ZodObject<{
36
+ message: z.ZodString;
37
+ consecutiveFailures: z.ZodNumber;
38
+ firstFailureAt: z.ZodString;
39
+ lastFailureAt: z.ZodString;
40
+ }, "strip", z.ZodTypeAny, {
41
+ message: string;
42
+ consecutiveFailures: number;
43
+ firstFailureAt: string;
44
+ lastFailureAt: string;
45
+ }, {
46
+ message: string;
47
+ consecutiveFailures: number;
48
+ firstFailureAt: string;
49
+ lastFailureAt: string;
50
+ }>;
51
+ export type CapacityUnavailableDetail = z.infer<typeof CapacityUnavailableDetail>;
28
52
  export declare const CapacityWindowSnapshot: z.ZodObject<{
29
53
  /** Stable per-runtime key for this window (e.g. `weekly_all_models`). */
30
54
  windowKey: z.ZodString;
@@ -49,6 +73,23 @@ export declare const CapacityWindowSnapshot: z.ZodObject<{
49
73
  expiresAt: z.ZodNullable<z.ZodString>;
50
74
  source: z.ZodEnum<["supported_protocol", "observed_event", "experimental_api", "unavailable"]>;
51
75
  unavailableReason: z.ZodNullable<z.ZodEnum<["unsupported", "missing", "expired", "unparsable", "stale"]>>;
76
+ /** NOT-366: acquisition-failure explanation and streak (see above). */
77
+ unavailableDetail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
78
+ message: z.ZodString;
79
+ consecutiveFailures: z.ZodNumber;
80
+ firstFailureAt: z.ZodString;
81
+ lastFailureAt: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ message: string;
84
+ consecutiveFailures: number;
85
+ firstFailureAt: string;
86
+ lastFailureAt: string;
87
+ }, {
88
+ message: string;
89
+ consecutiveFailures: number;
90
+ firstFailureAt: string;
91
+ lastFailureAt: string;
92
+ }>>>;
52
93
  criticalRole: z.ZodNullable<z.ZodEnum<["five_hour", "weekly"]>>;
53
94
  }, "strip", z.ZodTypeAny, {
54
95
  observedAt: string;
@@ -65,6 +106,12 @@ export declare const CapacityWindowSnapshot: z.ZodObject<{
65
106
  expiresAt: string | null;
66
107
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
67
108
  criticalRole: "five_hour" | "weekly" | null;
109
+ unavailableDetail?: {
110
+ message: string;
111
+ consecutiveFailures: number;
112
+ firstFailureAt: string;
113
+ lastFailureAt: string;
114
+ } | null | undefined;
68
115
  }, {
69
116
  observedAt: string;
70
117
  source: "unavailable" | "supported_protocol" | "observed_event" | "experimental_api";
@@ -80,6 +127,12 @@ export declare const CapacityWindowSnapshot: z.ZodObject<{
80
127
  expiresAt: string | null;
81
128
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
82
129
  criticalRole: "five_hour" | "weekly" | null;
130
+ unavailableDetail?: {
131
+ message: string;
132
+ consecutiveFailures: number;
133
+ firstFailureAt: string;
134
+ lastFailureAt: string;
135
+ } | null | undefined;
83
136
  }>;
84
137
  export type CapacityWindowSnapshot = z.infer<typeof CapacityWindowSnapshot>;
85
138
  export declare const RuntimeCapacityEntry: z.ZodObject<{
@@ -109,6 +162,23 @@ export declare const RuntimeCapacityEntry: z.ZodObject<{
109
162
  expiresAt: z.ZodNullable<z.ZodString>;
110
163
  source: z.ZodEnum<["supported_protocol", "observed_event", "experimental_api", "unavailable"]>;
111
164
  unavailableReason: z.ZodNullable<z.ZodEnum<["unsupported", "missing", "expired", "unparsable", "stale"]>>;
165
+ /** NOT-366: acquisition-failure explanation and streak (see above). */
166
+ unavailableDetail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
167
+ message: z.ZodString;
168
+ consecutiveFailures: z.ZodNumber;
169
+ firstFailureAt: z.ZodString;
170
+ lastFailureAt: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ message: string;
173
+ consecutiveFailures: number;
174
+ firstFailureAt: string;
175
+ lastFailureAt: string;
176
+ }, {
177
+ message: string;
178
+ consecutiveFailures: number;
179
+ firstFailureAt: string;
180
+ lastFailureAt: string;
181
+ }>>>;
112
182
  criticalRole: z.ZodNullable<z.ZodEnum<["five_hour", "weekly"]>>;
113
183
  }, "strip", z.ZodTypeAny, {
114
184
  observedAt: string;
@@ -125,6 +195,12 @@ export declare const RuntimeCapacityEntry: z.ZodObject<{
125
195
  expiresAt: string | null;
126
196
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
127
197
  criticalRole: "five_hour" | "weekly" | null;
198
+ unavailableDetail?: {
199
+ message: string;
200
+ consecutiveFailures: number;
201
+ firstFailureAt: string;
202
+ lastFailureAt: string;
203
+ } | null | undefined;
128
204
  }, {
129
205
  observedAt: string;
130
206
  source: "unavailable" | "supported_protocol" | "observed_event" | "experimental_api";
@@ -140,6 +216,12 @@ export declare const RuntimeCapacityEntry: z.ZodObject<{
140
216
  expiresAt: string | null;
141
217
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
142
218
  criticalRole: "five_hour" | "weekly" | null;
219
+ unavailableDetail?: {
220
+ message: string;
221
+ consecutiveFailures: number;
222
+ firstFailureAt: string;
223
+ lastFailureAt: string;
224
+ } | null | undefined;
143
225
  }>, "many">;
144
226
  /** Whole-entry fallback reason when no window carries a current value. */
145
227
  unavailableReason: z.ZodNullable<z.ZodEnum<["unsupported", "missing", "expired", "unparsable", "stale"]>>;
@@ -161,6 +243,12 @@ export declare const RuntimeCapacityEntry: z.ZodObject<{
161
243
  expiresAt: string | null;
162
244
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
163
245
  criticalRole: "five_hour" | "weekly" | null;
246
+ unavailableDetail?: {
247
+ message: string;
248
+ consecutiveFailures: number;
249
+ firstFailureAt: string;
250
+ lastFailureAt: string;
251
+ } | null | undefined;
164
252
  }[];
165
253
  }, {
166
254
  runtime: "claude_code" | "cursor_local" | "codex_local" | "muse_code";
@@ -180,6 +268,12 @@ export declare const RuntimeCapacityEntry: z.ZodObject<{
180
268
  expiresAt: string | null;
181
269
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
182
270
  criticalRole: "five_hour" | "weekly" | null;
271
+ unavailableDetail?: {
272
+ message: string;
273
+ consecutiveFailures: number;
274
+ firstFailureAt: string;
275
+ lastFailureAt: string;
276
+ } | null | undefined;
183
277
  }[];
184
278
  }>;
185
279
  export type RuntimeCapacityEntry = z.infer<typeof RuntimeCapacityEntry>;
@@ -211,6 +305,23 @@ export declare const RuntimeCapacityResponse: z.ZodObject<{
211
305
  expiresAt: z.ZodNullable<z.ZodString>;
212
306
  source: z.ZodEnum<["supported_protocol", "observed_event", "experimental_api", "unavailable"]>;
213
307
  unavailableReason: z.ZodNullable<z.ZodEnum<["unsupported", "missing", "expired", "unparsable", "stale"]>>;
308
+ /** NOT-366: acquisition-failure explanation and streak (see above). */
309
+ unavailableDetail: z.ZodOptional<z.ZodNullable<z.ZodObject<{
310
+ message: z.ZodString;
311
+ consecutiveFailures: z.ZodNumber;
312
+ firstFailureAt: z.ZodString;
313
+ lastFailureAt: z.ZodString;
314
+ }, "strip", z.ZodTypeAny, {
315
+ message: string;
316
+ consecutiveFailures: number;
317
+ firstFailureAt: string;
318
+ lastFailureAt: string;
319
+ }, {
320
+ message: string;
321
+ consecutiveFailures: number;
322
+ firstFailureAt: string;
323
+ lastFailureAt: string;
324
+ }>>>;
214
325
  criticalRole: z.ZodNullable<z.ZodEnum<["five_hour", "weekly"]>>;
215
326
  }, "strip", z.ZodTypeAny, {
216
327
  observedAt: string;
@@ -227,6 +338,12 @@ export declare const RuntimeCapacityResponse: z.ZodObject<{
227
338
  expiresAt: string | null;
228
339
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
229
340
  criticalRole: "five_hour" | "weekly" | null;
341
+ unavailableDetail?: {
342
+ message: string;
343
+ consecutiveFailures: number;
344
+ firstFailureAt: string;
345
+ lastFailureAt: string;
346
+ } | null | undefined;
230
347
  }, {
231
348
  observedAt: string;
232
349
  source: "unavailable" | "supported_protocol" | "observed_event" | "experimental_api";
@@ -242,6 +359,12 @@ export declare const RuntimeCapacityResponse: z.ZodObject<{
242
359
  expiresAt: string | null;
243
360
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
244
361
  criticalRole: "five_hour" | "weekly" | null;
362
+ unavailableDetail?: {
363
+ message: string;
364
+ consecutiveFailures: number;
365
+ firstFailureAt: string;
366
+ lastFailureAt: string;
367
+ } | null | undefined;
245
368
  }>, "many">;
246
369
  /** Whole-entry fallback reason when no window carries a current value. */
247
370
  unavailableReason: z.ZodNullable<z.ZodEnum<["unsupported", "missing", "expired", "unparsable", "stale"]>>;
@@ -263,6 +386,12 @@ export declare const RuntimeCapacityResponse: z.ZodObject<{
263
386
  expiresAt: string | null;
264
387
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
265
388
  criticalRole: "five_hour" | "weekly" | null;
389
+ unavailableDetail?: {
390
+ message: string;
391
+ consecutiveFailures: number;
392
+ firstFailureAt: string;
393
+ lastFailureAt: string;
394
+ } | null | undefined;
266
395
  }[];
267
396
  }, {
268
397
  runtime: "claude_code" | "cursor_local" | "codex_local" | "muse_code";
@@ -282,6 +411,12 @@ export declare const RuntimeCapacityResponse: z.ZodObject<{
282
411
  expiresAt: string | null;
283
412
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
284
413
  criticalRole: "five_hour" | "weekly" | null;
414
+ unavailableDetail?: {
415
+ message: string;
416
+ consecutiveFailures: number;
417
+ firstFailureAt: string;
418
+ lastFailureAt: string;
419
+ } | null | undefined;
285
420
  }[];
286
421
  }>, "many">;
287
422
  generatedAt: z.ZodString;
@@ -305,6 +440,12 @@ export declare const RuntimeCapacityResponse: z.ZodObject<{
305
440
  expiresAt: string | null;
306
441
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
307
442
  criticalRole: "five_hour" | "weekly" | null;
443
+ unavailableDetail?: {
444
+ message: string;
445
+ consecutiveFailures: number;
446
+ firstFailureAt: string;
447
+ lastFailureAt: string;
448
+ } | null | undefined;
308
449
  }[];
309
450
  }[];
310
451
  }, {
@@ -327,6 +468,12 @@ export declare const RuntimeCapacityResponse: z.ZodObject<{
327
468
  expiresAt: string | null;
328
469
  unavailableReason: "unsupported" | "missing" | "expired" | "unparsable" | "stale" | null;
329
470
  criticalRole: "five_hour" | "weekly" | null;
471
+ unavailableDetail?: {
472
+ message: string;
473
+ consecutiveFailures: number;
474
+ firstFailureAt: string;
475
+ lastFailureAt: string;
476
+ } | null | undefined;
330
477
  }[];
331
478
  }[];
332
479
  }>;
@@ -44,6 +44,19 @@ export const CapacityUnavailableReason = z.enum([
44
44
  * provider/window this contract has no opinion on).
45
45
  */
46
46
  export const CapacityCriticalRole = z.enum(["five_hour", "weekly"]);
47
+ /**
48
+ * NOT-366: why a window could not be acquired, as operator-readable text plus
49
+ * the failure streak — so a three-day break reads differently from one
50
+ * transient miss. `message` is plain prose (never an internal failure-kind
51
+ * or sentinel identifier). Absent/null whenever the window carries a reading
52
+ * from a successful acquisition.
53
+ */
54
+ export const CapacityUnavailableDetail = z.object({
55
+ message: z.string().min(1),
56
+ consecutiveFailures: z.number().int().positive(),
57
+ firstFailureAt: z.string(),
58
+ lastFailureAt: z.string(),
59
+ });
47
60
  export const CapacityWindowSnapshot = z.object({
48
61
  /** Stable per-runtime key for this window (e.g. `weekly_all_models`). */
49
62
  windowKey: z.string().min(1),
@@ -68,6 +81,8 @@ export const CapacityWindowSnapshot = z.object({
68
81
  expiresAt: z.string().nullable(),
69
82
  source: CapacitySource,
70
83
  unavailableReason: CapacityUnavailableReason.nullable(),
84
+ /** NOT-366: acquisition-failure explanation and streak (see above). */
85
+ unavailableDetail: CapacityUnavailableDetail.nullable().optional(),
71
86
  criticalRole: CapacityCriticalRole.nullable(),
72
87
  });
73
88
  export const RuntimeCapacityEntry = z.object({
@@ -24,7 +24,7 @@ export declare const WorkflowInstance: z.ZodObject<{
24
24
  outcome: "done" | "closed" | "migrated" | null;
25
25
  }>;
26
26
  export type WorkflowInstance = z.infer<typeof WorkflowInstance>;
27
- export declare const WorkflowEventType: z.ZodEnum<["issue.created", "issue.reassigned", "workflow.started", "worker.started", "worker.completed", "worker.failed", "worker.deferred", "worktree.ready", "worktree.deps_ready", "deck.connected", "brief.resolved", "branch.pushed", "checks.started", "pull_request.opened", "pull_request.updated", "checks.completed", "review.submitted", "repair.started", "guidance.added", "task_snapshot.refreshed", "human_action.requested", "human_action.resolved", "final_review.requested", "issue.completed", "issue.closed", "queue.enqueued", "queue.wait_reason_changed", "queue.admitted", "queue.removed", "agent.started", "agent.completed", "host.suspended", "checkpoint.observed", "retry.reused", "auto_merge.conflict_sync", "auto_merge.conflict_repair_queued", "base.probe", "base.advanced", "operator_verification.waived", "legacy.imported"]>;
27
+ export declare const WorkflowEventType: z.ZodEnum<["issue.created", "issue.reassigned", "issue.source_reloaded", "workflow.started", "worker.started", "worker.completed", "worker.failed", "worker.deferred", "worktree.ready", "worktree.deps_ready", "inputs.materialized", "deck.connected", "brief.resolved", "branch.pushed", "checks.started", "pull_request.opened", "pull_request.updated", "checks.completed", "review.submitted", "repair.started", "guidance.added", "task_snapshot.refreshed", "human_action.requested", "human_action.resolved", "final_review.requested", "issue.completed", "issue.closed", "queue.enqueued", "queue.wait_reason_changed", "queue.admitted", "queue.removed", "agent.started", "agent.completed", "host.suspended", "checkpoint.observed", "retry.reused", "auto_merge.conflict_sync", "auto_merge.conflict_repair_queued", "base.probe", "base.advanced", "operator_verification.waived", "legacy.imported"]>;
28
28
  export type WorkflowEventType = z.infer<typeof WorkflowEventType>;
29
29
  export declare const WorkflowEvent: z.ZodObject<{
30
30
  id: z.ZodString;
@@ -32,7 +32,7 @@ export declare const WorkflowEvent: z.ZodObject<{
32
32
  /** Nullable only for issue creation/guidance emitted before any workflow starts. */
33
33
  workflowInstanceId: z.ZodNullable<z.ZodString>;
34
34
  workerSessionId: z.ZodNullable<z.ZodString>;
35
- type: z.ZodEnum<["issue.created", "issue.reassigned", "workflow.started", "worker.started", "worker.completed", "worker.failed", "worker.deferred", "worktree.ready", "worktree.deps_ready", "deck.connected", "brief.resolved", "branch.pushed", "checks.started", "pull_request.opened", "pull_request.updated", "checks.completed", "review.submitted", "repair.started", "guidance.added", "task_snapshot.refreshed", "human_action.requested", "human_action.resolved", "final_review.requested", "issue.completed", "issue.closed", "queue.enqueued", "queue.wait_reason_changed", "queue.admitted", "queue.removed", "agent.started", "agent.completed", "host.suspended", "checkpoint.observed", "retry.reused", "auto_merge.conflict_sync", "auto_merge.conflict_repair_queued", "base.probe", "base.advanced", "operator_verification.waived", "legacy.imported"]>;
35
+ type: z.ZodEnum<["issue.created", "issue.reassigned", "issue.source_reloaded", "workflow.started", "worker.started", "worker.completed", "worker.failed", "worker.deferred", "worktree.ready", "worktree.deps_ready", "inputs.materialized", "deck.connected", "brief.resolved", "branch.pushed", "checks.started", "pull_request.opened", "pull_request.updated", "checks.completed", "review.submitted", "repair.started", "guidance.added", "task_snapshot.refreshed", "human_action.requested", "human_action.resolved", "final_review.requested", "issue.completed", "issue.closed", "queue.enqueued", "queue.wait_reason_changed", "queue.admitted", "queue.removed", "agent.started", "agent.completed", "host.suspended", "checkpoint.observed", "retry.reused", "auto_merge.conflict_sync", "auto_merge.conflict_repair_queued", "base.probe", "base.advanced", "operator_verification.waived", "legacy.imported"]>;
36
36
  actorType: z.ZodEnum<["human", "developer", "reviewer", "system"]>;
37
37
  actorRef: z.ZodNullable<z.ZodString>;
38
38
  /** Issue status at emit time — lets the timeline render without re-deriving state. */
@@ -45,7 +45,7 @@ export declare const WorkflowEvent: z.ZodObject<{
45
45
  causationEventId: z.ZodNullable<z.ZodString>;
46
46
  ts: z.ZodString;
47
47
  }, "strip", z.ZodTypeAny, {
48
- type: "issue.created" | "issue.reassigned" | "workflow.started" | "worker.started" | "worker.completed" | "worker.failed" | "worker.deferred" | "worktree.ready" | "worktree.deps_ready" | "deck.connected" | "brief.resolved" | "branch.pushed" | "checks.started" | "pull_request.opened" | "pull_request.updated" | "checks.completed" | "review.submitted" | "repair.started" | "guidance.added" | "task_snapshot.refreshed" | "human_action.requested" | "human_action.resolved" | "final_review.requested" | "issue.completed" | "issue.closed" | "queue.enqueued" | "queue.wait_reason_changed" | "queue.admitted" | "queue.removed" | "agent.started" | "agent.completed" | "host.suspended" | "checkpoint.observed" | "retry.reused" | "auto_merge.conflict_sync" | "auto_merge.conflict_repair_queued" | "base.probe" | "base.advanced" | "operator_verification.waived" | "legacy.imported";
48
+ type: "issue.created" | "issue.reassigned" | "issue.source_reloaded" | "workflow.started" | "worker.started" | "worker.completed" | "worker.failed" | "worker.deferred" | "worktree.ready" | "worktree.deps_ready" | "inputs.materialized" | "deck.connected" | "brief.resolved" | "branch.pushed" | "checks.started" | "pull_request.opened" | "pull_request.updated" | "checks.completed" | "review.submitted" | "repair.started" | "guidance.added" | "task_snapshot.refreshed" | "human_action.requested" | "human_action.resolved" | "final_review.requested" | "issue.completed" | "issue.closed" | "queue.enqueued" | "queue.wait_reason_changed" | "queue.admitted" | "queue.removed" | "agent.started" | "agent.completed" | "host.suspended" | "checkpoint.observed" | "retry.reused" | "auto_merge.conflict_sync" | "auto_merge.conflict_repair_queued" | "base.probe" | "base.advanced" | "operator_verification.waived" | "legacy.imported";
49
49
  id: string;
50
50
  issueId: string;
51
51
  round: number | null;
@@ -60,7 +60,7 @@ export declare const WorkflowEvent: z.ZodObject<{
60
60
  causationEventId: string | null;
61
61
  ts: string;
62
62
  }, {
63
- type: "issue.created" | "issue.reassigned" | "workflow.started" | "worker.started" | "worker.completed" | "worker.failed" | "worker.deferred" | "worktree.ready" | "worktree.deps_ready" | "deck.connected" | "brief.resolved" | "branch.pushed" | "checks.started" | "pull_request.opened" | "pull_request.updated" | "checks.completed" | "review.submitted" | "repair.started" | "guidance.added" | "task_snapshot.refreshed" | "human_action.requested" | "human_action.resolved" | "final_review.requested" | "issue.completed" | "issue.closed" | "queue.enqueued" | "queue.wait_reason_changed" | "queue.admitted" | "queue.removed" | "agent.started" | "agent.completed" | "host.suspended" | "checkpoint.observed" | "retry.reused" | "auto_merge.conflict_sync" | "auto_merge.conflict_repair_queued" | "base.probe" | "base.advanced" | "operator_verification.waived" | "legacy.imported";
63
+ type: "issue.created" | "issue.reassigned" | "issue.source_reloaded" | "workflow.started" | "worker.started" | "worker.completed" | "worker.failed" | "worker.deferred" | "worktree.ready" | "worktree.deps_ready" | "inputs.materialized" | "deck.connected" | "brief.resolved" | "branch.pushed" | "checks.started" | "pull_request.opened" | "pull_request.updated" | "checks.completed" | "review.submitted" | "repair.started" | "guidance.added" | "task_snapshot.refreshed" | "human_action.requested" | "human_action.resolved" | "final_review.requested" | "issue.completed" | "issue.closed" | "queue.enqueued" | "queue.wait_reason_changed" | "queue.admitted" | "queue.removed" | "agent.started" | "agent.completed" | "host.suspended" | "checkpoint.observed" | "retry.reused" | "auto_merge.conflict_sync" | "auto_merge.conflict_repair_queued" | "base.probe" | "base.advanced" | "operator_verification.waived" | "legacy.imported";
64
64
  id: string;
65
65
  issueId: string;
66
66
  round: number | null;
@@ -14,6 +14,11 @@ export const WorkflowEventType = z.enum([
14
14
  * developer/reviewer assignment). Payload carries before/after repo + agent ids.
15
15
  * Emitted transactionally with the PATCH. */
16
16
  "issue.reassigned",
17
+ /** NOT-363: operator reloaded title/description/acceptance criteria from the
18
+ * linked Linear ticket on a pre-execution `ready` issue. Payload carries the
19
+ * source, external id/label, and previous/new task-text digests — never the
20
+ * full description. Emitted transactionally with the reload. */
21
+ "issue.source_reloaded",
17
22
  "workflow.started",
18
23
  "worker.started",
19
24
  "worker.completed",
@@ -23,6 +28,8 @@ export const WorkflowEventType = z.enum([
23
28
  "worktree.ready",
24
29
  /** NOT-315: pre-spawn dependency provisioning settled (ran or skipped). */
25
30
  "worktree.deps_ready",
31
+ /** NOT-364: frozen Linear source attachments materialized into the worktree. */
32
+ "inputs.materialized",
26
33
  "deck.connected",
27
34
  "brief.resolved",
28
35
  "branch.pushed",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-dealer/shared",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-dealer",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
4
4
  "description": "Human control plane for agent execution — queue, plan approval, audit",
5
5
  "license": "MIT",
6
6
  "type": "module",