@sjawhar/opencode-legion-envoy 1.40.2 → 1.42.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.
- package/dist/src/server.js +48 -2
- package/package.json +1 -1
package/dist/src/server.js
CHANGED
|
@@ -13629,6 +13629,24 @@ var AskEditedEventPayloadSchema = object({
|
|
|
13629
13629
|
}),
|
|
13630
13630
|
edited_by: object({ kind: string2(), id: string2() }).passthrough()
|
|
13631
13631
|
});
|
|
13632
|
+
var CommentMentionSchema = object({
|
|
13633
|
+
target: string2(),
|
|
13634
|
+
delivery: _enum2(DELIVERY_CAPABILITIES),
|
|
13635
|
+
session_id: string2().nullable()
|
|
13636
|
+
});
|
|
13637
|
+
var CommentDeliverySchema = object({
|
|
13638
|
+
comment_id: string2(),
|
|
13639
|
+
target: string2(),
|
|
13640
|
+
attempt: number2().int().positive(),
|
|
13641
|
+
delivery: _enum2(DELIVERY_CAPABILITIES),
|
|
13642
|
+
session_id: string2().nullable(),
|
|
13643
|
+
envelope_id: string2().nullable(),
|
|
13644
|
+
state: _enum2(["pending", "sent", "failed"]),
|
|
13645
|
+
error: string2().nullable(),
|
|
13646
|
+
resolve_error: string2().nullable(),
|
|
13647
|
+
reply_id: string2().nullable(),
|
|
13648
|
+
created_at: string2()
|
|
13649
|
+
});
|
|
13632
13650
|
var CommentEventPayloadSchema = object({
|
|
13633
13651
|
id: string2().optional(),
|
|
13634
13652
|
artifact_name: string2().optional(),
|
|
@@ -13644,7 +13662,9 @@ var CommentEventPayloadSchema = object({
|
|
|
13644
13662
|
anchor: object({ block_id: string2().nullable().optional(), quote: string2().optional() }).nullish(),
|
|
13645
13663
|
suggestion: object({ replace_with: string2().optional() }).nullish(),
|
|
13646
13664
|
author: object({ kind: string2(), id: string2() }).optional(),
|
|
13647
|
-
created_at: string2().optional()
|
|
13665
|
+
created_at: string2().optional(),
|
|
13666
|
+
mentions: array(CommentMentionSchema).optional(),
|
|
13667
|
+
deliveries: array(CommentDeliverySchema).optional()
|
|
13648
13668
|
});
|
|
13649
13669
|
var MessageEventPayloadSchema = object({
|
|
13650
13670
|
id: string2().optional(),
|
|
@@ -13654,8 +13674,9 @@ var MessageEventPayloadSchema = object({
|
|
|
13654
13674
|
reply_body: string2().optional(),
|
|
13655
13675
|
author: object({ kind: string2(), id: string2() }).optional()
|
|
13656
13676
|
});
|
|
13677
|
+
var DispatchTargetedResourceIDSchema = uuid2();
|
|
13657
13678
|
var DispatchTargetedMessagePayloadSchema = MessageEventPayloadSchema.extend({
|
|
13658
|
-
id:
|
|
13679
|
+
id: DispatchTargetedResourceIDSchema,
|
|
13659
13680
|
issue_key: string2().nullable(),
|
|
13660
13681
|
author: object({ kind: string2(), id: string2() }),
|
|
13661
13682
|
body: string2(),
|
|
@@ -13664,6 +13685,31 @@ var DispatchTargetedMessagePayloadSchema = MessageEventPayloadSchema.extend({
|
|
|
13664
13685
|
deliveries: array(unknown()),
|
|
13665
13686
|
created_at: string2()
|
|
13666
13687
|
});
|
|
13688
|
+
var DispatchTargetedCommentPayloadSchema = CommentEventPayloadSchema.extend({
|
|
13689
|
+
id: DispatchTargetedResourceIDSchema,
|
|
13690
|
+
issue_key: string2().nullable(),
|
|
13691
|
+
artifact_id: string2().nullable(),
|
|
13692
|
+
author: object({ kind: string2(), id: string2() }),
|
|
13693
|
+
body: string2(),
|
|
13694
|
+
reply_to: string2().nullable(),
|
|
13695
|
+
ask_id: string2().nullable(),
|
|
13696
|
+
mentions: array(CommentMentionSchema),
|
|
13697
|
+
deliveries: array(CommentDeliverySchema),
|
|
13698
|
+
created_at: string2(),
|
|
13699
|
+
artifact_name: string2()
|
|
13700
|
+
});
|
|
13701
|
+
var DispatchTargetedMessageDeliverySchema = object({
|
|
13702
|
+
attempt: number2().int().positive(),
|
|
13703
|
+
mode: _enum2(DELIVERY_CAPABILITIES)
|
|
13704
|
+
});
|
|
13705
|
+
var DispatchTargetedCommentDeliverySchema = DispatchTargetedMessageDeliverySchema.extend({
|
|
13706
|
+
comment_id: DispatchTargetedResourceIDSchema,
|
|
13707
|
+
target: string2()
|
|
13708
|
+
});
|
|
13709
|
+
var DispatchTargetedDeliverySchema = union([
|
|
13710
|
+
DispatchTargetedCommentDeliverySchema,
|
|
13711
|
+
DispatchTargetedMessageDeliverySchema
|
|
13712
|
+
]);
|
|
13667
13713
|
var MessageDeliveryEventPayloadSchema = object({
|
|
13668
13714
|
message_id: string2().optional(),
|
|
13669
13715
|
attempt: number2().int().positive().optional(),
|