@n1k1t/pipelain 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/assets/report/index.hbs +245 -0
  2. package/assets/report/main.css +552 -0
  3. package/assets/report/main.js +14 -0
  4. package/lib/src/env.d.ts +5 -1
  5. package/lib/src/env.d.ts.map +1 -1
  6. package/lib/src/env.js +5 -1
  7. package/lib/src/env.js.map +1 -1
  8. package/lib/src/index.d.ts +1 -0
  9. package/lib/src/index.d.ts.map +1 -1
  10. package/lib/src/index.js +1 -0
  11. package/lib/src/index.js.map +1 -1
  12. package/lib/src/models/pipeline/model.d.ts +10 -6
  13. package/lib/src/models/pipeline/model.d.ts.map +1 -1
  14. package/lib/src/models/pipeline/model.js +120 -33
  15. package/lib/src/models/pipeline/model.js.map +1 -1
  16. package/lib/src/models/pipeline/report/index.d.ts +14 -0
  17. package/lib/src/models/pipeline/report/index.d.ts.map +1 -0
  18. package/lib/src/models/pipeline/report/index.js +96 -0
  19. package/lib/src/models/pipeline/report/index.js.map +1 -0
  20. package/lib/src/models/pipeline/report/types.d.ts +53 -0
  21. package/lib/src/models/pipeline/report/types.d.ts.map +1 -0
  22. package/lib/src/models/pipeline/report/types.js +3 -0
  23. package/lib/src/models/pipeline/report/types.js.map +1 -0
  24. package/lib/src/models/pipeline/session.d.ts +34 -8
  25. package/lib/src/models/pipeline/session.d.ts.map +1 -1
  26. package/lib/src/models/pipeline/session.js +16 -5
  27. package/lib/src/models/pipeline/session.js.map +1 -1
  28. package/lib/src/models/pipeline/stdout/compiled/console.d.ts.map +1 -1
  29. package/lib/src/models/pipeline/stdout/compiled/console.js +10 -4
  30. package/lib/src/models/pipeline/stdout/compiled/console.js.map +1 -1
  31. package/lib/src/models/pipeline/stdout/model.d.ts.map +1 -1
  32. package/lib/src/models/pipeline/stdout/model.js +4 -2
  33. package/lib/src/models/pipeline/stdout/model.js.map +1 -1
  34. package/lib/src/models/pipeline/steps/ai/actions/model.d.ts +6 -2
  35. package/lib/src/models/pipeline/steps/ai/actions/model.d.ts.map +1 -1
  36. package/lib/src/models/pipeline/steps/ai/actions/model.js +4 -2
  37. package/lib/src/models/pipeline/steps/ai/actions/model.js.map +1 -1
  38. package/lib/src/models/pipeline/steps/ai/actions/reasoning.d.ts +17 -2
  39. package/lib/src/models/pipeline/steps/ai/actions/reasoning.d.ts.map +1 -1
  40. package/lib/src/models/pipeline/steps/ai/actions/reasoning.js +20 -4
  41. package/lib/src/models/pipeline/steps/ai/actions/reasoning.js.map +1 -1
  42. package/lib/src/models/pipeline/steps/ai/actions/tool.d.ts +19 -2
  43. package/lib/src/models/pipeline/steps/ai/actions/tool.d.ts.map +1 -1
  44. package/lib/src/models/pipeline/steps/ai/actions/tool.js +21 -4
  45. package/lib/src/models/pipeline/steps/ai/actions/tool.js.map +1 -1
  46. package/lib/src/models/pipeline/steps/ai/errors.d.ts +4 -1
  47. package/lib/src/models/pipeline/steps/ai/errors.d.ts.map +1 -1
  48. package/lib/src/models/pipeline/steps/ai/errors.js +15 -9
  49. package/lib/src/models/pipeline/steps/ai/errors.js.map +1 -1
  50. package/lib/src/models/pipeline/steps/ai/index.d.ts.map +1 -1
  51. package/lib/src/models/pipeline/steps/ai/index.js +32 -14
  52. package/lib/src/models/pipeline/steps/ai/index.js.map +1 -1
  53. package/lib/src/models/pipeline/steps/ai/utils.d.ts +1 -1
  54. package/lib/src/models/pipeline/steps/ai/utils.d.ts.map +1 -1
  55. package/lib/src/models/pipeline/steps/ai/utils.js +6 -6
  56. package/lib/src/models/pipeline/steps/ai/utils.js.map +1 -1
  57. package/lib/src/setup.js +17 -0
  58. package/lib/src/setup.js.map +1 -1
  59. package/package.json +2 -1
@@ -0,0 +1,552 @@
1
+ /* Custom variables */
2
+ :root {
3
+ --bg: #090d16;
4
+ --code-bg: #0a0f17;
5
+ --card-bg: #111827;
6
+ --card-hover: #1f2937;
7
+ --border: #374151;
8
+ --text-primary: #f3f4f6;
9
+ --text-muted: #9ca3af;
10
+
11
+ --color-success: #10b981;
12
+ --color-success-bg: rgba(16, 185, 129, 0.1);
13
+ --color-error: #ef4444;
14
+ --color-error-bg: rgba(239, 68, 68, 0.1);
15
+ --color-info: #3b82f6;
16
+ --color-info-bg: rgba(59, 130, 246, 0.1);
17
+ --color-warning: #f59e0b;
18
+ --color-warning-bg: rgba(245, 158, 11, 0.1);
19
+ --color-reasoning: #8b5cf6;
20
+ --color-reasoning-bg: rgba(139, 92, 246, 0.1);
21
+ }
22
+
23
+ * {
24
+ box-sizing: border-box;
25
+ margin: 0;
26
+ padding: 0;
27
+ }
28
+
29
+ body {
30
+ background-color: var(--bg);
31
+ color: var(--text-primary);
32
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
33
+ padding: 32px 16px;
34
+ }
35
+
36
+ .container {
37
+ max-width: 1200px;
38
+ margin: 0 auto;
39
+ }
40
+
41
+ /* Header styling */
42
+ .header {
43
+ border-bottom: 1px solid var(--border);
44
+ padding-bottom: 32px;
45
+ margin-bottom: 32px;
46
+ }
47
+
48
+ .header-main {
49
+ display: flex;
50
+ justify-content: space-between;
51
+ align-items: center;
52
+ flex-wrap: wrap;
53
+ gap: 16px;
54
+ margin-bottom: 24px;
55
+ }
56
+
57
+ .title {
58
+ font-size: 32px;
59
+ font-weight: 800;
60
+ display: flex;
61
+ align-items: center;
62
+ gap: 12px;
63
+ color: var(--text-primary);
64
+ letter-spacing: -0.025em;
65
+ }
66
+
67
+ .logo-icon {
68
+ width: 32px;
69
+ height: 32px;
70
+ color: var(--color-info);
71
+ }
72
+
73
+ .session-info {
74
+ display: flex;
75
+ flex-direction: column;
76
+ gap: 8px;
77
+ background: var(--card-bg);
78
+ padding: 16px;
79
+ border-radius: 8px;
80
+ border: 1px solid var(--border);
81
+ }
82
+
83
+ .info-item {
84
+ display: flex;
85
+ gap: 8px;
86
+ font-size: 14px;
87
+ }
88
+
89
+ .info-label {
90
+ color: var(--text-muted);
91
+ font-weight: 500;
92
+ }
93
+
94
+ .info-value {
95
+ color: var(--text-primary);
96
+ }
97
+
98
+ .text-mono {
99
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
100
+ }
101
+
102
+ /* Metrics grid */
103
+ .metrics-grid {
104
+ display: grid;
105
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
106
+ gap: 16px;
107
+ }
108
+
109
+ .metric-card {
110
+ background: var(--card-bg);
111
+ border: 1px solid var(--border);
112
+ padding: 20px;
113
+ border-radius: 10px;
114
+ text-align: center;
115
+ }
116
+
117
+ .metric-label {
118
+ font-size: 14px;
119
+ color: var(--text-muted);
120
+ text-transform: uppercase;
121
+ letter-spacing: 0.05em;
122
+ margin-bottom: 8px;
123
+ }
124
+
125
+ .metric-value {
126
+ font-size: 28px;
127
+ font-weight: 700;
128
+ color: var(--color-info);
129
+ }
130
+
131
+ /* Snapshots list */
132
+ .section-title {
133
+ font-size: 24px;
134
+ font-weight: 700;
135
+ margin-bottom: 24px;
136
+ }
137
+
138
+ .snapshots-list {
139
+ display: flex;
140
+ flex-direction: column;
141
+ gap: 16px;
142
+ }
143
+
144
+ /* Custom Accordion / Details */
145
+ details {
146
+ border-radius: 10px;
147
+ border: 1px solid var(--border);
148
+ background: var(--card-bg);
149
+ overflow: hidden;
150
+ transition: all 0.2s ease-in-out;
151
+ }
152
+
153
+ details[open] {
154
+ border-color: var(--border);
155
+ }
156
+
157
+ summary {
158
+ display: flex;
159
+ justify-content: space-between;
160
+ align-items: center;
161
+ padding: 20px;
162
+ cursor: pointer;
163
+ user-select: none;
164
+ background: var(--card-bg);
165
+ transition: background 0.15s ease-in-out;
166
+ }
167
+
168
+ summary:hover {
169
+ background: var(--card-hover);
170
+ }
171
+
172
+ summary::-webkit-details-marker {
173
+ display: none;
174
+ }
175
+
176
+ summary {
177
+ list-style: none;
178
+ }
179
+
180
+ .expand-arrow {
181
+ display: inline-block;
182
+ font-size: 12px;
183
+ transition: transform 0.2s ease;
184
+ color: var(--text-muted);
185
+ }
186
+
187
+ details[open] > summary .expand-arrow {
188
+ transform: rotate(90deg);
189
+ }
190
+
191
+ /* Snapshot styling card */
192
+ .snapshot-card.state-done {
193
+ border-left: 4px solid var(--color-success);
194
+ }
195
+
196
+ .snapshot-card.state-error {
197
+ border-left: 4px solid var(--color-error);
198
+ }
199
+
200
+ .snapshot-summary .step-title {
201
+ font-size: 14px;
202
+ font-weight: 600;
203
+ }
204
+
205
+ .summary-left {
206
+ display: flex;
207
+ align-items: center;
208
+ gap: 12px;
209
+ }
210
+
211
+ .summary-right {
212
+ display: flex;
213
+ align-items: center;
214
+ gap: 12px;
215
+ flex-wrap: wrap;
216
+ }
217
+
218
+ .step-title {
219
+ word-break: break-all;
220
+ }
221
+
222
+ /* Badges */
223
+ .badge {
224
+ display: inline-flex;
225
+ align-items: center;
226
+ font-size: 12px;
227
+ font-weight: 700;
228
+ padding: 4px 10px;
229
+ border-radius: 9999px;
230
+ text-transform: uppercase;
231
+ letter-spacing: 0.05em;
232
+ }
233
+
234
+ .badge-success {
235
+ background: var(--color-success-bg);
236
+ color: var(--color-success);
237
+ }
238
+
239
+ .badge-error {
240
+ background: var(--color-error-bg);
241
+ color: var(--color-error);
242
+ }
243
+
244
+ .badge-DONE {
245
+ background: var(--color-success-bg);
246
+ color: var(--color-success);
247
+ }
248
+
249
+ .badge-ERROR {
250
+ background: var(--color-error-bg);
251
+ color: var(--color-error);
252
+ }
253
+
254
+ .badge-INIT {
255
+ background: var(--border);
256
+ color: var(--text-muted);
257
+ }
258
+
259
+ .badge-PENDING {
260
+ background: var(--color-warning-bg);
261
+ color: var(--color-warning);
262
+ }
263
+
264
+ .badge-tool {
265
+ background: var(--color-info-bg);
266
+ color: var(--color-info);
267
+ }
268
+
269
+ .badge-reasoning {
270
+ background: var(--color-reasoning-bg);
271
+ color: var(--color-reasoning);
272
+ }
273
+
274
+ /* Tags */
275
+ .llm-tag, .usage-tag, .time-tag, .duration-tag {
276
+ font-size: 12px;
277
+ color: var(--text-muted);
278
+ background: rgba(255, 255, 255, 0.05);
279
+ padding: 4px 8px;
280
+ border-radius: 6px;
281
+ border: 1px solid rgba(255, 255, 255, 0.05);
282
+ }
283
+
284
+ .llm-tag {
285
+ max-width: 250px;
286
+ font-size: 12px;
287
+ white-space: nowrap;
288
+ overflow: hidden;
289
+ text-overflow: ellipsis;
290
+ }
291
+
292
+ /* Expanded snapshot content */
293
+ .snapshot-content {
294
+ padding: 24px;
295
+ border-top: 1px solid var(--border);
296
+ background: rgba(0, 0, 0, 0.15);
297
+ display: flex;
298
+ flex-direction: column;
299
+ gap: 24px;
300
+ }
301
+
302
+ .step-meta {
303
+ display: grid;
304
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
305
+ gap: 12px;
306
+ font-size: 12px;
307
+ background: rgba(255, 255, 255, 0.02);
308
+ padding: 12px 16px;
309
+ border-radius: 6px;
310
+ border: 1px solid rgba(255, 255, 255, 0.03);
311
+ }
312
+
313
+ .text-muted {
314
+ color: var(--text-muted);
315
+ }
316
+
317
+ /* Actions styling */
318
+ .actions-section {
319
+ display: flex;
320
+ flex-direction: column;
321
+ gap: 16px;
322
+ }
323
+
324
+ .actions-title {
325
+ font-size: 14px;
326
+ color: var(--text-primary);
327
+ }
328
+
329
+ .actions-list {
330
+ display: flex;
331
+ flex-direction: column;
332
+ gap: 12px;
333
+ }
334
+
335
+ .action-card {
336
+ border: 1px solid var(--border);
337
+ border-radius: 8px;
338
+ }
339
+
340
+ .action-card.action-type-ai\:tool {
341
+ border-left: 3px solid var(--color-info);
342
+ }
343
+
344
+ .action-card.action-type-ai\:reasoning {
345
+ border-left: 3px solid var(--color-reasoning);
346
+ }
347
+
348
+ .action-summary {
349
+ padding: 16px;
350
+ font-size: 14px;
351
+ }
352
+
353
+ .action-type-badge {
354
+ font-size: 11px;
355
+ font-weight: 800;
356
+ padding: 2px 8px;
357
+ border-radius: 4px;
358
+ }
359
+
360
+ .action-name {
361
+ word-break: break-all;
362
+ font-size: 12px;
363
+ }
364
+
365
+ .action-content {
366
+ padding: 20px;
367
+ border-top: 1px solid var(--border);
368
+ background: rgba(0, 0, 0, 0.25);
369
+ display: flex;
370
+ flex-direction: column;
371
+ gap: 20px;
372
+ }
373
+
374
+ /* Action meta grid */
375
+ .action-meta-grid {
376
+ display: grid;
377
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
378
+ gap: 12px;
379
+ font-size: 12px;
380
+ background: rgba(255, 255, 255, 0.02);
381
+ padding: 12px 16px;
382
+ border-radius: 6px;
383
+ border: 1px solid rgba(255, 255, 255, 0.03);
384
+ }
385
+
386
+ .meta-label {
387
+ color: var(--text-muted);
388
+ font-weight: 500;
389
+ margin-right: 8px;
390
+ }
391
+
392
+ .meta-value {
393
+ color: var(--text-primary);
394
+ }
395
+
396
+ .span-all {
397
+ grid-column: 1 / -1;
398
+ display: flex;
399
+ flex-direction: column;
400
+ gap: 6px;
401
+ }
402
+
403
+ /* IO styling */
404
+ .action-io {
405
+ display: flex;
406
+ flex-direction: column;
407
+ gap: 16px;
408
+ }
409
+
410
+ .io-block {
411
+ display: flex;
412
+ flex-direction: column;
413
+ gap: 8px;
414
+ }
415
+
416
+ .io-title {
417
+ font-size: 12px;
418
+ font-weight: 700;
419
+ text-transform: uppercase;
420
+ letter-spacing: 0.05em;
421
+ color: var(--text-muted);
422
+ }
423
+
424
+ pre {
425
+ background: var(--code-bg);
426
+ border: 1px solid var(--border);
427
+ border-radius: 6px;
428
+ padding: 16px;
429
+ overflow-x: auto;
430
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
431
+ font-size: 12px;
432
+ color: #e5e7eb;
433
+ white-space: pre-wrap;
434
+ word-break: break-all;
435
+ }
436
+
437
+ code {
438
+ font-family: inherit;
439
+ color: inherit;
440
+ white-space: pre-wrap;
441
+ }
442
+
443
+ /* Error stylings */
444
+ .error-box {
445
+ background: var(--color-error-bg);
446
+ border: 1px solid var(--color-error);
447
+ padding: 20px;
448
+ border-radius: 8px;
449
+ display: flex;
450
+ flex-direction: column;
451
+ gap: 8px;
452
+ }
453
+
454
+ .error-header {
455
+ display: flex;
456
+ align-items: center;
457
+ gap: 8px;
458
+ color: var(--color-error);
459
+ font-weight: 700;
460
+ font-size: 14px;
461
+ }
462
+
463
+ .error-icon {
464
+ width: 14px;
465
+ height: 14px;
466
+ }
467
+
468
+ .error-message {
469
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
470
+ font-size: 12px;
471
+ color: #fca5a5;
472
+ white-space: pre-wrap;
473
+ word-break: break-all;
474
+ }
475
+
476
+ .io-error pre {
477
+ border-color: var(--color-error);
478
+ background: rgba(239, 68, 68, 0.03);
479
+ }
480
+
481
+ .error-output {
482
+ display: flex;
483
+ flex-direction: column;
484
+ gap: 8px;
485
+ }
486
+
487
+ .error-output-type {
488
+ color: var(--color-error);
489
+ font-weight: 600;
490
+ font-size: 12px;
491
+ }
492
+
493
+ .reasoning-output {
494
+ border-color: var(--color-reasoning);
495
+ background: rgba(139, 92, 246, 0.02);
496
+ color: #d8b4fe;
497
+ }
498
+
499
+ /* Messages styling */
500
+ .messages-card {
501
+ border: 1px solid var(--border);
502
+ border-radius: 8px;
503
+ }
504
+
505
+ .messages-summary {
506
+ padding: 16px;
507
+ font-size: 14px;
508
+ }
509
+
510
+ .messages-title {
511
+ font-size: 14px;
512
+ font-weight: 600;
513
+ color: var(--text-primary);
514
+ }
515
+
516
+ .messages-content {
517
+ padding: 20px;
518
+ border-top: 1px solid var(--border);
519
+ background: rgba(0, 0, 0, 0.25);
520
+ display: flex;
521
+ flex-direction: column;
522
+ gap: 20px;
523
+ }
524
+
525
+ .message-block {
526
+ display: flex;
527
+ flex-direction: column;
528
+ gap: 8px;
529
+ }
530
+
531
+ /* Output styling */
532
+ .output-card {
533
+ border: 1px solid var(--border);
534
+ border-radius: 8px;
535
+ }
536
+
537
+ .output-summary {
538
+ padding: 16px;
539
+ font-size: 14px;
540
+ }
541
+
542
+ .output-title {
543
+ font-size: 14px;
544
+ font-weight: 600;
545
+ color: var(--text-primary);
546
+ }
547
+
548
+ .output-content {
549
+ padding: 20px;
550
+ border-top: 1px solid var(--border);
551
+ background: rgba(0, 0, 0, 0.25);
552
+ }
@@ -0,0 +1,14 @@
1
+ document.addEventListener('DOMContentLoaded', () => {
2
+ // Find all elements with language-json class and format them
3
+ document.querySelectorAll('code.language-json').forEach((el) => {
4
+ try {
5
+ const raw = el.textContent.trim();
6
+ if (raw) {
7
+ const parsed = JSON.parse(raw);
8
+ el.textContent = JSON.stringify(parsed, null, 2);
9
+ }
10
+ } catch (e) {
11
+ // Keep as-is on parse error
12
+ }
13
+ });
14
+ });
package/lib/src/env.d.ts CHANGED
@@ -1,12 +1,16 @@
1
1
  declare const _default: {
2
2
  key: string | undefined;
3
3
  url: string | undefined;
4
- debug: boolean;
5
4
  model: string;
6
5
  provider: string | undefined;
6
+ flags: {
7
+ report: boolean;
8
+ debug: boolean;
9
+ };
7
10
  dirs: {
8
11
  skills: string;
9
12
  tasks: string | undefined;
13
+ assets: string;
10
14
  };
11
15
  langfuse: {
12
16
  url: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/env.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,wBAuBE"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/env.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAqBA,wBA8BE"}
package/lib/src/env.js CHANGED
@@ -18,12 +18,16 @@ const extract = ((name, fallback) => {
18
18
  exports.default = {
19
19
  key: extract('PIPELAIN_API_KEY'),
20
20
  url: extract('PIPELAIN_API_URL'),
21
- debug: Boolean(JSON.parse(extract('PIPELAIN_DEBUG', 'false'))),
22
21
  model: extract('PIPELAIN_MODEL', 'gemini-flash-latest'),
23
22
  provider: extract('PIPELAIN_PROVIDER'),
23
+ flags: {
24
+ report: Boolean(JSON.parse(extract('PIPELAIN_FLAGS_REPORT', 'false'))),
25
+ debug: Boolean(JSON.parse(extract('PIPELAIN_FLAGS_DEBUG', 'false'))),
26
+ },
24
27
  dirs: {
25
28
  skills: extract('PIPELAIN_SKILLS_DIR', path_1.default.join(process.env.HOME ?? '~', '.agents/skills')),
26
29
  tasks: extract('PIPELAIN_TASKS_DIR'),
30
+ assets: path_1.default.resolve(path_1.default.resolve(__dirname, path_1.default.parse(__filename).ext === '.ts' ? '' : '../', '../'), 'assets'),
27
31
  },
28
32
  langfuse: {
29
33
  url: extract('LANGFUSE_BASE_URL'),
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/env.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAC5B,gDAAwB;AAOxB,MAAM,MAAM,GAAG,gBAAM,CAAC,MAAM,EAAE,CAAC;AAE/B,MAAM,OAAO,GAAqB,CAAC,CAAC,IAAY,EAAE,QAAiB,EAAE,EAAE;IACrE,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAC9B,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,kBAAe;IACb,GAAG,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAChC,GAAG,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAGhC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC;IAE9D,KAAK,EAAE,OAAO,CAAC,gBAAgB,EAAE,qBAAqB,CA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E;QACL,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC,CAAC;QACtE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC;KACrE;IAED,IAAI,EAAE;QACJ,MAAM,EAAE,OAAO,CAAC,qBAAqB,EAAE,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,EAAE,gBAAgB,CAAC,CAAC;QAC5F,KAAK,EAAE,OAAO,CAAC,oBAAoB,CAAC;QAEpC,MAAM,EAAE,cAAI,CAAC,OAAO,CAClB,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,cAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,EACjF,QAAQ,CACT;KACF;IAED,QAAQ,EAAE;QACR,GAAG,EAAE,OAAO,CAAC,mBAAmB,CAAC;QAEjC,IAAI,EAAE;YACJ,MAAM,EAAE,OAAO,CAAC,qBAAqB,CAAC;YACtC,MAAM,EAAE,OAAO,CAAC,qBAAqB,CAAC;SACvC;KACF;CACF,CAAC"}
@@ -5,6 +5,7 @@ export * from './models/pipeline/factory';
5
5
  export * from './models/pipeline/session';
6
6
  export * from './models/pipeline/stdout';
7
7
  export * from './models/pipeline/errors';
8
+ export * from './models/pipeline/report';
8
9
  export * from './models/pipeline/model';
9
10
  export * from './models/pipeline/steps/ai/actions';
10
11
  export * from './models/pipeline/steps/ai/errors';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AAEjB,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,KAAK,MAA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AAC;AACpC,cAAc,kBAAkB,CAAC;AAEjC,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,mCAAmC,CAAC;AAE5D,eAAO,MAAM,GAAG;;;CAGf,CAAC"}
package/lib/src/index.js CHANGED
@@ -44,6 +44,7 @@ __exportStar(require("./models/pipeline/factory"), exports);
44
44
  __exportStar(require("./models/pipeline/session"), exports);
45
45
  __exportStar(require("./models/pipeline/stdout"), exports);
46
46
  __exportStar(require("./models/pipeline/errors"), exports);
47
+ __exportStar(require("./models/pipeline/report"), exports);
47
48
  __exportStar(require("./models/pipeline/model"), exports);
48
49
  __exportStar(require("./models/pipeline/steps/ai/actions"), exports);
49
50
  __exportStar(require("./models/pipeline/steps/ai/errors"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mBAAiB;AAEjB,kEAAoD;AACpD,0DAA4C;AAE5C,4DAA0C;AAC1C,4DAA0C;AAC1C,2DAAyC;AACzC,2DAAyC;AACzC,0DAAwC;AAExC,qEAAmD;AACnD,oEAAkD;AAElD,mDAAiC;AACjC,gDAA8B;AAC9B,gDAA8B;AAE9B,2DAAyC;AACzC,yDAAuC;AAEvC,+DAA6C;AAC7C,2DAAyC;AACzC,uDAAqC;AACrC,sDAAoC;AACpC,mDAAiC;AAEjC,kEAAkD;AAClD,4EAA4D;AAE/C,QAAA,GAAG,GAAG;IACjB,SAAS;IACT,KAAK;CACN,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mBAAiB;AAEjB,kEAAoD;AACpD,0DAA4C;AAE5C,4DAA0C;AAC1C,4DAA0C;AAC1C,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,0DAAwC;AAExC,qEAAmD;AACnD,oEAAkD;AAElD,mDAAiC;AACjC,gDAA8B;AAC9B,gDAA8B;AAE9B,2DAAyC;AACzC,yDAAuC;AAEvC,+DAA6C;AAC7C,2DAAyC;AACzC,uDAAqC;AACrC,sDAAoC;AACpC,mDAAiC;AAEjC,kEAAkD;AAClD,4EAA4D;AAE/C,QAAA,GAAG,GAAG;IACjB,SAAS;IACT,KAAK;CACN,CAAC"}
@@ -9,22 +9,24 @@ export declare class PipelineCompiler<TConfiguration extends IPipelineConfigurat
9
9
  title: string;
10
10
  protected definition: {
11
11
  steps: TPipelineCompilerConfigurationStep[];
12
+ flags: Pipeline['flags'];
12
13
  description?: string;
13
14
  input?: Pipeline<TConfiguration>['schema'];
14
15
  defaults?: PipelineContext<TConfiguration>['defaults'];
15
- debug?: boolean;
16
16
  };
17
17
  TSchema: TConfiguration['state'];
18
18
  constructor(title: string, definition: {
19
19
  steps: TPipelineCompilerConfigurationStep[];
20
+ flags: Pipeline['flags'];
20
21
  description?: string;
21
22
  input?: Pipeline<TConfiguration>['schema'];
22
23
  defaults?: PipelineContext<TConfiguration>['defaults'];
23
- debug?: boolean;
24
24
  });
25
25
  description(content: string): this;
26
26
  /** Marks all nested steps to debug */
27
27
  debug(): this;
28
+ /** Makes report of pipeline ai steps execution */
29
+ report(): this;
28
30
  /** Provides input schema */
29
31
  input<T, TReturn extends PipelineCompiler<{
30
32
  input: T;
@@ -51,7 +53,6 @@ export declare class PipelineCompiler<TConfiguration extends IPipelineConfigurat
51
53
  stdout?: PipelineStdout;
52
54
  session?: PipelineSession;
53
55
  parent?: Pipeline['parent'];
54
- debug?: boolean;
55
56
  }): Promise<Pipeline<TConfiguration>>;
56
57
  static build<TState extends object = {}>(title: string): PipelineCompiler<{
57
58
  state: TState;
@@ -64,14 +65,17 @@ export declare class Pipeline<TConfiguration extends IPipelineConfiguration = an
64
65
  title: string;
65
66
  session: PipelineSession;
66
67
  steps: TPipelineCompilerConfigurationStep[];
68
+ flags: Pipeline['flags'];
67
69
  description?: string;
68
70
  parent?: Pipeline['parent'];
69
- debug?: boolean;
70
71
  };
71
72
  context: PipelineContext<TConfiguration>;
72
73
  session: PipelineSession;
73
- debug: boolean;
74
74
  title: string;
75
+ flags: {
76
+ report?: boolean;
77
+ debug?: boolean;
78
+ };
75
79
  description: string;
76
80
  schema: ZodType<TConfiguration['input']>;
77
81
  parent?: Pipeline | PipelineStep;
@@ -80,9 +84,9 @@ export declare class Pipeline<TConfiguration extends IPipelineConfiguration = an
80
84
  title: string;
81
85
  session: PipelineSession;
82
86
  steps: TPipelineCompilerConfigurationStep[];
87
+ flags: Pipeline['flags'];
83
88
  description?: string;
84
89
  parent?: Pipeline['parent'];
85
- debug?: boolean;
86
90
  });
87
91
  run(input: TConfiguration['input']): Promise<TConfiguration['state']>;
88
92
  /** Traces instances from this to origin */