@deskwork/core 0.11.1 → 0.12.1

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 (48) hide show
  1. package/dist/calendar/regenerate.d.ts +14 -0
  2. package/dist/calendar/regenerate.d.ts.map +1 -0
  3. package/dist/calendar/regenerate.js +50 -0
  4. package/dist/calendar/regenerate.js.map +1 -0
  5. package/dist/config.d.ts +7 -0
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/config.js +16 -0
  8. package/dist/config.js.map +1 -1
  9. package/dist/doctor/migrate.d.ts.map +1 -1
  10. package/dist/doctor/migrate.js +128 -9
  11. package/dist/doctor/migrate.js.map +1 -1
  12. package/dist/doctor/rules/missing-frontmatter-id.d.ts.map +1 -1
  13. package/dist/doctor/rules/missing-frontmatter-id.js +13 -4
  14. package/dist/doctor/rules/missing-frontmatter-id.js.map +1 -1
  15. package/dist/doctor/rules/missing-frontmatter-id.ts +12 -4
  16. package/dist/doctor/validate.d.ts.map +1 -1
  17. package/dist/doctor/validate.js +47 -3
  18. package/dist/doctor/validate.js.map +1 -1
  19. package/dist/entry/approve.d.ts +25 -0
  20. package/dist/entry/approve.d.ts.map +1 -0
  21. package/dist/entry/approve.js +59 -0
  22. package/dist/entry/approve.js.map +1 -0
  23. package/dist/entry/block.d.ts +20 -0
  24. package/dist/entry/block.d.ts.map +1 -0
  25. package/dist/entry/block.js +40 -0
  26. package/dist/entry/block.js.map +1 -0
  27. package/dist/entry/cancel.d.ts +20 -0
  28. package/dist/entry/cancel.d.ts.map +1 -0
  29. package/dist/entry/cancel.js +41 -0
  30. package/dist/entry/cancel.js.map +1 -0
  31. package/dist/entry/induct.d.ts +29 -0
  32. package/dist/entry/induct.d.ts.map +1 -0
  33. package/dist/entry/induct.js +52 -0
  34. package/dist/entry/induct.js.map +1 -0
  35. package/dist/entry/publish.d.ts +38 -0
  36. package/dist/entry/publish.d.ts.map +1 -0
  37. package/dist/entry/publish.js +72 -0
  38. package/dist/entry/publish.js.map +1 -0
  39. package/dist/iterate/iterate.d.ts.map +1 -1
  40. package/dist/iterate/iterate.js +26 -5
  41. package/dist/iterate/iterate.js.map +1 -1
  42. package/dist/schema/entry.d.ts +15 -12
  43. package/dist/schema/entry.d.ts.map +1 -1
  44. package/dist/schema/entry.js +6 -0
  45. package/dist/schema/entry.js.map +1 -1
  46. package/dist/schema/journal-events.d.ts +65 -60
  47. package/dist/schema/journal-events.d.ts.map +1 -1
  48. package/package.json +26 -1
@@ -17,40 +17,43 @@ export declare const EntrySchema: z.ZodObject<{
17
17
  reviewState: z.ZodOptional<z.ZodEnum<["in-review", "iterating", "approved"]>>;
18
18
  targetVersion: z.ZodOptional<z.ZodString>;
19
19
  datePublished: z.ZodOptional<z.ZodString>;
20
+ artifactPath: z.ZodOptional<z.ZodString>;
20
21
  shortformWorkflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21
22
  createdAt: z.ZodString;
22
23
  updatedAt: z.ZodString;
23
24
  }, "strip", z.ZodTypeAny, {
24
- source: string;
25
+ uuid: string;
25
26
  slug: string;
26
27
  title: string;
27
- uuid: string;
28
28
  keywords: string[];
29
+ source: string;
30
+ currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
31
+ iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
29
32
  createdAt: string;
30
- currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
31
- iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
32
33
  updatedAt: string;
33
34
  description?: string | undefined;
34
- datePublished?: string | undefined;
35
- priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
35
+ priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
36
36
  reviewState?: "in-review" | "iterating" | "approved" | undefined;
37
37
  targetVersion?: string | undefined;
38
+ datePublished?: string | undefined;
39
+ artifactPath?: string | undefined;
38
40
  shortformWorkflows?: Record<string, string> | undefined;
39
41
  }, {
40
- source: string;
42
+ uuid: string;
41
43
  slug: string;
42
44
  title: string;
43
- uuid: string;
44
45
  keywords: string[];
46
+ source: string;
47
+ currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
48
+ iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
45
49
  createdAt: string;
46
- currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
47
- iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
48
50
  updatedAt: string;
49
51
  description?: string | undefined;
50
- datePublished?: string | undefined;
51
- priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
52
+ priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
52
53
  reviewState?: "in-review" | "iterating" | "approved" | undefined;
53
54
  targetVersion?: string | undefined;
55
+ datePublished?: string | undefined;
56
+ artifactPath?: string | undefined;
54
57
  shortformWorkflows?: Record<string, string> | undefined;
55
58
  }>;
56
59
  export type Entry = z.infer<typeof EntrySchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../../src/schema/entry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GACb,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,GACtE,SAAS,GAAG,WAAW,CA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= z.object({
38
38
  // Editorial
39
39
  targetVersion: z.string().optional(),
40
40
  datePublished: z.string().datetime().optional(),
41
+ // Explicit on-disk artifact path (relative to contentDir). Set by
42
+ // `add` / `outline` / `induct` at creation time, and by migration's
43
+ // ingest-journal lookup. When absent (legacy entries pre-Phase 30
44
+ // migration data fixes), consumers fall back to the slug+stage
45
+ // heuristic.
46
+ artifactPath: z.string().optional(),
41
47
  // Distribution (deferred — shortform model)
42
48
  shortformWorkflows: z.record(z.string(), z.string()).optional(),
43
49
  // Timestamps
@@ -1 +1 @@
1
- {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../src/schema/entry.ts"],"names":[],"mappings":"AAMA,MAAM,eAAe,GAAqB,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAU,CAAC;AACvH,MAAM,YAAY,GAAqB,CAAC,SAAS,EAAE,WAAW,CAAU,CAAC;AAEzE,MAAM,UAAU,qBAAqB,CAAC,CAAQ;IAC5C,OAAO,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,CAAQ;IACzC,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,SAAS,GAAgC;IAC7C,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,IAAI,EAAS,uBAAuB;IAC3C,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;CAChB,CAAC;AAEF,MAAM,UAAU,SAAS,CAAC,CAAQ;IAChC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;AACtB,CAAC;AAED,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAA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,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"}
@@ -16,84 +16,89 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
16
16
  reviewState: z.ZodOptional<z.ZodEnum<["in-review", "iterating", "approved"]>>;
17
17
  targetVersion: z.ZodOptional<z.ZodString>;
18
18
  datePublished: z.ZodOptional<z.ZodString>;
19
+ artifactPath: z.ZodOptional<z.ZodString>;
19
20
  shortformWorkflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20
21
  createdAt: z.ZodString;
21
22
  updatedAt: z.ZodString;
22
23
  }, "strip", z.ZodTypeAny, {
23
- source: string;
24
+ uuid: string;
24
25
  slug: string;
25
26
  title: string;
26
- uuid: string;
27
27
  keywords: string[];
28
+ source: string;
29
+ currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
30
+ iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
28
31
  createdAt: string;
29
- currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
30
- iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
31
32
  updatedAt: string;
32
33
  description?: string | undefined;
33
- datePublished?: string | undefined;
34
- priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
34
+ priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
35
35
  reviewState?: "in-review" | "iterating" | "approved" | undefined;
36
36
  targetVersion?: string | undefined;
37
+ datePublished?: string | undefined;
38
+ artifactPath?: string | undefined;
37
39
  shortformWorkflows?: Record<string, string> | undefined;
38
40
  }, {
39
- source: string;
41
+ uuid: string;
40
42
  slug: string;
41
43
  title: string;
42
- uuid: string;
43
44
  keywords: string[];
45
+ source: string;
46
+ currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
47
+ iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
44
48
  createdAt: string;
45
- currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
46
- iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
47
49
  updatedAt: string;
48
50
  description?: string | undefined;
49
- datePublished?: string | undefined;
50
- priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
51
+ priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
51
52
  reviewState?: "in-review" | "iterating" | "approved" | undefined;
52
53
  targetVersion?: string | undefined;
54
+ datePublished?: string | undefined;
55
+ artifactPath?: string | undefined;
53
56
  shortformWorkflows?: Record<string, string> | undefined;
54
57
  }>;
55
58
  }, "strip", z.ZodTypeAny, {
56
59
  at: string;
60
+ kind: "entry-created";
57
61
  entryId: string;
58
62
  entry: {
59
- source: string;
63
+ uuid: string;
60
64
  slug: string;
61
65
  title: string;
62
- uuid: string;
63
66
  keywords: string[];
67
+ source: string;
68
+ currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
69
+ iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
64
70
  createdAt: string;
65
- currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
66
- iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
67
71
  updatedAt: string;
68
72
  description?: string | undefined;
69
- datePublished?: string | undefined;
70
- priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
73
+ priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
71
74
  reviewState?: "in-review" | "iterating" | "approved" | undefined;
72
75
  targetVersion?: string | undefined;
76
+ datePublished?: string | undefined;
77
+ artifactPath?: string | undefined;
73
78
  shortformWorkflows?: Record<string, string> | undefined;
74
79
  };
75
- kind: "entry-created";
76
80
  }, {
77
81
  at: string;
82
+ kind: "entry-created";
78
83
  entryId: string;
79
84
  entry: {
80
- source: string;
85
+ uuid: string;
81
86
  slug: string;
82
87
  title: string;
83
- uuid: string;
84
88
  keywords: string[];
89
+ source: string;
90
+ currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
91
+ iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled", number>>;
85
92
  createdAt: string;
86
- currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
87
- iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
88
93
  updatedAt: string;
89
94
  description?: string | undefined;
90
- datePublished?: string | undefined;
91
- priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
95
+ priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
92
96
  reviewState?: "in-review" | "iterating" | "approved" | undefined;
93
97
  targetVersion?: string | undefined;
98
+ datePublished?: string | undefined;
99
+ artifactPath?: string | undefined;
94
100
  shortformWorkflows?: Record<string, string> | undefined;
95
101
  };
96
- kind: "entry-created";
97
102
  }>, z.ZodObject<{
98
103
  kind: z.ZodLiteral<"entry-ingested">;
99
104
  at: z.ZodString;
@@ -102,16 +107,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
102
107
  targetStage: z.ZodEnum<["Ideas", "Planned", "Outlining", "Drafting", "Final", "Published", "Blocked", "Cancelled"]>;
103
108
  }, "strip", z.ZodTypeAny, {
104
109
  at: string;
105
- entryId: string;
106
110
  kind: "entry-ingested";
111
+ entryId: string;
107
112
  sourcePath: string;
108
- targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
113
+ targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
109
114
  }, {
110
115
  at: string;
111
- entryId: string;
112
116
  kind: "entry-ingested";
117
+ entryId: string;
113
118
  sourcePath: string;
114
- targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
119
+ targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
115
120
  }>, z.ZodObject<{
116
121
  kind: z.ZodLiteral<"iteration">;
117
122
  at: z.ZodString;
@@ -120,19 +125,19 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
120
125
  version: z.ZodNumber;
121
126
  markdown: z.ZodString;
122
127
  }, "strip", z.ZodTypeAny, {
123
- at: string;
124
- stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
125
128
  version: number;
129
+ at: string;
130
+ kind: "iteration";
126
131
  entryId: string;
132
+ stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
127
133
  markdown: string;
128
- kind: "iteration";
129
134
  }, {
130
- at: string;
131
- stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
132
135
  version: number;
136
+ at: string;
137
+ kind: "iteration";
133
138
  entryId: string;
139
+ stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
134
140
  markdown: string;
135
- kind: "iteration";
136
141
  }>, z.ZodObject<{
137
142
  kind: z.ZodLiteral<"annotation">;
138
143
  at: z.ZodString;
@@ -159,9 +164,9 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
159
164
  dispositionReason: z.ZodOptional<z.ZodString>;
160
165
  createdAt: z.ZodString;
161
166
  }, "strip", z.ZodTypeAny, {
162
- id: string;
163
167
  type: "comment";
164
168
  createdAt: string;
169
+ id: string;
165
170
  range: {
166
171
  start: number;
167
172
  end: number;
@@ -172,9 +177,9 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
172
177
  disposition?: "addressed" | "deferred" | "wontfix" | undefined;
173
178
  dispositionReason?: string | undefined;
174
179
  }, {
175
- id: string;
176
180
  type: "comment";
177
181
  createdAt: string;
182
+ id: string;
178
183
  range: {
179
184
  start: number;
180
185
  end: number;
@@ -186,13 +191,15 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
186
191
  dispositionReason?: string | undefined;
187
192
  }>;
188
193
  }, "strip", z.ZodTypeAny, {
189
- at: string;
190
- stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
191
194
  version: number;
195
+ at: string;
196
+ kind: "annotation";
197
+ entryId: string;
198
+ stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
192
199
  annotation: {
193
- id: string;
194
200
  type: "comment";
195
201
  createdAt: string;
202
+ id: string;
196
203
  range: {
197
204
  start: number;
198
205
  end: number;
@@ -203,16 +210,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
203
210
  disposition?: "addressed" | "deferred" | "wontfix" | undefined;
204
211
  dispositionReason?: string | undefined;
205
212
  };
206
- entryId: string;
207
- kind: "annotation";
208
213
  }, {
209
- at: string;
210
- stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
211
214
  version: number;
215
+ at: string;
216
+ kind: "annotation";
217
+ entryId: string;
218
+ stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
212
219
  annotation: {
213
- id: string;
214
220
  type: "comment";
215
221
  createdAt: string;
222
+ id: string;
216
223
  range: {
217
224
  start: number;
218
225
  end: number;
@@ -223,8 +230,6 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
223
230
  disposition?: "addressed" | "deferred" | "wontfix" | undefined;
224
231
  dispositionReason?: string | undefined;
225
232
  };
226
- entryId: string;
227
- kind: "annotation";
228
233
  }>, z.ZodObject<{
229
234
  kind: z.ZodLiteral<"review-state-change">;
230
235
  at: z.ZodString;
@@ -234,18 +239,18 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
234
239
  to: z.ZodNullable<z.ZodEnum<["in-review", "iterating", "approved"]>>;
235
240
  }, "strip", z.ZodTypeAny, {
236
241
  at: string;
237
- stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
242
+ kind: "review-state-change";
243
+ entryId: string;
244
+ stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
238
245
  from: "in-review" | "iterating" | "approved" | null;
239
246
  to: "in-review" | "iterating" | "approved" | null;
240
- entryId: string;
241
- kind: "review-state-change";
242
247
  }, {
243
248
  at: string;
244
- stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
249
+ kind: "review-state-change";
250
+ entryId: string;
251
+ stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
245
252
  from: "in-review" | "iterating" | "approved" | null;
246
253
  to: "in-review" | "iterating" | "approved" | null;
247
- entryId: string;
248
- kind: "review-state-change";
249
254
  }>, z.ZodObject<{
250
255
  kind: z.ZodLiteral<"stage-transition">;
251
256
  at: z.ZodString;
@@ -256,18 +261,18 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
256
261
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
257
262
  }, "strip", z.ZodTypeAny, {
258
263
  at: string;
259
- from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
260
- to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
261
- entryId: string;
262
264
  kind: "stage-transition";
265
+ entryId: string;
266
+ from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
267
+ to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
263
268
  reason?: string | undefined;
264
269
  metadata?: Record<string, unknown> | undefined;
265
270
  }, {
266
271
  at: string;
267
- from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
268
- to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
269
- entryId: string;
270
272
  kind: "stage-transition";
273
+ entryId: string;
274
+ from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
275
+ to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
271
276
  reason?: string | undefined;
272
277
  metadata?: Record<string, unknown> | undefined;
273
278
  }>]>;
@@ -1 +1 @@
1
- {"version":3,"file":"journal-events.d.ts","sourceRoot":"","sources":["../../src/schema/journal-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2DxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"journal-events.d.ts","sourceRoot":"","sources":["../../src/schema/journal-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2DxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deskwork/core",
3
- "version": "0.11.1",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "description": "Editorial calendar + review pipeline library — shared by @deskwork/cli and @deskwork/studio",
6
6
  "homepage": "https://github.com/audiocontrol-org/deskwork#readme",
@@ -92,6 +92,30 @@
92
92
  "types": "./dist/iterate/iterate.d.ts",
93
93
  "default": "./dist/iterate/iterate.js"
94
94
  },
95
+ "./calendar/regenerate": {
96
+ "types": "./dist/calendar/regenerate.d.ts",
97
+ "default": "./dist/calendar/regenerate.js"
98
+ },
99
+ "./entry/approve": {
100
+ "types": "./dist/entry/approve.d.ts",
101
+ "default": "./dist/entry/approve.js"
102
+ },
103
+ "./entry/block": {
104
+ "types": "./dist/entry/block.d.ts",
105
+ "default": "./dist/entry/block.js"
106
+ },
107
+ "./entry/cancel": {
108
+ "types": "./dist/entry/cancel.d.ts",
109
+ "default": "./dist/entry/cancel.js"
110
+ },
111
+ "./entry/induct": {
112
+ "types": "./dist/entry/induct.d.ts",
113
+ "default": "./dist/entry/induct.js"
114
+ },
115
+ "./entry/publish": {
116
+ "types": "./dist/entry/publish.d.ts",
117
+ "default": "./dist/entry/publish.js"
118
+ },
95
119
  "./journal": {
96
120
  "types": "./dist/journal.d.ts",
97
121
  "default": "./dist/journal.js"
@@ -164,6 +188,7 @@
164
188
  "scripts": {
165
189
  "build": "tsc -b tsconfig.build.json && cp src/*.mjs dist/ && mkdir -p dist/doctor/rules && cp src/doctor/rules/*.ts dist/doctor/rules/",
166
190
  "prepack": "tsc -b tsconfig.build.json && cp src/*.mjs dist/ && mkdir -p dist/doctor/rules && cp src/doctor/rules/*.ts dist/doctor/rules/",
191
+ "dev": "npm run build && tsc -b tsconfig.build.json --watch",
167
192
  "test": "vitest run",
168
193
  "test:watch": "vitest",
169
194
  "typecheck": "tsc --noEmit"