@digi4care/omo-slim-decision-layer 0.2.1 → 0.2.3
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/README.md +10 -4
- package/dist/index.js +3380 -2983
- package/dist/model/record.d.ts +64 -64
- package/dist/register/register.d.ts +20 -20
- package/package.json +6 -7
package/dist/model/record.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const RecordTypes: readonly [
|
|
2
|
+
export declare const RecordTypes: readonly ['REQ', 'CONSTRAINT', 'ASSUMPTION', 'DEC'];
|
|
3
3
|
export type RecordType = (typeof RecordTypes)[number];
|
|
4
|
-
export declare const RecordStatuses: readonly [
|
|
4
|
+
export declare const RecordStatuses: readonly ['proposed', 'accepted', 'rejected', 'superseded'];
|
|
5
5
|
export type RecordStatus = (typeof RecordStatuses)[number];
|
|
6
|
-
export declare const LinkRelations: readonly [
|
|
6
|
+
export declare const LinkRelations: readonly ['refines', 'depends_on', 'constrains', 'relates_to'];
|
|
7
7
|
export type LinkRelation = (typeof LinkRelations)[number];
|
|
8
8
|
export declare function recordIdPattern(type: RecordType): RegExp;
|
|
9
9
|
export declare const RecordId: z.ZodString;
|
|
10
10
|
export type RecordId = z.infer<typeof RecordId>;
|
|
11
11
|
export declare const LinkSchema: z.ZodObject<{
|
|
12
12
|
type: z.ZodEnum<{
|
|
13
|
-
refines: "refines";
|
|
14
|
-
depends_on: "depends_on";
|
|
15
13
|
constrains: "constrains";
|
|
14
|
+
depends_on: "depends_on";
|
|
15
|
+
refines: "refines";
|
|
16
16
|
relates_to: "relates_to";
|
|
17
17
|
}>;
|
|
18
18
|
target: z.ZodString;
|
|
@@ -20,13 +20,11 @@ export declare const LinkSchema: z.ZodObject<{
|
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
export type Link = z.infer<typeof LinkSchema>;
|
|
22
22
|
export declare const ReqRecordSchema: z.ZodObject<{
|
|
23
|
-
type: z.ZodLiteral<"REQ">;
|
|
24
|
-
id: z.ZodString;
|
|
25
23
|
schema_version: z.ZodLiteral<"1.0">;
|
|
26
24
|
title: z.ZodString;
|
|
27
25
|
status: z.ZodEnum<{
|
|
28
|
-
proposed: "proposed";
|
|
29
26
|
accepted: "accepted";
|
|
27
|
+
proposed: "proposed";
|
|
30
28
|
rejected: "rejected";
|
|
31
29
|
superseded: "superseded";
|
|
32
30
|
}>;
|
|
@@ -36,23 +34,23 @@ export declare const ReqRecordSchema: z.ZodObject<{
|
|
|
36
34
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
37
35
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
38
36
|
type: z.ZodEnum<{
|
|
39
|
-
refines: "refines";
|
|
40
|
-
depends_on: "depends_on";
|
|
41
37
|
constrains: "constrains";
|
|
38
|
+
depends_on: "depends_on";
|
|
39
|
+
refines: "refines";
|
|
42
40
|
relates_to: "relates_to";
|
|
43
41
|
}>;
|
|
44
42
|
target: z.ZodString;
|
|
45
43
|
rationale: z.ZodString;
|
|
46
44
|
}, z.core.$strip>>>;
|
|
45
|
+
type: z.ZodLiteral<"REQ">;
|
|
46
|
+
id: z.ZodString;
|
|
47
47
|
}, z.core.$strip>;
|
|
48
48
|
export declare const ConstraintRecordSchema: z.ZodObject<{
|
|
49
|
-
type: z.ZodLiteral<"CONSTRAINT">;
|
|
50
|
-
id: z.ZodString;
|
|
51
49
|
schema_version: z.ZodLiteral<"1.0">;
|
|
52
50
|
title: z.ZodString;
|
|
53
51
|
status: z.ZodEnum<{
|
|
54
|
-
proposed: "proposed";
|
|
55
52
|
accepted: "accepted";
|
|
53
|
+
proposed: "proposed";
|
|
56
54
|
rejected: "rejected";
|
|
57
55
|
superseded: "superseded";
|
|
58
56
|
}>;
|
|
@@ -62,23 +60,23 @@ export declare const ConstraintRecordSchema: z.ZodObject<{
|
|
|
62
60
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
63
61
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
64
62
|
type: z.ZodEnum<{
|
|
65
|
-
refines: "refines";
|
|
66
|
-
depends_on: "depends_on";
|
|
67
63
|
constrains: "constrains";
|
|
64
|
+
depends_on: "depends_on";
|
|
65
|
+
refines: "refines";
|
|
68
66
|
relates_to: "relates_to";
|
|
69
67
|
}>;
|
|
70
68
|
target: z.ZodString;
|
|
71
69
|
rationale: z.ZodString;
|
|
72
70
|
}, z.core.$strip>>>;
|
|
71
|
+
type: z.ZodLiteral<"CONSTRAINT">;
|
|
72
|
+
id: z.ZodString;
|
|
73
73
|
}, z.core.$strip>;
|
|
74
74
|
export declare const AssumptionRecordSchema: z.ZodObject<{
|
|
75
|
-
type: z.ZodLiteral<"ASSUMPTION">;
|
|
76
|
-
id: z.ZodString;
|
|
77
75
|
schema_version: z.ZodLiteral<"1.0">;
|
|
78
76
|
title: z.ZodString;
|
|
79
77
|
status: z.ZodEnum<{
|
|
80
|
-
proposed: "proposed";
|
|
81
78
|
accepted: "accepted";
|
|
79
|
+
proposed: "proposed";
|
|
82
80
|
rejected: "rejected";
|
|
83
81
|
superseded: "superseded";
|
|
84
82
|
}>;
|
|
@@ -88,24 +86,24 @@ export declare const AssumptionRecordSchema: z.ZodObject<{
|
|
|
88
86
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
89
87
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
90
88
|
type: z.ZodEnum<{
|
|
91
|
-
refines: "refines";
|
|
92
|
-
depends_on: "depends_on";
|
|
93
89
|
constrains: "constrains";
|
|
90
|
+
depends_on: "depends_on";
|
|
91
|
+
refines: "refines";
|
|
94
92
|
relates_to: "relates_to";
|
|
95
93
|
}>;
|
|
96
94
|
target: z.ZodString;
|
|
97
95
|
rationale: z.ZodString;
|
|
98
96
|
}, z.core.$strip>>>;
|
|
97
|
+
type: z.ZodLiteral<"ASSUMPTION">;
|
|
98
|
+
id: z.ZodString;
|
|
99
99
|
needed_to_close: z.ZodString;
|
|
100
100
|
}, z.core.$strip>;
|
|
101
101
|
export declare const DecRecordSchema: z.ZodObject<{
|
|
102
|
-
type: z.ZodLiteral<"DEC">;
|
|
103
|
-
id: z.ZodString;
|
|
104
102
|
schema_version: z.ZodLiteral<"1.0">;
|
|
105
103
|
title: z.ZodString;
|
|
106
104
|
status: z.ZodEnum<{
|
|
107
|
-
proposed: "proposed";
|
|
108
105
|
accepted: "accepted";
|
|
106
|
+
proposed: "proposed";
|
|
109
107
|
rejected: "rejected";
|
|
110
108
|
superseded: "superseded";
|
|
111
109
|
}>;
|
|
@@ -115,14 +113,16 @@ export declare const DecRecordSchema: z.ZodObject<{
|
|
|
115
113
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
116
114
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
117
115
|
type: z.ZodEnum<{
|
|
118
|
-
refines: "refines";
|
|
119
|
-
depends_on: "depends_on";
|
|
120
116
|
constrains: "constrains";
|
|
117
|
+
depends_on: "depends_on";
|
|
118
|
+
refines: "refines";
|
|
121
119
|
relates_to: "relates_to";
|
|
122
120
|
}>;
|
|
123
121
|
target: z.ZodString;
|
|
124
122
|
rationale: z.ZodString;
|
|
125
123
|
}, z.core.$strip>>>;
|
|
124
|
+
type: z.ZodLiteral<"DEC">;
|
|
125
|
+
id: z.ZodString;
|
|
126
126
|
decision: z.ZodString;
|
|
127
127
|
alternatives_rejected: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
128
128
|
alternative: z.ZodString;
|
|
@@ -131,13 +131,11 @@ export declare const DecRecordSchema: z.ZodObject<{
|
|
|
131
131
|
consequences: z.ZodString;
|
|
132
132
|
}, z.core.$strip>;
|
|
133
133
|
export declare const RecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
134
|
-
type: z.ZodLiteral<"REQ">;
|
|
135
|
-
id: z.ZodString;
|
|
136
134
|
schema_version: z.ZodLiteral<"1.0">;
|
|
137
135
|
title: z.ZodString;
|
|
138
136
|
status: z.ZodEnum<{
|
|
139
|
-
proposed: "proposed";
|
|
140
137
|
accepted: "accepted";
|
|
138
|
+
proposed: "proposed";
|
|
141
139
|
rejected: "rejected";
|
|
142
140
|
superseded: "superseded";
|
|
143
141
|
}>;
|
|
@@ -147,22 +145,22 @@ export declare const RecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
147
145
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
148
146
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
149
147
|
type: z.ZodEnum<{
|
|
150
|
-
refines: "refines";
|
|
151
|
-
depends_on: "depends_on";
|
|
152
148
|
constrains: "constrains";
|
|
149
|
+
depends_on: "depends_on";
|
|
150
|
+
refines: "refines";
|
|
153
151
|
relates_to: "relates_to";
|
|
154
152
|
}>;
|
|
155
153
|
target: z.ZodString;
|
|
156
154
|
rationale: z.ZodString;
|
|
157
155
|
}, z.core.$strip>>>;
|
|
158
|
-
|
|
159
|
-
type: z.ZodLiteral<"CONSTRAINT">;
|
|
156
|
+
type: z.ZodLiteral<"REQ">;
|
|
160
157
|
id: z.ZodString;
|
|
158
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
161
159
|
schema_version: z.ZodLiteral<"1.0">;
|
|
162
160
|
title: z.ZodString;
|
|
163
161
|
status: z.ZodEnum<{
|
|
164
|
-
proposed: "proposed";
|
|
165
162
|
accepted: "accepted";
|
|
163
|
+
proposed: "proposed";
|
|
166
164
|
rejected: "rejected";
|
|
167
165
|
superseded: "superseded";
|
|
168
166
|
}>;
|
|
@@ -172,22 +170,22 @@ export declare const RecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
172
170
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
173
171
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
174
172
|
type: z.ZodEnum<{
|
|
175
|
-
refines: "refines";
|
|
176
|
-
depends_on: "depends_on";
|
|
177
173
|
constrains: "constrains";
|
|
174
|
+
depends_on: "depends_on";
|
|
175
|
+
refines: "refines";
|
|
178
176
|
relates_to: "relates_to";
|
|
179
177
|
}>;
|
|
180
178
|
target: z.ZodString;
|
|
181
179
|
rationale: z.ZodString;
|
|
182
180
|
}, z.core.$strip>>>;
|
|
183
|
-
|
|
184
|
-
type: z.ZodLiteral<"ASSUMPTION">;
|
|
181
|
+
type: z.ZodLiteral<"CONSTRAINT">;
|
|
185
182
|
id: z.ZodString;
|
|
183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
186
184
|
schema_version: z.ZodLiteral<"1.0">;
|
|
187
185
|
title: z.ZodString;
|
|
188
186
|
status: z.ZodEnum<{
|
|
189
|
-
proposed: "proposed";
|
|
190
187
|
accepted: "accepted";
|
|
188
|
+
proposed: "proposed";
|
|
191
189
|
rejected: "rejected";
|
|
192
190
|
superseded: "superseded";
|
|
193
191
|
}>;
|
|
@@ -197,23 +195,23 @@ export declare const RecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
197
195
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
198
196
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
199
197
|
type: z.ZodEnum<{
|
|
200
|
-
refines: "refines";
|
|
201
|
-
depends_on: "depends_on";
|
|
202
198
|
constrains: "constrains";
|
|
199
|
+
depends_on: "depends_on";
|
|
200
|
+
refines: "refines";
|
|
203
201
|
relates_to: "relates_to";
|
|
204
202
|
}>;
|
|
205
203
|
target: z.ZodString;
|
|
206
204
|
rationale: z.ZodString;
|
|
207
205
|
}, z.core.$strip>>>;
|
|
206
|
+
type: z.ZodLiteral<"ASSUMPTION">;
|
|
207
|
+
id: z.ZodString;
|
|
208
208
|
needed_to_close: z.ZodString;
|
|
209
209
|
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
-
type: z.ZodLiteral<"DEC">;
|
|
211
|
-
id: z.ZodString;
|
|
212
210
|
schema_version: z.ZodLiteral<"1.0">;
|
|
213
211
|
title: z.ZodString;
|
|
214
212
|
status: z.ZodEnum<{
|
|
215
|
-
proposed: "proposed";
|
|
216
213
|
accepted: "accepted";
|
|
214
|
+
proposed: "proposed";
|
|
217
215
|
rejected: "rejected";
|
|
218
216
|
superseded: "superseded";
|
|
219
217
|
}>;
|
|
@@ -223,14 +221,16 @@ export declare const RecordSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
223
221
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
224
222
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
225
223
|
type: z.ZodEnum<{
|
|
226
|
-
refines: "refines";
|
|
227
|
-
depends_on: "depends_on";
|
|
228
224
|
constrains: "constrains";
|
|
225
|
+
depends_on: "depends_on";
|
|
226
|
+
refines: "refines";
|
|
229
227
|
relates_to: "relates_to";
|
|
230
228
|
}>;
|
|
231
229
|
target: z.ZodString;
|
|
232
230
|
rationale: z.ZodString;
|
|
233
231
|
}, z.core.$strip>>>;
|
|
232
|
+
type: z.ZodLiteral<"DEC">;
|
|
233
|
+
id: z.ZodString;
|
|
234
234
|
decision: z.ZodString;
|
|
235
235
|
alternatives_rejected: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
236
236
|
alternative: z.ZodString;
|
|
@@ -244,76 +244,76 @@ export type AssumptionRecord = z.infer<typeof AssumptionRecordSchema>;
|
|
|
244
244
|
export type DecRecord = z.infer<typeof DecRecordSchema>;
|
|
245
245
|
export type DecisionRecord = z.infer<typeof RecordSchema>;
|
|
246
246
|
export declare const AddRecordInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
247
|
-
type: z.ZodLiteral<"REQ">;
|
|
248
247
|
title: z.ZodString;
|
|
249
248
|
owner: z.ZodOptional<z.ZodString>;
|
|
250
249
|
change_authority: z.ZodOptional<z.ZodString>;
|
|
251
250
|
supersedes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
252
251
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
253
252
|
type: z.ZodEnum<{
|
|
254
|
-
refines: "refines";
|
|
255
|
-
depends_on: "depends_on";
|
|
256
253
|
constrains: "constrains";
|
|
254
|
+
depends_on: "depends_on";
|
|
255
|
+
refines: "refines";
|
|
257
256
|
relates_to: "relates_to";
|
|
258
257
|
}>;
|
|
259
258
|
target: z.ZodString;
|
|
260
259
|
rationale: z.ZodString;
|
|
261
260
|
}, z.core.$strip>>>;
|
|
261
|
+
type: z.ZodLiteral<"REQ">;
|
|
262
262
|
}, z.core.$strip>, z.ZodObject<{
|
|
263
|
-
type: z.ZodLiteral<"CONSTRAINT">;
|
|
264
263
|
title: z.ZodString;
|
|
265
264
|
owner: z.ZodOptional<z.ZodString>;
|
|
266
265
|
change_authority: z.ZodOptional<z.ZodString>;
|
|
267
266
|
supersedes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
268
267
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
269
268
|
type: z.ZodEnum<{
|
|
270
|
-
refines: "refines";
|
|
271
|
-
depends_on: "depends_on";
|
|
272
269
|
constrains: "constrains";
|
|
270
|
+
depends_on: "depends_on";
|
|
271
|
+
refines: "refines";
|
|
273
272
|
relates_to: "relates_to";
|
|
274
273
|
}>;
|
|
275
274
|
target: z.ZodString;
|
|
276
275
|
rationale: z.ZodString;
|
|
277
276
|
}, z.core.$strip>>>;
|
|
277
|
+
type: z.ZodLiteral<"CONSTRAINT">;
|
|
278
278
|
}, z.core.$strip>, z.ZodObject<{
|
|
279
|
-
type: z.ZodLiteral<"ASSUMPTION">;
|
|
280
|
-
needed_to_close: z.ZodString;
|
|
281
279
|
title: z.ZodString;
|
|
282
280
|
owner: z.ZodOptional<z.ZodString>;
|
|
283
281
|
change_authority: z.ZodOptional<z.ZodString>;
|
|
284
282
|
supersedes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
285
283
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
286
284
|
type: z.ZodEnum<{
|
|
287
|
-
refines: "refines";
|
|
288
|
-
depends_on: "depends_on";
|
|
289
285
|
constrains: "constrains";
|
|
286
|
+
depends_on: "depends_on";
|
|
287
|
+
refines: "refines";
|
|
290
288
|
relates_to: "relates_to";
|
|
291
289
|
}>;
|
|
292
290
|
target: z.ZodString;
|
|
293
291
|
rationale: z.ZodString;
|
|
294
292
|
}, z.core.$strip>>>;
|
|
293
|
+
type: z.ZodLiteral<"ASSUMPTION">;
|
|
294
|
+
needed_to_close: z.ZodString;
|
|
295
295
|
}, z.core.$strip>, z.ZodObject<{
|
|
296
|
-
type: z.ZodLiteral<"DEC">;
|
|
297
|
-
decision: z.ZodString;
|
|
298
|
-
alternatives_rejected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
299
|
-
alternative: z.ZodString;
|
|
300
|
-
rejected_because: z.ZodString;
|
|
301
|
-
}, z.core.$strip>>>;
|
|
302
|
-
consequences: z.ZodString;
|
|
303
296
|
title: z.ZodString;
|
|
304
297
|
owner: z.ZodOptional<z.ZodString>;
|
|
305
298
|
change_authority: z.ZodOptional<z.ZodString>;
|
|
306
299
|
supersedes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
307
300
|
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
308
301
|
type: z.ZodEnum<{
|
|
309
|
-
refines: "refines";
|
|
310
|
-
depends_on: "depends_on";
|
|
311
302
|
constrains: "constrains";
|
|
303
|
+
depends_on: "depends_on";
|
|
304
|
+
refines: "refines";
|
|
312
305
|
relates_to: "relates_to";
|
|
313
306
|
}>;
|
|
314
307
|
target: z.ZodString;
|
|
315
308
|
rationale: z.ZodString;
|
|
316
309
|
}, z.core.$strip>>>;
|
|
310
|
+
type: z.ZodLiteral<"DEC">;
|
|
311
|
+
decision: z.ZodString;
|
|
312
|
+
alternatives_rejected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
313
|
+
alternative: z.ZodString;
|
|
314
|
+
rejected_because: z.ZodString;
|
|
315
|
+
}, z.core.$strip>>>;
|
|
316
|
+
consequences: z.ZodString;
|
|
317
317
|
}, z.core.$strip>], "type">;
|
|
318
318
|
export type AddRecordInput = z.infer<typeof AddRecordInputSchema>;
|
|
319
319
|
export declare function sortRecords(records: DecisionRecord[]): DecisionRecord[];
|
|
@@ -26,13 +26,11 @@ export declare const RegisterSchema: z.ZodObject<{
|
|
|
26
26
|
change_authority: z.ZodString;
|
|
27
27
|
}, z.core.$strip>;
|
|
28
28
|
records: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
|
-
type: z.ZodLiteral<"REQ">;
|
|
30
|
-
id: z.ZodString;
|
|
31
29
|
schema_version: z.ZodLiteral<"1.0">;
|
|
32
30
|
title: z.ZodString;
|
|
33
31
|
status: z.ZodEnum<{
|
|
34
|
-
proposed: "proposed";
|
|
35
32
|
accepted: "accepted";
|
|
33
|
+
proposed: "proposed";
|
|
36
34
|
rejected: "rejected";
|
|
37
35
|
superseded: "superseded";
|
|
38
36
|
}>;
|
|
@@ -42,22 +40,22 @@ export declare const RegisterSchema: z.ZodObject<{
|
|
|
42
40
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
43
41
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
44
42
|
type: z.ZodEnum<{
|
|
45
|
-
refines: "refines";
|
|
46
|
-
depends_on: "depends_on";
|
|
47
43
|
constrains: "constrains";
|
|
44
|
+
depends_on: "depends_on";
|
|
45
|
+
refines: "refines";
|
|
48
46
|
relates_to: "relates_to";
|
|
49
47
|
}>;
|
|
50
48
|
target: z.ZodString;
|
|
51
49
|
rationale: z.ZodString;
|
|
52
50
|
}, z.core.$strip>>>;
|
|
53
|
-
|
|
54
|
-
type: z.ZodLiteral<"CONSTRAINT">;
|
|
51
|
+
type: z.ZodLiteral<"REQ">;
|
|
55
52
|
id: z.ZodString;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
54
|
schema_version: z.ZodLiteral<"1.0">;
|
|
57
55
|
title: z.ZodString;
|
|
58
56
|
status: z.ZodEnum<{
|
|
59
|
-
proposed: "proposed";
|
|
60
57
|
accepted: "accepted";
|
|
58
|
+
proposed: "proposed";
|
|
61
59
|
rejected: "rejected";
|
|
62
60
|
superseded: "superseded";
|
|
63
61
|
}>;
|
|
@@ -67,22 +65,22 @@ export declare const RegisterSchema: z.ZodObject<{
|
|
|
67
65
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
68
66
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
69
67
|
type: z.ZodEnum<{
|
|
70
|
-
refines: "refines";
|
|
71
|
-
depends_on: "depends_on";
|
|
72
68
|
constrains: "constrains";
|
|
69
|
+
depends_on: "depends_on";
|
|
70
|
+
refines: "refines";
|
|
73
71
|
relates_to: "relates_to";
|
|
74
72
|
}>;
|
|
75
73
|
target: z.ZodString;
|
|
76
74
|
rationale: z.ZodString;
|
|
77
75
|
}, z.core.$strip>>>;
|
|
78
|
-
|
|
79
|
-
type: z.ZodLiteral<"ASSUMPTION">;
|
|
76
|
+
type: z.ZodLiteral<"CONSTRAINT">;
|
|
80
77
|
id: z.ZodString;
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
79
|
schema_version: z.ZodLiteral<"1.0">;
|
|
82
80
|
title: z.ZodString;
|
|
83
81
|
status: z.ZodEnum<{
|
|
84
|
-
proposed: "proposed";
|
|
85
82
|
accepted: "accepted";
|
|
83
|
+
proposed: "proposed";
|
|
86
84
|
rejected: "rejected";
|
|
87
85
|
superseded: "superseded";
|
|
88
86
|
}>;
|
|
@@ -92,23 +90,23 @@ export declare const RegisterSchema: z.ZodObject<{
|
|
|
92
90
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
93
91
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
94
92
|
type: z.ZodEnum<{
|
|
95
|
-
refines: "refines";
|
|
96
|
-
depends_on: "depends_on";
|
|
97
93
|
constrains: "constrains";
|
|
94
|
+
depends_on: "depends_on";
|
|
95
|
+
refines: "refines";
|
|
98
96
|
relates_to: "relates_to";
|
|
99
97
|
}>;
|
|
100
98
|
target: z.ZodString;
|
|
101
99
|
rationale: z.ZodString;
|
|
102
100
|
}, z.core.$strip>>>;
|
|
101
|
+
type: z.ZodLiteral<"ASSUMPTION">;
|
|
102
|
+
id: z.ZodString;
|
|
103
103
|
needed_to_close: z.ZodString;
|
|
104
104
|
}, z.core.$strip>, z.ZodObject<{
|
|
105
|
-
type: z.ZodLiteral<"DEC">;
|
|
106
|
-
id: z.ZodString;
|
|
107
105
|
schema_version: z.ZodLiteral<"1.0">;
|
|
108
106
|
title: z.ZodString;
|
|
109
107
|
status: z.ZodEnum<{
|
|
110
|
-
proposed: "proposed";
|
|
111
108
|
accepted: "accepted";
|
|
109
|
+
proposed: "proposed";
|
|
112
110
|
rejected: "rejected";
|
|
113
111
|
superseded: "superseded";
|
|
114
112
|
}>;
|
|
@@ -118,14 +116,16 @@ export declare const RegisterSchema: z.ZodObject<{
|
|
|
118
116
|
status_reason: z.ZodOptional<z.ZodString>;
|
|
119
117
|
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
120
118
|
type: z.ZodEnum<{
|
|
121
|
-
refines: "refines";
|
|
122
|
-
depends_on: "depends_on";
|
|
123
119
|
constrains: "constrains";
|
|
120
|
+
depends_on: "depends_on";
|
|
121
|
+
refines: "refines";
|
|
124
122
|
relates_to: "relates_to";
|
|
125
123
|
}>;
|
|
126
124
|
target: z.ZodString;
|
|
127
125
|
rationale: z.ZodString;
|
|
128
126
|
}, z.core.$strip>>>;
|
|
127
|
+
type: z.ZodLiteral<"DEC">;
|
|
128
|
+
id: z.ZodString;
|
|
129
129
|
decision: z.ZodString;
|
|
130
130
|
alternatives_rejected: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
131
131
|
alternative: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digi4care/omo-slim-decision-layer",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Git-native decision register for OpenCode: typed records (REQ/CONSTRAINT/ASSUMPTION/DEC), owner ratification and traceability, as a companion plugin for oh-my-opencode-slim",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"README.md"
|
|
46
46
|
],
|
|
47
47
|
"scripts": {
|
|
48
|
-
"build": "bun build src/index.ts --outdir dist --target node --format esm --external @opencode-ai/plugin --external zod && tsc --emitDeclarationOnly",
|
|
48
|
+
"build": "rm -rf dist && bun build src/index.ts --outdir dist --target node --format esm --external @opencode-ai/plugin --external zod && tsc --emitDeclarationOnly",
|
|
49
49
|
"test": "bun test",
|
|
50
50
|
"typecheck": "tsc --noEmit",
|
|
51
51
|
"lint": "biome lint .",
|
|
@@ -58,15 +58,14 @@
|
|
|
58
58
|
"prepublishOnly": "bun run build"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"js-yaml": "^4.
|
|
61
|
+
"js-yaml": "^5.4.3",
|
|
62
62
|
"zod": "^4.6.5"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@biomejs/biome": "2.5.
|
|
66
|
-
"@opencode-ai/plugin": "1.18.
|
|
67
|
-
"@types/js-yaml": "^4.0.9",
|
|
65
|
+
"@biomejs/biome": "2.5.15",
|
|
66
|
+
"@opencode-ai/plugin": "1.18.35",
|
|
68
67
|
"bun-types": "^1.4.2",
|
|
69
|
-
"typescript": "^
|
|
68
|
+
"typescript": "^7.0.2"
|
|
70
69
|
},
|
|
71
70
|
"peerDependencies": {
|
|
72
71
|
"@opencode-ai/plugin": ">=1.18.0",
|