@adecore/agent-contracts 0.70.0 → 0.70.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 +171 -0
- package/dist/chat.js +14 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/protocol.d.ts +117 -0
- package/package.json +3 -3
- package/src/chat.ts +16 -4
- package/src/index.ts +2 -0
package/dist/chat.d.ts
CHANGED
|
@@ -1168,6 +1168,20 @@ export declare const ChatCompactionItemSchema: z.ZodObject<{
|
|
|
1168
1168
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
1169
1169
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
1170
1170
|
}, z.core.$strip>;
|
|
1171
|
+
export declare const ChatSecretItemSchema: z.ZodObject<{
|
|
1172
|
+
id: z.ZodString;
|
|
1173
|
+
createdAt: z.ZodNumber;
|
|
1174
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1175
|
+
kind: z.ZodLiteral<"secret">;
|
|
1176
|
+
label: z.ZodString;
|
|
1177
|
+
outcome: z.ZodEnum<{
|
|
1178
|
+
cancelled: "cancelled";
|
|
1179
|
+
declined: "declined";
|
|
1180
|
+
saved: "saved";
|
|
1181
|
+
"timed-out": "timed-out";
|
|
1182
|
+
}>;
|
|
1183
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1184
|
+
}, z.core.$strip>;
|
|
1171
1185
|
export declare const ChatItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1172
1186
|
id: z.ZodString;
|
|
1173
1187
|
createdAt: z.ZodNumber;
|
|
@@ -1573,6 +1587,19 @@ export declare const ChatItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1573
1587
|
kind: z.ZodLiteral<"compaction">;
|
|
1574
1588
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
1575
1589
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
1590
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1591
|
+
id: z.ZodString;
|
|
1592
|
+
createdAt: z.ZodNumber;
|
|
1593
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1594
|
+
kind: z.ZodLiteral<"secret">;
|
|
1595
|
+
label: z.ZodString;
|
|
1596
|
+
outcome: z.ZodEnum<{
|
|
1597
|
+
cancelled: "cancelled";
|
|
1598
|
+
declined: "declined";
|
|
1599
|
+
saved: "saved";
|
|
1600
|
+
"timed-out": "timed-out";
|
|
1601
|
+
}>;
|
|
1602
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1576
1603
|
}, z.core.$strip>], "kind">;
|
|
1577
1604
|
export type ChatItem = z.infer<typeof ChatItemSchema>;
|
|
1578
1605
|
export interface ChatUnknownItem {
|
|
@@ -1593,6 +1620,7 @@ export type ChatTurnItem = z.infer<typeof ChatTurnItemSchema>;
|
|
|
1593
1620
|
export type ChatNoteItem = z.infer<typeof ChatNoteItemSchema>;
|
|
1594
1621
|
export type ChatNoteMessage = z.infer<typeof ChatNoteMessageSchema>;
|
|
1595
1622
|
export type ChatCompactionItem = z.infer<typeof ChatCompactionItemSchema>;
|
|
1623
|
+
export type ChatSecretItem = z.infer<typeof ChatSecretItemSchema>;
|
|
1596
1624
|
type ThreadItem = {
|
|
1597
1625
|
readonly kind: string;
|
|
1598
1626
|
readonly createdAt: number;
|
|
@@ -2009,6 +2037,19 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2009
2037
|
kind: z.ZodLiteral<"compaction">;
|
|
2010
2038
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
2011
2039
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
2040
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2041
|
+
id: z.ZodString;
|
|
2042
|
+
createdAt: z.ZodNumber;
|
|
2043
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
2044
|
+
kind: z.ZodLiteral<"secret">;
|
|
2045
|
+
label: z.ZodString;
|
|
2046
|
+
outcome: z.ZodEnum<{
|
|
2047
|
+
cancelled: "cancelled";
|
|
2048
|
+
declined: "declined";
|
|
2049
|
+
saved: "saved";
|
|
2050
|
+
"timed-out": "timed-out";
|
|
2051
|
+
}>;
|
|
2052
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2012
2053
|
}, z.core.$strip>], "kind">;
|
|
2013
2054
|
historyIndex: z.ZodOptional<z.ZodNumber>;
|
|
2014
2055
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2856,6 +2897,19 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2856
2897
|
kind: z.ZodLiteral<"compaction">;
|
|
2857
2898
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
2858
2899
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
2900
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2901
|
+
id: z.ZodString;
|
|
2902
|
+
createdAt: z.ZodNumber;
|
|
2903
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
2904
|
+
kind: z.ZodLiteral<"secret">;
|
|
2905
|
+
label: z.ZodString;
|
|
2906
|
+
outcome: z.ZodEnum<{
|
|
2907
|
+
cancelled: "cancelled";
|
|
2908
|
+
declined: "declined";
|
|
2909
|
+
saved: "saved";
|
|
2910
|
+
"timed-out": "timed-out";
|
|
2911
|
+
}>;
|
|
2912
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2859
2913
|
}, z.core.$strip>], "kind">>;
|
|
2860
2914
|
}, z.core.$strip>], "type">;
|
|
2861
2915
|
export type ChatEvent = z.infer<typeof ChatEventSchema>;
|
|
@@ -3272,6 +3326,19 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
|
|
|
3272
3326
|
kind: z.ZodLiteral<"compaction">;
|
|
3273
3327
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
3274
3328
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
3329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3330
|
+
id: z.ZodString;
|
|
3331
|
+
createdAt: z.ZodNumber;
|
|
3332
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
3333
|
+
kind: z.ZodLiteral<"secret">;
|
|
3334
|
+
label: z.ZodString;
|
|
3335
|
+
outcome: z.ZodEnum<{
|
|
3336
|
+
cancelled: "cancelled";
|
|
3337
|
+
declined: "declined";
|
|
3338
|
+
saved: "saved";
|
|
3339
|
+
"timed-out": "timed-out";
|
|
3340
|
+
}>;
|
|
3341
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3275
3342
|
}, z.core.$strip>], "kind">;
|
|
3276
3343
|
historyIndex: z.ZodOptional<z.ZodNumber>;
|
|
3277
3344
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4119,6 +4186,19 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
|
|
|
4119
4186
|
kind: z.ZodLiteral<"compaction">;
|
|
4120
4187
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
4121
4188
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
4189
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4190
|
+
id: z.ZodString;
|
|
4191
|
+
createdAt: z.ZodNumber;
|
|
4192
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
4193
|
+
kind: z.ZodLiteral<"secret">;
|
|
4194
|
+
label: z.ZodString;
|
|
4195
|
+
outcome: z.ZodEnum<{
|
|
4196
|
+
cancelled: "cancelled";
|
|
4197
|
+
declined: "declined";
|
|
4198
|
+
saved: "saved";
|
|
4199
|
+
"timed-out": "timed-out";
|
|
4200
|
+
}>;
|
|
4201
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4122
4202
|
}, z.core.$strip>], "kind">>;
|
|
4123
4203
|
}, z.core.$strip>], "type">;
|
|
4124
4204
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4629,6 +4709,19 @@ export declare const ChatHistoryResultSchema: z.ZodObject<{
|
|
|
4629
4709
|
kind: z.ZodLiteral<"compaction">;
|
|
4630
4710
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
4631
4711
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
4712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4713
|
+
id: z.ZodString;
|
|
4714
|
+
createdAt: z.ZodNumber;
|
|
4715
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
4716
|
+
kind: z.ZodLiteral<"secret">;
|
|
4717
|
+
label: z.ZodString;
|
|
4718
|
+
outcome: z.ZodEnum<{
|
|
4719
|
+
cancelled: "cancelled";
|
|
4720
|
+
declined: "declined";
|
|
4721
|
+
saved: "saved";
|
|
4722
|
+
"timed-out": "timed-out";
|
|
4723
|
+
}>;
|
|
4724
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4632
4725
|
}, z.core.$strip>], "kind">>;
|
|
4633
4726
|
history: z.ZodObject<{
|
|
4634
4727
|
start: z.ZodNumber;
|
|
@@ -5084,6 +5177,19 @@ export declare const ChatSubagentResultSchema: z.ZodObject<{
|
|
|
5084
5177
|
kind: z.ZodLiteral<"compaction">;
|
|
5085
5178
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
5086
5179
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
5180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5181
|
+
id: z.ZodString;
|
|
5182
|
+
createdAt: z.ZodNumber;
|
|
5183
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
5184
|
+
kind: z.ZodLiteral<"secret">;
|
|
5185
|
+
label: z.ZodString;
|
|
5186
|
+
outcome: z.ZodEnum<{
|
|
5187
|
+
cancelled: "cancelled";
|
|
5188
|
+
declined: "declined";
|
|
5189
|
+
saved: "saved";
|
|
5190
|
+
"timed-out": "timed-out";
|
|
5191
|
+
}>;
|
|
5192
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5087
5193
|
}, z.core.$strip>], "kind">>;
|
|
5088
5194
|
history: z.ZodObject<{
|
|
5089
5195
|
start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5994,6 +6100,19 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
5994
6100
|
kind: z.ZodLiteral<"compaction">;
|
|
5995
6101
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
5996
6102
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
6103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6104
|
+
id: z.ZodString;
|
|
6105
|
+
createdAt: z.ZodNumber;
|
|
6106
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
6107
|
+
kind: z.ZodLiteral<"secret">;
|
|
6108
|
+
label: z.ZodString;
|
|
6109
|
+
outcome: z.ZodEnum<{
|
|
6110
|
+
cancelled: "cancelled";
|
|
6111
|
+
declined: "declined";
|
|
6112
|
+
saved: "saved";
|
|
6113
|
+
"timed-out": "timed-out";
|
|
6114
|
+
}>;
|
|
6115
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5997
6116
|
}, z.core.$strip>], "kind">>;
|
|
5998
6117
|
history: z.ZodOptional<z.ZodObject<{
|
|
5999
6118
|
start: z.ZodNumber;
|
|
@@ -6404,6 +6523,19 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
6404
6523
|
kind: z.ZodLiteral<"compaction">;
|
|
6405
6524
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
6406
6525
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
6526
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6527
|
+
id: z.ZodString;
|
|
6528
|
+
createdAt: z.ZodNumber;
|
|
6529
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
6530
|
+
kind: z.ZodLiteral<"secret">;
|
|
6531
|
+
label: z.ZodString;
|
|
6532
|
+
outcome: z.ZodEnum<{
|
|
6533
|
+
cancelled: "cancelled";
|
|
6534
|
+
declined: "declined";
|
|
6535
|
+
saved: "saved";
|
|
6536
|
+
"timed-out": "timed-out";
|
|
6537
|
+
}>;
|
|
6538
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6407
6539
|
}, z.core.$strip>], "kind">>>;
|
|
6408
6540
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
6409
6541
|
events: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -6813,6 +6945,19 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
6813
6945
|
kind: z.ZodLiteral<"compaction">;
|
|
6814
6946
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
6815
6947
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
6948
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6949
|
+
id: z.ZodString;
|
|
6950
|
+
createdAt: z.ZodNumber;
|
|
6951
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
6952
|
+
kind: z.ZodLiteral<"secret">;
|
|
6953
|
+
label: z.ZodString;
|
|
6954
|
+
outcome: z.ZodEnum<{
|
|
6955
|
+
cancelled: "cancelled";
|
|
6956
|
+
declined: "declined";
|
|
6957
|
+
saved: "saved";
|
|
6958
|
+
"timed-out": "timed-out";
|
|
6959
|
+
}>;
|
|
6960
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6816
6961
|
}, z.core.$strip>], "kind">;
|
|
6817
6962
|
historyIndex: z.ZodOptional<z.ZodNumber>;
|
|
6818
6963
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -7660,6 +7805,19 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
7660
7805
|
kind: z.ZodLiteral<"compaction">;
|
|
7661
7806
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
7662
7807
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
7808
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7809
|
+
id: z.ZodString;
|
|
7810
|
+
createdAt: z.ZodNumber;
|
|
7811
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
7812
|
+
kind: z.ZodLiteral<"secret">;
|
|
7813
|
+
label: z.ZodString;
|
|
7814
|
+
outcome: z.ZodEnum<{
|
|
7815
|
+
cancelled: "cancelled";
|
|
7816
|
+
declined: "declined";
|
|
7817
|
+
saved: "saved";
|
|
7818
|
+
"timed-out": "timed-out";
|
|
7819
|
+
}>;
|
|
7820
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7663
7821
|
}, z.core.$strip>], "kind">>;
|
|
7664
7822
|
}, z.core.$strip>], "type">>>;
|
|
7665
7823
|
bookmarks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -8189,6 +8347,19 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
8189
8347
|
kind: z.ZodLiteral<"compaction">;
|
|
8190
8348
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
8191
8349
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
8350
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8351
|
+
id: z.ZodString;
|
|
8352
|
+
createdAt: z.ZodNumber;
|
|
8353
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
8354
|
+
kind: z.ZodLiteral<"secret">;
|
|
8355
|
+
label: z.ZodString;
|
|
8356
|
+
outcome: z.ZodEnum<{
|
|
8357
|
+
cancelled: "cancelled";
|
|
8358
|
+
declined: "declined";
|
|
8359
|
+
saved: "saved";
|
|
8360
|
+
"timed-out": "timed-out";
|
|
8361
|
+
}>;
|
|
8362
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8192
8363
|
}, z.core.$strip>], "kind">>>;
|
|
8193
8364
|
suggestion: z.ZodOptional<z.ZodString>;
|
|
8194
8365
|
}, z.core.$strip>;
|
package/dist/chat.js
CHANGED
|
@@ -672,10 +672,19 @@ export const ChatCompactionItemSchema = z.object({
|
|
|
672
672
|
// The size the CLI named right after the fold; absent when it named none.
|
|
673
673
|
postTokens: z.number().int().nonnegative().optional()
|
|
674
674
|
});
|
|
675
|
+
export const ChatSecretItemSchema = z.object({
|
|
676
|
+
...base,
|
|
677
|
+
kind: z.literal('secret'),
|
|
678
|
+
// What the person was asked for; the value they gave never appears in the thread.
|
|
679
|
+
label: z.string(),
|
|
680
|
+
outcome: z.enum(['saved', 'declined', 'timed-out', 'cancelled']),
|
|
681
|
+
// The names of the values when one request asked for several.
|
|
682
|
+
fields: z.array(z.string()).optional()
|
|
683
|
+
});
|
|
675
684
|
/*
|
|
676
|
-
*
|
|
677
|
-
*
|
|
678
|
-
*
|
|
685
|
+
* An open union: a client that reads tolerantly keeps a member it does not know as an unknown item in its place, so a
|
|
686
|
+
* new member is fine. A new value in an enum of an existing member that no `openValues` stamps turns that whole item
|
|
687
|
+
* unknown to such a client, so add an optional field instead.
|
|
679
688
|
*/
|
|
680
689
|
export const ChatItemSchema = openUnion(z.discriminatedUnion('kind', [
|
|
681
690
|
ChatUserItemSchema,
|
|
@@ -687,7 +696,8 @@ export const ChatItemSchema = openUnion(z.discriminatedUnion('kind', [
|
|
|
687
696
|
ChatQuestionItemSchema,
|
|
688
697
|
ChatTurnItemSchema,
|
|
689
698
|
ChatNoteItemSchema,
|
|
690
|
-
ChatCompactionItemSchema
|
|
699
|
+
ChatCompactionItemSchema,
|
|
700
|
+
ChatSecretItemSchema
|
|
691
701
|
]), 'ChatItem', { tag: 'kind', base: ['id', 'createdAt', 'turnId'] });
|
|
692
702
|
function isSubagentItem(item) {
|
|
693
703
|
return item.kind === 'subagent';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AGENT_KIND_MAX_LENGTH, AgentKindSchema, type AgentKind, AgentStatusSchema, type AgentStatus, SUGGESTED_TITLE_LIMIT, SuggestedTitleSchema, AgentRequestSchema, type AgentRequest, AgentInfoSchema, type AgentInfo, SessionStatusEventSchema, type SessionStatusEvent, AgentResumePayloadSchema, type AgentResumePayload, ApprovalChoiceSchema, type ApprovalChoice, ApprovalRequestSchema, type ApprovalRequest, SessionApprovalsEventSchema, type SessionApprovalsEvent, ApprovalAnswerPayloadSchema, type ApprovalAnswerPayload, ApprovalAnswerResultSchema, type ApprovalAnswerResult, ApprovalPreferencePayloadSchema, type ApprovalPreferencePayload } from './agent.ts';
|
|
2
|
-
export { ChatIdSchema, type ChatId, ChatContextBreakdownSchema, type ChatContextBreakdown, ChatUsageSchema, type ChatUsage, CHAT_ATTACHMENTS_MAX_BYTES, CHAT_ATTACHMENT_MAX_BYTES, CHAT_ATTACHMENTS_MAX_COUNT, attachmentBytes, attachmentImageMime, ChatAttachmentUploadSchema, type ChatAttachmentUpload, ChatAttachmentUploadsSchema, ChatAttachmentSchema, type ChatAttachment, ChatUiChoiceOriginSchema, type ChatUiChoiceOrigin, ChatUiAnswerSchema, type ChatUiAnswer, ChatQuoteSourceSchema, type ChatQuoteSource, ChatQueuedMessageSchema, type ChatQueuedMessage, ChatBackgroundTaskSchema, type ChatBackgroundTask, scheduledWakeupId, scheduledWakeupAt, ChatTurnLimitSchema, type ChatTurnLimit, ChatGoalStatusSchema, type ChatGoalStatus, ChatGoalSchema, type ChatGoal, ChatQuestionSchema, type ChatQuestion, ChatRequestKindSchema, type ChatRequestKind, CHAT_REQUEST_LIMITS, ChatRequestApprovalSchema, type ChatRequestApproval, ChatRequestSummarySchema, type ChatRequestSummary, ChatInfoSchema, type ChatInfo, ChatSkillSourceSchema, type ChatSkillSource, ChatSkillSchema, type ChatSkill, SkillsListPayloadSchema, type SkillsListPayload, SkillsListResultSchema, type SkillsListResult, ChatUserItemSchema, ChatUiQueryReadingSchema, type ChatUiQueryReading, ChatUiLinkReadingSchema, type ChatUiLinkReading, ChatUiPlaceReadingSchema, type ChatUiPlaceReading, ChatUiQueryStateSchema, type ChatUiQueryState, ChatAssistantItemSchema, ChatThinkingItemSchema, ChatToolStateSchema, type ChatToolState, ChatToolProgressSchema, type ChatToolProgress, ChatFileChangeSchema, type ChatFileChange, ChatSubagentStatusSchema, type ChatSubagentStatus, ChatWorkflowPhaseSchema, type ChatWorkflowPhase, ChatWorkflowAgentSchema, type ChatWorkflowAgent, ChatWorkflowSchema, type ChatWorkflow, workflowAgentRef, workflowAgentIdOf, CHAT_PAYLOAD_INLINE_BYTES, ChatPayloadRefSchema, type ChatPayloadRef, ChatToolItemSchema, ChatSubagentUsageSchema, type ChatSubagentUsage, HOST_TASK_ORIGIN, taskRowId, taskIdOfRow, ChatSubagentItemSchema, ChatApprovalDecisionSchema, type ChatApprovalDecision, ChatApprovalItemSchema, ChatQuestionItemSchema, ChatCheckpointFileSchema, type ChatCheckpointFile, ChatCheckpointDiffSchema, type ChatCheckpointDiff, ChatTurnItemSchema, notResumedNote, abortedByMachine, ENDED_NOTE_PREFIX, abortedByEnd, activeSubagents, activeWorkflows, workflowEndedAt, CHAT_OUTLINE_TEXT_CHARS, outlineItems, WAITING_NOTE_PREFIX, ChatNoteItemSchema, ChatNoteMessageSchema, ChatCompactionItemSchema, ChatItemSchema, type ChatItem, type ChatUserItem, type ChatAssistantItem, type ChatThinkingItem, type ChatToolItem, type ChatSubagentItem, type ChatApprovalItem, type ChatQuestionItem, type ChatTurnItem, type ChatNoteItem, type ChatNoteMessage, type ChatCompactionItem, type ChatUnknownItem, ChatEventSchema, type ChatEvent, type ChatUnknownEvent, ChatEventEnvelopeSchema, type ChatEventEnvelope, ChatCreatePayloadSchema, type ChatCreatePayload, ChatConfigurePayloadSchema, type ChatConfigurePayload, ChatPreferencesPayloadSchema, type ChatPreferencesPayload, ChatTargetPayloadSchema, type ChatTargetPayload, ChatClearPayloadSchema, type ChatClearPayload, ChatCancelPayloadSchema, type ChatCancelPayload, ChatAttachPayloadSchema, ChatHistoryPayloadSchema, ChatHistoryPageSchema, ChatHistoryResultSchema, type ChatHistoryResult, ChatSubagentPayloadSchema, type ChatSubagentPayload, ChatStopSubagentPayloadSchema, type ChatStopSubagentPayload, ChatGoalActionSchema, type ChatGoalAction, ChatGoalPayloadSchema, type ChatGoalPayload, ChatStopTaskPayloadSchema, type ChatStopTaskPayload, ChatSubagentPageSchema, ChatSubagentSourceSchema, type ChatSubagentSource, ChatSubagentResultSchema, type ChatSubagentResult, ChatStatusEventSchema, type ChatStatusEvent, ChatSubagentChangedEventSchema, type ChatSubagentChangedEvent, CHAT_BOOKMARK_LIMITS, ChatBookmarkSchema, type ChatBookmark, ChatBookmarksSchema, ChatAddBookmarkPayloadSchema, type ChatAddBookmarkPayload, ChatRenameBookmarkPayloadSchema, type ChatRenameBookmarkPayload, ChatRemoveBookmarkPayloadSchema, type ChatRemoveBookmarkPayload, ChatBookmarksResultSchema, type ChatBookmarksResult, ChatBookmarksEventSchema, type ChatBookmarksEvent, ChatRemoveVisualPayloadSchema, type ChatRemoveVisualPayload, ChatVisualsResultSchema, type ChatVisualsResult, ChatVisualsEventSchema, type ChatVisualsEvent, ChatSuggestionEventSchema, type ChatSuggestionEvent, ChatAttachResultSchema, type ChatAttachResult, ChatDeliverySchema, type ChatDelivery, ChatSendPayloadSchema, type ChatSendPayload, ChatSendResultSchema, type ChatSendResult, ChatUiChoicePayloadSchema, type ChatUiChoicePayload, ChatUiQueryPayloadSchema, type ChatUiQueryPayload, ChatUiLinkPayloadSchema, type ChatUiLinkPayload, ChatQueuePayloadSchema, type ChatQueuePayload, ChatUnqueueResultSchema, type ChatUnqueueResult, ChatApprovePayloadSchema, type ChatApprovePayload, ChatDismissPayloadSchema, type ChatDismissPayload, ChatAnswerPayloadSchema, type ChatAnswerPayload, ChatTurnDiffPayloadSchema, type ChatTurnDiffPayload, ChatTurnDiffResultSchema, type ChatTurnDiffResult, ChatToolOutputPayloadSchema, type ChatToolOutputPayload, ChatToolOutputResultSchema, type ChatToolOutputResult, CHAT_FORK_TITLE_MAX, ChatForkPayloadSchema, type ChatForkPayload, ChatForkResultSchema, type ChatForkResult, ChatContinueOnPayloadSchema, type ChatContinueOnPayload, ChatContinueOnResultSchema, type ChatContinueOnResult, ChatSummarizePayloadSchema, type ChatSummarizePayload, ChatSummarizeResultSchema, type ChatSummarizeResult, ChatForkInfoPayloadSchema, type ChatForkInfoPayload, ChatForkInfoResultSchema, type ChatForkInfoResult, ChatListPayloadSchema, type ChatListPayload, ChatListResultSchema, type ChatListResult, GeneratedImageInputSchema, type GeneratedImageInput, generatedImageAttachment, holdsConversation, chatActivity, type ChatActivity } from './chat.ts';
|
|
2
|
+
export { ChatIdSchema, type ChatId, ChatContextBreakdownSchema, type ChatContextBreakdown, ChatUsageSchema, type ChatUsage, CHAT_ATTACHMENTS_MAX_BYTES, CHAT_ATTACHMENT_MAX_BYTES, CHAT_ATTACHMENTS_MAX_COUNT, attachmentBytes, attachmentImageMime, ChatAttachmentUploadSchema, type ChatAttachmentUpload, ChatAttachmentUploadsSchema, ChatAttachmentSchema, type ChatAttachment, ChatUiChoiceOriginSchema, type ChatUiChoiceOrigin, ChatUiAnswerSchema, type ChatUiAnswer, ChatQuoteSourceSchema, type ChatQuoteSource, ChatQueuedMessageSchema, type ChatQueuedMessage, ChatBackgroundTaskSchema, type ChatBackgroundTask, scheduledWakeupId, scheduledWakeupAt, ChatTurnLimitSchema, type ChatTurnLimit, ChatGoalStatusSchema, type ChatGoalStatus, ChatGoalSchema, type ChatGoal, ChatQuestionSchema, type ChatQuestion, ChatRequestKindSchema, type ChatRequestKind, CHAT_REQUEST_LIMITS, ChatRequestApprovalSchema, type ChatRequestApproval, ChatRequestSummarySchema, type ChatRequestSummary, ChatInfoSchema, type ChatInfo, ChatSkillSourceSchema, type ChatSkillSource, ChatSkillSchema, type ChatSkill, SkillsListPayloadSchema, type SkillsListPayload, SkillsListResultSchema, type SkillsListResult, ChatUserItemSchema, ChatUiQueryReadingSchema, type ChatUiQueryReading, ChatUiLinkReadingSchema, type ChatUiLinkReading, ChatUiPlaceReadingSchema, type ChatUiPlaceReading, ChatUiQueryStateSchema, type ChatUiQueryState, ChatAssistantItemSchema, ChatThinkingItemSchema, ChatToolStateSchema, type ChatToolState, ChatToolProgressSchema, type ChatToolProgress, ChatFileChangeSchema, type ChatFileChange, ChatSubagentStatusSchema, type ChatSubagentStatus, ChatWorkflowPhaseSchema, type ChatWorkflowPhase, ChatWorkflowAgentSchema, type ChatWorkflowAgent, ChatWorkflowSchema, type ChatWorkflow, workflowAgentRef, workflowAgentIdOf, CHAT_PAYLOAD_INLINE_BYTES, ChatPayloadRefSchema, type ChatPayloadRef, ChatToolItemSchema, ChatSubagentUsageSchema, type ChatSubagentUsage, HOST_TASK_ORIGIN, taskRowId, taskIdOfRow, ChatSubagentItemSchema, ChatApprovalDecisionSchema, type ChatApprovalDecision, ChatApprovalItemSchema, ChatQuestionItemSchema, ChatCheckpointFileSchema, type ChatCheckpointFile, ChatCheckpointDiffSchema, type ChatCheckpointDiff, ChatTurnItemSchema, notResumedNote, abortedByMachine, ENDED_NOTE_PREFIX, abortedByEnd, activeSubagents, activeWorkflows, workflowEndedAt, CHAT_OUTLINE_TEXT_CHARS, outlineItems, WAITING_NOTE_PREFIX, ChatNoteItemSchema, ChatNoteMessageSchema, ChatCompactionItemSchema, ChatSecretItemSchema, ChatItemSchema, type ChatItem, type ChatUserItem, type ChatAssistantItem, type ChatThinkingItem, type ChatToolItem, type ChatSubagentItem, type ChatApprovalItem, type ChatQuestionItem, type ChatTurnItem, type ChatNoteItem, type ChatNoteMessage, type ChatCompactionItem, type ChatSecretItem, type ChatUnknownItem, ChatEventSchema, type ChatEvent, type ChatUnknownEvent, ChatEventEnvelopeSchema, type ChatEventEnvelope, ChatCreatePayloadSchema, type ChatCreatePayload, ChatConfigurePayloadSchema, type ChatConfigurePayload, ChatPreferencesPayloadSchema, type ChatPreferencesPayload, ChatTargetPayloadSchema, type ChatTargetPayload, ChatClearPayloadSchema, type ChatClearPayload, ChatCancelPayloadSchema, type ChatCancelPayload, ChatAttachPayloadSchema, ChatHistoryPayloadSchema, ChatHistoryPageSchema, ChatHistoryResultSchema, type ChatHistoryResult, ChatSubagentPayloadSchema, type ChatSubagentPayload, ChatStopSubagentPayloadSchema, type ChatStopSubagentPayload, ChatGoalActionSchema, type ChatGoalAction, ChatGoalPayloadSchema, type ChatGoalPayload, ChatStopTaskPayloadSchema, type ChatStopTaskPayload, ChatSubagentPageSchema, ChatSubagentSourceSchema, type ChatSubagentSource, ChatSubagentResultSchema, type ChatSubagentResult, ChatStatusEventSchema, type ChatStatusEvent, ChatSubagentChangedEventSchema, type ChatSubagentChangedEvent, CHAT_BOOKMARK_LIMITS, ChatBookmarkSchema, type ChatBookmark, ChatBookmarksSchema, ChatAddBookmarkPayloadSchema, type ChatAddBookmarkPayload, ChatRenameBookmarkPayloadSchema, type ChatRenameBookmarkPayload, ChatRemoveBookmarkPayloadSchema, type ChatRemoveBookmarkPayload, ChatBookmarksResultSchema, type ChatBookmarksResult, ChatBookmarksEventSchema, type ChatBookmarksEvent, ChatRemoveVisualPayloadSchema, type ChatRemoveVisualPayload, ChatVisualsResultSchema, type ChatVisualsResult, ChatVisualsEventSchema, type ChatVisualsEvent, ChatSuggestionEventSchema, type ChatSuggestionEvent, ChatAttachResultSchema, type ChatAttachResult, ChatDeliverySchema, type ChatDelivery, ChatSendPayloadSchema, type ChatSendPayload, ChatSendResultSchema, type ChatSendResult, ChatUiChoicePayloadSchema, type ChatUiChoicePayload, ChatUiQueryPayloadSchema, type ChatUiQueryPayload, ChatUiLinkPayloadSchema, type ChatUiLinkPayload, ChatQueuePayloadSchema, type ChatQueuePayload, ChatUnqueueResultSchema, type ChatUnqueueResult, ChatApprovePayloadSchema, type ChatApprovePayload, ChatDismissPayloadSchema, type ChatDismissPayload, ChatAnswerPayloadSchema, type ChatAnswerPayload, ChatTurnDiffPayloadSchema, type ChatTurnDiffPayload, ChatTurnDiffResultSchema, type ChatTurnDiffResult, ChatToolOutputPayloadSchema, type ChatToolOutputPayload, ChatToolOutputResultSchema, type ChatToolOutputResult, CHAT_FORK_TITLE_MAX, ChatForkPayloadSchema, type ChatForkPayload, ChatForkResultSchema, type ChatForkResult, ChatContinueOnPayloadSchema, type ChatContinueOnPayload, ChatContinueOnResultSchema, type ChatContinueOnResult, ChatSummarizePayloadSchema, type ChatSummarizePayload, ChatSummarizeResultSchema, type ChatSummarizeResult, ChatForkInfoPayloadSchema, type ChatForkInfoPayload, ChatForkInfoResultSchema, type ChatForkInfoResult, ChatListPayloadSchema, type ChatListPayload, ChatListResultSchema, type ChatListResult, GeneratedImageInputSchema, type GeneratedImageInput, generatedImageAttachment, holdsConversation, chatActivity, type ChatActivity } from './chat.ts';
|
|
3
3
|
export { ErrorSchema, type WireError, RequestSchema, type Request, ReplyOkSchema, type ReplyOk, ReplyErrorSchema, type ReplyError, ReplySchema, type Reply, EventSchema, type Event, ServerFrameSchema, type ServerFrame, type ParseResult, parseRequest, parseServerFrame } from './envelope.ts';
|
|
4
4
|
export { SessionIdSchema, type SessionId } from './ids.ts';
|
|
5
5
|
export { ModelOptionChoiceSchema, type ModelOptionChoice, ModelOptionDescriptorSchema, type ModelOptionDescriptor, ModelInfoSchema, type ModelInfo, ModelSelectionSchema, type ModelSelection, ModelCatalogProfileSchema, type ModelCatalogProfile, ModelCatalogEntrySchema, type ModelCatalogEntry, ModelCatalogDataSchema, type ModelCatalogData, RuntimeModeSchema, type RuntimeMode, ProviderCapabilitiesSchema, type ProviderCapabilities, ProviderPlatformSchema, type ProviderPlatform, ProviderSignInSchema, type ProviderSignIn, ProviderInstallSchema, type ProviderInstall, ProviderInfoSchema, type ProviderInfo, FRONTIER_PROVIDER_KINDS, API_PROVIDER_KINDS, type ProviderPickerGroup, type ProviderPickerGroups, providerGroupOf, pickerGroupsOf, inPickerOrder, separatesGroups, ProviderListResultSchema, type ProviderListResult, resumeCommandFor } from './model.ts';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Public API: exports.test.ts snapshots this list, so a name added or dropped here is an API change.
|
|
2
2
|
export { AGENT_KIND_MAX_LENGTH, AgentKindSchema, AgentStatusSchema, SUGGESTED_TITLE_LIMIT, SuggestedTitleSchema, AgentRequestSchema, AgentInfoSchema, SessionStatusEventSchema, AgentResumePayloadSchema, ApprovalChoiceSchema, ApprovalRequestSchema, SessionApprovalsEventSchema, ApprovalAnswerPayloadSchema, ApprovalAnswerResultSchema, ApprovalPreferencePayloadSchema } from './agent.js';
|
|
3
|
-
export { ChatIdSchema, ChatContextBreakdownSchema, ChatUsageSchema, CHAT_ATTACHMENTS_MAX_BYTES, CHAT_ATTACHMENT_MAX_BYTES, CHAT_ATTACHMENTS_MAX_COUNT, attachmentBytes, attachmentImageMime, ChatAttachmentUploadSchema, ChatAttachmentUploadsSchema, ChatAttachmentSchema, ChatUiChoiceOriginSchema, ChatUiAnswerSchema, ChatQuoteSourceSchema, ChatQueuedMessageSchema, ChatBackgroundTaskSchema, scheduledWakeupId, scheduledWakeupAt, ChatTurnLimitSchema, ChatGoalStatusSchema, ChatGoalSchema, ChatQuestionSchema, ChatRequestKindSchema, CHAT_REQUEST_LIMITS, ChatRequestApprovalSchema, ChatRequestSummarySchema, ChatInfoSchema, ChatSkillSourceSchema, ChatSkillSchema, SkillsListPayloadSchema, SkillsListResultSchema, ChatUserItemSchema, ChatUiQueryReadingSchema, ChatUiLinkReadingSchema, ChatUiPlaceReadingSchema, ChatUiQueryStateSchema, ChatAssistantItemSchema, ChatThinkingItemSchema, ChatToolStateSchema, ChatToolProgressSchema, ChatFileChangeSchema, ChatSubagentStatusSchema, ChatWorkflowPhaseSchema, ChatWorkflowAgentSchema, ChatWorkflowSchema, workflowAgentRef, workflowAgentIdOf, CHAT_PAYLOAD_INLINE_BYTES, ChatPayloadRefSchema, ChatToolItemSchema, ChatSubagentUsageSchema, HOST_TASK_ORIGIN, taskRowId, taskIdOfRow, ChatSubagentItemSchema, ChatApprovalDecisionSchema, ChatApprovalItemSchema, ChatQuestionItemSchema, ChatCheckpointFileSchema, ChatCheckpointDiffSchema, ChatTurnItemSchema, notResumedNote, abortedByMachine, ENDED_NOTE_PREFIX, abortedByEnd, activeSubagents, activeWorkflows, workflowEndedAt, CHAT_OUTLINE_TEXT_CHARS, outlineItems, WAITING_NOTE_PREFIX, ChatNoteItemSchema, ChatNoteMessageSchema, ChatCompactionItemSchema, ChatItemSchema, ChatEventSchema, ChatEventEnvelopeSchema, ChatCreatePayloadSchema, ChatConfigurePayloadSchema, ChatPreferencesPayloadSchema, ChatTargetPayloadSchema, ChatClearPayloadSchema, ChatCancelPayloadSchema, ChatAttachPayloadSchema, ChatHistoryPayloadSchema, ChatHistoryPageSchema, ChatHistoryResultSchema, ChatSubagentPayloadSchema, ChatStopSubagentPayloadSchema, ChatGoalActionSchema, ChatGoalPayloadSchema, ChatStopTaskPayloadSchema, ChatSubagentPageSchema, ChatSubagentSourceSchema, ChatSubagentResultSchema, ChatStatusEventSchema, ChatSubagentChangedEventSchema, CHAT_BOOKMARK_LIMITS, ChatBookmarkSchema, ChatBookmarksSchema, ChatAddBookmarkPayloadSchema, ChatRenameBookmarkPayloadSchema, ChatRemoveBookmarkPayloadSchema, ChatBookmarksResultSchema, ChatBookmarksEventSchema, ChatRemoveVisualPayloadSchema, ChatVisualsResultSchema, ChatVisualsEventSchema, ChatSuggestionEventSchema, ChatAttachResultSchema, ChatDeliverySchema, ChatSendPayloadSchema, ChatSendResultSchema, ChatUiChoicePayloadSchema, ChatUiQueryPayloadSchema, ChatUiLinkPayloadSchema, ChatQueuePayloadSchema, ChatUnqueueResultSchema, ChatApprovePayloadSchema, ChatDismissPayloadSchema, ChatAnswerPayloadSchema, ChatTurnDiffPayloadSchema, ChatTurnDiffResultSchema, ChatToolOutputPayloadSchema, ChatToolOutputResultSchema, CHAT_FORK_TITLE_MAX, ChatForkPayloadSchema, ChatForkResultSchema, ChatContinueOnPayloadSchema, ChatContinueOnResultSchema, ChatSummarizePayloadSchema, ChatSummarizeResultSchema, ChatForkInfoPayloadSchema, ChatForkInfoResultSchema, ChatListPayloadSchema, ChatListResultSchema, GeneratedImageInputSchema, generatedImageAttachment, holdsConversation, chatActivity } from './chat.js';
|
|
3
|
+
export { ChatIdSchema, ChatContextBreakdownSchema, ChatUsageSchema, CHAT_ATTACHMENTS_MAX_BYTES, CHAT_ATTACHMENT_MAX_BYTES, CHAT_ATTACHMENTS_MAX_COUNT, attachmentBytes, attachmentImageMime, ChatAttachmentUploadSchema, ChatAttachmentUploadsSchema, ChatAttachmentSchema, ChatUiChoiceOriginSchema, ChatUiAnswerSchema, ChatQuoteSourceSchema, ChatQueuedMessageSchema, ChatBackgroundTaskSchema, scheduledWakeupId, scheduledWakeupAt, ChatTurnLimitSchema, ChatGoalStatusSchema, ChatGoalSchema, ChatQuestionSchema, ChatRequestKindSchema, CHAT_REQUEST_LIMITS, ChatRequestApprovalSchema, ChatRequestSummarySchema, ChatInfoSchema, ChatSkillSourceSchema, ChatSkillSchema, SkillsListPayloadSchema, SkillsListResultSchema, ChatUserItemSchema, ChatUiQueryReadingSchema, ChatUiLinkReadingSchema, ChatUiPlaceReadingSchema, ChatUiQueryStateSchema, ChatAssistantItemSchema, ChatThinkingItemSchema, ChatToolStateSchema, ChatToolProgressSchema, ChatFileChangeSchema, ChatSubagentStatusSchema, ChatWorkflowPhaseSchema, ChatWorkflowAgentSchema, ChatWorkflowSchema, workflowAgentRef, workflowAgentIdOf, CHAT_PAYLOAD_INLINE_BYTES, ChatPayloadRefSchema, ChatToolItemSchema, ChatSubagentUsageSchema, HOST_TASK_ORIGIN, taskRowId, taskIdOfRow, ChatSubagentItemSchema, ChatApprovalDecisionSchema, ChatApprovalItemSchema, ChatQuestionItemSchema, ChatCheckpointFileSchema, ChatCheckpointDiffSchema, ChatTurnItemSchema, notResumedNote, abortedByMachine, ENDED_NOTE_PREFIX, abortedByEnd, activeSubagents, activeWorkflows, workflowEndedAt, CHAT_OUTLINE_TEXT_CHARS, outlineItems, WAITING_NOTE_PREFIX, ChatNoteItemSchema, ChatNoteMessageSchema, ChatCompactionItemSchema, ChatSecretItemSchema, ChatItemSchema, ChatEventSchema, ChatEventEnvelopeSchema, ChatCreatePayloadSchema, ChatConfigurePayloadSchema, ChatPreferencesPayloadSchema, ChatTargetPayloadSchema, ChatClearPayloadSchema, ChatCancelPayloadSchema, ChatAttachPayloadSchema, ChatHistoryPayloadSchema, ChatHistoryPageSchema, ChatHistoryResultSchema, ChatSubagentPayloadSchema, ChatStopSubagentPayloadSchema, ChatGoalActionSchema, ChatGoalPayloadSchema, ChatStopTaskPayloadSchema, ChatSubagentPageSchema, ChatSubagentSourceSchema, ChatSubagentResultSchema, ChatStatusEventSchema, ChatSubagentChangedEventSchema, CHAT_BOOKMARK_LIMITS, ChatBookmarkSchema, ChatBookmarksSchema, ChatAddBookmarkPayloadSchema, ChatRenameBookmarkPayloadSchema, ChatRemoveBookmarkPayloadSchema, ChatBookmarksResultSchema, ChatBookmarksEventSchema, ChatRemoveVisualPayloadSchema, ChatVisualsResultSchema, ChatVisualsEventSchema, ChatSuggestionEventSchema, ChatAttachResultSchema, ChatDeliverySchema, ChatSendPayloadSchema, ChatSendResultSchema, ChatUiChoicePayloadSchema, ChatUiQueryPayloadSchema, ChatUiLinkPayloadSchema, ChatQueuePayloadSchema, ChatUnqueueResultSchema, ChatApprovePayloadSchema, ChatDismissPayloadSchema, ChatAnswerPayloadSchema, ChatTurnDiffPayloadSchema, ChatTurnDiffResultSchema, ChatToolOutputPayloadSchema, ChatToolOutputResultSchema, CHAT_FORK_TITLE_MAX, ChatForkPayloadSchema, ChatForkResultSchema, ChatContinueOnPayloadSchema, ChatContinueOnResultSchema, ChatSummarizePayloadSchema, ChatSummarizeResultSchema, ChatForkInfoPayloadSchema, ChatForkInfoResultSchema, ChatListPayloadSchema, ChatListResultSchema, GeneratedImageInputSchema, generatedImageAttachment, holdsConversation, chatActivity } from './chat.js';
|
|
4
4
|
export { ErrorSchema, RequestSchema, ReplyOkSchema, ReplyErrorSchema, ReplySchema, EventSchema, ServerFrameSchema, parseRequest, parseServerFrame } from './envelope.js';
|
|
5
5
|
export { SessionIdSchema } from './ids.js';
|
|
6
6
|
export { ModelOptionChoiceSchema, ModelOptionDescriptorSchema, ModelInfoSchema, ModelSelectionSchema, ModelCatalogProfileSchema, ModelCatalogEntrySchema, ModelCatalogDataSchema, RuntimeModeSchema, ProviderCapabilitiesSchema, ProviderPlatformSchema, ProviderSignInSchema, ProviderInstallSchema, ProviderInfoSchema, FRONTIER_PROVIDER_KINDS, API_PROVIDER_KINDS, providerGroupOf, pickerGroupsOf, inPickerOrder, separatesGroups, ProviderListResultSchema, resumeCommandFor } from './model.js';
|
package/dist/protocol.d.ts
CHANGED
|
@@ -599,6 +599,19 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
599
599
|
kind: z.ZodLiteral<"compaction">;
|
|
600
600
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
601
601
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
602
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
603
|
+
id: z.ZodString;
|
|
604
|
+
createdAt: z.ZodNumber;
|
|
605
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
606
|
+
kind: z.ZodLiteral<"secret">;
|
|
607
|
+
label: z.ZodString;
|
|
608
|
+
outcome: z.ZodEnum<{
|
|
609
|
+
cancelled: "cancelled";
|
|
610
|
+
declined: "declined";
|
|
611
|
+
saved: "saved";
|
|
612
|
+
"timed-out": "timed-out";
|
|
613
|
+
}>;
|
|
614
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
602
615
|
}, z.core.$strip>], "kind">>;
|
|
603
616
|
history: z.ZodObject<{
|
|
604
617
|
start: z.ZodNumber;
|
|
@@ -1201,6 +1214,19 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1201
1214
|
kind: z.ZodLiteral<"compaction">;
|
|
1202
1215
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
1203
1216
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
1217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1218
|
+
id: z.ZodString;
|
|
1219
|
+
createdAt: z.ZodNumber;
|
|
1220
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1221
|
+
kind: z.ZodLiteral<"secret">;
|
|
1222
|
+
label: z.ZodString;
|
|
1223
|
+
outcome: z.ZodEnum<{
|
|
1224
|
+
cancelled: "cancelled";
|
|
1225
|
+
declined: "declined";
|
|
1226
|
+
saved: "saved";
|
|
1227
|
+
"timed-out": "timed-out";
|
|
1228
|
+
}>;
|
|
1229
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1204
1230
|
}, z.core.$strip>], "kind">>;
|
|
1205
1231
|
history: z.ZodOptional<z.ZodObject<{
|
|
1206
1232
|
start: z.ZodNumber;
|
|
@@ -1611,6 +1637,19 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1611
1637
|
kind: z.ZodLiteral<"compaction">;
|
|
1612
1638
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
1613
1639
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
1640
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1641
|
+
id: z.ZodString;
|
|
1642
|
+
createdAt: z.ZodNumber;
|
|
1643
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
1644
|
+
kind: z.ZodLiteral<"secret">;
|
|
1645
|
+
label: z.ZodString;
|
|
1646
|
+
outcome: z.ZodEnum<{
|
|
1647
|
+
cancelled: "cancelled";
|
|
1648
|
+
declined: "declined";
|
|
1649
|
+
saved: "saved";
|
|
1650
|
+
"timed-out": "timed-out";
|
|
1651
|
+
}>;
|
|
1652
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1614
1653
|
}, z.core.$strip>], "kind">>>;
|
|
1615
1654
|
seq: z.ZodOptional<z.ZodNumber>;
|
|
1616
1655
|
events: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2020,6 +2059,19 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2020
2059
|
kind: z.ZodLiteral<"compaction">;
|
|
2021
2060
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
2022
2061
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
2062
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2063
|
+
id: z.ZodString;
|
|
2064
|
+
createdAt: z.ZodNumber;
|
|
2065
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
2066
|
+
kind: z.ZodLiteral<"secret">;
|
|
2067
|
+
label: z.ZodString;
|
|
2068
|
+
outcome: z.ZodEnum<{
|
|
2069
|
+
cancelled: "cancelled";
|
|
2070
|
+
declined: "declined";
|
|
2071
|
+
saved: "saved";
|
|
2072
|
+
"timed-out": "timed-out";
|
|
2073
|
+
}>;
|
|
2074
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2023
2075
|
}, z.core.$strip>], "kind">;
|
|
2024
2076
|
historyIndex: z.ZodOptional<z.ZodNumber>;
|
|
2025
2077
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2867,6 +2919,19 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2867
2919
|
kind: z.ZodLiteral<"compaction">;
|
|
2868
2920
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
2869
2921
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
2922
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2923
|
+
id: z.ZodString;
|
|
2924
|
+
createdAt: z.ZodNumber;
|
|
2925
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
2926
|
+
kind: z.ZodLiteral<"secret">;
|
|
2927
|
+
label: z.ZodString;
|
|
2928
|
+
outcome: z.ZodEnum<{
|
|
2929
|
+
cancelled: "cancelled";
|
|
2930
|
+
declined: "declined";
|
|
2931
|
+
saved: "saved";
|
|
2932
|
+
"timed-out": "timed-out";
|
|
2933
|
+
}>;
|
|
2934
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2870
2935
|
}, z.core.$strip>], "kind">>;
|
|
2871
2936
|
}, z.core.$strip>], "type">>>;
|
|
2872
2937
|
bookmarks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -3396,6 +3461,19 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
3396
3461
|
kind: z.ZodLiteral<"compaction">;
|
|
3397
3462
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
3398
3463
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
3464
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3465
|
+
id: z.ZodString;
|
|
3466
|
+
createdAt: z.ZodNumber;
|
|
3467
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
3468
|
+
kind: z.ZodLiteral<"secret">;
|
|
3469
|
+
label: z.ZodString;
|
|
3470
|
+
outcome: z.ZodEnum<{
|
|
3471
|
+
cancelled: "cancelled";
|
|
3472
|
+
declined: "declined";
|
|
3473
|
+
saved: "saved";
|
|
3474
|
+
"timed-out": "timed-out";
|
|
3475
|
+
}>;
|
|
3476
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3399
3477
|
}, z.core.$strip>], "kind">>>;
|
|
3400
3478
|
suggestion: z.ZodOptional<z.ZodString>;
|
|
3401
3479
|
}, z.core.$strip>;
|
|
@@ -4694,6 +4772,19 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
4694
4772
|
kind: z.ZodLiteral<"compaction">;
|
|
4695
4773
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
4696
4774
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
4775
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4776
|
+
id: z.ZodString;
|
|
4777
|
+
createdAt: z.ZodNumber;
|
|
4778
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
4779
|
+
kind: z.ZodLiteral<"secret">;
|
|
4780
|
+
label: z.ZodString;
|
|
4781
|
+
outcome: z.ZodEnum<{
|
|
4782
|
+
cancelled: "cancelled";
|
|
4783
|
+
declined: "declined";
|
|
4784
|
+
saved: "saved";
|
|
4785
|
+
"timed-out": "timed-out";
|
|
4786
|
+
}>;
|
|
4787
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4697
4788
|
}, z.core.$strip>], "kind">>;
|
|
4698
4789
|
history: z.ZodObject<{
|
|
4699
4790
|
start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6136,6 +6227,19 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
6136
6227
|
kind: z.ZodLiteral<"compaction">;
|
|
6137
6228
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
6138
6229
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
6230
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6231
|
+
id: z.ZodString;
|
|
6232
|
+
createdAt: z.ZodNumber;
|
|
6233
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
6234
|
+
kind: z.ZodLiteral<"secret">;
|
|
6235
|
+
label: z.ZodString;
|
|
6236
|
+
outcome: z.ZodEnum<{
|
|
6237
|
+
cancelled: "cancelled";
|
|
6238
|
+
declined: "declined";
|
|
6239
|
+
saved: "saved";
|
|
6240
|
+
"timed-out": "timed-out";
|
|
6241
|
+
}>;
|
|
6242
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6139
6243
|
}, z.core.$strip>], "kind">;
|
|
6140
6244
|
historyIndex: z.ZodOptional<z.ZodNumber>;
|
|
6141
6245
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -6983,6 +7087,19 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
6983
7087
|
kind: z.ZodLiteral<"compaction">;
|
|
6984
7088
|
preTokens: z.ZodNullable<z.ZodNumber>;
|
|
6985
7089
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
7090
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7091
|
+
id: z.ZodString;
|
|
7092
|
+
createdAt: z.ZodNumber;
|
|
7093
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
7094
|
+
kind: z.ZodLiteral<"secret">;
|
|
7095
|
+
label: z.ZodString;
|
|
7096
|
+
outcome: z.ZodEnum<{
|
|
7097
|
+
cancelled: "cancelled";
|
|
7098
|
+
declined: "declined";
|
|
7099
|
+
saved: "saved";
|
|
7100
|
+
"timed-out": "timed-out";
|
|
7101
|
+
}>;
|
|
7102
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6986
7103
|
}, z.core.$strip>], "kind">>;
|
|
6987
7104
|
}, z.core.$strip>], "type">;
|
|
6988
7105
|
seq: z.ZodOptional<z.ZodNumber>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/agent-contracts",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.1",
|
|
4
4
|
"description": "Schemas and port contracts for agent chats, provider accounts, models and usage.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"test": "bun --conditions=source test"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@adecore/intelligent-ui": "0.70.
|
|
90
|
-
"@adecore/utils": "0.70.
|
|
89
|
+
"@adecore/intelligent-ui": "0.70.1",
|
|
90
|
+
"@adecore/utils": "0.70.1",
|
|
91
91
|
"zod": "^4.6.7"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
package/src/chat.ts
CHANGED
|
@@ -825,10 +825,20 @@ export const ChatCompactionItemSchema = z.object({
|
|
|
825
825
|
postTokens: z.number().int().nonnegative().optional()
|
|
826
826
|
});
|
|
827
827
|
|
|
828
|
+
export const ChatSecretItemSchema = z.object({
|
|
829
|
+
...base,
|
|
830
|
+
kind: z.literal('secret'),
|
|
831
|
+
// What the person was asked for; the value they gave never appears in the thread.
|
|
832
|
+
label: z.string(),
|
|
833
|
+
outcome: z.enum(['saved', 'declined', 'timed-out', 'cancelled']),
|
|
834
|
+
// The names of the values when one request asked for several.
|
|
835
|
+
fields: z.array(z.string()).optional()
|
|
836
|
+
});
|
|
837
|
+
|
|
828
838
|
/*
|
|
829
|
-
*
|
|
830
|
-
*
|
|
831
|
-
*
|
|
839
|
+
* An open union: a client that reads tolerantly keeps a member it does not know as an unknown item in its place, so a
|
|
840
|
+
* new member is fine. A new value in an enum of an existing member that no `openValues` stamps turns that whole item
|
|
841
|
+
* unknown to such a client, so add an optional field instead.
|
|
832
842
|
*/
|
|
833
843
|
export const ChatItemSchema = openUnion(
|
|
834
844
|
z.discriminatedUnion('kind', [
|
|
@@ -841,7 +851,8 @@ export const ChatItemSchema = openUnion(
|
|
|
841
851
|
ChatQuestionItemSchema,
|
|
842
852
|
ChatTurnItemSchema,
|
|
843
853
|
ChatNoteItemSchema,
|
|
844
|
-
ChatCompactionItemSchema
|
|
854
|
+
ChatCompactionItemSchema,
|
|
855
|
+
ChatSecretItemSchema
|
|
845
856
|
]),
|
|
846
857
|
'ChatItem',
|
|
847
858
|
{ tag: 'kind', base: ['id', 'createdAt', 'turnId'] }
|
|
@@ -870,6 +881,7 @@ export type ChatTurnItem = z.infer<typeof ChatTurnItemSchema>;
|
|
|
870
881
|
export type ChatNoteItem = z.infer<typeof ChatNoteItemSchema>;
|
|
871
882
|
export type ChatNoteMessage = z.infer<typeof ChatNoteMessageSchema>;
|
|
872
883
|
export type ChatCompactionItem = z.infer<typeof ChatCompactionItemSchema>;
|
|
884
|
+
export type ChatSecretItem = z.infer<typeof ChatSecretItemSchema>;
|
|
873
885
|
|
|
874
886
|
// An item as a host holds it or as a client reads it, where a newer host's item may be unknown or carry a newer word.
|
|
875
887
|
type ThreadItem = { readonly kind: string; readonly createdAt: number };
|
package/src/index.ts
CHANGED
|
@@ -141,6 +141,7 @@ export {
|
|
|
141
141
|
ChatNoteItemSchema,
|
|
142
142
|
ChatNoteMessageSchema,
|
|
143
143
|
ChatCompactionItemSchema,
|
|
144
|
+
ChatSecretItemSchema,
|
|
144
145
|
ChatItemSchema,
|
|
145
146
|
type ChatItem,
|
|
146
147
|
type ChatUserItem,
|
|
@@ -154,6 +155,7 @@ export {
|
|
|
154
155
|
type ChatNoteItem,
|
|
155
156
|
type ChatNoteMessage,
|
|
156
157
|
type ChatCompactionItem,
|
|
158
|
+
type ChatSecretItem,
|
|
157
159
|
type ChatUnknownItem,
|
|
158
160
|
ChatEventSchema,
|
|
159
161
|
type ChatEvent,
|