@adecore/agent-contracts 0.63.2 → 0.64.1
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/chat.d.ts +14 -0
- package/dist/chat.js +3 -1
- package/dist/protocol.d.ts +9 -0
- package/package.json +3 -3
- package/src/chat.ts +3 -1
package/dist/chat.d.ts
CHANGED
|
@@ -1116,6 +1116,7 @@ export declare const ChatNoteMessageSchema: z.ZodObject<{
|
|
|
1116
1116
|
dropped: "dropped";
|
|
1117
1117
|
waiting: "waiting";
|
|
1118
1118
|
}>>;
|
|
1119
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1119
1120
|
text: z.ZodString;
|
|
1120
1121
|
}, z.core.$strip>;
|
|
1121
1122
|
export declare const ChatNoteItemSchema: z.ZodObject<{
|
|
@@ -1137,6 +1138,7 @@ export declare const ChatNoteItemSchema: z.ZodObject<{
|
|
|
1137
1138
|
dropped: "dropped";
|
|
1138
1139
|
waiting: "waiting";
|
|
1139
1140
|
}>>;
|
|
1141
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1140
1142
|
text: z.ZodString;
|
|
1141
1143
|
}, z.core.$strip>>;
|
|
1142
1144
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -1540,6 +1542,7 @@ export declare const ChatItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1540
1542
|
dropped: "dropped";
|
|
1541
1543
|
waiting: "waiting";
|
|
1542
1544
|
}>>;
|
|
1545
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1543
1546
|
text: z.ZodString;
|
|
1544
1547
|
}, z.core.$strip>>;
|
|
1545
1548
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -1961,6 +1964,7 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1961
1964
|
dropped: "dropped";
|
|
1962
1965
|
waiting: "waiting";
|
|
1963
1966
|
}>>;
|
|
1967
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1964
1968
|
text: z.ZodString;
|
|
1965
1969
|
}, z.core.$strip>>;
|
|
1966
1970
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -2803,6 +2807,7 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2803
2807
|
dropped: "dropped";
|
|
2804
2808
|
waiting: "waiting";
|
|
2805
2809
|
}>>;
|
|
2810
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2806
2811
|
text: z.ZodString;
|
|
2807
2812
|
}, z.core.$strip>>;
|
|
2808
2813
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -3211,6 +3216,7 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
|
|
|
3211
3216
|
dropped: "dropped";
|
|
3212
3217
|
waiting: "waiting";
|
|
3213
3218
|
}>>;
|
|
3219
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3214
3220
|
text: z.ZodString;
|
|
3215
3221
|
}, z.core.$strip>>;
|
|
3216
3222
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -4053,6 +4059,7 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
|
|
|
4053
4059
|
dropped: "dropped";
|
|
4054
4060
|
waiting: "waiting";
|
|
4055
4061
|
}>>;
|
|
4062
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4056
4063
|
text: z.ZodString;
|
|
4057
4064
|
}, z.core.$strip>>;
|
|
4058
4065
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -4543,6 +4550,7 @@ export declare const ChatHistoryResultSchema: z.ZodObject<{
|
|
|
4543
4550
|
dropped: "dropped";
|
|
4544
4551
|
waiting: "waiting";
|
|
4545
4552
|
}>>;
|
|
4553
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4546
4554
|
text: z.ZodString;
|
|
4547
4555
|
}, z.core.$strip>>;
|
|
4548
4556
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -4994,6 +5002,7 @@ export declare const ChatSubagentResultSchema: z.ZodObject<{
|
|
|
4994
5002
|
dropped: "dropped";
|
|
4995
5003
|
waiting: "waiting";
|
|
4996
5004
|
}>>;
|
|
5005
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4997
5006
|
text: z.ZodString;
|
|
4998
5007
|
}, z.core.$strip>>;
|
|
4999
5008
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -5895,6 +5904,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
5895
5904
|
dropped: "dropped";
|
|
5896
5905
|
waiting: "waiting";
|
|
5897
5906
|
}>>;
|
|
5907
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
5898
5908
|
text: z.ZodString;
|
|
5899
5909
|
}, z.core.$strip>>;
|
|
5900
5910
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -6301,6 +6311,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
6301
6311
|
dropped: "dropped";
|
|
6302
6312
|
waiting: "waiting";
|
|
6303
6313
|
}>>;
|
|
6314
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6304
6315
|
text: z.ZodString;
|
|
6305
6316
|
}, z.core.$strip>>;
|
|
6306
6317
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -6706,6 +6717,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
6706
6717
|
dropped: "dropped";
|
|
6707
6718
|
waiting: "waiting";
|
|
6708
6719
|
}>>;
|
|
6720
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6709
6721
|
text: z.ZodString;
|
|
6710
6722
|
}, z.core.$strip>>;
|
|
6711
6723
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -7548,6 +7560,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
7548
7560
|
dropped: "dropped";
|
|
7549
7561
|
waiting: "waiting";
|
|
7550
7562
|
}>>;
|
|
7563
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
7551
7564
|
text: z.ZodString;
|
|
7552
7565
|
}, z.core.$strip>>;
|
|
7553
7566
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -8072,6 +8085,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
8072
8085
|
dropped: "dropped";
|
|
8073
8086
|
waiting: "waiting";
|
|
8074
8087
|
}>>;
|
|
8088
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
8075
8089
|
text: z.ZodString;
|
|
8076
8090
|
}, z.core.$strip>>;
|
|
8077
8091
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
package/dist/chat.js
CHANGED
|
@@ -591,7 +591,7 @@ export const ChatTurnItemSchema = z.object({
|
|
|
591
591
|
taskIds: z.array(z.string()).optional(),
|
|
592
592
|
// The nodes whose messages woke the chat for this turn, which is where waking on a message stops: a turn with one wakes nobody.
|
|
593
593
|
messageFrom: z.array(z.string()).optional(),
|
|
594
|
-
// How many messages led to this turn,
|
|
594
|
+
// How many messages led to this turn, from when chains of them were bounded in hops; no longer written.
|
|
595
595
|
messageHop: z.number().optional(),
|
|
596
596
|
// The CLI's own name for where this turn ended, which is what a fork after this turn is cut at.
|
|
597
597
|
native: z.object({ turnId: z.string().optional(), lastUuid: z.string().optional() }).optional(),
|
|
@@ -628,6 +628,8 @@ export const ChatNoteMessageSchema = z.object({
|
|
|
628
628
|
title: z.string(),
|
|
629
629
|
// Absent once the agent heard it, and on every message from before this; `dropped` never reached it.
|
|
630
630
|
state: z.enum(['waiting', 'dropped']).optional(),
|
|
631
|
+
// While it waits because messages opened all the turns they may in this chat this hour.
|
|
632
|
+
limited: z.literal(true).optional(),
|
|
631
633
|
text: z.string()
|
|
632
634
|
});
|
|
633
635
|
export const ChatNoteItemSchema = z.object({
|
package/dist/protocol.d.ts
CHANGED
|
@@ -585,6 +585,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
585
585
|
dropped: "dropped";
|
|
586
586
|
waiting: "waiting";
|
|
587
587
|
}>>;
|
|
588
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
588
589
|
text: z.ZodString;
|
|
589
590
|
}, z.core.$strip>>;
|
|
590
591
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -1167,6 +1168,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1167
1168
|
dropped: "dropped";
|
|
1168
1169
|
waiting: "waiting";
|
|
1169
1170
|
}>>;
|
|
1171
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1170
1172
|
text: z.ZodString;
|
|
1171
1173
|
}, z.core.$strip>>;
|
|
1172
1174
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -1573,6 +1575,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1573
1575
|
dropped: "dropped";
|
|
1574
1576
|
waiting: "waiting";
|
|
1575
1577
|
}>>;
|
|
1578
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1576
1579
|
text: z.ZodString;
|
|
1577
1580
|
}, z.core.$strip>>;
|
|
1578
1581
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -1978,6 +1981,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1978
1981
|
dropped: "dropped";
|
|
1979
1982
|
waiting: "waiting";
|
|
1980
1983
|
}>>;
|
|
1984
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1981
1985
|
text: z.ZodString;
|
|
1982
1986
|
}, z.core.$strip>>;
|
|
1983
1987
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -2820,6 +2824,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2820
2824
|
dropped: "dropped";
|
|
2821
2825
|
waiting: "waiting";
|
|
2822
2826
|
}>>;
|
|
2827
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2823
2828
|
text: z.ZodString;
|
|
2824
2829
|
}, z.core.$strip>>;
|
|
2825
2830
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -3344,6 +3349,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
3344
3349
|
dropped: "dropped";
|
|
3345
3350
|
waiting: "waiting";
|
|
3346
3351
|
}>>;
|
|
3352
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3347
3353
|
text: z.ZodString;
|
|
3348
3354
|
}, z.core.$strip>>;
|
|
3349
3355
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -4636,6 +4642,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
4636
4642
|
dropped: "dropped";
|
|
4637
4643
|
waiting: "waiting";
|
|
4638
4644
|
}>>;
|
|
4645
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
4639
4646
|
text: z.ZodString;
|
|
4640
4647
|
}, z.core.$strip>>;
|
|
4641
4648
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -6065,6 +6072,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
6065
6072
|
dropped: "dropped";
|
|
6066
6073
|
waiting: "waiting";
|
|
6067
6074
|
}>>;
|
|
6075
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6068
6076
|
text: z.ZodString;
|
|
6069
6077
|
}, z.core.$strip>>;
|
|
6070
6078
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -6907,6 +6915,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
6907
6915
|
dropped: "dropped";
|
|
6908
6916
|
waiting: "waiting";
|
|
6909
6917
|
}>>;
|
|
6918
|
+
limited: z.ZodOptional<z.ZodLiteral<true>>;
|
|
6910
6919
|
text: z.ZodString;
|
|
6911
6920
|
}, z.core.$strip>>;
|
|
6912
6921
|
said: z.ZodOptional<z.ZodLiteral<true>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/agent-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.1",
|
|
4
4
|
"description": "Schemas and port contracts for agent chats, provider accounts, models and usage.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"test": "bun --conditions=source test"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@adecore/intelligent-ui": "0.
|
|
85
|
-
"@adecore/utils": "0.
|
|
84
|
+
"@adecore/intelligent-ui": "0.64.1",
|
|
85
|
+
"@adecore/utils": "0.64.1",
|
|
86
86
|
"zod": "^4.6.7"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
package/src/chat.ts
CHANGED
|
@@ -719,7 +719,7 @@ export const ChatTurnItemSchema = z.object({
|
|
|
719
719
|
taskIds: z.array(z.string()).optional(),
|
|
720
720
|
// The nodes whose messages woke the chat for this turn, which is where waking on a message stops: a turn with one wakes nobody.
|
|
721
721
|
messageFrom: z.array(z.string()).optional(),
|
|
722
|
-
// How many messages led to this turn,
|
|
722
|
+
// How many messages led to this turn, from when chains of them were bounded in hops; no longer written.
|
|
723
723
|
messageHop: z.number().optional(),
|
|
724
724
|
// The CLI's own name for where this turn ended, which is what a fork after this turn is cut at.
|
|
725
725
|
native: z.object({ turnId: z.string().optional(), lastUuid: z.string().optional() }).optional(),
|
|
@@ -768,6 +768,8 @@ export const ChatNoteMessageSchema = z.object({
|
|
|
768
768
|
title: z.string(),
|
|
769
769
|
// Absent once the agent heard it, and on every message from before this; `dropped` never reached it.
|
|
770
770
|
state: z.enum(['waiting', 'dropped']).optional(),
|
|
771
|
+
// While it waits because messages opened all the turns they may in this chat this hour.
|
|
772
|
+
limited: z.literal(true).optional(),
|
|
771
773
|
text: z.string()
|
|
772
774
|
});
|
|
773
775
|
|