@get-bb/plugin-sdk 0.5.29 → 0.5.30
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/bundled-types/bb-plugin-sdk-app.d.ts +333 -0
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +82 -0
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +82 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +34 -0
- package/bundled-types/bb-plugin-sdk-testing.d.ts +82 -0
- package/bundled-types/bb-plugin-sdk.d.ts +333 -0
- package/dist/provider-bridge-acp.js +50 -30
- package/dist/provider-bridge-testing.js +18 -11
- package/dist/provider-bridge.js +18 -11
- package/dist/testing/index.js +1 -0
- package/package.json +1 -1
|
@@ -277,6 +277,88 @@ declare const threadResponseSchema: z.ZodObject<{
|
|
|
277
277
|
canSpawnChild: z.ZodBoolean;
|
|
278
278
|
createdAt: z.ZodNumber;
|
|
279
279
|
deletedAt: z.ZodNullable<z.ZodNumber>;
|
|
280
|
+
draft: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
281
|
+
mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
282
|
+
end: z.ZodNumber;
|
|
283
|
+
resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
284
|
+
kind: z.ZodLiteral<"thread">;
|
|
285
|
+
label: z.ZodString;
|
|
286
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
287
|
+
threadId: z.ZodString;
|
|
288
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
289
|
+
kind: z.ZodLiteral<"project">;
|
|
290
|
+
label: z.ZodString;
|
|
291
|
+
projectId: z.ZodString;
|
|
292
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
+
kind: z.ZodLiteral<"section">;
|
|
294
|
+
label: z.ZodString;
|
|
295
|
+
sectionId: z.ZodString;
|
|
296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
297
|
+
entryKind: z.ZodEnum<{
|
|
298
|
+
directory: "directory";
|
|
299
|
+
file: "file";
|
|
300
|
+
}>;
|
|
301
|
+
kind: z.ZodLiteral<"path">;
|
|
302
|
+
label: z.ZodString;
|
|
303
|
+
path: z.ZodString;
|
|
304
|
+
source: z.ZodEnum<{
|
|
305
|
+
"thread-storage": "thread-storage";
|
|
306
|
+
workspace: "workspace";
|
|
307
|
+
}>;
|
|
308
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
309
|
+
argumentHint: z.ZodNullable<z.ZodString>;
|
|
310
|
+
kind: z.ZodLiteral<"command">;
|
|
311
|
+
label: z.ZodString;
|
|
312
|
+
name: z.ZodString;
|
|
313
|
+
origin: z.ZodEnum<{
|
|
314
|
+
builtin: "builtin";
|
|
315
|
+
project: "project";
|
|
316
|
+
user: "user";
|
|
317
|
+
}>;
|
|
318
|
+
source: z.ZodEnum<{
|
|
319
|
+
command: "command";
|
|
320
|
+
skill: "skill";
|
|
321
|
+
}>;
|
|
322
|
+
trigger: z.ZodEnum<{
|
|
323
|
+
"/": "/";
|
|
324
|
+
$: "$";
|
|
325
|
+
}>;
|
|
326
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
328
|
+
itemId: z.ZodString;
|
|
329
|
+
kind: z.ZodLiteral<"plugin">;
|
|
330
|
+
label: z.ZodString;
|
|
331
|
+
pluginId: z.ZodString;
|
|
332
|
+
}, z.core.$strip>], "kind">>;
|
|
333
|
+
start: z.ZodNumber;
|
|
334
|
+
}, z.core.$strip>>>;
|
|
335
|
+
text: z.ZodString;
|
|
336
|
+
type: z.ZodLiteral<"text">;
|
|
337
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
338
|
+
"agent-only": "agent-only";
|
|
339
|
+
}>>;
|
|
340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
+
type: z.ZodLiteral<"image">;
|
|
342
|
+
url: z.ZodString;
|
|
343
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
"agent-only": "agent-only";
|
|
345
|
+
}>>;
|
|
346
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
347
|
+
path: z.ZodString;
|
|
348
|
+
type: z.ZodLiteral<"localImage">;
|
|
349
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
350
|
+
"agent-only": "agent-only";
|
|
351
|
+
}>>;
|
|
352
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
353
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
354
|
+
name: z.ZodOptional<z.ZodString>;
|
|
355
|
+
path: z.ZodString;
|
|
356
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
type: z.ZodLiteral<"localFile">;
|
|
358
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
359
|
+
"agent-only": "agent-only";
|
|
360
|
+
}>>;
|
|
361
|
+
}, z.core.$strip>], "type">>>;
|
|
280
362
|
environmentId: z.ZodNullable<z.ZodString>;
|
|
281
363
|
id: z.ZodString;
|
|
282
364
|
lastReadAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -45,6 +45,7 @@ interface ProviderNativeRootsInputLike {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
declare const appSettingsSchema: z$1.ZodObject<{
|
|
48
|
+
allowFastServiceTier: z$1.ZodBoolean;
|
|
48
49
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
49
50
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
50
51
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
@@ -63,6 +64,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
|
|
|
63
64
|
}, z$1.core.$strict>;
|
|
64
65
|
type AppSettings = z$1.infer<typeof appSettingsSchema>;
|
|
65
66
|
declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
67
|
+
allowFastServiceTier: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
66
68
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
67
69
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
68
70
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
@@ -80,6 +82,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
80
82
|
streamerMode: z$1.ZodBoolean;
|
|
81
83
|
telemetryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
82
84
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
85
|
+
allowFastServiceTier: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
83
86
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
84
87
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
85
88
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
@@ -287,6 +290,7 @@ type AppThemeSelection = z$1.infer<typeof appThemeSelectionSchema>;
|
|
|
287
290
|
declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
288
291
|
changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
|
|
289
292
|
"archived-changed": "archived-changed";
|
|
293
|
+
"draft-changed": "draft-changed";
|
|
290
294
|
"environment-changed": "environment-changed";
|
|
291
295
|
"events-appended": "events-appended";
|
|
292
296
|
"history-rewritten": "history-rewritten";
|
|
@@ -3055,11 +3059,45 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3055
3059
|
}>>;
|
|
3056
3060
|
systemMessageSubject: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3057
3061
|
kind: z$1.ZodLiteral<"thread">;
|
|
3062
|
+
outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3063
|
+
interruption: z$1.ZodOptional<z$1.ZodObject<{
|
|
3064
|
+
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
3065
|
+
reason: z$1.ZodEnum<{
|
|
3066
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
3067
|
+
"host-removed": "host-removed";
|
|
3068
|
+
"manual-stop": "manual-stop";
|
|
3069
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
3070
|
+
}>;
|
|
3071
|
+
}, z$1.core.$strip>>;
|
|
3072
|
+
status: z$1.ZodEnum<{
|
|
3073
|
+
completed: "completed";
|
|
3074
|
+
failed: "failed";
|
|
3075
|
+
interrupted: "interrupted";
|
|
3076
|
+
}>;
|
|
3077
|
+
threadId: z$1.ZodString;
|
|
3078
|
+
}, z$1.core.$strip>>>;
|
|
3058
3079
|
threadId: z$1.ZodString;
|
|
3059
3080
|
threadName: z$1.ZodString;
|
|
3060
3081
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3061
3082
|
count: z$1.ZodNumber;
|
|
3062
3083
|
kind: z$1.ZodLiteral<"thread-batch">;
|
|
3084
|
+
outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3085
|
+
interruption: z$1.ZodOptional<z$1.ZodObject<{
|
|
3086
|
+
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
3087
|
+
reason: z$1.ZodEnum<{
|
|
3088
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
3089
|
+
"host-removed": "host-removed";
|
|
3090
|
+
"manual-stop": "manual-stop";
|
|
3091
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
3092
|
+
}>;
|
|
3093
|
+
}, z$1.core.$strip>>;
|
|
3094
|
+
status: z$1.ZodEnum<{
|
|
3095
|
+
completed: "completed";
|
|
3096
|
+
failed: "failed";
|
|
3097
|
+
interrupted: "interrupted";
|
|
3098
|
+
}>;
|
|
3099
|
+
threadId: z$1.ZodString;
|
|
3100
|
+
}, z$1.core.$strip>>>;
|
|
3063
3101
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3064
3102
|
kind: z$1.ZodLiteral<"tool-call">;
|
|
3065
3103
|
suppress: z$1.ZodBoolean;
|
|
@@ -10192,6 +10230,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10192
10230
|
timelineWindowEventBudget: z$1.ZodNumber;
|
|
10193
10231
|
}, z$1.core.$strip>;
|
|
10194
10232
|
generalSettings: z$1.ZodObject<{
|
|
10233
|
+
allowFastServiceTier: z$1.ZodBoolean;
|
|
10195
10234
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
10196
10235
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
10197
10236
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
@@ -10923,11 +10962,45 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
|
|
|
10923
10962
|
}>;
|
|
10924
10963
|
systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10925
10964
|
kind: z$1.ZodLiteral<"thread">;
|
|
10965
|
+
outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
10966
|
+
interruption: z$1.ZodOptional<z$1.ZodObject<{
|
|
10967
|
+
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
10968
|
+
reason: z$1.ZodEnum<{
|
|
10969
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
10970
|
+
"host-removed": "host-removed";
|
|
10971
|
+
"manual-stop": "manual-stop";
|
|
10972
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
10973
|
+
}>;
|
|
10974
|
+
}, z$1.core.$strip>>;
|
|
10975
|
+
status: z$1.ZodEnum<{
|
|
10976
|
+
completed: "completed";
|
|
10977
|
+
failed: "failed";
|
|
10978
|
+
interrupted: "interrupted";
|
|
10979
|
+
}>;
|
|
10980
|
+
threadId: z$1.ZodString;
|
|
10981
|
+
}, z$1.core.$strip>>>;
|
|
10926
10982
|
threadId: z$1.ZodString;
|
|
10927
10983
|
threadName: z$1.ZodString;
|
|
10928
10984
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10929
10985
|
count: z$1.ZodNumber;
|
|
10930
10986
|
kind: z$1.ZodLiteral<"thread-batch">;
|
|
10987
|
+
outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
10988
|
+
interruption: z$1.ZodOptional<z$1.ZodObject<{
|
|
10989
|
+
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
10990
|
+
reason: z$1.ZodEnum<{
|
|
10991
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
10992
|
+
"host-removed": "host-removed";
|
|
10993
|
+
"manual-stop": "manual-stop";
|
|
10994
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
10995
|
+
}>;
|
|
10996
|
+
}, z$1.core.$strip>>;
|
|
10997
|
+
status: z$1.ZodEnum<{
|
|
10998
|
+
completed: "completed";
|
|
10999
|
+
failed: "failed";
|
|
11000
|
+
interrupted: "interrupted";
|
|
11001
|
+
}>;
|
|
11002
|
+
threadId: z$1.ZodString;
|
|
11003
|
+
}, z$1.core.$strip>>>;
|
|
10931
11004
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10932
11005
|
kind: z$1.ZodLiteral<"tool-call">;
|
|
10933
11006
|
suppress: z$1.ZodBoolean;
|
|
@@ -11961,6 +12034,7 @@ declare const createExecutionInputSourcesSchema: z$1.ZodObject<{
|
|
|
11961
12034
|
}, z$1.core.$strict>;
|
|
11962
12035
|
type CreateExecutionInputSources = z$1.infer<typeof createExecutionInputSourcesSchema>;
|
|
11963
12036
|
declare const createThreadRequestSchema: z$1.ZodObject<{
|
|
12037
|
+
draft: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
11964
12038
|
environment: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11965
12039
|
environmentId: z$1.ZodString;
|
|
11966
12040
|
type: z$1.ZodLiteral<"reuse">;
|
|
@@ -12995,6 +13069,91 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
12995
13069
|
}>>;
|
|
12996
13070
|
}, z$1.core.$strip>;
|
|
12997
13071
|
type CreateQueuedMessageRequest = z$1.infer<typeof createQueuedMessageRequestSchema>;
|
|
13072
|
+
declare const updateThreadDraftRequestSchema: z$1.ZodObject<{
|
|
13073
|
+
input: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13074
|
+
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
13075
|
+
end: z$1.ZodNumber;
|
|
13076
|
+
resource: z$1.ZodPipe<z$1.ZodTransform<unknown, unknown>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13077
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
13078
|
+
label: z$1.ZodString;
|
|
13079
|
+
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
13080
|
+
threadId: z$1.ZodString;
|
|
13081
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13082
|
+
kind: z$1.ZodLiteral<"project">;
|
|
13083
|
+
label: z$1.ZodString;
|
|
13084
|
+
projectId: z$1.ZodString;
|
|
13085
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13086
|
+
kind: z$1.ZodLiteral<"section">;
|
|
13087
|
+
label: z$1.ZodString;
|
|
13088
|
+
sectionId: z$1.ZodString;
|
|
13089
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13090
|
+
entryKind: z$1.ZodEnum<{
|
|
13091
|
+
directory: "directory";
|
|
13092
|
+
file: "file";
|
|
13093
|
+
}>;
|
|
13094
|
+
kind: z$1.ZodLiteral<"path">;
|
|
13095
|
+
label: z$1.ZodString;
|
|
13096
|
+
path: z$1.ZodString;
|
|
13097
|
+
source: z$1.ZodEnum<{
|
|
13098
|
+
"thread-storage": "thread-storage";
|
|
13099
|
+
workspace: "workspace";
|
|
13100
|
+
}>;
|
|
13101
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13102
|
+
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
13103
|
+
kind: z$1.ZodLiteral<"command">;
|
|
13104
|
+
label: z$1.ZodString;
|
|
13105
|
+
name: z$1.ZodString;
|
|
13106
|
+
origin: z$1.ZodEnum<{
|
|
13107
|
+
builtin: "builtin";
|
|
13108
|
+
project: "project";
|
|
13109
|
+
user: "user";
|
|
13110
|
+
}>;
|
|
13111
|
+
source: z$1.ZodEnum<{
|
|
13112
|
+
command: "command";
|
|
13113
|
+
skill: "skill";
|
|
13114
|
+
}>;
|
|
13115
|
+
trigger: z$1.ZodEnum<{
|
|
13116
|
+
"/": "/";
|
|
13117
|
+
$: "$";
|
|
13118
|
+
}>;
|
|
13119
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13120
|
+
icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13121
|
+
itemId: z$1.ZodString;
|
|
13122
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
13123
|
+
label: z$1.ZodString;
|
|
13124
|
+
pluginId: z$1.ZodString;
|
|
13125
|
+
}, z$1.core.$strip>], "kind">>;
|
|
13126
|
+
start: z$1.ZodNumber;
|
|
13127
|
+
}, z$1.core.$strip>>>;
|
|
13128
|
+
text: z$1.ZodString;
|
|
13129
|
+
type: z$1.ZodLiteral<"text">;
|
|
13130
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13131
|
+
"agent-only": "agent-only";
|
|
13132
|
+
}>>;
|
|
13133
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13134
|
+
type: z$1.ZodLiteral<"image">;
|
|
13135
|
+
url: z$1.ZodString;
|
|
13136
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13137
|
+
"agent-only": "agent-only";
|
|
13138
|
+
}>>;
|
|
13139
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13140
|
+
path: z$1.ZodString;
|
|
13141
|
+
type: z$1.ZodLiteral<"localImage">;
|
|
13142
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13143
|
+
"agent-only": "agent-only";
|
|
13144
|
+
}>>;
|
|
13145
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13146
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
13147
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
13148
|
+
path: z$1.ZodString;
|
|
13149
|
+
sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13150
|
+
type: z$1.ZodLiteral<"localFile">;
|
|
13151
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13152
|
+
"agent-only": "agent-only";
|
|
13153
|
+
}>>;
|
|
13154
|
+
}, z$1.core.$strip>], "type">>;
|
|
13155
|
+
}, z$1.core.$strict>;
|
|
13156
|
+
type UpdateThreadDraftRequest = z$1.infer<typeof updateThreadDraftRequestSchema>;
|
|
12998
13157
|
declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
12999
13158
|
expectedUpdatedAt: z$1.ZodNumber;
|
|
13000
13159
|
input: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -13543,6 +13702,88 @@ declare const threadResponseSchema: z$1.ZodObject<{
|
|
|
13543
13702
|
canSpawnChild: z$1.ZodBoolean;
|
|
13544
13703
|
createdAt: z$1.ZodNumber;
|
|
13545
13704
|
deletedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
13705
|
+
draft: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13706
|
+
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
13707
|
+
end: z$1.ZodNumber;
|
|
13708
|
+
resource: z$1.ZodPipe<z$1.ZodTransform<unknown, unknown>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13709
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
13710
|
+
label: z$1.ZodString;
|
|
13711
|
+
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
13712
|
+
threadId: z$1.ZodString;
|
|
13713
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13714
|
+
kind: z$1.ZodLiteral<"project">;
|
|
13715
|
+
label: z$1.ZodString;
|
|
13716
|
+
projectId: z$1.ZodString;
|
|
13717
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13718
|
+
kind: z$1.ZodLiteral<"section">;
|
|
13719
|
+
label: z$1.ZodString;
|
|
13720
|
+
sectionId: z$1.ZodString;
|
|
13721
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13722
|
+
entryKind: z$1.ZodEnum<{
|
|
13723
|
+
directory: "directory";
|
|
13724
|
+
file: "file";
|
|
13725
|
+
}>;
|
|
13726
|
+
kind: z$1.ZodLiteral<"path">;
|
|
13727
|
+
label: z$1.ZodString;
|
|
13728
|
+
path: z$1.ZodString;
|
|
13729
|
+
source: z$1.ZodEnum<{
|
|
13730
|
+
"thread-storage": "thread-storage";
|
|
13731
|
+
workspace: "workspace";
|
|
13732
|
+
}>;
|
|
13733
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13734
|
+
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
13735
|
+
kind: z$1.ZodLiteral<"command">;
|
|
13736
|
+
label: z$1.ZodString;
|
|
13737
|
+
name: z$1.ZodString;
|
|
13738
|
+
origin: z$1.ZodEnum<{
|
|
13739
|
+
builtin: "builtin";
|
|
13740
|
+
project: "project";
|
|
13741
|
+
user: "user";
|
|
13742
|
+
}>;
|
|
13743
|
+
source: z$1.ZodEnum<{
|
|
13744
|
+
command: "command";
|
|
13745
|
+
skill: "skill";
|
|
13746
|
+
}>;
|
|
13747
|
+
trigger: z$1.ZodEnum<{
|
|
13748
|
+
"/": "/";
|
|
13749
|
+
$: "$";
|
|
13750
|
+
}>;
|
|
13751
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13752
|
+
icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13753
|
+
itemId: z$1.ZodString;
|
|
13754
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
13755
|
+
label: z$1.ZodString;
|
|
13756
|
+
pluginId: z$1.ZodString;
|
|
13757
|
+
}, z$1.core.$strip>], "kind">>;
|
|
13758
|
+
start: z$1.ZodNumber;
|
|
13759
|
+
}, z$1.core.$strip>>>;
|
|
13760
|
+
text: z$1.ZodString;
|
|
13761
|
+
type: z$1.ZodLiteral<"text">;
|
|
13762
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13763
|
+
"agent-only": "agent-only";
|
|
13764
|
+
}>>;
|
|
13765
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13766
|
+
type: z$1.ZodLiteral<"image">;
|
|
13767
|
+
url: z$1.ZodString;
|
|
13768
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13769
|
+
"agent-only": "agent-only";
|
|
13770
|
+
}>>;
|
|
13771
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13772
|
+
path: z$1.ZodString;
|
|
13773
|
+
type: z$1.ZodLiteral<"localImage">;
|
|
13774
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13775
|
+
"agent-only": "agent-only";
|
|
13776
|
+
}>>;
|
|
13777
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13778
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
13779
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
13780
|
+
path: z$1.ZodString;
|
|
13781
|
+
sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13782
|
+
type: z$1.ZodLiteral<"localFile">;
|
|
13783
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13784
|
+
"agent-only": "agent-only";
|
|
13785
|
+
}>>;
|
|
13786
|
+
}, z$1.core.$strip>], "type">>>;
|
|
13546
13787
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
13547
13788
|
id: z$1.ZodString;
|
|
13548
13789
|
lastReadAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -13602,6 +13843,88 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
13602
13843
|
canSpawnChild: z$1.ZodBoolean;
|
|
13603
13844
|
createdAt: z$1.ZodNumber;
|
|
13604
13845
|
deletedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
13846
|
+
draft: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13847
|
+
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
13848
|
+
end: z$1.ZodNumber;
|
|
13849
|
+
resource: z$1.ZodPipe<z$1.ZodTransform<unknown, unknown>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13850
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
13851
|
+
label: z$1.ZodString;
|
|
13852
|
+
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
13853
|
+
threadId: z$1.ZodString;
|
|
13854
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13855
|
+
kind: z$1.ZodLiteral<"project">;
|
|
13856
|
+
label: z$1.ZodString;
|
|
13857
|
+
projectId: z$1.ZodString;
|
|
13858
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13859
|
+
kind: z$1.ZodLiteral<"section">;
|
|
13860
|
+
label: z$1.ZodString;
|
|
13861
|
+
sectionId: z$1.ZodString;
|
|
13862
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13863
|
+
entryKind: z$1.ZodEnum<{
|
|
13864
|
+
directory: "directory";
|
|
13865
|
+
file: "file";
|
|
13866
|
+
}>;
|
|
13867
|
+
kind: z$1.ZodLiteral<"path">;
|
|
13868
|
+
label: z$1.ZodString;
|
|
13869
|
+
path: z$1.ZodString;
|
|
13870
|
+
source: z$1.ZodEnum<{
|
|
13871
|
+
"thread-storage": "thread-storage";
|
|
13872
|
+
workspace: "workspace";
|
|
13873
|
+
}>;
|
|
13874
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13875
|
+
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
13876
|
+
kind: z$1.ZodLiteral<"command">;
|
|
13877
|
+
label: z$1.ZodString;
|
|
13878
|
+
name: z$1.ZodString;
|
|
13879
|
+
origin: z$1.ZodEnum<{
|
|
13880
|
+
builtin: "builtin";
|
|
13881
|
+
project: "project";
|
|
13882
|
+
user: "user";
|
|
13883
|
+
}>;
|
|
13884
|
+
source: z$1.ZodEnum<{
|
|
13885
|
+
command: "command";
|
|
13886
|
+
skill: "skill";
|
|
13887
|
+
}>;
|
|
13888
|
+
trigger: z$1.ZodEnum<{
|
|
13889
|
+
"/": "/";
|
|
13890
|
+
$: "$";
|
|
13891
|
+
}>;
|
|
13892
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13893
|
+
icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13894
|
+
itemId: z$1.ZodString;
|
|
13895
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
13896
|
+
label: z$1.ZodString;
|
|
13897
|
+
pluginId: z$1.ZodString;
|
|
13898
|
+
}, z$1.core.$strip>], "kind">>;
|
|
13899
|
+
start: z$1.ZodNumber;
|
|
13900
|
+
}, z$1.core.$strip>>>;
|
|
13901
|
+
text: z$1.ZodString;
|
|
13902
|
+
type: z$1.ZodLiteral<"text">;
|
|
13903
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13904
|
+
"agent-only": "agent-only";
|
|
13905
|
+
}>>;
|
|
13906
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13907
|
+
type: z$1.ZodLiteral<"image">;
|
|
13908
|
+
url: z$1.ZodString;
|
|
13909
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13910
|
+
"agent-only": "agent-only";
|
|
13911
|
+
}>>;
|
|
13912
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13913
|
+
path: z$1.ZodString;
|
|
13914
|
+
type: z$1.ZodLiteral<"localImage">;
|
|
13915
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13916
|
+
"agent-only": "agent-only";
|
|
13917
|
+
}>>;
|
|
13918
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13919
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
13920
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
13921
|
+
path: z$1.ZodString;
|
|
13922
|
+
sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13923
|
+
type: z$1.ZodLiteral<"localFile">;
|
|
13924
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13925
|
+
"agent-only": "agent-only";
|
|
13926
|
+
}>>;
|
|
13927
|
+
}, z$1.core.$strip>], "type">>>;
|
|
13605
13928
|
environment: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
13606
13929
|
baseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
13607
13930
|
branchName: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -14201,6 +14524,7 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
14201
14524
|
type ThreadQueuedMessageListResponse = z$1.infer<typeof threadQueuedMessageListResponseSchema>;
|
|
14202
14525
|
declare const threadChildSummaryResponseSchema: z$1.ZodObject<{
|
|
14203
14526
|
nonDeletedChildCount: z$1.ZodNumber;
|
|
14527
|
+
unarchivedDescendantCount: z$1.ZodNumber;
|
|
14204
14528
|
}, z$1.core.$strip>;
|
|
14205
14529
|
type ThreadChildSummaryResponse = z$1.infer<typeof threadChildSummaryResponseSchema>;
|
|
14206
14530
|
declare const deleteThreadRequestSchema: z$1.ZodObject<{
|
|
@@ -16543,6 +16867,9 @@ interface ThreadForkArgs extends Omit<ForkThreadRequest, "origin" | "visibility"
|
|
|
16543
16867
|
interface ThreadUpdateArgs extends UpdateThreadRequest {
|
|
16544
16868
|
threadId: string;
|
|
16545
16869
|
}
|
|
16870
|
+
interface ThreadUpdateDraftArgs extends UpdateThreadDraftRequest {
|
|
16871
|
+
threadId: string;
|
|
16872
|
+
}
|
|
16546
16873
|
interface ThreadPluginMetadataArgs {
|
|
16547
16874
|
pluginId: string;
|
|
16548
16875
|
signal?: AbortSignal;
|
|
@@ -16826,6 +17153,12 @@ interface ThreadsArea {
|
|
|
16826
17153
|
unarchive(args: ThreadActionArgs): Promise<ThreadUnarchiveResult>;
|
|
16827
17154
|
unpin(args: ThreadActionArgs): Promise<ThreadMutationResult>;
|
|
16828
17155
|
update(args: ThreadUpdateArgs): Promise<ThreadMutationResult>;
|
|
17156
|
+
/**
|
|
17157
|
+
* Replace the thread's saved, unsent draft message. An empty `input` clears
|
|
17158
|
+
* it. On a `pending` thread the draft also becomes the thread's fallback
|
|
17159
|
+
* title. Sending a message does not clear the draft; clear it explicitly.
|
|
17160
|
+
*/
|
|
17161
|
+
updateDraft(args: ThreadUpdateDraftArgs): Promise<ThreadMutationResult>;
|
|
16829
17162
|
wait(args: ThreadWaitArgs): Promise<ThreadWaitResult>;
|
|
16830
17163
|
}
|
|
16831
17164
|
|
|
@@ -1717,15 +1717,31 @@ var systemMessageKindValues = [
|
|
|
1717
1717
|
"unlabeled"
|
|
1718
1718
|
];
|
|
1719
1719
|
var systemMessageKindSchema = z12.enum(systemMessageKindValues);
|
|
1720
|
+
var systemThreadInterruptedReasonSchema = z12.enum([
|
|
1721
|
+
"manual-stop",
|
|
1722
|
+
"host-daemon-restarted",
|
|
1723
|
+
"host-removed",
|
|
1724
|
+
"provider-turn-idle"
|
|
1725
|
+
]);
|
|
1726
|
+
var childThreadOutcomeSchema = z12.object({
|
|
1727
|
+
threadId: z12.string(),
|
|
1728
|
+
status: z12.enum(["completed", "failed", "interrupted"]),
|
|
1729
|
+
interruption: z12.object({
|
|
1730
|
+
reason: systemThreadInterruptedReasonSchema,
|
|
1731
|
+
cause: z12.literal("host-connection-lost").optional()
|
|
1732
|
+
}).optional()
|
|
1733
|
+
});
|
|
1720
1734
|
var systemMessageSubjectSchema = z12.discriminatedUnion("kind", [
|
|
1721
1735
|
z12.object({
|
|
1722
1736
|
kind: z12.literal("thread"),
|
|
1723
1737
|
threadId: z12.string(),
|
|
1724
|
-
threadName: z12.string()
|
|
1738
|
+
threadName: z12.string(),
|
|
1739
|
+
outcomes: z12.array(childThreadOutcomeSchema).optional()
|
|
1725
1740
|
}),
|
|
1726
1741
|
z12.object({
|
|
1727
1742
|
kind: z12.literal("thread-batch"),
|
|
1728
|
-
count: z12.number()
|
|
1743
|
+
count: z12.number(),
|
|
1744
|
+
outcomes: z12.array(childThreadOutcomeSchema).optional()
|
|
1729
1745
|
}),
|
|
1730
1746
|
z12.object({
|
|
1731
1747
|
kind: z12.literal("tool-call"),
|
|
@@ -1873,15 +1889,6 @@ var systemUserQuestionLifecycleEventDataSchema = z13.object({
|
|
|
1873
1889
|
statusReason: z13.string().nullable().default(null),
|
|
1874
1890
|
payload: userQuestionPendingInteractionPayloadSchema
|
|
1875
1891
|
});
|
|
1876
|
-
var systemThreadInterruptedReasonValues = [
|
|
1877
|
-
"manual-stop",
|
|
1878
|
-
"host-daemon-restarted",
|
|
1879
|
-
"host-removed",
|
|
1880
|
-
"provider-turn-idle"
|
|
1881
|
-
];
|
|
1882
|
-
var systemThreadInterruptedReasonSchema = z13.enum(
|
|
1883
|
-
systemThreadInterruptedReasonValues
|
|
1884
|
-
);
|
|
1885
1892
|
var systemThreadInterruptedEventDataSchema = z13.object({
|
|
1886
1893
|
reason: systemThreadInterruptedReasonSchema,
|
|
1887
1894
|
cause: z13.literal("host-connection-lost").optional()
|
|
@@ -9065,7 +9072,10 @@ async function loadSessionDiscoveredModels(agent, reasoningProbePriorityModelIds
|
|
|
9065
9072
|
modelOption,
|
|
9066
9073
|
reasoningProbePriorityModelIds
|
|
9067
9074
|
});
|
|
9068
|
-
const models =
|
|
9075
|
+
const models = buildModelCatalogFromConfigOptions(
|
|
9076
|
+
modelOption,
|
|
9077
|
+
reasoningByModel
|
|
9078
|
+
);
|
|
9069
9079
|
cachedSessionDiscoveredModels = {
|
|
9070
9080
|
key,
|
|
9071
9081
|
models,
|
|
@@ -9088,7 +9098,7 @@ async function loadSessionDiscoveredModels(agent, reasoningProbePriorityModelIds
|
|
|
9088
9098
|
async function discoverAcpNativeReasoningByModel(args) {
|
|
9089
9099
|
const modelOptions = args.modelOption?.options ?? [];
|
|
9090
9100
|
if (!args.modelOption || modelOptions.length === 0) {
|
|
9091
|
-
return
|
|
9101
|
+
return /* @__PURE__ */ new Map();
|
|
9092
9102
|
}
|
|
9093
9103
|
const modelOption = args.modelOption;
|
|
9094
9104
|
const modelByValue = new Map(
|
|
@@ -9109,9 +9119,11 @@ async function discoverAcpNativeReasoningByModel(args) {
|
|
|
9109
9119
|
}
|
|
9110
9120
|
}
|
|
9111
9121
|
const supportByModel = /* @__PURE__ */ new Map();
|
|
9122
|
+
let timedOut = false;
|
|
9112
9123
|
let timeout;
|
|
9113
9124
|
const timeoutReached = new Promise((resolve4) => {
|
|
9114
9125
|
timeout = setTimeout(() => {
|
|
9126
|
+
timedOut = true;
|
|
9115
9127
|
args.connection.kill();
|
|
9116
9128
|
resolve4(supportByModel);
|
|
9117
9129
|
}, ACP_NATIVE_REASONING_DISCOVERY_TIMEOUT_MS);
|
|
@@ -9120,28 +9132,36 @@ async function discoverAcpNativeReasoningByModel(args) {
|
|
|
9120
9132
|
return await Promise.race([
|
|
9121
9133
|
(async () => {
|
|
9122
9134
|
for (const model of modelsToProbe) {
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9135
|
+
try {
|
|
9136
|
+
const configState = await args.connection.request({
|
|
9137
|
+
method: "session/set_config_option",
|
|
9138
|
+
params: {
|
|
9139
|
+
sessionId: args.sessionId,
|
|
9140
|
+
configId: modelOption.id,
|
|
9141
|
+
value: model.value
|
|
9142
|
+
},
|
|
9143
|
+
resultSchema: acpConfigStateResultSchema
|
|
9144
|
+
});
|
|
9145
|
+
supportByModel.set(
|
|
9146
|
+
model.value,
|
|
9147
|
+
buildAcpNativeReasoningSupport(
|
|
9148
|
+
findAcpThoughtLevelConfigOption(configState.configOptions)
|
|
9149
|
+
)
|
|
9150
|
+
);
|
|
9151
|
+
} catch (error) {
|
|
9152
|
+
if (timedOut) {
|
|
9153
|
+
break;
|
|
9154
|
+
}
|
|
9155
|
+
process.stderr.write(
|
|
9156
|
+
`acp bridge: ACP-native reasoning discovery for model "${model.value}" failed: ${error instanceof Error ? error.message : String(error)}
|
|
9157
|
+
`
|
|
9158
|
+
);
|
|
9159
|
+
}
|
|
9138
9160
|
}
|
|
9139
9161
|
return supportByModel;
|
|
9140
9162
|
})(),
|
|
9141
9163
|
timeoutReached
|
|
9142
9164
|
]);
|
|
9143
|
-
} catch {
|
|
9144
|
-
return supportByModel.size > 0 ? supportByModel : null;
|
|
9145
9165
|
} finally {
|
|
9146
9166
|
if (timeout !== void 0) {
|
|
9147
9167
|
clearTimeout(timeout);
|