@get-bb/plugin-sdk 0.5.27 → 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 +370 -0
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +97 -4
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +97 -3
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +34 -0
- package/bundled-types/bb-plugin-sdk-testing.d.ts +97 -3
- package/bundled-types/bb-plugin-sdk.d.ts +383 -3
- package/dist/internal/host-policy.js +7 -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/app.js +1 -0
- package/dist/testing/index.js +9 -0
- package/package.json +1 -1
|
@@ -96,6 +96,7 @@ type PluginRpcCallArgs<Method extends PluginRpcMethodContract> = null extends Pl
|
|
|
96
96
|
type PluginRpcResult<Method extends PluginRpcMethodContract> = StandardSchemaV1InferOutput<Method["output"]>;
|
|
97
97
|
|
|
98
98
|
declare const appSettingsSchema: z$1.ZodObject<{
|
|
99
|
+
allowFastServiceTier: z$1.ZodBoolean;
|
|
99
100
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
100
101
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
101
102
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
@@ -114,6 +115,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
|
|
|
114
115
|
}, z$1.core.$strict>;
|
|
115
116
|
type AppSettings = z$1.infer<typeof appSettingsSchema>;
|
|
116
117
|
declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
118
|
+
allowFastServiceTier: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
117
119
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
118
120
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
119
121
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
@@ -131,6 +133,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
131
133
|
streamerMode: z$1.ZodBoolean;
|
|
132
134
|
telemetryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
133
135
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
136
|
+
allowFastServiceTier: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
134
137
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
135
138
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
136
139
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
@@ -338,6 +341,7 @@ type AppThemeSelection = z$1.infer<typeof appThemeSelectionSchema>;
|
|
|
338
341
|
declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
339
342
|
changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
|
|
340
343
|
"archived-changed": "archived-changed";
|
|
344
|
+
"draft-changed": "draft-changed";
|
|
341
345
|
"environment-changed": "environment-changed";
|
|
342
346
|
"events-appended": "events-appended";
|
|
343
347
|
"history-rewritten": "history-rewritten";
|
|
@@ -528,6 +532,7 @@ type Environment = z$1.infer<typeof environmentSchema>;
|
|
|
528
532
|
|
|
529
533
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
530
534
|
changelogPreview: "changelogPreview";
|
|
535
|
+
legacyJitiPluginLoader: "legacyJitiPluginLoader";
|
|
531
536
|
mobileApp: "mobileApp";
|
|
532
537
|
serverMove: "serverMove";
|
|
533
538
|
sidebarProgressiveDisclosure: "sidebarProgressiveDisclosure";
|
|
@@ -3038,11 +3043,45 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3038
3043
|
}>>;
|
|
3039
3044
|
systemMessageSubject: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3040
3045
|
kind: z$1.ZodLiteral<"thread">;
|
|
3046
|
+
outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3047
|
+
interruption: z$1.ZodOptional<z$1.ZodObject<{
|
|
3048
|
+
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
3049
|
+
reason: z$1.ZodEnum<{
|
|
3050
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
3051
|
+
"host-removed": "host-removed";
|
|
3052
|
+
"manual-stop": "manual-stop";
|
|
3053
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
3054
|
+
}>;
|
|
3055
|
+
}, z$1.core.$strip>>;
|
|
3056
|
+
status: z$1.ZodEnum<{
|
|
3057
|
+
completed: "completed";
|
|
3058
|
+
failed: "failed";
|
|
3059
|
+
interrupted: "interrupted";
|
|
3060
|
+
}>;
|
|
3061
|
+
threadId: z$1.ZodString;
|
|
3062
|
+
}, z$1.core.$strip>>>;
|
|
3041
3063
|
threadId: z$1.ZodString;
|
|
3042
3064
|
threadName: z$1.ZodString;
|
|
3043
3065
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3044
3066
|
count: z$1.ZodNumber;
|
|
3045
3067
|
kind: z$1.ZodLiteral<"thread-batch">;
|
|
3068
|
+
outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3069
|
+
interruption: z$1.ZodOptional<z$1.ZodObject<{
|
|
3070
|
+
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
3071
|
+
reason: z$1.ZodEnum<{
|
|
3072
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
3073
|
+
"host-removed": "host-removed";
|
|
3074
|
+
"manual-stop": "manual-stop";
|
|
3075
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
3076
|
+
}>;
|
|
3077
|
+
}, z$1.core.$strip>>;
|
|
3078
|
+
status: z$1.ZodEnum<{
|
|
3079
|
+
completed: "completed";
|
|
3080
|
+
failed: "failed";
|
|
3081
|
+
interrupted: "interrupted";
|
|
3082
|
+
}>;
|
|
3083
|
+
threadId: z$1.ZodString;
|
|
3084
|
+
}, z$1.core.$strip>>>;
|
|
3046
3085
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3047
3086
|
kind: z$1.ZodLiteral<"tool-call">;
|
|
3048
3087
|
suppress: z$1.ZodBoolean;
|
|
@@ -7813,6 +7852,22 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7813
7852
|
sha256: z$1.ZodString;
|
|
7814
7853
|
sizeBytes: z$1.ZodNumber;
|
|
7815
7854
|
}, z$1.core.$strip>]>, "onlineRpc", true>;
|
|
7855
|
+
"host.read_file_chunk": HostDaemonCommandDescriptor<"host.read_file_chunk", z$1.ZodObject<{
|
|
7856
|
+
length: z$1.ZodNumber;
|
|
7857
|
+
offset: z$1.ZodNumber;
|
|
7858
|
+
path: z$1.ZodString;
|
|
7859
|
+
revision: z$1.ZodNullable<z$1.ZodString>;
|
|
7860
|
+
rootPath: z$1.ZodString;
|
|
7861
|
+
type: z$1.ZodLiteral<"host.read_file_chunk">;
|
|
7862
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7863
|
+
content: z$1.ZodString;
|
|
7864
|
+
mimeType: z$1.ZodNullable<z$1.ZodString>;
|
|
7865
|
+
modifiedAtMs: z$1.ZodNumber;
|
|
7866
|
+
offset: z$1.ZodNumber;
|
|
7867
|
+
path: z$1.ZodString;
|
|
7868
|
+
revision: z$1.ZodString;
|
|
7869
|
+
sizeBytes: z$1.ZodNumber;
|
|
7870
|
+
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
7816
7871
|
"host.read_file_relative": HostDaemonCommandDescriptor<"host.read_file_relative", z$1.ZodObject<{
|
|
7817
7872
|
dotfiles: z$1.ZodEnum<{
|
|
7818
7873
|
allow: "allow";
|
|
@@ -10114,6 +10169,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10114
10169
|
}, z$1.core.$strict>>;
|
|
10115
10170
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10116
10171
|
changelogPreview: "changelogPreview";
|
|
10172
|
+
legacyJitiPluginLoader: "legacyJitiPluginLoader";
|
|
10117
10173
|
mobileApp: "mobileApp";
|
|
10118
10174
|
serverMove: "serverMove";
|
|
10119
10175
|
sidebarProgressiveDisclosure: "sidebarProgressiveDisclosure";
|
|
@@ -10123,6 +10179,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10123
10179
|
timelineWindowEventBudget: z$1.ZodNumber;
|
|
10124
10180
|
}, z$1.core.$strip>;
|
|
10125
10181
|
generalSettings: z$1.ZodObject<{
|
|
10182
|
+
allowFastServiceTier: z$1.ZodBoolean;
|
|
10126
10183
|
defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
|
|
10127
10184
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
10128
10185
|
machineGitCredentialsEnabled: z$1.ZodBoolean;
|
|
@@ -10854,11 +10911,45 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
|
|
|
10854
10911
|
}>;
|
|
10855
10912
|
systemMessageSubject: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10856
10913
|
kind: z$1.ZodLiteral<"thread">;
|
|
10914
|
+
outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
10915
|
+
interruption: z$1.ZodOptional<z$1.ZodObject<{
|
|
10916
|
+
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
10917
|
+
reason: z$1.ZodEnum<{
|
|
10918
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
10919
|
+
"host-removed": "host-removed";
|
|
10920
|
+
"manual-stop": "manual-stop";
|
|
10921
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
10922
|
+
}>;
|
|
10923
|
+
}, z$1.core.$strip>>;
|
|
10924
|
+
status: z$1.ZodEnum<{
|
|
10925
|
+
completed: "completed";
|
|
10926
|
+
failed: "failed";
|
|
10927
|
+
interrupted: "interrupted";
|
|
10928
|
+
}>;
|
|
10929
|
+
threadId: z$1.ZodString;
|
|
10930
|
+
}, z$1.core.$strip>>>;
|
|
10857
10931
|
threadId: z$1.ZodString;
|
|
10858
10932
|
threadName: z$1.ZodString;
|
|
10859
10933
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10860
10934
|
count: z$1.ZodNumber;
|
|
10861
10935
|
kind: z$1.ZodLiteral<"thread-batch">;
|
|
10936
|
+
outcomes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
10937
|
+
interruption: z$1.ZodOptional<z$1.ZodObject<{
|
|
10938
|
+
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
10939
|
+
reason: z$1.ZodEnum<{
|
|
10940
|
+
"host-daemon-restarted": "host-daemon-restarted";
|
|
10941
|
+
"host-removed": "host-removed";
|
|
10942
|
+
"manual-stop": "manual-stop";
|
|
10943
|
+
"provider-turn-idle": "provider-turn-idle";
|
|
10944
|
+
}>;
|
|
10945
|
+
}, z$1.core.$strip>>;
|
|
10946
|
+
status: z$1.ZodEnum<{
|
|
10947
|
+
completed: "completed";
|
|
10948
|
+
failed: "failed";
|
|
10949
|
+
interrupted: "interrupted";
|
|
10950
|
+
}>;
|
|
10951
|
+
threadId: z$1.ZodString;
|
|
10952
|
+
}, z$1.core.$strip>>>;
|
|
10862
10953
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10863
10954
|
kind: z$1.ZodLiteral<"tool-call">;
|
|
10864
10955
|
suppress: z$1.ZodBoolean;
|
|
@@ -11891,6 +11982,7 @@ declare const createExecutionInputSourcesSchema: z$1.ZodObject<{
|
|
|
11891
11982
|
}, z$1.core.$strict>;
|
|
11892
11983
|
type CreateExecutionInputSources = z$1.infer<typeof createExecutionInputSourcesSchema>;
|
|
11893
11984
|
declare const createThreadRequestSchema: z$1.ZodObject<{
|
|
11985
|
+
draft: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
11894
11986
|
environment: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11895
11987
|
environmentId: z$1.ZodString;
|
|
11896
11988
|
type: z$1.ZodLiteral<"reuse">;
|
|
@@ -12925,6 +13017,91 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
12925
13017
|
}>>;
|
|
12926
13018
|
}, z$1.core.$strip>;
|
|
12927
13019
|
type CreateQueuedMessageRequest = z$1.infer<typeof createQueuedMessageRequestSchema>;
|
|
13020
|
+
declare const updateThreadDraftRequestSchema: z$1.ZodObject<{
|
|
13021
|
+
input: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13022
|
+
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
13023
|
+
end: z$1.ZodNumber;
|
|
13024
|
+
resource: z$1.ZodPipe<z$1.ZodTransform<unknown, unknown>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13025
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
13026
|
+
label: z$1.ZodString;
|
|
13027
|
+
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
13028
|
+
threadId: z$1.ZodString;
|
|
13029
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13030
|
+
kind: z$1.ZodLiteral<"project">;
|
|
13031
|
+
label: z$1.ZodString;
|
|
13032
|
+
projectId: z$1.ZodString;
|
|
13033
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13034
|
+
kind: z$1.ZodLiteral<"section">;
|
|
13035
|
+
label: z$1.ZodString;
|
|
13036
|
+
sectionId: z$1.ZodString;
|
|
13037
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13038
|
+
entryKind: z$1.ZodEnum<{
|
|
13039
|
+
directory: "directory";
|
|
13040
|
+
file: "file";
|
|
13041
|
+
}>;
|
|
13042
|
+
kind: z$1.ZodLiteral<"path">;
|
|
13043
|
+
label: z$1.ZodString;
|
|
13044
|
+
path: z$1.ZodString;
|
|
13045
|
+
source: z$1.ZodEnum<{
|
|
13046
|
+
"thread-storage": "thread-storage";
|
|
13047
|
+
workspace: "workspace";
|
|
13048
|
+
}>;
|
|
13049
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13050
|
+
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
13051
|
+
kind: z$1.ZodLiteral<"command">;
|
|
13052
|
+
label: z$1.ZodString;
|
|
13053
|
+
name: z$1.ZodString;
|
|
13054
|
+
origin: z$1.ZodEnum<{
|
|
13055
|
+
builtin: "builtin";
|
|
13056
|
+
project: "project";
|
|
13057
|
+
user: "user";
|
|
13058
|
+
}>;
|
|
13059
|
+
source: z$1.ZodEnum<{
|
|
13060
|
+
command: "command";
|
|
13061
|
+
skill: "skill";
|
|
13062
|
+
}>;
|
|
13063
|
+
trigger: z$1.ZodEnum<{
|
|
13064
|
+
"/": "/";
|
|
13065
|
+
$: "$";
|
|
13066
|
+
}>;
|
|
13067
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13068
|
+
icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13069
|
+
itemId: z$1.ZodString;
|
|
13070
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
13071
|
+
label: z$1.ZodString;
|
|
13072
|
+
pluginId: z$1.ZodString;
|
|
13073
|
+
}, z$1.core.$strip>], "kind">>;
|
|
13074
|
+
start: z$1.ZodNumber;
|
|
13075
|
+
}, z$1.core.$strip>>>;
|
|
13076
|
+
text: z$1.ZodString;
|
|
13077
|
+
type: z$1.ZodLiteral<"text">;
|
|
13078
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13079
|
+
"agent-only": "agent-only";
|
|
13080
|
+
}>>;
|
|
13081
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13082
|
+
type: z$1.ZodLiteral<"image">;
|
|
13083
|
+
url: z$1.ZodString;
|
|
13084
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13085
|
+
"agent-only": "agent-only";
|
|
13086
|
+
}>>;
|
|
13087
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13088
|
+
path: z$1.ZodString;
|
|
13089
|
+
type: z$1.ZodLiteral<"localImage">;
|
|
13090
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13091
|
+
"agent-only": "agent-only";
|
|
13092
|
+
}>>;
|
|
13093
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13094
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
13095
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
13096
|
+
path: z$1.ZodString;
|
|
13097
|
+
sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13098
|
+
type: z$1.ZodLiteral<"localFile">;
|
|
13099
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13100
|
+
"agent-only": "agent-only";
|
|
13101
|
+
}>>;
|
|
13102
|
+
}, z$1.core.$strip>], "type">>;
|
|
13103
|
+
}, z$1.core.$strict>;
|
|
13104
|
+
type UpdateThreadDraftRequest = z$1.infer<typeof updateThreadDraftRequestSchema>;
|
|
12928
13105
|
declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
12929
13106
|
expectedUpdatedAt: z$1.ZodNumber;
|
|
12930
13107
|
input: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -13469,9 +13646,92 @@ type ThreadSearchResponse = z$1.infer<typeof threadSearchResponseSchema>;
|
|
|
13469
13646
|
declare const threadResponseSchema: z$1.ZodObject<{
|
|
13470
13647
|
activeBackgroundAgentCount: z$1.ZodNumber;
|
|
13471
13648
|
archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
13649
|
+
canRestoreEnvironment: z$1.ZodBoolean;
|
|
13472
13650
|
canSpawnChild: z$1.ZodBoolean;
|
|
13473
13651
|
createdAt: z$1.ZodNumber;
|
|
13474
13652
|
deletedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
13653
|
+
draft: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13654
|
+
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
13655
|
+
end: z$1.ZodNumber;
|
|
13656
|
+
resource: z$1.ZodPipe<z$1.ZodTransform<unknown, unknown>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13657
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
13658
|
+
label: z$1.ZodString;
|
|
13659
|
+
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
13660
|
+
threadId: z$1.ZodString;
|
|
13661
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13662
|
+
kind: z$1.ZodLiteral<"project">;
|
|
13663
|
+
label: z$1.ZodString;
|
|
13664
|
+
projectId: z$1.ZodString;
|
|
13665
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13666
|
+
kind: z$1.ZodLiteral<"section">;
|
|
13667
|
+
label: z$1.ZodString;
|
|
13668
|
+
sectionId: z$1.ZodString;
|
|
13669
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13670
|
+
entryKind: z$1.ZodEnum<{
|
|
13671
|
+
directory: "directory";
|
|
13672
|
+
file: "file";
|
|
13673
|
+
}>;
|
|
13674
|
+
kind: z$1.ZodLiteral<"path">;
|
|
13675
|
+
label: z$1.ZodString;
|
|
13676
|
+
path: z$1.ZodString;
|
|
13677
|
+
source: z$1.ZodEnum<{
|
|
13678
|
+
"thread-storage": "thread-storage";
|
|
13679
|
+
workspace: "workspace";
|
|
13680
|
+
}>;
|
|
13681
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13682
|
+
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
13683
|
+
kind: z$1.ZodLiteral<"command">;
|
|
13684
|
+
label: z$1.ZodString;
|
|
13685
|
+
name: z$1.ZodString;
|
|
13686
|
+
origin: z$1.ZodEnum<{
|
|
13687
|
+
builtin: "builtin";
|
|
13688
|
+
project: "project";
|
|
13689
|
+
user: "user";
|
|
13690
|
+
}>;
|
|
13691
|
+
source: z$1.ZodEnum<{
|
|
13692
|
+
command: "command";
|
|
13693
|
+
skill: "skill";
|
|
13694
|
+
}>;
|
|
13695
|
+
trigger: z$1.ZodEnum<{
|
|
13696
|
+
"/": "/";
|
|
13697
|
+
$: "$";
|
|
13698
|
+
}>;
|
|
13699
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13700
|
+
icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13701
|
+
itemId: z$1.ZodString;
|
|
13702
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
13703
|
+
label: z$1.ZodString;
|
|
13704
|
+
pluginId: z$1.ZodString;
|
|
13705
|
+
}, z$1.core.$strip>], "kind">>;
|
|
13706
|
+
start: z$1.ZodNumber;
|
|
13707
|
+
}, z$1.core.$strip>>>;
|
|
13708
|
+
text: z$1.ZodString;
|
|
13709
|
+
type: z$1.ZodLiteral<"text">;
|
|
13710
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13711
|
+
"agent-only": "agent-only";
|
|
13712
|
+
}>>;
|
|
13713
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13714
|
+
type: z$1.ZodLiteral<"image">;
|
|
13715
|
+
url: z$1.ZodString;
|
|
13716
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13717
|
+
"agent-only": "agent-only";
|
|
13718
|
+
}>>;
|
|
13719
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13720
|
+
path: z$1.ZodString;
|
|
13721
|
+
type: z$1.ZodLiteral<"localImage">;
|
|
13722
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13723
|
+
"agent-only": "agent-only";
|
|
13724
|
+
}>>;
|
|
13725
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13726
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
13727
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
13728
|
+
path: z$1.ZodString;
|
|
13729
|
+
sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13730
|
+
type: z$1.ZodLiteral<"localFile">;
|
|
13731
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13732
|
+
"agent-only": "agent-only";
|
|
13733
|
+
}>>;
|
|
13734
|
+
}, z$1.core.$strip>], "type">>>;
|
|
13475
13735
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
13476
13736
|
id: z$1.ZodString;
|
|
13477
13737
|
lastReadAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -13527,9 +13787,92 @@ type ThreadPluginMetadataResponse = z$1.infer<typeof pluginMetadataSchema>;
|
|
|
13527
13787
|
declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
13528
13788
|
activeBackgroundAgentCount: z$1.ZodNumber;
|
|
13529
13789
|
archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
13790
|
+
canRestoreEnvironment: z$1.ZodBoolean;
|
|
13530
13791
|
canSpawnChild: z$1.ZodBoolean;
|
|
13531
13792
|
createdAt: z$1.ZodNumber;
|
|
13532
13793
|
deletedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
13794
|
+
draft: z$1.ZodNullable<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13795
|
+
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
13796
|
+
end: z$1.ZodNumber;
|
|
13797
|
+
resource: z$1.ZodPipe<z$1.ZodTransform<unknown, unknown>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
13798
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
13799
|
+
label: z$1.ZodString;
|
|
13800
|
+
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
13801
|
+
threadId: z$1.ZodString;
|
|
13802
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13803
|
+
kind: z$1.ZodLiteral<"project">;
|
|
13804
|
+
label: z$1.ZodString;
|
|
13805
|
+
projectId: z$1.ZodString;
|
|
13806
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13807
|
+
kind: z$1.ZodLiteral<"section">;
|
|
13808
|
+
label: z$1.ZodString;
|
|
13809
|
+
sectionId: z$1.ZodString;
|
|
13810
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13811
|
+
entryKind: z$1.ZodEnum<{
|
|
13812
|
+
directory: "directory";
|
|
13813
|
+
file: "file";
|
|
13814
|
+
}>;
|
|
13815
|
+
kind: z$1.ZodLiteral<"path">;
|
|
13816
|
+
label: z$1.ZodString;
|
|
13817
|
+
path: z$1.ZodString;
|
|
13818
|
+
source: z$1.ZodEnum<{
|
|
13819
|
+
"thread-storage": "thread-storage";
|
|
13820
|
+
workspace: "workspace";
|
|
13821
|
+
}>;
|
|
13822
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13823
|
+
argumentHint: z$1.ZodNullable<z$1.ZodString>;
|
|
13824
|
+
kind: z$1.ZodLiteral<"command">;
|
|
13825
|
+
label: z$1.ZodString;
|
|
13826
|
+
name: z$1.ZodString;
|
|
13827
|
+
origin: z$1.ZodEnum<{
|
|
13828
|
+
builtin: "builtin";
|
|
13829
|
+
project: "project";
|
|
13830
|
+
user: "user";
|
|
13831
|
+
}>;
|
|
13832
|
+
source: z$1.ZodEnum<{
|
|
13833
|
+
command: "command";
|
|
13834
|
+
skill: "skill";
|
|
13835
|
+
}>;
|
|
13836
|
+
trigger: z$1.ZodEnum<{
|
|
13837
|
+
"/": "/";
|
|
13838
|
+
$: "$";
|
|
13839
|
+
}>;
|
|
13840
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13841
|
+
icon: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13842
|
+
itemId: z$1.ZodString;
|
|
13843
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
13844
|
+
label: z$1.ZodString;
|
|
13845
|
+
pluginId: z$1.ZodString;
|
|
13846
|
+
}, z$1.core.$strip>], "kind">>;
|
|
13847
|
+
start: z$1.ZodNumber;
|
|
13848
|
+
}, z$1.core.$strip>>>;
|
|
13849
|
+
text: z$1.ZodString;
|
|
13850
|
+
type: z$1.ZodLiteral<"text">;
|
|
13851
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13852
|
+
"agent-only": "agent-only";
|
|
13853
|
+
}>>;
|
|
13854
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13855
|
+
type: z$1.ZodLiteral<"image">;
|
|
13856
|
+
url: z$1.ZodString;
|
|
13857
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13858
|
+
"agent-only": "agent-only";
|
|
13859
|
+
}>>;
|
|
13860
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13861
|
+
path: z$1.ZodString;
|
|
13862
|
+
type: z$1.ZodLiteral<"localImage">;
|
|
13863
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13864
|
+
"agent-only": "agent-only";
|
|
13865
|
+
}>>;
|
|
13866
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13867
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
13868
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
13869
|
+
path: z$1.ZodString;
|
|
13870
|
+
sizeBytes: z$1.ZodOptional<z$1.ZodNumber>;
|
|
13871
|
+
type: z$1.ZodLiteral<"localFile">;
|
|
13872
|
+
visibility: z$1.ZodOptional<z$1.ZodEnum<{
|
|
13873
|
+
"agent-only": "agent-only";
|
|
13874
|
+
}>>;
|
|
13875
|
+
}, z$1.core.$strip>], "type">>>;
|
|
13533
13876
|
environment: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
13534
13877
|
baseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
13535
13878
|
branchName: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -14129,6 +14472,7 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
14129
14472
|
type ThreadQueuedMessageListResponse = z$1.infer<typeof threadQueuedMessageListResponseSchema>;
|
|
14130
14473
|
declare const threadChildSummaryResponseSchema: z$1.ZodObject<{
|
|
14131
14474
|
nonDeletedChildCount: z$1.ZodNumber;
|
|
14475
|
+
unarchivedDescendantCount: z$1.ZodNumber;
|
|
14132
14476
|
}, z$1.core.$strip>;
|
|
14133
14477
|
type ThreadChildSummaryResponse = z$1.infer<typeof threadChildSummaryResponseSchema>;
|
|
14134
14478
|
declare const deleteThreadRequestSchema: z$1.ZodObject<{
|
|
@@ -16419,6 +16763,7 @@ type ThreadUnarchiveResult = {
|
|
|
16419
16763
|
};
|
|
16420
16764
|
type ThreadArchiveAllResult = ThreadArchiveAllResponse;
|
|
16421
16765
|
type ThreadReadStateResult = ThreadResponse;
|
|
16766
|
+
type ThreadRestoreEnvironmentResult = ThreadResponse;
|
|
16422
16767
|
type ThreadPinOrderResult = ThreadListResponse;
|
|
16423
16768
|
type ThreadPromptHistoryResult = PromptHistoryResponse;
|
|
16424
16769
|
type ThreadQueuedMessagesResult = ThreadQueuedMessageListResponse;
|
|
@@ -16459,6 +16804,9 @@ interface ThreadForkArgs extends Omit<ForkThreadRequest, "origin" | "visibility"
|
|
|
16459
16804
|
interface ThreadUpdateArgs extends UpdateThreadRequest {
|
|
16460
16805
|
threadId: string;
|
|
16461
16806
|
}
|
|
16807
|
+
interface ThreadUpdateDraftArgs extends UpdateThreadDraftRequest {
|
|
16808
|
+
threadId: string;
|
|
16809
|
+
}
|
|
16462
16810
|
interface ThreadPluginMetadataArgs {
|
|
16463
16811
|
pluginId: string;
|
|
16464
16812
|
signal?: AbortSignal;
|
|
@@ -16711,6 +17059,14 @@ interface ThreadsArea {
|
|
|
16711
17059
|
* `sendAt` in the future queues it on the clock and a `message.dispatch` hook
|
|
16712
17060
|
* can still hold it; the response says which of the two happened.
|
|
16713
17061
|
*/
|
|
17062
|
+
/**
|
|
17063
|
+
* Ask the environment provider to restore the destroyed workspace of a
|
|
17064
|
+
* thread and attach it; the provider decides what restoring means, such as
|
|
17065
|
+
* checking the recorded branch out again. Sends fail until this runs. Starts
|
|
17066
|
+
* no turn: the thread settles back to `idle` once the workspace is ready.
|
|
17067
|
+
* Refused unless the thread's `canRestoreEnvironment` is true.
|
|
17068
|
+
*/
|
|
17069
|
+
restoreEnvironment(args: ThreadActionArgs): Promise<ThreadRestoreEnvironmentResult>;
|
|
16714
17070
|
retry(args: ThreadRetryArgs): Promise<ThreadRetryResult>;
|
|
16715
17071
|
search(args: ThreadSearchArgs): Promise<ThreadSearchResult>;
|
|
16716
17072
|
send(args: ThreadSendArgs): Promise<ThreadSendResult>;
|
|
@@ -16734,6 +17090,12 @@ interface ThreadsArea {
|
|
|
16734
17090
|
unarchive(args: ThreadActionArgs): Promise<ThreadUnarchiveResult>;
|
|
16735
17091
|
unpin(args: ThreadActionArgs): Promise<ThreadMutationResult>;
|
|
16736
17092
|
update(args: ThreadUpdateArgs): Promise<ThreadMutationResult>;
|
|
17093
|
+
/**
|
|
17094
|
+
* Replace the thread's saved, unsent draft message. An empty `input` clears
|
|
17095
|
+
* it. On a `pending` thread the draft also becomes the thread's fallback
|
|
17096
|
+
* title. Sending a message does not clear the draft; clear it explicitly.
|
|
17097
|
+
*/
|
|
17098
|
+
updateDraft(args: ThreadUpdateDraftArgs): Promise<ThreadMutationResult>;
|
|
16737
17099
|
wait(args: ThreadWaitArgs): Promise<ThreadWaitResult>;
|
|
16738
17100
|
}
|
|
16739
17101
|
|
|
@@ -17866,6 +18228,10 @@ interface PluginSidebarThreadsState {
|
|
|
17866
18228
|
} | null;
|
|
17867
18229
|
status: "error" | "loading" | "ready";
|
|
17868
18230
|
threads: readonly PluginSidebarThread[];
|
|
18231
|
+
experimental_hosts?: readonly {
|
|
18232
|
+
id: string;
|
|
18233
|
+
name: string;
|
|
18234
|
+
}[];
|
|
17869
18235
|
projects: readonly PluginSidebarProject[];
|
|
17870
18236
|
/** Every section, in the server's order (creation order). */
|
|
17871
18237
|
sections: readonly PluginSidebarSection[];
|
|
@@ -18031,11 +18397,15 @@ interface PluginSidebarThreadActions {
|
|
|
18031
18397
|
* `sectionId` files the new thread under that section, and
|
|
18032
18398
|
* `environmentId` reuses that environment (the "New thread in
|
|
18033
18399
|
* environment" affordance), both exactly as bb's own list does.
|
|
18400
|
+
* `hostId` selects a machine for a new environment when it
|
|
18401
|
+
* is known and supports an environment provider. `environmentId` wins when
|
|
18402
|
+
* both are supplied.
|
|
18034
18403
|
*/
|
|
18035
18404
|
openNewThread(options?: {
|
|
18036
18405
|
projectId?: string;
|
|
18037
18406
|
sectionId?: string;
|
|
18038
18407
|
environmentId?: string;
|
|
18408
|
+
hostId?: string;
|
|
18039
18409
|
focusPrompt?: boolean;
|
|
18040
18410
|
}): void;
|
|
18041
18411
|
setPinned(threadId: string, pinned: boolean): Promise<void>;
|
|
@@ -142,9 +142,92 @@ type Project = z.infer<typeof projectSchema>;
|
|
|
142
142
|
declare const threadResponseSchema: z.ZodObject<{
|
|
143
143
|
activeBackgroundAgentCount: z.ZodNumber;
|
|
144
144
|
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
145
|
+
canRestoreEnvironment: z.ZodBoolean;
|
|
145
146
|
canSpawnChild: z.ZodBoolean;
|
|
146
147
|
createdAt: z.ZodNumber;
|
|
147
148
|
deletedAt: z.ZodNullable<z.ZodNumber>;
|
|
149
|
+
draft: z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
|
+
mentions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
151
|
+
end: z.ZodNumber;
|
|
152
|
+
resource: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
153
|
+
kind: z.ZodLiteral<"thread">;
|
|
154
|
+
label: z.ZodString;
|
|
155
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
156
|
+
threadId: z.ZodString;
|
|
157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
158
|
+
kind: z.ZodLiteral<"project">;
|
|
159
|
+
label: z.ZodString;
|
|
160
|
+
projectId: z.ZodString;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
+
kind: z.ZodLiteral<"section">;
|
|
163
|
+
label: z.ZodString;
|
|
164
|
+
sectionId: z.ZodString;
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
166
|
+
entryKind: z.ZodEnum<{
|
|
167
|
+
directory: "directory";
|
|
168
|
+
file: "file";
|
|
169
|
+
}>;
|
|
170
|
+
kind: z.ZodLiteral<"path">;
|
|
171
|
+
label: z.ZodString;
|
|
172
|
+
path: z.ZodString;
|
|
173
|
+
source: z.ZodEnum<{
|
|
174
|
+
"thread-storage": "thread-storage";
|
|
175
|
+
workspace: "workspace";
|
|
176
|
+
}>;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
argumentHint: z.ZodNullable<z.ZodString>;
|
|
179
|
+
kind: z.ZodLiteral<"command">;
|
|
180
|
+
label: z.ZodString;
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
origin: z.ZodEnum<{
|
|
183
|
+
builtin: "builtin";
|
|
184
|
+
project: "project";
|
|
185
|
+
user: "user";
|
|
186
|
+
}>;
|
|
187
|
+
source: z.ZodEnum<{
|
|
188
|
+
command: "command";
|
|
189
|
+
skill: "skill";
|
|
190
|
+
}>;
|
|
191
|
+
trigger: z.ZodEnum<{
|
|
192
|
+
"/": "/";
|
|
193
|
+
$: "$";
|
|
194
|
+
}>;
|
|
195
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
196
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
itemId: z.ZodString;
|
|
198
|
+
kind: z.ZodLiteral<"plugin">;
|
|
199
|
+
label: z.ZodString;
|
|
200
|
+
pluginId: z.ZodString;
|
|
201
|
+
}, z.core.$strip>], "kind">>;
|
|
202
|
+
start: z.ZodNumber;
|
|
203
|
+
}, z.core.$strip>>>;
|
|
204
|
+
text: z.ZodString;
|
|
205
|
+
type: z.ZodLiteral<"text">;
|
|
206
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
207
|
+
"agent-only": "agent-only";
|
|
208
|
+
}>>;
|
|
209
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
+
type: z.ZodLiteral<"image">;
|
|
211
|
+
url: z.ZodString;
|
|
212
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
"agent-only": "agent-only";
|
|
214
|
+
}>>;
|
|
215
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
216
|
+
path: z.ZodString;
|
|
217
|
+
type: z.ZodLiteral<"localImage">;
|
|
218
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
219
|
+
"agent-only": "agent-only";
|
|
220
|
+
}>>;
|
|
221
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
222
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
223
|
+
name: z.ZodOptional<z.ZodString>;
|
|
224
|
+
path: z.ZodString;
|
|
225
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
226
|
+
type: z.ZodLiteral<"localFile">;
|
|
227
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
228
|
+
"agent-only": "agent-only";
|
|
229
|
+
}>>;
|
|
230
|
+
}, z.core.$strip>], "type">>>;
|
|
148
231
|
environmentId: z.ZodNullable<z.ZodString>;
|
|
149
232
|
id: z.ZodString;
|
|
150
233
|
lastReadAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -241,13 +324,21 @@ interface PluginEnvironmentProviderCreateContext<R extends PluginEnvironmentProv
|
|
|
241
324
|
suggestedBranchName: string;
|
|
242
325
|
attempt: number;
|
|
243
326
|
pathKey: string;
|
|
244
|
-
|
|
327
|
+
experimental_claimPath(path: string): Promise<boolean>;
|
|
328
|
+
report: PluginEnvironmentProviderProgress;
|
|
329
|
+
signal: AbortSignal;
|
|
330
|
+
}
|
|
331
|
+
/** Rebuilds a thread's destroyed environment; `inputs` are the ones it was created with. */
|
|
332
|
+
interface PluginEnvironmentProviderRestoreContext<R extends PluginEnvironmentProviderRequirements = PluginEnvironmentProviderRequirements, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> extends PluginEnvironmentProviderValidateContext<R, S> {
|
|
333
|
+
thread: ThreadResponse;
|
|
334
|
+
attempt: number;
|
|
335
|
+
pathKey: string;
|
|
245
336
|
experimental_claimPath(path: string): Promise<boolean>;
|
|
246
337
|
/** Resource is private to this provider; null after completed removal. */
|
|
247
338
|
previous: {
|
|
248
339
|
environment: Environment;
|
|
249
340
|
resource: JsonValue$1 | null;
|
|
250
|
-
}
|
|
341
|
+
};
|
|
251
342
|
report: PluginEnvironmentProviderProgress;
|
|
252
343
|
signal: AbortSignal;
|
|
253
344
|
}
|
|
@@ -281,7 +372,7 @@ type PluginEnvironmentProviderRemoveResult = {
|
|
|
281
372
|
interface PluginEnvironmentProviderPolicy {
|
|
282
373
|
/** Default five minutes; null keeps the environment indefinitely. */
|
|
283
374
|
retireGraceMs: number | null;
|
|
284
|
-
/** Default per-thread;
|
|
375
|
+
/** Default per-thread; replacement environments use a fresh key to avoid dead paths. */
|
|
285
376
|
pathKeys: "per-attempt" | "per-thread";
|
|
286
377
|
}
|
|
287
378
|
/** Resource operations only. Core owns durable launches, retries and retirement. */
|
|
@@ -301,7 +392,9 @@ interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProvide
|
|
|
301
392
|
/** Pure path selection from parsed inputs. Core reuses a recorded environment on the selected host before calling create; null requests normal creation. */
|
|
302
393
|
experimental_existingPath?(inputs: InputsValue<S>): string | null;
|
|
303
394
|
create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
|
|
395
|
+
/** Experimental: rebuild a destroyed environment when its thread asks for it back. Without it, core never rebuilds this provider's destroyed environments: see docs/api_to_audit.md. */
|
|
396
|
+
restore?(context: PluginEnvironmentProviderRestoreContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
|
|
304
397
|
remove(context: PluginEnvironmentProviderRemoveContext): Promise<PluginEnvironmentProviderRemoveResult>;
|
|
305
398
|
}
|
|
306
399
|
|
|
307
|
-
export type { PluginEnvironmentProviderAvailability, PluginEnvironmentProviderAvailabilityContext, PluginEnvironmentProviderCreateContext, PluginEnvironmentProviderCreateResult, PluginEnvironmentProviderDefinition, PluginEnvironmentProviderInputsSchema, PluginEnvironmentProviderPolicy, PluginEnvironmentProviderProgress, PluginEnvironmentProviderRemoveContext, PluginEnvironmentProviderRemoveResult, PluginEnvironmentProviderValidateContext };
|
|
400
|
+
export type { PluginEnvironmentProviderAvailability, PluginEnvironmentProviderAvailabilityContext, PluginEnvironmentProviderCreateContext, PluginEnvironmentProviderCreateResult, PluginEnvironmentProviderDefinition, PluginEnvironmentProviderInputsSchema, PluginEnvironmentProviderPolicy, PluginEnvironmentProviderProgress, PluginEnvironmentProviderRemoveContext, PluginEnvironmentProviderRemoveResult, PluginEnvironmentProviderRestoreContext, PluginEnvironmentProviderValidateContext };
|