pybao-xc-sdk 1.5.54 → 1.5.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +100 -147
- package/dist/index.d.ts +100 -147
- package/dist/index.js +437 -455
- package/dist/index.mjs +433 -446
- package/package.json +4 -19
package/dist/index.d.mts
CHANGED
|
@@ -2254,6 +2254,7 @@ interface SessionInfo {
|
|
|
2254
2254
|
messageCount: number;
|
|
2255
2255
|
createdAt: number;
|
|
2256
2256
|
updatedAt: number;
|
|
2257
|
+
cwd?: string;
|
|
2257
2258
|
config: {
|
|
2258
2259
|
model: string;
|
|
2259
2260
|
agent: string;
|
|
@@ -2316,14 +2317,49 @@ interface SetDefaultModelRequest {
|
|
|
2316
2317
|
providerID: string;
|
|
2317
2318
|
modelID: string;
|
|
2318
2319
|
scope?: 'global' | 'workspace';
|
|
2320
|
+
workspaceRoot?: string;
|
|
2321
|
+
}
|
|
2322
|
+
interface GetDefaultModelRequest {
|
|
2323
|
+
workspaceRoot?: string;
|
|
2324
|
+
}
|
|
2325
|
+
interface GetDefaultModelResponse extends Partial<ModelRef> {
|
|
2326
|
+
scope: 'global' | 'workspace';
|
|
2327
|
+
requestedScope: 'global' | 'workspace';
|
|
2328
|
+
applied: boolean;
|
|
2329
|
+
fallbackReason: string | null;
|
|
2330
|
+
current: ModelRef | null;
|
|
2319
2331
|
}
|
|
2320
2332
|
interface SetDefaultModelResponse {
|
|
2321
|
-
scope: 'global';
|
|
2333
|
+
scope: 'global' | 'workspace';
|
|
2322
2334
|
requestedScope: 'global' | 'workspace';
|
|
2323
2335
|
applied: boolean;
|
|
2324
2336
|
fallbackReason: string | null;
|
|
2325
2337
|
current: ModelRef;
|
|
2326
2338
|
}
|
|
2339
|
+
interface ModelCatalogItem extends ModelRef {
|
|
2340
|
+
profileName: string;
|
|
2341
|
+
enabled: boolean;
|
|
2342
|
+
providerQualifiedModelID: string;
|
|
2343
|
+
sourceSummary: Array<'config' | 'env' | 'auth' | 'plugin' | 'cli'>;
|
|
2344
|
+
}
|
|
2345
|
+
interface ModelCatalogResponse {
|
|
2346
|
+
items: ModelCatalogItem[];
|
|
2347
|
+
default: ModelRef | null;
|
|
2348
|
+
}
|
|
2349
|
+
interface ResolveRuntimeModelRequest {
|
|
2350
|
+
providerID: string;
|
|
2351
|
+
modelID: string;
|
|
2352
|
+
}
|
|
2353
|
+
interface ResolveRuntimeModelResponse extends ModelRef {
|
|
2354
|
+
profileName: string;
|
|
2355
|
+
providerQualifiedModelID: string;
|
|
2356
|
+
authState: 'configured';
|
|
2357
|
+
credentialSource: 'auth' | 'env';
|
|
2358
|
+
credentialsMasked: true;
|
|
2359
|
+
adapterType: 'responses_api' | 'chat_completions';
|
|
2360
|
+
adapterClass: string;
|
|
2361
|
+
baseURL: string | null;
|
|
2362
|
+
}
|
|
2327
2363
|
interface ModelPoolSourceRecord {
|
|
2328
2364
|
pluginSpec: string;
|
|
2329
2365
|
pluginID: string;
|
|
@@ -2344,6 +2380,7 @@ interface ModelPoolStatusResponse {
|
|
|
2344
2380
|
}
|
|
2345
2381
|
interface CreateSessionRequest {
|
|
2346
2382
|
resumeFrom?: string;
|
|
2383
|
+
cwd?: string;
|
|
2347
2384
|
config?: {
|
|
2348
2385
|
model?: string;
|
|
2349
2386
|
agent?: string;
|
|
@@ -2353,12 +2390,30 @@ interface CreateSessionRequest {
|
|
|
2353
2390
|
interface CreateSessionResponse {
|
|
2354
2391
|
sessionId: string;
|
|
2355
2392
|
createdAt: number;
|
|
2393
|
+
cwd?: string;
|
|
2356
2394
|
config: {
|
|
2357
2395
|
model: string;
|
|
2358
2396
|
agent: string;
|
|
2359
2397
|
outputStyle: string;
|
|
2360
2398
|
};
|
|
2361
2399
|
}
|
|
2400
|
+
type WorkspaceButtonGateReason = 'supported' | 'health_unavailable' | 'create_echo_missing' | 'session_echo_missing' | 'list_echo_missing' | 'probe_failed';
|
|
2401
|
+
interface WorkspaceButtonCopy {
|
|
2402
|
+
label: '新会话工作区';
|
|
2403
|
+
description: '工作区切换影响新会话运行目录';
|
|
2404
|
+
sharedModelNotice: '模型池仍为全局共享,默认模型可按工作区覆盖';
|
|
2405
|
+
disabledNotice: '当前 pyb 版本未完成工作区能力升级时,此功能保持禁用';
|
|
2406
|
+
}
|
|
2407
|
+
interface WorkspaceNewSessionButtonState {
|
|
2408
|
+
enabled: boolean;
|
|
2409
|
+
reason: WorkspaceButtonGateReason;
|
|
2410
|
+
requestedCwd: string;
|
|
2411
|
+
serverVersion?: string;
|
|
2412
|
+
createEchoedCwd?: string;
|
|
2413
|
+
sessionEchoedCwd?: string;
|
|
2414
|
+
listEchoedCwd?: string;
|
|
2415
|
+
copy: WorkspaceButtonCopy;
|
|
2416
|
+
}
|
|
2362
2417
|
interface PromptRequest {
|
|
2363
2418
|
message: string;
|
|
2364
2419
|
attachments?: Attachment[];
|
|
@@ -2416,6 +2471,33 @@ interface APIError {
|
|
|
2416
2471
|
details?: Record<string, unknown>;
|
|
2417
2472
|
}
|
|
2418
2473
|
|
|
2474
|
+
type PybErrorCategory = 'config' | 'network' | 'api' | 'response_parse';
|
|
2475
|
+
type PybErrorDetails = Record<string, unknown> | undefined;
|
|
2476
|
+
type PybAPIErrorOptions = {
|
|
2477
|
+
category?: PybErrorCategory;
|
|
2478
|
+
recoverable?: boolean;
|
|
2479
|
+
details?: PybErrorDetails;
|
|
2480
|
+
cause?: unknown;
|
|
2481
|
+
name?: string;
|
|
2482
|
+
};
|
|
2483
|
+
declare class PybAPIError extends Error {
|
|
2484
|
+
readonly code: string;
|
|
2485
|
+
readonly category: PybErrorCategory;
|
|
2486
|
+
readonly recoverable: boolean;
|
|
2487
|
+
readonly details?: PybErrorDetails;
|
|
2488
|
+
readonly cause?: unknown;
|
|
2489
|
+
constructor(code: string, message: string, options?: PybAPIErrorOptions);
|
|
2490
|
+
}
|
|
2491
|
+
declare class PybConfigError extends PybAPIError {
|
|
2492
|
+
constructor(code: string, message: string, details?: PybErrorDetails, cause?: unknown);
|
|
2493
|
+
}
|
|
2494
|
+
declare class PybNetworkError extends PybAPIError {
|
|
2495
|
+
constructor(code: string, message: string, details?: PybErrorDetails, cause?: unknown);
|
|
2496
|
+
}
|
|
2497
|
+
declare class PybResponseParseError extends PybAPIError {
|
|
2498
|
+
constructor(code: string, message: string, details?: PybErrorDetails, cause?: unknown);
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2419
2501
|
interface PybClientConfig {
|
|
2420
2502
|
baseUrl?: string;
|
|
2421
2503
|
timeout?: number;
|
|
@@ -2491,9 +2573,13 @@ declare class PybClient {
|
|
|
2491
2573
|
};
|
|
2492
2574
|
};
|
|
2493
2575
|
readonly model: {
|
|
2494
|
-
getDefault: () => Promise<
|
|
2576
|
+
getDefault: (request?: GetDefaultModelRequest) => Promise<GetDefaultModelResponse>;
|
|
2577
|
+
catalog: () => Promise<ModelCatalogResponse>;
|
|
2495
2578
|
setDefault: (request: SetDefaultModelRequest) => Promise<SetDefaultModelResponse>;
|
|
2496
2579
|
};
|
|
2580
|
+
readonly runtime: {
|
|
2581
|
+
resolveModel: (request: ResolveRuntimeModelRequest) => Promise<ResolveRuntimeModelResponse>;
|
|
2582
|
+
};
|
|
2497
2583
|
readonly auth: {
|
|
2498
2584
|
set: (providerID: string, request: AuthSetRequest) => Promise<AuthSetResponse>;
|
|
2499
2585
|
remove: (providerID: string) => Promise<AuthRemoveResponse>;
|
|
@@ -2501,8 +2587,13 @@ declare class PybClient {
|
|
|
2501
2587
|
readonly modelPool: {
|
|
2502
2588
|
status: () => Promise<ModelPoolStatusResponse>;
|
|
2503
2589
|
};
|
|
2590
|
+
readonly workspace: {
|
|
2591
|
+
getNewSessionButtonState: (cwd: string) => Promise<WorkspaceNewSessionButtonState>;
|
|
2592
|
+
};
|
|
2504
2593
|
constructor(config?: PybClientConfig);
|
|
2505
2594
|
getHealth(): Promise<HealthResponse>;
|
|
2595
|
+
private getWorkspaceButtonCopy;
|
|
2596
|
+
private getWorkspaceNewSessionButtonStateRequest;
|
|
2506
2597
|
private createSessionRequest;
|
|
2507
2598
|
private listSessionsRequest;
|
|
2508
2599
|
private getSessionRequest;
|
|
@@ -2526,12 +2617,17 @@ declare class PybClient {
|
|
|
2526
2617
|
private callbackProviderOAuthRequest;
|
|
2527
2618
|
private getDefaultModelRequest;
|
|
2528
2619
|
private setDefaultModelRequest;
|
|
2620
|
+
private getModelCatalogRequest;
|
|
2621
|
+
private resolveRuntimeModelRequest;
|
|
2529
2622
|
private setProviderAuthRequest;
|
|
2530
2623
|
private removeProviderAuthRequest;
|
|
2531
2624
|
private getModelPoolStatusRequest;
|
|
2532
2625
|
private listMCPServersRequest;
|
|
2533
2626
|
private connectMCPServerRequest;
|
|
2534
2627
|
private disconnectMCPServerRequest;
|
|
2628
|
+
private parseJson;
|
|
2629
|
+
private parseData;
|
|
2630
|
+
private isRecoverableResponseStatus;
|
|
2535
2631
|
private fetch;
|
|
2536
2632
|
}
|
|
2537
2633
|
|
|
@@ -3364,149 +3460,6 @@ declare function resolveDefaultBackendFromEnv(input?: {
|
|
|
3364
3460
|
routeSource: SessionBackendRouteSource;
|
|
3365
3461
|
};
|
|
3366
3462
|
|
|
3367
|
-
|
|
3368
|
-
openworkField: string;
|
|
3369
|
-
pybField: string;
|
|
3370
|
-
};
|
|
3371
|
-
type OpenworkEndpointMapping = {
|
|
3372
|
-
openworkEndpoint: string;
|
|
3373
|
-
pybEndpoint: string;
|
|
3374
|
-
};
|
|
3375
|
-
type OpenworkErrorMapping = {
|
|
3376
|
-
openworkErrorCode: string;
|
|
3377
|
-
pybErrorCode: string;
|
|
3378
|
-
};
|
|
3379
|
-
type OpenworkMigrationMap = {
|
|
3380
|
-
fieldMappings: OpenworkFieldMapping[];
|
|
3381
|
-
endpointMappings: OpenworkEndpointMapping[];
|
|
3382
|
-
errorMappings: OpenworkErrorMapping[];
|
|
3383
|
-
};
|
|
3384
|
-
type OpenworkMigrationMapV2 = OpenworkMigrationMap & {
|
|
3385
|
-
version: 'v2';
|
|
3386
|
-
};
|
|
3387
|
-
type OpenworkCompatibilitySampleInput = {
|
|
3388
|
-
providerID: string;
|
|
3389
|
-
modelID: string;
|
|
3390
|
-
apiKey: string;
|
|
3391
|
-
scope?: 'global' | 'workspace';
|
|
3392
|
-
};
|
|
3393
|
-
type OpenworkProviderPickerSample = {
|
|
3394
|
-
providers: Array<{
|
|
3395
|
-
id: string;
|
|
3396
|
-
label: string;
|
|
3397
|
-
connected: boolean;
|
|
3398
|
-
isDefault: boolean;
|
|
3399
|
-
}>;
|
|
3400
|
-
};
|
|
3401
|
-
type OpenworkAuthModalSample = {
|
|
3402
|
-
providerID: string;
|
|
3403
|
-
method: 'api';
|
|
3404
|
-
connected: boolean;
|
|
3405
|
-
};
|
|
3406
|
-
type OpenworkModelSetSample = {
|
|
3407
|
-
scope: 'global';
|
|
3408
|
-
fallbackReason: string | null;
|
|
3409
|
-
current: ModelRef;
|
|
3410
|
-
};
|
|
3411
|
-
type OpenworkGoNoGoResult = {
|
|
3412
|
-
decision: 'go' | 'no-go';
|
|
3413
|
-
reasons: string[];
|
|
3414
|
-
rollbackPlan: string[];
|
|
3415
|
-
};
|
|
3416
|
-
type OpenworkCompatibilitySampleResult = {
|
|
3417
|
-
providerPicker: OpenworkProviderPickerSample;
|
|
3418
|
-
authModal: OpenworkAuthModalSample;
|
|
3419
|
-
modelSet: OpenworkModelSetSample;
|
|
3420
|
-
modelPoolStatus: ModelPoolStatusResponse;
|
|
3421
|
-
compatibilityScore: number;
|
|
3422
|
-
goNoGo: OpenworkGoNoGoResult;
|
|
3423
|
-
};
|
|
3424
|
-
type ProviderFacadeEnvironment = 'internal' | 'beta' | 'production';
|
|
3425
|
-
type ProviderFacadeFeatureFlag = {
|
|
3426
|
-
enabled: boolean;
|
|
3427
|
-
environment: ProviderFacadeEnvironment;
|
|
3428
|
-
workspaceAllowlist: string[];
|
|
3429
|
-
};
|
|
3430
|
-
type CompatibilityWindowPolicy = {
|
|
3431
|
-
minorVersions: number;
|
|
3432
|
-
deprecatedEndpoints: string[];
|
|
3433
|
-
};
|
|
3434
|
-
type ProviderFacadeReleaseState = {
|
|
3435
|
-
featureFlag: ProviderFacadeFeatureFlag;
|
|
3436
|
-
compatibilityWindow: CompatibilityWindowPolicy;
|
|
3437
|
-
};
|
|
3438
|
-
type ProviderFacadeRolloutInput = {
|
|
3439
|
-
p0IncidentCount: number;
|
|
3440
|
-
rollbackSwitchLatencyMs: number;
|
|
3441
|
-
fallbackReasonDistribution: Record<string, number>;
|
|
3442
|
-
authFailureRate: number;
|
|
3443
|
-
compatibilityMinorVersions: number;
|
|
3444
|
-
};
|
|
3445
|
-
type ProviderFacadeRolloutResult = {
|
|
3446
|
-
decision: 'go' | 'no-go';
|
|
3447
|
-
reasons: string[];
|
|
3448
|
-
};
|
|
3449
|
-
type ProviderFacadeAccessInput = {
|
|
3450
|
-
workspaceID: string;
|
|
3451
|
-
};
|
|
3452
|
-
type ProviderFacadeAccessResult = {
|
|
3453
|
-
allowed: boolean;
|
|
3454
|
-
reason?: 'feature_disabled' | 'workspace_not_allowlisted';
|
|
3455
|
-
};
|
|
3456
|
-
type ProviderFacadeDeprecationChecklist = {
|
|
3457
|
-
compatibilityMinorVersions: number;
|
|
3458
|
-
deprecatedEndpoints: string[];
|
|
3459
|
-
readyForRetirement: boolean;
|
|
3460
|
-
};
|
|
3461
|
-
type ModelPlatformDebtSeverity = 'D0' | 'D1' | 'D2';
|
|
3462
|
-
type ModelPlatformDebtStatus = 'open' | 'closed';
|
|
3463
|
-
type ModelPlatformDebtItem = {
|
|
3464
|
-
id: string;
|
|
3465
|
-
title: string;
|
|
3466
|
-
severity: ModelPlatformDebtSeverity;
|
|
3467
|
-
owner: string;
|
|
3468
|
-
batch: string;
|
|
3469
|
-
status: ModelPlatformDebtStatus;
|
|
3470
|
-
};
|
|
3471
|
-
type ModelPlatformAuditEvidence = {
|
|
3472
|
-
testsPassed: boolean;
|
|
3473
|
-
lintPassed: boolean;
|
|
3474
|
-
typecheckPassed: boolean;
|
|
3475
|
-
rollbackDrillPassed: boolean;
|
|
3476
|
-
};
|
|
3477
|
-
type ModelPlatformDebtCloseoutInput = {
|
|
3478
|
-
debts: ModelPlatformDebtItem[];
|
|
3479
|
-
auditEvidence: ModelPlatformAuditEvidence;
|
|
3480
|
-
};
|
|
3481
|
-
type ModelPlatformDebtCloseoutSummary = {
|
|
3482
|
-
openD0: number;
|
|
3483
|
-
openD1: number;
|
|
3484
|
-
openD2: number;
|
|
3485
|
-
invalidBatchOwnershipCount: number;
|
|
3486
|
-
evidenceCompleteness: number;
|
|
3487
|
-
};
|
|
3488
|
-
type ModelPlatformDebtCloseoutResult = {
|
|
3489
|
-
decision: 'go' | 'no-go';
|
|
3490
|
-
reasonCodes: string[];
|
|
3491
|
-
summary: ModelPlatformDebtCloseoutSummary;
|
|
3492
|
-
riskStatement: string;
|
|
3493
|
-
};
|
|
3494
|
-
declare function getProviderFacadeReleaseState(): ProviderFacadeReleaseState;
|
|
3495
|
-
declare function setProviderFacadeReleaseState(input: Partial<ProviderFacadeReleaseState>): ProviderFacadeReleaseState;
|
|
3496
|
-
declare function evaluateProviderFacadeRollout(input: ProviderFacadeRolloutInput): ProviderFacadeRolloutResult;
|
|
3497
|
-
declare function evaluateProviderFacadeAccess(input: ProviderFacadeAccessInput): ProviderFacadeAccessResult;
|
|
3498
|
-
declare function getProviderFacadeDeprecationChecklist(): ProviderFacadeDeprecationChecklist;
|
|
3499
|
-
declare function evaluateModelPlatformDebtCloseout(input: ModelPlatformDebtCloseoutInput): ModelPlatformDebtCloseoutResult;
|
|
3500
|
-
declare function getOpenworkMigrationMap(): OpenworkMigrationMap;
|
|
3501
|
-
declare function getOpenworkMigrationMapV2(): OpenworkMigrationMapV2;
|
|
3502
|
-
declare function runOpenworkCompatibilitySample(client: PybClient, input: OpenworkCompatibilitySampleInput): Promise<OpenworkCompatibilitySampleResult>;
|
|
3503
|
-
|
|
3504
|
-
/**
|
|
3505
|
-
* @pyb/sdk - PYB-CLI Server SDK
|
|
3506
|
-
*
|
|
3507
|
-
* Provides HTTP client and SSE event handling for PYB-CLI Web UI integration.
|
|
3508
|
-
*/
|
|
3509
|
-
|
|
3510
|
-
declare const SDK_VERSION = "0.1.0";
|
|
3463
|
+
declare const SDK_VERSION = "1.5.56";
|
|
3511
3464
|
|
|
3512
|
-
export { type APIError, type Attachment, type AuthRemoveResponse, type AuthSetRequest, type AuthSetResponse, type BackendKind, BackendKindSchema, type CanUseToolCallback, type CanUseToolDecision, type
|
|
3465
|
+
export { type APIError, type Attachment, type AuthRemoveResponse, type AuthSetRequest, type AuthSetResponse, type BackendKind, BackendKindSchema, type CanUseToolCallback, type CanUseToolDecision, type ContentBlock, ContentBlockSchema, type CreateSessionRequest, type CreateSessionResponse, DEFAULT_SESSION_BACKEND_ROUTER_CONFIG, type DualTrackMetrics, DualTrackMetricsSchema, type DualTrackRawStats, DualTrackRawStatsSchema, type DualTrackThresholds, DualTrackThresholdsSchema, type ErrorEvent, ErrorEventSchema, type ErrorStreamEvent, ErrorStreamEventSchema, FALLBACK_TRIGGER_MATRIX, type FallbackTriggerReason, FallbackTriggerReasonSchema, type GetDefaultModelRequest, type GetDefaultModelResponse, type HealthResponse, type Message, type MessageCompletedEvent, MessageCompletedEventSchema, type MessageCreatedEvent, MessageCreatedEventSchema, MessageSchema, type MessageUpdatedEvent, MessageUpdatedEventSchema, type ModelCatalogItem, type ModelCatalogResponse, type ModelPoolSourceRecord, type ModelPoolStatusItem, type ModelPoolStatusResponse, type ModelRef, PROTOCOL_ERROR_TO_RUNTIME_ERROR_TYPE, type PermissionEvaluator, type PermissionMode, type PermissionRequestedEvent, PermissionRequestedEventSchema, type PermissionRespondedEvent, PermissionRespondedEventSchema, type PermissionResponseRequest, type PermissionTimeoutEvent, PermissionTimeoutEventSchema, type PromptRequest, type PromptResponse, type ProtocolErrorCode, ProtocolErrorCodeSchema, type ProtocolErrorMapping, ProtocolErrorMappingSchema, type ProtocolSessionStreamBinding, ProtocolSessionStreamBindingManager, type ProviderAuthMethod, type ProviderListResponse, type ProviderOAuthAuthorizeRequest, type ProviderOAuthAuthorizeResponse, type ProviderOAuthCallbackRequest, type ProviderOAuthCallbackResponse, type ProviderRef, PybAPIError, PybClient, PybConfigError, PybNetworkError, PybResponseParseError, type PybSSEEvent, PybSSEEventSchema, type QuerySessionExecutor, type RequestCompletedEvent, RequestCompletedEventSchema, type RequestStartedEvent, RequestStartedEventSchema, type ResolvePermissionDecisionInput, type ResolveRuntimeModelRequest, type ResolveRuntimeModelResponse, type RuntimeBackendErrorPhase, type RuntimeCompatibleLegacyEvent, type RuntimeEvent, type RuntimeEventDomain, RuntimeEventDomainSchema, type RuntimeEventErrorType, RuntimeEventErrorTypeSchema, RuntimeEventSchema, type RuntimePermissionPolicy, type RuntimeSession, type RuntimeSessionConfig, type RuntimeSessionEvent, RuntimeSessionEventSchema, type RuntimeSessionInput, RuntimeSessionInputSchema, type RuntimeSessionStatus, RuntimeSessionStatusSchema, S4_PROTOCOL_ERROR_TOP_CODES, S5_A0_EQUIVALENCE_SAMPLE_SET, SDK_VERSION, SESSION_BACKEND_CONFIG_CONTRACT_VERSION, SESSION_BACKEND_ENV_KEY, SESSION_BACKEND_OBSERVABILITY_SPEC, SSEClient, type SSEDedupEvent, SSEDedupEventSchema, type SSEEvent, type SSEReplayEvent, SSEReplayEventSchema, type SSEReplayGapEvent, SSEReplayGapEventSchema, type ServerConnectedEvent, ServerConnectedEventSchema, type ServerHeartbeatEvent, ServerHeartbeatEventSchema, type ServerStatusEvent, ServerStatusEventSchema, type SessionBackend, type SessionBackendRouteSource, type SessionBackendRouterConfig, SessionBackendRouterConfigSchema, type SessionBackendSession, type SessionBackendUserConfig, type SessionCreatedEvent, SessionCreatedEventSchema, type SessionDeletedEvent, SessionDeletedEventSchema, type SessionEventPublisher, type SessionInfo, type SessionUpdatedEvent, SessionUpdatedEventSchema, type SetDefaultModelRequest, type SetDefaultModelResponse, type ToolCompletedEvent, ToolCompletedEventSchema, type ToolErrorEvent, ToolErrorEventSchema, type ToolInfo, type ToolPermissionContext, type ToolProgressEvent, ToolProgressEventSchema, type ToolResolver, type ToolStartedEvent, ToolStartedEventSchema, type V2Message, V2MessageSchema, V2RequestStatusSchema, type V2Session, V2SessionSchema, type V2SessionStatus, V2SessionStatusSchema, type V2ToolUseContext, V2ToolUseContextSchema, type WorkspaceButtonCopy, type WorkspaceButtonGateReason, type WorkspaceNewSessionButtonState, buildDefaultDualTrackThresholds, buildV2ToolUseContextFromPromptRequest, canTransitionV2SessionStatus, createDefaultToolPermissionContextForSdk, createProtocolSessionBackend, createRuntimePermissionContextForSession, createRuntimeSession, createRuntimeSessionBackend, createSSEClient, createSessionBackendRouter, emitBackendConfigWarning, evaluateDualTrackMetrics, evaluateV1DeprecationReadiness, getRuntimeEventMappingRules, isToolAutoExecutableInContext, mapProtocolErrorCodeToRuntimeErrorType, mapRuntimeBackendErrorToRuntimeEvent, mapRuntimeMessageToV2, mapRuntimeSessionStatusToV2, mapV1MessageToV2, mapV1SessionStatusToV2, projectLegacyEventToRuntimeEvent, projectRuntimeEventToLegacyEvent, resolveDefaultBackend, resolveDefaultBackendFromEnv, resolvePermissionDecision, resolvePermissionModeForSdk, resolveRouterBackendKind, shouldTriggerFallback, validateV2Message, validateV2Session, validateV2ToolUseContext };
|