open-tag 0.1.0 → 0.1.2
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/README.md +23 -0
- package/THIRD_PARTY_NOTICES +29 -0
- package/dist/cli/index.mjs +1 -1
- package/dist/index.d.mts +881 -167
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{program-CXagchrn.mjs → program-BpXcUOCH.mjs} +7847 -3068
- package/dist/program-BpXcUOCH.mjs.map +1 -0
- package/package.json +2 -1
- package/dist/program-CXagchrn.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -4188,7 +4188,7 @@ declare namespace external_d_exports {
|
|
|
4188
4188
|
export { $brand, $input, $output, BRAND, CompileOptions, GlobalMeta, Infer, IssueData, JSONType, NEVER, $RefinementCtx as RefinementCtx, SafeExtendShape, Schema, TimePrecision, TypeOf, ZodAny, ZodArray, ZodBase64, ZodBase64URL, ZodBigInt, ZodBigIntFormat, ZodBoolean, ZodCIDRv4, ZodCIDRv6, ZodCUID, ZodCUID2, ZodCatch, ZodCodec, ZodCoercedBigInt, ZodCoercedBoolean, ZodCoercedDate, ZodCoercedNumber, ZodCoercedString, ZodCompileAsyncError, ZodCompileUnsupportedError, ZodCreditCard, ZodCustom, ZodCustomStringFormat, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodE164, ZodEmail, ZodEmoji, ZodEnum, ZodError, ZodErrorMap, ZodExactOptional, ZodFile, ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind, ZodFlattenedError, ZodFloat32, ZodFloat64, ZodFormattedError, ZodFunction, ZodGUID, ZodIPv4, ZodIPv6, ZodISODate, ZodISODateTime, ZodISODuration, ZodISOTime, ZodInt, ZodInt32, ZodInt64, ZodIntersection, ZodIssue, ZodIssueCode, ZodJSONSchema, ZodJSONSchemaInternals, ZodJWT, ZodKSUID, ZodLazy, ZodLiteral, ZodMAC, ZodMap, ZodNaN, ZodNanoID, ZodNever, ZodNonOptional, ZodNull, ZodNullable, ZodNumber, ZodNumberFormat, ZodObject, ZodOptional, ZodPipe, ZodPrefault, ZodPreprocess, ZodPromise, ZodRawShape, ZodReadonly, ZodRealError, ZodRecord, ZodSafeParseError, ZodSafeParseResult, ZodSafeParseSuccess, ZodSchema, ZodSet, ZodStandardSchemaWithJSON, ZodString, ZodStringFormat, ZodSuccess, ZodSymbol, ZodTemplateLiteral, ZodTransform, ZodTuple, ZodType, ZodTypeAny, ZodUInt32, ZodUInt64, ZodULID, ZodURL, ZodUUID, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, ZodXID, ZodXor, _ZodBigInt, _ZodBoolean, _ZodDate, _ZodNumber, _ZodString, _ZodType, _default, _function, any, array, base64, base64url, bigint$1 as bigint, boolean$1 as boolean, _catch as catch, check, cidrv4, cidrv6, clone, codec, coerce_d_exports as coerce, compile, config, index_d_exports$1 as core, creditCard, cuid, cuid2, custom, date$2 as date, decode, decodeAsync, deepPartial, describe, discriminatedUnion, e164, email, emoji, encode, encodeAsync, _endsWith as endsWith, _enum as enum, exactOptional, file, flattenError, float32, float64, formatError, fromJSONSchema, _function as function, getDiscriminatedOption, getErrorMap, globalRegistry, _gt as gt, _gte as gte, guid, hash, hex, hostname, httpUrl, _includes as includes, output$1 as infer, inferFlattenedErrors, inferFormattedError, input, _instanceof as instanceof, int, int32, int64, intersection, invertCodec, ipv4, ipv6, iso_d_exports as iso, json, jwt, keyof, ksuid, lazy, _length as length, literal, index_d_exports$2 as locales, looseObject, looseRecord, _lowercase as lowercase, _lt as lt, _lte as lte, mac, map, _maxLength as maxLength, _maxSize as maxSize, memoizer, meta, _mime as mime, _minLength as minLength, _minSize as minSize, _multipleOf as multipleOf, nan, nanoid, nativeEnum, _negative as negative, never, _nonnegative as nonnegative, nonoptional, _nonpositive as nonpositive, _normalize as normalize, _null as null, nullable, nullish, number$1 as number, object, optional, output, _overwrite as overwrite, parse, parseAsync, partialRecord, pipe, _positive as positive, prefault, preprocess, prettifyError, promise, _properties as properties, _property as property, readonly, record, refine, _regex as regex, regexes_d_exports as regexes, registry, safeDecode, safeDecodeAsync, safeEncode, safeEncodeAsync, safeParse, safeParseAsync, set, setErrorMap, _size as size, _slugify as slugify, _startsWith as startsWith, strictObject, string$1 as string, stringFormat, stringbool, success, superRefine, symbol, templateLiteral, toJSONSchema, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, toZod, transform, treeifyError, _trim as trim, tuple, uint32, uint64, ulid, _undefined as undefined, union, unknown, _uppercase as uppercase, url, util_d_exports as util, uuid, uuidv4, uuidv6, uuidv7, validate, validateAsync, _void as void, xid, xor };
|
|
4189
4189
|
}
|
|
4190
4190
|
//#endregion
|
|
4191
|
-
//#region ../../packages/shared/dist/task-
|
|
4191
|
+
//#region ../../packages/shared/dist/task-CJjpDFO8.d.mts
|
|
4192
4192
|
declare const AccountComputerSummarySchema: ZodObject<{
|
|
4193
4193
|
computerId: ZodString;
|
|
4194
4194
|
kind: ZodOptional<ZodEnum<{
|
|
@@ -4332,7 +4332,7 @@ declare const AgentDetailSchema: ZodObject<{
|
|
|
4332
4332
|
}>;
|
|
4333
4333
|
createdAt: ZodString;
|
|
4334
4334
|
updatedAt: ZodString;
|
|
4335
|
-
|
|
4335
|
+
avatarPath: ZodOptional<ZodNullable<ZodString>>;
|
|
4336
4336
|
createdBy: ZodObject<{
|
|
4337
4337
|
userId: ZodString;
|
|
4338
4338
|
displayName: ZodString;
|
|
@@ -4347,6 +4347,7 @@ declare const AgentDetailSchema: ZodObject<{
|
|
|
4347
4347
|
}>;
|
|
4348
4348
|
}, $strict>>;
|
|
4349
4349
|
requiresComputerRebind: ZodOptional<ZodBoolean>;
|
|
4350
|
+
slackOAuthAvailable: ZodOptional<ZodBoolean>;
|
|
4350
4351
|
activity: ZodDiscriminatedUnion<[ZodObject<{
|
|
4351
4352
|
state: ZodLiteral<"idle">;
|
|
4352
4353
|
}, $strict>, ZodObject<{
|
|
@@ -4398,6 +4399,7 @@ declare const AgentAdminConfigSchema: ZodObject<{
|
|
|
4398
4399
|
updatedAt: ZodString;
|
|
4399
4400
|
createdByUserId: ZodString;
|
|
4400
4401
|
computerId: ZodNullable<ZodString>;
|
|
4402
|
+
selfConfigurationEnabled: ZodBoolean;
|
|
4401
4403
|
revision: ZodNumber;
|
|
4402
4404
|
runtimeConfig: ZodObject<{
|
|
4403
4405
|
revision: ZodNumber;
|
|
@@ -4409,6 +4411,13 @@ declare const AgentAdminConfigSchema: ZodObject<{
|
|
|
4409
4411
|
alias: ZodString;
|
|
4410
4412
|
repository: ZodString;
|
|
4411
4413
|
}, $strict>>;
|
|
4414
|
+
permissions: ZodObject<{
|
|
4415
|
+
approvalPolicy: ZodDefault<ZodEnum<{
|
|
4416
|
+
never: "never";
|
|
4417
|
+
"on-request": "on-request";
|
|
4418
|
+
}>>;
|
|
4419
|
+
allowCommands: ZodDefault<ZodArray<ZodString>>;
|
|
4420
|
+
}, $strict>;
|
|
4412
4421
|
}, $strict>;
|
|
4413
4422
|
}, $strict>;
|
|
4414
4423
|
declare const CreateAgentRequestSchema: ZodObject<{
|
|
@@ -4422,6 +4431,13 @@ declare const CreateAgentRequestSchema: ZodObject<{
|
|
|
4422
4431
|
}>;
|
|
4423
4432
|
computerId: ZodOptional<ZodString>;
|
|
4424
4433
|
runtimeConfig: ZodOptional<ZodObject<{
|
|
4434
|
+
permissions: ZodOptional<ZodObject<{
|
|
4435
|
+
approvalPolicy: ZodDefault<ZodEnum<{
|
|
4436
|
+
never: "never";
|
|
4437
|
+
"on-request": "on-request";
|
|
4438
|
+
}>>;
|
|
4439
|
+
allowCommands: ZodDefault<ZodArray<ZodString>>;
|
|
4440
|
+
}, $strict>>;
|
|
4425
4441
|
model: ZodOptional<ZodNullable<ZodString>>;
|
|
4426
4442
|
reasoningEffort: ZodOptional<ZodNullable<ZodString>>;
|
|
4427
4443
|
instructions: ZodOptional<ZodString>;
|
|
@@ -4435,7 +4451,15 @@ declare const UpdateAgentRequestSchema: ZodObject<{
|
|
|
4435
4451
|
all_message: "all_message";
|
|
4436
4452
|
mention_only: "mention_only";
|
|
4437
4453
|
}>>;
|
|
4454
|
+
selfConfigurationEnabled: ZodOptional<ZodBoolean>;
|
|
4438
4455
|
runtimeConfig: ZodOptional<ZodObject<{
|
|
4456
|
+
permissions: ZodOptional<ZodObject<{
|
|
4457
|
+
approvalPolicy: ZodDefault<ZodEnum<{
|
|
4458
|
+
never: "never";
|
|
4459
|
+
"on-request": "on-request";
|
|
4460
|
+
}>>;
|
|
4461
|
+
allowCommands: ZodDefault<ZodArray<ZodString>>;
|
|
4462
|
+
}, $strict>>;
|
|
4439
4463
|
model: ZodOptional<ZodNullable<ZodString>>;
|
|
4440
4464
|
reasoningEffort: ZodOptional<ZodNullable<ZodString>>;
|
|
4441
4465
|
instructions: ZodOptional<ZodString>;
|
|
@@ -4462,7 +4486,7 @@ declare const ListAgentsResponseSchema: ZodObject<{
|
|
|
4462
4486
|
}>;
|
|
4463
4487
|
createdAt: ZodString;
|
|
4464
4488
|
updatedAt: ZodString;
|
|
4465
|
-
|
|
4489
|
+
avatarPath: ZodOptional<ZodNullable<ZodString>>;
|
|
4466
4490
|
createdBy: ZodObject<{
|
|
4467
4491
|
userId: ZodString;
|
|
4468
4492
|
displayName: ZodString;
|
|
@@ -4477,6 +4501,7 @@ declare const ListAgentsResponseSchema: ZodObject<{
|
|
|
4477
4501
|
}>;
|
|
4478
4502
|
}, $strict>>;
|
|
4479
4503
|
requiresComputerRebind: ZodOptional<ZodBoolean>;
|
|
4504
|
+
slackOAuthAvailable: ZodOptional<ZodBoolean>;
|
|
4480
4505
|
activity: ZodDiscriminatedUnion<[ZodObject<{
|
|
4481
4506
|
state: ZodLiteral<"idle">;
|
|
4482
4507
|
}, $strict>, ZodObject<{
|
|
@@ -4739,8 +4764,10 @@ declare const ErrorCodeSchema: ZodEnum<{
|
|
|
4739
4764
|
AGENT_NAME_CONFLICT: "AGENT_NAME_CONFLICT";
|
|
4740
4765
|
AGENT_REBIND_BLOCKED: "AGENT_REBIND_BLOCKED";
|
|
4741
4766
|
AGENT_REVISION_CONFLICT: "AGENT_REVISION_CONFLICT";
|
|
4767
|
+
AGENT_SELF_CONFIGURATION_DISABLED: "AGENT_SELF_CONFIGURATION_DISABLED";
|
|
4742
4768
|
AUTH_CODE_CONSUMED: "AUTH_CODE_CONSUMED";
|
|
4743
4769
|
AUTH_CODE_EXPIRED: "AUTH_CODE_EXPIRED";
|
|
4770
|
+
AUTH_CODE_PURPOSE_MISMATCH: "AUTH_CODE_PURPOSE_MISMATCH";
|
|
4744
4771
|
AUTH_DEV_USER_UNAVAILABLE: "AUTH_DEV_USER_UNAVAILABLE";
|
|
4745
4772
|
AUTH_EMAIL_CONFLICT: "AUTH_EMAIL_CONFLICT";
|
|
4746
4773
|
AUTH_IDENTITY_CONFLICT: "AUTH_IDENTITY_CONFLICT";
|
|
@@ -4750,7 +4777,7 @@ declare const ErrorCodeSchema: ZodEnum<{
|
|
|
4750
4777
|
AUTH_PROVIDER_DISABLED: "AUTH_PROVIDER_DISABLED";
|
|
4751
4778
|
AUTH_USER_MISMATCH: "AUTH_USER_MISMATCH";
|
|
4752
4779
|
AUTH_USER_SUSPENDED: "AUTH_USER_SUSPENDED";
|
|
4753
|
-
|
|
4780
|
+
CLOUD_BILLING_UNAVAILABLE: "CLOUD_BILLING_UNAVAILABLE";
|
|
4754
4781
|
CLOUD_CAPACITY_EXCEEDED: "CLOUD_CAPACITY_EXCEEDED";
|
|
4755
4782
|
CLOUD_MODEL_NOT_ALLOWED: "CLOUD_MODEL_NOT_ALLOWED";
|
|
4756
4783
|
CLOUD_MODEL_UNAVAILABLE: "CLOUD_MODEL_UNAVAILABLE";
|
|
@@ -4813,6 +4840,7 @@ declare const ErrorCodeSchema: ZodEnum<{
|
|
|
4813
4840
|
MCP_REFRESH_OUTCOME_UNKNOWN: "MCP_REFRESH_OUTCOME_UNKNOWN";
|
|
4814
4841
|
MCP_REGISTRATION_FAILED: "MCP_REGISTRATION_FAILED";
|
|
4815
4842
|
MCP_REGISTRATION_UNSUPPORTED: "MCP_REGISTRATION_UNSUPPORTED";
|
|
4843
|
+
MCP_SELF_ATTACH_NONE_AUTH_FORBIDDEN: "MCP_SELF_ATTACH_NONE_AUTH_FORBIDDEN";
|
|
4816
4844
|
MCP_SERVER_FORBIDDEN: "MCP_SERVER_FORBIDDEN";
|
|
4817
4845
|
MCP_SERVER_IN_USE: "MCP_SERVER_IN_USE";
|
|
4818
4846
|
MCP_SERVER_NAME_CONFLICT: "MCP_SERVER_NAME_CONFLICT";
|
|
@@ -4833,6 +4861,13 @@ declare const ErrorCodeSchema: ZodEnum<{
|
|
|
4833
4861
|
RUNTIME_AUTH_TIMEOUT: "RUNTIME_AUTH_TIMEOUT";
|
|
4834
4862
|
RUNTIME_REGISTER_TIMEOUT: "RUNTIME_REGISTER_TIMEOUT";
|
|
4835
4863
|
SANDBOX_RUNNER_CONFLICT: "SANDBOX_RUNNER_CONFLICT";
|
|
4864
|
+
SCHEDULE_INVALID_REQUEST: "SCHEDULE_INVALID_REQUEST";
|
|
4865
|
+
SCHEDULE_INVALID_RULE: "SCHEDULE_INVALID_RULE";
|
|
4866
|
+
SCHEDULE_INVALID_TIMEZONE: "SCHEDULE_INVALID_TIMEZONE";
|
|
4867
|
+
SCHEDULE_NO_FUTURE_OCCURRENCE: "SCHEDULE_NO_FUTURE_OCCURRENCE";
|
|
4868
|
+
SCHEDULE_REVISION_CONFLICT: "SCHEDULE_REVISION_CONFLICT";
|
|
4869
|
+
SCHEDULE_TARGET_INVALID: "SCHEDULE_TARGET_INVALID";
|
|
4870
|
+
SCHEDULE_TARGET_REQUIRED: "SCHEDULE_TARGET_REQUIRED";
|
|
4836
4871
|
SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
|
|
4837
4872
|
SESSION_CURSOR_INVALID: "SESSION_CURSOR_INVALID";
|
|
4838
4873
|
SESSION_PROOF_INVALID: "SESSION_PROOF_INVALID";
|
|
@@ -4844,7 +4879,13 @@ declare const ErrorCodeSchema: ZodEnum<{
|
|
|
4844
4879
|
SKILL_NAME_CONFLICT: "SKILL_NAME_CONFLICT";
|
|
4845
4880
|
SKILL_NAME_RESERVED: "SKILL_NAME_RESERVED";
|
|
4846
4881
|
SKILL_NOT_FOUND: "SKILL_NOT_FOUND";
|
|
4882
|
+
SKILL_PRESET_NOT_FOUND: "SKILL_PRESET_NOT_FOUND";
|
|
4847
4883
|
SKILL_REVISION_CONFLICT: "SKILL_REVISION_CONFLICT";
|
|
4884
|
+
SKILL_SOURCE_BLOCKED: "SKILL_SOURCE_BLOCKED";
|
|
4885
|
+
SKILL_SOURCE_INVALID: "SKILL_SOURCE_INVALID";
|
|
4886
|
+
SKILL_SOURCE_NO_SKILLS: "SKILL_SOURCE_NO_SKILLS";
|
|
4887
|
+
SKILL_SOURCE_TOO_LARGE: "SKILL_SOURCE_TOO_LARGE";
|
|
4888
|
+
SKILL_SOURCE_UNREACHABLE: "SKILL_SOURCE_UNREACHABLE";
|
|
4848
4889
|
SKILL_STORAGE_UNAVAILABLE: "SKILL_STORAGE_UNAVAILABLE";
|
|
4849
4890
|
SLACK_APP_TEAM_ALREADY_BOUND: "SLACK_APP_TEAM_ALREADY_BOUND";
|
|
4850
4891
|
SLACK_AUTH_IDENTITY_INCOMPLETE: "SLACK_AUTH_IDENTITY_INCOMPLETE";
|
|
@@ -5461,6 +5502,11 @@ declare const MCPProbeResponseSchema: ZodObject<{
|
|
|
5461
5502
|
protocolVersion: ZodNullable<ZodString>;
|
|
5462
5503
|
}, $strict>;
|
|
5463
5504
|
type MCPProbeResponse = output$1<typeof MCPProbeResponseSchema>;
|
|
5505
|
+
declare const AgentRuntimeOptionsSchema: ZodObject<{
|
|
5506
|
+
modelSuggestions: ZodArray<ZodString>;
|
|
5507
|
+
reasoningEffortAllowedValues: ZodNullable<ZodArray<ZodString>>;
|
|
5508
|
+
}, $strict>;
|
|
5509
|
+
type AgentRuntimeOptions = output$1<typeof AgentRuntimeOptionsSchema>;
|
|
5464
5510
|
declare const RuntimeDurableWorkKindSchema: ZodEnum<{
|
|
5465
5511
|
"session-message": "session-message";
|
|
5466
5512
|
"turn-report": "turn-report";
|
|
@@ -5517,6 +5563,7 @@ declare const EffectiveRuntimeSnapshotSchema: ZodObject<{
|
|
|
5517
5563
|
}, $strict>;
|
|
5518
5564
|
}, $strict>;
|
|
5519
5565
|
agentId: ZodString;
|
|
5566
|
+
selfConfigurationEnabled: ZodOptional<ZodBoolean>;
|
|
5520
5567
|
provider: ZodEnum<{
|
|
5521
5568
|
"claude-code": "claude-code";
|
|
5522
5569
|
codex: "codex";
|
|
@@ -5530,8 +5577,12 @@ declare const EffectiveRuntimeSnapshotSchema: ZodObject<{
|
|
|
5530
5577
|
session: ZodOptional<ZodString>;
|
|
5531
5578
|
}, $strict>;
|
|
5532
5579
|
execution: ZodObject<{
|
|
5533
|
-
approvalPolicy:
|
|
5580
|
+
approvalPolicy: ZodEnum<{
|
|
5581
|
+
never: "never";
|
|
5582
|
+
"on-request": "on-request";
|
|
5583
|
+
}>;
|
|
5534
5584
|
networkAccess: ZodBoolean;
|
|
5585
|
+
allowCommands: ZodOptional<ZodArray<ZodString>>;
|
|
5535
5586
|
}, $strict>;
|
|
5536
5587
|
workspace: ZodObject<{
|
|
5537
5588
|
workspaceId: ZodString;
|
|
@@ -5608,6 +5659,7 @@ declare const SessionReconcileRequestSchema: ZodObject<{
|
|
|
5608
5659
|
}, $strict>;
|
|
5609
5660
|
}, $strict>;
|
|
5610
5661
|
agentId: ZodString;
|
|
5662
|
+
selfConfigurationEnabled: ZodOptional<ZodBoolean>;
|
|
5611
5663
|
provider: ZodEnum<{
|
|
5612
5664
|
"claude-code": "claude-code";
|
|
5613
5665
|
codex: "codex";
|
|
@@ -5621,8 +5673,12 @@ declare const SessionReconcileRequestSchema: ZodObject<{
|
|
|
5621
5673
|
session: ZodOptional<ZodString>;
|
|
5622
5674
|
}, $strict>;
|
|
5623
5675
|
execution: ZodObject<{
|
|
5624
|
-
approvalPolicy:
|
|
5676
|
+
approvalPolicy: ZodEnum<{
|
|
5677
|
+
never: "never";
|
|
5678
|
+
"on-request": "on-request";
|
|
5679
|
+
}>;
|
|
5625
5680
|
networkAccess: ZodBoolean;
|
|
5681
|
+
allowCommands: ZodOptional<ZodArray<ZodString>>;
|
|
5626
5682
|
}, $strict>;
|
|
5627
5683
|
workspace: ZodObject<{
|
|
5628
5684
|
workspaceId: ZodString;
|
|
@@ -5772,6 +5828,7 @@ declare const DirectImMessageDeliveryRequestSchema: ZodObject<{
|
|
|
5772
5828
|
}, $strict>;
|
|
5773
5829
|
}, $strict>;
|
|
5774
5830
|
agentId: ZodString;
|
|
5831
|
+
selfConfigurationEnabled: ZodOptional<ZodBoolean>;
|
|
5775
5832
|
provider: ZodEnum<{
|
|
5776
5833
|
"claude-code": "claude-code";
|
|
5777
5834
|
codex: "codex";
|
|
@@ -5785,8 +5842,12 @@ declare const DirectImMessageDeliveryRequestSchema: ZodObject<{
|
|
|
5785
5842
|
session: ZodOptional<ZodString>;
|
|
5786
5843
|
}, $strict>;
|
|
5787
5844
|
execution: ZodObject<{
|
|
5788
|
-
approvalPolicy:
|
|
5845
|
+
approvalPolicy: ZodEnum<{
|
|
5846
|
+
never: "never";
|
|
5847
|
+
"on-request": "on-request";
|
|
5848
|
+
}>;
|
|
5789
5849
|
networkAccess: ZodBoolean;
|
|
5850
|
+
allowCommands: ZodOptional<ZodArray<ZodString>>;
|
|
5790
5851
|
}, $strict>;
|
|
5791
5852
|
workspace: ZodObject<{
|
|
5792
5853
|
workspaceId: ZodString;
|
|
@@ -6051,11 +6112,47 @@ declare const RuntimeImSteerResultSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
|
6051
6112
|
target_mismatch: "target_mismatch";
|
|
6052
6113
|
}>;
|
|
6053
6114
|
}, $strict>], "status">;
|
|
6054
|
-
declare const
|
|
6115
|
+
declare const SessionMessageDeliveryResultSchema: ZodObject<{
|
|
6116
|
+
type: ZodLiteral<"session:message:deliver:result">;
|
|
6117
|
+
requestId: ZodString;
|
|
6118
|
+
messageId: ZodString;
|
|
6119
|
+
targetSessionId: ZodString;
|
|
6120
|
+
placementGeneration: ZodNumber;
|
|
6121
|
+
status: ZodEnum<{
|
|
6122
|
+
accepted: "accepted";
|
|
6123
|
+
rejected: "rejected";
|
|
6124
|
+
}>;
|
|
6125
|
+
reason: ZodOptional<ZodEnum<{
|
|
6126
|
+
agent_busy: "agent_busy";
|
|
6127
|
+
agent_configuration_busy: "agent_configuration_busy";
|
|
6128
|
+
client_busy: "client_busy";
|
|
6129
|
+
configuration_unsupported: "configuration_unsupported";
|
|
6130
|
+
input_conflict: "input_conflict";
|
|
6131
|
+
invalid_input: "invalid_input";
|
|
6132
|
+
provider_unavailable: "provider_unavailable";
|
|
6133
|
+
session_binding_conflict: "session_binding_conflict";
|
|
6134
|
+
session_busy: "session_busy";
|
|
6135
|
+
session_not_ready: "session_not_ready";
|
|
6136
|
+
session_recovery_required: "session_recovery_required";
|
|
6137
|
+
stale_configuration: "stale_configuration";
|
|
6138
|
+
stale_generation: "stale_generation";
|
|
6139
|
+
target_mismatch: "target_mismatch";
|
|
6140
|
+
turn_expired: "turn_expired";
|
|
6141
|
+
}>>;
|
|
6142
|
+
}, $strict>;
|
|
6143
|
+
declare const SessionMessageDeliveryRequestV3Schema: ZodObject<{
|
|
6055
6144
|
type: ZodLiteral<"session:message:deliver">;
|
|
6056
6145
|
requestId: ZodString;
|
|
6057
6146
|
messageId: ZodString;
|
|
6058
|
-
sourceSessionId: ZodString
|
|
6147
|
+
sourceSessionId: ZodOptional<ZodString>;
|
|
6148
|
+
scheduledOrigin: ZodOptional<ZodObject<{
|
|
6149
|
+
scheduleId: ZodString;
|
|
6150
|
+
scheduledFor: ZodString;
|
|
6151
|
+
timezone: ZodString;
|
|
6152
|
+
name: ZodString;
|
|
6153
|
+
}, $strict>>;
|
|
6154
|
+
sentAt: ZodOptional<ZodString>;
|
|
6155
|
+
scheduleDetailUrl: ZodOptional<ZodString>;
|
|
6059
6156
|
targetSessionId: ZodString;
|
|
6060
6157
|
agentId: ZodString;
|
|
6061
6158
|
placementGeneration: ZodNumber;
|
|
@@ -6079,6 +6176,7 @@ declare const SessionMessageDeliveryRequestSchema: ZodObject<{
|
|
|
6079
6176
|
}, $strict>;
|
|
6080
6177
|
}, $strict>;
|
|
6081
6178
|
agentId: ZodString;
|
|
6179
|
+
selfConfigurationEnabled: ZodOptional<ZodBoolean>;
|
|
6082
6180
|
provider: ZodEnum<{
|
|
6083
6181
|
"claude-code": "claude-code";
|
|
6084
6182
|
codex: "codex";
|
|
@@ -6092,8 +6190,12 @@ declare const SessionMessageDeliveryRequestSchema: ZodObject<{
|
|
|
6092
6190
|
session: ZodOptional<ZodString>;
|
|
6093
6191
|
}, $strict>;
|
|
6094
6192
|
execution: ZodObject<{
|
|
6095
|
-
approvalPolicy:
|
|
6193
|
+
approvalPolicy: ZodEnum<{
|
|
6194
|
+
never: "never";
|
|
6195
|
+
"on-request": "on-request";
|
|
6196
|
+
}>;
|
|
6096
6197
|
networkAccess: ZodBoolean;
|
|
6198
|
+
allowCommands: ZodOptional<ZodArray<ZodString>>;
|
|
6097
6199
|
}, $strict>;
|
|
6098
6200
|
workspace: ZodObject<{
|
|
6099
6201
|
workspaceId: ZodString;
|
|
@@ -6105,34 +6207,6 @@ declare const SessionMessageDeliveryRequestSchema: ZodObject<{
|
|
|
6105
6207
|
}, $strict>>;
|
|
6106
6208
|
}, $strict>;
|
|
6107
6209
|
}, $strict>;
|
|
6108
|
-
declare const SessionMessageDeliveryResultSchema: ZodObject<{
|
|
6109
|
-
type: ZodLiteral<"session:message:deliver:result">;
|
|
6110
|
-
requestId: ZodString;
|
|
6111
|
-
messageId: ZodString;
|
|
6112
|
-
targetSessionId: ZodString;
|
|
6113
|
-
placementGeneration: ZodNumber;
|
|
6114
|
-
status: ZodEnum<{
|
|
6115
|
-
accepted: "accepted";
|
|
6116
|
-
rejected: "rejected";
|
|
6117
|
-
}>;
|
|
6118
|
-
reason: ZodOptional<ZodEnum<{
|
|
6119
|
-
agent_busy: "agent_busy";
|
|
6120
|
-
agent_configuration_busy: "agent_configuration_busy";
|
|
6121
|
-
client_busy: "client_busy";
|
|
6122
|
-
configuration_unsupported: "configuration_unsupported";
|
|
6123
|
-
input_conflict: "input_conflict";
|
|
6124
|
-
invalid_input: "invalid_input";
|
|
6125
|
-
provider_unavailable: "provider_unavailable";
|
|
6126
|
-
session_binding_conflict: "session_binding_conflict";
|
|
6127
|
-
session_busy: "session_busy";
|
|
6128
|
-
session_not_ready: "session_not_ready";
|
|
6129
|
-
session_recovery_required: "session_recovery_required";
|
|
6130
|
-
stale_configuration: "stale_configuration";
|
|
6131
|
-
stale_generation: "stale_generation";
|
|
6132
|
-
target_mismatch: "target_mismatch";
|
|
6133
|
-
turn_expired: "turn_expired";
|
|
6134
|
-
}>>;
|
|
6135
|
-
}, $strict>;
|
|
6136
6210
|
declare const TurnReportRequestSchema: ZodObject<{
|
|
6137
6211
|
type: ZodLiteral<"turn:report">;
|
|
6138
6212
|
requestId: ZodString;
|
|
@@ -6243,6 +6317,18 @@ declare const TurnReportResultSchema: ZodObject<{
|
|
|
6243
6317
|
}>;
|
|
6244
6318
|
resultHash: ZodString;
|
|
6245
6319
|
}, $strict>;
|
|
6320
|
+
declare const AgentRuntimeOptionsRequestFrameSchema: ZodObject<{
|
|
6321
|
+
type: ZodLiteral<"agent-runtime:options">;
|
|
6322
|
+
requestId: ZodString;
|
|
6323
|
+
agentId: ZodString;
|
|
6324
|
+
computerId: ZodString;
|
|
6325
|
+
provider: ZodEnum<{
|
|
6326
|
+
"claude-code": "claude-code";
|
|
6327
|
+
codex: "codex";
|
|
6328
|
+
pi: "pi";
|
|
6329
|
+
}>;
|
|
6330
|
+
model: ZodOptional<ZodString>;
|
|
6331
|
+
}, $strict>;
|
|
6246
6332
|
declare const AgentRuntimeTestRequestFrameSchema: ZodObject<{
|
|
6247
6333
|
type: ZodLiteral<"agent-runtime:test">;
|
|
6248
6334
|
requestId: ZodString;
|
|
@@ -6371,6 +6457,32 @@ declare const ProviderCliValidationResultFrameSchema: ZodObject<{
|
|
|
6371
6457
|
validation_expired: "validation_expired";
|
|
6372
6458
|
}>>;
|
|
6373
6459
|
}, $strict>;
|
|
6460
|
+
declare const RuntimeApprovalDecisionSchema: ZodObject<{
|
|
6461
|
+
requestId: ZodString;
|
|
6462
|
+
turnId: ZodString;
|
|
6463
|
+
sessionId: ZodString;
|
|
6464
|
+
deliveryId: ZodString;
|
|
6465
|
+
placementGeneration: ZodNumber;
|
|
6466
|
+
type: ZodLiteral<"approval:decision">;
|
|
6467
|
+
decision: ZodEnum<{
|
|
6468
|
+
accept: "accept";
|
|
6469
|
+
decline: "decline";
|
|
6470
|
+
}>;
|
|
6471
|
+
}, $strict>;
|
|
6472
|
+
declare const RuntimeApprovalResultSchema: ZodObject<{
|
|
6473
|
+
requestId: ZodString;
|
|
6474
|
+
turnId: ZodString;
|
|
6475
|
+
sessionId: ZodString;
|
|
6476
|
+
deliveryId: ZodString;
|
|
6477
|
+
placementGeneration: ZodNumber;
|
|
6478
|
+
type: ZodLiteral<"approval:result">;
|
|
6479
|
+
status: ZodEnum<{
|
|
6480
|
+
applied: "applied";
|
|
6481
|
+
stale: "stale";
|
|
6482
|
+
}>;
|
|
6483
|
+
}, $strict>;
|
|
6484
|
+
type RuntimeApprovalDecision = output$1<typeof RuntimeApprovalDecisionSchema>;
|
|
6485
|
+
type RuntimeApprovalResult = output$1<typeof RuntimeApprovalResultSchema>;
|
|
6374
6486
|
type RuntimeUsage = output$1<typeof RuntimeUsageSchema>;
|
|
6375
6487
|
type RuntimeDurableWorkKind = output$1<typeof RuntimeDurableWorkKindSchema>;
|
|
6376
6488
|
type RuntimeDurableWorkRecord = output$1<typeof RuntimeDurableWorkRecordSchema>;
|
|
@@ -6385,10 +6497,11 @@ type RuntimeImSteerResult = output$1<typeof RuntimeImSteerResultSchema>;
|
|
|
6385
6497
|
type RuntimeImCredentialGrantResult = output$1<typeof RuntimeImCredentialGrantResultSchema>;
|
|
6386
6498
|
type RuntimeImOutboxContext = output$1<typeof RuntimeImOutboxContextSchema>;
|
|
6387
6499
|
type ImMessageDeliveryResult = output$1<typeof ImMessageDeliveryResultSchema>;
|
|
6388
|
-
type
|
|
6500
|
+
type SessionMessageDeliveryRequestV3 = output$1<typeof SessionMessageDeliveryRequestV3Schema>;
|
|
6389
6501
|
type SessionMessageDeliveryResult = output$1<typeof SessionMessageDeliveryResultSchema>;
|
|
6390
6502
|
type TurnReportRequest = output$1<typeof TurnReportRequestSchema>;
|
|
6391
6503
|
type TurnReportResult = output$1<typeof TurnReportResultSchema>;
|
|
6504
|
+
type AgentRuntimeOptionsRequestFrame = output$1<typeof AgentRuntimeOptionsRequestFrameSchema>;
|
|
6392
6505
|
type AgentRuntimeTestRequestFrame = output$1<typeof AgentRuntimeTestRequestFrameSchema>;
|
|
6393
6506
|
type AgentRuntimeTestResultFrame = output$1<typeof AgentRuntimeTestResultFrameSchema>;
|
|
6394
6507
|
type ProviderCliExpectedIdentity = output$1<typeof ProviderCliExpectedIdentitySchema>;
|
|
@@ -6447,6 +6560,181 @@ type RuntimeClientCapabilities = output$1<typeof RuntimeClientCapabilitiesSchema
|
|
|
6447
6560
|
type RuntimeProviderReadinessObservation = output$1<typeof RuntimeProviderReadinessObservationSchema>;
|
|
6448
6561
|
type RuntimeImCliReadinessObservation = output$1<typeof RuntimeImCliReadinessObservationSchema>;
|
|
6449
6562
|
type RuntimeChannelTarget = output$1<typeof RuntimeChannelTargetSchema>;
|
|
6563
|
+
/** Full Schedule DTO: every management field, the full prompt, and the Web detail link. */
|
|
6564
|
+
declare const AgentScheduleSchema: ZodObject<{
|
|
6565
|
+
id: ZodString;
|
|
6566
|
+
agentId: ZodString;
|
|
6567
|
+
target: ZodObject<{
|
|
6568
|
+
sessionId: ZodString;
|
|
6569
|
+
provider: ZodEnum<{
|
|
6570
|
+
feishu: "feishu";
|
|
6571
|
+
slack: "slack";
|
|
6572
|
+
}>;
|
|
6573
|
+
sessionKind: ZodEnum<{
|
|
6574
|
+
channel: "channel";
|
|
6575
|
+
thread: "thread";
|
|
6576
|
+
}>;
|
|
6577
|
+
channelId: ZodString;
|
|
6578
|
+
threadKey: ZodNullable<ZodString>;
|
|
6579
|
+
}, $strict>;
|
|
6580
|
+
name: ZodString;
|
|
6581
|
+
prompt: ZodString;
|
|
6582
|
+
schedule: ZodDiscriminatedUnion<[ZodObject<{
|
|
6583
|
+
kind: ZodLiteral<"at">;
|
|
6584
|
+
at: ZodString;
|
|
6585
|
+
}, $strict>, ZodObject<{
|
|
6586
|
+
kind: ZodLiteral<"every">;
|
|
6587
|
+
intervalSeconds: ZodNumber;
|
|
6588
|
+
anchorAt: ZodString;
|
|
6589
|
+
}, $strict>, ZodObject<{
|
|
6590
|
+
kind: ZodLiteral<"cron">;
|
|
6591
|
+
expression: ZodString;
|
|
6592
|
+
}, $strict>], "kind">;
|
|
6593
|
+
timezone: ZodString;
|
|
6594
|
+
enabled: ZodBoolean;
|
|
6595
|
+
nextTriggerAt: ZodNullable<ZodString>;
|
|
6596
|
+
revision: ZodNumber;
|
|
6597
|
+
lastDispatch: ZodNullable<ZodObject<{
|
|
6598
|
+
scheduledFor: ZodString;
|
|
6599
|
+
attemptedAt: ZodNullable<ZodString>;
|
|
6600
|
+
messageId: ZodNullable<ZodString>;
|
|
6601
|
+
outcome: ZodEnum<{
|
|
6602
|
+
accepted: "accepted";
|
|
6603
|
+
rejected: "rejected";
|
|
6604
|
+
skipped: "skipped";
|
|
6605
|
+
unknown: "unknown";
|
|
6606
|
+
unreachable: "unreachable";
|
|
6607
|
+
}>;
|
|
6608
|
+
code: ZodNullable<ZodString>;
|
|
6609
|
+
}, $strict>>;
|
|
6610
|
+
detailUrl: ZodString;
|
|
6611
|
+
createdAt: ZodString;
|
|
6612
|
+
updatedAt: ZodString;
|
|
6613
|
+
}, $strict>;
|
|
6614
|
+
type AgentSchedule = output$1<typeof AgentScheduleSchema>;
|
|
6615
|
+
declare const AgentScheduleListResponseSchema: ZodObject<{
|
|
6616
|
+
items: ZodArray<ZodObject<{
|
|
6617
|
+
id: ZodString;
|
|
6618
|
+
agentId: ZodString;
|
|
6619
|
+
target: ZodObject<{
|
|
6620
|
+
sessionId: ZodString;
|
|
6621
|
+
provider: ZodEnum<{
|
|
6622
|
+
feishu: "feishu";
|
|
6623
|
+
slack: "slack";
|
|
6624
|
+
}>;
|
|
6625
|
+
sessionKind: ZodEnum<{
|
|
6626
|
+
channel: "channel";
|
|
6627
|
+
thread: "thread";
|
|
6628
|
+
}>;
|
|
6629
|
+
channelId: ZodString;
|
|
6630
|
+
threadKey: ZodNullable<ZodString>;
|
|
6631
|
+
}, $strict>;
|
|
6632
|
+
name: ZodString;
|
|
6633
|
+
schedule: ZodDiscriminatedUnion<[ZodObject<{
|
|
6634
|
+
kind: ZodLiteral<"at">;
|
|
6635
|
+
at: ZodString;
|
|
6636
|
+
}, $strict>, ZodObject<{
|
|
6637
|
+
kind: ZodLiteral<"every">;
|
|
6638
|
+
intervalSeconds: ZodNumber;
|
|
6639
|
+
anchorAt: ZodString;
|
|
6640
|
+
}, $strict>, ZodObject<{
|
|
6641
|
+
kind: ZodLiteral<"cron">;
|
|
6642
|
+
expression: ZodString;
|
|
6643
|
+
}, $strict>], "kind">;
|
|
6644
|
+
timezone: ZodString;
|
|
6645
|
+
enabled: ZodBoolean;
|
|
6646
|
+
nextTriggerAt: ZodNullable<ZodString>;
|
|
6647
|
+
revision: ZodNumber;
|
|
6648
|
+
lastDispatch: ZodNullable<ZodObject<{
|
|
6649
|
+
scheduledFor: ZodString;
|
|
6650
|
+
attemptedAt: ZodNullable<ZodString>;
|
|
6651
|
+
messageId: ZodNullable<ZodString>;
|
|
6652
|
+
outcome: ZodEnum<{
|
|
6653
|
+
accepted: "accepted";
|
|
6654
|
+
rejected: "rejected";
|
|
6655
|
+
skipped: "skipped";
|
|
6656
|
+
unknown: "unknown";
|
|
6657
|
+
unreachable: "unreachable";
|
|
6658
|
+
}>;
|
|
6659
|
+
code: ZodNullable<ZodString>;
|
|
6660
|
+
}, $strict>>;
|
|
6661
|
+
createdAt: ZodString;
|
|
6662
|
+
updatedAt: ZodString;
|
|
6663
|
+
}, $strict>>;
|
|
6664
|
+
nextCursor: ZodNullable<ZodString>;
|
|
6665
|
+
}, $strict>;
|
|
6666
|
+
type AgentScheduleListResponse = output$1<typeof AgentScheduleListResponseSchema>;
|
|
6667
|
+
declare const CreateAgentScheduleRequestSchema: ZodObject<{
|
|
6668
|
+
name: ZodString;
|
|
6669
|
+
prompt: ZodString;
|
|
6670
|
+
schedule: ZodDiscriminatedUnion<[ZodObject<{
|
|
6671
|
+
kind: ZodLiteral<"at">;
|
|
6672
|
+
at: ZodString;
|
|
6673
|
+
}, $strict>, ZodObject<{
|
|
6674
|
+
kind: ZodLiteral<"every">;
|
|
6675
|
+
intervalSeconds: ZodNumber;
|
|
6676
|
+
}, $strict>, ZodObject<{
|
|
6677
|
+
kind: ZodLiteral<"cron">;
|
|
6678
|
+
expression: ZodString;
|
|
6679
|
+
}, $strict>], "kind">;
|
|
6680
|
+
timezone: ZodString;
|
|
6681
|
+
}, $strict>;
|
|
6682
|
+
type CreateAgentScheduleRequest = output$1<typeof CreateAgentScheduleRequestSchema>;
|
|
6683
|
+
declare const UpdateAgentScheduleRequestSchema: ZodObject<{
|
|
6684
|
+
expectedRevision: ZodNumber;
|
|
6685
|
+
name: ZodOptional<ZodString>;
|
|
6686
|
+
prompt: ZodOptional<ZodString>;
|
|
6687
|
+
schedule: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
6688
|
+
kind: ZodLiteral<"at">;
|
|
6689
|
+
at: ZodString;
|
|
6690
|
+
}, $strict>, ZodObject<{
|
|
6691
|
+
kind: ZodLiteral<"every">;
|
|
6692
|
+
intervalSeconds: ZodNumber;
|
|
6693
|
+
}, $strict>, ZodObject<{
|
|
6694
|
+
kind: ZodLiteral<"cron">;
|
|
6695
|
+
expression: ZodString;
|
|
6696
|
+
}, $strict>], "kind">>;
|
|
6697
|
+
timezone: ZodOptional<ZodString>;
|
|
6698
|
+
}, $strict>;
|
|
6699
|
+
type UpdateAgentScheduleRequest = output$1<typeof UpdateAgentScheduleRequestSchema>;
|
|
6700
|
+
/** Preview either a persisted Schedule (keeps its `every` anchor) or an ad-hoc rule + timezone. */
|
|
6701
|
+
declare const PreviewAgentScheduleRequestSchema: ZodUnion<readonly [ZodObject<{
|
|
6702
|
+
scheduleId: ZodString;
|
|
6703
|
+
}, $strict>, ZodObject<{
|
|
6704
|
+
schedule: ZodDiscriminatedUnion<[ZodObject<{
|
|
6705
|
+
kind: ZodLiteral<"at">;
|
|
6706
|
+
at: ZodString;
|
|
6707
|
+
}, $strict>, ZodObject<{
|
|
6708
|
+
kind: ZodLiteral<"every">;
|
|
6709
|
+
intervalSeconds: ZodNumber;
|
|
6710
|
+
}, $strict>, ZodObject<{
|
|
6711
|
+
kind: ZodLiteral<"cron">;
|
|
6712
|
+
expression: ZodString;
|
|
6713
|
+
}, $strict>], "kind">;
|
|
6714
|
+
timezone: ZodString;
|
|
6715
|
+
}, $strict>]>;
|
|
6716
|
+
type PreviewAgentScheduleRequest = output$1<typeof PreviewAgentScheduleRequestSchema>;
|
|
6717
|
+
declare const AgentSchedulePreviewSchema: ZodObject<{
|
|
6718
|
+
calculatedAt: ZodString;
|
|
6719
|
+
schedule: ZodDiscriminatedUnion<[ZodObject<{
|
|
6720
|
+
kind: ZodLiteral<"at">;
|
|
6721
|
+
at: ZodString;
|
|
6722
|
+
}, $strict>, ZodObject<{
|
|
6723
|
+
kind: ZodLiteral<"every">;
|
|
6724
|
+
intervalSeconds: ZodNumber;
|
|
6725
|
+
anchorAt: ZodString;
|
|
6726
|
+
}, $strict>, ZodObject<{
|
|
6727
|
+
kind: ZodLiteral<"cron">;
|
|
6728
|
+
expression: ZodString;
|
|
6729
|
+
}, $strict>], "kind">;
|
|
6730
|
+
timezone: ZodString;
|
|
6731
|
+
items: ZodArray<ZodObject<{
|
|
6732
|
+
at: ZodString;
|
|
6733
|
+
local: ZodString;
|
|
6734
|
+
timezone: ZodString;
|
|
6735
|
+
}, $strict>>;
|
|
6736
|
+
}, $strict>;
|
|
6737
|
+
type AgentSchedulePreview = output$1<typeof AgentSchedulePreviewSchema>;
|
|
6450
6738
|
declare const SkillArchiveFormatSchema: ZodEnum<{
|
|
6451
6739
|
"tar.gz": "tar.gz";
|
|
6452
6740
|
zip: "zip";
|
|
@@ -6461,6 +6749,8 @@ declare const SkillSchema: ZodObject<{
|
|
|
6461
6749
|
source: ZodEnum<{
|
|
6462
6750
|
agent_upload: "agent_upload";
|
|
6463
6751
|
cli_upload: "cli_upload";
|
|
6752
|
+
preset: "preset";
|
|
6753
|
+
url_install: "url_install";
|
|
6464
6754
|
web_upload: "web_upload";
|
|
6465
6755
|
}>;
|
|
6466
6756
|
archiveSha256: ZodString;
|
|
@@ -6480,6 +6770,8 @@ declare const SkillDetailSchema: ZodObject<{
|
|
|
6480
6770
|
source: ZodEnum<{
|
|
6481
6771
|
agent_upload: "agent_upload";
|
|
6482
6772
|
cli_upload: "cli_upload";
|
|
6773
|
+
preset: "preset";
|
|
6774
|
+
url_install: "url_install";
|
|
6483
6775
|
web_upload: "web_upload";
|
|
6484
6776
|
}>;
|
|
6485
6777
|
archiveSha256: ZodString;
|
|
@@ -6505,6 +6797,8 @@ declare const ListAgentSkillsResponseSchema: ZodObject<{
|
|
|
6505
6797
|
source: ZodEnum<{
|
|
6506
6798
|
agent_upload: "agent_upload";
|
|
6507
6799
|
cli_upload: "cli_upload";
|
|
6800
|
+
preset: "preset";
|
|
6801
|
+
url_install: "url_install";
|
|
6508
6802
|
web_upload: "web_upload";
|
|
6509
6803
|
}>;
|
|
6510
6804
|
archiveSha256: ZodString;
|
|
@@ -6529,6 +6823,312 @@ declare const RuntimeSkillManifestSchema: ZodObject<{
|
|
|
6529
6823
|
}, $strict>>;
|
|
6530
6824
|
}, $strict>;
|
|
6531
6825
|
type RuntimeSkillManifest = output$1<typeof RuntimeSkillManifestSchema>;
|
|
6826
|
+
declare const ListSkillPresetsResponseSchema: ZodObject<{
|
|
6827
|
+
categories: ZodArray<ZodObject<{
|
|
6828
|
+
id: ZodEnum<{
|
|
6829
|
+
engineering: "engineering";
|
|
6830
|
+
"getting-started": "getting-started";
|
|
6831
|
+
}>;
|
|
6832
|
+
order: ZodNumber;
|
|
6833
|
+
}, $strict>>;
|
|
6834
|
+
presets: ZodArray<ZodObject<{
|
|
6835
|
+
name: ZodString;
|
|
6836
|
+
description: ZodString;
|
|
6837
|
+
category: ZodEnum<{
|
|
6838
|
+
engineering: "engineering";
|
|
6839
|
+
"getting-started": "getting-started";
|
|
6840
|
+
}>;
|
|
6841
|
+
order: ZodNumber;
|
|
6842
|
+
archiveSha256: ZodString;
|
|
6843
|
+
archiveBytes: ZodNumber;
|
|
6844
|
+
fileCount: ZodNumber;
|
|
6845
|
+
state: ZodEnum<{
|
|
6846
|
+
installed: "installed";
|
|
6847
|
+
name_conflict: "name_conflict";
|
|
6848
|
+
not_installed: "not_installed";
|
|
6849
|
+
update_available: "update_available";
|
|
6850
|
+
}>;
|
|
6851
|
+
}, $strict>>;
|
|
6852
|
+
}, $strict>;
|
|
6853
|
+
type ListSkillPresetsResponse = output$1<typeof ListSkillPresetsResponseSchema>;
|
|
6854
|
+
declare const InstallSkillPresetResponseSchema: ZodObject<{
|
|
6855
|
+
action: ZodEnum<{
|
|
6856
|
+
installed: "installed";
|
|
6857
|
+
unchanged: "unchanged";
|
|
6858
|
+
updated: "updated";
|
|
6859
|
+
}>;
|
|
6860
|
+
skill: ZodObject<{
|
|
6861
|
+
id: ZodString;
|
|
6862
|
+
agentId: ZodString;
|
|
6863
|
+
name: ZodString;
|
|
6864
|
+
description: ZodString;
|
|
6865
|
+
enabled: ZodBoolean;
|
|
6866
|
+
source: ZodEnum<{
|
|
6867
|
+
agent_upload: "agent_upload";
|
|
6868
|
+
cli_upload: "cli_upload";
|
|
6869
|
+
preset: "preset";
|
|
6870
|
+
url_install: "url_install";
|
|
6871
|
+
web_upload: "web_upload";
|
|
6872
|
+
}>;
|
|
6873
|
+
archiveSha256: ZodString;
|
|
6874
|
+
archiveBytes: ZodNumber;
|
|
6875
|
+
fileCount: ZodNumber;
|
|
6876
|
+
revision: ZodNumber;
|
|
6877
|
+
createdAt: ZodString;
|
|
6878
|
+
updatedAt: ZodString;
|
|
6879
|
+
}, $strict>;
|
|
6880
|
+
}, $strict>;
|
|
6881
|
+
type InstallSkillPresetResponse = output$1<typeof InstallSkillPresetResponseSchema>;
|
|
6882
|
+
declare const ProvisionSlackAgentRequestSchema: ZodObject<{
|
|
6883
|
+
code: ZodString;
|
|
6884
|
+
agent: ZodObject<{
|
|
6885
|
+
creationIntentId: ZodNonOptional<ZodOptional<ZodString>>;
|
|
6886
|
+
name: ZodString;
|
|
6887
|
+
displayName: ZodString;
|
|
6888
|
+
runtimeProvider: ZodEnum<{
|
|
6889
|
+
"claude-code": "claude-code";
|
|
6890
|
+
codex: "codex";
|
|
6891
|
+
pi: "pi";
|
|
6892
|
+
}>;
|
|
6893
|
+
runtimeConfig: ZodOptional<ZodObject<{
|
|
6894
|
+
model: ZodOptional<ZodNullable<ZodString>>;
|
|
6895
|
+
reasoningEffort: ZodOptional<ZodNullable<ZodString>>;
|
|
6896
|
+
instructions: ZodOptional<ZodString>;
|
|
6897
|
+
}, $strict>>;
|
|
6898
|
+
}, $strict>;
|
|
6899
|
+
slack: ZodObject<{
|
|
6900
|
+
appId: ZodString;
|
|
6901
|
+
teamId: ZodString;
|
|
6902
|
+
botUserId: ZodString;
|
|
6903
|
+
botAccessToken: ZodString;
|
|
6904
|
+
signingSecret: ZodString;
|
|
6905
|
+
}, $strict>;
|
|
6906
|
+
}, $strict>;
|
|
6907
|
+
declare const ProvisionSlackAgentResponseSchema: ZodObject<{
|
|
6908
|
+
agent: ZodObject<{
|
|
6909
|
+
id: ZodString;
|
|
6910
|
+
name: ZodString;
|
|
6911
|
+
displayName: ZodString;
|
|
6912
|
+
runtimeProvider: ZodEnum<{
|
|
6913
|
+
"claude-code": "claude-code";
|
|
6914
|
+
codex: "codex";
|
|
6915
|
+
pi: "pi";
|
|
6916
|
+
}>;
|
|
6917
|
+
receiveMode: ZodEnum<{
|
|
6918
|
+
all_message: "all_message";
|
|
6919
|
+
mention_only: "mention_only";
|
|
6920
|
+
}>;
|
|
6921
|
+
status: ZodEnum<{
|
|
6922
|
+
active: "active";
|
|
6923
|
+
suspended: "suspended";
|
|
6924
|
+
}>;
|
|
6925
|
+
createdAt: ZodString;
|
|
6926
|
+
updatedAt: ZodString;
|
|
6927
|
+
createdByUserId: ZodString;
|
|
6928
|
+
computerId: ZodNullable<ZodString>;
|
|
6929
|
+
selfConfigurationEnabled: ZodBoolean;
|
|
6930
|
+
revision: ZodNumber;
|
|
6931
|
+
runtimeConfig: ZodObject<{
|
|
6932
|
+
revision: ZodNumber;
|
|
6933
|
+
model: ZodNullable<ZodString>;
|
|
6934
|
+
reasoningEffort: ZodNullable<ZodString>;
|
|
6935
|
+
instructions: ZodString;
|
|
6936
|
+
maxDurationMs: ZodNullable<ZodNumber>;
|
|
6937
|
+
contextTrees: ZodArray<ZodObject<{
|
|
6938
|
+
alias: ZodString;
|
|
6939
|
+
repository: ZodString;
|
|
6940
|
+
}, $strict>>;
|
|
6941
|
+
permissions: ZodObject<{
|
|
6942
|
+
approvalPolicy: ZodDefault<ZodEnum<{
|
|
6943
|
+
never: "never";
|
|
6944
|
+
"on-request": "on-request";
|
|
6945
|
+
}>>;
|
|
6946
|
+
allowCommands: ZodDefault<ZodArray<ZodString>>;
|
|
6947
|
+
}, $strict>;
|
|
6948
|
+
}, $strict>;
|
|
6949
|
+
}, $strict>;
|
|
6950
|
+
slack: ZodObject<{
|
|
6951
|
+
agentDisplayName: ZodString;
|
|
6952
|
+
eventsUrl: ZodString;
|
|
6953
|
+
allowedIntent: ZodNullable<ZodEnum<{
|
|
6954
|
+
create: "create";
|
|
6955
|
+
reauthorize: "reauthorize";
|
|
6956
|
+
}>>;
|
|
6957
|
+
blockedReason: ZodNullable<ZodString>;
|
|
6958
|
+
expectedMessaging: ZodNullable<ZodDiscriminatedUnion<[ZodObject<{
|
|
6959
|
+
kind: ZodLiteral<"unbound">;
|
|
6960
|
+
}, $strict>, ZodObject<{
|
|
6961
|
+
kind: ZodLiteral<"bound">;
|
|
6962
|
+
provider: ZodEnum<{
|
|
6963
|
+
feishu: "feishu";
|
|
6964
|
+
slack: "slack";
|
|
6965
|
+
}>;
|
|
6966
|
+
bindingId: ZodString;
|
|
6967
|
+
credentialGeneration: ZodNumber;
|
|
6968
|
+
}, $strict>], "kind">>;
|
|
6969
|
+
preferredRecovery: ZodEnum<{
|
|
6970
|
+
credentials: "credentials";
|
|
6971
|
+
oauth: "oauth";
|
|
6972
|
+
}>;
|
|
6973
|
+
binding: ZodNullable<ZodObject<{
|
|
6974
|
+
id: ZodString;
|
|
6975
|
+
agentId: ZodString;
|
|
6976
|
+
provider: ZodEnum<{
|
|
6977
|
+
feishu: "feishu";
|
|
6978
|
+
slack: "slack";
|
|
6979
|
+
}>;
|
|
6980
|
+
bindingState: ZodEnum<{
|
|
6981
|
+
active: "active";
|
|
6982
|
+
disabled: "disabled";
|
|
6983
|
+
error: "error";
|
|
6984
|
+
provisioning: "provisioning";
|
|
6985
|
+
reauthorization_required: "reauthorization_required";
|
|
6986
|
+
}>;
|
|
6987
|
+
bot: ZodObject<{
|
|
6988
|
+
displayName: ZodNullable<ZodString>;
|
|
6989
|
+
avatarUrl: ZodNullable<ZodString>;
|
|
6990
|
+
}, $strict>;
|
|
6991
|
+
receiveMode: ZodEnum<{
|
|
6992
|
+
all_message: "all_message";
|
|
6993
|
+
mention_only: "mention_only";
|
|
6994
|
+
}>;
|
|
6995
|
+
lastInboundAt: ZodNullable<ZodString>;
|
|
6996
|
+
lastValidatedAt: ZodNullable<ZodString>;
|
|
6997
|
+
lastRuntimeObservationAt: ZodNullable<ZodString>;
|
|
6998
|
+
identity: ZodDiscriminatedUnion<[ZodObject<{
|
|
6999
|
+
provider: ZodLiteral<"feishu">;
|
|
7000
|
+
appId: ZodString;
|
|
7001
|
+
teamId: ZodNullable<ZodString>;
|
|
7002
|
+
botOpenId: ZodString;
|
|
7003
|
+
teamBrand: ZodNullable<ZodString>;
|
|
7004
|
+
}, $strict>, ZodObject<{
|
|
7005
|
+
provider: ZodLiteral<"slack">;
|
|
7006
|
+
appId: ZodString;
|
|
7007
|
+
teamId: ZodString;
|
|
7008
|
+
enterpriseId: ZodNullable<ZodString>;
|
|
7009
|
+
botUserId: ZodString;
|
|
7010
|
+
appIdEvidence: ZodLiteral<"configured">;
|
|
7011
|
+
}, $strict>], "provider">;
|
|
7012
|
+
credentialGeneration: ZodNumber;
|
|
7013
|
+
grantedCapabilities: ZodArray<ZodString>;
|
|
7014
|
+
reauthorizationRequired: ZodBoolean;
|
|
7015
|
+
lastErrorCode: ZodNullable<ZodString>;
|
|
7016
|
+
}, $strict>>;
|
|
7017
|
+
identityClosure: ZodNullable<ZodObject<{
|
|
7018
|
+
status: ZodEnum<{
|
|
7019
|
+
pending: "pending";
|
|
7020
|
+
verified: "verified";
|
|
7021
|
+
}>;
|
|
7022
|
+
verifiedAt: ZodNullable<ZodString>;
|
|
7023
|
+
}, $strict>>;
|
|
7024
|
+
handoff: ZodNullable<ZodUnion<readonly [ZodObject<{
|
|
7025
|
+
bindingState: ZodLiteral<"active">;
|
|
7026
|
+
handoffReady: ZodLiteral<true>;
|
|
7027
|
+
}, $strict>, ZodObject<{
|
|
7028
|
+
bindingState: ZodLiteral<"active">;
|
|
7029
|
+
handoffReady: ZodLiteral<false>;
|
|
7030
|
+
providerCli: ZodOptional<ZodObject<{
|
|
7031
|
+
phase: ZodEnum<{
|
|
7032
|
+
checking_credentials: "checking_credentials";
|
|
7033
|
+
needs_attention: "needs_attention";
|
|
7034
|
+
preparing_cli: "preparing_cli";
|
|
7035
|
+
}>;
|
|
7036
|
+
reason: ZodOptional<ZodEnum<{
|
|
7037
|
+
credential_rejected: "credential_rejected";
|
|
7038
|
+
global_bin_unavailable: "global_bin_unavailable";
|
|
7039
|
+
identity_mismatch: "identity_mismatch";
|
|
7040
|
+
integrity_failed: "integrity_failed";
|
|
7041
|
+
provider_unreachable: "provider_unreachable";
|
|
7042
|
+
rate_limited: "rate_limited";
|
|
7043
|
+
scope_missing: "scope_missing";
|
|
7044
|
+
unsupported_platform: "unsupported_platform";
|
|
7045
|
+
upgrade_required: "upgrade_required";
|
|
7046
|
+
version_incompatible: "version_incompatible";
|
|
7047
|
+
}>>;
|
|
7048
|
+
}, $strict>>;
|
|
7049
|
+
}, $strict>, ZodObject<{
|
|
7050
|
+
bindingState: ZodEnum<{
|
|
7051
|
+
disabled: "disabled";
|
|
7052
|
+
error: "error";
|
|
7053
|
+
provisioning: "provisioning";
|
|
7054
|
+
reauthorization_required: "reauthorization_required";
|
|
7055
|
+
}>;
|
|
7056
|
+
handoffReady: ZodLiteral<false>;
|
|
7057
|
+
}, $strict>]>>;
|
|
7058
|
+
}, $strict>;
|
|
7059
|
+
interactionsUrl: ZodString;
|
|
7060
|
+
}, $strict>;
|
|
7061
|
+
type ProvisionSlackAgentRequest = output$1<typeof ProvisionSlackAgentRequestSchema>;
|
|
7062
|
+
type ProvisionSlackAgentResponse = output$1<typeof ProvisionSlackAgentResponseSchema>;
|
|
7063
|
+
declare const SlackAutoSetupRuntimeRequestSchema: ZodObject<{
|
|
7064
|
+
type: ZodLiteral<"slack:auto-setup">;
|
|
7065
|
+
requestId: ZodString;
|
|
7066
|
+
computerId: ZodString;
|
|
7067
|
+
agentId: ZodString;
|
|
7068
|
+
input: ZodDiscriminatedUnion<[ZodObject<{
|
|
7069
|
+
action: ZodLiteral<"authorize">;
|
|
7070
|
+
force: ZodOptional<ZodBoolean>;
|
|
7071
|
+
}, $strict>, ZodObject<{
|
|
7072
|
+
action: ZodLiteral<"install">;
|
|
7073
|
+
displayName: ZodString;
|
|
7074
|
+
challenge: ZodOptional<ZodString>;
|
|
7075
|
+
}, $strict>, ZodObject<{
|
|
7076
|
+
action: ZodLiteral<"callbacks">;
|
|
7077
|
+
challenge: ZodOptional<ZodString>;
|
|
7078
|
+
teamId: ZodString;
|
|
7079
|
+
botUserId: ZodString;
|
|
7080
|
+
enterpriseId: ZodNullable<ZodString>;
|
|
7081
|
+
appId: ZodString;
|
|
7082
|
+
eventsUrl: ZodString;
|
|
7083
|
+
interactionsUrl: ZodString;
|
|
7084
|
+
}, $strict>], "action">;
|
|
7085
|
+
}, $strict>;
|
|
7086
|
+
declare const SlackAutoSetupRuntimeResultSchema: ZodObject<{
|
|
7087
|
+
type: ZodLiteral<"slack:auto-setup:result">;
|
|
7088
|
+
requestId: ZodString;
|
|
7089
|
+
result: ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<{
|
|
7090
|
+
status: ZodLiteral<"authorization_required">;
|
|
7091
|
+
ticket: ZodString;
|
|
7092
|
+
}, $strict>, ZodObject<{
|
|
7093
|
+
status: ZodLiteral<"authorized">;
|
|
7094
|
+
teamName: ZodString;
|
|
7095
|
+
}, $strict>, ZodObject<{
|
|
7096
|
+
status: ZodLiteral<"connected">;
|
|
7097
|
+
}, $strict>, ZodObject<{
|
|
7098
|
+
status: ZodLiteral<"approval_pending">;
|
|
7099
|
+
appId: ZodString;
|
|
7100
|
+
teamId: ZodString;
|
|
7101
|
+
}, $strict>, ZodObject<{
|
|
7102
|
+
status: ZodLiteral<"failed">;
|
|
7103
|
+
code: ZodEnum<{
|
|
7104
|
+
approval_denied: "approval_denied";
|
|
7105
|
+
authorization_failed: "authorization_failed";
|
|
7106
|
+
busy: "busy";
|
|
7107
|
+
callbacks_failed: "callbacks_failed";
|
|
7108
|
+
capability_missing: "capability_missing";
|
|
7109
|
+
computer_unavailable: "computer_unavailable";
|
|
7110
|
+
create_failed: "create_failed";
|
|
7111
|
+
create_uncertain: "create_uncertain";
|
|
7112
|
+
failed: "failed";
|
|
7113
|
+
install_failed: "install_failed";
|
|
7114
|
+
manual_required: "manual_required";
|
|
7115
|
+
}>;
|
|
7116
|
+
appId: ZodOptional<ZodString>;
|
|
7117
|
+
teamId: ZodOptional<ZodString>;
|
|
7118
|
+
errorCode: ZodOptional<ZodString>;
|
|
7119
|
+
}, $strict>], "status">, ZodObject<{
|
|
7120
|
+
status: ZodLiteral<"installed">;
|
|
7121
|
+
credentials: ZodObject<{
|
|
7122
|
+
appId: ZodString;
|
|
7123
|
+
teamId: ZodString;
|
|
7124
|
+
botUserId: ZodString;
|
|
7125
|
+
botAccessToken: ZodString;
|
|
7126
|
+
signingSecret: ZodString;
|
|
7127
|
+
}, $strict>;
|
|
7128
|
+
}, $strict>]>;
|
|
7129
|
+
}, $strict>;
|
|
7130
|
+
type SlackAutoSetupRuntimeRequest = output$1<typeof SlackAutoSetupRuntimeRequestSchema>;
|
|
7131
|
+
type SlackAutoSetupRuntimeResult = output$1<typeof SlackAutoSetupRuntimeResultSchema>;
|
|
6532
7132
|
/** The stable high-level class used for operational routing and dashboards. */
|
|
6533
7133
|
declare const StructuredErrorCategorySchema: ZodEnum<{
|
|
6534
7134
|
auth: "auth";
|
|
@@ -6837,24 +7437,7 @@ declare const RuntimeProviderCliMetadataSchema: ZodDiscriminatedUnion<[ZodObject
|
|
|
6837
7437
|
}, $strict>, ZodObject<{
|
|
6838
7438
|
provider: ZodLiteral<"github">;
|
|
6839
7439
|
connectionId: ZodString;
|
|
6840
|
-
|
|
6841
|
-
repositoryId: ZodString;
|
|
6842
|
-
fullName: ZodString;
|
|
6843
|
-
role: ZodEnum<{
|
|
6844
|
-
code: "code";
|
|
6845
|
-
context_tree: "context_tree";
|
|
6846
|
-
}>;
|
|
6847
|
-
access: ZodEnum<{
|
|
6848
|
-
read: "read";
|
|
6849
|
-
write: "write";
|
|
6850
|
-
}>;
|
|
6851
|
-
branch: ZodOptional<ZodString>;
|
|
6852
|
-
publish: ZodOptional<ZodEnum<{
|
|
6853
|
-
direct: "direct";
|
|
6854
|
-
pull_request: "pull_request";
|
|
6855
|
-
}>>;
|
|
6856
|
-
workBranchPrefix: ZodOptional<ZodString>;
|
|
6857
|
-
}, $strict>>;
|
|
7440
|
+
authority: ZodLiteral<"user-task">;
|
|
6858
7441
|
}, $strict>], "provider">;
|
|
6859
7442
|
type RuntimeProviderCliMetadata = output$1<typeof RuntimeProviderCliMetadataSchema>;
|
|
6860
7443
|
declare const RuntimeExecutionProviderSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
@@ -6916,24 +7499,7 @@ declare const RuntimeExecutionProviderSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
|
6916
7499
|
cli: ZodObject<{
|
|
6917
7500
|
provider: ZodLiteral<"github">;
|
|
6918
7501
|
connectionId: ZodString;
|
|
6919
|
-
|
|
6920
|
-
repositoryId: ZodString;
|
|
6921
|
-
fullName: ZodString;
|
|
6922
|
-
role: ZodEnum<{
|
|
6923
|
-
code: "code";
|
|
6924
|
-
context_tree: "context_tree";
|
|
6925
|
-
}>;
|
|
6926
|
-
access: ZodEnum<{
|
|
6927
|
-
read: "read";
|
|
6928
|
-
write: "write";
|
|
6929
|
-
}>;
|
|
6930
|
-
branch: ZodOptional<ZodString>;
|
|
6931
|
-
publish: ZodOptional<ZodEnum<{
|
|
6932
|
-
direct: "direct";
|
|
6933
|
-
pull_request: "pull_request";
|
|
6934
|
-
}>>;
|
|
6935
|
-
workBranchPrefix: ZodOptional<ZodString>;
|
|
6936
|
-
}, $strict>>;
|
|
7502
|
+
authority: ZodLiteral<"user-task">;
|
|
6937
7503
|
}, $strict>;
|
|
6938
7504
|
}, $strict>], "provider">;
|
|
6939
7505
|
type RuntimeExecutionProvider = output$1<typeof RuntimeExecutionProviderSchema>;
|
|
@@ -7002,24 +7568,7 @@ declare const RuntimeExecutionOpenResultSchema: ZodDiscriminatedUnion<[ZodObject
|
|
|
7002
7568
|
cli: ZodObject<{
|
|
7003
7569
|
provider: ZodLiteral<"github">;
|
|
7004
7570
|
connectionId: ZodString;
|
|
7005
|
-
|
|
7006
|
-
repositoryId: ZodString;
|
|
7007
|
-
fullName: ZodString;
|
|
7008
|
-
role: ZodEnum<{
|
|
7009
|
-
code: "code";
|
|
7010
|
-
context_tree: "context_tree";
|
|
7011
|
-
}>;
|
|
7012
|
-
access: ZodEnum<{
|
|
7013
|
-
read: "read";
|
|
7014
|
-
write: "write";
|
|
7015
|
-
}>;
|
|
7016
|
-
branch: ZodOptional<ZodString>;
|
|
7017
|
-
publish: ZodOptional<ZodEnum<{
|
|
7018
|
-
direct: "direct";
|
|
7019
|
-
pull_request: "pull_request";
|
|
7020
|
-
}>>;
|
|
7021
|
-
workBranchPrefix: ZodOptional<ZodString>;
|
|
7022
|
-
}, $strict>>;
|
|
7571
|
+
authority: ZodLiteral<"user-task">;
|
|
7023
7572
|
}, $strict>;
|
|
7024
7573
|
}, $strict>], "provider">>;
|
|
7025
7574
|
sessionCliProof: ZodOptional<ZodObject<{
|
|
@@ -7120,24 +7669,7 @@ declare const RuntimeCredentialResultSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
|
7120
7669
|
}, $strict>, ZodObject<{
|
|
7121
7670
|
provider: ZodLiteral<"github">;
|
|
7122
7671
|
connectionId: ZodString;
|
|
7123
|
-
|
|
7124
|
-
repositoryId: ZodString;
|
|
7125
|
-
fullName: ZodString;
|
|
7126
|
-
role: ZodEnum<{
|
|
7127
|
-
code: "code";
|
|
7128
|
-
context_tree: "context_tree";
|
|
7129
|
-
}>;
|
|
7130
|
-
access: ZodEnum<{
|
|
7131
|
-
read: "read";
|
|
7132
|
-
write: "write";
|
|
7133
|
-
}>;
|
|
7134
|
-
branch: ZodOptional<ZodString>;
|
|
7135
|
-
publish: ZodOptional<ZodEnum<{
|
|
7136
|
-
direct: "direct";
|
|
7137
|
-
pull_request: "pull_request";
|
|
7138
|
-
}>>;
|
|
7139
|
-
workBranchPrefix: ZodOptional<ZodString>;
|
|
7140
|
-
}, $strict>>;
|
|
7672
|
+
authority: ZodLiteral<"user-task">;
|
|
7141
7673
|
}, $strict>], "provider">;
|
|
7142
7674
|
}, $strict>, ZodObject<{
|
|
7143
7675
|
type: ZodLiteral<"runtime:credential:result">;
|
|
@@ -7233,24 +7765,7 @@ declare const RuntimeCredentialServerFrameSchema: ZodDiscriminatedUnion<[ZodDisc
|
|
|
7233
7765
|
cli: ZodObject<{
|
|
7234
7766
|
provider: ZodLiteral<"github">;
|
|
7235
7767
|
connectionId: ZodString;
|
|
7236
|
-
|
|
7237
|
-
repositoryId: ZodString;
|
|
7238
|
-
fullName: ZodString;
|
|
7239
|
-
role: ZodEnum<{
|
|
7240
|
-
code: "code";
|
|
7241
|
-
context_tree: "context_tree";
|
|
7242
|
-
}>;
|
|
7243
|
-
access: ZodEnum<{
|
|
7244
|
-
read: "read";
|
|
7245
|
-
write: "write";
|
|
7246
|
-
}>;
|
|
7247
|
-
branch: ZodOptional<ZodString>;
|
|
7248
|
-
publish: ZodOptional<ZodEnum<{
|
|
7249
|
-
direct: "direct";
|
|
7250
|
-
pull_request: "pull_request";
|
|
7251
|
-
}>>;
|
|
7252
|
-
workBranchPrefix: ZodOptional<ZodString>;
|
|
7253
|
-
}, $strict>>;
|
|
7768
|
+
authority: ZodLiteral<"user-task">;
|
|
7254
7769
|
}, $strict>;
|
|
7255
7770
|
}, $strict>], "provider">>;
|
|
7256
7771
|
sessionCliProof: ZodOptional<ZodObject<{
|
|
@@ -7349,24 +7864,7 @@ declare const RuntimeCredentialServerFrameSchema: ZodDiscriminatedUnion<[ZodDisc
|
|
|
7349
7864
|
}, $strict>, ZodObject<{
|
|
7350
7865
|
provider: ZodLiteral<"github">;
|
|
7351
7866
|
connectionId: ZodString;
|
|
7352
|
-
|
|
7353
|
-
repositoryId: ZodString;
|
|
7354
|
-
fullName: ZodString;
|
|
7355
|
-
role: ZodEnum<{
|
|
7356
|
-
code: "code";
|
|
7357
|
-
context_tree: "context_tree";
|
|
7358
|
-
}>;
|
|
7359
|
-
access: ZodEnum<{
|
|
7360
|
-
read: "read";
|
|
7361
|
-
write: "write";
|
|
7362
|
-
}>;
|
|
7363
|
-
branch: ZodOptional<ZodString>;
|
|
7364
|
-
publish: ZodOptional<ZodEnum<{
|
|
7365
|
-
direct: "direct";
|
|
7366
|
-
pull_request: "pull_request";
|
|
7367
|
-
}>>;
|
|
7368
|
-
workBranchPrefix: ZodOptional<ZodString>;
|
|
7369
|
-
}, $strict>>;
|
|
7867
|
+
authority: ZodLiteral<"user-task">;
|
|
7370
7868
|
}, $strict>], "provider">;
|
|
7371
7869
|
}, $strict>, ZodObject<{
|
|
7372
7870
|
type: ZodLiteral<"runtime:credential:result">;
|
|
@@ -7522,6 +8020,19 @@ type SessionCliSendRequest = output$1<typeof SessionCliSendRequestSchema>;
|
|
|
7522
8020
|
type SessionCliCommandResponse = output$1<typeof SessionCliCommandResponseSchema>;
|
|
7523
8021
|
type SessionCliListQuery = output$1<typeof SessionCliListQuerySchema>;
|
|
7524
8022
|
type SessionCliListResponse = output$1<typeof SessionCliListResponseSchema>;
|
|
8023
|
+
declare const TurnActivityResultSchema: ZodObject<{
|
|
8024
|
+
type: ZodLiteral<"turn:activity:result">;
|
|
8025
|
+
requestId: ZodString;
|
|
8026
|
+
turnId: ZodString;
|
|
8027
|
+
sequence: ZodNumber;
|
|
8028
|
+
status: ZodEnum<{
|
|
8029
|
+
already_recorded: "already_recorded";
|
|
8030
|
+
recorded: "recorded";
|
|
8031
|
+
stale_generation: "stale_generation";
|
|
8032
|
+
unsupported_capability: "unsupported_capability";
|
|
8033
|
+
}>;
|
|
8034
|
+
}, $strict>;
|
|
8035
|
+
type TurnActivityResult = output$1<typeof TurnActivityResultSchema>;
|
|
7525
8036
|
/** Business parameters shared by every hop; unknown fields are rejected. */
|
|
7526
8037
|
declare const WebSearchParamsSchema: ZodObject<{
|
|
7527
8038
|
query: ZodString;
|
|
@@ -7654,7 +8165,7 @@ declare const WebToolErrorCodeSchema: ZodEnum<{
|
|
|
7654
8165
|
}>;
|
|
7655
8166
|
type WebToolErrorCode = output$1<typeof WebToolErrorCodeSchema>;
|
|
7656
8167
|
declare namespace index_d_exports {
|
|
7657
|
-
export { ACCOUNT_IDENTITY_FILE_NAME, AGENT_RUNTIME_BINDING_MAX_BYTES, AGENT_RUNTIME_CONTRACT_VERSION, AGENT_RUNTIME_DESCRIPTION_MAX_BYTES, AGENT_RUNTIME_ID_MAX_BYTES, AGENT_RUNTIME_TEXT_MAX_BYTES, AccessTokenLease, AccessTokenProvider, AccountIdentityRotation, AdmissionController, AdmissionDecision, AdmissionLimits, AdmissionPhase, AdmissionReservation, AdmissionSnapshot, AgentAbortRequest, AgentApprovalResponse, AgentHostedToolCall, AgentHostedToolContent, AgentHostedToolDefinition, AgentHostedToolError, AgentHostedToolHandler, AgentHostedToolResult, AgentHostedTools, AgentInput, AgentInputItem, AgentInteractionRequest, AgentInteractionResponse, AgentOutputItem, AgentPromptRequest, AgentProviderError, AgentProviderRunContext, AgentProviderRunEvent, AgentProviderRunResult, AgentQuestionResponse, AgentRunConfiguration, AgentRunError, AgentRunErrorCode, AgentRunId, AgentRunResult, AgentRunStatus, AgentRuntime, AgentRuntimeBinding, AgentRuntimeCapabilities, AgentRuntimeCliInstallation, AgentRuntimeError, AgentRuntimeErrorCode, AgentRuntimeEvent, AgentRuntimeEventSink, AgentRuntimeExecutableDiscoveryError, AgentRuntimeExecutableNotFoundError, AgentRuntimeExecutableSource, AgentRuntimeFactory, AgentRuntimeLifecycleState, AgentRuntimeManifest, AgentRuntimePaths, AgentRuntimePolicy, AgentRuntimeProbeIssue, AgentRuntimeProbeRequest, AgentRuntimeProbeResult, AgentRuntimeProviderRegistration, AgentRuntimeProviderRegistry, AgentRuntimeProviderUnavailableError, AgentRuntimeState, AgentRuntimeWorkspace, AgentSteerRequest, AgentTextInputItem, AgentTextOutputItem, AgentTurnErrorReporter, AgentTurnFailure, AgentTurnRunner, AgentTurnRunnerOptions, AgentUsage, AgentWorkspaceManager, AgentWorkspaceManagerOptions, BaseAgentRuntime, BaseAgentRuntimeOptions, BoundAccountComputerResolution, CLAUDE_CODE_AGENT_RUNTIME_MANIFEST, CLAUDE_CODE_MAX_LINE_BYTES, CLAUDE_CODE_MAX_STDERR_BYTES, CLIENT_ERROR_REPORT_TIMEOUT_MS, CODEX_AGENT_RUNTIME_APP_SERVER_ARGS, CODEX_AGENT_RUNTIME_MANIFEST, CODEX_APP_SERVER_MAX_LINE_BYTES, CODEX_APP_SERVER_MAX_STDERR_BYTES, CODEX_APP_SERVER_REQUEST_TIMEOUT_MS, COMPUTER_IDENTITY_FILE_NAME, CONTEXT_TREE_PACKAGED_SKILL_DIRECTORIES, CREDENTIALS_FILE_NAME, ClaudeCodeAgentRuntime, ClaudeCodeAgentRuntimeFactory, ClaudeCodeAgentRuntimeFactoryOptions, ClaudeCodeProcess, ClaudeCodeProcessClient, ClaudeCodeProcessError, ClaudeCodeProcessResult, ClaudeCodeProcessSpawnOptions, ClaudeCodeSpawnOptions, ClientErrorReportMetadata, ClientLogBindings, ClientLogger, ClientRuntime, ClientRuntimeOptions, ClientRuntimeProviderStartError, CloudSandboxCommandOptions, CloudSandboxCredentialBridge, CloudSandboxCredentialBridgeOpenOptions, CodexAgentRuntime, CodexAgentRuntimeFactory, CodexAgentRuntimeFactoryOptions, CodexAppServerClient, CodexAppServerError, CodexAppServerMessage, CodexAppServerProcess, CodexAppServerRequest, CodexProcessSpawnOptions, CodexSpawnOptions, ComposedClientRuntime, ComputerIdentity, ContextTreeExecFile, ContextTreeManager, ContextTreeManagerOptions, ContextTreePackage, ContextTreeStatus, CreateAgentRuntimeRequest, CreateClientRuntimeOptions, CreateLoggerOptions, CustodyResult, DEFAULT_RUNTIME_RETRY_POLICY, DeliveryDecision, DurableFailure, DurableRetryability, DurableWorkKind, DurableWorkRecord, DurableWorkStatus, ExecuteProviderCliTurnPlanOptions, ExpectedSkillBundle, FeishuTokenExchangeError, FileRuntimeDurabilityStore, IgnoredProviderCliCandidate, ImCredentialEnvironmentError, ImCredentialEnvironmentManager, ImCredentialEnvironmentManagerOptions, ImCredentialGrantSubject, ImResourceFetcher, IntegrationCliId, IntegrationCliInstallation, InteractiveCodexAppServerClient, JsonPrimitive, JsonValue, LiveTurnOwner, LocalComputerConfigurationInspection, LocalConfigurationStatus, LocalSessionBinding, MACHINE_CREDENTIALS_FILE_NAME, MAX_PROVIDER_CLI_EXECUTABLE_BYTES, MAX_PROVIDER_CLI_TURN_IDENTITY_BYTES, MAX_PROVIDER_CLI_TURN_PLAN_BYTES, MachineComputerCredential, ManagedSessionContext, MemoryRuntimeDurabilityStore, OpenTagApi, OpenTagApiError, OpenTagHomeLayout, PI_AGENT_RUNTIME_MANIFEST, PI_RPC_MAX_LINE_BYTES, PI_RPC_MAX_STDERR_BYTES, PI_RPC_REQUEST_TIMEOUT_MS, PROCESS_ERROR_FLUSH_WAIT_MS, PROCESS_ERROR_REPORT_WAIT_MS, PROVIDER_CLI_CATALOG, PROVIDER_CLI_LOCK_BUSY_MAX_ATTEMPTS, PROVIDER_CLI_LOCK_BUSY_RETRY_DELAY_MS, PROVIDER_CLI_SELECTION_SCHEMA_VERSION, PROVIDER_CLI_TURN_PLAN_SCHEMA_VERSION, PackedSkillDirectory, PiAgentRuntime, PiAgentRuntimeFactory, PiAgentRuntimeFactoryOptions, PiRpcClient, PiRpcError, PiRpcProcess, PiRpcProcessSpawnOptions, PiRpcSpawnOptions, PlatformSource, PreparedImCredentialEnvironment, PreparedRuntimeCredentialEnvironment, PreparedWebToolsLaunch, ProbeAgentRuntimeCliInstallationsOptions, ProbeIntegrationCliInstallationsOptions, ProcessErrorOrigin, ProcessErrorReportingOptions, ProcessErrorTarget, ProtectedWorkCount, ProtectedWorkSnapshot, ProviderCliAccountError, ProviderCliAccountLayout, ProviderCliArchiveError, ProviderCliCandidate, ProviderCliCandidateReport, ProviderCliCatalogArtifact, ProviderCliCatalogEntry, ProviderCliDetectOptions, ProviderCliDetection, ProviderCliDiagnostic, ProviderCliDiagnosticCode, ProviderCliEnsureAction, ProviderCliEnsureOptions, ProviderCliEnsureResult, ProviderCliExecFile, ProviderCliExecutableFormat, ProviderCliFetcher, ProviderCliFileIdentity, ProviderCliGlobalCommandStatus, ProviderCliInspection, ProviderCliInstallError, ProviderCliInstaller, ProviderCliInstallerOptions, ProviderCliLocalState, ProviderCliLockBusyError, ProviderCliManagedInstall, ProviderCliManager, ProviderCliManagerDeps, ProviderCliPhase, ProviderCliPhaseEvent, ProviderCliPhaseRecord, ProviderCliPreparedTurnPlan, ProviderCliProbeContract, ProviderCliProbeOutcome, ProviderCliProvider, ProviderCliReconciler, ProviderCliReconcilerOptions, ProviderCliSelection, ProviderCliSelectionRecord, ProviderCliTrust, ProviderCliTurnLauncherSpec, ProviderCliTurnPlan, ProviderCliTurnPlanCommand, ProviderCliTurnPlanError, ProviderCliTurnPlanErrorCode, ProviderCliTurnPlanManager, ProviderCliTurnPlanManagerDeps, ProviderCliTurnPlanPrepareInput, ProviderCliValidationRequest, ProviderCliValidationRunner, ProviderCliValidationRunnerOptions, ProviderCliWarning, ProviderCliWarningCode, RUNNER_CLI_NAME, RUNNER_IDENTITY_SCHEMA_VERSION, RUNTIME_CREDENTIAL_CAPABILITY, RUNTIME_EXECUTION_MAX_LIFETIME_MS, RUNTIME_PROVIDER_ORIGIN_HEADER, RUNTIME_PROVIDER_PROXY_CAPABILITY, RUNTIME_PROVIDER_PROXY_PATH, RUNTIME_PROXY_ALLOWED_CONNECT_HOSTS, RUNTIME_PROXY_DATA_BINARY_FRAME_MAX_BYTES, RUNTIME_PROXY_DATA_CHUNK_BYTES, RUNTIME_PROXY_DATA_HEADER_MAX_BYTES, RUNTIME_PROXY_DATA_INITIAL_CREDIT_BYTES, RUNTIME_PROXY_DATA_MAX_STREAMS, RUNTIME_PROXY_GIT_HELPER_MARKER, RUNTIME_PROXY_HANDLE_PATH_PREFIX, RUNTIME_PROXY_PROVIDERS, RUNTIME_PROXY_SHIM_MARKER, RUNTIME_PROXY_TICKET_TTL_MS, RUNTIME_WEB_TOOLS_CAPABILITY, ReadBundleBodyOptions, RecordedInput, ReportClientErrorOptions, ResolveAgentRuntimeExecutableOptions, ResolvedAgentRuntimeExecutable, ResolvedClaudeCodeFactoryOptions, ResolvedCodexFactoryOptions, ResolvedPiFactoryOptions, ResumeAgentRuntimeRequest, RuntimeBusinessFrame, RuntimeConnection, RuntimeConnectionError, RuntimeConnectionOptions, RuntimeConnectionState, RuntimeCredentialEnvironmentManager, RuntimeCredentialEnvironmentManagerOptions, RuntimeCredentialGrant, RuntimeCredentialMode, RuntimeCredentialPrepareSubject, RuntimeCredentialRelay, RuntimeCredentialRelayError, RuntimeCredentialRelayErrorCode, RuntimeCredentialRelayOptions, RuntimeCredentialResult, RuntimeCredentialRevoked, RuntimeCredentialRunSubject, RuntimeCredentialServerFrame, RuntimeDurabilityFailure, RuntimeDurabilityMetrics, RuntimeDurabilityMetricsSnapshot, RuntimeDurabilityStore, RuntimeExecutionOpenRequest, RuntimeExecutionOpenResult, RuntimeExecutionProvider, RuntimeExecutionSandbox, RuntimeExecutionService, RuntimeExecutionSource, RuntimeLocalPolicy, RuntimePreparation, RuntimeProxyAdapterStreamRequest, RuntimeProxyCliMetadata, RuntimeProxyDataConnectInput, RuntimeProxyDataConnection, RuntimeProxyDataConnectionFactory, RuntimeProxyDataConnectionLike, RuntimeProxyDataConnectionOptions, RuntimeProxyDataError, RuntimeProxyDataErrorCode, RuntimeProxyEnvironment, RuntimeProxyEnvironmentInput, RuntimeProxyExecutionLayout, RuntimeProxyLoopbackAdapter, RuntimeProxyLoopbackAdapterOptions, RuntimeProxyLoopbackCaMaterial, RuntimeProxyLoopbackError, RuntimeProxyMaterialStore, RuntimeProxyOpenStreamRequest, RuntimeProxyProvider, RuntimeProxyStreamResponse, RuntimeQueueLimits, RuntimeRelayScheduler, RuntimeRetryPolicy, RuntimeRetryScheduler, RuntimeSendError, RuntimeSendErrorCode, RuntimeSendOptions, RuntimeSendPriority, RuntimeStorageError, SERVER_HEALTH_TIMEOUT_MS, SESSION_BINDING_SCHEMA_VERSION, SESSION_RECORDED_INPUT_LIMIT, SKILL_CONTENT_SIDECAR_FILE, SKILL_PULL_BUNDLE_TIMEOUT_MS, SKILL_SYNC_DEFAULT_BUDGET_MS, ServerHealthConfigurationError, ServerHealthHttpError, ServerHealthNetworkError, ServerHealthResponseError, ServerHealthTimeoutError, ServerRuntimeDurabilityStore, ServerRuntimeDurabilityStoreOptions, SessionActivity, SessionActivityPhase, SessionBindingConflictError, SessionBindingStore, SessionBindingStoreOptions, SessionCliProofManager, SessionMessageInbox, SessionMessageInboxOptions, SessionMessageTurnContext, SessionPreparationResult, SessionProtectedWorkSnapshot, SessionReconciler, SessionReconcilerOptions, SessionRuntimeManager, SessionRuntimeManagerOptions, SessionRuntimeState, SessionTurnIdentity, SkillArchiveError, SkillArchiveErrorCode, SkillDirectoryMarkerInput, SkillSyncAgentInput, SkillSyncApi, SkillSyncManager, SkillSyncManagerOptions, SkillSyncResult, SkillSyncStatus, StoredAccountIdentity, StoredAccountIdentitySchema, StoredCredentials, StoredMachineCredentials, StoredSessionCliProof, TURN_TRACE_BATCH_SOFT_LIMIT_BYTES, TURN_TRACE_MAX_BUFFER_BYTES, TURN_TRACE_MAX_BUFFER_EVENTS, TURN_TRACE_SEND_DEADLINE_MS, TokenProviderOptions, TurnCustodyOwner, TurnCustodyOwnerOptions, TurnReportOwner, TurnReportOwnerOptions, TurnReportOwnerStoppedError, TurnReportRearmClaim, TurnReportSubmitOptions, TurnReportTerminalStatus, TurnTraceBuffer, TurnTraceBufferOptions, TurnTraceSummary, UnresolvedTurn, UnresolvedTurnPhase, UpdateManager, UpdateManagerOptions, UpdaterAttempt, UpdaterStateName, UpdaterStateSnapshot, WebGatewayDispatch, WebGatewayDispatchError, WebToolsClientError, WebToolsGatewayServer, WebToolsGatewayServerOptions, WebToolsServerClient, WebToolsServerClientOptions, accountIdentityMatchesCredentials, accountIdentityPath, agentRuntimePaths, allocateComputerIdentity, assembleContextTreeSkills, assertRealDirectory, assertWithin, buildAgentInput, buildClientErrorReport, buildRuntimeProxyEnvironment, buildSessionMessageInput, catalogExecutableDigests, checkServerHealth, classifyLarkAuthStatus, classifySlackAuthTest, classifySpawnFailure, claudeCodeAgentRuntimeEnvironment, claudeCodeProcessEnvironment, codexAgentRuntimeEnvironment, codexDesktopAppBinDirs, computeFileIdentity, computeTargetFingerprint, computerIdentityPath, configureClientLoggerContext, configureClientLoggerForService, copyIsolatedPiConfig, createClientRuntime, createLogger, createProviderCliFetcher, createRunnerIdentity, credentialsFingerprint, credentialsPath, defaultProviderCliExecFile, defaultProviderCliFetcher, defaultRuntimeProxyDataConnectionFactory, defaultRuntimeRetryScheduler, deriveProviderCliHomeNamespace, deriveProviderCliRunKey, deriveProviderCliSessionKey, deriveProviderCliValidationRequestKey, deriveRuntimeKey, describePlatform, detectProviderCliCandidates, ensurePrivateDirectory, exchangeFeishuTenantToken, executableFormatSupportsHost, executeProviderCliTurnPlan, extractBoundedJson, extractProviderCliExecutable, extractSkillArchive, findCatalogArtifact, findProviderCliCatalogEntry, generateExecutionCa, hashSkillDirectory, inspectExecutableFormat, inspectGlobalCommand, inspectLocalComputerConfiguration, inspectProviderCliLauncher, installProcessErrorReporting, isSkillMaterializationTarget, isSyncedWorkspace, iterateAgentRuntimeExecutables, linuxAmd64ProviderCliPlans, machineCredentialsPath, mapProviderCliLocalStateToReadiness, markSkillDirectoryManaged, normalizeServerUrl, packSkillDirectory, parseProviderCliTurnPlan, parseProviderCliTurnRunnerArgv, parseRunnerCliArgv, parseRunnerIdentity, parseRuntimeCredentialServerFrame, piAgentRuntimeEnvironment, prepareContextTreeHome, probeAgentRuntimeCliInstallations, probeIntegrationCliInstallations, probeProviderCliExecutable, probeRunnerTools, providerCliArtifactId, providerCliCommandForProvider, providerCliLauncherPath, providerCliLockFilePath, providerCliProbeEnvironment, providerCliSelectionTargetPath, providerCliStateFilePath, providerCliVersionDirPath, providerReadiness, rankProviderCliCandidates, readAccountIdentity, readBundleBody, readComputerIdentity, readCredentials, readDurableJson, readMachineCredentials, readMachineCredentialsStrict, readPrivateJson, readProviderCliSelection, readProviderCliTurnPlan, readSecureFile, readSessionCliProofFile, reconcileProviderCliLauncher, reconcileProviderCliShim, redactAcceptanceRecord, removeAccountIdentity, renderManagedSystemPrompt, renderProviderCliLauncher, renderProviderCliShim, renderProviderCliTurnLauncher, renderRuntimeProxyGitCredentialHelper, renderRuntimeProxyShim, reportClientError, requireProviderCliCatalogEntry, resolveAccountHome, resolveAgentRuntimeExecutable, resolveBoundAccountComputer, resolveCodexHome, resolveComputerIdentity, resolveContextTreeHome, resolveContextTreePackage, resolveMaterializationWorkspace, resolveOpenTagHome, resolveOpenTagHomeLayout, resolvePiHome, resolveProviderCliAccountLayout, resolveProviderCliArtifactUrl, resolveProviderCliTurnRunnerInvocation, resolveWebToolsExtensionPath, resolvedClaudeCodeFactory, resolvedCodexFactory, resolvedPiFactory, retryDelay, retryExhausted, rotateAccountIdentityFingerprint, runContextTreeCli, runProviderCliTurnRunner, runRunnerAcceptance, runRunnerCli, serializeEnvironment, sessionBindingPath, skillRootForProvider, snapshotPath, storeBoundAccountComputer, validatePrivateDirectory, verifyProviderCliCandidateFingerprint, verifySkillBundle, wellKnownAgentRuntimeBinDirs, withProviderCliLock, writeAccountIdentityAtomically, writeComputerIdentityAtomically, writeCredentialsAtomically, writeDurableFile, writeDurableJson, writeMachineCredentialsAtomically, writePrivateJson, writeProviderCliSelection };
|
|
8168
|
+
export { ACCOUNT_IDENTITY_FILE_NAME, AGENT_RUNTIME_BINDING_MAX_BYTES, AGENT_RUNTIME_CONTRACT_VERSION, AGENT_RUNTIME_DESCRIPTION_MAX_BYTES, AGENT_RUNTIME_ID_MAX_BYTES, AGENT_RUNTIME_TEXT_MAX_BYTES, AccessTokenLease, AccessTokenProvider, AccountIdentityRotation, AdmissionController, AdmissionDecision, AdmissionLimits, AdmissionPhase, AdmissionReservation, AdmissionSnapshot, AgentAbortRequest, AgentApprovalResponse, AgentHostedToolCall, AgentHostedToolContent, AgentHostedToolDefinition, AgentHostedToolError, AgentHostedToolHandler, AgentHostedToolResult, AgentHostedTools, AgentInput, AgentInputItem, AgentInteractionRequest, AgentInteractionResponse, AgentOutputItem, AgentPromptRequest, AgentProviderError, AgentProviderRunContext, AgentProviderRunEvent, AgentProviderRunResult, AgentQuestionResponse, AgentRunConfiguration, AgentRunError, AgentRunErrorCode, AgentRunId, AgentRunResult, AgentRunStatus, AgentRuntime, AgentRuntimeBinding, AgentRuntimeCapabilities, AgentRuntimeCliInstallation, AgentRuntimeConfigurationOptionsRequest, AgentRuntimeError, AgentRuntimeErrorCode, AgentRuntimeEvent, AgentRuntimeEventSink, AgentRuntimeExecutableDiscoveryError, AgentRuntimeExecutableNotFoundError, AgentRuntimeExecutableSource, AgentRuntimeFactory, AgentRuntimeLifecycleState, AgentRuntimeManifest, AgentRuntimePaths, AgentRuntimePolicy, AgentRuntimeProbeIssue, AgentRuntimeProbeRequest, AgentRuntimeProbeResult, AgentRuntimeProviderRegistration, AgentRuntimeProviderRegistry, AgentRuntimeProviderUnavailableError, AgentRuntimeState, AgentRuntimeWorkspace, AgentSteerRequest, AgentTextInputItem, AgentTextOutputItem, AgentTurnErrorReporter, AgentTurnFailure, AgentTurnRunner, AgentTurnRunnerOptions, AgentUsage, AgentWorkspaceManager, AgentWorkspaceManagerOptions, BaseAgentRuntime, BaseAgentRuntimeOptions, BoundAccountComputerResolution, CLAUDE_CODE_AGENT_RUNTIME_MANIFEST, CLAUDE_CODE_MAX_LINE_BYTES, CLAUDE_CODE_MAX_STDERR_BYTES, CLIENT_ERROR_REPORT_TIMEOUT_MS, CODEX_AGENT_RUNTIME_APP_SERVER_ARGS, CODEX_AGENT_RUNTIME_MANIFEST, CODEX_APP_SERVER_MAX_LINE_BYTES, CODEX_APP_SERVER_MAX_STDERR_BYTES, CODEX_APP_SERVER_REQUEST_TIMEOUT_MS, COMPUTER_IDENTITY_FILE_NAME, CONTEXT_TREE_PACKAGED_SKILL_DIRECTORIES, CREDENTIALS_FILE_NAME, ClaudeCodeAgentRuntime, ClaudeCodeAgentRuntimeFactory, ClaudeCodeAgentRuntimeFactoryOptions, ClaudeCodeProcess, ClaudeCodeProcessClient, ClaudeCodeProcessError, ClaudeCodeProcessResult, ClaudeCodeProcessSpawnOptions, ClaudeCodeSpawnOptions, ClientErrorReportMetadata, ClientLogBindings, ClientLogger, ClientLoggerServiceOptions, ClientRuntime, ClientRuntimeOptions, ClientRuntimeProviderStartError, CloudSandboxCommandOptions, CloudSandboxCredentialBridge, CloudSandboxCredentialBridgeOpenOptions, CodexAgentRuntime, CodexAgentRuntimeFactory, CodexAgentRuntimeFactoryOptions, CodexAppServerClient, CodexAppServerError, CodexAppServerMessage, CodexAppServerProcess, CodexAppServerRequest, CodexProcessSpawnOptions, CodexSpawnOptions, ComposedClientRuntime, ComputerIdentity, ContextTreeExecFile, ContextTreeManager, ContextTreeManagerOptions, ContextTreePackage, ContextTreeStatus, CreateAgentRuntimeRequest, CreateClientRuntimeOptions, CreateLoggerOptions, CustodyResult, DEFAULT_RUNTIME_RETRY_POLICY, DeliveryDecision, DurableFailure, DurableRetryability, DurableWorkKind, DurableWorkRecord, DurableWorkStatus, ExecuteProviderCliTurnPlanOptions, ExpectedSkillBundle, FeishuTokenExchangeError, FileRuntimeDurabilityStore, IgnoredProviderCliCandidate, ImCredentialEnvironmentError, ImCredentialEnvironmentManager, ImCredentialEnvironmentManagerOptions, ImCredentialGrantSubject, ImResourceFetcher, IntegrationCliId, IntegrationCliInstallation, InteractiveCodexAppServerClient, JsonPrimitive, JsonValue, LiveTurnOwner, LocalComputerConfigurationInspection, LocalConfigurationStatus, LocalSessionBinding, MACHINE_CREDENTIALS_FILE_NAME, MAX_PROVIDER_CLI_EXECUTABLE_BYTES, MAX_PROVIDER_CLI_TURN_IDENTITY_BYTES, MAX_PROVIDER_CLI_TURN_PLAN_BYTES, MachineComputerCredential, ManagedContextTreeStatus, ManagedEnvironment, ManagedSessionContext, MemoryRuntimeDurabilityStore, OpenTagApi, OpenTagApiError, OpenTagHomeLayout, PI_AGENT_RUNTIME_MANIFEST, PI_RPC_MAX_LINE_BYTES, PI_RPC_MAX_STDERR_BYTES, PI_RPC_REQUEST_TIMEOUT_MS, PROCESS_ERROR_FLUSH_WAIT_MS, PROCESS_ERROR_REPORT_WAIT_MS, PROVIDER_CLI_CATALOG, PROVIDER_CLI_LOCK_BUSY_MAX_ATTEMPTS, PROVIDER_CLI_LOCK_BUSY_RETRY_DELAY_MS, PROVIDER_CLI_SELECTION_SCHEMA_VERSION, PROVIDER_CLI_TURN_PLAN_SCHEMA_VERSION, PackedSkillDirectory, PiAgentRuntime, PiAgentRuntimeFactory, PiAgentRuntimeFactoryOptions, PiRpcClient, PiRpcError, PiRpcProcess, PiRpcProcessSpawnOptions, PiRpcSpawnOptions, PlatformSource, PreparedImCredentialEnvironment, PreparedRuntimeCredentialEnvironment, PreparedWebToolsLaunch, ProbeAgentRuntimeCliInstallationsOptions, ProbeIntegrationCliInstallationsOptions, ProcessErrorOrigin, ProcessErrorReportingOptions, ProcessErrorTarget, ProtectedWorkCount, ProtectedWorkSnapshot, ProviderCliAccountError, ProviderCliAccountLayout, ProviderCliArchiveError, ProviderCliCandidate, ProviderCliCandidateReport, ProviderCliCatalogArtifact, ProviderCliCatalogEntry, ProviderCliDetectOptions, ProviderCliDetection, ProviderCliDiagnostic, ProviderCliDiagnosticCode, ProviderCliEnsureAction, ProviderCliEnsureOptions, ProviderCliEnsureResult, ProviderCliExecFile, ProviderCliExecutableFormat, ProviderCliFetcher, ProviderCliFileIdentity, ProviderCliGlobalCommandStatus, ProviderCliInspection, ProviderCliInstallError, ProviderCliInstaller, ProviderCliInstallerOptions, ProviderCliLocalState, ProviderCliLockBusyError, ProviderCliManagedInstall, ProviderCliManager, ProviderCliManagerDeps, ProviderCliPhase, ProviderCliPhaseEvent, ProviderCliPhaseRecord, ProviderCliPreparedTurnPlan, ProviderCliProbeContract, ProviderCliProbeOutcome, ProviderCliProvider, ProviderCliReconciler, ProviderCliReconcilerOptions, ProviderCliSelection, ProviderCliSelectionRecord, ProviderCliTrust, ProviderCliTurnLauncherSpec, ProviderCliTurnPlan, ProviderCliTurnPlanCommand, ProviderCliTurnPlanError, ProviderCliTurnPlanErrorCode, ProviderCliTurnPlanManager, ProviderCliTurnPlanManagerDeps, ProviderCliTurnPlanPrepareInput, ProviderCliValidationRequest, ProviderCliValidationRunner, ProviderCliValidationRunnerOptions, ProviderCliWarning, ProviderCliWarningCode, RUNNER_CLI_NAME, RUNNER_IDENTITY_SCHEMA_VERSION, RUNTIME_CREDENTIAL_CAPABILITY, RUNTIME_EXECUTION_MAX_LIFETIME_MS, RUNTIME_PROVIDER_ORIGIN_HEADER, RUNTIME_PROVIDER_PROXY_CAPABILITY, RUNTIME_PROVIDER_PROXY_PATH, RUNTIME_PROXY_ALLOWED_CONNECT_HOSTS, RUNTIME_PROXY_DATA_BINARY_FRAME_MAX_BYTES, RUNTIME_PROXY_DATA_CHUNK_BYTES, RUNTIME_PROXY_DATA_HEADER_MAX_BYTES, RUNTIME_PROXY_DATA_INITIAL_CREDIT_BYTES, RUNTIME_PROXY_DATA_MAX_STREAMS, RUNTIME_PROXY_GIT_HELPER_MARKER, RUNTIME_PROXY_HANDLE_PATH_PREFIX, RUNTIME_PROXY_PROVIDERS, RUNTIME_PROXY_SHIM_MARKER, RUNTIME_PROXY_TICKET_TTL_MS, RUNTIME_WEB_TOOLS_CAPABILITY, ReadBundleBodyOptions, RecordedInput, ReportClientErrorOptions, ResolveAgentRuntimeExecutableOptions, ResolvedAgentRuntimeExecutable, ResolvedClaudeCodeFactoryOptions, ResolvedCodexFactoryOptions, ResolvedPiFactoryOptions, ResumeAgentRuntimeRequest, RuntimeBusinessFrame, RuntimeConnection, RuntimeConnectionError, RuntimeConnectionErrorCategory, RuntimeConnectionOptions, RuntimeConnectionState, RuntimeCredentialEnvironmentManager, RuntimeCredentialEnvironmentManagerOptions, RuntimeCredentialGrant, RuntimeCredentialMode, RuntimeCredentialPrepareSubject, RuntimeCredentialRelay, RuntimeCredentialRelayError, RuntimeCredentialRelayErrorCode, RuntimeCredentialRelayOptions, RuntimeCredentialResult, RuntimeCredentialRevoked, RuntimeCredentialRunSubject, RuntimeCredentialServerFrame, RuntimeDurabilityFailure, RuntimeDurabilityMetrics, RuntimeDurabilityMetricsSnapshot, RuntimeDurabilityStore, RuntimeExecutionOpenRequest, RuntimeExecutionOpenResult, RuntimeExecutionProvider, RuntimeExecutionSandbox, RuntimeExecutionService, RuntimeExecutionSource, RuntimeLocalPolicy, RuntimePreparation, RuntimeProxyAdapterStreamRequest, RuntimeProxyCliMetadata, RuntimeProxyDataConnectInput, RuntimeProxyDataConnection, RuntimeProxyDataConnectionFactory, RuntimeProxyDataConnectionLike, RuntimeProxyDataConnectionOptions, RuntimeProxyDataError, RuntimeProxyDataErrorCode, RuntimeProxyEnvironment, RuntimeProxyEnvironmentInput, RuntimeProxyExecutionLayout, RuntimeProxyLoopbackAdapter, RuntimeProxyLoopbackAdapterOptions, RuntimeProxyLoopbackCaMaterial, RuntimeProxyLoopbackError, RuntimeProxyMaterialStore, RuntimeProxyOpenStreamRequest, RuntimeProxyProvider, RuntimeProxyStreamResponse, RuntimeQueueLimits, RuntimeRelayScheduler, RuntimeRetryPolicy, RuntimeRetryScheduler, RuntimeSendError, RuntimeSendErrorCode, RuntimeSendOptions, RuntimeSendPriority, RuntimeStorageError, SERVER_HEALTH_TIMEOUT_MS, SESSION_BINDING_SCHEMA_VERSION, SESSION_RECORDED_INPUT_LIMIT, SKILL_CONTENT_SIDECAR_FILE, SKILL_PULL_BUNDLE_TIMEOUT_MS, SKILL_SYNC_DEFAULT_BUDGET_MS, ServerHealthConfigurationError, ServerHealthHttpError, ServerHealthNetworkError, ServerHealthResponseError, ServerHealthTimeoutError, ServerRuntimeDurabilityStore, ServerRuntimeDurabilityStoreOptions, SessionActivity, SessionActivityPhase, SessionBindingConflictError, SessionBindingStore, SessionBindingStoreOptions, SessionCliProofManager, SessionMessageInbox, SessionMessageInboxOptions, SessionMessageTurnContext, SessionPreparationResult, SessionProtectedWorkSnapshot, SessionReconciler, SessionReconcilerOptions, SessionRuntimeManager, SessionRuntimeManagerOptions, SessionRuntimeState, SessionTurnIdentity, SkillArchiveError, SkillArchiveErrorCode, SkillDirectoryMarkerInput, SkillSyncAgentInput, SkillSyncApi, SkillSyncManager, SkillSyncManagerOptions, SkillSyncResult, SkillSyncStatus, StoredAccountIdentity, StoredAccountIdentitySchema, StoredCredentials, StoredMachineCredentials, StoredSessionCliProof, TURN_TRACE_BATCH_SOFT_LIMIT_BYTES, TURN_TRACE_MAX_BUFFER_BYTES, TURN_TRACE_MAX_BUFFER_EVENTS, TURN_TRACE_SEND_DEADLINE_MS, TokenProviderOptions, TurnCustodyOwner, TurnCustodyOwnerOptions, TurnReportOwner, TurnReportOwnerOptions, TurnReportOwnerStoppedError, TurnReportRearmClaim, TurnReportSubmitOptions, TurnReportTerminalStatus, TurnTraceBuffer, TurnTraceBufferOptions, TurnTraceSummary, UnresolvedTurn, UnresolvedTurnPhase, UpdateManager, UpdateManagerOptions, UpdaterAttempt, UpdaterRecoveryStatus, UpdaterStateName, UpdaterStateSnapshot, WebGatewayDispatch, WebGatewayDispatchError, WebToolsClientError, WebToolsGatewayServer, WebToolsGatewayServerOptions, WebToolsServerClient, WebToolsServerClientOptions, accountIdentityMatchesCredentials, accountIdentityPath, agentRuntimePaths, allocateComputerIdentity, assembleContextTreeSkills, assertRealDirectory, assertWithin, buildAgentInput, buildClientErrorReport, buildRuntimeProxyEnvironment, buildSessionMessageInput, captureSlackDeploy, catalogExecutableDigests, checkServerHealth, classifyLarkAuthStatus, classifySlackAuthTest, classifySpawnFailure, claudeCodeAgentRuntimeEnvironment, claudeCodeProcessEnvironment, codexAgentRuntimeEnvironment, codexDesktopAppBinDirs, computeFileIdentity, computeTargetFingerprint, computerIdentityPath, configureClientLoggerContext, configureClientLoggerForService, copyIsolatedPiConfig, createClientRuntime, createLogger, createProviderCliFetcher, createRunnerIdentity, credentialsFingerprint, credentialsPath, defaultProviderCliExecFile, defaultProviderCliFetcher, defaultRuntimeProxyDataConnectionFactory, defaultRuntimeRetryScheduler, deriveProviderCliHomeNamespace, deriveProviderCliRunKey, deriveProviderCliSessionKey, deriveProviderCliValidationRequestKey, deriveRuntimeKey, describePlatform, detectProviderCliCandidates, ensurePrivateDirectory, exchangeFeishuTenantToken, executableFormatSupportsHost, executeProviderCliTurnPlan, extractBoundedJson, extractProviderCliExecutable, extractSkillArchive, findCatalogArtifact, findProviderCliCatalogEntry, generateExecutionCa, hashSkillDirectory, inspectExecutableFormat, inspectGlobalCommand, inspectLocalComputerConfiguration, inspectProviderCliLauncher, installProcessErrorReporting, isSkillMaterializationTarget, isSyncedWorkspace, iterateAgentRuntimeExecutables, linuxAmd64ProviderCliPlans, machineCredentialsPath, mapProviderCliLocalStateToReadiness, markSkillDirectoryManaged, normalizeServerUrl, packSkillDirectory, parseProviderCliTurnPlan, parseProviderCliTurnRunnerArgv, parseRunnerCliArgv, parseRunnerIdentity, parseRuntimeCredentialServerFrame, piAgentRuntimeEnvironment, prepareContextTreeHome, prepareSlackCallbackUpdate, probeAgentRuntimeCliInstallations, probeIntegrationCliInstallations, probeProviderCliExecutable, probeRunnerTools, providerCliArtifactId, providerCliCommandForProvider, providerCliLauncherPath, providerCliLockFilePath, providerCliProbeEnvironment, providerCliSelectionTargetPath, providerCliStateFilePath, providerCliVersionDirPath, providerReadiness, rankProviderCliCandidates, readAccountIdentity, readBundleBody, readComputerIdentity, readCredentials, readDurableJson, readMachineCredentials, readMachineCredentialsStrict, readPrivateJson, readProviderCliSelection, readProviderCliTurnPlan, readSecureFile, readSessionCliProofFile, reconcileProviderCliLauncher, reconcileProviderCliShim, redactAcceptanceRecord, removeAccountIdentity, renderManagedSystemPrompt, renderProviderCliLauncher, renderProviderCliShim, renderProviderCliTurnLauncher, renderRuntimeProxyGitCredentialHelper, renderRuntimeProxyShim, reportClientError, requireProviderCliCatalogEntry, resolveAccountHome, resolveAgentRuntimeExecutable, resolveBoundAccountComputer, resolveCodexHome, resolveComputerIdentity, resolveContextTreeHome, resolveContextTreePackage, resolveMaterializationWorkspace, resolveOpenTagHome, resolveOpenTagHomeLayout, resolvePiHome, resolveProviderCliAccountLayout, resolveProviderCliArtifactUrl, resolveProviderCliTurnRunnerInvocation, resolveWebToolsExtensionPath, resolvedClaudeCodeFactory, resolvedCodexFactory, resolvedPiFactory, retryDelay, retryExhausted, rotateAccountIdentityFingerprint, runContextTreeCli, runProviderCliTurnRunner, runRunnerAcceptance, runRunnerCli, runSlackManagement, serializeEnvironment, sessionBindingPath, skillRootForProvider, slackManagementEnvironment, slackManagementHome, snapshotPath, storeBoundAccountComputer, validatePrivateDirectory, verifyProviderCliCandidateFingerprint, verifySkillBundle, wellKnownAgentRuntimeBinDirs, withProviderCliLock, writeAccountIdentityAtomically, writeComputerIdentityAtomically, writeCredentialsAtomically, writeDurableFile, writeDurableJson, writeMachineCredentialsAtomically, writePrivateJson, writeProviderCliSelection };
|
|
7658
8169
|
}
|
|
7659
8170
|
//#region src/agent-runtime/types.d.ts
|
|
7660
8171
|
declare const AGENT_RUNTIME_CONTRACT_VERSION = 2;
|
|
@@ -7701,6 +8212,8 @@ interface AgentRunConfiguration {
|
|
|
7701
8212
|
readonly provider?: JsonValue;
|
|
7702
8213
|
}
|
|
7703
8214
|
interface AgentPromptRequest {
|
|
8215
|
+
/** Exact sockets from trusted execution preparation; never model-supplied or persisted. */
|
|
8216
|
+
readonly allowedUnixSockets?: readonly string[];
|
|
7704
8217
|
readonly runId: AgentRunId;
|
|
7705
8218
|
readonly input: AgentInput;
|
|
7706
8219
|
readonly configuration?: AgentRunConfiguration;
|
|
@@ -7763,6 +8276,7 @@ interface AgentRuntimeWorkspace {
|
|
|
7763
8276
|
readonly writableRoots?: readonly string[];
|
|
7764
8277
|
}
|
|
7765
8278
|
interface AgentRuntimePolicy {
|
|
8279
|
+
readonly allowedCommands?: readonly string[];
|
|
7766
8280
|
readonly fileSystem: "read-only" | "workspace-write" | "unrestricted";
|
|
7767
8281
|
readonly network: "disabled" | "enabled";
|
|
7768
8282
|
readonly approvals: "never" | "on-request" | "unless-trusted";
|
|
@@ -7961,8 +8475,14 @@ interface AgentRuntime {
|
|
|
7961
8475
|
waitForIdle(): Promise<void>;
|
|
7962
8476
|
close(): Promise<void>;
|
|
7963
8477
|
}
|
|
8478
|
+
interface AgentRuntimeConfigurationOptionsRequest {
|
|
8479
|
+
readonly model?: string;
|
|
8480
|
+
readonly cwd: string;
|
|
8481
|
+
readonly signal?: AbortSignal;
|
|
8482
|
+
}
|
|
7964
8483
|
interface AgentRuntimeFactory {
|
|
7965
8484
|
readonly manifest: AgentRuntimeManifest;
|
|
8485
|
+
getConfigurationOptions?(request: AgentRuntimeConfigurationOptionsRequest): Promise<AgentRuntimeOptions>;
|
|
7966
8486
|
probe(request: AgentRuntimeProbeRequest): Promise<AgentRuntimeProbeResult>;
|
|
7967
8487
|
create(request: CreateAgentRuntimeRequest): Promise<AgentRuntime>;
|
|
7968
8488
|
resume(request: ResumeAgentRuntimeRequest): Promise<AgentRuntime>;
|
|
@@ -8092,8 +8612,12 @@ declare class OpenTagApi {
|
|
|
8092
8612
|
}, options?: RequestOptions): Promise<Response>;
|
|
8093
8613
|
listRuntimeDurableWork(machineToken: string, kind: RuntimeDurableWorkKind, options?: RequestOptions): Promise<RuntimeDurableWorkRecord[]>;
|
|
8094
8614
|
writeRuntimeDurableWork(machineToken: string, record: RuntimeDurableWorkRecord, options?: RequestOptions): Promise<void>;
|
|
8095
|
-
createInternalSession(proof: string, input: SessionCliCreateRequest, options?: RequestOptions
|
|
8096
|
-
|
|
8615
|
+
createInternalSession(proof: string, input: SessionCliCreateRequest, options?: RequestOptions & {
|
|
8616
|
+
executionId?: string;
|
|
8617
|
+
}): Promise<SessionCliCommandResponse>;
|
|
8618
|
+
sendSessionMessage(proof: string, input: SessionCliSendRequest, options?: RequestOptions & {
|
|
8619
|
+
executionId?: string;
|
|
8620
|
+
}): Promise<SessionCliCommandResponse>;
|
|
8097
8621
|
listInternalSessions(proof: string, input: SessionCliListQuery, options?: RequestOptions): Promise<SessionCliListResponse>;
|
|
8098
8622
|
listAgentSkills(accessToken: string, agentId: string, options?: RequestOptions): Promise<ListAgentSkillsResponse>;
|
|
8099
8623
|
getAgentSkill(accessToken: string, agentId: string, skillId: string, options?: RequestOptions): Promise<SkillDetail>;
|
|
@@ -8108,8 +8632,30 @@ declare class OpenTagApi {
|
|
|
8108
8632
|
listRuntimeSkills(proof: string, options?: RequestOptions): Promise<ListAgentSkillsResponse>;
|
|
8109
8633
|
pushRuntimeSkill(proof: string, input: SkillUploadInput, options?: RequestOptions): Promise<Skill>;
|
|
8110
8634
|
openRuntimeSkillBundle(proof: string, name: string, options?: RequestOptions): Promise<Response>;
|
|
8635
|
+
listSkillPresets(accessToken: string, agentId: string, options?: RequestOptions): Promise<ListSkillPresetsResponse>;
|
|
8636
|
+
installSkillPreset(accessToken: string, agentId: string, presetName: string, options?: RequestOptions): Promise<InstallSkillPresetResponse>;
|
|
8637
|
+
listRuntimeSkillPresets(proof: string, options?: RequestOptions): Promise<ListSkillPresetsResponse>;
|
|
8638
|
+
installRuntimeSkillPreset(proof: string, presetName: string, options?: RequestOptions): Promise<InstallSkillPresetResponse>;
|
|
8111
8639
|
getRuntimeAgentConfig(proof: string, options?: RequestOptions): Promise<AgentAdminConfig>;
|
|
8112
8640
|
updateRuntimeAgentConfig(proof: string, input: UpdateSelfAgentRequest, options?: RequestOptions): Promise<AgentAdminConfig>;
|
|
8641
|
+
createRuntimeAgentSchedule(proof: string, input: CreateAgentScheduleRequest, options?: RequestOptions & {
|
|
8642
|
+
executionId?: string;
|
|
8643
|
+
}): Promise<AgentSchedule>;
|
|
8644
|
+
listRuntimeAgentSchedules(proof: string, query?: {
|
|
8645
|
+
limit?: number;
|
|
8646
|
+
cursor?: string;
|
|
8647
|
+
}, options?: RequestOptions): Promise<AgentScheduleListResponse>;
|
|
8648
|
+
getRuntimeAgentSchedule(proof: string, scheduleId: string, options?: RequestOptions): Promise<AgentSchedule>;
|
|
8649
|
+
updateRuntimeAgentSchedule(proof: string, scheduleId: string, input: UpdateAgentScheduleRequest, options?: RequestOptions & {
|
|
8650
|
+
executionId?: string;
|
|
8651
|
+
}): Promise<AgentSchedule>;
|
|
8652
|
+
pauseRuntimeAgentSchedule(proof: string, scheduleId: string, expectedRevision: number, options?: RequestOptions): Promise<AgentSchedule>;
|
|
8653
|
+
resumeRuntimeAgentSchedule(proof: string, scheduleId: string, expectedRevision: number, options?: RequestOptions & {
|
|
8654
|
+
executionId?: string;
|
|
8655
|
+
}): Promise<AgentSchedule>;
|
|
8656
|
+
deleteRuntimeAgentSchedule(proof: string, scheduleId: string, expectedRevision: number, options?: RequestOptions): Promise<void>;
|
|
8657
|
+
previewRuntimeAgentSchedule(proof: string, input: PreviewAgentScheduleRequest, options?: RequestOptions): Promise<AgentSchedulePreview>;
|
|
8658
|
+
provisionSlackAgent(proof: string, input: ProvisionSlackAgentRequest, options?: RequestOptions): Promise<ProvisionSlackAgentResponse>;
|
|
8113
8659
|
listRuntimeAgentMcpServers(proof: string, options?: RequestOptions): Promise<ListAgentMCPServersResponse>;
|
|
8114
8660
|
listRuntimeAgentAvailableMcpServers(proof: string, options?: RequestOptions): Promise<ListAvailableMCPServersResponse>;
|
|
8115
8661
|
attachRuntimeAgentMcpServer(proof: string, input: AttachMCPServerRequest, options?: RequestOptions): Promise<MCPAgentServer>;
|
|
@@ -8256,7 +8802,15 @@ interface ClientLogger {
|
|
|
8256
8802
|
interface CreateLoggerOptions {
|
|
8257
8803
|
destination?: "configured" | "stderr" | "file" | "dual";
|
|
8258
8804
|
}
|
|
8259
|
-
|
|
8805
|
+
/**
|
|
8806
|
+
* The resolved environment of the service that owns the log directory. The daemon service supplies
|
|
8807
|
+
* its `config/daemon.env` result here, so the logger reads the same environment the rest of the
|
|
8808
|
+
* daemon runs with instead of the raw process environment.
|
|
8809
|
+
*/
|
|
8810
|
+
interface ClientLoggerServiceOptions {
|
|
8811
|
+
environment?: Readonly<Record<string, string | undefined>>;
|
|
8812
|
+
}
|
|
8813
|
+
declare function configureClientLoggerForService(logDirectory: string, options?: ClientLoggerServiceOptions): void;
|
|
8260
8814
|
declare function configureClientLoggerContext(bindings: ClientLogBindings): void;
|
|
8261
8815
|
declare function createLogger(module: string, options?: CreateLoggerOptions): ClientLogger;
|
|
8262
8816
|
//#endregion
|
|
@@ -8303,9 +8857,11 @@ type RuntimeBusinessFrame = Readonly<Record<string, unknown>> & {
|
|
|
8303
8857
|
//#endregion
|
|
8304
8858
|
//#region src/runtime/runtime-connection-errors.d.ts
|
|
8305
8859
|
type RuntimeSendErrorCode = "aborted" | "deadline" | "frame_too_large" | "overflow" | "unavailable" | "capability_unavailable";
|
|
8860
|
+
type RuntimeConnectionErrorCategory = "authentication_rejection" | "capability_incompatibility" | "protocol" | "transient_connection";
|
|
8306
8861
|
declare class RuntimeConnectionError extends Error {
|
|
8307
8862
|
readonly fatal: boolean;
|
|
8308
|
-
|
|
8863
|
+
readonly category: RuntimeConnectionErrorCategory;
|
|
8864
|
+
constructor(message: string, fatal: boolean, category?: RuntimeConnectionErrorCategory);
|
|
8309
8865
|
}
|
|
8310
8866
|
declare class RuntimeSendError extends Error {
|
|
8311
8867
|
readonly code: RuntimeSendErrorCode;
|
|
@@ -8398,10 +8954,11 @@ declare function parseRuntimeCredentialServerFrame(value: unknown): RuntimeCrede
|
|
|
8398
8954
|
//#endregion
|
|
8399
8955
|
//#region src/runtime/runtime-proxy-data-client.d.ts
|
|
8400
8956
|
type RuntimeProxyDataErrorCode = "aborted" | "auth_failed" | "connection_lost" | "connection_closed" | "open_timeout" | "protocol_error" | "queue_full" | "stream_error" | "too_many_streams";
|
|
8401
|
-
/** Controlled data-channel failure. `code` identifies the local cause; upstream codes
|
|
8957
|
+
/** Controlled data-channel failure. `code` identifies the local cause; upstream codes are carried separately and must be allowlisted before presentation. */
|
|
8402
8958
|
declare class RuntimeProxyDataError extends Error {
|
|
8403
8959
|
readonly code: RuntimeProxyDataErrorCode;
|
|
8404
|
-
|
|
8960
|
+
readonly upstreamCode?: string | undefined;
|
|
8961
|
+
constructor(code: RuntimeProxyDataErrorCode, message: string, options?: ErrorOptions, upstreamCode?: string | undefined);
|
|
8405
8962
|
}
|
|
8406
8963
|
interface RuntimeProxyOpenStreamRequest {
|
|
8407
8964
|
readonly bindingId: string;
|
|
@@ -8634,6 +9191,8 @@ interface RuntimeProxyAdapterStreamRequest {
|
|
|
8634
9191
|
interface RuntimeProxyLoopbackAdapterOptions {
|
|
8635
9192
|
/** The single execution this dedicated entry serves. */
|
|
8636
9193
|
readonly executionId: string;
|
|
9194
|
+
/** Local native gh can use private IPC; Cloud keeps its existing sandbox CONNECT bridge. */
|
|
9195
|
+
readonly githubApiSocket?: boolean;
|
|
8637
9196
|
readonly generateCa?: (materialDir: string) => Promise<RuntimeProxyLoopbackCaMaterial>;
|
|
8638
9197
|
/**
|
|
8639
9198
|
* Execution-local handles held by the Sandbox. Used only to substitute the harmless
|
|
@@ -8664,6 +9223,10 @@ declare class RuntimeProxyLoopbackAdapter {
|
|
|
8664
9223
|
get connectProxyUrl(): string;
|
|
8665
9224
|
/** Loopback HTTPS endpoint the Slack launcher pins through `--apihost`. */
|
|
8666
9225
|
get slackApiHost(): string;
|
|
9226
|
+
/** Private authenticated IPC transport for Local native gh; Cloud uses its sandbox bridge. */
|
|
9227
|
+
get githubApiSocketPath(): string | undefined;
|
|
9228
|
+
/** Native Git's private HTTP IPC entry; the same handle/Relay/Server checks still apply. */
|
|
9229
|
+
get githubGitSocketPath(): string | undefined;
|
|
8667
9230
|
/** Execution-scoped CA public certificate path for CLI trust configuration. */
|
|
8668
9231
|
get caCertPath(): string;
|
|
8669
9232
|
get executionId(): string;
|
|
@@ -8832,6 +9395,17 @@ interface ProcessErrorReportingOptions {
|
|
|
8832
9395
|
*/
|
|
8833
9396
|
declare function installProcessErrorReporting(options: ProcessErrorReportingOptions): () => void;
|
|
8834
9397
|
//#endregion
|
|
9398
|
+
//#region src/providers/claude-code/credential-probe.d.ts
|
|
9399
|
+
interface EnvironmentCredential {
|
|
9400
|
+
token: string;
|
|
9401
|
+
header: string;
|
|
9402
|
+
oauth: boolean;
|
|
9403
|
+
apiKey?: string;
|
|
9404
|
+
}
|
|
9405
|
+
/** Verify explicit first-party credentials without a model request or touching native login storage. */
|
|
9406
|
+
declare function probeClaudeEnvironmentCredential(environment: NodeJS.ProcessEnv, signal?: AbortSignal, readStatus?: typeof requestCredentialStatus): Promise<AgentRuntimeProbeIssue | undefined>;
|
|
9407
|
+
declare function requestCredentialStatus(environment: NodeJS.ProcessEnv, credential: EnvironmentCredential, signal?: AbortSignal): Promise<number>;
|
|
9408
|
+
//#endregion
|
|
8835
9409
|
//#region src/providers/claude-code/hosted-tool-bridge.d.ts
|
|
8836
9410
|
/** The remote MCP gateway for this execution; both fields are opaque to this module. */
|
|
8837
9411
|
interface ClaudeCodeMcpGatewayEndpoint {
|
|
@@ -8841,9 +9415,10 @@ interface ClaudeCodeMcpGatewayEndpoint {
|
|
|
8841
9415
|
interface ClaudeCodeHostedToolBridge {
|
|
8842
9416
|
readonly allowedTools: readonly string[];
|
|
8843
9417
|
readonly configPath: string;
|
|
9418
|
+
readonly pluginPath: string;
|
|
8844
9419
|
close(): Promise<void>;
|
|
8845
9420
|
}
|
|
8846
|
-
declare function startClaudeCodeHostedToolBridge(hostedTools: AgentHostedTools | undefined, runId: string, signal: AbortSignal, mcpGateway?: ClaudeCodeMcpGatewayEndpoint): Promise<ClaudeCodeHostedToolBridge>;
|
|
9421
|
+
declare function startClaudeCodeHostedToolBridge(hostedTools: AgentHostedTools | undefined, runId: string, signal: AbortSignal, skillPaths: readonly string[], mcpGateway?: ClaudeCodeMcpGatewayEndpoint): Promise<ClaudeCodeHostedToolBridge>;
|
|
8847
9422
|
//#endregion
|
|
8848
9423
|
//#region src/providers/claude-code/process-wire.d.ts
|
|
8849
9424
|
declare const CLAUDE_CODE_MAX_LINE_BYTES: number;
|
|
@@ -8871,6 +9446,7 @@ interface ClaudeCodeProcessResult {
|
|
|
8871
9446
|
readonly stderr: string;
|
|
8872
9447
|
}
|
|
8873
9448
|
interface ClaudeCodeProcessClient {
|
|
9449
|
+
send?(message: Readonly<Record<string, unknown>>): Promise<void>;
|
|
8874
9450
|
execute(input: Readonly<Record<string, unknown>>, onMessage: (message: Readonly<Record<string, unknown>>) => void, signal: AbortSignal): Promise<ClaudeCodeProcessResult>;
|
|
8875
9451
|
interrupt(): Promise<void>;
|
|
8876
9452
|
close(graceMs?: number): Promise<void>;
|
|
@@ -8880,18 +9456,21 @@ declare class ClaudeCodeProcess implements ClaudeCodeProcessClient {
|
|
|
8880
9456
|
constructor(options: ClaudeCodeSpawnOptions);
|
|
8881
9457
|
execute(input: Readonly<Record<string, unknown>>, onMessage: (message: Readonly<Record<string, unknown>>) => void, signal: AbortSignal): Promise<ClaudeCodeProcessResult>;
|
|
8882
9458
|
interrupt(): Promise<void>;
|
|
9459
|
+
send(message: Readonly<Record<string, unknown>>): Promise<void>;
|
|
8883
9460
|
close(graceMs?: number): Promise<void>;
|
|
8884
9461
|
}
|
|
8885
9462
|
//#endregion
|
|
8886
9463
|
//#region src/providers/claude-code/agent-runtime.d.ts
|
|
8887
9464
|
declare const CLAUDE_CODE_AGENT_RUNTIME_MANIFEST: AgentRuntimeManifest;
|
|
8888
9465
|
interface ClaudeCodeRuntimeOptions {
|
|
9466
|
+
readonly policy: AgentRuntimePolicy;
|
|
8889
9467
|
readonly binding: AgentRuntimeBinding;
|
|
8890
9468
|
readonly configuration?: AgentRunConfiguration;
|
|
8891
9469
|
readonly createProcess: (args: readonly string[]) => ClaudeCodeProcessClient;
|
|
8892
9470
|
readonly emptyNativeToolAllowList?: boolean;
|
|
8893
9471
|
readonly eventSink: AgentRuntimeEventSink;
|
|
8894
9472
|
readonly hostedTools?: AgentHostedTools;
|
|
9473
|
+
readonly skillPaths: readonly string[];
|
|
8895
9474
|
readonly resume: boolean;
|
|
8896
9475
|
readonly startHostedToolBridge: typeof startClaudeCodeHostedToolBridge;
|
|
8897
9476
|
readonly systemPrompt: string;
|
|
@@ -8908,8 +9487,10 @@ interface ClaudeCodeAgentRuntimeFactoryOptions {
|
|
|
8908
9487
|
readonly createProcess?: (cwd: string, args: readonly string[], environment?: Readonly<Record<string, string>>) => ClaudeCodeProcessClient;
|
|
8909
9488
|
readonly createSessionId?: () => string;
|
|
8910
9489
|
readonly startHostedToolBridge?: typeof startClaudeCodeHostedToolBridge;
|
|
9490
|
+
readonly verifyCredential?: typeof probeClaudeEnvironmentCredential;
|
|
8911
9491
|
readonly probeRunner?: (signal?: AbortSignal) => Promise<{
|
|
8912
9492
|
readonly credential: boolean;
|
|
9493
|
+
readonly credentialIssue?: AgentRuntimeProbeIssue;
|
|
8913
9494
|
readonly streamJson: boolean;
|
|
8914
9495
|
readonly version: string;
|
|
8915
9496
|
}>;
|
|
@@ -8920,12 +9501,17 @@ declare class ClaudeCodeAgentRuntime extends BaseAgentRuntime {
|
|
|
8920
9501
|
protected executeRun(request: AgentPromptRequest, context: AgentProviderRunContext): Promise<AgentProviderRunResult>;
|
|
8921
9502
|
protected abortProvider(_request: AgentAbortRequest): Promise<void>;
|
|
8922
9503
|
protected closeProvider(): Promise<void>;
|
|
9504
|
+
protected respondProvider(response: AgentInteractionResponse): Promise<void>;
|
|
8923
9505
|
}
|
|
8924
9506
|
declare class ClaudeCodeAgentRuntimeFactory implements AgentRuntimeFactory {
|
|
8925
9507
|
#private;
|
|
8926
9508
|
readonly manifest: AgentRuntimeManifest;
|
|
8927
9509
|
constructor(options?: ClaudeCodeAgentRuntimeFactoryOptions);
|
|
8928
9510
|
probe(request: AgentRuntimeProbeRequest): Promise<AgentRuntimeProbeResult>;
|
|
9511
|
+
getConfigurationOptions(request: AgentRuntimeConfigurationOptionsRequest): Promise<{
|
|
9512
|
+
modelSuggestions: string[];
|
|
9513
|
+
reasoningEffortAllowedValues: string[] | null;
|
|
9514
|
+
}>;
|
|
8929
9515
|
create(request: CreateAgentRuntimeRequest): Promise<ClaudeCodeAgentRuntime>;
|
|
8930
9516
|
resume(request: ResumeAgentRuntimeRequest): Promise<ClaudeCodeAgentRuntime>;
|
|
8931
9517
|
}
|
|
@@ -9017,7 +9603,7 @@ declare class CodexAppServerProcess implements InteractiveCodexAppServerClient {
|
|
|
9017
9603
|
}
|
|
9018
9604
|
//#endregion
|
|
9019
9605
|
//#region src/providers/codex/agent-runtime.d.ts
|
|
9020
|
-
declare const CODEX_AGENT_RUNTIME_APP_SERVER_ARGS: readonly ["app-server", "--stdio", "--disable", "apps", "--disable", "auth_elicitation", "--disable", "browser_use", "--disable", "browser_use_external", "--disable", "browser_use_full_cdp_access", "--disable", "computer_use", "--disable", "goals", "--disable", "hooks", "--disable", "image_generation", "--disable", "in_app_browser", "--disable", "multi_agent", "--disable", "plugins", "--disable", "remote_plugin", "--disable", "shell_snapshot", "--disable", "skill_mcp_dependency_install", "
|
|
9606
|
+
declare const CODEX_AGENT_RUNTIME_APP_SERVER_ARGS: readonly ["app-server", "--stdio", "--disable", "apps", "--disable", "auth_elicitation", "--disable", "browser_use", "--disable", "browser_use_external", "--disable", "browser_use_full_cdp_access", "--disable", "computer_use", "--disable", "goals", "--disable", "hooks", "--disable", "image_generation", "--disable", "in_app_browser", "--disable", "multi_agent", "--disable", "plugins", "--disable", "remote_plugin", "--disable", "shell_snapshot", "--disable", "skill_mcp_dependency_install", "-c", "mcp_servers={}", "-c", 'web_search="disabled"', "-c", "tools.view_image=true", "-c", "memories.use_memories=false", "-c", "memories.generate_memories=false", "-c", "allow_login_shell=false", "-c", 'shell_environment_policy.inherit="all"', "-c", 'shell_environment_policy.filters={ PATH = "include", ZDOTDIR = "include", LANG = "include", LC_ALL = "include", OPENTAG_HOME = "include", OPENTAG_PROVIDER_ENV_FILE = "include", OPENTAG_SESSION_PROOF_FILE = "include", OPENTAG_EXECUTION_ID = "include" }'];
|
|
9021
9607
|
declare const CODEX_AGENT_RUNTIME_MANIFEST: AgentRuntimeManifest;
|
|
9022
9608
|
interface CodexRuntimeOptions {
|
|
9023
9609
|
readonly client: InteractiveCodexAppServerClient;
|
|
@@ -9064,6 +9650,10 @@ declare class CodexAgentRuntimeFactory implements AgentRuntimeFactory {
|
|
|
9064
9650
|
readonly manifest: AgentRuntimeManifest;
|
|
9065
9651
|
constructor(options: CodexAgentRuntimeFactoryOptions);
|
|
9066
9652
|
probe(request: AgentRuntimeProbeRequest): Promise<AgentRuntimeProbeResult>;
|
|
9653
|
+
getConfigurationOptions(request: AgentRuntimeConfigurationOptionsRequest): Promise<{
|
|
9654
|
+
modelSuggestions: string[];
|
|
9655
|
+
reasoningEffortAllowedValues: string[] | null;
|
|
9656
|
+
}>;
|
|
9067
9657
|
create(request: CreateAgentRuntimeRequest): Promise<CodexAgentRuntime>;
|
|
9068
9658
|
resume(request: ResumeAgentRuntimeRequest): Promise<CodexAgentRuntime>;
|
|
9069
9659
|
}
|
|
@@ -9156,6 +9746,10 @@ declare class PiAgentRuntimeFactory implements AgentRuntimeFactory {
|
|
|
9156
9746
|
readonly manifest: AgentRuntimeManifest;
|
|
9157
9747
|
constructor(options?: PiAgentRuntimeFactoryOptions);
|
|
9158
9748
|
probe(request: AgentRuntimeProbeRequest): Promise<AgentRuntimeProbeResult>;
|
|
9749
|
+
getConfigurationOptions(request: AgentRuntimeConfigurationOptionsRequest): Promise<{
|
|
9750
|
+
modelSuggestions: string[];
|
|
9751
|
+
reasoningEffortAllowedValues: string[] | null;
|
|
9752
|
+
}>;
|
|
9159
9753
|
create(request: CreateAgentRuntimeRequest): Promise<PiAgentRuntime>;
|
|
9160
9754
|
resume(request: ResumeAgentRuntimeRequest): Promise<PiAgentRuntime>;
|
|
9161
9755
|
}
|
|
@@ -9343,6 +9937,8 @@ declare class ContextTreeManager {
|
|
|
9343
9937
|
constructor(options: ContextTreeManagerOptions);
|
|
9344
9938
|
/** Directory to prepend to a Session PATH so the packaged skills can invoke `context-tree`. */
|
|
9345
9939
|
binDirectory(): string;
|
|
9940
|
+
/** Explicit packaged assets for providers that disable automatic workspace skill discovery. */
|
|
9941
|
+
skillPaths(): Promise<string[]>;
|
|
9346
9942
|
/**
|
|
9347
9943
|
* Resolve Context Tree for one Agent workspace, connecting it on first use.
|
|
9348
9944
|
*
|
|
@@ -9887,7 +10483,7 @@ interface ProviderCliTurnPlanPrepareInput {
|
|
|
9887
10483
|
/** Absolute Slack config leaf supplied by the trusted caller; Feishu must omit this. */
|
|
9888
10484
|
readonly configDir?: string;
|
|
9889
10485
|
readonly captureOutgoingReplies?: boolean;
|
|
9890
|
-
/**
|
|
10486
|
+
/** Absolute path of the current execution credential environment manifest. */
|
|
9891
10487
|
readonly environmentManifest?: string;
|
|
9892
10488
|
/** Runtime proxy mode: loopback HTTPS endpoint pinned through `--apihost` (Slack only). */
|
|
9893
10489
|
readonly slackApiHost?: string;
|
|
@@ -9959,6 +10555,7 @@ interface ImCredentialGrantSubject {
|
|
|
9959
10555
|
readonly sessionId: string;
|
|
9960
10556
|
}
|
|
9961
10557
|
interface PreparedImCredentialEnvironment {
|
|
10558
|
+
readonly environmentManifest: string;
|
|
9962
10559
|
readonly outboxContext?: RuntimeImOutboxContext;
|
|
9963
10560
|
readonly path: string;
|
|
9964
10561
|
readonly provider: "feishu" | "slack";
|
|
@@ -9991,6 +10588,7 @@ interface RuntimeProxyExecutionLayout {
|
|
|
9991
10588
|
}
|
|
9992
10589
|
interface RuntimeProxyEnvironmentInput {
|
|
9993
10590
|
readonly adapterCaCertPath: string;
|
|
10591
|
+
readonly executionId?: string;
|
|
9994
10592
|
readonly cliMetadata: (provider: RuntimeProxyProvider) => RuntimeProxyCliMetadata | undefined;
|
|
9995
10593
|
readonly connectProxyUrl: string;
|
|
9996
10594
|
readonly handles: ReadonlyMap<RuntimeProxyProvider, string>;
|
|
@@ -10004,7 +10602,7 @@ interface RuntimeProxyEnvironmentInput {
|
|
|
10004
10602
|
* GitHub target resolution stays with cwd, `-R`, and the canonical remote path.
|
|
10005
10603
|
*/
|
|
10006
10604
|
declare function buildRuntimeProxyEnvironment(input: RuntimeProxyEnvironmentInput): RuntimeProxyEnvironment;
|
|
10007
|
-
declare function renderRuntimeProxyGitCredentialHelper(handle: string): string;
|
|
10605
|
+
declare function renderRuntimeProxyGitCredentialHelper(handle: string, privateHttp?: boolean): string;
|
|
10008
10606
|
declare function renderRuntimeProxyShim(binary: string, environmentFilePath: string): string;
|
|
10009
10607
|
/**
|
|
10010
10608
|
* Per-Session proxy material store. The stable env file/manifest/shims point at the
|
|
@@ -10032,6 +10630,8 @@ declare class RuntimeProxyMaterialStore {
|
|
|
10032
10630
|
readonly environment: RuntimeProxyEnvironment;
|
|
10033
10631
|
readonly executionId: string;
|
|
10034
10632
|
readonly handles: ReadonlyMap<RuntimeProxyProvider, string>;
|
|
10633
|
+
readonly githubApiSocketPath?: string;
|
|
10634
|
+
readonly githubGitSocketPath?: string;
|
|
10035
10635
|
readonly platform: NodeJS.Platform;
|
|
10036
10636
|
readonly sessionId: string;
|
|
10037
10637
|
}): Promise<RuntimeProxyExecutionLayout>;
|
|
@@ -10093,9 +10693,11 @@ interface PreparedMcpGatewayLaunch {
|
|
|
10093
10693
|
readonly token: string;
|
|
10094
10694
|
}
|
|
10095
10695
|
interface PreparedRuntimeCredentialEnvironment {
|
|
10696
|
+
/** Local-only exact proxy socket for this execution. Cloud uses its mounted bridge. */
|
|
10697
|
+
readonly allowedUnixSockets?: readonly string[];
|
|
10096
10698
|
/** Present in proxy mode; exact-execution cleanup token. */
|
|
10097
10699
|
readonly executionId?: string;
|
|
10098
|
-
/**
|
|
10700
|
+
/** Execution environment manifest merged by the Turn launcher. */
|
|
10099
10701
|
readonly environmentManifest?: string;
|
|
10100
10702
|
readonly outboxContext?: RuntimeImOutboxContext;
|
|
10101
10703
|
readonly path: string;
|
|
@@ -10275,6 +10877,7 @@ declare class SessionBindingStore {
|
|
|
10275
10877
|
#private;
|
|
10276
10878
|
constructor(options: SessionBindingStoreOptions);
|
|
10277
10879
|
read(agentId: string, sessionId: string): Promise<LocalSessionBinding | undefined>;
|
|
10880
|
+
validatePreparation(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10278
10881
|
prepare(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<SessionPreparationResult>;
|
|
10279
10882
|
recordAccepted(request: DirectImMessageDeliveryRequest, inputHash: string, turnId: string): Promise<CustodyResult>;
|
|
10280
10883
|
getSteerReceipt(request: RuntimeImSteerRequest, inputHash: string): Promise<RecordedSteerInput | undefined>;
|
|
@@ -10465,6 +11068,7 @@ interface SessionProtectedWorkSnapshot {
|
|
|
10465
11068
|
}>;
|
|
10466
11069
|
}
|
|
10467
11070
|
interface RuntimePreparation {
|
|
11071
|
+
validateSession?(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10468
11072
|
prepareAgent(snapshot: EffectiveRuntimeSnapshot, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10469
11073
|
verifyAgent?(snapshot: EffectiveRuntimeSnapshot, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10470
11074
|
requiresSessionPreparation?(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): boolean;
|
|
@@ -10520,7 +11124,7 @@ declare class SessionReconciler {
|
|
|
10520
11124
|
claimRecovery(sessionId: string, turn: SessionTurnIdentity): boolean;
|
|
10521
11125
|
reconcile(input: SessionReconcileRequest): Promise<SessionReconcileResult>;
|
|
10522
11126
|
checkDelivery(input: DirectImMessageDeliveryRequest): InputRejectReason | undefined;
|
|
10523
|
-
checkSessionMessageDelivery(input:
|
|
11127
|
+
checkSessionMessageDelivery(input: SessionMessageDeliveryRequestV3): InputRejectReason | undefined;
|
|
10524
11128
|
withAgentLock<T>(agentId: string, task: () => Promise<T>): Promise<T>;
|
|
10525
11129
|
}
|
|
10526
11130
|
//#endregion
|
|
@@ -10533,6 +11137,7 @@ declare class AgentWorkspaceManager implements RuntimePreparation {
|
|
|
10533
11137
|
#private;
|
|
10534
11138
|
constructor(options: AgentWorkspaceManagerOptions);
|
|
10535
11139
|
prepareAgent(snapshot: EffectiveRuntimeSnapshot, _hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
11140
|
+
validateSession(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10536
11141
|
prepareSession(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<SessionPreparationResult>;
|
|
10537
11142
|
verifyAgent(snapshot: EffectiveRuntimeSnapshot, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10538
11143
|
stopSession(_sessionId: string, _placementGeneration: number): Promise<void>;
|
|
@@ -10563,7 +11168,7 @@ interface SessionRuntimeManagerOptions {
|
|
|
10563
11168
|
readonly bindingStore: SessionBindingStore;
|
|
10564
11169
|
readonly cliCommand?: string;
|
|
10565
11170
|
readonly cleanupProviderEnvironment?: (sessionId: string) => Promise<void>;
|
|
10566
|
-
readonly contextTree?: Pick<ContextTreeManager, "ensureAgent">;
|
|
11171
|
+
readonly contextTree?: Pick<ContextTreeManager, "ensureAgent" | "skillPaths">;
|
|
10567
11172
|
/**
|
|
10568
11173
|
* Optional. Materializes the Agent's enabled Skills before the provider starts; a failure only
|
|
10569
11174
|
* changes what is on disk and never stops the runtime.
|
|
@@ -10601,6 +11206,7 @@ declare class SessionRuntimeManager implements RuntimePreparation, RuntimeLocalP
|
|
|
10601
11206
|
constructor(options: SessionRuntimeManagerOptions);
|
|
10602
11207
|
validate(snapshot: EffectiveRuntimeSnapshot): InputRejectReason | undefined;
|
|
10603
11208
|
validateDelivery(snapshot: EffectiveRuntimeSnapshot): InputRejectReason | undefined;
|
|
11209
|
+
validateSession(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10604
11210
|
prepareAgent(snapshot: EffectiveRuntimeSnapshot, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10605
11211
|
verifyAgent(snapshot: EffectiveRuntimeSnapshot, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10606
11212
|
requiresSessionPreparation(request: SessionReconcileRequest): boolean;
|
|
@@ -10669,6 +11275,10 @@ interface DeliveryDecision {
|
|
|
10669
11275
|
onAcceptedSent?(): Promise<void> | void;
|
|
10670
11276
|
}
|
|
10671
11277
|
interface ClientRuntimeOptions {
|
|
11278
|
+
handleApproval?(request: RuntimeApprovalDecision): Promise<RuntimeApprovalResult>;
|
|
11279
|
+
slackAutoSetup?: {
|
|
11280
|
+
run(request: SlackAutoSetupRuntimeRequest, signal?: AbortSignal): Promise<SlackAutoSetupRuntimeResult["result"]>;
|
|
11281
|
+
};
|
|
10672
11282
|
contextTreeSettings?: {
|
|
10673
11283
|
run(frame: ContextTreeOperationFrame): Promise<ContextTreeOperationResponse>;
|
|
10674
11284
|
close?(): void;
|
|
@@ -10676,8 +11286,10 @@ interface ClientRuntimeOptions {
|
|
|
10676
11286
|
logger?: ClientLogger;
|
|
10677
11287
|
handleDelivery?(request: DirectImMessageDeliveryRequest): Promise<DeliveryDecision> | DeliveryDecision;
|
|
10678
11288
|
handleSteer?(request: RuntimeImSteerRequest): Promise<RuntimeImSteerResult> | RuntimeImSteerResult;
|
|
11289
|
+
handleTurnActivityResult?(result: TurnActivityResult): void;
|
|
10679
11290
|
handleTurnReportResult?(result: TurnReportResult): Promise<void> | void;
|
|
10680
|
-
handleSessionMessageDelivery?(request:
|
|
11291
|
+
handleSessionMessageDelivery?(request: SessionMessageDeliveryRequestV3): Promise<SessionMessageDeliveryResult> | SessionMessageDeliveryResult;
|
|
11292
|
+
getRuntimeOptions?(frame: AgentRuntimeOptionsRequestFrame, signal: AbortSignal): Promise<AgentRuntimeOptions>;
|
|
10681
11293
|
availabilityTester?: {
|
|
10682
11294
|
run(request: AgentRuntimeTestRequestFrame, signal: AbortSignal): Promise<AgentRuntimeTestResultFrame> | AgentRuntimeTestResultFrame;
|
|
10683
11295
|
};
|
|
@@ -10855,6 +11467,7 @@ interface AgentTurnRunnerOptions {
|
|
|
10855
11467
|
readonly now?: () => number;
|
|
10856
11468
|
readonly onRuntimeEvent?: (event: AgentRuntimeEvent) => Promise<void> | void;
|
|
10857
11469
|
readonly reportOwner: TurnReportOwner;
|
|
11470
|
+
/** @deprecated Attachments are read on demand through the provider CLI. Never called. */
|
|
10858
11471
|
readonly resourceFetcher?: ImResourceFetcher;
|
|
10859
11472
|
readonly runtimeManager: SessionRuntimeManager;
|
|
10860
11473
|
readonly credentialEnvironment: Pick<RuntimeCredentialEnvironmentManager, "cleanup" | "prepare">;
|
|
@@ -10897,13 +11510,15 @@ interface TurnCompletion {
|
|
|
10897
11510
|
declare class AgentTurnRunner {
|
|
10898
11511
|
#private;
|
|
10899
11512
|
constructor(options: AgentTurnRunnerOptions);
|
|
11513
|
+
handleActivityResult(result: TurnActivityResult): void;
|
|
10900
11514
|
get activeCount(): number;
|
|
10901
11515
|
start(owner: LiveTurnOwner): void;
|
|
10902
11516
|
steer(request: RuntimeImSteerRequest): Promise<RuntimeImSteerResult>;
|
|
11517
|
+
respondToApproval(request: RuntimeApprovalDecision): Promise<RuntimeApprovalResult>;
|
|
10903
11518
|
stop(): void;
|
|
10904
11519
|
settled(): Promise<void>;
|
|
10905
11520
|
}
|
|
10906
|
-
declare function buildAgentInput(request: DirectImMessageDeliveryRequest | RuntimeImSteerRequest, supplementalContext?: string, rootRuntime?: EffectiveRuntimeSnapshot): AgentInput;
|
|
11521
|
+
declare function buildAgentInput(request: DirectImMessageDeliveryRequest | RuntimeImSteerRequest, supplementalContext?: string, rootRuntime?: EffectiveRuntimeSnapshot, processedAt?: Date): AgentInput;
|
|
10907
11522
|
//#endregion
|
|
10908
11523
|
//#region src/runtime/protected-paths.d.ts
|
|
10909
11524
|
type ReadLink = (path: string) => string;
|
|
@@ -11108,6 +11723,13 @@ interface SessionMessageInboxOptions {
|
|
|
11108
11723
|
retryPolicy?: Partial<RuntimeRetryPolicy>;
|
|
11109
11724
|
scheduler?: RuntimeRetryScheduler;
|
|
11110
11725
|
timeoutScheduler?: RuntimeRetryScheduler;
|
|
11726
|
+
/**
|
|
11727
|
+
* The negotiated `runtime.sessionCollaboration` version. A scheduled-origin delivery is only
|
|
11728
|
+
* legal on a v3 channel; anything else is refused at the wire boundary instead of being
|
|
11729
|
+
* silently executed or silently dropped. Already-accepted durable records are unaffected —
|
|
11730
|
+
* recovery never re-checks the negotiation.
|
|
11731
|
+
*/
|
|
11732
|
+
sessionCollaborationVersion(): number | undefined;
|
|
11111
11733
|
reconciler: Pick<SessionReconciler, "checkSessionMessageDelivery" | "clearActivity" | "setActivity" | "withAgentLock">;
|
|
11112
11734
|
runtimeManager: Pick<SessionRuntimeManager, "ensureRuntime" | "sessionKind">;
|
|
11113
11735
|
}
|
|
@@ -11115,9 +11737,9 @@ declare class SessionMessageInbox {
|
|
|
11115
11737
|
#private;
|
|
11116
11738
|
constructor(options: SessionMessageInboxOptions);
|
|
11117
11739
|
ready(): Promise<void>;
|
|
11118
|
-
getState(messageId: string): DurableWorkRecord<
|
|
11740
|
+
getState(messageId: string): DurableWorkRecord<SessionMessageDeliveryRequestV3> | undefined;
|
|
11119
11741
|
metricsSnapshot(): ReturnType<RuntimeDurabilityMetrics["snapshot"]> | undefined;
|
|
11120
|
-
accept(input:
|
|
11742
|
+
accept(input: SessionMessageDeliveryRequestV3): Promise<SessionMessageDeliveryResult>;
|
|
11121
11743
|
stop(): void;
|
|
11122
11744
|
/** Accepted Session messages still waiting in an in-memory delivery queue. */
|
|
11123
11745
|
get queuedCount(): number;
|
|
@@ -11134,7 +11756,18 @@ type SessionMessageTurnContext = {
|
|
|
11134
11756
|
readonly outboxContext: RuntimeImOutboxContext;
|
|
11135
11757
|
readonly sessionKind: "visible";
|
|
11136
11758
|
};
|
|
11137
|
-
|
|
11759
|
+
/**
|
|
11760
|
+
* Assemble the Agent input for one Session message at the moment processing actually begins.
|
|
11761
|
+
*
|
|
11762
|
+
* `processedAt` is the processing clock sample taken by the caller after `waitForIdle()`; every
|
|
11763
|
+
* branch exposes it as trustworthy UTC without guessing a local timezone. A scheduled message
|
|
11764
|
+
* additionally gains a distinct managed metadata item (schedule name, scheduled/sent/processing
|
|
11765
|
+
* times in UTC and the schedule's IANA timezone, message id, detail link, and the normalized
|
|
11766
|
+
* <=120 code-point preview) plus the single best-effort start-notification instruction. The full
|
|
11767
|
+
* prompt always stays its own trailing user-task item, and untrusted name/preview text enters the
|
|
11768
|
+
* managed block only JSON-escaped, so it can never close a managed tag or forge instructions.
|
|
11769
|
+
*/
|
|
11770
|
+
declare function buildSessionMessageInput(request: SessionMessageDeliveryRequestV3, cliCommand?: string, turnContext?: SessionMessageTurnContext, processedAt?: Date): AgentInput;
|
|
11138
11771
|
//#endregion
|
|
11139
11772
|
//#region src/runtime/client-runtime-composition.d.ts
|
|
11140
11773
|
/**
|
|
@@ -11208,6 +11841,8 @@ interface CreateClientRuntimeOptions {
|
|
|
11208
11841
|
readonly piCommand?: string;
|
|
11209
11842
|
readonly piHome?: string;
|
|
11210
11843
|
readonly cliCommand?: string;
|
|
11844
|
+
/** Authoritative packaged CLI entry for the Slack deployment hook; absent embeddings use manual setup. */
|
|
11845
|
+
readonly slackAutoSetupCliEntry?: string;
|
|
11211
11846
|
readonly environment?: NodeJS.ProcessEnv;
|
|
11212
11847
|
readonly factory?: AgentRuntimeFactory;
|
|
11213
11848
|
readonly factories?: readonly AgentRuntimeFactory[];
|
|
@@ -11381,15 +12016,49 @@ interface LocalComputerConfigurationInspection {
|
|
|
11381
12016
|
declare function inspectLocalComputerConfiguration(home: string): Promise<LocalComputerConfigurationInspection>;
|
|
11382
12017
|
//#endregion
|
|
11383
12018
|
//#region src/runtime/managed-instructions.d.ts
|
|
12019
|
+
type ManagedEnvironment = "local" | "cloud";
|
|
12020
|
+
/**
|
|
12021
|
+
* Both runtime tree statuses are structurally assignable to this prompt context.
|
|
12022
|
+
*/
|
|
12023
|
+
type ManagedContextTreeStatus = {
|
|
12024
|
+
status: "configured";
|
|
12025
|
+
connections: readonly ManagedContextTreeResult[];
|
|
12026
|
+
} | {
|
|
12027
|
+
status: "ready";
|
|
12028
|
+
treePath: string;
|
|
12029
|
+
branch?: string;
|
|
12030
|
+
sha?: string;
|
|
12031
|
+
} | {
|
|
12032
|
+
status: "stale";
|
|
12033
|
+
treePath: string;
|
|
12034
|
+
reason: string;
|
|
12035
|
+
} | {
|
|
12036
|
+
status: "unconfigured";
|
|
12037
|
+
} | {
|
|
12038
|
+
status: "unavailable";
|
|
12039
|
+
reason: string;
|
|
12040
|
+
};
|
|
12041
|
+
type ManagedContextTreeResult = ContextTreeConnection & Exclude<ManagedContextTreeStatus, {
|
|
12042
|
+
status: "configured";
|
|
12043
|
+
} | {
|
|
12044
|
+
status: "unconfigured";
|
|
12045
|
+
}>;
|
|
12046
|
+
/** Runtime facts supplied by either the Local manager or the Cloud worker. */
|
|
11384
12047
|
interface ManagedSessionContext {
|
|
12048
|
+
environment: ManagedEnvironment;
|
|
11385
12049
|
sessionId: string;
|
|
11386
12050
|
sessionKind: "visible" | "internal";
|
|
12051
|
+
/** The Session that created this one; omitted entirely when the caller does not carry one. */
|
|
11387
12052
|
creatorSessionId?: string;
|
|
11388
12053
|
cliCommand: string;
|
|
12054
|
+
/** True only with real Session-CLI proof material behind the commands. */
|
|
11389
12055
|
sessionCliAvailable: boolean;
|
|
11390
|
-
|
|
12056
|
+
selfConfigurationEnabled: boolean;
|
|
12057
|
+
contextTree?: ManagedContextTreeStatus;
|
|
12058
|
+
/** Local only: the Agent's persistent Home on this Computer. */
|
|
11391
12059
|
agentHome?: string;
|
|
11392
12060
|
}
|
|
12061
|
+
/** One template for both runtimes; only environment facts use Local/Cloud branches. */
|
|
11393
12062
|
declare function renderManagedSystemPrompt(snapshot: EffectiveRuntimeSnapshot, context?: ManagedSessionContext): string;
|
|
11394
12063
|
//#endregion
|
|
11395
12064
|
//#region src/runtime/provider-cli/probe.d.ts
|
|
@@ -11945,11 +12614,13 @@ interface UpdaterAttempt {
|
|
|
11945
12614
|
failureReason?: string;
|
|
11946
12615
|
}
|
|
11947
12616
|
type UpdaterStateName = "idle" | "awaiting_protected_work" | "installing" | "blocked" | "installed";
|
|
12617
|
+
type UpdaterRecoveryStatus = "upgrade_required" | "authentication_repair" | "retryable_connectivity";
|
|
11948
12618
|
/** Persisted updater status, also the source for `daemon status` update reporting. */
|
|
11949
12619
|
interface UpdaterStateSnapshot {
|
|
11950
12620
|
schemaVersion: 1;
|
|
11951
12621
|
currentVersion: string;
|
|
11952
12622
|
state: UpdaterStateName;
|
|
12623
|
+
recoveryStatus?: UpdaterRecoveryStatus;
|
|
11953
12624
|
target?: string;
|
|
11954
12625
|
lastAttempt?: UpdaterAttempt;
|
|
11955
12626
|
attempts: Record<string, UpdaterAttempt>;
|
|
@@ -11985,6 +12656,11 @@ interface UpdateManagerOptions {
|
|
|
11985
12656
|
saveState(state: UpdaterStateSnapshot): Promise<void>;
|
|
11986
12657
|
/** Protected-work re-check cadence. This is a poll interval, never a force timeout. */
|
|
11987
12658
|
checkIntervalMs?: number;
|
|
12659
|
+
/** Read the configured release channel without relying on a runtime heartbeat. */
|
|
12660
|
+
discoverTarget?: () => Promise<RuntimeChannelTarget | undefined>;
|
|
12661
|
+
/** Successful release discovery cadence. Failed reads use bounded exponential backoff. */
|
|
12662
|
+
discoveryIntervalMs?: number;
|
|
12663
|
+
discoveryMaxBackoffMs?: number;
|
|
11988
12664
|
now?: () => number;
|
|
11989
12665
|
sleep?: (milliseconds: number) => Promise<void>;
|
|
11990
12666
|
}
|
|
@@ -12009,6 +12685,14 @@ declare class UpdateManager {
|
|
|
12009
12685
|
syncRunningVersion(): Promise<void>;
|
|
12010
12686
|
/** Record a Server-advertised channel target. Cheap and safe to call on every heartbeat. */
|
|
12011
12687
|
observe(advertisement: RuntimeChannelTarget): void;
|
|
12688
|
+
/** Start the single heartbeat-independent release discovery loop. */
|
|
12689
|
+
startDiscovery(): void;
|
|
12690
|
+
/** Trigger one coalesced metadata read, for example after a capability rejection. */
|
|
12691
|
+
discoverNow(): Promise<void>;
|
|
12692
|
+
/** Keep the discovery loop referenced while the daemon waits for recovery. */
|
|
12693
|
+
holdRecoveryAlive(): () => void;
|
|
12694
|
+
/** Persist a local recovery diagnosis without changing the install-attempt state machine. */
|
|
12695
|
+
recordRecoveryStatus(status: UpdaterRecoveryStatus | undefined): Promise<void>;
|
|
12012
12696
|
stop(): void;
|
|
12013
12697
|
}
|
|
12014
12698
|
//#endregion
|
|
@@ -12108,6 +12792,36 @@ interface ReadBundleBodyOptions {
|
|
|
12108
12792
|
}
|
|
12109
12793
|
declare function readBundleBody(response: Response, options: ReadBundleBodyOptions): Promise<Uint8Array>;
|
|
12110
12794
|
//#endregion
|
|
12795
|
+
//#region src/slack-management.d.ts
|
|
12796
|
+
declare function slackManagementHome(environment?: NodeJS.ProcessEnv): string;
|
|
12797
|
+
declare function slackManagementEnvironment(environment: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
12798
|
+
declare function runSlackManagement(args: string[], options?: {
|
|
12799
|
+
outputFile?: string;
|
|
12800
|
+
projectDir?: string;
|
|
12801
|
+
team?: string;
|
|
12802
|
+
environment?: NodeJS.ProcessEnv;
|
|
12803
|
+
binary?: string;
|
|
12804
|
+
accountHome?: string;
|
|
12805
|
+
signal?: AbortSignal;
|
|
12806
|
+
errorFile?: string;
|
|
12807
|
+
nonInteractive?: boolean;
|
|
12808
|
+
requestAppApproval?: boolean;
|
|
12809
|
+
}): Promise<number>;
|
|
12810
|
+
/** Prepare only the callback update from a successful CLI result and the current remote manifest. */
|
|
12811
|
+
declare function prepareSlackCallbackUpdate(options: {
|
|
12812
|
+
manifestFile: string;
|
|
12813
|
+
provisionResultFile: string;
|
|
12814
|
+
outputFile: string;
|
|
12815
|
+
environment?: NodeJS.ProcessEnv;
|
|
12816
|
+
}): Promise<void>;
|
|
12817
|
+
/** Called only by the official deploy hook; writes the complete material without logging it. */
|
|
12818
|
+
declare function captureSlackDeploy(options: {
|
|
12819
|
+
createResponseFile: string;
|
|
12820
|
+
outputFile: string;
|
|
12821
|
+
environment?: NodeJS.ProcessEnv;
|
|
12822
|
+
fetchImpl?: typeof fetch;
|
|
12823
|
+
}): Promise<void>;
|
|
12824
|
+
//#endregion
|
|
12111
12825
|
//#region src/storage/context-tree-home.d.ts
|
|
12112
12826
|
/** Account storage shared with the standalone Context Tree CLI, independent of OPENTAG_HOME. */
|
|
12113
12827
|
declare function resolveContextTreeHome(environment?: NodeJS.ProcessEnv): {
|