laymos 0.0.9 → 0.0.11
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 +259 -142
- package/dist/architecture-analysis-schema/module-source-schema.d.ts +4 -0
- package/dist/architecture-analysis-schema/module-source-schema.d.ts.map +1 -1
- package/dist/architecture-analysis-schema/module-source-schema.js +4 -0
- package/dist/change-set-schema/change-set-schema.js +2 -2
- package/dist/cli/run.d.ts +1 -1
- package/dist/cli/run.d.ts.map +1 -1
- package/dist/cli/run.js +2 -0
- package/dist/cli/skills.d.ts +6 -0
- package/dist/cli/skills.d.ts.map +1 -0
- package/dist/cli/skills.js +9 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/orchestrator/load-changes/index.d.ts +1 -1
- package/dist/orchestrator/load-changes/index.d.ts.map +1 -1
- package/dist/orchestrator/load-changes/index.js +1 -1
- package/dist/orchestrator/load-changes/load-changes.d.ts +4 -3
- package/dist/orchestrator/load-changes/load-changes.d.ts.map +1 -1
- package/dist/orchestrator/load-changes/load-changes.js +14 -9
- package/dist/orchestrator/load-source-files/index.d.ts +1 -1
- package/dist/orchestrator/load-source-files/index.d.ts.map +1 -1
- package/dist/orchestrator/load-source-files/index.js +1 -1
- package/dist/orchestrator/load-source-files/load-source-files.d.ts +20 -4
- package/dist/orchestrator/load-source-files/load-source-files.d.ts.map +1 -1
- package/dist/orchestrator/load-source-files/load-source-files.js +46 -7
- package/dist/services/git/changed-paths.d.ts +1 -0
- package/dist/services/git/changed-paths.d.ts.map +1 -1
- package/dist/services/git/changed-paths.js +8 -0
- package/dist/services/git/git.d.ts +1 -0
- package/dist/services/git/git.d.ts.map +1 -1
- package/dist/services/git/git.js +5 -1
- package/dist/skills-command/index.d.ts +2 -0
- package/dist/skills-command/index.d.ts.map +1 -0
- package/dist/skills-command/index.js +1 -0
- package/dist/skills-command/skills-command.d.ts +21 -0
- package/dist/skills-command/skills-command.d.ts.map +1 -0
- package/dist/skills-command/skills-command.js +64 -0
- package/dist/story/schema/index.d.ts +2 -2
- package/dist/story/schema/index.d.ts.map +1 -1
- package/dist/story/schema/index.js +1 -1
- package/dist/story/schema/story-report-schema.d.ts +264 -132
- package/dist/story/schema/story-report-schema.d.ts.map +1 -1
- package/dist/story/schema/story-report-schema.js +4 -4
- package/dist/story/story.d.ts +3 -1
- package/dist/story/story.d.ts.map +1 -1
- package/dist/story/story.js +4 -5
- package/package.json +18 -11
- package/schema.json +60 -55
- package/skills/deep-module/SKILL.md +55 -0
- package/skills/domain-modeling/ADR-FORMAT.md +47 -0
- package/skills/domain-modeling/CONTEXT-FORMAT.md +60 -0
- package/skills/domain-modeling/SKILL.md +74 -0
- package/skills/domain-modeling/agents/openai.yaml +3 -0
- package/skills/laymos/SKILL.md +130 -0
- package/skills/laymos/references/config.md +96 -0
- package/skills/laymos/references/design.md +166 -0
- package/skills/laymos/references/graphs.md +85 -0
- package/skills/laymos/references/visibility.md +60 -0
- package/skills/to-laymos/SKILL.md +60 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from 'effect';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { JournalSchema } from '@pkishorez/flow';
|
|
3
|
+
export { JournalSchema };
|
|
4
4
|
export type JsonValue = string | number | boolean | null | readonly JsonValue[] | {
|
|
5
5
|
readonly [key: string]: JsonValue;
|
|
6
6
|
};
|
|
@@ -64,77 +64,121 @@ export declare const QuestionSectionSchema: Schema.Union<readonly [Schema.Struct
|
|
|
64
64
|
}>;
|
|
65
65
|
}>, Schema.Struct<{
|
|
66
66
|
readonly kind: Schema.Literal<"flow">;
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
67
|
+
readonly journal: Schema.Struct<{
|
|
68
|
+
readonly flowId: Schema.String;
|
|
69
|
+
readonly entries: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
71
70
|
readonly id: Schema.String;
|
|
71
|
+
readonly flowId: Schema.String;
|
|
72
72
|
readonly participantName: Schema.String;
|
|
73
73
|
readonly name: Schema.String;
|
|
74
|
+
readonly sequence: Schema.Number;
|
|
74
75
|
readonly timestamp: Schema.Number;
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly logs: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
82
|
-
readonly timestamp: Schema.Number;
|
|
83
|
-
readonly severity: Schema.Literals<readonly ["debug", "error", "info", "warning"]>;
|
|
84
|
-
readonly message: Schema.String;
|
|
85
|
-
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, import("@pkishorez/effect-tracer/flow").RecordedFlowAttributeValue, never, never>>>;
|
|
86
|
-
}>>>;
|
|
76
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
77
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
78
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
79
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
80
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
81
|
+
readonly kind: Schema.Literal<"event">;
|
|
87
82
|
}>, Schema.Struct<{
|
|
88
83
|
readonly id: Schema.String;
|
|
84
|
+
readonly flowId: Schema.String;
|
|
89
85
|
readonly participantName: Schema.String;
|
|
90
86
|
readonly name: Schema.String;
|
|
87
|
+
readonly sequence: Schema.Number;
|
|
91
88
|
readonly timestamp: Schema.Number;
|
|
92
|
-
readonly
|
|
89
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
90
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
91
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
92
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
93
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
94
|
+
readonly kind: Schema.Literal<"message">;
|
|
95
|
+
readonly messageId: Schema.String;
|
|
96
|
+
readonly destination: Schema.String;
|
|
97
|
+
readonly replyTo: Schema.optional<Schema.String>;
|
|
98
|
+
}>, Schema.Struct<{
|
|
99
|
+
readonly id: Schema.String;
|
|
100
|
+
readonly flowId: Schema.String;
|
|
101
|
+
readonly participantName: Schema.String;
|
|
102
|
+
readonly name: Schema.String;
|
|
103
|
+
readonly sequence: Schema.Number;
|
|
104
|
+
readonly timestamp: Schema.Number;
|
|
105
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
106
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
107
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
108
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
109
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
110
|
+
readonly kind: Schema.Literal<"activation-start">;
|
|
111
|
+
readonly activationId: Schema.String;
|
|
112
|
+
}>, Schema.Struct<{
|
|
113
|
+
readonly id: Schema.String;
|
|
114
|
+
readonly flowId: Schema.String;
|
|
115
|
+
readonly participantName: Schema.String;
|
|
116
|
+
readonly name: Schema.String;
|
|
117
|
+
readonly sequence: Schema.Number;
|
|
118
|
+
readonly timestamp: Schema.Number;
|
|
119
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
120
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
121
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
122
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
123
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
93
124
|
readonly kind: Schema.Literal<"activation-end">;
|
|
94
|
-
readonly
|
|
125
|
+
readonly activationId: Schema.String;
|
|
95
126
|
readonly outcome: Schema.Literals<readonly ["completed", "failed", "interrupted"]>;
|
|
96
127
|
}>, Schema.Struct<{
|
|
97
128
|
readonly id: Schema.String;
|
|
129
|
+
readonly flowId: Schema.String;
|
|
98
130
|
readonly participantName: Schema.String;
|
|
99
131
|
readonly name: Schema.String;
|
|
132
|
+
readonly sequence: Schema.Number;
|
|
100
133
|
readonly timestamp: Schema.Number;
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
134
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
135
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
136
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
137
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
138
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
139
|
+
readonly kind: Schema.Literal<"wait">;
|
|
104
140
|
}>, Schema.Struct<{
|
|
105
141
|
readonly id: Schema.String;
|
|
142
|
+
readonly flowId: Schema.String;
|
|
106
143
|
readonly participantName: Schema.String;
|
|
107
144
|
readonly name: Schema.String;
|
|
145
|
+
readonly sequence: Schema.Number;
|
|
108
146
|
readonly timestamp: Schema.Number;
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
-
readonly
|
|
147
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
148
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
149
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
150
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
151
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
152
|
+
readonly kind: Schema.Literal<"resume">;
|
|
112
153
|
}>, Schema.Struct<{
|
|
113
154
|
readonly id: Schema.String;
|
|
155
|
+
readonly flowId: Schema.String;
|
|
114
156
|
readonly participantName: Schema.String;
|
|
115
157
|
readonly name: Schema.String;
|
|
158
|
+
readonly sequence: Schema.Number;
|
|
116
159
|
readonly timestamp: Schema.Number;
|
|
117
|
-
readonly
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
123
|
-
|
|
124
|
-
|
|
160
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
161
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
162
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
163
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
164
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
165
|
+
readonly kind: Schema.Literal<"check">;
|
|
166
|
+
readonly passed: Schema.Boolean;
|
|
167
|
+
}>, Schema.Struct<{
|
|
168
|
+
readonly id: Schema.String;
|
|
169
|
+
readonly flowId: Schema.String;
|
|
125
170
|
readonly participantName: Schema.String;
|
|
126
171
|
readonly name: Schema.String;
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
131
|
-
readonly
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
readonly
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}>>;
|
|
172
|
+
readonly sequence: Schema.Number;
|
|
173
|
+
readonly timestamp: Schema.Number;
|
|
174
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
175
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
176
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
177
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
178
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
179
|
+
readonly kind: Schema.Literal<"close">;
|
|
180
|
+
}>]>>;
|
|
181
|
+
readonly ordering: Schema.Literals<readonly ["recorded", "clock"]>;
|
|
138
182
|
}>;
|
|
139
183
|
}>]>;
|
|
140
184
|
export declare const StoryVerdictSchema: Schema.Literals<readonly ["passed", "failed", "errored"]>;
|
|
@@ -177,77 +221,121 @@ export declare const QuestionReportSchema: Schema.Struct<{
|
|
|
177
221
|
}>;
|
|
178
222
|
}>, Schema.Struct<{
|
|
179
223
|
readonly kind: Schema.Literal<"flow">;
|
|
180
|
-
readonly
|
|
181
|
-
readonly
|
|
182
|
-
readonly
|
|
183
|
-
readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
224
|
+
readonly journal: Schema.Struct<{
|
|
225
|
+
readonly flowId: Schema.String;
|
|
226
|
+
readonly entries: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
184
227
|
readonly id: Schema.String;
|
|
228
|
+
readonly flowId: Schema.String;
|
|
185
229
|
readonly participantName: Schema.String;
|
|
186
230
|
readonly name: Schema.String;
|
|
231
|
+
readonly sequence: Schema.Number;
|
|
187
232
|
readonly timestamp: Schema.Number;
|
|
188
|
-
readonly
|
|
189
|
-
readonly
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
193
|
-
readonly
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
233
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
234
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
235
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
236
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
237
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
238
|
+
readonly kind: Schema.Literal<"event">;
|
|
239
|
+
}>, Schema.Struct<{
|
|
240
|
+
readonly id: Schema.String;
|
|
241
|
+
readonly flowId: Schema.String;
|
|
242
|
+
readonly participantName: Schema.String;
|
|
243
|
+
readonly name: Schema.String;
|
|
244
|
+
readonly sequence: Schema.Number;
|
|
245
|
+
readonly timestamp: Schema.Number;
|
|
246
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
247
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
248
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
249
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
250
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
251
|
+
readonly kind: Schema.Literal<"message">;
|
|
252
|
+
readonly messageId: Schema.String;
|
|
253
|
+
readonly destination: Schema.String;
|
|
254
|
+
readonly replyTo: Schema.optional<Schema.String>;
|
|
200
255
|
}>, Schema.Struct<{
|
|
201
256
|
readonly id: Schema.String;
|
|
257
|
+
readonly flowId: Schema.String;
|
|
202
258
|
readonly participantName: Schema.String;
|
|
203
259
|
readonly name: Schema.String;
|
|
260
|
+
readonly sequence: Schema.Number;
|
|
204
261
|
readonly timestamp: Schema.Number;
|
|
205
|
-
readonly
|
|
262
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
263
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
264
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
265
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
266
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
267
|
+
readonly kind: Schema.Literal<"activation-start">;
|
|
268
|
+
readonly activationId: Schema.String;
|
|
269
|
+
}>, Schema.Struct<{
|
|
270
|
+
readonly id: Schema.String;
|
|
271
|
+
readonly flowId: Schema.String;
|
|
272
|
+
readonly participantName: Schema.String;
|
|
273
|
+
readonly name: Schema.String;
|
|
274
|
+
readonly sequence: Schema.Number;
|
|
275
|
+
readonly timestamp: Schema.Number;
|
|
276
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
277
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
278
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
279
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
280
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
206
281
|
readonly kind: Schema.Literal<"activation-end">;
|
|
207
|
-
readonly
|
|
282
|
+
readonly activationId: Schema.String;
|
|
208
283
|
readonly outcome: Schema.Literals<readonly ["completed", "failed", "interrupted"]>;
|
|
209
284
|
}>, Schema.Struct<{
|
|
210
285
|
readonly id: Schema.String;
|
|
286
|
+
readonly flowId: Schema.String;
|
|
211
287
|
readonly participantName: Schema.String;
|
|
212
288
|
readonly name: Schema.String;
|
|
289
|
+
readonly sequence: Schema.Number;
|
|
213
290
|
readonly timestamp: Schema.Number;
|
|
214
|
-
readonly
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
291
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
292
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
293
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
294
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
295
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
296
|
+
readonly kind: Schema.Literal<"wait">;
|
|
217
297
|
}>, Schema.Struct<{
|
|
218
298
|
readonly id: Schema.String;
|
|
299
|
+
readonly flowId: Schema.String;
|
|
219
300
|
readonly participantName: Schema.String;
|
|
220
301
|
readonly name: Schema.String;
|
|
302
|
+
readonly sequence: Schema.Number;
|
|
221
303
|
readonly timestamp: Schema.Number;
|
|
222
|
-
readonly
|
|
223
|
-
readonly
|
|
224
|
-
readonly
|
|
304
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
305
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
306
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
307
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
308
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
309
|
+
readonly kind: Schema.Literal<"resume">;
|
|
225
310
|
}>, Schema.Struct<{
|
|
226
311
|
readonly id: Schema.String;
|
|
312
|
+
readonly flowId: Schema.String;
|
|
227
313
|
readonly participantName: Schema.String;
|
|
228
314
|
readonly name: Schema.String;
|
|
315
|
+
readonly sequence: Schema.Number;
|
|
229
316
|
readonly timestamp: Schema.Number;
|
|
230
|
-
readonly
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
-
readonly
|
|
234
|
-
readonly
|
|
235
|
-
readonly
|
|
236
|
-
|
|
237
|
-
|
|
317
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
318
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
319
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
320
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
321
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
322
|
+
readonly kind: Schema.Literal<"check">;
|
|
323
|
+
readonly passed: Schema.Boolean;
|
|
324
|
+
}>, Schema.Struct<{
|
|
325
|
+
readonly id: Schema.String;
|
|
326
|
+
readonly flowId: Schema.String;
|
|
238
327
|
readonly participantName: Schema.String;
|
|
239
328
|
readonly name: Schema.String;
|
|
240
|
-
readonly
|
|
241
|
-
readonly
|
|
242
|
-
readonly
|
|
243
|
-
readonly
|
|
244
|
-
readonly
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
readonly
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}>>;
|
|
329
|
+
readonly sequence: Schema.Number;
|
|
330
|
+
readonly timestamp: Schema.Number;
|
|
331
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
332
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
333
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
334
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
335
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
336
|
+
readonly kind: Schema.Literal<"close">;
|
|
337
|
+
}>]>>;
|
|
338
|
+
readonly ordering: Schema.Literals<readonly ["recorded", "clock"]>;
|
|
251
339
|
}>;
|
|
252
340
|
}>]>>;
|
|
253
341
|
}>;
|
|
@@ -293,83 +381,127 @@ export declare const StoryReportSchema: Schema.Struct<{
|
|
|
293
381
|
}>;
|
|
294
382
|
}>, Schema.Struct<{
|
|
295
383
|
readonly kind: Schema.Literal<"flow">;
|
|
296
|
-
readonly
|
|
297
|
-
readonly
|
|
298
|
-
readonly
|
|
299
|
-
readonly items: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
384
|
+
readonly journal: Schema.Struct<{
|
|
385
|
+
readonly flowId: Schema.String;
|
|
386
|
+
readonly entries: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
300
387
|
readonly id: Schema.String;
|
|
388
|
+
readonly flowId: Schema.String;
|
|
301
389
|
readonly participantName: Schema.String;
|
|
302
390
|
readonly name: Schema.String;
|
|
391
|
+
readonly sequence: Schema.Number;
|
|
303
392
|
readonly timestamp: Schema.Number;
|
|
304
|
-
readonly
|
|
305
|
-
readonly
|
|
306
|
-
readonly
|
|
307
|
-
readonly
|
|
308
|
-
readonly
|
|
309
|
-
readonly
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
393
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
394
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
395
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
396
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
397
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
398
|
+
readonly kind: Schema.Literal<"event">;
|
|
399
|
+
}>, Schema.Struct<{
|
|
400
|
+
readonly id: Schema.String;
|
|
401
|
+
readonly flowId: Schema.String;
|
|
402
|
+
readonly participantName: Schema.String;
|
|
403
|
+
readonly name: Schema.String;
|
|
404
|
+
readonly sequence: Schema.Number;
|
|
405
|
+
readonly timestamp: Schema.Number;
|
|
406
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
407
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
408
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
409
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
410
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
411
|
+
readonly kind: Schema.Literal<"message">;
|
|
412
|
+
readonly messageId: Schema.String;
|
|
413
|
+
readonly destination: Schema.String;
|
|
414
|
+
readonly replyTo: Schema.optional<Schema.String>;
|
|
415
|
+
}>, Schema.Struct<{
|
|
416
|
+
readonly id: Schema.String;
|
|
417
|
+
readonly flowId: Schema.String;
|
|
418
|
+
readonly participantName: Schema.String;
|
|
419
|
+
readonly name: Schema.String;
|
|
420
|
+
readonly sequence: Schema.Number;
|
|
421
|
+
readonly timestamp: Schema.Number;
|
|
422
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
423
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
424
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
425
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
426
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
427
|
+
readonly kind: Schema.Literal<"activation-start">;
|
|
428
|
+
readonly activationId: Schema.String;
|
|
316
429
|
}>, Schema.Struct<{
|
|
317
430
|
readonly id: Schema.String;
|
|
431
|
+
readonly flowId: Schema.String;
|
|
318
432
|
readonly participantName: Schema.String;
|
|
319
433
|
readonly name: Schema.String;
|
|
434
|
+
readonly sequence: Schema.Number;
|
|
320
435
|
readonly timestamp: Schema.Number;
|
|
321
|
-
readonly
|
|
436
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
437
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
438
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
439
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
440
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
322
441
|
readonly kind: Schema.Literal<"activation-end">;
|
|
323
|
-
readonly
|
|
442
|
+
readonly activationId: Schema.String;
|
|
324
443
|
readonly outcome: Schema.Literals<readonly ["completed", "failed", "interrupted"]>;
|
|
325
444
|
}>, Schema.Struct<{
|
|
326
445
|
readonly id: Schema.String;
|
|
446
|
+
readonly flowId: Schema.String;
|
|
327
447
|
readonly participantName: Schema.String;
|
|
328
448
|
readonly name: Schema.String;
|
|
449
|
+
readonly sequence: Schema.Number;
|
|
329
450
|
readonly timestamp: Schema.Number;
|
|
330
|
-
readonly
|
|
331
|
-
readonly
|
|
332
|
-
readonly
|
|
451
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
452
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
453
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
454
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
455
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
456
|
+
readonly kind: Schema.Literal<"wait">;
|
|
333
457
|
}>, Schema.Struct<{
|
|
334
458
|
readonly id: Schema.String;
|
|
459
|
+
readonly flowId: Schema.String;
|
|
335
460
|
readonly participantName: Schema.String;
|
|
336
461
|
readonly name: Schema.String;
|
|
462
|
+
readonly sequence: Schema.Number;
|
|
337
463
|
readonly timestamp: Schema.Number;
|
|
338
|
-
readonly
|
|
339
|
-
readonly
|
|
340
|
-
readonly
|
|
464
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
465
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
466
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
467
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
468
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
469
|
+
readonly kind: Schema.Literal<"resume">;
|
|
341
470
|
}>, Schema.Struct<{
|
|
342
471
|
readonly id: Schema.String;
|
|
472
|
+
readonly flowId: Schema.String;
|
|
343
473
|
readonly participantName: Schema.String;
|
|
344
474
|
readonly name: Schema.String;
|
|
475
|
+
readonly sequence: Schema.Number;
|
|
345
476
|
readonly timestamp: Schema.Number;
|
|
346
|
-
readonly
|
|
347
|
-
readonly
|
|
348
|
-
readonly
|
|
349
|
-
readonly
|
|
350
|
-
readonly
|
|
351
|
-
readonly
|
|
352
|
-
|
|
353
|
-
|
|
477
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
478
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
479
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
480
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
481
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
482
|
+
readonly kind: Schema.Literal<"check">;
|
|
483
|
+
readonly passed: Schema.Boolean;
|
|
484
|
+
}>, Schema.Struct<{
|
|
485
|
+
readonly id: Schema.String;
|
|
486
|
+
readonly flowId: Schema.String;
|
|
354
487
|
readonly participantName: Schema.String;
|
|
355
488
|
readonly name: Schema.String;
|
|
356
|
-
readonly
|
|
357
|
-
readonly
|
|
358
|
-
readonly
|
|
359
|
-
readonly
|
|
360
|
-
readonly
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
readonly
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}>>;
|
|
489
|
+
readonly sequence: Schema.Number;
|
|
490
|
+
readonly timestamp: Schema.Number;
|
|
491
|
+
readonly severity: Schema.Literals<readonly ["debug", "info", "warning", "error"]>;
|
|
492
|
+
readonly origin: Schema.optional<Schema.String>;
|
|
493
|
+
readonly attributes: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<import("@pkishorez/flow").AttributeValue, import("@pkishorez/flow").AttributeValue, never, never>>>;
|
|
494
|
+
readonly traceId: Schema.optional<Schema.String>;
|
|
495
|
+
readonly spanId: Schema.optional<Schema.String>;
|
|
496
|
+
readonly kind: Schema.Literal<"close">;
|
|
497
|
+
}>]>>;
|
|
498
|
+
readonly ordering: Schema.Literals<readonly ["recorded", "clock"]>;
|
|
367
499
|
}>;
|
|
368
500
|
}>]>>;
|
|
369
501
|
}>>;
|
|
370
502
|
}>;
|
|
371
503
|
export type CapturedTrace = typeof CapturedTraceSchema.Type;
|
|
372
|
-
export type
|
|
504
|
+
export type Journal = typeof JournalSchema.Type;
|
|
373
505
|
export type StoryAssertion = typeof StoryAssertionSchema.Type;
|
|
374
506
|
export type QuestionSection = typeof QuestionSectionSchema.Type;
|
|
375
507
|
export type QuestionReport = typeof QuestionReportSchema.Type;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"story-report-schema.d.ts","sourceRoot":"","sources":["../../../src/story/schema/story-report-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"story-report-schema.d.ts","sourceRoot":"","sources":["../../../src/story/schema/story-report-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,CAAC;AAczB,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,SAAS,EAAE,GACpB;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAqC1C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;EAQ9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;EAO/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;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export { JournalSchema };
|
|
4
4
|
const JsonValueSchema = Schema.Union([
|
|
5
5
|
Schema.String,
|
|
6
6
|
Schema.Number,
|
|
@@ -62,11 +62,11 @@ export const QuestionSectionSchema = Schema.Union([
|
|
|
62
62
|
}),
|
|
63
63
|
Schema.Struct({
|
|
64
64
|
kind: Schema.Literal('flow'),
|
|
65
|
-
|
|
65
|
+
journal: JournalSchema,
|
|
66
66
|
}),
|
|
67
67
|
]).annotate({
|
|
68
68
|
title: 'Question Section',
|
|
69
|
-
description: "One captured artifact of a Question's proof run: a trace or a
|
|
69
|
+
description: "One captured artifact of a Question's proof run: a trace or a Flow Journal.",
|
|
70
70
|
});
|
|
71
71
|
export const StoryVerdictSchema = Schema.Literals([
|
|
72
72
|
'passed',
|
package/dist/story/story.d.ts
CHANGED
|
@@ -38,7 +38,9 @@ export declare const Story: {
|
|
|
38
38
|
readonly description: string;
|
|
39
39
|
}, children: readonly StoryNode[]): StoryGroup;
|
|
40
40
|
trace<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R | StoryContext>;
|
|
41
|
-
flow<A, E, R>(effect: Effect.Effect<A, E, R
|
|
41
|
+
flow<A, E, R>(effect: Effect.Effect<A, E, R>, _options?: {
|
|
42
|
+
readonly mergeRelated?: boolean;
|
|
43
|
+
}): Effect.Effect<A, E, R | StoryContext>;
|
|
42
44
|
assert(description: string, passed: boolean): Effect.Effect<void, never, StoryContext>;
|
|
43
45
|
};
|
|
44
46
|
export declare function isStory(value: unknown): value is Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"story.d.ts","sourceRoot":"","sources":["../../src/story/story.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"story.d.ts","sourceRoot":"","sources":["../../src/story/story.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MA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