@deskwork/core 0.11.1 → 0.12.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.
Files changed (40) hide show
  1. package/dist/config.d.ts +7 -0
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js +16 -0
  4. package/dist/config.js.map +1 -1
  5. package/dist/doctor/migrate.d.ts.map +1 -1
  6. package/dist/doctor/migrate.js +109 -2
  7. package/dist/doctor/migrate.js.map +1 -1
  8. package/dist/doctor/rules/missing-frontmatter-id.d.ts.map +1 -1
  9. package/dist/doctor/rules/missing-frontmatter-id.js +13 -4
  10. package/dist/doctor/rules/missing-frontmatter-id.js.map +1 -1
  11. package/dist/doctor/rules/missing-frontmatter-id.ts +12 -4
  12. package/dist/doctor/validate.d.ts.map +1 -1
  13. package/dist/doctor/validate.js +27 -3
  14. package/dist/doctor/validate.js.map +1 -1
  15. package/dist/entry/approve.d.ts +25 -0
  16. package/dist/entry/approve.d.ts.map +1 -0
  17. package/dist/entry/approve.js +54 -0
  18. package/dist/entry/approve.js.map +1 -0
  19. package/dist/entry/block.d.ts +20 -0
  20. package/dist/entry/block.d.ts.map +1 -0
  21. package/dist/entry/block.js +37 -0
  22. package/dist/entry/block.js.map +1 -0
  23. package/dist/entry/cancel.d.ts +20 -0
  24. package/dist/entry/cancel.d.ts.map +1 -0
  25. package/dist/entry/cancel.js +38 -0
  26. package/dist/entry/cancel.js.map +1 -0
  27. package/dist/entry/induct.d.ts +29 -0
  28. package/dist/entry/induct.d.ts.map +1 -0
  29. package/dist/entry/induct.js +49 -0
  30. package/dist/entry/induct.js.map +1 -0
  31. package/dist/iterate/iterate.d.ts.map +1 -1
  32. package/dist/iterate/iterate.js +26 -5
  33. package/dist/iterate/iterate.js.map +1 -1
  34. package/dist/schema/entry.d.ts +15 -12
  35. package/dist/schema/entry.d.ts.map +1 -1
  36. package/dist/schema/entry.js +6 -0
  37. package/dist/schema/entry.js.map +1 -1
  38. package/dist/schema/journal-events.d.ts +65 -60
  39. package/dist/schema/journal-events.d.ts.map +1 -1
  40. package/package.json +17 -1
@@ -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.0",
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,22 @@
92
92
  "types": "./dist/iterate/iterate.d.ts",
93
93
  "default": "./dist/iterate/iterate.js"
94
94
  },
95
+ "./entry/approve": {
96
+ "types": "./dist/entry/approve.d.ts",
97
+ "default": "./dist/entry/approve.js"
98
+ },
99
+ "./entry/block": {
100
+ "types": "./dist/entry/block.d.ts",
101
+ "default": "./dist/entry/block.js"
102
+ },
103
+ "./entry/cancel": {
104
+ "types": "./dist/entry/cancel.d.ts",
105
+ "default": "./dist/entry/cancel.js"
106
+ },
107
+ "./entry/induct": {
108
+ "types": "./dist/entry/induct.d.ts",
109
+ "default": "./dist/entry/induct.js"
110
+ },
95
111
  "./journal": {
96
112
  "types": "./dist/journal.d.ts",
97
113
  "default": "./dist/journal.js"