@get-bb/plugin-sdk 0.6.94 → 0.6.104
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 +504 -121
- package/bundled-types/bb-plugin-sdk-host.d.ts +64 -64
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +18 -8
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +4 -1
- package/bundled-types/bb-plugin-sdk-internal-rpc-query-host.d.ts +6 -6
- package/bundled-types/bb-plugin-sdk-internal-rpc-tags.d.ts +1 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +4 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +4 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +4 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +12 -1
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +20 -1
- package/bundled-types/bb-plugin-sdk-testing.d.ts +19 -10
- package/bundled-types/bb-plugin-sdk.d.ts +575 -183
- package/dist/app.js +20 -0
- package/dist/host.js +12 -7
- package/dist/internal/host-policy.js +9 -5
- package/dist/internal/plugin-app-collector.js +45 -0
- package/dist/internal/rpc-query-host.js +4 -10
- package/dist/process.js +12 -7
- package/dist/provider-bridge-acp-next.js +2172 -2023
- package/dist/provider-bridge-acp.js +2172 -2023
- package/dist/provider-bridge-testing.js +126 -134
- package/dist/provider-bridge.js +622 -599
- package/dist/testing/app.js +120 -11
- package/dist/testing/index.js +26 -6
- package/package.json +1 -1
package/dist/provider-bridge.js
CHANGED
|
@@ -1030,7 +1030,7 @@ function withoutBridgeRuntimeEnv(env) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
1032
|
// ../provider-bridge-protocol/src/bridge-kit/bridge-tool-calls.ts
|
|
1033
|
-
import { z as
|
|
1033
|
+
import { z as z25 } from "zod";
|
|
1034
1034
|
|
|
1035
1035
|
// ../domain/src/context-snapshot.ts
|
|
1036
1036
|
import { z as z3 } from "zod";
|
|
@@ -1397,7 +1397,7 @@ var sessionOptionSelectionsSchema = z5.record(
|
|
|
1397
1397
|
var runtimeThreadExecutionBaseOptionsSchema = z5.object({
|
|
1398
1398
|
model: z5.string().min(1),
|
|
1399
1399
|
serviceTier: serviceTierSchema,
|
|
1400
|
-
reasoningLevel: reasoningLevelSchema,
|
|
1400
|
+
reasoningLevel: reasoningLevelSchema.optional(),
|
|
1401
1401
|
promptMode: promptModeSchema.optional(),
|
|
1402
1402
|
sessionOptions: sessionOptionSelectionsSchema.optional(),
|
|
1403
1403
|
providerOptions: jsonObjectSchema
|
|
@@ -2006,7 +2006,7 @@ var approvalPendingInteractionPayloadSchema = z14.object({
|
|
|
2006
2006
|
reason: z14.string().nullable(),
|
|
2007
2007
|
availableDecisions: z14.array(pendingInteractionApprovalDecisionSchema).min(1)
|
|
2008
2008
|
});
|
|
2009
|
-
var USER_QUESTION_MAX_QUESTIONS =
|
|
2009
|
+
var USER_QUESTION_MAX_QUESTIONS = 10;
|
|
2010
2010
|
var USER_QUESTION_MAX_OPTIONS = 4;
|
|
2011
2011
|
var USER_QUESTION_MAX_SELECTED = 4;
|
|
2012
2012
|
var USER_QUESTION_MAX_FREE_TEXT_LENGTH = 4096;
|
|
@@ -2048,7 +2048,8 @@ var pendingInteractionUserQuestionQuestionSchema = z14.object({
|
|
|
2048
2048
|
USER_QUESTION_MAX_OPTIONS,
|
|
2049
2049
|
`User questions cannot include more than ${USER_QUESTION_MAX_OPTIONS} options`
|
|
2050
2050
|
).optional(),
|
|
2051
|
-
allowFreeText: z14.boolean()
|
|
2051
|
+
allowFreeText: z14.boolean(),
|
|
2052
|
+
required: z14.boolean().default(true)
|
|
2052
2053
|
}).superRefine((question, context) => {
|
|
2053
2054
|
const optionValues = /* @__PURE__ */ new Set();
|
|
2054
2055
|
question.options?.forEach((option, index) => {
|
|
@@ -2638,6 +2639,8 @@ import { z as z17 } from "zod";
|
|
|
2638
2639
|
var threadTimelineGoalStatusSchema = z17.enum([
|
|
2639
2640
|
"active",
|
|
2640
2641
|
"paused",
|
|
2642
|
+
"blocked",
|
|
2643
|
+
"usageLimited",
|
|
2641
2644
|
"budgetLimited",
|
|
2642
2645
|
"complete"
|
|
2643
2646
|
]);
|
|
@@ -3307,17 +3310,13 @@ var threadEventSchema = z19.union([providerEventSchema, systemEventSchema]).supe
|
|
|
3307
3310
|
});
|
|
3308
3311
|
|
|
3309
3312
|
// ../domain/src/thread-provider-state.ts
|
|
3313
|
+
import { z as z22 } from "zod";
|
|
3314
|
+
|
|
3315
|
+
// ../domain/src/provider-types.ts
|
|
3316
|
+
import { z as z21 } from "zod";
|
|
3317
|
+
|
|
3318
|
+
// ../domain/src/thread-session-option.ts
|
|
3310
3319
|
import { z as z20 } from "zod";
|
|
3311
|
-
var THREAD_PROVIDER_COMMANDS_STATE_KIND = "bb/provider-commands";
|
|
3312
|
-
var THREAD_SESSION_OPTIONS_STATE_KIND = "bb/session-options";
|
|
3313
|
-
var threadProviderCommandSchema = z20.object({
|
|
3314
|
-
name: z20.string().min(1),
|
|
3315
|
-
description: z20.string(),
|
|
3316
|
-
inputHint: z20.string().min(1).optional()
|
|
3317
|
-
});
|
|
3318
|
-
var threadProviderCommandsStateSchema = z20.object({
|
|
3319
|
-
commands: z20.array(threadProviderCommandSchema).max(500)
|
|
3320
|
-
});
|
|
3321
3320
|
var threadSessionOptionValueSchema = z20.object({
|
|
3322
3321
|
id: z20.string().min(1),
|
|
3323
3322
|
label: z20.string().min(1),
|
|
@@ -3344,117 +3343,102 @@ var threadSessionOptionSchema = z20.discriminatedUnion("type", [
|
|
|
3344
3343
|
fixed: z20.boolean().optional()
|
|
3345
3344
|
})
|
|
3346
3345
|
]);
|
|
3347
|
-
var threadSessionOptionsStateSchema = z20.object({
|
|
3348
|
-
options: z20.array(threadSessionOptionSchema).max(64)
|
|
3349
|
-
});
|
|
3350
|
-
var threadSessionOptionSelectionsStateSchema = z20.object({
|
|
3351
|
-
selections: sessionOptionSelectionsSchema
|
|
3352
|
-
});
|
|
3353
|
-
var CORE_THREAD_STATE_SCHEMAS = {
|
|
3354
|
-
[THREAD_PROVIDER_COMMANDS_STATE_KIND]: threadProviderCommandsStateSchema,
|
|
3355
|
-
[THREAD_SESSION_OPTIONS_STATE_KIND]: threadSessionOptionsStateSchema
|
|
3356
|
-
};
|
|
3357
|
-
|
|
3358
|
-
// ../domain/src/provider-fork.ts
|
|
3359
|
-
import { z as z21 } from "zod";
|
|
3360
|
-
var PROVIDER_FORK_VALUES = ["none", "tip", "checkpoint"];
|
|
3361
|
-
var providerForkSchema = z21.enum(PROVIDER_FORK_VALUES);
|
|
3362
3346
|
|
|
3363
3347
|
// ../domain/src/provider-types.ts
|
|
3364
|
-
|
|
3365
|
-
var modelReasoningEffortSchema = z22.object({
|
|
3348
|
+
var modelReasoningEffortSchema = z21.object({
|
|
3366
3349
|
reasoningEffort: reasoningLevelSchema,
|
|
3367
|
-
label:
|
|
3368
|
-
description:
|
|
3350
|
+
label: z21.string().min(1).optional(),
|
|
3351
|
+
description: z21.string()
|
|
3369
3352
|
});
|
|
3370
|
-
var modelServiceTierSchema =
|
|
3353
|
+
var modelServiceTierSchema = z21.object({
|
|
3371
3354
|
id: serviceTierSchema,
|
|
3372
|
-
label:
|
|
3373
|
-
description:
|
|
3374
|
-
});
|
|
3375
|
-
var availableModelSchema =
|
|
3376
|
-
id:
|
|
3377
|
-
model:
|
|
3378
|
-
displayName:
|
|
3379
|
-
routeProviderId:
|
|
3380
|
-
description:
|
|
3381
|
-
|
|
3355
|
+
label: z21.string().min(1).optional(),
|
|
3356
|
+
description: z21.string().min(1).optional()
|
|
3357
|
+
});
|
|
3358
|
+
var availableModelSchema = z21.object({
|
|
3359
|
+
id: z21.string(),
|
|
3360
|
+
model: z21.string(),
|
|
3361
|
+
displayName: z21.string(),
|
|
3362
|
+
routeProviderId: z21.string().min(1).optional(),
|
|
3363
|
+
description: z21.string(),
|
|
3364
|
+
reasoningDiscovery: z21.enum(["unknown", "known"]).default("known"),
|
|
3365
|
+
supportedReasoningEfforts: z21.array(modelReasoningEffortSchema),
|
|
3382
3366
|
defaultReasoningEffort: reasoningLevelSchema,
|
|
3383
|
-
supportedServiceTiers:
|
|
3384
|
-
sessionOptions:
|
|
3385
|
-
isDefault:
|
|
3386
|
-
});
|
|
3387
|
-
var providerModelCatalogScopeSchema =
|
|
3388
|
-
var providerCapabilitiesSchema =
|
|
3389
|
-
supportsThreadArchive:
|
|
3390
|
-
supportsThreadRename:
|
|
3391
|
-
supportsServiceTier:
|
|
3392
|
-
supportsNativeUserQuestion:
|
|
3393
|
-
supportsFork:
|
|
3394
|
-
supportsSessionRewind:
|
|
3395
|
-
permissionModes:
|
|
3367
|
+
supportedServiceTiers: z21.array(modelServiceTierSchema).optional(),
|
|
3368
|
+
sessionOptions: z21.array(threadSessionOptionSchema).max(64).optional(),
|
|
3369
|
+
isDefault: z21.boolean()
|
|
3370
|
+
});
|
|
3371
|
+
var providerModelCatalogScopeSchema = z21.enum(["host", "workspace"]);
|
|
3372
|
+
var providerCapabilitiesSchema = z21.object({
|
|
3373
|
+
supportsThreadArchive: z21.boolean(),
|
|
3374
|
+
supportsThreadRename: z21.boolean(),
|
|
3375
|
+
supportsServiceTier: z21.boolean(),
|
|
3376
|
+
supportsNativeUserQuestion: z21.boolean(),
|
|
3377
|
+
supportsFork: z21.boolean(),
|
|
3378
|
+
supportsSessionRewind: z21.boolean(),
|
|
3379
|
+
permissionModes: z21.array(permissionModeSchema).min(1),
|
|
3396
3380
|
modelCatalogScope: providerModelCatalogScopeSchema
|
|
3397
3381
|
});
|
|
3398
|
-
var providerComposerCommandSchema =
|
|
3382
|
+
var providerComposerCommandSchema = z21.object({
|
|
3399
3383
|
trigger: promptMentionCommandTriggerSchema,
|
|
3400
|
-
name:
|
|
3401
|
-
trailingText:
|
|
3384
|
+
name: z21.string().min(1).regex(/^[^\s/$]+$/u),
|
|
3385
|
+
trailingText: z21.string().regex(/^\s*$/u)
|
|
3402
3386
|
});
|
|
3403
|
-
var providerComposerActionSchema =
|
|
3404
|
-
|
|
3405
|
-
kind:
|
|
3387
|
+
var providerComposerActionSchema = z21.discriminatedUnion("kind", [
|
|
3388
|
+
z21.object({
|
|
3389
|
+
kind: z21.literal("skills"),
|
|
3406
3390
|
trigger: promptMentionCommandTriggerSchema
|
|
3407
3391
|
}),
|
|
3408
|
-
|
|
3409
|
-
kind:
|
|
3392
|
+
z21.object({
|
|
3393
|
+
kind: z21.literal("plan"),
|
|
3410
3394
|
command: providerComposerCommandSchema
|
|
3411
3395
|
}),
|
|
3412
|
-
|
|
3413
|
-
kind:
|
|
3396
|
+
z21.object({
|
|
3397
|
+
kind: z21.literal("goal"),
|
|
3414
3398
|
command: providerComposerCommandSchema
|
|
3415
3399
|
})
|
|
3416
3400
|
]);
|
|
3417
|
-
var providerStringsSchema =
|
|
3418
|
-
signInHint:
|
|
3419
|
-
expiredHint:
|
|
3420
|
-
installUrl:
|
|
3421
|
-
brandPrefix:
|
|
3422
|
-
planModeCopy:
|
|
3423
|
-
iconTint:
|
|
3424
|
-
});
|
|
3425
|
-
var providerOptionDescriptorSchema =
|
|
3426
|
-
id:
|
|
3427
|
-
label:
|
|
3428
|
-
description:
|
|
3429
|
-
icon:
|
|
3430
|
-
});
|
|
3431
|
-
var providerExtensionKindInfoSchema =
|
|
3432
|
-
item:
|
|
3433
|
-
state:
|
|
3434
|
-
});
|
|
3435
|
-
var providerExtensionKindsSchema =
|
|
3401
|
+
var providerStringsSchema = z21.object({
|
|
3402
|
+
signInHint: z21.string().min(1),
|
|
3403
|
+
expiredHint: z21.string().min(1),
|
|
3404
|
+
installUrl: z21.string().min(1),
|
|
3405
|
+
brandPrefix: z21.string().min(1).optional(),
|
|
3406
|
+
planModeCopy: z21.string().min(1).optional(),
|
|
3407
|
+
iconTint: z21.object({ light: z21.string().min(1), dark: z21.string().min(1) }).optional()
|
|
3408
|
+
});
|
|
3409
|
+
var providerOptionDescriptorSchema = z21.object({
|
|
3410
|
+
id: z21.string().min(1),
|
|
3411
|
+
label: z21.string().min(1),
|
|
3412
|
+
description: z21.string().min(1).optional(),
|
|
3413
|
+
icon: z21.string().min(1).optional()
|
|
3414
|
+
});
|
|
3415
|
+
var providerExtensionKindInfoSchema = z21.object({
|
|
3416
|
+
item: z21.boolean(),
|
|
3417
|
+
state: z21.boolean()
|
|
3418
|
+
});
|
|
3419
|
+
var providerExtensionKindsSchema = z21.record(
|
|
3436
3420
|
extensionKindSchema,
|
|
3437
3421
|
providerExtensionKindInfoSchema
|
|
3438
3422
|
);
|
|
3439
|
-
var providerInfoSchema =
|
|
3440
|
-
id:
|
|
3441
|
-
pluginId:
|
|
3442
|
-
displayName:
|
|
3443
|
-
family:
|
|
3444
|
-
icon:
|
|
3445
|
-
logoUrl:
|
|
3446
|
-
maintenance:
|
|
3447
|
-
health:
|
|
3448
|
-
usage:
|
|
3449
|
-
installation:
|
|
3423
|
+
var providerInfoSchema = z21.object({
|
|
3424
|
+
id: z21.string(),
|
|
3425
|
+
pluginId: z21.string().min(1),
|
|
3426
|
+
displayName: z21.string(),
|
|
3427
|
+
family: z21.string().min(1).optional(),
|
|
3428
|
+
icon: z21.object({ glyph: z21.string().min(1) }).optional(),
|
|
3429
|
+
logoUrl: z21.string().min(1).nullable(),
|
|
3430
|
+
maintenance: z21.object({
|
|
3431
|
+
health: z21.boolean(),
|
|
3432
|
+
usage: z21.boolean(),
|
|
3433
|
+
installation: z21.boolean()
|
|
3450
3434
|
}),
|
|
3451
3435
|
capabilities: providerCapabilitiesSchema,
|
|
3452
|
-
composerActions:
|
|
3436
|
+
composerActions: z21.array(providerComposerActionSchema),
|
|
3453
3437
|
completedTurnDisplay: completedTurnDisplaySchema,
|
|
3454
|
-
available:
|
|
3438
|
+
available: z21.boolean(),
|
|
3455
3439
|
strings: providerStringsSchema.optional(),
|
|
3456
|
-
serviceTiers:
|
|
3457
|
-
reasoningLevels:
|
|
3440
|
+
serviceTiers: z21.array(providerOptionDescriptorSchema).optional(),
|
|
3441
|
+
reasoningLevels: z21.array(providerOptionDescriptorSchema).optional(),
|
|
3458
3442
|
extensionKinds: providerExtensionKindsSchema.optional()
|
|
3459
3443
|
});
|
|
3460
3444
|
var providerRecoveryKindValues = [
|
|
@@ -3464,37 +3448,70 @@ var providerRecoveryKindValues = [
|
|
|
3464
3448
|
"staleTurn",
|
|
3465
3449
|
"rateLimited"
|
|
3466
3450
|
];
|
|
3467
|
-
var providerRecoveryKindSchema =
|
|
3468
|
-
var toolCallOutputItemSchema =
|
|
3469
|
-
|
|
3470
|
-
type:
|
|
3471
|
-
text:
|
|
3451
|
+
var providerRecoveryKindSchema = z21.enum(providerRecoveryKindValues);
|
|
3452
|
+
var toolCallOutputItemSchema = z21.discriminatedUnion("type", [
|
|
3453
|
+
z21.object({
|
|
3454
|
+
type: z21.literal("inputText"),
|
|
3455
|
+
text: z21.string()
|
|
3472
3456
|
}),
|
|
3473
|
-
|
|
3474
|
-
type:
|
|
3475
|
-
imageUrl:
|
|
3457
|
+
z21.object({
|
|
3458
|
+
type: z21.literal("inputImage"),
|
|
3459
|
+
imageUrl: z21.string()
|
|
3476
3460
|
})
|
|
3477
3461
|
]);
|
|
3478
|
-
var toolCallRequestSchema =
|
|
3479
|
-
requestId:
|
|
3480
|
-
threadId:
|
|
3481
|
-
providerThreadId:
|
|
3482
|
-
turnId:
|
|
3483
|
-
callId:
|
|
3484
|
-
tool:
|
|
3485
|
-
arguments:
|
|
3486
|
-
});
|
|
3487
|
-
var toolCallResponseSchema =
|
|
3488
|
-
contentItems:
|
|
3489
|
-
success:
|
|
3490
|
-
});
|
|
3491
|
-
var dynamicToolSchema =
|
|
3492
|
-
name:
|
|
3493
|
-
description:
|
|
3494
|
-
inputSchema:
|
|
3462
|
+
var toolCallRequestSchema = z21.object({
|
|
3463
|
+
requestId: z21.union([z21.string().min(1), z21.number()]),
|
|
3464
|
+
threadId: z21.string().min(1),
|
|
3465
|
+
providerThreadId: z21.string().min(1),
|
|
3466
|
+
turnId: z21.string().min(1),
|
|
3467
|
+
callId: z21.string().min(1),
|
|
3468
|
+
tool: z21.string().min(1),
|
|
3469
|
+
arguments: z21.unknown().optional()
|
|
3470
|
+
});
|
|
3471
|
+
var toolCallResponseSchema = z21.object({
|
|
3472
|
+
contentItems: z21.array(toolCallOutputItemSchema),
|
|
3473
|
+
success: z21.boolean()
|
|
3474
|
+
});
|
|
3475
|
+
var dynamicToolSchema = z21.object({
|
|
3476
|
+
name: z21.string(),
|
|
3477
|
+
description: z21.string(),
|
|
3478
|
+
inputSchema: z21.unknown(),
|
|
3495
3479
|
presentation: threadEventItemPresentationSchema.optional()
|
|
3496
3480
|
});
|
|
3497
3481
|
|
|
3482
|
+
// ../domain/src/thread-provider-state.ts
|
|
3483
|
+
var THREAD_PROVIDER_COMMANDS_STATE_KIND = "bb/provider-commands";
|
|
3484
|
+
var THREAD_SESSION_OPTIONS_STATE_KIND = "bb/session-options";
|
|
3485
|
+
var THREAD_PROVIDER_MODEL_CATALOG_STATE_KIND = "bb/provider-model-catalog";
|
|
3486
|
+
var threadProviderModelCatalogStateSchema = z22.object({
|
|
3487
|
+
models: z22.array(availableModelSchema).max(1e3),
|
|
3488
|
+
selectedOnlyModels: z22.array(availableModelSchema).max(1e3)
|
|
3489
|
+
});
|
|
3490
|
+
var threadProviderCommandSchema = z22.object({
|
|
3491
|
+
name: z22.string().min(1),
|
|
3492
|
+
description: z22.string(),
|
|
3493
|
+
inputHint: z22.string().min(1).optional()
|
|
3494
|
+
});
|
|
3495
|
+
var threadProviderCommandsStateSchema = z22.object({
|
|
3496
|
+
commands: z22.array(threadProviderCommandSchema).max(500)
|
|
3497
|
+
});
|
|
3498
|
+
var threadSessionOptionsStateSchema = z22.object({
|
|
3499
|
+
options: z22.array(threadSessionOptionSchema).max(64)
|
|
3500
|
+
});
|
|
3501
|
+
var threadSessionOptionSelectionsStateSchema = z22.object({
|
|
3502
|
+
selections: sessionOptionSelectionsSchema
|
|
3503
|
+
});
|
|
3504
|
+
var CORE_THREAD_STATE_SCHEMAS = {
|
|
3505
|
+
[THREAD_PROVIDER_MODEL_CATALOG_STATE_KIND]: threadProviderModelCatalogStateSchema,
|
|
3506
|
+
[THREAD_PROVIDER_COMMANDS_STATE_KIND]: threadProviderCommandsStateSchema,
|
|
3507
|
+
[THREAD_SESSION_OPTIONS_STATE_KIND]: threadSessionOptionsStateSchema
|
|
3508
|
+
};
|
|
3509
|
+
|
|
3510
|
+
// ../domain/src/provider-fork.ts
|
|
3511
|
+
import { z as z23 } from "zod";
|
|
3512
|
+
var PROVIDER_FORK_VALUES = ["none", "tip", "checkpoint"];
|
|
3513
|
+
var providerForkSchema = z23.enum(PROVIDER_FORK_VALUES);
|
|
3514
|
+
|
|
3498
3515
|
// ../domain/src/reasoning-efforts.ts
|
|
3499
3516
|
var NONE_REASONING_EFFORT = {
|
|
3500
3517
|
reasoningEffort: "none",
|
|
@@ -3545,58 +3562,58 @@ function reasoningEffortsForLevels(levels) {
|
|
|
3545
3562
|
}
|
|
3546
3563
|
|
|
3547
3564
|
// ../provider-bridge-protocol/src/bridge-requests.ts
|
|
3548
|
-
import { z as
|
|
3565
|
+
import { z as z24 } from "zod";
|
|
3549
3566
|
var BRIDGE_INBOUND_REQUEST_METHODS = {
|
|
3550
3567
|
toolCall: "item/tool/call",
|
|
3551
3568
|
interactionRequest: "interaction/request"
|
|
3552
3569
|
};
|
|
3553
|
-
var toolCallRequestParamsSchema =
|
|
3554
|
-
providerThreadId:
|
|
3555
|
-
threadId:
|
|
3556
|
-
turnId:
|
|
3557
|
-
callId:
|
|
3558
|
-
tool:
|
|
3559
|
-
arguments:
|
|
3570
|
+
var toolCallRequestParamsSchema = z24.object({
|
|
3571
|
+
providerThreadId: z24.string().min(1),
|
|
3572
|
+
threadId: z24.string().min(1).optional(),
|
|
3573
|
+
turnId: z24.union([z24.string().min(1), z24.null()]),
|
|
3574
|
+
callId: z24.string().min(1),
|
|
3575
|
+
tool: z24.string().min(1),
|
|
3576
|
+
arguments: z24.unknown()
|
|
3560
3577
|
}).passthrough();
|
|
3561
|
-
var toolCallResultSchema =
|
|
3562
|
-
success:
|
|
3563
|
-
contentItems:
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
type:
|
|
3568
|
-
imageUrl:
|
|
3578
|
+
var toolCallResultSchema = z24.object({
|
|
3579
|
+
success: z24.boolean(),
|
|
3580
|
+
contentItems: z24.array(
|
|
3581
|
+
z24.discriminatedUnion("type", [
|
|
3582
|
+
z24.object({ type: z24.literal("inputText"), text: z24.string() }),
|
|
3583
|
+
z24.object({
|
|
3584
|
+
type: z24.literal("inputImage"),
|
|
3585
|
+
imageUrl: z24.string().min(1)
|
|
3569
3586
|
})
|
|
3570
3587
|
])
|
|
3571
3588
|
)
|
|
3572
3589
|
}).passthrough();
|
|
3573
|
-
var interactionRequestParamsSchema =
|
|
3574
|
-
providerThreadId:
|
|
3575
|
-
threadId:
|
|
3576
|
-
turnId:
|
|
3590
|
+
var interactionRequestParamsSchema = z24.object({
|
|
3591
|
+
providerThreadId: z24.string().min(1),
|
|
3592
|
+
threadId: z24.string().min(1).optional(),
|
|
3593
|
+
turnId: z24.union([z24.string().min(1), z24.null()]),
|
|
3577
3594
|
payload: pendingInteractionPayloadSchema
|
|
3578
3595
|
}).passthrough();
|
|
3579
3596
|
|
|
3580
3597
|
// ../provider-bridge-protocol/src/bridge-kit/bridge-tool-calls.ts
|
|
3581
|
-
var bridgeRequestEnvelopeSchema =
|
|
3582
|
-
jsonrpc:
|
|
3583
|
-
id:
|
|
3584
|
-
method:
|
|
3585
|
-
params:
|
|
3586
|
-
});
|
|
3587
|
-
var jsonRpcErrorSchema =
|
|
3588
|
-
code:
|
|
3589
|
-
message:
|
|
3590
|
-
data:
|
|
3591
|
-
});
|
|
3592
|
-
var jsonRpcSuccessResponseSchema =
|
|
3593
|
-
jsonrpc:
|
|
3594
|
-
id:
|
|
3595
|
-
result:
|
|
3596
|
-
});
|
|
3597
|
-
var jsonRpcErrorResponseSchema =
|
|
3598
|
-
jsonrpc:
|
|
3599
|
-
id:
|
|
3598
|
+
var bridgeRequestEnvelopeSchema = z25.object({
|
|
3599
|
+
jsonrpc: z25.literal("2.0"),
|
|
3600
|
+
id: z25.union([z25.string(), z25.number()]),
|
|
3601
|
+
method: z25.string(),
|
|
3602
|
+
params: z25.record(z25.string(), z25.unknown()).optional()
|
|
3603
|
+
});
|
|
3604
|
+
var jsonRpcErrorSchema = z25.object({
|
|
3605
|
+
code: z25.number(),
|
|
3606
|
+
message: z25.string().optional(),
|
|
3607
|
+
data: z25.unknown().optional()
|
|
3608
|
+
});
|
|
3609
|
+
var jsonRpcSuccessResponseSchema = z25.object({
|
|
3610
|
+
jsonrpc: z25.literal("2.0"),
|
|
3611
|
+
id: z25.union([z25.string(), z25.number()]),
|
|
3612
|
+
result: z25.unknown()
|
|
3613
|
+
});
|
|
3614
|
+
var jsonRpcErrorResponseSchema = z25.object({
|
|
3615
|
+
jsonrpc: z25.literal("2.0"),
|
|
3616
|
+
id: z25.union([z25.string(), z25.number()]),
|
|
3600
3617
|
error: jsonRpcErrorSchema
|
|
3601
3618
|
});
|
|
3602
3619
|
function isJsonRpcRequest(input) {
|
|
@@ -3684,47 +3701,47 @@ function buildBridgeToolCallContent(result) {
|
|
|
3684
3701
|
}
|
|
3685
3702
|
|
|
3686
3703
|
// ../provider-bridge-protocol/src/bridge-kit/json-rpc-envelope.ts
|
|
3687
|
-
import { z as
|
|
3688
|
-
var recordSchema =
|
|
3689
|
-
var jsonRpcEnvelopeSchema =
|
|
3690
|
-
jsonrpc:
|
|
3691
|
-
method:
|
|
3704
|
+
import { z as z26 } from "zod";
|
|
3705
|
+
var recordSchema = z26.record(z26.string(), z26.unknown());
|
|
3706
|
+
var jsonRpcEnvelopeSchema = z26.object({
|
|
3707
|
+
jsonrpc: z26.literal("2.0"),
|
|
3708
|
+
method: z26.string(),
|
|
3692
3709
|
params: recordSchema.optional()
|
|
3693
3710
|
}).passthrough();
|
|
3694
|
-
var sdkMessageEnvelopeSchema =
|
|
3695
|
-
jsonrpc:
|
|
3696
|
-
method:
|
|
3697
|
-
params:
|
|
3698
|
-
message:
|
|
3699
|
-
threadId:
|
|
3700
|
-
parent_tool_use_id:
|
|
3711
|
+
var sdkMessageEnvelopeSchema = z26.object({
|
|
3712
|
+
jsonrpc: z26.literal("2.0"),
|
|
3713
|
+
method: z26.literal("sdk/message"),
|
|
3714
|
+
params: z26.object({
|
|
3715
|
+
message: z26.unknown(),
|
|
3716
|
+
threadId: z26.string().optional(),
|
|
3717
|
+
parent_tool_use_id: z26.string().optional()
|
|
3701
3718
|
}).passthrough()
|
|
3702
3719
|
}).passthrough();
|
|
3703
|
-
var threadIdentityEnvelopeSchema =
|
|
3704
|
-
jsonrpc:
|
|
3705
|
-
method:
|
|
3706
|
-
params:
|
|
3707
|
-
threadId:
|
|
3708
|
-
providerThreadId:
|
|
3720
|
+
var threadIdentityEnvelopeSchema = z26.object({
|
|
3721
|
+
jsonrpc: z26.literal("2.0"),
|
|
3722
|
+
method: z26.literal("thread/identity"),
|
|
3723
|
+
params: z26.object({
|
|
3724
|
+
threadId: z26.string().optional(),
|
|
3725
|
+
providerThreadId: z26.string().optional()
|
|
3709
3726
|
}).passthrough()
|
|
3710
3727
|
}).passthrough();
|
|
3711
|
-
var threadContextWindowUsageEnvelopeSchema =
|
|
3712
|
-
jsonrpc:
|
|
3713
|
-
method:
|
|
3714
|
-
params:
|
|
3715
|
-
threadId:
|
|
3716
|
-
contextWindowUsage:
|
|
3717
|
-
usedTokens:
|
|
3718
|
-
modelContextWindow:
|
|
3719
|
-
estimated:
|
|
3728
|
+
var threadContextWindowUsageEnvelopeSchema = z26.object({
|
|
3729
|
+
jsonrpc: z26.literal("2.0"),
|
|
3730
|
+
method: z26.literal("thread/contextWindowUsage/updated"),
|
|
3731
|
+
params: z26.object({
|
|
3732
|
+
threadId: z26.string().optional(),
|
|
3733
|
+
contextWindowUsage: z26.object({
|
|
3734
|
+
usedTokens: z26.number().nullable(),
|
|
3735
|
+
modelContextWindow: z26.number().nullable(),
|
|
3736
|
+
estimated: z26.boolean()
|
|
3720
3737
|
})
|
|
3721
3738
|
}).passthrough()
|
|
3722
3739
|
}).passthrough();
|
|
3723
|
-
var errorEnvelopeSchema =
|
|
3724
|
-
jsonrpc:
|
|
3725
|
-
method:
|
|
3726
|
-
params:
|
|
3727
|
-
message:
|
|
3740
|
+
var errorEnvelopeSchema = z26.object({
|
|
3741
|
+
jsonrpc: z26.literal("2.0"),
|
|
3742
|
+
method: z26.literal("error"),
|
|
3743
|
+
params: z26.object({
|
|
3744
|
+
message: z26.string().optional()
|
|
3728
3745
|
}).passthrough().optional()
|
|
3729
3746
|
}).passthrough();
|
|
3730
3747
|
|
|
@@ -4502,14 +4519,19 @@ function observe(child) {
|
|
|
4502
4519
|
}
|
|
4503
4520
|
function spawnHostProcess(command, args = [], options = {}) {
|
|
4504
4521
|
const launch = options.shell ? { command, args: [...args], env: hostToolchain.environment(options.env) } : hostToolchain.command(command, args, options);
|
|
4522
|
+
const spawnOptions = {
|
|
4523
|
+
...options,
|
|
4524
|
+
env: launch.env,
|
|
4525
|
+
windowsHide: options.windowsHide ?? true
|
|
4526
|
+
};
|
|
4527
|
+
if (process.platform === "win32" && !options.shell && /[\\/]/u.test(command)) {
|
|
4528
|
+
const parsed = parse(launch.command, launch.args, spawnOptions);
|
|
4529
|
+
return observe(
|
|
4530
|
+
parsed.file ? nodeSpawn(parsed.command, parsed.args, parsed.options) : nodeSpawn(launch.command, launch.args, spawnOptions)
|
|
4531
|
+
);
|
|
4532
|
+
}
|
|
4505
4533
|
const spawn3 = options.shell ? nodeSpawn : crossSpawn;
|
|
4506
|
-
return observe(
|
|
4507
|
-
spawn3(launch.command, launch.args, {
|
|
4508
|
-
...options,
|
|
4509
|
-
env: launch.env,
|
|
4510
|
-
windowsHide: options.windowsHide ?? true
|
|
4511
|
-
})
|
|
4512
|
-
);
|
|
4534
|
+
return observe(spawn3(launch.command, launch.args, spawnOptions));
|
|
4513
4535
|
}
|
|
4514
4536
|
function prepareExecFile(command, args, options) {
|
|
4515
4537
|
const launch = hostToolchain.command(command, args, options);
|
|
@@ -11820,7 +11842,7 @@ function sanitizeInheritedChildProcessEnv(args) {
|
|
|
11820
11842
|
var import_compare = __toESM(require_compare(), 1);
|
|
11821
11843
|
var import_valid = __toESM(require_valid(), 1);
|
|
11822
11844
|
import path8 from "node:path";
|
|
11823
|
-
import { z as
|
|
11845
|
+
import { z as z27 } from "zod";
|
|
11824
11846
|
var CLI_PROBE_TIMEOUT_MS = 5e3;
|
|
11825
11847
|
var INSTALLATION_CHECK_TIMEOUT_MS = 15e3;
|
|
11826
11848
|
async function resolveExecutablePath(command) {
|
|
@@ -11897,8 +11919,8 @@ function firstLine(value) {
|
|
|
11897
11919
|
function npmGlobalPackageVersion(value, npmPackage) {
|
|
11898
11920
|
if (value === null) return null;
|
|
11899
11921
|
try {
|
|
11900
|
-
const parsed =
|
|
11901
|
-
dependencies:
|
|
11922
|
+
const parsed = z27.object({
|
|
11923
|
+
dependencies: z27.record(z27.string(), z27.object({ version: z27.string().min(1) })).default({})
|
|
11902
11924
|
}).safeParse(JSON.parse(value));
|
|
11903
11925
|
return parsed.success ? parsed.data.dependencies[npmPackage]?.version ?? null : null;
|
|
11904
11926
|
} catch {
|
|
@@ -11949,9 +11971,9 @@ function clampPercent(value) {
|
|
|
11949
11971
|
}
|
|
11950
11972
|
|
|
11951
11973
|
// ../provider-bridge-protocol/src/bridge-kit/provider-tool-call-contract.ts
|
|
11952
|
-
import { z as
|
|
11953
|
-
var providerToolCallCancellationSchema =
|
|
11954
|
-
requestId:
|
|
11974
|
+
import { z as z28 } from "zod";
|
|
11975
|
+
var providerToolCallCancellationSchema = z28.object({
|
|
11976
|
+
requestId: z28.union([z28.string(), z28.number().int()])
|
|
11955
11977
|
});
|
|
11956
11978
|
|
|
11957
11979
|
// ../provider-bridge-protocol/src/bridge-kit/provider-visibility.ts
|
|
@@ -11966,10 +11988,10 @@ function createProviderVisibilityMetadata(args) {
|
|
|
11966
11988
|
}
|
|
11967
11989
|
|
|
11968
11990
|
// ../provider-bridge-protocol/src/bridge-kit/runtime-json-rpc.ts
|
|
11969
|
-
import { z as
|
|
11991
|
+
import { z as z30 } from "zod";
|
|
11970
11992
|
|
|
11971
11993
|
// ../provider-bridge-protocol/src/errors.ts
|
|
11972
|
-
import { z as
|
|
11994
|
+
import { z as z29 } from "zod";
|
|
11973
11995
|
var BRIDGE_JSON_RPC_ERRORS = {
|
|
11974
11996
|
INVALID_PARAMS: -32602,
|
|
11975
11997
|
METHOD_NOT_FOUND: -32601,
|
|
@@ -11979,12 +12001,12 @@ var BRIDGE_JSON_RPC_ERRORS = {
|
|
|
11979
12001
|
FORK_CHECKPOINT_UNSUPPORTED: -32003,
|
|
11980
12002
|
MISSING_EXECUTABLE: -32004
|
|
11981
12003
|
};
|
|
11982
|
-
var providerRecoveryHintSchema =
|
|
12004
|
+
var providerRecoveryHintSchema = z29.object({
|
|
11983
12005
|
kind: providerRecoveryKindSchema,
|
|
11984
|
-
message:
|
|
11985
|
-
retryable:
|
|
12006
|
+
message: z29.string().min(1),
|
|
12007
|
+
retryable: z29.boolean()
|
|
11986
12008
|
});
|
|
11987
|
-
var bridgeErrorDataSchema =
|
|
12009
|
+
var bridgeErrorDataSchema = z29.object({ recovery: providerRecoveryHintSchema.optional() }).passthrough();
|
|
11988
12010
|
|
|
11989
12011
|
// ../provider-bridge-protocol/src/bridge-kit/runtime-json-rpc.ts
|
|
11990
12012
|
var JSON_RPC_INVALID_PARAMS_CODE = -32602;
|
|
@@ -12002,7 +12024,7 @@ var ProviderResponseEncodeError = class extends Error {
|
|
|
12002
12024
|
this.name = "ProviderResponseEncodeError";
|
|
12003
12025
|
}
|
|
12004
12026
|
};
|
|
12005
|
-
var ignoredJsonRpcResultSchema =
|
|
12027
|
+
var ignoredJsonRpcResultSchema = z30.unknown();
|
|
12006
12028
|
|
|
12007
12029
|
// ../provider-bridge-protocol/src/version.ts
|
|
12008
12030
|
var PROVIDER_BRIDGE_PROTOCOL_VERSION = 2;
|
|
@@ -12010,69 +12032,69 @@ var THREAD_DELTA_GRAMMAR_V2 = PROVIDER_BRIDGE_PROTOCOL_VERSION;
|
|
|
12010
12032
|
var THREAD_DELTA_GRAMMAR_V3 = 3;
|
|
12011
12033
|
|
|
12012
12034
|
// ../provider-bridge-protocol/src/handshake.ts
|
|
12013
|
-
import { z as
|
|
12014
|
-
var bridgeGrammarVersionsSchema =
|
|
12035
|
+
import { z as z31 } from "zod";
|
|
12036
|
+
var bridgeGrammarVersionsSchema = z31.tuple([z31.number().int().positive(), z31.number().int().positive()]).refine(([min, max]) => min <= max, {
|
|
12015
12037
|
message: "grammarVersions must be an ascending [min, max] range"
|
|
12016
12038
|
});
|
|
12017
|
-
var bridgeSteerModeSchema =
|
|
12018
|
-
var bridgeCapabilitiesSchema =
|
|
12019
|
-
sessionRestore:
|
|
12020
|
-
threadArchive:
|
|
12021
|
-
threadRename:
|
|
12022
|
-
threadGoalClear:
|
|
12039
|
+
var bridgeSteerModeSchema = z31.enum(["inject", "queue"]);
|
|
12040
|
+
var bridgeCapabilitiesSchema = z31.object({
|
|
12041
|
+
sessionRestore: z31.boolean().default(false),
|
|
12042
|
+
threadArchive: z31.boolean().default(false),
|
|
12043
|
+
threadRename: z31.boolean().default(false),
|
|
12044
|
+
threadGoalClear: z31.boolean().default(false),
|
|
12023
12045
|
fork: providerForkSchema.default("none"),
|
|
12024
|
-
approvalEnforcedBy:
|
|
12046
|
+
approvalEnforcedBy: z31.enum(["runtime", "provider"]).default("runtime"),
|
|
12025
12047
|
grammarVersions: bridgeGrammarVersionsSchema.default([
|
|
12026
12048
|
PROVIDER_BRIDGE_PROTOCOL_VERSION,
|
|
12027
12049
|
PROVIDER_BRIDGE_PROTOCOL_VERSION
|
|
12028
12050
|
]),
|
|
12029
12051
|
steerMode: bridgeSteerModeSchema.default("queue"),
|
|
12030
|
-
skills:
|
|
12031
|
-
commands:
|
|
12052
|
+
skills: z31.object({ configure: z31.boolean().default(false) }).default({ configure: false }),
|
|
12053
|
+
commands: z31.object({ list: z31.boolean().default(false) }).default({ list: false })
|
|
12032
12054
|
}).passthrough();
|
|
12033
|
-
var initializeParamsSchema =
|
|
12034
|
-
protocolVersion:
|
|
12035
|
-
client:
|
|
12055
|
+
var initializeParamsSchema = z31.object({
|
|
12056
|
+
protocolVersion: z31.number().int().positive(),
|
|
12057
|
+
client: z31.object({ name: z31.string().min(1), version: z31.string().min(1) }),
|
|
12036
12058
|
grammarVersions: bridgeGrammarVersionsSchema.default([
|
|
12037
12059
|
PROVIDER_BRIDGE_PROTOCOL_VERSION,
|
|
12038
12060
|
PROVIDER_BRIDGE_PROTOCOL_VERSION
|
|
12039
12061
|
])
|
|
12040
12062
|
}).passthrough();
|
|
12041
|
-
var initializeResultSchema =
|
|
12042
|
-
protocolVersion:
|
|
12043
|
-
capabilities:
|
|
12063
|
+
var initializeResultSchema = z31.object({
|
|
12064
|
+
protocolVersion: z31.number().int().positive(),
|
|
12065
|
+
capabilities: z31.preprocess(
|
|
12044
12066
|
(value) => value ?? {},
|
|
12045
12067
|
bridgeCapabilitiesSchema
|
|
12046
12068
|
)
|
|
12047
12069
|
}).passthrough();
|
|
12048
12070
|
|
|
12049
12071
|
// ../provider-bridge-protocol/src/execution-options.ts
|
|
12050
|
-
import { z as
|
|
12051
|
-
var bridgeExecutionOptionsSchema =
|
|
12052
|
-
model:
|
|
12072
|
+
import { z as z32 } from "zod";
|
|
12073
|
+
var bridgeExecutionOptionsSchema = z32.object({
|
|
12074
|
+
model: z32.string().min(1).optional(),
|
|
12053
12075
|
serviceTier: serviceTierSchema.optional(),
|
|
12054
12076
|
reasoningLevel: reasoningLevelSchema.optional(),
|
|
12055
12077
|
promptMode: promptModeSchema.optional(),
|
|
12056
12078
|
sessionOptions: sessionOptionSelectionsSchema.optional(),
|
|
12057
|
-
instructions:
|
|
12058
|
-
envVars:
|
|
12059
|
-
providerOptions:
|
|
12079
|
+
instructions: z32.string().optional(),
|
|
12080
|
+
envVars: z32.record(z32.string(), z32.string()).optional(),
|
|
12081
|
+
providerOptions: z32.record(z32.string(), z32.unknown()).optional()
|
|
12060
12082
|
}).and(runtimePermissionPolicySchema);
|
|
12061
12083
|
|
|
12062
12084
|
// ../provider-bridge-protocol/src/provider-maintenance.ts
|
|
12063
|
-
import { z as
|
|
12064
|
-
var providerMaintenanceParamsSchema =
|
|
12065
|
-
providerId:
|
|
12066
|
-
cwd:
|
|
12067
|
-
providerOptions:
|
|
12085
|
+
import { z as z33 } from "zod";
|
|
12086
|
+
var providerMaintenanceParamsSchema = z33.object({
|
|
12087
|
+
providerId: z33.string().min(1),
|
|
12088
|
+
cwd: z33.string().min(1).optional(),
|
|
12089
|
+
providerOptions: z33.record(z33.string(), z33.unknown()).optional()
|
|
12068
12090
|
}).passthrough();
|
|
12069
|
-
var providerInstallationRequirementSchema =
|
|
12091
|
+
var providerInstallationRequirementSchema = z33.enum(["thread_rewind"]);
|
|
12070
12092
|
var providerInstallationStatusParamsSchema = providerMaintenanceParamsSchema.extend({
|
|
12071
12093
|
requirement: providerInstallationRequirementSchema.optional(),
|
|
12072
|
-
checkUpdates:
|
|
12094
|
+
checkUpdates: z33.boolean().default(true)
|
|
12073
12095
|
});
|
|
12074
|
-
var providerHealthSchema =
|
|
12075
|
-
status:
|
|
12096
|
+
var providerHealthSchema = z33.object({
|
|
12097
|
+
status: z33.enum([
|
|
12076
12098
|
"ready",
|
|
12077
12099
|
"not_installed",
|
|
12078
12100
|
"unauthenticated",
|
|
@@ -12080,115 +12102,115 @@ var providerHealthSchema = z32.object({
|
|
|
12080
12102
|
"unsupported_version",
|
|
12081
12103
|
"unknown"
|
|
12082
12104
|
]),
|
|
12083
|
-
statusMessage:
|
|
12084
|
-
accountEmail:
|
|
12085
|
-
planLabel:
|
|
12086
|
-
installedVersion:
|
|
12087
|
-
minimumSupportedVersion:
|
|
12088
|
-
canInstall:
|
|
12089
|
-
canUpdate:
|
|
12090
|
-
loginCommand:
|
|
12091
|
-
localLoginCommand:
|
|
12105
|
+
statusMessage: z33.string().min(1).nullable(),
|
|
12106
|
+
accountEmail: z33.string().nullable(),
|
|
12107
|
+
planLabel: z33.string().min(1).nullable(),
|
|
12108
|
+
installedVersion: z33.string().min(1).nullable(),
|
|
12109
|
+
minimumSupportedVersion: z33.string().min(1).nullable(),
|
|
12110
|
+
canInstall: z33.boolean(),
|
|
12111
|
+
canUpdate: z33.boolean(),
|
|
12112
|
+
loginCommand: z33.string().min(1).nullable(),
|
|
12113
|
+
localLoginCommand: z33.string().min(1).nullable().optional()
|
|
12092
12114
|
}).passthrough();
|
|
12093
|
-
var providerUsageWindowSchema =
|
|
12094
|
-
label:
|
|
12095
|
-
usedPercent:
|
|
12096
|
-
resetsAt:
|
|
12097
|
-
cost:
|
|
12098
|
-
usedUsdCents:
|
|
12099
|
-
limitUsdCents:
|
|
12115
|
+
var providerUsageWindowSchema = z33.object({
|
|
12116
|
+
label: z33.string().min(1),
|
|
12117
|
+
usedPercent: z33.number().min(0).max(100),
|
|
12118
|
+
resetsAt: z33.string().min(1).nullable(),
|
|
12119
|
+
cost: z33.object({
|
|
12120
|
+
usedUsdCents: z33.number().int().nonnegative(),
|
|
12121
|
+
limitUsdCents: z33.number().int().positive()
|
|
12100
12122
|
}).optional()
|
|
12101
12123
|
}).passthrough();
|
|
12102
|
-
var providerUsageSchema =
|
|
12103
|
-
|
|
12104
|
-
status:
|
|
12105
|
-
accountEmail:
|
|
12106
|
-
planLabel:
|
|
12107
|
-
windows:
|
|
12124
|
+
var providerUsageSchema = z33.discriminatedUnion("status", [
|
|
12125
|
+
z33.object({
|
|
12126
|
+
status: z33.literal("ok"),
|
|
12127
|
+
accountEmail: z33.string().email().nullable(),
|
|
12128
|
+
planLabel: z33.string().min(1).nullable(),
|
|
12129
|
+
windows: z33.array(providerUsageWindowSchema)
|
|
12108
12130
|
}).passthrough(),
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
status:
|
|
12114
|
-
message:
|
|
12115
|
-
planLabel:
|
|
12116
|
-
accountEmail:
|
|
12131
|
+
z33.object({ status: z33.literal("not_installed") }).passthrough(),
|
|
12132
|
+
z33.object({ status: z33.literal("unauthenticated") }).passthrough(),
|
|
12133
|
+
z33.object({ status: z33.literal("expired") }).passthrough(),
|
|
12134
|
+
z33.object({
|
|
12135
|
+
status: z33.literal("error"),
|
|
12136
|
+
message: z33.string().min(1),
|
|
12137
|
+
planLabel: z33.string().min(1).nullable().default(null),
|
|
12138
|
+
accountEmail: z33.string().nullable().default(null)
|
|
12117
12139
|
}).passthrough()
|
|
12118
12140
|
]);
|
|
12119
|
-
var providerHealthResultSchema =
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
supported:
|
|
12141
|
+
var providerHealthResultSchema = z33.discriminatedUnion("supported", [
|
|
12142
|
+
z33.object({ supported: z33.literal(false) }).passthrough(),
|
|
12143
|
+
z33.object({
|
|
12144
|
+
supported: z33.literal(true),
|
|
12123
12145
|
health: providerHealthSchema
|
|
12124
12146
|
}).passthrough()
|
|
12125
12147
|
]);
|
|
12126
|
-
var providerUsageResultSchema =
|
|
12127
|
-
|
|
12128
|
-
|
|
12129
|
-
supported:
|
|
12148
|
+
var providerUsageResultSchema = z33.discriminatedUnion("supported", [
|
|
12149
|
+
z33.object({ supported: z33.literal(false) }).passthrough(),
|
|
12150
|
+
z33.object({
|
|
12151
|
+
supported: z33.literal(true),
|
|
12130
12152
|
usage: providerUsageSchema
|
|
12131
12153
|
}).passthrough()
|
|
12132
12154
|
]);
|
|
12133
|
-
var providerInstallationActionKindSchema =
|
|
12155
|
+
var providerInstallationActionKindSchema = z33.enum([
|
|
12134
12156
|
"install",
|
|
12135
12157
|
"update"
|
|
12136
12158
|
]);
|
|
12137
|
-
var providerInstallationActionSchema =
|
|
12159
|
+
var providerInstallationActionSchema = z33.object({
|
|
12138
12160
|
kind: providerInstallationActionKindSchema,
|
|
12139
|
-
label:
|
|
12140
|
-
command:
|
|
12161
|
+
label: z33.enum(["Install", "Update"]),
|
|
12162
|
+
command: z33.string().min(1)
|
|
12141
12163
|
}).passthrough();
|
|
12142
|
-
var providerInstallationSourceSchema =
|
|
12164
|
+
var providerInstallationSourceSchema = z33.enum([
|
|
12143
12165
|
"notInstalled",
|
|
12144
12166
|
"npmGlobal",
|
|
12145
12167
|
"external"
|
|
12146
12168
|
]);
|
|
12147
|
-
var providerInstallationStatusSchema =
|
|
12148
|
-
executableName:
|
|
12149
|
-
executablePath:
|
|
12150
|
-
installed:
|
|
12169
|
+
var providerInstallationStatusSchema = z33.object({
|
|
12170
|
+
executableName: z33.string().min(1),
|
|
12171
|
+
executablePath: z33.string().min(1).nullable(),
|
|
12172
|
+
installed: z33.boolean(),
|
|
12151
12173
|
installSource: providerInstallationSourceSchema,
|
|
12152
|
-
currentVersion:
|
|
12153
|
-
latestVersion:
|
|
12154
|
-
minimumSupportedVersion:
|
|
12155
|
-
npmPackageName:
|
|
12156
|
-
npmGlobalPackageVersion:
|
|
12174
|
+
currentVersion: z33.string().min(1).nullable(),
|
|
12175
|
+
latestVersion: z33.string().min(1).nullable(),
|
|
12176
|
+
minimumSupportedVersion: z33.string().min(1).nullable(),
|
|
12177
|
+
npmPackageName: z33.string().min(1).nullable(),
|
|
12178
|
+
npmGlobalPackageVersion: z33.string().min(1).nullable(),
|
|
12157
12179
|
installAction: providerInstallationActionSchema.nullable(),
|
|
12158
|
-
needsUpdate:
|
|
12159
|
-
versionUnsupported:
|
|
12180
|
+
needsUpdate: z33.boolean(),
|
|
12181
|
+
versionUnsupported: z33.boolean()
|
|
12160
12182
|
}).passthrough();
|
|
12161
12183
|
var providerInstallationRunParamsSchema = providerMaintenanceParamsSchema.extend({
|
|
12162
12184
|
action: providerInstallationActionKindSchema
|
|
12163
12185
|
});
|
|
12164
|
-
var providerInstallationCommandSchema =
|
|
12165
|
-
command:
|
|
12166
|
-
args:
|
|
12167
|
-
displayCommand:
|
|
12186
|
+
var providerInstallationCommandSchema = z33.object({
|
|
12187
|
+
command: z33.string().min(1),
|
|
12188
|
+
args: z33.array(z33.string()).max(64),
|
|
12189
|
+
displayCommand: z33.string().min(1)
|
|
12168
12190
|
}).passthrough();
|
|
12169
|
-
var providerInstallationVerificationSchema =
|
|
12191
|
+
var providerInstallationVerificationSchema = z33.discriminatedUnion(
|
|
12170
12192
|
"kind",
|
|
12171
12193
|
[
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
kind:
|
|
12175
|
-
previousVersion:
|
|
12194
|
+
z33.object({ kind: z33.literal("installed") }).passthrough(),
|
|
12195
|
+
z33.object({
|
|
12196
|
+
kind: z33.literal("version_changed"),
|
|
12197
|
+
previousVersion: z33.string().min(1)
|
|
12176
12198
|
}).passthrough(),
|
|
12177
|
-
|
|
12178
|
-
kind:
|
|
12179
|
-
version:
|
|
12199
|
+
z33.object({
|
|
12200
|
+
kind: z33.literal("version_at_least"),
|
|
12201
|
+
version: z33.string().min(1)
|
|
12180
12202
|
}).passthrough()
|
|
12181
12203
|
]
|
|
12182
12204
|
);
|
|
12183
|
-
var providerInstallationRunResultSchema =
|
|
12205
|
+
var providerInstallationRunResultSchema = z33.discriminatedUnion(
|
|
12184
12206
|
"available",
|
|
12185
12207
|
[
|
|
12186
|
-
|
|
12187
|
-
available:
|
|
12188
|
-
message:
|
|
12208
|
+
z33.object({
|
|
12209
|
+
available: z33.literal(false),
|
|
12210
|
+
message: z33.string().min(1)
|
|
12189
12211
|
}).passthrough(),
|
|
12190
|
-
|
|
12191
|
-
available:
|
|
12212
|
+
z33.object({
|
|
12213
|
+
available: z33.literal(true),
|
|
12192
12214
|
command: providerInstallationCommandSchema,
|
|
12193
12215
|
verification: providerInstallationVerificationSchema
|
|
12194
12216
|
}).passthrough()
|
|
@@ -12196,7 +12218,7 @@ var providerInstallationRunResultSchema = z32.discriminatedUnion(
|
|
|
12196
12218
|
);
|
|
12197
12219
|
|
|
12198
12220
|
// ../provider-bridge-protocol/src/requests.ts
|
|
12199
|
-
import { z as
|
|
12221
|
+
import { z as z34 } from "zod";
|
|
12200
12222
|
var BRIDGE_REQUEST_METHODS = {
|
|
12201
12223
|
initialize: "initialize",
|
|
12202
12224
|
modelList: "model/list",
|
|
@@ -12219,83 +12241,84 @@ var BRIDGE_REQUEST_METHODS = {
|
|
|
12219
12241
|
skillsConfigure: "skills/configure"
|
|
12220
12242
|
};
|
|
12221
12243
|
var sessionConstructionFields = {
|
|
12222
|
-
threadId:
|
|
12223
|
-
cwd:
|
|
12244
|
+
threadId: z34.string().min(1),
|
|
12245
|
+
cwd: z34.string().min(1),
|
|
12224
12246
|
options: bridgeExecutionOptionsSchema,
|
|
12225
|
-
dynamicTools:
|
|
12226
|
-
disallowedTools:
|
|
12247
|
+
dynamicTools: z34.array(dynamicToolSchema).optional(),
|
|
12248
|
+
disallowedTools: z34.array(z34.string().min(1)).optional(),
|
|
12227
12249
|
instructionMode: instructionModeSchema
|
|
12228
12250
|
};
|
|
12229
|
-
var modelListParamsSchema =
|
|
12230
|
-
cwd:
|
|
12231
|
-
envVars:
|
|
12251
|
+
var modelListParamsSchema = z34.object({
|
|
12252
|
+
cwd: z34.string().min(1).optional(),
|
|
12253
|
+
envVars: z34.record(z34.string(), z34.string()).optional(),
|
|
12254
|
+
selectedModel: z34.string().min(1).optional()
|
|
12232
12255
|
}).passthrough();
|
|
12233
|
-
var commandListParamsSchema =
|
|
12256
|
+
var commandListParamsSchema = z34.object({ cwd: z34.string().min(1) }).passthrough();
|
|
12234
12257
|
var commandListResultSchema = threadProviderCommandsStateSchema;
|
|
12235
|
-
var threadStartParamsSchema =
|
|
12258
|
+
var threadStartParamsSchema = z34.object({
|
|
12236
12259
|
...sessionConstructionFields,
|
|
12237
|
-
input:
|
|
12260
|
+
input: z34.array(promptInputSchema).optional()
|
|
12238
12261
|
}).passthrough();
|
|
12239
|
-
var threadResumeParamsSchema =
|
|
12262
|
+
var threadResumeParamsSchema = z34.object({
|
|
12240
12263
|
...sessionConstructionFields,
|
|
12241
|
-
providerThreadId:
|
|
12264
|
+
providerThreadId: z34.string().min(1)
|
|
12242
12265
|
}).passthrough();
|
|
12243
|
-
var threadForkParamsSchema =
|
|
12266
|
+
var threadForkParamsSchema = z34.object({
|
|
12244
12267
|
...sessionConstructionFields,
|
|
12245
|
-
sourceProviderThreadId:
|
|
12246
|
-
sourceProviderCheckpointId:
|
|
12268
|
+
sourceProviderThreadId: z34.string().min(1),
|
|
12269
|
+
sourceProviderCheckpointId: z34.string().min(1).optional()
|
|
12247
12270
|
}).passthrough();
|
|
12248
|
-
var threadStopParamsSchema =
|
|
12249
|
-
threadId:
|
|
12250
|
-
providerThreadId:
|
|
12251
|
-
intent:
|
|
12252
|
-
activeTurnId:
|
|
12271
|
+
var threadStopParamsSchema = z34.object({
|
|
12272
|
+
threadId: z34.string().min(1),
|
|
12273
|
+
providerThreadId: z34.string().min(1),
|
|
12274
|
+
intent: z34.enum(["interrupt", "release"]),
|
|
12275
|
+
activeTurnId: z34.string().min(1).nullable()
|
|
12253
12276
|
}).passthrough();
|
|
12254
|
-
var threadRefParams =
|
|
12255
|
-
threadId:
|
|
12256
|
-
providerThreadId:
|
|
12277
|
+
var threadRefParams = z34.object({
|
|
12278
|
+
threadId: z34.string().min(1),
|
|
12279
|
+
providerThreadId: z34.string().min(1)
|
|
12257
12280
|
}).passthrough();
|
|
12258
12281
|
var threadDiscardParamsSchema = threadRefParams;
|
|
12259
12282
|
var threadArchiveParamsSchema = threadRefParams;
|
|
12260
12283
|
var threadUnarchiveParamsSchema = threadRefParams;
|
|
12261
12284
|
var threadGoalClearParamsSchema = threadRefParams;
|
|
12262
|
-
var threadNameSetParamsSchema =
|
|
12263
|
-
threadId:
|
|
12264
|
-
providerThreadId:
|
|
12265
|
-
title:
|
|
12285
|
+
var threadNameSetParamsSchema = z34.object({
|
|
12286
|
+
threadId: z34.string().min(1),
|
|
12287
|
+
providerThreadId: z34.string().min(1),
|
|
12288
|
+
title: z34.string().min(1)
|
|
12266
12289
|
}).passthrough();
|
|
12267
12290
|
var turnInputFields = {
|
|
12268
|
-
threadId:
|
|
12269
|
-
providerThreadId:
|
|
12270
|
-
input:
|
|
12291
|
+
threadId: z34.string().min(1),
|
|
12292
|
+
providerThreadId: z34.string().min(1),
|
|
12293
|
+
input: z34.array(promptInputSchema),
|
|
12271
12294
|
clientRequestId: clientTurnRequestIdSchema,
|
|
12272
12295
|
options: bridgeExecutionOptionsSchema
|
|
12273
12296
|
};
|
|
12274
|
-
var turnStartParamsSchema =
|
|
12275
|
-
var turnSteerParamsSchema =
|
|
12297
|
+
var turnStartParamsSchema = z34.object(turnInputFields).passthrough();
|
|
12298
|
+
var turnSteerParamsSchema = z34.object({
|
|
12276
12299
|
...turnInputFields,
|
|
12277
|
-
expectedTurnId:
|
|
12300
|
+
expectedTurnId: z34.string().min(1)
|
|
12278
12301
|
}).passthrough();
|
|
12279
|
-
var skillsConfigureRootSchema =
|
|
12280
|
-
id:
|
|
12281
|
-
path:
|
|
12282
|
-
skills:
|
|
12283
|
-
|
|
12284
|
-
name:
|
|
12285
|
-
description:
|
|
12302
|
+
var skillsConfigureRootSchema = z34.object({
|
|
12303
|
+
id: z34.string().min(1),
|
|
12304
|
+
path: z34.string().min(1),
|
|
12305
|
+
skills: z34.array(
|
|
12306
|
+
z34.object({
|
|
12307
|
+
name: z34.string().min(1),
|
|
12308
|
+
description: z34.string()
|
|
12286
12309
|
}).passthrough()
|
|
12287
12310
|
)
|
|
12288
12311
|
}).passthrough();
|
|
12289
|
-
var skillsConfigureParamsSchema =
|
|
12290
|
-
roots:
|
|
12312
|
+
var skillsConfigureParamsSchema = z34.object({
|
|
12313
|
+
roots: z34.array(skillsConfigureRootSchema)
|
|
12291
12314
|
}).passthrough();
|
|
12292
|
-
var threadIdentityResultSchema =
|
|
12293
|
-
providerThreadId:
|
|
12294
|
-
sessionRestorable:
|
|
12315
|
+
var threadIdentityResultSchema = z34.object({
|
|
12316
|
+
providerThreadId: z34.string().min(1),
|
|
12317
|
+
sessionRestorable: z34.boolean().optional()
|
|
12295
12318
|
}).passthrough();
|
|
12296
12319
|
|
|
12297
12320
|
// ../provider-bridge-protocol/src/notifications.ts
|
|
12298
|
-
import { z as
|
|
12321
|
+
import { z as z35 } from "zod";
|
|
12299
12322
|
var BRIDGE_NOTIFICATION_METHODS = {
|
|
12300
12323
|
threadIdentity: "thread/identity",
|
|
12301
12324
|
sessionReplaced: "session/replaced",
|
|
@@ -12303,143 +12326,143 @@ var BRIDGE_NOTIFICATION_METHODS = {
|
|
|
12303
12326
|
providerRecovery: "provider/recovery",
|
|
12304
12327
|
error: "error"
|
|
12305
12328
|
};
|
|
12306
|
-
var threadIdentityNotificationSchema =
|
|
12307
|
-
threadId:
|
|
12308
|
-
providerThreadId:
|
|
12309
|
-
sessionRestorable:
|
|
12329
|
+
var threadIdentityNotificationSchema = z35.object({
|
|
12330
|
+
threadId: z35.string().min(1),
|
|
12331
|
+
providerThreadId: z35.string().min(1),
|
|
12332
|
+
sessionRestorable: z35.boolean().optional()
|
|
12310
12333
|
}).passthrough();
|
|
12311
|
-
var sessionReplacedNotificationSchema =
|
|
12312
|
-
threadId:
|
|
12313
|
-
providerThreadId:
|
|
12314
|
-
reason:
|
|
12315
|
-
contextLost:
|
|
12316
|
-
showRuntimeNote:
|
|
12334
|
+
var sessionReplacedNotificationSchema = z35.object({
|
|
12335
|
+
threadId: z35.string().min(1),
|
|
12336
|
+
providerThreadId: z35.string().min(1).nullable(),
|
|
12337
|
+
reason: z35.string().min(1),
|
|
12338
|
+
contextLost: z35.boolean().default(false),
|
|
12339
|
+
showRuntimeNote: z35.boolean().default(false)
|
|
12317
12340
|
}).passthrough();
|
|
12318
|
-
var providerRecoveryNotificationSchema =
|
|
12319
|
-
threadId:
|
|
12341
|
+
var providerRecoveryNotificationSchema = z35.object({
|
|
12342
|
+
threadId: z35.string().min(1).optional(),
|
|
12320
12343
|
...providerRecoveryHintSchema.shape
|
|
12321
12344
|
}).passthrough();
|
|
12322
|
-
var errorNotificationSchema =
|
|
12323
|
-
threadId:
|
|
12324
|
-
providerThreadId:
|
|
12325
|
-
message:
|
|
12345
|
+
var errorNotificationSchema = z35.object({
|
|
12346
|
+
threadId: z35.string().min(1).optional(),
|
|
12347
|
+
providerThreadId: z35.string().min(1).optional(),
|
|
12348
|
+
message: z35.string().min(1)
|
|
12326
12349
|
}).passthrough();
|
|
12327
12350
|
|
|
12328
12351
|
// ../provider-bridge-protocol/src/thread-delta.ts
|
|
12329
|
-
import { z as
|
|
12352
|
+
import { z as z36 } from "zod";
|
|
12330
12353
|
var THREAD_DELTA_NOTIFICATION_METHOD = "thread/delta";
|
|
12331
12354
|
var deltaPresentationSchema = threadEventItemPresentationSchema;
|
|
12332
12355
|
var THREAD_DELTA_KEY_SEPARATOR = "";
|
|
12333
|
-
var deltaKeyPartSchema =
|
|
12356
|
+
var deltaKeyPartSchema = z36.string().min(1).refine((value) => !value.includes(THREAD_DELTA_KEY_SEPARATOR), {
|
|
12334
12357
|
message: "provider keys must not contain the internal key separator (\\u001f)"
|
|
12335
12358
|
});
|
|
12336
|
-
var deltaItemKeySchema =
|
|
12359
|
+
var deltaItemKeySchema = z36.object({
|
|
12337
12360
|
providerItemId: deltaKeyPartSchema.optional(),
|
|
12338
12361
|
channel: deltaKeyPartSchema.optional(),
|
|
12339
12362
|
parentRef: deltaKeyPartSchema.optional()
|
|
12340
12363
|
});
|
|
12341
12364
|
var providerTurnIdSchema = deltaKeyPartSchema;
|
|
12342
|
-
var deltaFileChangeSchema =
|
|
12343
|
-
path:
|
|
12344
|
-
kind:
|
|
12345
|
-
movePath:
|
|
12346
|
-
diff:
|
|
12347
|
-
oldText:
|
|
12348
|
-
newText:
|
|
12349
|
-
});
|
|
12350
|
-
var deltaBackgroundTaskShapeSchema =
|
|
12351
|
-
type:
|
|
12352
|
-
familyId:
|
|
12353
|
-
taskType:
|
|
12354
|
-
description:
|
|
12365
|
+
var deltaFileChangeSchema = z36.object({
|
|
12366
|
+
path: z36.string(),
|
|
12367
|
+
kind: z36.enum(["add", "update", "delete"]),
|
|
12368
|
+
movePath: z36.string().optional(),
|
|
12369
|
+
diff: z36.string().optional(),
|
|
12370
|
+
oldText: z36.string().optional(),
|
|
12371
|
+
newText: z36.string().optional()
|
|
12372
|
+
});
|
|
12373
|
+
var deltaBackgroundTaskShapeSchema = z36.object({
|
|
12374
|
+
type: z36.literal("backgroundTask"),
|
|
12375
|
+
familyId: z36.string().min(1),
|
|
12376
|
+
taskType: z36.string(),
|
|
12377
|
+
description: z36.string(),
|
|
12355
12378
|
status: threadEventItemStatusSchema,
|
|
12356
12379
|
taskStatus: backgroundTaskStatusSchema,
|
|
12357
|
-
skipTranscript:
|
|
12358
|
-
foreground:
|
|
12359
|
-
workflowName:
|
|
12380
|
+
skipTranscript: z36.boolean(),
|
|
12381
|
+
foreground: z36.boolean().optional(),
|
|
12382
|
+
workflowName: z36.string().optional(),
|
|
12360
12383
|
workflow: workflowProgressSnapshotSchema.optional(),
|
|
12361
12384
|
usage: backgroundTaskUsageSchema.optional(),
|
|
12362
|
-
summary:
|
|
12363
|
-
error:
|
|
12364
|
-
outputFile:
|
|
12385
|
+
summary: z36.string().optional(),
|
|
12386
|
+
error: z36.string().optional(),
|
|
12387
|
+
outputFile: z36.string().optional()
|
|
12365
12388
|
});
|
|
12366
|
-
var deltaFileReadShapeSchema =
|
|
12367
|
-
type:
|
|
12368
|
-
path:
|
|
12369
|
-
cmd:
|
|
12389
|
+
var deltaFileReadShapeSchema = z36.object({
|
|
12390
|
+
type: z36.literal("fileRead"),
|
|
12391
|
+
path: z36.string(),
|
|
12392
|
+
cmd: z36.string().optional()
|
|
12370
12393
|
});
|
|
12371
|
-
var deltaSearchShapeSchema =
|
|
12372
|
-
type:
|
|
12394
|
+
var deltaSearchShapeSchema = z36.object({
|
|
12395
|
+
type: z36.literal("search"),
|
|
12373
12396
|
mode: threadEventSearchModeSchema,
|
|
12374
|
-
query:
|
|
12375
|
-
path:
|
|
12376
|
-
cmd:
|
|
12397
|
+
query: z36.string(),
|
|
12398
|
+
path: z36.string().optional(),
|
|
12399
|
+
cmd: z36.string().optional()
|
|
12377
12400
|
});
|
|
12378
|
-
var deltaDelegationShapeSchema =
|
|
12379
|
-
type:
|
|
12401
|
+
var deltaDelegationShapeSchema = z36.object({
|
|
12402
|
+
type: z36.literal("delegation"),
|
|
12380
12403
|
childRef: deltaKeyPartSchema,
|
|
12381
|
-
label:
|
|
12382
|
-
background:
|
|
12383
|
-
summary:
|
|
12404
|
+
label: z36.string(),
|
|
12405
|
+
background: z36.boolean(),
|
|
12406
|
+
summary: z36.string().optional()
|
|
12384
12407
|
});
|
|
12385
|
-
var deltaPlanStepsShapeSchema =
|
|
12386
|
-
type:
|
|
12387
|
-
steps:
|
|
12388
|
-
explanation:
|
|
12408
|
+
var deltaPlanStepsShapeSchema = z36.object({
|
|
12409
|
+
type: z36.literal("planSteps"),
|
|
12410
|
+
steps: z36.array(threadEventPlanStepSchema),
|
|
12411
|
+
explanation: z36.string().optional()
|
|
12389
12412
|
});
|
|
12390
|
-
var deltaExtensionShapeSchema =
|
|
12391
|
-
type:
|
|
12413
|
+
var deltaExtensionShapeSchema = z36.object({
|
|
12414
|
+
type: z36.literal("extension"),
|
|
12392
12415
|
kind: extensionKindSchema,
|
|
12393
12416
|
payload: jsonValueSchema
|
|
12394
12417
|
});
|
|
12395
|
-
var deltaItemShapeSchema =
|
|
12396
|
-
|
|
12397
|
-
type:
|
|
12398
|
-
command:
|
|
12399
|
-
cwd:
|
|
12400
|
-
aggregatedOutput:
|
|
12401
|
-
exitCode:
|
|
12402
|
-
durationMs:
|
|
12418
|
+
var deltaItemShapeSchema = z36.discriminatedUnion("type", [
|
|
12419
|
+
z36.object({
|
|
12420
|
+
type: z36.literal("command"),
|
|
12421
|
+
command: z36.string(),
|
|
12422
|
+
cwd: z36.string(),
|
|
12423
|
+
aggregatedOutput: z36.string().optional(),
|
|
12424
|
+
exitCode: z36.number().optional(),
|
|
12425
|
+
durationMs: z36.number().optional()
|
|
12403
12426
|
}),
|
|
12404
|
-
|
|
12405
|
-
type:
|
|
12406
|
-
changes:
|
|
12427
|
+
z36.object({
|
|
12428
|
+
type: z36.literal("fileChange"),
|
|
12429
|
+
changes: z36.array(deltaFileChangeSchema)
|
|
12407
12430
|
}),
|
|
12408
|
-
|
|
12409
|
-
type:
|
|
12410
|
-
tool:
|
|
12411
|
-
server:
|
|
12412
|
-
args:
|
|
12413
|
-
result:
|
|
12414
|
-
error:
|
|
12415
|
-
durationMs:
|
|
12431
|
+
z36.object({
|
|
12432
|
+
type: z36.literal("tool"),
|
|
12433
|
+
tool: z36.string(),
|
|
12434
|
+
server: z36.string().optional(),
|
|
12435
|
+
args: z36.unknown().optional(),
|
|
12436
|
+
result: z36.unknown().optional(),
|
|
12437
|
+
error: z36.string().optional(),
|
|
12438
|
+
durationMs: z36.number().optional()
|
|
12416
12439
|
}),
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
type:
|
|
12421
|
-
summary:
|
|
12422
|
-
content:
|
|
12440
|
+
z36.object({ type: z36.literal("compaction") }),
|
|
12441
|
+
z36.object({ type: z36.literal("agentMessage"), text: z36.string() }),
|
|
12442
|
+
z36.object({
|
|
12443
|
+
type: z36.literal("reasoning"),
|
|
12444
|
+
summary: z36.array(z36.string()),
|
|
12445
|
+
content: z36.array(z36.string())
|
|
12423
12446
|
}),
|
|
12424
|
-
|
|
12425
|
-
|
|
12426
|
-
type:
|
|
12427
|
-
queries:
|
|
12447
|
+
z36.object({ type: z36.literal("plan"), text: z36.string() }),
|
|
12448
|
+
z36.object({
|
|
12449
|
+
type: z36.literal("webSearch"),
|
|
12450
|
+
queries: z36.array(z36.string()).min(1)
|
|
12428
12451
|
}),
|
|
12429
|
-
|
|
12430
|
-
type:
|
|
12431
|
-
url:
|
|
12432
|
-
prompt:
|
|
12433
|
-
pattern:
|
|
12452
|
+
z36.object({
|
|
12453
|
+
type: z36.literal("webFetch"),
|
|
12454
|
+
url: z36.string(),
|
|
12455
|
+
prompt: z36.string().nullable().optional(),
|
|
12456
|
+
pattern: z36.string().nullable()
|
|
12434
12457
|
}),
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
type:
|
|
12438
|
-
prompt:
|
|
12439
|
-
path:
|
|
12440
|
-
result:
|
|
12441
|
-
error:
|
|
12442
|
-
transparentBackground:
|
|
12458
|
+
z36.object({ type: z36.literal("imageView"), path: z36.string() }),
|
|
12459
|
+
z36.object({
|
|
12460
|
+
type: z36.literal("imageGeneration"),
|
|
12461
|
+
prompt: z36.string().nullable(),
|
|
12462
|
+
path: z36.string().nullable(),
|
|
12463
|
+
result: z36.string().optional(),
|
|
12464
|
+
error: z36.string().nullable(),
|
|
12465
|
+
transparentBackground: z36.boolean()
|
|
12443
12466
|
}),
|
|
12444
12467
|
deltaBackgroundTaskShapeSchema,
|
|
12445
12468
|
deltaFileReadShapeSchema,
|
|
@@ -12448,22 +12471,22 @@ var deltaItemShapeSchema = z35.discriminatedUnion("type", [
|
|
|
12448
12471
|
deltaPlanStepsShapeSchema,
|
|
12449
12472
|
deltaExtensionShapeSchema
|
|
12450
12473
|
]);
|
|
12451
|
-
var deltaProgressSnapshotSchema =
|
|
12474
|
+
var deltaProgressSnapshotSchema = z36.discriminatedUnion("type", [
|
|
12452
12475
|
deltaBackgroundTaskShapeSchema,
|
|
12453
12476
|
deltaDelegationShapeSchema
|
|
12454
12477
|
]);
|
|
12455
|
-
var deltaTextChannelSchema =
|
|
12478
|
+
var deltaTextChannelSchema = z36.enum([
|
|
12456
12479
|
"agentMessage",
|
|
12457
12480
|
"reasoningSummary",
|
|
12458
12481
|
"reasoningText",
|
|
12459
12482
|
"plan"
|
|
12460
12483
|
]);
|
|
12461
|
-
var deltaOutputChannelSchema =
|
|
12462
|
-
var deltaErrorSchema =
|
|
12463
|
-
var deltaAttachSchema =
|
|
12464
|
-
var deltaNoTurnFallbackSchema =
|
|
12484
|
+
var deltaOutputChannelSchema = z36.enum(["command", "fileChange"]);
|
|
12485
|
+
var deltaErrorSchema = z36.object({ message: z36.string() });
|
|
12486
|
+
var deltaAttachSchema = z36.enum(["open", "currentOrLast"]);
|
|
12487
|
+
var deltaNoTurnFallbackSchema = z36.object({
|
|
12465
12488
|
raw: providerRawEventSchema,
|
|
12466
|
-
rawType:
|
|
12489
|
+
rawType: z36.string()
|
|
12467
12490
|
});
|
|
12468
12491
|
function requireExtensionPresentation(delta, ctx) {
|
|
12469
12492
|
if (delta.item.type === "extension" && delta.presentation === void 0) {
|
|
@@ -12474,36 +12497,36 @@ function requireExtensionPresentation(delta, ctx) {
|
|
|
12474
12497
|
});
|
|
12475
12498
|
}
|
|
12476
12499
|
}
|
|
12477
|
-
var threadDeltaSchema =
|
|
12478
|
-
|
|
12479
|
-
kind:
|
|
12500
|
+
var threadDeltaSchema = z36.discriminatedUnion("kind", [
|
|
12501
|
+
z36.object({
|
|
12502
|
+
kind: z36.literal("input.accepted"),
|
|
12480
12503
|
clientRequestId: clientTurnRequestIdSchema,
|
|
12481
12504
|
providerTurnId: providerTurnIdSchema.optional()
|
|
12482
12505
|
}),
|
|
12483
|
-
|
|
12484
|
-
kind:
|
|
12485
|
-
text:
|
|
12506
|
+
z36.object({
|
|
12507
|
+
kind: z36.literal("input.provider"),
|
|
12508
|
+
text: z36.string().min(1),
|
|
12486
12509
|
parentRef: deltaKeyPartSchema.optional()
|
|
12487
12510
|
}),
|
|
12488
|
-
|
|
12489
|
-
kind:
|
|
12511
|
+
z36.object({
|
|
12512
|
+
kind: z36.literal("turn.open"),
|
|
12490
12513
|
providerTurnId: providerTurnIdSchema.optional(),
|
|
12491
12514
|
parentRef: deltaKeyPartSchema.optional()
|
|
12492
12515
|
}),
|
|
12493
|
-
|
|
12494
|
-
kind:
|
|
12495
|
-
state:
|
|
12516
|
+
z36.object({
|
|
12517
|
+
kind: z36.literal("turn.mainRun"),
|
|
12518
|
+
state: z36.enum(["idle", "running"])
|
|
12496
12519
|
}),
|
|
12497
|
-
|
|
12498
|
-
kind:
|
|
12520
|
+
z36.object({
|
|
12521
|
+
kind: z36.literal("turn.boundary"),
|
|
12499
12522
|
status: threadEventTurnStatusSchema,
|
|
12500
12523
|
error: deltaErrorSchema.optional(),
|
|
12501
|
-
providerCheckpointId:
|
|
12502
|
-
claimIfIdle:
|
|
12524
|
+
providerCheckpointId: z36.string().min(1).optional(),
|
|
12525
|
+
claimIfIdle: z36.boolean().optional(),
|
|
12503
12526
|
providerTurnId: providerTurnIdSchema.optional()
|
|
12504
12527
|
}),
|
|
12505
|
-
|
|
12506
|
-
kind:
|
|
12528
|
+
z36.object({
|
|
12529
|
+
kind: z36.literal("item.open"),
|
|
12507
12530
|
key: deltaItemKeySchema,
|
|
12508
12531
|
item: deltaItemShapeSchema,
|
|
12509
12532
|
presentation: deltaPresentationSchema.optional(),
|
|
@@ -12511,153 +12534,153 @@ var threadDeltaSchema = z35.discriminatedUnion("kind", [
|
|
|
12511
12534
|
providerTurnId: providerTurnIdSchema.optional(),
|
|
12512
12535
|
noTurnFallback: deltaNoTurnFallbackSchema.optional()
|
|
12513
12536
|
}).superRefine(requireExtensionPresentation),
|
|
12514
|
-
|
|
12515
|
-
kind:
|
|
12537
|
+
z36.object({
|
|
12538
|
+
kind: z36.literal("item.close"),
|
|
12516
12539
|
key: deltaItemKeySchema,
|
|
12517
12540
|
status: threadEventItemStatusSchema,
|
|
12518
|
-
resultText:
|
|
12519
|
-
exitCode:
|
|
12520
|
-
aggregatedOutput:
|
|
12521
|
-
approvalStatus:
|
|
12541
|
+
resultText: z36.string().optional(),
|
|
12542
|
+
exitCode: z36.number().optional(),
|
|
12543
|
+
aggregatedOutput: z36.string().optional(),
|
|
12544
|
+
approvalStatus: z36.literal("denied").optional(),
|
|
12522
12545
|
item: deltaItemShapeSchema,
|
|
12523
12546
|
presentation: deltaPresentationSchema.optional(),
|
|
12524
12547
|
providerTurnId: providerTurnIdSchema.optional(),
|
|
12525
12548
|
noTurnFallback: deltaNoTurnFallbackSchema.optional()
|
|
12526
12549
|
}).superRefine(requireExtensionPresentation),
|
|
12527
|
-
|
|
12528
|
-
kind:
|
|
12550
|
+
z36.object({
|
|
12551
|
+
kind: z36.literal("item.progress"),
|
|
12529
12552
|
key: deltaItemKeySchema,
|
|
12530
|
-
message:
|
|
12553
|
+
message: z36.string().optional(),
|
|
12531
12554
|
snapshot: deltaProgressSnapshotSchema.optional(),
|
|
12532
|
-
flush:
|
|
12555
|
+
flush: z36.boolean().optional(),
|
|
12533
12556
|
providerTurnId: providerTurnIdSchema.optional(),
|
|
12534
12557
|
noTurnFallback: deltaNoTurnFallbackSchema.optional()
|
|
12535
12558
|
}),
|
|
12536
|
-
|
|
12537
|
-
kind:
|
|
12559
|
+
z36.object({
|
|
12560
|
+
kind: z36.literal("item.textDelta"),
|
|
12538
12561
|
key: deltaItemKeySchema,
|
|
12539
12562
|
channel: deltaTextChannelSchema,
|
|
12540
|
-
text:
|
|
12563
|
+
text: z36.string(),
|
|
12541
12564
|
providerTurnId: providerTurnIdSchema.optional(),
|
|
12542
12565
|
noTurnFallback: deltaNoTurnFallbackSchema.optional()
|
|
12543
12566
|
}),
|
|
12544
|
-
|
|
12545
|
-
kind:
|
|
12567
|
+
z36.object({
|
|
12568
|
+
kind: z36.literal("item.textClose"),
|
|
12546
12569
|
key: deltaItemKeySchema,
|
|
12547
12570
|
channel: deltaTextChannelSchema,
|
|
12548
|
-
text:
|
|
12571
|
+
text: z36.string().optional(),
|
|
12549
12572
|
providerTurnId: providerTurnIdSchema.optional(),
|
|
12550
12573
|
noTurnFallback: deltaNoTurnFallbackSchema.optional()
|
|
12551
12574
|
}),
|
|
12552
|
-
|
|
12553
|
-
kind:
|
|
12575
|
+
z36.object({
|
|
12576
|
+
kind: z36.literal("item.outputDelta"),
|
|
12554
12577
|
key: deltaItemKeySchema,
|
|
12555
12578
|
channel: deltaOutputChannelSchema,
|
|
12556
|
-
text:
|
|
12579
|
+
text: z36.string(),
|
|
12557
12580
|
providerTurnId: providerTurnIdSchema.optional(),
|
|
12558
12581
|
noTurnFallback: deltaNoTurnFallbackSchema.optional()
|
|
12559
12582
|
}),
|
|
12560
|
-
|
|
12561
|
-
kind:
|
|
12583
|
+
z36.object({
|
|
12584
|
+
kind: z36.literal("command.outputSnapshot"),
|
|
12562
12585
|
key: deltaItemKeySchema,
|
|
12563
|
-
text:
|
|
12586
|
+
text: z36.string(),
|
|
12564
12587
|
noTurnFallback: deltaNoTurnFallbackSchema.optional()
|
|
12565
12588
|
}),
|
|
12566
|
-
|
|
12567
|
-
kind:
|
|
12589
|
+
z36.object({
|
|
12590
|
+
kind: z36.literal("usage"),
|
|
12568
12591
|
total: threadEventTokenUsageBreakdownSchema,
|
|
12569
12592
|
last: threadEventTokenUsageBreakdownSchema,
|
|
12570
|
-
modelContextWindow:
|
|
12593
|
+
modelContextWindow: z36.number().nullable(),
|
|
12571
12594
|
promptCacheTtlMs: promptCacheTtlMsSchema.optional(),
|
|
12572
12595
|
providerTurnId: providerTurnIdSchema.optional()
|
|
12573
12596
|
}),
|
|
12574
|
-
|
|
12575
|
-
kind:
|
|
12597
|
+
z36.object({
|
|
12598
|
+
kind: z36.literal("contextWindow"),
|
|
12576
12599
|
snapshot: contextSnapshotSchema.optional(),
|
|
12577
|
-
used:
|
|
12578
|
-
size:
|
|
12579
|
-
estimated:
|
|
12600
|
+
used: z36.number().nullable(),
|
|
12601
|
+
size: z36.number().nullable().optional(),
|
|
12602
|
+
estimated: z36.boolean(),
|
|
12580
12603
|
cost: threadUsageCostSchema.optional(),
|
|
12581
12604
|
attach: deltaAttachSchema,
|
|
12582
12605
|
providerTurnId: providerTurnIdSchema.optional()
|
|
12583
12606
|
}),
|
|
12584
|
-
|
|
12585
|
-
kind:
|
|
12607
|
+
z36.object({
|
|
12608
|
+
kind: z36.literal("context.compacted"),
|
|
12586
12609
|
providerTurnId: providerTurnIdSchema.optional(),
|
|
12587
12610
|
noTurnFallback: deltaNoTurnFallbackSchema.optional()
|
|
12588
12611
|
}),
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
kind:
|
|
12592
|
-
diff:
|
|
12612
|
+
z36.object({ kind: z36.literal("context.cleared") }),
|
|
12613
|
+
z36.object({
|
|
12614
|
+
kind: z36.literal("turn.diff"),
|
|
12615
|
+
diff: z36.string(),
|
|
12593
12616
|
providerTurnId: providerTurnIdSchema.optional()
|
|
12594
12617
|
}),
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
kind:
|
|
12598
|
-
providerThreadId:
|
|
12618
|
+
z36.object({ kind: z36.literal("thread.started") }),
|
|
12619
|
+
z36.object({
|
|
12620
|
+
kind: z36.literal("thread.identity"),
|
|
12621
|
+
providerThreadId: z36.string().min(1)
|
|
12599
12622
|
}),
|
|
12600
|
-
|
|
12601
|
-
kind:
|
|
12602
|
-
name:
|
|
12603
|
-
source:
|
|
12623
|
+
z36.object({
|
|
12624
|
+
kind: z36.literal("thread.name"),
|
|
12625
|
+
name: z36.string().min(1),
|
|
12626
|
+
source: z36.literal("agent").optional()
|
|
12604
12627
|
}),
|
|
12605
|
-
|
|
12606
|
-
kind:
|
|
12628
|
+
z36.object({
|
|
12629
|
+
kind: z36.literal("extension.state"),
|
|
12607
12630
|
extensionKind: extensionKindSchema,
|
|
12608
12631
|
payload: jsonValueSchema
|
|
12609
12632
|
}),
|
|
12610
|
-
|
|
12611
|
-
kind:
|
|
12633
|
+
z36.object({
|
|
12634
|
+
kind: z36.literal("provider.rateLimits"),
|
|
12612
12635
|
rateLimits: providerRateLimitStateSchema
|
|
12613
12636
|
}),
|
|
12614
|
-
|
|
12615
|
-
kind:
|
|
12616
|
-
message:
|
|
12617
|
-
detail:
|
|
12618
|
-
willRetry:
|
|
12637
|
+
z36.object({
|
|
12638
|
+
kind: z36.literal("provider.error"),
|
|
12639
|
+
message: z36.string(),
|
|
12640
|
+
detail: z36.string().optional(),
|
|
12641
|
+
willRetry: z36.boolean().optional(),
|
|
12619
12642
|
category: providerErrorCategorySchema.optional(),
|
|
12620
12643
|
errorInfo: providerErrorInfoSchema.optional(),
|
|
12621
|
-
settlesTurn:
|
|
12644
|
+
settlesTurn: z36.boolean().optional(),
|
|
12622
12645
|
providerTurnId: providerTurnIdSchema.optional(),
|
|
12623
|
-
threadScoped:
|
|
12646
|
+
threadScoped: z36.boolean().optional()
|
|
12624
12647
|
}),
|
|
12625
|
-
|
|
12626
|
-
kind:
|
|
12627
|
-
originalModel:
|
|
12628
|
-
fallbackModel:
|
|
12629
|
-
reason:
|
|
12630
|
-
message:
|
|
12648
|
+
z36.object({
|
|
12649
|
+
kind: z36.literal("provider.modelFallback"),
|
|
12650
|
+
originalModel: z36.string().min(1),
|
|
12651
|
+
fallbackModel: z36.string().min(1),
|
|
12652
|
+
reason: z36.enum(["refusal", "provider"]),
|
|
12653
|
+
message: z36.string()
|
|
12631
12654
|
}),
|
|
12632
|
-
|
|
12633
|
-
kind:
|
|
12634
|
-
summary:
|
|
12635
|
-
details:
|
|
12655
|
+
z36.object({
|
|
12656
|
+
kind: z36.literal("provider.warning"),
|
|
12657
|
+
summary: z36.string().optional(),
|
|
12658
|
+
details: z36.string().optional(),
|
|
12636
12659
|
category: threadEventWarningCategorySchema.optional(),
|
|
12637
|
-
vouchedTurn:
|
|
12660
|
+
vouchedTurn: z36.boolean().optional()
|
|
12638
12661
|
}),
|
|
12639
|
-
|
|
12640
|
-
kind:
|
|
12662
|
+
z36.object({
|
|
12663
|
+
kind: z36.literal("unhandled"),
|
|
12641
12664
|
raw: providerRawEventSchema,
|
|
12642
|
-
rawType:
|
|
12643
|
-
vouchedTurn:
|
|
12644
|
-
onlyIfNoTurn:
|
|
12665
|
+
rawType: z36.string(),
|
|
12666
|
+
vouchedTurn: z36.boolean(),
|
|
12667
|
+
onlyIfNoTurn: z36.boolean().optional(),
|
|
12645
12668
|
parentRef: deltaKeyPartSchema.optional(),
|
|
12646
12669
|
providerTurnId: providerTurnIdSchema.optional()
|
|
12647
12670
|
}),
|
|
12648
|
-
|
|
12649
|
-
|
|
12671
|
+
z36.object({ kind: z36.literal("session.ended") }),
|
|
12672
|
+
z36.object({ kind: z36.literal("session.reset") })
|
|
12650
12673
|
]);
|
|
12651
|
-
var threadDeltaNotificationParamsSchema =
|
|
12652
|
-
threadId:
|
|
12653
|
-
deltas:
|
|
12674
|
+
var threadDeltaNotificationParamsSchema = z36.object({
|
|
12675
|
+
threadId: z36.string().min(1),
|
|
12676
|
+
deltas: z36.array(threadDeltaSchema)
|
|
12654
12677
|
}).passthrough();
|
|
12655
12678
|
|
|
12656
12679
|
// ../provider-bridge-acp/src/launch-spec.ts
|
|
12657
|
-
import { z as
|
|
12658
|
-
var acpNativeSkillRootsSchema =
|
|
12659
|
-
user:
|
|
12660
|
-
project:
|
|
12680
|
+
import { z as z37 } from "zod";
|
|
12681
|
+
var acpNativeSkillRootsSchema = z37.object({
|
|
12682
|
+
user: z37.array(providerNativeRootInputSchema).default([]),
|
|
12683
|
+
project: z37.array(providerNativeRootInputSchema).default([])
|
|
12661
12684
|
}).strict().superRefine((roots, context) => {
|
|
12662
12685
|
const normalized = providerNativeRootsSchema.safeParse(
|
|
12663
12686
|
normalizeProviderNativeRoots(roots)
|
|
@@ -12673,16 +12696,16 @@ var acpNativeSkillRootsSchema = z36.object({
|
|
|
12673
12696
|
});
|
|
12674
12697
|
}
|
|
12675
12698
|
});
|
|
12676
|
-
var acpLaunchSpecSchema =
|
|
12677
|
-
displayName:
|
|
12678
|
-
command:
|
|
12679
|
-
args:
|
|
12680
|
-
env:
|
|
12681
|
-
cwd:
|
|
12682
|
-
modelCli:
|
|
12683
|
-
listArgs:
|
|
12684
|
-
selectFlag:
|
|
12685
|
-
primaryModels:
|
|
12699
|
+
var acpLaunchSpecSchema = z37.object({
|
|
12700
|
+
displayName: z37.string().min(1),
|
|
12701
|
+
command: z37.string().min(1),
|
|
12702
|
+
args: z37.array(z37.string()),
|
|
12703
|
+
env: z37.record(z37.string().min(1), z37.string()),
|
|
12704
|
+
cwd: z37.string().min(1).optional(),
|
|
12705
|
+
modelCli: z37.object({
|
|
12706
|
+
listArgs: z37.array(z37.string()),
|
|
12707
|
+
selectFlag: z37.string().min(1).optional(),
|
|
12708
|
+
primaryModels: z37.array(z37.string())
|
|
12686
12709
|
}).strict().transform(
|
|
12687
12710
|
(modelCli) => modelCli.listArgs.length > 0 ? modelCli : void 0
|
|
12688
12711
|
).optional(),
|
|
@@ -12720,35 +12743,35 @@ function normalizeAcpLaunchSpec(spec) {
|
|
|
12720
12743
|
}
|
|
12721
12744
|
|
|
12722
12745
|
// src/claude-task-tools.ts
|
|
12723
|
-
import { z as
|
|
12724
|
-
var claudeTaskToolNameSchema =
|
|
12746
|
+
import { z as z38 } from "zod";
|
|
12747
|
+
var claudeTaskToolNameSchema = z38.enum([
|
|
12725
12748
|
"TaskCreate",
|
|
12726
12749
|
"TaskGet",
|
|
12727
12750
|
"TaskList",
|
|
12728
12751
|
"TaskUpdate"
|
|
12729
12752
|
]);
|
|
12730
|
-
var claudeTaskStatusSchema =
|
|
12731
|
-
var claudeTaskCreateOutputSchema =
|
|
12732
|
-
task:
|
|
12733
|
-
id:
|
|
12734
|
-
subject:
|
|
12753
|
+
var claudeTaskStatusSchema = z38.enum(["pending", "in_progress", "completed"]);
|
|
12754
|
+
var claudeTaskCreateOutputSchema = z38.object({
|
|
12755
|
+
task: z38.object({
|
|
12756
|
+
id: z38.string(),
|
|
12757
|
+
subject: z38.string()
|
|
12735
12758
|
}).passthrough()
|
|
12736
12759
|
}).passthrough();
|
|
12737
|
-
var claudeTaskGetOutputSchema =
|
|
12738
|
-
task:
|
|
12739
|
-
id:
|
|
12760
|
+
var claudeTaskGetOutputSchema = z38.object({
|
|
12761
|
+
task: z38.object({
|
|
12762
|
+
id: z38.string(),
|
|
12740
12763
|
status: claudeTaskStatusSchema,
|
|
12741
|
-
subject:
|
|
12764
|
+
subject: z38.string()
|
|
12742
12765
|
}).passthrough().nullable()
|
|
12743
12766
|
}).passthrough();
|
|
12744
|
-
var claudeTaskUpdateOutputSchema =
|
|
12745
|
-
success:
|
|
12746
|
-
taskId:
|
|
12767
|
+
var claudeTaskUpdateOutputSchema = z38.object({
|
|
12768
|
+
success: z38.boolean(),
|
|
12769
|
+
taskId: z38.string()
|
|
12747
12770
|
}).passthrough();
|
|
12748
|
-
var claudeTaskListOutputSchema =
|
|
12749
|
-
tasks:
|
|
12771
|
+
var claudeTaskListOutputSchema = z38.object({
|
|
12772
|
+
tasks: z38.array(z38.unknown())
|
|
12750
12773
|
}).passthrough();
|
|
12751
|
-
var claudeTaskToolOutputSchema =
|
|
12774
|
+
var claudeTaskToolOutputSchema = z38.union([
|
|
12752
12775
|
claudeTaskCreateOutputSchema,
|
|
12753
12776
|
claudeTaskGetOutputSchema,
|
|
12754
12777
|
claudeTaskListOutputSchema,
|