@deskwork/core 0.16.0 → 0.17.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.
- 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.map +1 -1
- package/dist/entry/annotations.js +27 -2
- 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/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 +20 -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 +23 -2
- package/dist/schema/draft-annotation.d.ts.map +1 -1
- package/dist/schema/draft-annotation.js +7 -0
- package/dist/schema/draft-annotation.js.map +1 -1
- package/dist/schema/journal-events.d.ts +53 -18
- package/dist/schema/journal-events.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -154,18 +154,18 @@ export declare const DraftAnnotationSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
154
154
|
type: "address";
|
|
155
155
|
createdAt: string;
|
|
156
156
|
id: string;
|
|
157
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
158
157
|
workflowId: string;
|
|
159
158
|
commentId: string;
|
|
159
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
160
160
|
reason?: string | undefined;
|
|
161
161
|
}, {
|
|
162
162
|
version: number;
|
|
163
163
|
type: "address";
|
|
164
164
|
createdAt: string;
|
|
165
165
|
id: string;
|
|
166
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
167
166
|
workflowId: string;
|
|
168
167
|
commentId: string;
|
|
168
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
169
169
|
reason?: string | undefined;
|
|
170
170
|
}>, z.ZodObject<{
|
|
171
171
|
type: z.ZodLiteral<"edit-comment">;
|
|
@@ -230,5 +230,26 @@ export declare const DraftAnnotationSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
230
230
|
id: string;
|
|
231
231
|
workflowId: string;
|
|
232
232
|
commentId: string;
|
|
233
|
+
}>, z.ZodObject<{
|
|
234
|
+
type: z.ZodLiteral<"archive-comment">;
|
|
235
|
+
commentId: z.ZodString;
|
|
236
|
+
priorStage: z.ZodOptional<z.ZodString>;
|
|
237
|
+
createdAt: z.ZodString;
|
|
238
|
+
workflowId: z.ZodString;
|
|
239
|
+
id: z.ZodString;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
type: "archive-comment";
|
|
242
|
+
createdAt: string;
|
|
243
|
+
id: string;
|
|
244
|
+
workflowId: string;
|
|
245
|
+
commentId: string;
|
|
246
|
+
priorStage?: string | undefined;
|
|
247
|
+
}, {
|
|
248
|
+
type: "archive-comment";
|
|
249
|
+
createdAt: string;
|
|
250
|
+
id: string;
|
|
251
|
+
workflowId: string;
|
|
252
|
+
commentId: string;
|
|
253
|
+
priorStage?: string | undefined;
|
|
233
254
|
}>]>;
|
|
234
255
|
//# sourceMappingURL=draft-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft-annotation.d.ts","sourceRoot":"","sources":["../../src/schema/draft-annotation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"draft-annotation.d.ts","sourceRoot":"","sources":["../../src/schema/draft-annotation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUhC,CAAC"}
|
|
@@ -90,6 +90,12 @@ const DeleteCommentAnnotation = z.object({
|
|
|
90
90
|
type: z.literal('delete-comment'),
|
|
91
91
|
commentId: z.string(),
|
|
92
92
|
});
|
|
93
|
+
const ArchiveCommentAnnotation = z.object({
|
|
94
|
+
...BaseFields,
|
|
95
|
+
type: z.literal('archive-comment'),
|
|
96
|
+
commentId: z.string(),
|
|
97
|
+
priorStage: z.string().optional(),
|
|
98
|
+
});
|
|
93
99
|
export const DraftAnnotationSchema = z.discriminatedUnion('type', [
|
|
94
100
|
CommentAnnotation,
|
|
95
101
|
EditAnnotation,
|
|
@@ -99,5 +105,6 @@ export const DraftAnnotationSchema = z.discriminatedUnion('type', [
|
|
|
99
105
|
AddressAnnotation,
|
|
100
106
|
EditCommentAnnotation,
|
|
101
107
|
DeleteCommentAnnotation,
|
|
108
|
+
ArchiveCommentAnnotation,
|
|
102
109
|
]);
|
|
103
110
|
//# sourceMappingURL=draft-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft-annotation.js","sourceR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B,CAAC,CAAC;AAEH,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,GAAG,UAAU;IACb,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,GAAG,UAAU;IACb,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAChE,iBAAiB;IACjB,cAAc;IACd,iBAAiB;IACjB,gBAAgB;IAChB,iBAAiB;IACjB,iBAAiB;IACjB,qBAAqB;IACrB,uBAAuB;IACvB,wBAAwB;CACzB,CAAC,CAAC"}
|
|
@@ -56,8 +56,8 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
56
56
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
kind: "entry-created";
|
|
60
59
|
at: string;
|
|
60
|
+
kind: "entry-created";
|
|
61
61
|
entryId: string;
|
|
62
62
|
entry: {
|
|
63
63
|
uuid: string;
|
|
@@ -78,8 +78,8 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
78
78
|
shortformWorkflows?: Record<string, string> | undefined;
|
|
79
79
|
};
|
|
80
80
|
}, {
|
|
81
|
-
kind: "entry-created";
|
|
82
81
|
at: string;
|
|
82
|
+
kind: "entry-created";
|
|
83
83
|
entryId: string;
|
|
84
84
|
entry: {
|
|
85
85
|
uuid: string;
|
|
@@ -106,14 +106,14 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
106
106
|
sourcePath: z.ZodString;
|
|
107
107
|
targetStage: z.ZodEnum<["Ideas", "Planned", "Outlining", "Drafting", "Final", "Published", "Blocked", "Cancelled"]>;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
kind: "entry-ingested";
|
|
110
109
|
at: string;
|
|
110
|
+
kind: "entry-ingested";
|
|
111
111
|
entryId: string;
|
|
112
112
|
sourcePath: string;
|
|
113
113
|
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
114
114
|
}, {
|
|
115
|
-
kind: "entry-ingested";
|
|
116
115
|
at: string;
|
|
116
|
+
kind: "entry-ingested";
|
|
117
117
|
entryId: string;
|
|
118
118
|
sourcePath: string;
|
|
119
119
|
targetStage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
@@ -126,15 +126,15 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
126
126
|
markdown: z.ZodString;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
128
|
version: number;
|
|
129
|
-
kind: "iteration";
|
|
130
129
|
at: string;
|
|
130
|
+
kind: "iteration";
|
|
131
131
|
entryId: string;
|
|
132
132
|
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
133
133
|
markdown: string;
|
|
134
134
|
}, {
|
|
135
135
|
version: number;
|
|
136
|
-
kind: "iteration";
|
|
137
136
|
at: string;
|
|
137
|
+
kind: "iteration";
|
|
138
138
|
entryId: string;
|
|
139
139
|
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
140
140
|
markdown: string;
|
|
@@ -206,8 +206,8 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
206
206
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
207
207
|
dispositionReason?: string | undefined;
|
|
208
208
|
};
|
|
209
|
-
kind: "annotation";
|
|
210
209
|
at: string;
|
|
210
|
+
kind: "annotation";
|
|
211
211
|
entryId: string;
|
|
212
212
|
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
213
213
|
}, {
|
|
@@ -226,8 +226,8 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
226
226
|
disposition?: "addressed" | "deferred" | "wontfix" | undefined;
|
|
227
227
|
dispositionReason?: string | undefined;
|
|
228
228
|
};
|
|
229
|
-
kind: "annotation";
|
|
230
229
|
at: string;
|
|
230
|
+
kind: "annotation";
|
|
231
231
|
entryId: string;
|
|
232
232
|
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
233
233
|
}>, z.ZodObject<{
|
|
@@ -238,15 +238,15 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
238
238
|
from: z.ZodNullable<z.ZodEnum<["in-review", "iterating", "approved"]>>;
|
|
239
239
|
to: z.ZodNullable<z.ZodEnum<["in-review", "iterating", "approved"]>>;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
kind: "review-state-change";
|
|
242
241
|
at: string;
|
|
242
|
+
kind: "review-state-change";
|
|
243
243
|
entryId: string;
|
|
244
244
|
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
245
245
|
from: "in-review" | "iterating" | "approved" | null;
|
|
246
246
|
to: "in-review" | "iterating" | "approved" | null;
|
|
247
247
|
}, {
|
|
248
|
-
kind: "review-state-change";
|
|
249
248
|
at: string;
|
|
249
|
+
kind: "review-state-change";
|
|
250
250
|
entryId: string;
|
|
251
251
|
stage: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
252
252
|
from: "in-review" | "iterating" | "approved" | null;
|
|
@@ -260,16 +260,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
260
260
|
reason: z.ZodOptional<z.ZodString>;
|
|
261
261
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
|
-
kind: "stage-transition";
|
|
264
263
|
at: string;
|
|
264
|
+
kind: "stage-transition";
|
|
265
265
|
entryId: string;
|
|
266
266
|
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
267
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
|
-
kind: "stage-transition";
|
|
272
271
|
at: string;
|
|
272
|
+
kind: "stage-transition";
|
|
273
273
|
entryId: string;
|
|
274
274
|
from: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
275
275
|
to: "Ideas" | "Planned" | "Outlining" | "Drafting" | "Final" | "Published" | "Blocked" | "Cancelled";
|
|
@@ -422,18 +422,18 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
422
422
|
type: "address";
|
|
423
423
|
createdAt: string;
|
|
424
424
|
id: string;
|
|
425
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
426
425
|
workflowId: string;
|
|
427
426
|
commentId: string;
|
|
427
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
428
428
|
reason?: string | undefined;
|
|
429
429
|
}, {
|
|
430
430
|
version: number;
|
|
431
431
|
type: "address";
|
|
432
432
|
createdAt: string;
|
|
433
433
|
id: string;
|
|
434
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
435
434
|
workflowId: string;
|
|
436
435
|
commentId: string;
|
|
436
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
437
437
|
reason?: string | undefined;
|
|
438
438
|
}>, z.ZodObject<{
|
|
439
439
|
type: z.ZodLiteral<"edit-comment">;
|
|
@@ -498,6 +498,27 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
498
498
|
id: string;
|
|
499
499
|
workflowId: string;
|
|
500
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;
|
|
501
522
|
}>]>;
|
|
502
523
|
}, "strip", z.ZodTypeAny, {
|
|
503
524
|
annotation: {
|
|
@@ -546,9 +567,9 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
546
567
|
type: "address";
|
|
547
568
|
createdAt: string;
|
|
548
569
|
id: string;
|
|
549
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
550
570
|
workflowId: string;
|
|
551
571
|
commentId: string;
|
|
572
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
552
573
|
reason?: string | undefined;
|
|
553
574
|
} | {
|
|
554
575
|
type: "edit-comment";
|
|
@@ -569,9 +590,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
569
590
|
id: string;
|
|
570
591
|
workflowId: string;
|
|
571
592
|
commentId: string;
|
|
593
|
+
} | {
|
|
594
|
+
type: "archive-comment";
|
|
595
|
+
createdAt: string;
|
|
596
|
+
id: string;
|
|
597
|
+
workflowId: string;
|
|
598
|
+
commentId: string;
|
|
599
|
+
priorStage?: string | undefined;
|
|
572
600
|
};
|
|
573
|
-
kind: "entry-annotation";
|
|
574
601
|
at: string;
|
|
602
|
+
kind: "entry-annotation";
|
|
575
603
|
entryId: string;
|
|
576
604
|
}, {
|
|
577
605
|
annotation: {
|
|
@@ -620,9 +648,9 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
620
648
|
type: "address";
|
|
621
649
|
createdAt: string;
|
|
622
650
|
id: string;
|
|
623
|
-
disposition: "addressed" | "deferred" | "wontfix";
|
|
624
651
|
workflowId: string;
|
|
625
652
|
commentId: string;
|
|
653
|
+
disposition: "addressed" | "deferred" | "wontfix";
|
|
626
654
|
reason?: string | undefined;
|
|
627
655
|
} | {
|
|
628
656
|
type: "edit-comment";
|
|
@@ -643,9 +671,16 @@ export declare const JournalEventSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodO
|
|
|
643
671
|
id: string;
|
|
644
672
|
workflowId: string;
|
|
645
673
|
commentId: string;
|
|
674
|
+
} | {
|
|
675
|
+
type: "archive-comment";
|
|
676
|
+
createdAt: string;
|
|
677
|
+
id: string;
|
|
678
|
+
workflowId: string;
|
|
679
|
+
commentId: string;
|
|
680
|
+
priorStage?: string | undefined;
|
|
646
681
|
};
|
|
647
|
-
kind: "entry-annotation";
|
|
648
682
|
at: string;
|
|
683
|
+
kind: "entry-annotation";
|
|
649
684
|
entryId: string;
|
|
650
685
|
}>]>;
|
|
651
686
|
export type JournalEvent = z.infer<typeof JournalEventSchema>;
|
|
@@ -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;AA4ExB,eAAO,MAAM,kBAAkB
|
|
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;AA4ExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQ7B,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.
|
|
3
|
+
"version": "0.17.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",
|