@deskwork/core 0.15.0 → 0.17.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.
- package/dist/doctor/rules/legacy-stage-artifact-path.d.ts +28 -0
- package/dist/doctor/rules/legacy-stage-artifact-path.d.ts.map +1 -0
- package/dist/doctor/rules/legacy-stage-artifact-path.js +232 -0
- package/dist/doctor/rules/legacy-stage-artifact-path.js.map +1 -0
- package/dist/doctor/rules/legacy-stage-artifact-path.ts +285 -0
- package/dist/doctor/runner.d.ts.map +1 -1
- package/dist/doctor/runner.js +2 -0
- package/dist/doctor/runner.js.map +1 -1
- package/dist/entry/annotations.d.ts +38 -3
- package/dist/entry/annotations.d.ts.map +1 -1
- package/dist/entry/annotations.js +164 -3
- package/dist/entry/annotations.js.map +1 -1
- package/dist/entry/approve.d.ts +21 -4
- package/dist/entry/approve.d.ts.map +1 -1
- package/dist/entry/approve.js +74 -7
- package/dist/entry/approve.js.map +1 -1
- package/dist/entry/snapshot.d.ts +51 -0
- package/dist/entry/snapshot.d.ts.map +1 -0
- package/dist/entry/snapshot.js +95 -0
- package/dist/entry/snapshot.js.map +1 -0
- package/dist/ingest-derive.d.ts +1 -1
- package/dist/ingest-derive.d.ts.map +1 -1
- package/dist/ingest-derive.js +10 -7
- package/dist/ingest-derive.js.map +1 -1
- package/dist/ingest-id.d.ts +33 -0
- package/dist/ingest-id.d.ts.map +1 -0
- package/dist/ingest-id.js +60 -0
- package/dist/ingest-id.js.map +1 -0
- package/dist/ingest.d.ts.map +1 -1
- package/dist/ingest.js +23 -0
- package/dist/ingest.js.map +1 -1
- package/dist/iterate/iterate.d.ts.map +1 -1
- package/dist/iterate/iterate.js +37 -25
- package/dist/iterate/iterate.js.map +1 -1
- package/dist/review/types.d.ts +56 -1
- package/dist/review/types.d.ts.map +1 -1
- package/dist/review/types.js.map +1 -1
- package/dist/schema/draft-annotation.d.ts +108 -24
- package/dist/schema/draft-annotation.d.ts.map +1 -1
- package/dist/schema/draft-annotation.js +23 -0
- package/dist/schema/draft-annotation.js.map +1 -1
- package/dist/schema/journal-events.d.ts +240 -104
- package/dist/schema/journal-events.d.ts.map +1 -1
- package/dist/scrapbook/crud-at-dir.d.ts +47 -0
- package/dist/scrapbook/crud-at-dir.d.ts.map +1 -0
- package/dist/scrapbook/crud-at-dir.js +114 -0
- package/dist/scrapbook/crud-at-dir.js.map +1 -0
- package/dist/scrapbook/crud-slug.d.ts +33 -0
- package/dist/scrapbook/crud-slug.d.ts.map +1 -0
- package/dist/scrapbook/crud-slug.js +99 -0
- package/dist/scrapbook/crud-slug.js.map +1 -0
- package/dist/scrapbook/format.d.ts +10 -0
- package/dist/scrapbook/format.d.ts.map +1 -0
- package/dist/scrapbook/format.js +41 -0
- package/dist/scrapbook/format.js.map +1 -0
- package/dist/scrapbook/listing.d.ts +94 -0
- package/dist/scrapbook/listing.d.ts.map +1 -0
- package/dist/scrapbook/listing.js +167 -0
- package/dist/scrapbook/listing.js.map +1 -0
- package/dist/scrapbook/paths.d.ts +115 -0
- package/dist/scrapbook/paths.d.ts.map +1 -0
- package/dist/scrapbook/paths.js +149 -0
- package/dist/scrapbook/paths.js.map +1 -0
- package/dist/scrapbook/read.d.ts +54 -0
- package/dist/scrapbook/read.d.ts.map +1 -0
- package/dist/scrapbook/read.js +62 -0
- package/dist/scrapbook/read.js.map +1 -0
- package/dist/scrapbook/seed.d.ts +19 -0
- package/dist/scrapbook/seed.d.ts.map +1 -0
- package/dist/scrapbook/seed.js +46 -0
- package/dist/scrapbook/seed.js.map +1 -0
- package/dist/scrapbook/types.d.ts +44 -0
- package/dist/scrapbook/types.d.ts.map +1 -0
- package/dist/scrapbook/types.js +11 -0
- package/dist/scrapbook/types.js.map +1 -0
- package/dist/scrapbook/validation.d.ts +28 -0
- package/dist/scrapbook/validation.d.ts.map +1 -0
- package/dist/scrapbook/validation.js +98 -0
- package/dist/scrapbook/validation.js.map +1 -0
- package/dist/scrapbook.d.ts +43 -277
- package/dist/scrapbook.d.ts.map +1 -1
- package/dist/scrapbook.js +42 -535
- package/dist/scrapbook.js.map +1 -1
- package/package.json +5 -1
|
@@ -21,84 +21,84 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
21
21
|
createdAt: z.ZodString;
|
|
22
22
|
updatedAt: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
|
|
24
|
+
uuid: string;
|
|
25
25
|
slug: string;
|
|
26
26
|
title: string;
|
|
27
|
-
uuid: string;
|
|
28
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>>;
|
|
29
31
|
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
32
|
updatedAt: string;
|
|
33
33
|
description?: string | undefined;
|
|
34
|
-
|
|
35
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
34
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
36
35
|
reviewState?: "in-review" | "iterating" | "approved" | undefined;
|
|
37
36
|
targetVersion?: string | undefined;
|
|
37
|
+
datePublished?: string | undefined;
|
|
38
38
|
artifactPath?: string | undefined;
|
|
39
39
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
40
40
|
}, {
|
|
41
|
-
|
|
41
|
+
uuid: string;
|
|
42
42
|
slug: string;
|
|
43
43
|
title: string;
|
|
44
|
-
uuid: string;
|
|
45
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>>;
|
|
46
48
|
createdAt: string;
|
|
47
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
48
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
description?: string | undefined;
|
|
51
|
-
|
|
52
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
51
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
53
52
|
reviewState?: "in-review" | "iterating" | "approved" | undefined;
|
|
54
53
|
targetVersion?: string | undefined;
|
|
54
|
+
datePublished?: string | undefined;
|
|
55
55
|
artifactPath?: string | undefined;
|
|
56
56
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
at: string;
|
|
60
|
+
kind: "entry-created";
|
|
61
|
+
entryId: string;
|
|
60
62
|
entry: {
|
|
61
|
-
|
|
63
|
+
uuid: string;
|
|
62
64
|
slug: string;
|
|
63
65
|
title: string;
|
|
64
|
-
uuid: string;
|
|
65
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>>;
|
|
66
70
|
createdAt: string;
|
|
67
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
68
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
69
71
|
updatedAt: string;
|
|
70
72
|
description?: string | undefined;
|
|
71
|
-
|
|
72
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
73
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
73
74
|
reviewState?: "in-review" | "iterating" | "approved" | undefined;
|
|
74
75
|
targetVersion?: string | undefined;
|
|
76
|
+
datePublished?: string | undefined;
|
|
75
77
|
artifactPath?: string | undefined;
|
|
76
78
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
77
79
|
};
|
|
78
|
-
kind: "entry-created";
|
|
79
|
-
entryId: string;
|
|
80
80
|
}, {
|
|
81
81
|
at: string;
|
|
82
|
+
kind: "entry-created";
|
|
83
|
+
entryId: string;
|
|
82
84
|
entry: {
|
|
83
|
-
|
|
85
|
+
uuid: string;
|
|
84
86
|
slug: string;
|
|
85
87
|
title: string;
|
|
86
|
-
uuid: string;
|
|
87
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>>;
|
|
88
92
|
createdAt: string;
|
|
89
|
-
currentStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
90
|
-
iterationByStage: Partial<Record<"Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled", number>>;
|
|
91
93
|
updatedAt: string;
|
|
92
94
|
description?: string | undefined;
|
|
93
|
-
|
|
94
|
-
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled" | undefined;
|
|
95
|
+
priorStage?: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled" | undefined;
|
|
95
96
|
reviewState?: "in-review" | "iterating" | "approved" | undefined;
|
|
96
97
|
targetVersion?: string | undefined;
|
|
98
|
+
datePublished?: string | undefined;
|
|
97
99
|
artifactPath?: string | undefined;
|
|
98
100
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
99
101
|
};
|
|
100
|
-
kind: "entry-created";
|
|
101
|
-
entryId: string;
|
|
102
102
|
}>, z.ZodObject<{
|
|
103
103
|
kind: z.ZodLiteral<"entry-ingested">;
|
|
104
104
|
at: z.ZodString;
|
|
@@ -110,13 +110,13 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
110
110
|
kind: "entry-ingested";
|
|
111
111
|
entryId: string;
|
|
112
112
|
sourcePath: string;
|
|
113
|
-
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "
|
|
113
|
+
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
114
114
|
}, {
|
|
115
115
|
at: string;
|
|
116
116
|
kind: "entry-ingested";
|
|
117
117
|
entryId: string;
|
|
118
118
|
sourcePath: string;
|
|
119
|
-
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "
|
|
119
|
+
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
120
120
|
}>, z.ZodObject<{
|
|
121
121
|
kind: z.ZodLiteral<"iteration">;
|
|
122
122
|
at: z.ZodString;
|
|
@@ -125,18 +125,18 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
125
125
|
version: z.ZodNumber;
|
|
126
126
|
markdown: z.ZodString;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
at: string;
|
|
129
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
130
128
|
version: number;
|
|
129
|
+
at: string;
|
|
131
130
|
kind: "iteration";
|
|
132
131
|
entryId: string;
|
|
132
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
133
133
|
markdown: string;
|
|
134
134
|
}, {
|
|
135
|
-
at: string;
|
|
136
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
137
135
|
version: number;
|
|
136
|
+
at: string;
|
|
138
137
|
kind: "iteration";
|
|
139
138
|
entryId: string;
|
|
139
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
140
140
|
markdown: string;
|
|
141
141
|
}>, z.ZodObject<{
|
|
142
142
|
kind: z.ZodLiteral<"annotation">;
|
|
@@ -164,72 +164,72 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
164
164
|
dispositionReason: z.ZodOptional<z.ZodString>;
|
|
165
165
|
createdAt: z.ZodString;
|
|
166
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
-
id: string;
|
|
168
167
|
type: "comment";
|
|
169
168
|
createdAt: string;
|
|
169
|
+
id: string;
|
|
170
170
|
range: {
|
|
171
171
|
start: number;
|
|
172
172
|
end: number;
|
|
173
173
|
};
|
|
174
174
|
text: string;
|
|
175
|
-
anchor?: string | undefined;
|
|
176
175
|
category?: string | undefined;
|
|
176
|
+
anchor?: string | undefined;
|
|
177
177
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
178
178
|
dispositionReason?: string | undefined;
|
|
179
179
|
}, {
|
|
180
|
-
id: string;
|
|
181
180
|
type: "comment";
|
|
182
181
|
createdAt: string;
|
|
182
|
+
id: string;
|
|
183
183
|
range: {
|
|
184
184
|
start: number;
|
|
185
185
|
end: number;
|
|
186
186
|
};
|
|
187
187
|
text: string;
|
|
188
|
-
anchor?: string | undefined;
|
|
189
188
|
category?: string | undefined;
|
|
189
|
+
anchor?: string | undefined;
|
|
190
190
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
191
191
|
dispositionReason?: string | undefined;
|
|
192
192
|
}>;
|
|
193
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
at: string;
|
|
195
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
196
194
|
version: number;
|
|
197
195
|
annotation: {
|
|
198
|
-
id: string;
|
|
199
196
|
type: "comment";
|
|
200
197
|
createdAt: string;
|
|
198
|
+
id: string;
|
|
201
199
|
range: {
|
|
202
200
|
start: number;
|
|
203
201
|
end: number;
|
|
204
202
|
};
|
|
205
203
|
text: string;
|
|
206
|
-
anchor?: string | undefined;
|
|
207
204
|
category?: string | undefined;
|
|
205
|
+
anchor?: string | undefined;
|
|
208
206
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
209
207
|
dispositionReason?: string | undefined;
|
|
210
208
|
};
|
|
209
|
+
at: string;
|
|
211
210
|
kind: "annotation";
|
|
212
211
|
entryId: string;
|
|
212
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
213
213
|
}, {
|
|
214
|
-
at: string;
|
|
215
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
216
214
|
version: number;
|
|
217
215
|
annotation: {
|
|
218
|
-
id: string;
|
|
219
216
|
type: "comment";
|
|
220
217
|
createdAt: string;
|
|
218
|
+
id: string;
|
|
221
219
|
range: {
|
|
222
220
|
start: number;
|
|
223
221
|
end: number;
|
|
224
222
|
};
|
|
225
223
|
text: string;
|
|
226
|
-
anchor?: string | undefined;
|
|
227
224
|
category?: string | undefined;
|
|
225
|
+
anchor?: string | undefined;
|
|
228
226
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
229
227
|
dispositionReason?: string | undefined;
|
|
230
228
|
};
|
|
229
|
+
at: string;
|
|
231
230
|
kind: "annotation";
|
|
232
231
|
entryId: string;
|
|
232
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
233
233
|
}>, z.ZodObject<{
|
|
234
234
|
kind: z.ZodLiteral<"review-state-change">;
|
|
235
235
|
at: z.ZodString;
|
|
@@ -239,18 +239,18 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
239
239
|
to: z.ZodNullable<z.ZodEnum<["in-review", "iterating", "approved"]>>;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
241
|
at: string;
|
|
242
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
243
242
|
kind: "review-state-change";
|
|
243
|
+
entryId: string;
|
|
244
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
244
245
|
from: "in-review" | "iterating" | "approved" | null;
|
|
245
246
|
to: "in-review" | "iterating" | "approved" | null;
|
|
246
|
-
entryId: string;
|
|
247
247
|
}, {
|
|
248
248
|
at: string;
|
|
249
|
-
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
250
249
|
kind: "review-state-change";
|
|
250
|
+
entryId: string;
|
|
251
|
+
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
251
252
|
from: "in-review" | "iterating" | "approved" | null;
|
|
252
253
|
to: "in-review" | "iterating" | "approved" | null;
|
|
253
|
-
entryId: string;
|
|
254
254
|
}>, z.ZodObject<{
|
|
255
255
|
kind: z.ZodLiteral<"stage-transition">;
|
|
256
256
|
at: z.ZodString;
|
|
@@ -262,17 +262,17 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
263
|
at: string;
|
|
264
264
|
kind: "stage-transition";
|
|
265
|
-
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
266
|
-
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
267
265
|
entryId: string;
|
|
266
|
+
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
267
|
+
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
268
268
|
reason?: string | undefined;
|
|
269
269
|
metadata?: Record<string, unknown> | undefined;
|
|
270
270
|
}, {
|
|
271
271
|
at: string;
|
|
272
272
|
kind: "stage-transition";
|
|
273
|
-
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
274
|
-
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Published" | "Final" | "Blocked" | "Cancelled";
|
|
275
273
|
entryId: string;
|
|
274
|
+
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
275
|
+
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
276
276
|
reason?: string | undefined;
|
|
277
277
|
metadata?: Record<string, unknown> | undefined;
|
|
278
278
|
}>, z.ZodObject<{
|
|
@@ -299,31 +299,31 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
299
299
|
workflowId: z.ZodString;
|
|
300
300
|
id: z.ZodString;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
|
-
id: string;
|
|
303
|
-
type: "comment";
|
|
304
302
|
version: number;
|
|
303
|
+
type: "comment";
|
|
305
304
|
createdAt: string;
|
|
306
|
-
|
|
305
|
+
id: string;
|
|
307
306
|
range: {
|
|
308
307
|
start: number;
|
|
309
308
|
end: number;
|
|
310
309
|
};
|
|
311
310
|
text: string;
|
|
311
|
+
workflowId: string;
|
|
312
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
312
313
|
anchor?: string | undefined;
|
|
313
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
314
314
|
}, {
|
|
315
|
-
id: string;
|
|
316
|
-
type: "comment";
|
|
317
315
|
version: number;
|
|
316
|
+
type: "comment";
|
|
318
317
|
createdAt: string;
|
|
319
|
-
|
|
318
|
+
id: string;
|
|
320
319
|
range: {
|
|
321
320
|
start: number;
|
|
322
321
|
end: number;
|
|
323
322
|
};
|
|
324
323
|
text: string;
|
|
324
|
+
workflowId: string;
|
|
325
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
325
326
|
anchor?: string | undefined;
|
|
326
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
327
327
|
}>, z.ZodObject<{
|
|
328
328
|
type: z.ZodLiteral<"edit">;
|
|
329
329
|
beforeVersion: z.ZodNumber;
|
|
@@ -333,17 +333,17 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
333
333
|
workflowId: z.ZodString;
|
|
334
334
|
id: z.ZodString;
|
|
335
335
|
}, "strip", z.ZodTypeAny, {
|
|
336
|
-
id: string;
|
|
337
336
|
type: "edit";
|
|
338
337
|
createdAt: string;
|
|
338
|
+
id: string;
|
|
339
339
|
workflowId: string;
|
|
340
340
|
beforeVersion: number;
|
|
341
341
|
afterMarkdown: string;
|
|
342
342
|
diff: string;
|
|
343
343
|
}, {
|
|
344
|
-
id: string;
|
|
345
344
|
type: "edit";
|
|
346
345
|
createdAt: string;
|
|
346
|
+
id: string;
|
|
347
347
|
workflowId: string;
|
|
348
348
|
beforeVersion: number;
|
|
349
349
|
afterMarkdown: string;
|
|
@@ -355,16 +355,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
355
355
|
workflowId: z.ZodString;
|
|
356
356
|
id: z.ZodString;
|
|
357
357
|
}, "strip", z.ZodTypeAny, {
|
|
358
|
-
id: string;
|
|
359
|
-
type: "approve";
|
|
360
358
|
version: number;
|
|
359
|
+
type: "approve";
|
|
361
360
|
createdAt: string;
|
|
361
|
+
id: string;
|
|
362
362
|
workflowId: string;
|
|
363
363
|
}, {
|
|
364
|
-
id: string;
|
|
365
|
-
type: "approve";
|
|
366
364
|
version: number;
|
|
365
|
+
type: "approve";
|
|
367
366
|
createdAt: string;
|
|
367
|
+
id: string;
|
|
368
368
|
workflowId: string;
|
|
369
369
|
}>, z.ZodObject<{
|
|
370
370
|
type: z.ZodLiteral<"reject">;
|
|
@@ -374,17 +374,17 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
374
374
|
workflowId: z.ZodString;
|
|
375
375
|
id: z.ZodString;
|
|
376
376
|
}, "strip", z.ZodTypeAny, {
|
|
377
|
-
id: string;
|
|
378
|
-
type: "reject";
|
|
379
377
|
version: number;
|
|
378
|
+
type: "reject";
|
|
380
379
|
createdAt: string;
|
|
380
|
+
id: string;
|
|
381
381
|
workflowId: string;
|
|
382
382
|
reason?: string | undefined;
|
|
383
383
|
}, {
|
|
384
|
-
id: string;
|
|
385
|
-
type: "reject";
|
|
386
384
|
version: number;
|
|
385
|
+
type: "reject";
|
|
387
386
|
createdAt: string;
|
|
387
|
+
id: string;
|
|
388
388
|
workflowId: string;
|
|
389
389
|
reason?: string | undefined;
|
|
390
390
|
}>, z.ZodObject<{
|
|
@@ -395,16 +395,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
395
395
|
workflowId: z.ZodString;
|
|
396
396
|
id: z.ZodString;
|
|
397
397
|
}, "strip", z.ZodTypeAny, {
|
|
398
|
-
id: string;
|
|
399
398
|
type: "resolve";
|
|
400
399
|
createdAt: string;
|
|
400
|
+
id: string;
|
|
401
401
|
workflowId: string;
|
|
402
402
|
commentId: string;
|
|
403
403
|
resolved: boolean;
|
|
404
404
|
}, {
|
|
405
|
-
id: string;
|
|
406
405
|
type: "resolve";
|
|
407
406
|
createdAt: string;
|
|
407
|
+
id: string;
|
|
408
408
|
workflowId: string;
|
|
409
409
|
commentId: string;
|
|
410
410
|
resolved: boolean;
|
|
@@ -418,132 +418,268 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
418
418
|
workflowId: z.ZodString;
|
|
419
419
|
id: z.ZodString;
|
|
420
420
|
}, "strip", z.ZodTypeAny, {
|
|
421
|
-
id: string;
|
|
422
|
-
type: "address";
|
|
423
421
|
version: number;
|
|
422
|
+
type: "address";
|
|
424
423
|
createdAt: string;
|
|
424
|
+
id: string;
|
|
425
425
|
workflowId: string;
|
|
426
426
|
commentId: string;
|
|
427
427
|
disposition: "addressed" | "deferred" | "wontfix";
|
|
428
428
|
reason?: string | undefined;
|
|
429
429
|
}, {
|
|
430
|
-
id: string;
|
|
431
|
-
type: "address";
|
|
432
430
|
version: number;
|
|
431
|
+
type: "address";
|
|
433
432
|
createdAt: string;
|
|
433
|
+
id: string;
|
|
434
434
|
workflowId: string;
|
|
435
435
|
commentId: string;
|
|
436
436
|
disposition: "addressed" | "deferred" | "wontfix";
|
|
437
437
|
reason?: string | undefined;
|
|
438
|
+
}>, z.ZodObject<{
|
|
439
|
+
type: z.ZodLiteral<"edit-comment">;
|
|
440
|
+
commentId: z.ZodString;
|
|
441
|
+
text: z.ZodOptional<z.ZodString>;
|
|
442
|
+
range: z.ZodOptional<z.ZodObject<{
|
|
443
|
+
start: z.ZodNumber;
|
|
444
|
+
end: z.ZodNumber;
|
|
445
|
+
}, "strip", z.ZodTypeAny, {
|
|
446
|
+
start: number;
|
|
447
|
+
end: number;
|
|
448
|
+
}, {
|
|
449
|
+
start: number;
|
|
450
|
+
end: number;
|
|
451
|
+
}>>;
|
|
452
|
+
category: z.ZodOptional<z.ZodEnum<["voice-drift", "missing-receipt", "tutorial-framing", "saas-vocabulary", "fake-authority", "structural", "other"]>>;
|
|
453
|
+
anchor: z.ZodOptional<z.ZodString>;
|
|
454
|
+
createdAt: z.ZodString;
|
|
455
|
+
workflowId: z.ZodString;
|
|
456
|
+
id: z.ZodString;
|
|
457
|
+
}, "strip", z.ZodTypeAny, {
|
|
458
|
+
type: "edit-comment";
|
|
459
|
+
createdAt: string;
|
|
460
|
+
id: string;
|
|
461
|
+
workflowId: string;
|
|
462
|
+
commentId: string;
|
|
463
|
+
range?: {
|
|
464
|
+
start: number;
|
|
465
|
+
end: number;
|
|
466
|
+
} | undefined;
|
|
467
|
+
text?: string | undefined;
|
|
468
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
469
|
+
anchor?: string | undefined;
|
|
470
|
+
}, {
|
|
471
|
+
type: "edit-comment";
|
|
472
|
+
createdAt: string;
|
|
473
|
+
id: string;
|
|
474
|
+
workflowId: string;
|
|
475
|
+
commentId: string;
|
|
476
|
+
range?: {
|
|
477
|
+
start: number;
|
|
478
|
+
end: number;
|
|
479
|
+
} | undefined;
|
|
480
|
+
text?: string | undefined;
|
|
481
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
482
|
+
anchor?: string | undefined;
|
|
483
|
+
}>, z.ZodObject<{
|
|
484
|
+
type: z.ZodLiteral<"delete-comment">;
|
|
485
|
+
commentId: z.ZodString;
|
|
486
|
+
createdAt: z.ZodString;
|
|
487
|
+
workflowId: z.ZodString;
|
|
488
|
+
id: z.ZodString;
|
|
489
|
+
}, "strip", z.ZodTypeAny, {
|
|
490
|
+
type: "delete-comment";
|
|
491
|
+
createdAt: string;
|
|
492
|
+
id: string;
|
|
493
|
+
workflowId: string;
|
|
494
|
+
commentId: string;
|
|
495
|
+
}, {
|
|
496
|
+
type: "delete-comment";
|
|
497
|
+
createdAt: string;
|
|
498
|
+
id: string;
|
|
499
|
+
workflowId: string;
|
|
500
|
+
commentId: string;
|
|
501
|
+
}>, z.ZodObject<{
|
|
502
|
+
type: z.ZodLiteral<"archive-comment">;
|
|
503
|
+
commentId: z.ZodString;
|
|
504
|
+
priorStage: z.ZodOptional<z.ZodString>;
|
|
505
|
+
createdAt: z.ZodString;
|
|
506
|
+
workflowId: z.ZodString;
|
|
507
|
+
id: z.ZodString;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
type: "archive-comment";
|
|
510
|
+
createdAt: string;
|
|
511
|
+
id: string;
|
|
512
|
+
workflowId: string;
|
|
513
|
+
commentId: string;
|
|
514
|
+
priorStage?: string | undefined;
|
|
515
|
+
}, {
|
|
516
|
+
type: "archive-comment";
|
|
517
|
+
createdAt: string;
|
|
518
|
+
id: string;
|
|
519
|
+
workflowId: string;
|
|
520
|
+
commentId: string;
|
|
521
|
+
priorStage?: string | undefined;
|
|
438
522
|
}>]>;
|
|
439
523
|
}, "strip", z.ZodTypeAny, {
|
|
440
|
-
at: string;
|
|
441
524
|
annotation: {
|
|
442
|
-
id: string;
|
|
443
|
-
type: "comment";
|
|
444
525
|
version: number;
|
|
526
|
+
type: "comment";
|
|
445
527
|
createdAt: string;
|
|
446
|
-
|
|
528
|
+
id: string;
|
|
447
529
|
range: {
|
|
448
530
|
start: number;
|
|
449
531
|
end: number;
|
|
450
532
|
};
|
|
451
533
|
text: string;
|
|
534
|
+
workflowId: string;
|
|
535
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
452
536
|
anchor?: string | undefined;
|
|
453
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
454
537
|
} | {
|
|
455
|
-
id: string;
|
|
456
538
|
type: "edit";
|
|
457
539
|
createdAt: string;
|
|
540
|
+
id: string;
|
|
458
541
|
workflowId: string;
|
|
459
542
|
beforeVersion: number;
|
|
460
543
|
afterMarkdown: string;
|
|
461
544
|
diff: string;
|
|
462
545
|
} | {
|
|
463
|
-
id: string;
|
|
464
|
-
type: "approve";
|
|
465
546
|
version: number;
|
|
547
|
+
type: "approve";
|
|
466
548
|
createdAt: string;
|
|
549
|
+
id: string;
|
|
467
550
|
workflowId: string;
|
|
468
551
|
} | {
|
|
469
|
-
id: string;
|
|
470
|
-
type: "reject";
|
|
471
552
|
version: number;
|
|
553
|
+
type: "reject";
|
|
472
554
|
createdAt: string;
|
|
555
|
+
id: string;
|
|
473
556
|
workflowId: string;
|
|
474
557
|
reason?: string | undefined;
|
|
475
558
|
} | {
|
|
476
|
-
id: string;
|
|
477
559
|
type: "resolve";
|
|
478
560
|
createdAt: string;
|
|
561
|
+
id: string;
|
|
479
562
|
workflowId: string;
|
|
480
563
|
commentId: string;
|
|
481
564
|
resolved: boolean;
|
|
482
565
|
} | {
|
|
483
|
-
id: string;
|
|
484
|
-
type: "address";
|
|
485
566
|
version: number;
|
|
567
|
+
type: "address";
|
|
486
568
|
createdAt: string;
|
|
569
|
+
id: string;
|
|
487
570
|
workflowId: string;
|
|
488
571
|
commentId: string;
|
|
489
572
|
disposition: "addressed" | "deferred" | "wontfix";
|
|
490
573
|
reason?: string | undefined;
|
|
574
|
+
} | {
|
|
575
|
+
type: "edit-comment";
|
|
576
|
+
createdAt: string;
|
|
577
|
+
id: string;
|
|
578
|
+
workflowId: string;
|
|
579
|
+
commentId: string;
|
|
580
|
+
range?: {
|
|
581
|
+
start: number;
|
|
582
|
+
end: number;
|
|
583
|
+
} | undefined;
|
|
584
|
+
text?: string | undefined;
|
|
585
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
586
|
+
anchor?: string | undefined;
|
|
587
|
+
} | {
|
|
588
|
+
type: "delete-comment";
|
|
589
|
+
createdAt: string;
|
|
590
|
+
id: string;
|
|
591
|
+
workflowId: string;
|
|
592
|
+
commentId: string;
|
|
593
|
+
} | {
|
|
594
|
+
type: "archive-comment";
|
|
595
|
+
createdAt: string;
|
|
596
|
+
id: string;
|
|
597
|
+
workflowId: string;
|
|
598
|
+
commentId: string;
|
|
599
|
+
priorStage?: string | undefined;
|
|
491
600
|
};
|
|
601
|
+
at: string;
|
|
492
602
|
kind: "entry-annotation";
|
|
493
603
|
entryId: string;
|
|
494
604
|
}, {
|
|
495
|
-
at: string;
|
|
496
605
|
annotation: {
|
|
497
|
-
id: string;
|
|
498
|
-
type: "comment";
|
|
499
606
|
version: number;
|
|
607
|
+
type: "comment";
|
|
500
608
|
createdAt: string;
|
|
501
|
-
|
|
609
|
+
id: string;
|
|
502
610
|
range: {
|
|
503
611
|
start: number;
|
|
504
612
|
end: number;
|
|
505
613
|
};
|
|
506
614
|
text: string;
|
|
615
|
+
workflowId: string;
|
|
616
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
507
617
|
anchor?: string | undefined;
|
|
508
|
-
category?: "other" | "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | undefined;
|
|
509
618
|
} | {
|
|
510
|
-
id: string;
|
|
511
619
|
type: "edit";
|
|
512
620
|
createdAt: string;
|
|
621
|
+
id: string;
|
|
513
622
|
workflowId: string;
|
|
514
623
|
beforeVersion: number;
|
|
515
624
|
afterMarkdown: string;
|
|
516
625
|
diff: string;
|
|
517
626
|
} | {
|
|
518
|
-
id: string;
|
|
519
|
-
type: "approve";
|
|
520
627
|
version: number;
|
|
628
|
+
type: "approve";
|
|
521
629
|
createdAt: string;
|
|
630
|
+
id: string;
|
|
522
631
|
workflowId: string;
|
|
523
632
|
} | {
|
|
524
|
-
id: string;
|
|
525
|
-
type: "reject";
|
|
526
633
|
version: number;
|
|
634
|
+
type: "reject";
|
|
527
635
|
createdAt: string;
|
|
636
|
+
id: string;
|
|
528
637
|
workflowId: string;
|
|
529
638
|
reason?: string | undefined;
|
|
530
639
|
} | {
|
|
531
|
-
id: string;
|
|
532
640
|
type: "resolve";
|
|
533
641
|
createdAt: string;
|
|
642
|
+
id: string;
|
|
534
643
|
workflowId: string;
|
|
535
644
|
commentId: string;
|
|
536
645
|
resolved: boolean;
|
|
537
646
|
} | {
|
|
538
|
-
id: string;
|
|
539
|
-
type: "address";
|
|
540
647
|
version: number;
|
|
648
|
+
type: "address";
|
|
541
649
|
createdAt: string;
|
|
650
|
+
id: string;
|
|
542
651
|
workflowId: string;
|
|
543
652
|
commentId: string;
|
|
544
653
|
disposition: "addressed" | "deferred" | "wontfix";
|
|
545
654
|
reason?: string | undefined;
|
|
655
|
+
} | {
|
|
656
|
+
type: "edit-comment";
|
|
657
|
+
createdAt: string;
|
|
658
|
+
id: string;
|
|
659
|
+
workflowId: string;
|
|
660
|
+
commentId: string;
|
|
661
|
+
range?: {
|
|
662
|
+
start: number;
|
|
663
|
+
end: number;
|
|
664
|
+
} | undefined;
|
|
665
|
+
text?: string | undefined;
|
|
666
|
+
category?: "voice-drift" | "missing-receipt" | "tutorial-framing" | "saas-vocabulary" | "fake-authority" | "structural" | "other" | undefined;
|
|
667
|
+
anchor?: string | undefined;
|
|
668
|
+
} | {
|
|
669
|
+
type: "delete-comment";
|
|
670
|
+
createdAt: string;
|
|
671
|
+
id: string;
|
|
672
|
+
workflowId: string;
|
|
673
|
+
commentId: string;
|
|
674
|
+
} | {
|
|
675
|
+
type: "archive-comment";
|
|
676
|
+
createdAt: string;
|
|
677
|
+
id: string;
|
|
678
|
+
workflowId: string;
|
|
679
|
+
commentId: string;
|
|
680
|
+
priorStage?: string | undefined;
|
|
546
681
|
};
|
|
682
|
+
at: string;
|
|
547
683
|
kind: "entry-annotation";
|
|
548
684
|
entryId: string;
|
|
549
685
|
}>]>;
|