@get-bb/plugin-sdk 0.6.54 → 0.6.59
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 +96 -3
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-host.d.ts +11 -2
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +71 -11
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +26 -7
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +21 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +33 -1
- package/bundled-types/bb-plugin-sdk-testing.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk.d.ts +102 -5
- package/dist/host.js +150 -5
- package/dist/provider-bridge-acp-next.js +290 -69
- package/dist/provider-bridge-acp.js +6709 -620
- package/dist/provider-bridge-testing.js +74 -32
- package/dist/provider-bridge-worker-entry.mjs +136 -5
- package/dist/provider-bridge.js +194 -8
- package/dist/testing/index.js +1 -0
- package/package.json +1 -2
|
@@ -416,6 +416,8 @@ type ProviderRawEvent = z.infer<typeof providerRawEventSchema>;
|
|
|
416
416
|
|
|
417
417
|
declare function toPositiveNumber(value: unknown): number | undefined;
|
|
418
418
|
|
|
419
|
+
declare const PLUGIN_INTERACTION_MAX_TITLE_LENGTH = 160;
|
|
420
|
+
|
|
419
421
|
declare const pendingInteractionCommandActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
420
422
|
command: z.ZodString;
|
|
421
423
|
name: z.ZodString;
|
|
@@ -2288,6 +2290,12 @@ declare const threadDeltaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2288
2290
|
kind: z.ZodLiteral<"turn.open">;
|
|
2289
2291
|
parentRef: z.ZodOptional<z.ZodString>;
|
|
2290
2292
|
providerTurnId: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2294
|
+
kind: z.ZodLiteral<"turn.mainRun">;
|
|
2295
|
+
state: z.ZodEnum<{
|
|
2296
|
+
idle: "idle";
|
|
2297
|
+
running: "running";
|
|
2298
|
+
}>;
|
|
2291
2299
|
}, z.core.$strip>, z.ZodObject<{
|
|
2292
2300
|
claimIfIdle: z.ZodOptional<z.ZodBoolean>;
|
|
2293
2301
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -3142,6 +3150,12 @@ declare const threadDeltaNotificationParamsSchema: z.ZodObject<{
|
|
|
3142
3150
|
kind: z.ZodLiteral<"turn.open">;
|
|
3143
3151
|
parentRef: z.ZodOptional<z.ZodString>;
|
|
3144
3152
|
providerTurnId: z.ZodOptional<z.ZodString>;
|
|
3153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3154
|
+
kind: z.ZodLiteral<"turn.mainRun">;
|
|
3155
|
+
state: z.ZodEnum<{
|
|
3156
|
+
idle: "idle";
|
|
3157
|
+
running: "running";
|
|
3158
|
+
}>;
|
|
3145
3159
|
}, z.core.$strip>, z.ZodObject<{
|
|
3146
3160
|
claimIfIdle: z.ZodOptional<z.ZodBoolean>;
|
|
3147
3161
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -4354,6 +4368,9 @@ declare const bridgeCapabilitiesSchema: z.ZodObject<{
|
|
|
4354
4368
|
provider: "provider";
|
|
4355
4369
|
runtime: "runtime";
|
|
4356
4370
|
}>>;
|
|
4371
|
+
commands: z.ZodDefault<z.ZodObject<{
|
|
4372
|
+
list: z.ZodDefault<z.ZodBoolean>;
|
|
4373
|
+
}, z.core.$strip>>;
|
|
4357
4374
|
fork: z.ZodDefault<z.ZodEnum<{
|
|
4358
4375
|
checkpoint: "checkpoint";
|
|
4359
4376
|
none: "none";
|
|
@@ -4387,6 +4404,9 @@ declare const initializeResultSchema: z.ZodObject<{
|
|
|
4387
4404
|
provider: "provider";
|
|
4388
4405
|
runtime: "runtime";
|
|
4389
4406
|
}>>;
|
|
4407
|
+
commands: z.ZodDefault<z.ZodObject<{
|
|
4408
|
+
list: z.ZodDefault<z.ZodBoolean>;
|
|
4409
|
+
}, z.core.$strip>>;
|
|
4390
4410
|
fork: z.ZodDefault<z.ZodEnum<{
|
|
4391
4411
|
checkpoint: "checkpoint";
|
|
4392
4412
|
none: "none";
|
|
@@ -4445,6 +4465,7 @@ type BridgeExecutionOptions = z.infer<typeof bridgeExecutionOptionsSchema>;
|
|
|
4445
4465
|
declare const BRIDGE_REQUEST_METHODS: {
|
|
4446
4466
|
readonly initialize: "initialize";
|
|
4447
4467
|
readonly modelList: "model/list";
|
|
4468
|
+
readonly commandList: "commands/list";
|
|
4448
4469
|
readonly providerHealth: "provider/health";
|
|
4449
4470
|
readonly providerUsage: "provider/usage";
|
|
4450
4471
|
readonly providerInstallationStatus: "provider/installation/status";
|
|
@@ -4464,7 +4485,18 @@ declare const BRIDGE_REQUEST_METHODS: {
|
|
|
4464
4485
|
};
|
|
4465
4486
|
declare const modelListParamsSchema: z.ZodObject<{
|
|
4466
4487
|
cwd: z.ZodOptional<z.ZodString>;
|
|
4488
|
+
envVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4489
|
+
}, z.core.$loose>;
|
|
4490
|
+
declare const commandListParamsSchema: z.ZodObject<{
|
|
4491
|
+
cwd: z.ZodString;
|
|
4467
4492
|
}, z.core.$loose>;
|
|
4493
|
+
declare const commandListResultSchema: z.ZodObject<{
|
|
4494
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
4495
|
+
description: z.ZodString;
|
|
4496
|
+
inputHint: z.ZodOptional<z.ZodString>;
|
|
4497
|
+
name: z.ZodString;
|
|
4498
|
+
}, z.core.$strip>>;
|
|
4499
|
+
}, z.core.$strip>;
|
|
4468
4500
|
declare const threadStartParamsSchema: z.ZodObject<{
|
|
4469
4501
|
cwd: z.ZodString;
|
|
4470
4502
|
disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -5203,5 +5235,5 @@ declare const claudeTaskToolOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
5203
5235
|
}, z.core.$loose>]>;
|
|
5204
5236
|
type ClaudeTaskToolOutput = z.infer<typeof claudeTaskToolOutputSchema>;
|
|
5205
5237
|
|
|
5206
|
-
export { BRIDGE_INBOUND_REQUEST_METHODS, BRIDGE_JSON_RPC_ERRORS, BRIDGE_NOTIFICATION_METHODS, BRIDGE_REQUEST_METHODS, HIGH_REASONING_EFFORT, LOCAL_BASH_TASK_TYPE, LOCAL_WORKFLOW_TASK_TYPE, LOW_REASONING_EFFORT, MAX_REASONING_EFFORT, MEDIUM_REASONING_EFFORT, PROVIDER_BRIDGE_EXPORT_NAME, PROVIDER_BRIDGE_PROTOCOL_VERSION, ProviderRequestDecodeError, ProviderResponseEncodeError, THREAD_DELTA_GRAMMAR_V2, THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_NOTIFICATION_METHOD, ULTRACODE_REASONING_EFFORT, USER_QUESTION_MAX_OPTIONS, USER_QUESTION_MAX_QUESTIONS, XHIGH_REASONING_EFFORT, ZERO_TOKEN_USAGE, acpNativeReasoningSchema, acpPermissionCliSchema, acpReasoningCliSchema, addTokenUsage, approvalInteractionOutcomeSchema, backgroundTaskItemStatus, bashArgsSchema, bridgeCapabilitiesSchema, bridgeErrorDataSchema, bridgeGrammarVersionsSchema, bridgeRequestEnvelopeSchema, bridgeSteerModeSchema, buildShellEnvOverrides, claudeTaskToolNameSchema, claudeTaskToolOutputSchema, contextSnapshotSchema, createBridgeIo, createBridgeLineHandler, createPendingToolCallTracker, createProviderVisibilityMetadata, decodeBridgeJsonRpcResponse, decodeToolCallResponsePayload, deltaBackgroundTaskShapeSchema, deltaDelegationShapeSchema, deltaExtensionShapeSchema, deltaFileChangeSchema, deltaFileReadShapeSchema, deltaItemKeySchema, deltaItemShapeSchema, deltaNoTurnFallbackSchema, deltaOutputChannelSchema, deltaPlanStepsShapeSchema, deltaPresentationSchema, deltaProgressSnapshotSchema, deltaSearchShapeSchema, deltaTextChannelSchema, dynamicToolSchema, errorEnvelopeSchema, BridgeRecoveryError as experimental_BridgeRecoveryError, COMPACTION_PRESENTATION as experimental_COMPACTION_PRESENTATION, REASONING_PRESENTATION as experimental_REASONING_PRESENTATION, buildBridgeToolCallContent as experimental_buildBridgeToolCallContent, clampPercent as experimental_clampPercent, commandOutput as experimental_commandOutput, compareVersions as experimental_compareVersions, experimental_defineProviderBridge, downloadedInstallerCommand as experimental_downloadedInstallerCommand, fileReadPresentation as experimental_fileReadPresentation, formatCommand as experimental_formatCommand, installationVerification as experimental_installationVerification, experimental_isProviderBridgeRecording, killPortableProcess as experimental_killPortableProcess, npmCommand as experimental_npmCommand, npmGlobalInstallCommand as experimental_npmGlobalInstallCommand, npmGlobalInstallSource as experimental_npmGlobalInstallSource, npmLatestVersion as experimental_npmLatestVersion, planStepsPresentation as experimental_planStepsPresentation, presentationDetail as experimental_presentationDetail, presentationFileName as experimental_presentationFileName, presentationTitle as experimental_presentationTitle, probeNpmGlobalPackage as experimental_probeNpmGlobalPackage, readBoundedLines as experimental_readBoundedLines, readCliVersion as experimental_readCliVersion, experimental_recordProviderChildIo, resolveExecutablePath as experimental_resolveExecutablePath, searchPresentation as experimental_searchPresentation, spawnPortableProcess as experimental_spawnPortableProcess, toolPresentation as experimental_toolPresentation, versionFrom as experimental_versionFrom, webFetchPresentation as experimental_webFetchPresentation, webSearchPresentation as experimental_webSearchPresentation, withTitle as experimental_withTitle, extensionKindSchema, extractResultText, getRawSdkMessage, getRecordProperty, getStringProperty, acpLaunchSpecSchema as hostDaemonAcpLaunchSpecSchema, initializeParamsSchema, instructionModeValues, interactionRequestPayloadSchema, isApprovalInteractionOutcome, isApprovalPendingInteractionPayload, isApprovalPendingInteractionResolution, isBackgroundAgentTaskType, isExtensionKind, isRecord, isSettledBackgroundTaskStatus, isStandaloneBuiltinCompactCommand, isUserQuestionPendingInteractionPayload, isUserQuestionPendingInteractionResolution, jsonRpcEnvelopeSchema, jsonValueSchema, mimeTypeFromExtension, modelListParamsSchema, normalizeAcpLaunchSpec as normalizeHostDaemonAcpLaunchSpec, normalizeProviderCommandOutput, pendingInteractionCommandActionSchema, pendingInteractionFileSystemPermissionsSchema, pendingInteractionMacOsPermissionsSchema, pendingInteractionNetworkPermissionsSchema, pendingInteractionRequestedPermissionProfileSchema, pendingInteractionResolutionSchema, permissionEscalationValues, providerHealthResultSchema, providerHealthSchema, providerInstallationActionKindSchema, providerInstallationActionSchema, providerInstallationCommandSchema, providerInstallationRequirementSchema, providerInstallationRunParamsSchema, providerInstallationRunResultSchema, providerInstallationSourceSchema, providerInstallationStatusParamsSchema, providerInstallationStatusSchema, providerInstallationVerificationSchema, providerInteractionOutcomeSchema, providerMaintenanceParamsSchema, providerRawEventSchema, providerRecoveryHintSchema, providerRecoveryKindSchema, providerRecoveryKindValues, providerRecoveryNotificationSchema, providerUsageResultSchema, providerUsageSchema, providerUsageWindowSchema, reasoningEffortsForLevels, reasoningLevelSchema, reasoningLevelValues, removeCommandMentionsFromPromptInput, runBridgeRequest, runtimePermissionScopeValues, sanitizeInheritedChildProcessEnv, sdkMessageEnvelopeSchema, shouldAutoDenyInteractiveRequest, skillsConfigureParamsSchema, textBlockSchema, threadArchiveParamsSchema, threadContextWindowUsageEnvelopeSchema, threadDeltaNotificationParamsSchema, threadDeltaSchema, threadDiscardParamsSchema, threadEventItemPresentationSchema, threadEventSearchModeSchema, threadForkParamsSchema, threadGoalClearParamsSchema, threadIdentityEnvelopeSchema, threadNameSetParamsSchema, threadResumeParamsSchema, threadStartParamsSchema, threadStopParamsSchema, threadUnarchiveParamsSchema, toNonNegativeNumber, toOptionalRecord, toOptionalString, toPositiveNumber, turnStartParamsSchema, turnSteerParamsSchema, userQuestionInteractionOutcomeSchema, withoutBridgeRuntimeEnv };
|
|
5238
|
+
export { BRIDGE_INBOUND_REQUEST_METHODS, BRIDGE_JSON_RPC_ERRORS, BRIDGE_NOTIFICATION_METHODS, BRIDGE_REQUEST_METHODS, HIGH_REASONING_EFFORT, LOCAL_BASH_TASK_TYPE, LOCAL_WORKFLOW_TASK_TYPE, LOW_REASONING_EFFORT, MAX_REASONING_EFFORT, MEDIUM_REASONING_EFFORT, PLUGIN_INTERACTION_MAX_TITLE_LENGTH, PROVIDER_BRIDGE_EXPORT_NAME, PROVIDER_BRIDGE_PROTOCOL_VERSION, ProviderRequestDecodeError, ProviderResponseEncodeError, THREAD_DELTA_GRAMMAR_V2, THREAD_DELTA_GRAMMAR_V3, THREAD_DELTA_NOTIFICATION_METHOD, ULTRACODE_REASONING_EFFORT, USER_QUESTION_MAX_OPTIONS, USER_QUESTION_MAX_QUESTIONS, XHIGH_REASONING_EFFORT, ZERO_TOKEN_USAGE, acpNativeReasoningSchema, acpPermissionCliSchema, acpReasoningCliSchema, addTokenUsage, approvalInteractionOutcomeSchema, backgroundTaskItemStatus, bashArgsSchema, bridgeCapabilitiesSchema, bridgeErrorDataSchema, bridgeGrammarVersionsSchema, bridgeRequestEnvelopeSchema, bridgeSteerModeSchema, buildShellEnvOverrides, claudeTaskToolNameSchema, claudeTaskToolOutputSchema, commandListParamsSchema, commandListResultSchema, contextSnapshotSchema, createBridgeIo, createBridgeLineHandler, createPendingToolCallTracker, createProviderVisibilityMetadata, decodeBridgeJsonRpcResponse, decodeToolCallResponsePayload, deltaBackgroundTaskShapeSchema, deltaDelegationShapeSchema, deltaExtensionShapeSchema, deltaFileChangeSchema, deltaFileReadShapeSchema, deltaItemKeySchema, deltaItemShapeSchema, deltaNoTurnFallbackSchema, deltaOutputChannelSchema, deltaPlanStepsShapeSchema, deltaPresentationSchema, deltaProgressSnapshotSchema, deltaSearchShapeSchema, deltaTextChannelSchema, dynamicToolSchema, errorEnvelopeSchema, BridgeRecoveryError as experimental_BridgeRecoveryError, COMPACTION_PRESENTATION as experimental_COMPACTION_PRESENTATION, REASONING_PRESENTATION as experimental_REASONING_PRESENTATION, buildBridgeToolCallContent as experimental_buildBridgeToolCallContent, clampPercent as experimental_clampPercent, commandOutput as experimental_commandOutput, compareVersions as experimental_compareVersions, experimental_defineProviderBridge, downloadedInstallerCommand as experimental_downloadedInstallerCommand, fileReadPresentation as experimental_fileReadPresentation, formatCommand as experimental_formatCommand, installationVerification as experimental_installationVerification, experimental_isProviderBridgeRecording, killPortableProcess as experimental_killPortableProcess, npmCommand as experimental_npmCommand, npmGlobalInstallCommand as experimental_npmGlobalInstallCommand, npmGlobalInstallSource as experimental_npmGlobalInstallSource, npmLatestVersion as experimental_npmLatestVersion, planStepsPresentation as experimental_planStepsPresentation, presentationDetail as experimental_presentationDetail, presentationFileName as experimental_presentationFileName, presentationTitle as experimental_presentationTitle, probeNpmGlobalPackage as experimental_probeNpmGlobalPackage, readBoundedLines as experimental_readBoundedLines, readCliVersion as experimental_readCliVersion, experimental_recordProviderChildIo, resolveExecutablePath as experimental_resolveExecutablePath, searchPresentation as experimental_searchPresentation, spawnPortableProcess as experimental_spawnPortableProcess, toolPresentation as experimental_toolPresentation, versionFrom as experimental_versionFrom, webFetchPresentation as experimental_webFetchPresentation, webSearchPresentation as experimental_webSearchPresentation, withTitle as experimental_withTitle, extensionKindSchema, extractResultText, getRawSdkMessage, getRecordProperty, getStringProperty, acpLaunchSpecSchema as hostDaemonAcpLaunchSpecSchema, initializeParamsSchema, instructionModeValues, interactionRequestPayloadSchema, isApprovalInteractionOutcome, isApprovalPendingInteractionPayload, isApprovalPendingInteractionResolution, isBackgroundAgentTaskType, isExtensionKind, isRecord, isSettledBackgroundTaskStatus, isStandaloneBuiltinCompactCommand, isUserQuestionPendingInteractionPayload, isUserQuestionPendingInteractionResolution, jsonRpcEnvelopeSchema, jsonValueSchema, mimeTypeFromExtension, modelListParamsSchema, normalizeAcpLaunchSpec as normalizeHostDaemonAcpLaunchSpec, normalizeProviderCommandOutput, pendingInteractionCommandActionSchema, pendingInteractionFileSystemPermissionsSchema, pendingInteractionMacOsPermissionsSchema, pendingInteractionNetworkPermissionsSchema, pendingInteractionRequestedPermissionProfileSchema, pendingInteractionResolutionSchema, permissionEscalationValues, providerHealthResultSchema, providerHealthSchema, providerInstallationActionKindSchema, providerInstallationActionSchema, providerInstallationCommandSchema, providerInstallationRequirementSchema, providerInstallationRunParamsSchema, providerInstallationRunResultSchema, providerInstallationSourceSchema, providerInstallationStatusParamsSchema, providerInstallationStatusSchema, providerInstallationVerificationSchema, providerInteractionOutcomeSchema, providerMaintenanceParamsSchema, providerRawEventSchema, providerRecoveryHintSchema, providerRecoveryKindSchema, providerRecoveryKindValues, providerRecoveryNotificationSchema, providerUsageResultSchema, providerUsageSchema, providerUsageWindowSchema, reasoningEffortsForLevels, reasoningLevelSchema, reasoningLevelValues, removeCommandMentionsFromPromptInput, runBridgeRequest, runtimePermissionScopeValues, sanitizeInheritedChildProcessEnv, sdkMessageEnvelopeSchema, shouldAutoDenyInteractiveRequest, skillsConfigureParamsSchema, textBlockSchema, threadArchiveParamsSchema, threadContextWindowUsageEnvelopeSchema, threadDeltaNotificationParamsSchema, threadDeltaSchema, threadDiscardParamsSchema, threadEventItemPresentationSchema, threadEventSearchModeSchema, threadForkParamsSchema, threadGoalClearParamsSchema, threadIdentityEnvelopeSchema, threadNameSetParamsSchema, threadResumeParamsSchema, threadStartParamsSchema, threadStopParamsSchema, threadUnarchiveParamsSchema, toNonNegativeNumber, toOptionalRecord, toOptionalString, toPositiveNumber, turnStartParamsSchema, turnSteerParamsSchema, userQuestionInteractionOutcomeSchema, withoutBridgeRuntimeEnv };
|
|
5207
5239
|
export type { ApprovalInteractionOutcome, ApprovalPendingInteractionPayload, AvailableModel, BackgroundTaskStatus, BackgroundTaskUsage, BoundedLineReaderArgs, BridgeCapabilities, BridgeErrorData, BridgeExecutionOptions, BridgeGrammarVersions, BridgeJsonRpcResponse, BridgeSendError, BridgeSteerMode, BridgeToolCallRequest, BuildInteractiveResponseArgs, ClaudeTaskToolOutput, ClientTurnRequestId, ContextCategory, ContextEntry, ContextSnapshot, DecodedInteractiveRequest, DeltaBackgroundTaskShape, DeltaDelegationShape, DeltaExtensionShape, DeltaFileChange, DeltaFileReadShape, DeltaItemKey, DeltaItemShape, DeltaItemShapeType, DeltaNoTurnFallback, DeltaOutputChannel, DeltaPlanStepsShape, DeltaPresentation, DeltaProgressSnapshot, DeltaSearchShape, DeltaTextChannel, DynamicTool, ExtensionKind, AcpLaunchSpec as HostDaemonAcpLaunchSpec, InitializeResult, InstructionMode, InteractionRequestPayload, JsonObject, JsonRpcMessage, JsonValue, ModelReasoningEffort, ModelServiceTier, NpmGlobalPackageProbe, PendingInteractionApprovalDecision, PendingInteractionApprovalSubject, PendingInteractionCommandAction, PendingInteractionGrantablePermissionProfile, PendingInteractionGrantedPermissionProfile, PendingInteractionPayload, PendingInteractionRequestedPermissionProfile, PendingInteractionResolution, PendingInteractionUserQuestionQuestion, PermissionEscalation, PermissionMode, PreparedProviderCommandDispatch, PromptInput, ProviderBridgeContext, ProviderBridgeDefinition, ProviderBridgeEntry, ProviderErrorCategory, ProviderErrorInfo, ProviderHealth, ProviderHealthResult, ProviderInboundRequest, ProviderInstallationAction, ProviderInstallationActionKind, ProviderInstallationCommand, ProviderInstallationRequirement, ProviderInstallationRunParams, ProviderInstallationRunResult, ProviderInstallationSource, ProviderInstallationStatus, ProviderInstallationStatusParams, ProviderInstallationVerification, ProviderInteractionOutcome, ProviderMaintenanceParams, ProviderPostInitializeRequest, ProviderRateLimitState, ProviderRateLimitStatus, ProviderRateLimitWindow, ProviderRawEvent, ProviderRawEventCoverage, ProviderRawEventDescription, ProviderRecoveryHint, ProviderRecoveryKind, ProviderRecoveryNotification, ProviderRuntimeEvent, ProviderUsage, ProviderUsageResult, ProviderUsageWindow, ProviderVisibilityMetadata, ReasoningLevel, RuntimePermissionPolicy, RuntimePermissionScope, ServiceTier, ThreadDelta, ThreadDeltaKind, ThreadDeltaNotificationParams, ThreadEventContextWindowUsage, ThreadEventItemPresentation, ThreadEventItemStatus, ThreadEventPlanStep, ThreadEventSearchMode, ThreadEventTokenUsageBreakdown, ThreadEventTurnStatus, ThreadEventUserContent, UserQuestionInteractionOutcome, UserQuestionPendingInteractionPayload, UserQuestionPendingInteractionResolution, WorkflowAgentSnapshot, WorkflowAgentState, WorkflowPhaseSnapshot, WorkflowProgressSnapshot };
|
|
@@ -273,6 +273,7 @@ type ProviderFork = (typeof PROVIDER_FORK_VALUES)[number];
|
|
|
273
273
|
declare const threadResponseSchema: z.ZodObject<{
|
|
274
274
|
activeBackgroundAgentCount: z.ZodNumber;
|
|
275
275
|
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
276
|
+
canEditMessages: z.ZodBoolean;
|
|
276
277
|
canRestoreEnvironment: z.ZodBoolean;
|
|
277
278
|
canSpawnChild: z.ZodBoolean;
|
|
278
279
|
createdAt: z.ZodNumber;
|
|
@@ -67,6 +67,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
|
|
|
67
67
|
streamerMode: z$1.ZodBoolean;
|
|
68
68
|
summarizeShellCommands: z$1.ZodBoolean;
|
|
69
69
|
telemetryEnabled: z$1.ZodBoolean;
|
|
70
|
+
terminalCopyOnSelect: z$1.ZodBoolean;
|
|
70
71
|
}, z$1.core.$strict>;
|
|
71
72
|
type AppSettings = z$1.infer<typeof appSettingsSchema>;
|
|
72
73
|
declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
@@ -93,6 +94,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
93
94
|
streamerMode: z$1.ZodBoolean;
|
|
94
95
|
summarizeShellCommands: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
95
96
|
telemetryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
97
|
+
terminalCopyOnSelect: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
96
98
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
97
99
|
allowFastServiceTier: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
98
100
|
confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -116,6 +118,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
116
118
|
streamerMode: z$1.ZodBoolean;
|
|
117
119
|
summarizeShellCommands: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
118
120
|
telemetryEnabled: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
121
|
+
terminalCopyOnSelect: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
119
122
|
}, z$1.core.$strict>]>;
|
|
120
123
|
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
121
124
|
|
|
@@ -329,7 +332,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
329
332
|
id: z$1.ZodOptional<z$1.ZodString>;
|
|
330
333
|
metadata: z$1.ZodOptional<z$1.ZodObject<{
|
|
331
334
|
backgroundActivityChanged: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
332
|
-
eventTypes: z$1.ZodOptional<z$1.ZodReadonly<z$1.ZodArray<z$1.ZodString & z$1.ZodType<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/delegation/completed" | "item/delegation/progress" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider.env-resolved" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/interaction/lifecycle" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/extensionState/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/plan/updated" | "turn/started", string, z$1.core.$ZodTypeInternals<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/delegation/completed" | "item/delegation/progress" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider.env-resolved" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/interaction/lifecycle" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/extensionState/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/plan/updated" | "turn/started", string>>>>>;
|
|
335
|
+
eventTypes: z$1.ZodOptional<z$1.ZodReadonly<z$1.ZodArray<z$1.ZodString & z$1.ZodType<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/delegation/completed" | "item/delegation/progress" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider.env-resolved" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/interaction/lifecycle" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/extensionState/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/mainRun/updated" | "turn/plan/updated" | "turn/started", string, z$1.core.$ZodTypeInternals<"client/thread/start" | "client/turn/rejected" | "client/turn/requested" | "client/turn/start" | "item/agentMessage/delta" | "item/backgroundTask/completed" | "item/backgroundTask/progress" | "item/commandExecution/outputDelta" | "item/completed" | "item/delegation/completed" | "item/delegation/progress" | "item/fileChange/outputDelta" | "item/mcpToolCall/progress" | "item/plan/delta" | "item/reasoning/summaryTextDelta" | "item/reasoning/textDelta" | "item/started" | "item/toolCall/progress" | "provider.env-resolved" | "provider/error" | "provider/modelFallback" | "provider/rateLimits/updated" | "provider/unhandled" | "provider/warning" | "system/error" | "system/interaction/lifecycle" | "system/manager/user_message" | "system/operation" | "system/permissionGrant/lifecycle" | "system/provider-turn-watchdog" | "system/thread-provisioning" | "system/thread/interrupted" | "system/userQuestion/lifecycle" | "thread/compacted" | "thread/context/cleared" | "thread/contextWindowUsage/updated" | "thread/extensionState/updated" | "thread/goal/cleared" | "thread/goal/updated" | "thread/identity" | "thread/name/updated" | "thread/started" | "thread/tokenUsage/updated" | "turn/completed" | "turn/diff/updated" | "turn/input/accepted" | "turn/mainRun/updated" | "turn/plan/updated" | "turn/started", string>>>>>;
|
|
333
336
|
hasPendingInteraction: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
334
337
|
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
335
338
|
statusChange: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -877,6 +880,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
877
880
|
movePath: z$1.ZodOptional<z$1.ZodString>;
|
|
878
881
|
path: z$1.ZodString;
|
|
879
882
|
}, z$1.core.$strip>>;
|
|
883
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
880
884
|
id: z$1.ZodString;
|
|
881
885
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
882
886
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -1643,6 +1647,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
1643
1647
|
movePath: z$1.ZodOptional<z$1.ZodString>;
|
|
1644
1648
|
path: z$1.ZodString;
|
|
1645
1649
|
}, z$1.core.$strip>>;
|
|
1650
|
+
error: z$1.ZodOptional<z$1.ZodString>;
|
|
1646
1651
|
id: z$1.ZodString;
|
|
1647
1652
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1648
1653
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -2703,6 +2708,14 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2703
2708
|
providerThreadId: z$1.ZodString;
|
|
2704
2709
|
threadId: z$1.ZodString;
|
|
2705
2710
|
type: z$1.ZodLiteral<"turn/plan/updated">;
|
|
2711
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2712
|
+
providerThreadId: z$1.ZodString;
|
|
2713
|
+
state: z$1.ZodEnum<{
|
|
2714
|
+
idle: "idle";
|
|
2715
|
+
running: "running";
|
|
2716
|
+
}>;
|
|
2717
|
+
threadId: z$1.ZodString;
|
|
2718
|
+
type: z$1.ZodLiteral<"turn/mainRun/updated">;
|
|
2706
2719
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2707
2720
|
diff: z$1.ZodOptional<z$1.ZodString>;
|
|
2708
2721
|
providerThreadId: z$1.ZodString;
|
|
@@ -3093,6 +3106,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3093
3106
|
"child-interrupted": "child-interrupted";
|
|
3094
3107
|
"child-needs-attention": "child-needs-attention";
|
|
3095
3108
|
"child-outcome-batch": "child-outcome-batch";
|
|
3109
|
+
"environment-directory-updated": "environment-directory-updated";
|
|
3096
3110
|
"ownership-assigned": "ownership-assigned";
|
|
3097
3111
|
"ownership-removed": "ownership-removed";
|
|
3098
3112
|
"tool-result-delivered": "tool-result-delivered";
|
|
@@ -3143,6 +3157,9 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3143
3157
|
kind: z$1.ZodLiteral<"tool-call">;
|
|
3144
3158
|
suppress: z$1.ZodBoolean;
|
|
3145
3159
|
toolName: z$1.ZodString;
|
|
3160
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3161
|
+
kind: z$1.ZodLiteral<"directory">;
|
|
3162
|
+
path: z$1.ZodString;
|
|
3146
3163
|
}, z$1.core.$strip>], "kind">>>;
|
|
3147
3164
|
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3148
3165
|
kind: z$1.ZodLiteral<"thread-start">;
|
|
@@ -8140,6 +8157,22 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8140
8157
|
kind: z$1.ZodLiteral<"artifact">;
|
|
8141
8158
|
}, z$1.core.$strict>;
|
|
8142
8159
|
}, z$1.core.$strict>;
|
|
8160
|
+
contributedEnv: z$1.ZodArray<z$1.ZodObject<{
|
|
8161
|
+
name: z$1.ZodString;
|
|
8162
|
+
reason: z$1.ZodString;
|
|
8163
|
+
source: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
8164
|
+
plugin: z$1.ZodString;
|
|
8165
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8166
|
+
core: z$1.ZodEnum<{
|
|
8167
|
+
"machine-environment": "machine-environment";
|
|
8168
|
+
"machine-git": "machine-git";
|
|
8169
|
+
"project-environment": "project-environment";
|
|
8170
|
+
}>;
|
|
8171
|
+
}, z$1.core.$strict>]>;
|
|
8172
|
+
value: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
|
|
8173
|
+
serverPath: z$1.ZodString;
|
|
8174
|
+
}, z$1.core.$strict>]>;
|
|
8175
|
+
}, z$1.core.$strict>>;
|
|
8143
8176
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
8144
8177
|
providerId: z$1.ZodString;
|
|
8145
8178
|
type: z$1.ZodLiteral<"provider.list_models">;
|
|
@@ -8227,6 +8260,43 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8227
8260
|
}, z$1.core.$strip>>>;
|
|
8228
8261
|
}, z$1.core.$strip>>;
|
|
8229
8262
|
}, z$1.core.$strip>, "onlineRpc", true>;
|
|
8263
|
+
"provider.list_commands": HostDaemonCommandDescriptor<"provider.list_commands", z$1.ZodObject<{
|
|
8264
|
+
bridgeLaunch: z$1.ZodObject<{
|
|
8265
|
+
capabilities: z$1.ZodObject<{
|
|
8266
|
+
fork: z$1.ZodEnum<{
|
|
8267
|
+
checkpoint: "checkpoint";
|
|
8268
|
+
none: "none";
|
|
8269
|
+
tip: "tip";
|
|
8270
|
+
}>;
|
|
8271
|
+
permissionModes: z$1.ZodArray<z$1.ZodEnum<{
|
|
8272
|
+
"accept-edits": "accept-edits";
|
|
8273
|
+
auto: "auto";
|
|
8274
|
+
full: "full";
|
|
8275
|
+
}>>;
|
|
8276
|
+
providerInstallation: z$1.ZodBoolean;
|
|
8277
|
+
supportsServiceTier: z$1.ZodBoolean;
|
|
8278
|
+
supportsThreadArchive: z$1.ZodBoolean;
|
|
8279
|
+
supportsThreadRename: z$1.ZodBoolean;
|
|
8280
|
+
}, z$1.core.$strict>;
|
|
8281
|
+
envPassthrough: z$1.ZodArray<z$1.ZodString>;
|
|
8282
|
+
pluginId: z$1.ZodString;
|
|
8283
|
+
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
8284
|
+
source: z$1.ZodObject<{
|
|
8285
|
+
byteLength: z$1.ZodNumber;
|
|
8286
|
+
digest: z$1.ZodString;
|
|
8287
|
+
kind: z$1.ZodLiteral<"artifact">;
|
|
8288
|
+
}, z$1.core.$strict>;
|
|
8289
|
+
}, z$1.core.$strict>;
|
|
8290
|
+
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
8291
|
+
providerId: z$1.ZodString;
|
|
8292
|
+
type: z$1.ZodLiteral<"provider.list_commands">;
|
|
8293
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8294
|
+
commands: z$1.ZodArray<z$1.ZodObject<{
|
|
8295
|
+
description: z$1.ZodString;
|
|
8296
|
+
inputHint: z$1.ZodOptional<z$1.ZodString>;
|
|
8297
|
+
name: z$1.ZodString;
|
|
8298
|
+
}, z$1.core.$strip>>;
|
|
8299
|
+
}, z$1.core.$strip>, "onlineRpc", true>;
|
|
8230
8300
|
"provider.health": HostDaemonCommandDescriptor<"provider.health", z$1.ZodObject<{
|
|
8231
8301
|
bridgeLaunch: z$1.ZodObject<{
|
|
8232
8302
|
capabilities: z$1.ZodObject<{
|
|
@@ -10879,6 +10949,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10879
10949
|
streamerMode: z$1.ZodBoolean;
|
|
10880
10950
|
summarizeShellCommands: z$1.ZodBoolean;
|
|
10881
10951
|
telemetryEnabled: z$1.ZodBoolean;
|
|
10952
|
+
terminalCopyOnSelect: z$1.ZodBoolean;
|
|
10882
10953
|
}, z$1.core.$strict>;
|
|
10883
10954
|
hostDaemonPort: z$1.ZodNullable<z$1.ZodNumber>;
|
|
10884
10955
|
keybindingOverrides: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -11755,6 +11826,7 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
|
|
|
11755
11826
|
"child-interrupted": "child-interrupted";
|
|
11756
11827
|
"child-needs-attention": "child-needs-attention";
|
|
11757
11828
|
"child-outcome-batch": "child-outcome-batch";
|
|
11829
|
+
"environment-directory-updated": "environment-directory-updated";
|
|
11758
11830
|
"ownership-assigned": "ownership-assigned";
|
|
11759
11831
|
"ownership-removed": "ownership-removed";
|
|
11760
11832
|
"tool-result-delivered": "tool-result-delivered";
|
|
@@ -11805,6 +11877,9 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
|
|
|
11805
11877
|
kind: z$1.ZodLiteral<"tool-call">;
|
|
11806
11878
|
suppress: z$1.ZodBoolean;
|
|
11807
11879
|
toolName: z$1.ZodString;
|
|
11880
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11881
|
+
kind: z$1.ZodLiteral<"directory">;
|
|
11882
|
+
path: z$1.ZodString;
|
|
11808
11883
|
}, z$1.core.$strip>], "kind">>;
|
|
11809
11884
|
text: z$1.ZodString;
|
|
11810
11885
|
threadId: z$1.ZodString;
|
|
@@ -14459,6 +14534,7 @@ type ThreadSearchResponse = z$1.infer<typeof threadSearchResponseSchema>;
|
|
|
14459
14534
|
declare const threadResponseSchema: z$1.ZodObject<{
|
|
14460
14535
|
activeBackgroundAgentCount: z$1.ZodNumber;
|
|
14461
14536
|
archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
14537
|
+
canEditMessages: z$1.ZodBoolean;
|
|
14462
14538
|
canRestoreEnvironment: z$1.ZodBoolean;
|
|
14463
14539
|
canSpawnChild: z$1.ZodBoolean;
|
|
14464
14540
|
createdAt: z$1.ZodNumber;
|
|
@@ -14542,6 +14618,7 @@ type ThreadDescendantsListResponse = z$1.infer<typeof threadDescendantsListRespo
|
|
|
14542
14618
|
declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
14543
14619
|
activeBackgroundAgentCount: z$1.ZodNumber;
|
|
14544
14620
|
archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
14621
|
+
canEditMessages: z$1.ZodBoolean;
|
|
14545
14622
|
canRestoreEnvironment: z$1.ZodBoolean;
|
|
14546
14623
|
canSpawnChild: z$1.ZodBoolean;
|
|
14547
14624
|
createdAt: z$1.ZodNumber;
|
|
@@ -15410,6 +15487,7 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15410
15487
|
"child-interrupted": "child-interrupted";
|
|
15411
15488
|
"child-needs-attention": "child-needs-attention";
|
|
15412
15489
|
"child-outcome-batch": "child-outcome-batch";
|
|
15490
|
+
"environment-directory-updated": "environment-directory-updated";
|
|
15413
15491
|
"ownership-assigned": "ownership-assigned";
|
|
15414
15492
|
"ownership-removed": "ownership-removed";
|
|
15415
15493
|
"tool-result-delivered": "tool-result-delivered";
|
|
@@ -15460,6 +15538,9 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15460
15538
|
kind: z$1.ZodLiteral<"tool-call">;
|
|
15461
15539
|
suppress: z$1.ZodBoolean;
|
|
15462
15540
|
toolName: z$1.ZodString;
|
|
15541
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
15542
|
+
kind: z$1.ZodLiteral<"directory">;
|
|
15543
|
+
path: z$1.ZodString;
|
|
15463
15544
|
}, z$1.core.$strip>], "kind">>;
|
|
15464
15545
|
text: z$1.ZodString;
|
|
15465
15546
|
threadId: z$1.ZodString;
|
|
@@ -15595,6 +15676,7 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15595
15676
|
"child-interrupted": "child-interrupted";
|
|
15596
15677
|
"child-needs-attention": "child-needs-attention";
|
|
15597
15678
|
"child-outcome-batch": "child-outcome-batch";
|
|
15679
|
+
"environment-directory-updated": "environment-directory-updated";
|
|
15598
15680
|
"ownership-assigned": "ownership-assigned";
|
|
15599
15681
|
"ownership-removed": "ownership-removed";
|
|
15600
15682
|
"tool-result-delivered": "tool-result-delivered";
|
|
@@ -15645,6 +15727,9 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15645
15727
|
kind: z$1.ZodLiteral<"tool-call">;
|
|
15646
15728
|
suppress: z$1.ZodBoolean;
|
|
15647
15729
|
toolName: z$1.ZodString;
|
|
15730
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
15731
|
+
kind: z$1.ZodLiteral<"directory">;
|
|
15732
|
+
path: z$1.ZodString;
|
|
15648
15733
|
}, z$1.core.$strip>], "kind">>;
|
|
15649
15734
|
text: z$1.ZodString;
|
|
15650
15735
|
threadId: z$1.ZodString;
|
|
@@ -15780,6 +15865,7 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15780
15865
|
"child-interrupted": "child-interrupted";
|
|
15781
15866
|
"child-needs-attention": "child-needs-attention";
|
|
15782
15867
|
"child-outcome-batch": "child-outcome-batch";
|
|
15868
|
+
"environment-directory-updated": "environment-directory-updated";
|
|
15783
15869
|
"ownership-assigned": "ownership-assigned";
|
|
15784
15870
|
"ownership-removed": "ownership-removed";
|
|
15785
15871
|
"tool-result-delivered": "tool-result-delivered";
|
|
@@ -15830,6 +15916,9 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15830
15916
|
kind: z$1.ZodLiteral<"tool-call">;
|
|
15831
15917
|
suppress: z$1.ZodBoolean;
|
|
15832
15918
|
toolName: z$1.ZodString;
|
|
15919
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
15920
|
+
kind: z$1.ZodLiteral<"directory">;
|
|
15921
|
+
path: z$1.ZodString;
|
|
15833
15922
|
}, z$1.core.$strip>], "kind">>;
|
|
15834
15923
|
text: z$1.ZodString;
|
|
15835
15924
|
threadId: z$1.ZodString;
|
|
@@ -18905,8 +18994,12 @@ interface ExperimentalSidebarNavigationActions {
|
|
|
18905
18994
|
/**
|
|
18906
18995
|
* Run the item's host behavior. Plugin panels close the mobile sidebar
|
|
18907
18996
|
* drawer; Plugins and Skills swap the list beside the navigation.
|
|
18908
|
-
* `openInSplit`
|
|
18909
|
-
*
|
|
18997
|
+
* `openInSplit` opens Plugins and Skills in a browser tab because those
|
|
18998
|
+
* destinations do not support splits. New thread and plugin panels retain
|
|
18999
|
+
* their split placement rules, including in-place navigation on compact
|
|
19000
|
+
* screens. Search remains a command. Disabled or loading items do nothing.
|
|
19001
|
+
* Browser-tab activation must run synchronously from a user gesture;
|
|
19002
|
+
* native shells handle the new-window request using their existing policy.
|
|
18910
19003
|
*/
|
|
18911
19004
|
activate(itemId: string, options: ExperimentalSidebarNavigationActivationOptions): void;
|
|
18912
19005
|
/**
|
|
@@ -24348,9 +24441,13 @@ interface PluginProviders {
|
|
|
24348
24441
|
experimental_contributeEnv(providerId: string, resolve: (context: ExperimentalPluginProviderEnvContext) => readonly ExperimentalPluginProviderEnvEntry[] | Promise<readonly ExperimentalPluginProviderEnvEntry[]>): void;
|
|
24349
24442
|
experimental_contributeEnvHealth(providerId: string, resolve: (context: ExperimentalPluginProviderEnvHealthContext) => ExperimentalPluginProviderEnvHealth | null | Promise<ExperimentalPluginProviderEnvHealth | null>): void;
|
|
24350
24443
|
}
|
|
24444
|
+
/**
|
|
24445
|
+
* `threadId` and `projectId` are `null` when bb resolves the environment for a
|
|
24446
|
+
* provider process that serves no thread, such as model catalog listing.
|
|
24447
|
+
*/
|
|
24351
24448
|
interface ExperimentalPluginProviderEnvContext {
|
|
24352
|
-
threadId: string;
|
|
24353
|
-
projectId: string;
|
|
24449
|
+
threadId: string | null;
|
|
24450
|
+
projectId: string | null;
|
|
24354
24451
|
hostId: string;
|
|
24355
24452
|
}
|
|
24356
24453
|
interface ExperimentalPluginProviderEnvEntry {
|
package/dist/host.js
CHANGED
|
@@ -805,6 +805,155 @@ function spawnPortableOutputProcess(request) {
|
|
|
805
805
|
return child;
|
|
806
806
|
}
|
|
807
807
|
|
|
808
|
+
// ../process-utils/src/vcs-process-scheduler.ts
|
|
809
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
810
|
+
import { availableParallelism } from "node:os";
|
|
811
|
+
var ranks = { interactive: 0, status: 1, background: 2 };
|
|
812
|
+
function localProcessCapacities(parallelism) {
|
|
813
|
+
const total = Math.min(6, Math.max(4, parallelism - 2));
|
|
814
|
+
return [total, total - 1, total - 2];
|
|
815
|
+
}
|
|
816
|
+
var capacities = {
|
|
817
|
+
local: localProcessCapacities(availableParallelism()),
|
|
818
|
+
network: [4, 3, 2]
|
|
819
|
+
};
|
|
820
|
+
var githubCapacity = 2;
|
|
821
|
+
var agingMs = 15e3;
|
|
822
|
+
var networkGitSubcommands = /* @__PURE__ */ new Set([
|
|
823
|
+
"fetch",
|
|
824
|
+
"pull",
|
|
825
|
+
"push",
|
|
826
|
+
"clone",
|
|
827
|
+
"ls-remote"
|
|
828
|
+
]);
|
|
829
|
+
var gitGlobalOptionsWithValue = /* @__PURE__ */ new Set([
|
|
830
|
+
"-C",
|
|
831
|
+
"-c",
|
|
832
|
+
"--git-dir",
|
|
833
|
+
"--work-tree",
|
|
834
|
+
"--namespace",
|
|
835
|
+
"--config-env"
|
|
836
|
+
]);
|
|
837
|
+
function isNetworkGitCommand(args) {
|
|
838
|
+
let index = 0;
|
|
839
|
+
while (index < args.length && args[index].startsWith("-")) {
|
|
840
|
+
index += gitGlobalOptionsWithValue.has(args[index]) ? 2 : 1;
|
|
841
|
+
}
|
|
842
|
+
const subcommand = args[index];
|
|
843
|
+
if (subcommand === void 0) return false;
|
|
844
|
+
if (networkGitSubcommands.has(subcommand)) return true;
|
|
845
|
+
const action = args.slice(index + 1).find((arg) => !arg.startsWith("-"));
|
|
846
|
+
return (subcommand === "submodule" || subcommand === "remote") && action === "update";
|
|
847
|
+
}
|
|
848
|
+
var VcsProcessScheduler = class {
|
|
849
|
+
priority = new AsyncLocalStorage();
|
|
850
|
+
admitted = new AsyncLocalStorage();
|
|
851
|
+
active = { local: 0, network: 0 };
|
|
852
|
+
githubActive = 0;
|
|
853
|
+
queue = [];
|
|
854
|
+
timer;
|
|
855
|
+
acquire(command, args, options) {
|
|
856
|
+
const pool = command === "gh" || isNetworkGitCommand(args) ? "network" : "local";
|
|
857
|
+
const slots = options.slots ?? 1;
|
|
858
|
+
if (!Number.isInteger(slots) || slots < 1 || slots > capacities[pool][ranks.background]) {
|
|
859
|
+
return Promise.reject(new Error("Invalid VCS process slot count"));
|
|
860
|
+
}
|
|
861
|
+
if (options.signal?.aborted) {
|
|
862
|
+
return Promise.reject(this.abortError(options.signal));
|
|
863
|
+
}
|
|
864
|
+
return new Promise((grant, reject) => {
|
|
865
|
+
const waiter = {
|
|
866
|
+
command,
|
|
867
|
+
pool,
|
|
868
|
+
priority: options.priority ?? this.priority.getStore() ?? "status",
|
|
869
|
+
slots,
|
|
870
|
+
queuedAt: performance.now(),
|
|
871
|
+
signal: options.signal,
|
|
872
|
+
grant,
|
|
873
|
+
onAbort: () => {
|
|
874
|
+
const index = this.queue.indexOf(waiter);
|
|
875
|
+
if (index === -1) return;
|
|
876
|
+
this.queue.splice(index, 1);
|
|
877
|
+
reject(this.abortError(options.signal));
|
|
878
|
+
this.drain();
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
this.queue.push(waiter);
|
|
882
|
+
options.signal?.addEventListener("abort", waiter.onAbort, { once: true });
|
|
883
|
+
this.drain();
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
abortError(signal) {
|
|
887
|
+
return Object.assign(
|
|
888
|
+
new Error("The operation was aborted", { cause: signal?.reason }),
|
|
889
|
+
{
|
|
890
|
+
name: "AbortError",
|
|
891
|
+
code: "ABORT_ERR"
|
|
892
|
+
}
|
|
893
|
+
);
|
|
894
|
+
}
|
|
895
|
+
rank(waiter) {
|
|
896
|
+
return Math.max(
|
|
897
|
+
0,
|
|
898
|
+
ranks[waiter.priority] - Math.floor((performance.now() - waiter.queuedAt) / agingMs)
|
|
899
|
+
);
|
|
900
|
+
}
|
|
901
|
+
drain() {
|
|
902
|
+
clearTimeout(this.timer);
|
|
903
|
+
this.queue.sort(
|
|
904
|
+
(a, b) => this.rank(a) - this.rank(b) || a.queuedAt - b.queuedAt
|
|
905
|
+
);
|
|
906
|
+
const blocked = /* @__PURE__ */ new Set();
|
|
907
|
+
for (let index = 0; index < this.queue.length; ) {
|
|
908
|
+
const waiter = this.queue[index];
|
|
909
|
+
if (blocked.has(waiter.pool) || waiter.command === "gh" && this.githubActive + waiter.slots > githubCapacity) {
|
|
910
|
+
index += 1;
|
|
911
|
+
continue;
|
|
912
|
+
}
|
|
913
|
+
if (this.active[waiter.pool] + waiter.slots > capacities[waiter.pool][this.rank(waiter)]) {
|
|
914
|
+
blocked.add(waiter.pool);
|
|
915
|
+
index += 1;
|
|
916
|
+
continue;
|
|
917
|
+
}
|
|
918
|
+
this.queue.splice(index, 1);
|
|
919
|
+
waiter.signal?.removeEventListener("abort", waiter.onAbort);
|
|
920
|
+
this.active[waiter.pool] += waiter.slots;
|
|
921
|
+
if (waiter.command === "gh") this.githubActive += waiter.slots;
|
|
922
|
+
let released = false;
|
|
923
|
+
waiter.grant(() => {
|
|
924
|
+
if (released) return;
|
|
925
|
+
released = true;
|
|
926
|
+
this.active[waiter.pool] -= waiter.slots;
|
|
927
|
+
if (waiter.command === "gh") this.githubActive -= waiter.slots;
|
|
928
|
+
this.drain();
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
if (this.queue.length > 0) {
|
|
932
|
+
const delay2 = Math.min(
|
|
933
|
+
...this.queue.map(
|
|
934
|
+
(waiter) => agingMs - (performance.now() - waiter.queuedAt) % agingMs
|
|
935
|
+
)
|
|
936
|
+
);
|
|
937
|
+
this.timer = setTimeout(() => this.drain(), delay2);
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
};
|
|
941
|
+
var registry = globalThis;
|
|
942
|
+
var scheduler = registry.__bbVcsProcessScheduler ??= new VcsProcessScheduler();
|
|
943
|
+
async function runVcsProcess(command, args, operation, options = {}) {
|
|
944
|
+
if (scheduler.admitted.getStore()) {
|
|
945
|
+
options.signal?.throwIfAborted();
|
|
946
|
+
return operation();
|
|
947
|
+
}
|
|
948
|
+
const release = await scheduler.acquire(command, args, options);
|
|
949
|
+
try {
|
|
950
|
+
options.signal?.throwIfAborted();
|
|
951
|
+
return await scheduler.admitted.run(true, operation);
|
|
952
|
+
} finally {
|
|
953
|
+
release();
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
|
|
808
957
|
// ../process-utils/src/cwd-processes.ts
|
|
809
958
|
import { lstat, readdir, readlink, realpath } from "node:fs/promises";
|
|
810
959
|
import { basename, dirname, join, resolve, sep } from "node:path";
|
|
@@ -1037,11 +1186,6 @@ function parseElapsedSeconds(rawElapsed) {
|
|
|
1037
1186
|
return ((days * 24 + hours) * 60 + minutes) * 60 + seconds;
|
|
1038
1187
|
}
|
|
1039
1188
|
|
|
1040
|
-
// ../process-utils/src/performance-diagnostics.ts
|
|
1041
|
-
import { Session } from "node:inspector/promises";
|
|
1042
|
-
var PROFILE_RETENTION_MS = 12 * 60 * 60 * 1e3;
|
|
1043
|
-
var MAX_PROFILE_BYTES = 12 * 1024 * 1024;
|
|
1044
|
-
|
|
1045
1189
|
// src/kill-processes.ts
|
|
1046
1190
|
function experimental_killProcessesWithCwdUnder(args) {
|
|
1047
1191
|
if ("directory" in args && typeof args.directory === "string")
|
|
@@ -1066,6 +1210,7 @@ export {
|
|
|
1066
1210
|
experimental_readProcessIdentity,
|
|
1067
1211
|
experimental_resolveClaudePluginRoots,
|
|
1068
1212
|
experimental_resolveVendorPluginRoots,
|
|
1213
|
+
runVcsProcess as experimental_runVcsProcess,
|
|
1069
1214
|
sanitizeInheritedChildProcessEnv as experimental_sanitizeInheritedChildProcessEnv,
|
|
1070
1215
|
spawnPortableOutputProcess as experimental_spawnPortableOutputProcess
|
|
1071
1216
|
};
|