@xemahq/kernel-contracts 0.30.0 → 0.32.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 (96) hide show
  1. package/dist/biome/lib/biome-manifest.d.ts +5 -0
  2. package/dist/biome/lib/biome-manifest.d.ts.map +1 -1
  3. package/dist/biome/lib/biome-manifest.js +1 -0
  4. package/dist/biome/lib/biome-manifest.js.map +1 -1
  5. package/dist/decision-gate/index.d.ts +3 -0
  6. package/dist/decision-gate/index.d.ts.map +1 -0
  7. package/dist/decision-gate/index.js +19 -0
  8. package/dist/decision-gate/index.js.map +1 -0
  9. package/dist/decision-gate/lib/decision-gate.d.ts +55 -0
  10. package/dist/decision-gate/lib/decision-gate.d.ts.map +1 -0
  11. package/dist/decision-gate/lib/decision-gate.js +56 -0
  12. package/dist/decision-gate/lib/decision-gate.js.map +1 -0
  13. package/dist/decision-gate/lib/pinned-subject-artifact.d.ts +9 -0
  14. package/dist/decision-gate/lib/pinned-subject-artifact.d.ts.map +1 -0
  15. package/dist/decision-gate/lib/pinned-subject-artifact.js +11 -0
  16. package/dist/decision-gate/lib/pinned-subject-artifact.js.map +1 -0
  17. package/dist/question/index.d.ts +5 -0
  18. package/dist/question/index.d.ts.map +1 -0
  19. package/dist/question/index.js +21 -0
  20. package/dist/question/index.js.map +1 -0
  21. package/dist/question/lib/question-action-context.d.ts +7 -0
  22. package/dist/question/lib/question-action-context.d.ts.map +1 -0
  23. package/dist/question/lib/question-action-context.js +3 -0
  24. package/dist/question/lib/question-action-context.js.map +1 -0
  25. package/dist/question/lib/question-dto.d.ts +54 -0
  26. package/dist/question/lib/question-dto.d.ts.map +1 -0
  27. package/dist/question/lib/question-dto.js +3 -0
  28. package/dist/question/lib/question-dto.js.map +1 -0
  29. package/dist/question/lib/question-enums.d.ts +20 -0
  30. package/dist/question/lib/question-enums.d.ts.map +1 -0
  31. package/dist/question/lib/question-enums.js +32 -0
  32. package/dist/question/lib/question-enums.js.map +1 -0
  33. package/dist/question/lib/question-escalation.d.ts +8 -0
  34. package/dist/question/lib/question-escalation.d.ts.map +1 -0
  35. package/dist/question/lib/question-escalation.js +3 -0
  36. package/dist/question/lib/question-escalation.js.map +1 -0
  37. package/dist/review-inquiry/index.d.ts +3 -0
  38. package/dist/review-inquiry/index.d.ts.map +1 -0
  39. package/dist/review-inquiry/index.js +19 -0
  40. package/dist/review-inquiry/index.js.map +1 -0
  41. package/dist/review-inquiry/lib/review-inquiry.d.ts +138 -0
  42. package/dist/review-inquiry/lib/review-inquiry.d.ts.map +1 -0
  43. package/dist/review-inquiry/lib/review-inquiry.js +20 -0
  44. package/dist/review-inquiry/lib/review-inquiry.js.map +1 -0
  45. package/dist/review-inquiry/lib/web-annotation.d.ts +195 -0
  46. package/dist/review-inquiry/lib/web-annotation.d.ts.map +1 -0
  47. package/dist/review-inquiry/lib/web-annotation.js +59 -0
  48. package/dist/review-inquiry/lib/web-annotation.js.map +1 -0
  49. package/dist/run-detail/index.d.ts +7 -0
  50. package/dist/run-detail/index.d.ts.map +1 -0
  51. package/dist/run-detail/index.js +23 -0
  52. package/dist/run-detail/index.js.map +1 -0
  53. package/dist/run-detail/lib/run-detail-dto.d.ts +34 -0
  54. package/dist/run-detail/lib/run-detail-dto.d.ts.map +1 -0
  55. package/dist/run-detail/lib/run-detail-dto.js +3 -0
  56. package/dist/run-detail/lib/run-detail-dto.js.map +1 -0
  57. package/dist/run-detail/lib/run-mode.d.ts +14 -0
  58. package/dist/run-detail/lib/run-mode.d.ts.map +1 -0
  59. package/dist/run-detail/lib/run-mode.js +25 -0
  60. package/dist/run-detail/lib/run-mode.js.map +1 -0
  61. package/dist/run-detail/lib/run-outcome.d.ts +28 -0
  62. package/dist/run-detail/lib/run-outcome.d.ts.map +1 -0
  63. package/dist/run-detail/lib/run-outcome.js +27 -0
  64. package/dist/run-detail/lib/run-outcome.js.map +1 -0
  65. package/dist/run-detail/lib/run-phase-rail.d.ts +21 -0
  66. package/dist/run-detail/lib/run-phase-rail.d.ts.map +1 -0
  67. package/dist/run-detail/lib/run-phase-rail.js +14 -0
  68. package/dist/run-detail/lib/run-phase-rail.js.map +1 -0
  69. package/dist/run-detail/lib/run-revision-state.d.ts +47 -0
  70. package/dist/run-detail/lib/run-revision-state.d.ts.map +1 -0
  71. package/dist/run-detail/lib/run-revision-state.js +11 -0
  72. package/dist/run-detail/lib/run-revision-state.js.map +1 -0
  73. package/dist/run-detail/lib/wait-windows.d.ts +15 -0
  74. package/dist/run-detail/lib/wait-windows.d.ts.map +1 -0
  75. package/dist/run-detail/lib/wait-windows.js +39 -0
  76. package/dist/run-detail/lib/wait-windows.js.map +1 -0
  77. package/package.json +1 -1
  78. package/src/biome/lib/biome-manifest.ts +11 -0
  79. package/src/decision-gate/index.ts +13 -0
  80. package/src/decision-gate/lib/decision-gate.ts +113 -0
  81. package/src/decision-gate/lib/pinned-subject-artifact.ts +29 -0
  82. package/src/question/index.ts +24 -0
  83. package/src/question/lib/question-action-context.ts +26 -0
  84. package/src/question/lib/question-dto.ts +143 -0
  85. package/src/question/lib/question-enums.ts +67 -0
  86. package/src/question/lib/question-escalation.ts +22 -0
  87. package/src/review-inquiry/index.ts +19 -0
  88. package/src/review-inquiry/lib/review-inquiry.ts +76 -0
  89. package/src/review-inquiry/lib/web-annotation.ts +136 -0
  90. package/src/run-detail/index.ts +22 -0
  91. package/src/run-detail/lib/run-detail-dto.ts +84 -0
  92. package/src/run-detail/lib/run-mode.ts +65 -0
  93. package/src/run-detail/lib/run-outcome.ts +66 -0
  94. package/src/run-detail/lib/run-phase-rail.ts +43 -0
  95. package/src/run-detail/lib/run-revision-state.ts +83 -0
  96. package/src/run-detail/lib/wait-windows.ts +70 -0
@@ -0,0 +1,138 @@
1
+ import { z } from 'zod';
2
+ export declare const ReviewInquiryPromptSchema: z.ZodObject<{
3
+ subjectArtifacts: z.ZodArray<z.ZodObject<{
4
+ artifactId: z.ZodString;
5
+ versionId: z.ZodString;
6
+ version: z.ZodNumber;
7
+ hash: z.ZodString;
8
+ }, z.core.$strip>>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$loose>;
11
+ export type ReviewInquiryPrompt = z.infer<typeof ReviewInquiryPromptSchema>;
12
+ export declare const ReviewInquiryCommentSchema: z.ZodObject<{
13
+ body: z.ZodString;
14
+ anchor: z.ZodOptional<z.ZodObject<{
15
+ artifactId: z.ZodString;
16
+ versionId: z.ZodString;
17
+ version: z.ZodNumber;
18
+ selector: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
19
+ type: z.ZodLiteral<"TextQuoteSelector">;
20
+ exact: z.ZodString;
21
+ prefix: z.ZodOptional<z.ZodString>;
22
+ suffix: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ type: z.ZodLiteral<"TextPositionSelector">;
25
+ start: z.ZodNumber;
26
+ end: z.ZodNumber;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ type: z.ZodLiteral<"FragmentSelector">;
29
+ value: z.ZodString;
30
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
33
+ pointer: z.ZodString;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ type: z.ZodLiteral<"RangeSelector">;
36
+ startSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
37
+ type: z.ZodLiteral<"TextQuoteSelector">;
38
+ exact: z.ZodString;
39
+ prefix: z.ZodOptional<z.ZodString>;
40
+ suffix: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ type: z.ZodLiteral<"TextPositionSelector">;
43
+ start: z.ZodNumber;
44
+ end: z.ZodNumber;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ type: z.ZodLiteral<"FragmentSelector">;
47
+ value: z.ZodString;
48
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
51
+ pointer: z.ZodString;
52
+ }, z.core.$strip>], "type">;
53
+ endSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
+ type: z.ZodLiteral<"TextQuoteSelector">;
55
+ exact: z.ZodString;
56
+ prefix: z.ZodOptional<z.ZodString>;
57
+ suffix: z.ZodOptional<z.ZodString>;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ type: z.ZodLiteral<"TextPositionSelector">;
60
+ start: z.ZodNumber;
61
+ end: z.ZodNumber;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ type: z.ZodLiteral<"FragmentSelector">;
64
+ value: z.ZodString;
65
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
66
+ }, z.core.$strip>, z.ZodObject<{
67
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
68
+ pointer: z.ZodString;
69
+ }, z.core.$strip>], "type">;
70
+ }, z.core.$strip>], "type">>;
71
+ }, z.core.$strip>>;
72
+ }, z.core.$strip>;
73
+ export type ReviewInquiryComment = z.infer<typeof ReviewInquiryCommentSchema>;
74
+ export declare const ReviewInquiryReplySchema: z.ZodObject<{
75
+ comments: z.ZodArray<z.ZodObject<{
76
+ body: z.ZodString;
77
+ anchor: z.ZodOptional<z.ZodObject<{
78
+ artifactId: z.ZodString;
79
+ versionId: z.ZodString;
80
+ version: z.ZodNumber;
81
+ selector: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
82
+ type: z.ZodLiteral<"TextQuoteSelector">;
83
+ exact: z.ZodString;
84
+ prefix: z.ZodOptional<z.ZodString>;
85
+ suffix: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ type: z.ZodLiteral<"TextPositionSelector">;
88
+ start: z.ZodNumber;
89
+ end: z.ZodNumber;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ type: z.ZodLiteral<"FragmentSelector">;
92
+ value: z.ZodString;
93
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
96
+ pointer: z.ZodString;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ type: z.ZodLiteral<"RangeSelector">;
99
+ startSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
100
+ type: z.ZodLiteral<"TextQuoteSelector">;
101
+ exact: z.ZodString;
102
+ prefix: z.ZodOptional<z.ZodString>;
103
+ suffix: z.ZodOptional<z.ZodString>;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ type: z.ZodLiteral<"TextPositionSelector">;
106
+ start: z.ZodNumber;
107
+ end: z.ZodNumber;
108
+ }, z.core.$strip>, z.ZodObject<{
109
+ type: z.ZodLiteral<"FragmentSelector">;
110
+ value: z.ZodString;
111
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
114
+ pointer: z.ZodString;
115
+ }, z.core.$strip>], "type">;
116
+ endSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ type: z.ZodLiteral<"TextQuoteSelector">;
118
+ exact: z.ZodString;
119
+ prefix: z.ZodOptional<z.ZodString>;
120
+ suffix: z.ZodOptional<z.ZodString>;
121
+ }, z.core.$strip>, z.ZodObject<{
122
+ type: z.ZodLiteral<"TextPositionSelector">;
123
+ start: z.ZodNumber;
124
+ end: z.ZodNumber;
125
+ }, z.core.$strip>, z.ZodObject<{
126
+ type: z.ZodLiteral<"FragmentSelector">;
127
+ value: z.ZodString;
128
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
129
+ }, z.core.$strip>, z.ZodObject<{
130
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
131
+ pointer: z.ZodString;
132
+ }, z.core.$strip>], "type">;
133
+ }, z.core.$strip>], "type">>;
134
+ }, z.core.$strip>>;
135
+ }, z.core.$strip>>;
136
+ }, z.core.$strip>;
137
+ export type ReviewInquiryReply = z.infer<typeof ReviewInquiryReplySchema>;
138
+ //# sourceMappingURL=review-inquiry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review-inquiry.d.ts","sourceRoot":"","sources":["../../../src/review-inquiry/lib/review-inquiry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0BxB,eAAO,MAAM,yBAAyB;;;;;;;;iBAKtB,CAAC;AACjB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAuB5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAa9E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReviewInquiryReplySchema = exports.ReviewInquiryCommentSchema = exports.ReviewInquiryPromptSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const decision_gate_1 = require("../../decision-gate");
6
+ const web_annotation_1 = require("./web-annotation");
7
+ exports.ReviewInquiryPromptSchema = zod_1.z
8
+ .object({
9
+ subjectArtifacts: zod_1.z.array(decision_gate_1.PinnedSubjectArtifactSchema),
10
+ description: zod_1.z.string().optional(),
11
+ })
12
+ .passthrough();
13
+ exports.ReviewInquiryCommentSchema = zod_1.z.object({
14
+ body: zod_1.z.string().trim().min(1),
15
+ anchor: web_annotation_1.WebAnnotationTargetSchema.optional(),
16
+ });
17
+ exports.ReviewInquiryReplySchema = zod_1.z.object({
18
+ comments: zod_1.z.array(exports.ReviewInquiryCommentSchema).min(1),
19
+ });
20
+ //# sourceMappingURL=review-inquiry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review-inquiry.js","sourceRoot":"","sources":["../../../src/review-inquiry/lib/review-inquiry.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uDAAkE;AAElE,qDAA6D;AAsBhD,QAAA,yBAAyB,GAAG,OAAC;KACvC,MAAM,CAAC;IACN,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,2CAA2B,CAAC;IACtD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;KACD,WAAW,EAAE,CAAC;AAwBJ,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,0CAAyB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAcU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACrD,CAAC,CAAC"}
@@ -0,0 +1,195 @@
1
+ import { z } from 'zod';
2
+ export declare const TextQuoteSelectorSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"TextQuoteSelector">;
4
+ exact: z.ZodString;
5
+ prefix: z.ZodOptional<z.ZodString>;
6
+ suffix: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type TextQuoteSelector = z.infer<typeof TextQuoteSelectorSchema>;
9
+ export declare const TextPositionSelectorSchema: z.ZodObject<{
10
+ type: z.ZodLiteral<"TextPositionSelector">;
11
+ start: z.ZodNumber;
12
+ end: z.ZodNumber;
13
+ }, z.core.$strip>;
14
+ export type TextPositionSelector = z.infer<typeof TextPositionSelectorSchema>;
15
+ export declare const FragmentSelectorSchema: z.ZodObject<{
16
+ type: z.ZodLiteral<"FragmentSelector">;
17
+ value: z.ZodString;
18
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
19
+ }, z.core.$strip>;
20
+ export type FragmentSelector = z.infer<typeof FragmentSelectorSchema>;
21
+ export declare const JsonPointerSelectorSchema: z.ZodObject<{
22
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
23
+ pointer: z.ZodString;
24
+ }, z.core.$strip>;
25
+ export type JsonPointerSelector = z.infer<typeof JsonPointerSelectorSchema>;
26
+ export declare const NonRangeSelectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
+ type: z.ZodLiteral<"TextQuoteSelector">;
28
+ exact: z.ZodString;
29
+ prefix: z.ZodOptional<z.ZodString>;
30
+ suffix: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ type: z.ZodLiteral<"TextPositionSelector">;
33
+ start: z.ZodNumber;
34
+ end: z.ZodNumber;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ type: z.ZodLiteral<"FragmentSelector">;
37
+ value: z.ZodString;
38
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
41
+ pointer: z.ZodString;
42
+ }, z.core.$strip>], "type">;
43
+ export type NonRangeSelector = z.infer<typeof NonRangeSelectorSchema>;
44
+ export declare const RangeSelectorSchema: z.ZodObject<{
45
+ type: z.ZodLiteral<"RangeSelector">;
46
+ startSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
47
+ type: z.ZodLiteral<"TextQuoteSelector">;
48
+ exact: z.ZodString;
49
+ prefix: z.ZodOptional<z.ZodString>;
50
+ suffix: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ type: z.ZodLiteral<"TextPositionSelector">;
53
+ start: z.ZodNumber;
54
+ end: z.ZodNumber;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ type: z.ZodLiteral<"FragmentSelector">;
57
+ value: z.ZodString;
58
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
61
+ pointer: z.ZodString;
62
+ }, z.core.$strip>], "type">;
63
+ endSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
64
+ type: z.ZodLiteral<"TextQuoteSelector">;
65
+ exact: z.ZodString;
66
+ prefix: z.ZodOptional<z.ZodString>;
67
+ suffix: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ type: z.ZodLiteral<"TextPositionSelector">;
70
+ start: z.ZodNumber;
71
+ end: z.ZodNumber;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ type: z.ZodLiteral<"FragmentSelector">;
74
+ value: z.ZodString;
75
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
78
+ pointer: z.ZodString;
79
+ }, z.core.$strip>], "type">;
80
+ }, z.core.$strip>;
81
+ export type RangeSelector = z.infer<typeof RangeSelectorSchema>;
82
+ export declare const WebAnnotationSelectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
83
+ type: z.ZodLiteral<"TextQuoteSelector">;
84
+ exact: z.ZodString;
85
+ prefix: z.ZodOptional<z.ZodString>;
86
+ suffix: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ type: z.ZodLiteral<"TextPositionSelector">;
89
+ start: z.ZodNumber;
90
+ end: z.ZodNumber;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ type: z.ZodLiteral<"FragmentSelector">;
93
+ value: z.ZodString;
94
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
97
+ pointer: z.ZodString;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ type: z.ZodLiteral<"RangeSelector">;
100
+ startSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
101
+ type: z.ZodLiteral<"TextQuoteSelector">;
102
+ exact: z.ZodString;
103
+ prefix: z.ZodOptional<z.ZodString>;
104
+ suffix: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ type: z.ZodLiteral<"TextPositionSelector">;
107
+ start: z.ZodNumber;
108
+ end: z.ZodNumber;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ type: z.ZodLiteral<"FragmentSelector">;
111
+ value: z.ZodString;
112
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
113
+ }, z.core.$strip>, z.ZodObject<{
114
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
115
+ pointer: z.ZodString;
116
+ }, z.core.$strip>], "type">;
117
+ endSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
118
+ type: z.ZodLiteral<"TextQuoteSelector">;
119
+ exact: z.ZodString;
120
+ prefix: z.ZodOptional<z.ZodString>;
121
+ suffix: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ type: z.ZodLiteral<"TextPositionSelector">;
124
+ start: z.ZodNumber;
125
+ end: z.ZodNumber;
126
+ }, z.core.$strip>, z.ZodObject<{
127
+ type: z.ZodLiteral<"FragmentSelector">;
128
+ value: z.ZodString;
129
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
130
+ }, z.core.$strip>, z.ZodObject<{
131
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
132
+ pointer: z.ZodString;
133
+ }, z.core.$strip>], "type">;
134
+ }, z.core.$strip>], "type">;
135
+ export type WebAnnotationSelector = z.infer<typeof WebAnnotationSelectorSchema>;
136
+ export declare const WebAnnotationTargetSchema: z.ZodObject<{
137
+ artifactId: z.ZodString;
138
+ versionId: z.ZodString;
139
+ version: z.ZodNumber;
140
+ selector: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
141
+ type: z.ZodLiteral<"TextQuoteSelector">;
142
+ exact: z.ZodString;
143
+ prefix: z.ZodOptional<z.ZodString>;
144
+ suffix: z.ZodOptional<z.ZodString>;
145
+ }, z.core.$strip>, z.ZodObject<{
146
+ type: z.ZodLiteral<"TextPositionSelector">;
147
+ start: z.ZodNumber;
148
+ end: z.ZodNumber;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ type: z.ZodLiteral<"FragmentSelector">;
151
+ value: z.ZodString;
152
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
155
+ pointer: z.ZodString;
156
+ }, z.core.$strip>, z.ZodObject<{
157
+ type: z.ZodLiteral<"RangeSelector">;
158
+ startSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
159
+ type: z.ZodLiteral<"TextQuoteSelector">;
160
+ exact: z.ZodString;
161
+ prefix: z.ZodOptional<z.ZodString>;
162
+ suffix: z.ZodOptional<z.ZodString>;
163
+ }, z.core.$strip>, z.ZodObject<{
164
+ type: z.ZodLiteral<"TextPositionSelector">;
165
+ start: z.ZodNumber;
166
+ end: z.ZodNumber;
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ type: z.ZodLiteral<"FragmentSelector">;
169
+ value: z.ZodString;
170
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
171
+ }, z.core.$strip>, z.ZodObject<{
172
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
173
+ pointer: z.ZodString;
174
+ }, z.core.$strip>], "type">;
175
+ endSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
176
+ type: z.ZodLiteral<"TextQuoteSelector">;
177
+ exact: z.ZodString;
178
+ prefix: z.ZodOptional<z.ZodString>;
179
+ suffix: z.ZodOptional<z.ZodString>;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ type: z.ZodLiteral<"TextPositionSelector">;
182
+ start: z.ZodNumber;
183
+ end: z.ZodNumber;
184
+ }, z.core.$strip>, z.ZodObject<{
185
+ type: z.ZodLiteral<"FragmentSelector">;
186
+ value: z.ZodString;
187
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
190
+ pointer: z.ZodString;
191
+ }, z.core.$strip>], "type">;
192
+ }, z.core.$strip>], "type">>;
193
+ }, z.core.$strip>;
194
+ export type WebAnnotationTarget = z.infer<typeof WebAnnotationTargetSchema>;
195
+ //# sourceMappingURL=web-annotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-annotation.d.ts","sourceRoot":"","sources":["../../../src/review-inquiry/lib/web-annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkCxB,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;iBASnC,CAAC;AACL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,sBAAsB;;;;iBAejC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,yBAAyB;;;iBAUpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAQ5E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;2BAKjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAMtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAgBhF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebAnnotationTargetSchema = exports.WebAnnotationSelectorSchema = exports.RangeSelectorSchema = exports.NonRangeSelectorSchema = exports.JsonPointerSelectorSchema = exports.FragmentSelectorSchema = exports.TextPositionSelectorSchema = exports.TextQuoteSelectorSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TextQuoteSelectorSchema = zod_1.z.object({
6
+ type: zod_1.z.literal('TextQuoteSelector'),
7
+ exact: zod_1.z.string().min(1),
8
+ prefix: zod_1.z.string().optional(),
9
+ suffix: zod_1.z.string().optional(),
10
+ });
11
+ exports.TextPositionSelectorSchema = zod_1.z
12
+ .object({
13
+ type: zod_1.z.literal('TextPositionSelector'),
14
+ start: zod_1.z.number().int().min(0),
15
+ end: zod_1.z.number().int().min(0),
16
+ })
17
+ .refine((v) => v.end >= v.start, {
18
+ message: 'TextPositionSelector requires end >= start',
19
+ path: ['end'],
20
+ });
21
+ exports.FragmentSelectorSchema = zod_1.z.object({
22
+ type: zod_1.z.literal('FragmentSelector'),
23
+ value: zod_1.z.string().min(1),
24
+ conformsTo: zod_1.z
25
+ .union([
26
+ zod_1.z.literal('https://tools.ietf.org/html/rfc3986'),
27
+ zod_1.z.literal('gfm-heading-slug'),
28
+ ])
29
+ .optional(),
30
+ });
31
+ exports.JsonPointerSelectorSchema = zod_1.z.object({
32
+ type: zod_1.z.literal('xema:JsonPointerSelector'),
33
+ pointer: zod_1.z.string().min(1),
34
+ });
35
+ exports.NonRangeSelectorSchema = zod_1.z.discriminatedUnion('type', [
36
+ exports.TextQuoteSelectorSchema,
37
+ exports.TextPositionSelectorSchema,
38
+ exports.FragmentSelectorSchema,
39
+ exports.JsonPointerSelectorSchema,
40
+ ]);
41
+ exports.RangeSelectorSchema = zod_1.z.object({
42
+ type: zod_1.z.literal('RangeSelector'),
43
+ startSelector: exports.NonRangeSelectorSchema,
44
+ endSelector: exports.NonRangeSelectorSchema,
45
+ });
46
+ exports.WebAnnotationSelectorSchema = zod_1.z.discriminatedUnion('type', [
47
+ exports.TextQuoteSelectorSchema,
48
+ exports.TextPositionSelectorSchema,
49
+ exports.FragmentSelectorSchema,
50
+ exports.JsonPointerSelectorSchema,
51
+ exports.RangeSelectorSchema,
52
+ ]);
53
+ exports.WebAnnotationTargetSchema = zod_1.z.object({
54
+ artifactId: zod_1.z.string().min(1),
55
+ versionId: zod_1.z.string().min(1),
56
+ version: zod_1.z.number().int().min(1),
57
+ selector: exports.WebAnnotationSelectorSchema.optional(),
58
+ });
59
+ //# sourceMappingURL=web-annotation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-annotation.js","sourceRoot":"","sources":["../../../src/review-inquiry/lib/web-annotation.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAkCX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IACpC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,CAAC;IACN,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IACvC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7B,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,KAAK,EAAE;IAC/B,OAAO,EAAE,4CAA4C;IACrD,IAAI,EAAE,CAAC,KAAK,CAAC;CACd,CAAC,CAAC;AAGQ,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACnC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAOxB,UAAU,EAAE,OAAC;SACV,KAAK,CAAC;QACL,OAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC;QAChD,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;KAC9B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAOhD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;IAE3C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC3B,CAAC,CAAC;AASU,QAAA,sBAAsB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACjE,+BAAuB;IACvB,kCAA0B;IAC1B,8BAAsB;IACtB,iCAAyB;CAC1B,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IAChC,aAAa,EAAE,8BAAsB;IACrC,WAAW,EAAE,8BAAsB;CACpC,CAAC,CAAC;AAGU,QAAA,2BAA2B,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACtE,+BAAuB;IACvB,kCAA0B;IAC1B,8BAAsB;IACtB,iCAAyB;IACzB,2BAAmB;CACpB,CAAC,CAAC;AAiBU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,QAAQ,EAAE,mCAA2B,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './lib/run-mode';
2
+ export * from './lib/run-outcome';
3
+ export * from './lib/run-revision-state';
4
+ export * from './lib/run-phase-rail';
5
+ export * from './lib/run-detail-dto';
6
+ export * from './lib/wait-windows';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/run-detail/index.ts"],"names":[],"mappings":"AAeA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./lib/run-mode"), exports);
18
+ __exportStar(require("./lib/run-outcome"), exports);
19
+ __exportStar(require("./lib/run-revision-state"), exports);
20
+ __exportStar(require("./lib/run-phase-rail"), exports);
21
+ __exportStar(require("./lib/run-detail-dto"), exports);
22
+ __exportStar(require("./lib/wait-windows"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/run-detail/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,iDAA+B;AAC/B,oDAAkC;AAClC,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC"}
@@ -0,0 +1,34 @@
1
+ import { WorkflowRunStatus } from '../../workflow';
2
+ import { RunOutcomeDto } from './run-outcome';
3
+ import { RunPhaseRailDto } from './run-phase-rail';
4
+ import { RunRevisionPayload } from './run-revision-state';
5
+ import { WaitWindow } from './wait-windows';
6
+ export interface RunDetailDto {
7
+ readonly id: string;
8
+ readonly workflowSlug: string;
9
+ readonly workflowDisplayName: string;
10
+ readonly status: WorkflowRunStatus;
11
+ readonly initiatorDisplayName: string | null;
12
+ readonly startedAt: string;
13
+ readonly endedAt: string | null;
14
+ readonly etaAt: string | null;
15
+ readonly phaseRail: RunPhaseRailDto;
16
+ readonly waitWindows: readonly WaitWindow[];
17
+ readonly activityNow: readonly RunActivityNowDto[];
18
+ readonly recentTail: readonly RunRecentEventDto[];
19
+ readonly revision: RunRevisionPayload;
20
+ readonly outcome: RunOutcomeDto | null;
21
+ readonly blockingSummary: string | null;
22
+ }
23
+ export interface RunActivityNowDto {
24
+ readonly jobKey: string;
25
+ readonly agentDisplayName: string | null;
26
+ readonly summary: string;
27
+ }
28
+ export interface RunRecentEventDto {
29
+ readonly id: string;
30
+ readonly at: string;
31
+ readonly summary: string;
32
+ readonly developerAnchor: string | null;
33
+ }
34
+ //# sourceMappingURL=run-detail-dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-detail-dto.d.ts","sourceRoot":"","sources":["../../../src/run-detail/lib/run-detail-dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAmB5C,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IAEnC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;IAG5C,QAAQ,CAAC,WAAW,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAGnD,QAAQ,CAAC,UAAU,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAMlD,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IAGtC,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC;IAMvC,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC;AAOD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAMD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=run-detail-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-detail-dto.js","sourceRoot":"","sources":["../../../src/run-detail/lib/run-detail-dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { WorkflowRunStatus } from '../../workflow';
2
+ export declare enum RunMode {
3
+ OVERVIEW = "overview",
4
+ WORK = "work",
5
+ OUTPUTS = "outputs",
6
+ DEVELOPER = "developer"
7
+ }
8
+ export interface RunModeSelectionInputs {
9
+ readonly status: WorkflowRunStatus;
10
+ readonly hasQuestionForCurrentUser: boolean;
11
+ readonly userPreferredMode?: RunMode;
12
+ }
13
+ export declare function selectDefaultRunMode(input: RunModeSelectionInputs): RunMode;
14
+ //# sourceMappingURL=run-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-mode.d.ts","sourceRoot":"","sources":["../../../src/run-detail/lib/run-mode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAkC,MAAM,gBAAgB,CAAC;AAqBnF,oBAAY,OAAO;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAOD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,QAAQ,CAAC,yBAAyB,EAAE,OAAO,CAAC;IAE5C,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CACtC;AAaD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAa3E"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RunMode = void 0;
4
+ exports.selectDefaultRunMode = selectDefaultRunMode;
5
+ const workflow_1 = require("../../workflow");
6
+ var RunMode;
7
+ (function (RunMode) {
8
+ RunMode["OVERVIEW"] = "overview";
9
+ RunMode["WORK"] = "work";
10
+ RunMode["OUTPUTS"] = "outputs";
11
+ RunMode["DEVELOPER"] = "developer";
12
+ })(RunMode || (exports.RunMode = RunMode = {}));
13
+ function selectDefaultRunMode(input) {
14
+ if (input.userPreferredMode !== undefined) {
15
+ return input.userPreferredMode;
16
+ }
17
+ const isTerminal = workflow_1.TERMINAL_WORKFLOW_RUN_STATUSES.includes(input.status);
18
+ if (!isTerminal &&
19
+ input.status === workflow_1.WorkflowRunStatus.WAITING_ON_HUMAN &&
20
+ input.hasQuestionForCurrentUser) {
21
+ return RunMode.WORK;
22
+ }
23
+ return RunMode.OVERVIEW;
24
+ }
25
+ //# sourceMappingURL=run-mode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-mode.js","sourceRoot":"","sources":["../../../src/run-detail/lib/run-mode.ts"],"names":[],"mappings":";;;AAmDA,oDAaC;AAhED,6CAAmF;AAqBnF,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,gCAAqB,CAAA;IACrB,wBAAa,CAAA;IACb,8BAAmB,CAAA;IACnB,kCAAuB,CAAA;AACzB,CAAC,EALW,OAAO,uBAAP,OAAO,QAKlB;AAyBD,SAAgB,oBAAoB,CAAC,KAA6B;IAChE,IAAI,KAAK,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;QAC1C,OAAO,KAAK,CAAC,iBAAiB,CAAC;IACjC,CAAC;IACD,MAAM,UAAU,GAAG,yCAA8B,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzE,IACE,CAAC,UAAU;QACX,KAAK,CAAC,MAAM,KAAK,4BAAiB,CAAC,gBAAgB;QACnD,KAAK,CAAC,yBAAyB,EAC/B,CAAC;QACD,OAAO,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;IACD,OAAO,OAAO,CAAC,QAAQ,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { WorkflowRunStatus } from '../../workflow';
2
+ export declare enum RunOutcomeBranch {
3
+ SUCCEEDED = "succeeded",
4
+ FAILED = "failed",
5
+ CANCELLED = "cancelled",
6
+ ESCALATION_EXHAUSTED = "escalation_exhausted"
7
+ }
8
+ export interface RunOutcomeDto {
9
+ readonly branch: RunOutcomeBranch;
10
+ readonly summary: string;
11
+ readonly actions: readonly RunOutcomeActionDto[];
12
+ }
13
+ export interface RunOutcomeActionDto {
14
+ readonly kind: RunOutcomeActionKind;
15
+ readonly label: string;
16
+ readonly href?: string;
17
+ readonly payload?: Readonly<Record<string, unknown>>;
18
+ }
19
+ export declare enum RunOutcomeActionKind {
20
+ RUN_AGAIN = "run_again",
21
+ OPEN_IN_KB = "open_in_kb",
22
+ REDO_FROM_PHASE = "redo_from_phase",
23
+ OPEN_LAST_SUCCESSFUL_ARTIFACT = "open_last_successful_artifact",
24
+ RESTART_WITH_SAME_INPUTS = "restart_with_same_inputs",
25
+ ADJUST_ESCALATION_CHAIN = "adjust_escalation_chain"
26
+ }
27
+ export declare function isOutcomeBearingStatus(status: WorkflowRunStatus): boolean;
28
+ //# sourceMappingURL=run-outcome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-outcome.d.ts","sourceRoot":"","sources":["../../../src/run-detail/lib/run-outcome.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAUnD,oBAAY,gBAAgB;IAC1B,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,oBAAoB,yBAAyB;CAC9C;AAUD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,SAAS,mBAAmB,EAAE,CAAC;CAClD;AAMD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACtD;AAED,oBAAY,oBAAoB;IAC9B,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,6BAA6B,kCAAkC;IAC/D,wBAAwB,6BAA6B;IACrD,uBAAuB,4BAA4B;CACpD;AAQD,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAMzE"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RunOutcomeActionKind = exports.RunOutcomeBranch = void 0;
4
+ exports.isOutcomeBearingStatus = isOutcomeBearingStatus;
5
+ const workflow_1 = require("../../workflow");
6
+ var RunOutcomeBranch;
7
+ (function (RunOutcomeBranch) {
8
+ RunOutcomeBranch["SUCCEEDED"] = "succeeded";
9
+ RunOutcomeBranch["FAILED"] = "failed";
10
+ RunOutcomeBranch["CANCELLED"] = "cancelled";
11
+ RunOutcomeBranch["ESCALATION_EXHAUSTED"] = "escalation_exhausted";
12
+ })(RunOutcomeBranch || (exports.RunOutcomeBranch = RunOutcomeBranch = {}));
13
+ var RunOutcomeActionKind;
14
+ (function (RunOutcomeActionKind) {
15
+ RunOutcomeActionKind["RUN_AGAIN"] = "run_again";
16
+ RunOutcomeActionKind["OPEN_IN_KB"] = "open_in_kb";
17
+ RunOutcomeActionKind["REDO_FROM_PHASE"] = "redo_from_phase";
18
+ RunOutcomeActionKind["OPEN_LAST_SUCCESSFUL_ARTIFACT"] = "open_last_successful_artifact";
19
+ RunOutcomeActionKind["RESTART_WITH_SAME_INPUTS"] = "restart_with_same_inputs";
20
+ RunOutcomeActionKind["ADJUST_ESCALATION_CHAIN"] = "adjust_escalation_chain";
21
+ })(RunOutcomeActionKind || (exports.RunOutcomeActionKind = RunOutcomeActionKind = {}));
22
+ function isOutcomeBearingStatus(status) {
23
+ return (status === workflow_1.WorkflowRunStatus.SUCCEEDED ||
24
+ status === workflow_1.WorkflowRunStatus.FAILED ||
25
+ status === workflow_1.WorkflowRunStatus.CANCELLED);
26
+ }
27
+ //# sourceMappingURL=run-outcome.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-outcome.js","sourceRoot":"","sources":["../../../src/run-detail/lib/run-outcome.ts"],"names":[],"mappings":";;;AA2DA,wDAMC;AAjED,6CAAmD;AAUnD,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;IACvB,iEAA6C,CAAA;AAC/C,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AA6BD,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,iDAAyB,CAAA;IACzB,2DAAmC,CAAA;IACnC,uFAA+D,CAAA;IAC/D,6EAAqD,CAAA;IACrD,2EAAmD,CAAA;AACrD,CAAC,EAPW,oBAAoB,oCAApB,oBAAoB,QAO/B;AAQD,SAAgB,sBAAsB,CAAC,MAAyB;IAC9D,OAAO,CACL,MAAM,KAAK,4BAAiB,CAAC,SAAS;QACtC,MAAM,KAAK,4BAAiB,CAAC,MAAM;QACnC,MAAM,KAAK,4BAAiB,CAAC,SAAS,CACvC,CAAC;AACJ,CAAC"}