open-tag 0.1.0 → 0.1.1
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/THIRD_PARTY_NOTICES +29 -0
- package/dist/cli/index.mjs +1 -1
- package/dist/index.d.mts +545 -54
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{program-CXagchrn.mjs → program-CXdTyo53.mjs} +3834 -598
- package/dist/program-CXdTyo53.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-BKi0lN9_.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,6 +4764,7 @@ 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";
|
|
4744
4770
|
AUTH_DEV_USER_UNAVAILABLE: "AUTH_DEV_USER_UNAVAILABLE";
|
|
@@ -4750,7 +4776,6 @@ declare const ErrorCodeSchema: ZodEnum<{
|
|
|
4750
4776
|
AUTH_PROVIDER_DISABLED: "AUTH_PROVIDER_DISABLED";
|
|
4751
4777
|
AUTH_USER_MISMATCH: "AUTH_USER_MISMATCH";
|
|
4752
4778
|
AUTH_USER_SUSPENDED: "AUTH_USER_SUSPENDED";
|
|
4753
|
-
CLIENT_VERSION_UNSUPPORTED: "CLIENT_VERSION_UNSUPPORTED";
|
|
4754
4779
|
CLOUD_CAPACITY_EXCEEDED: "CLOUD_CAPACITY_EXCEEDED";
|
|
4755
4780
|
CLOUD_MODEL_NOT_ALLOWED: "CLOUD_MODEL_NOT_ALLOWED";
|
|
4756
4781
|
CLOUD_MODEL_UNAVAILABLE: "CLOUD_MODEL_UNAVAILABLE";
|
|
@@ -4813,6 +4838,7 @@ declare const ErrorCodeSchema: ZodEnum<{
|
|
|
4813
4838
|
MCP_REFRESH_OUTCOME_UNKNOWN: "MCP_REFRESH_OUTCOME_UNKNOWN";
|
|
4814
4839
|
MCP_REGISTRATION_FAILED: "MCP_REGISTRATION_FAILED";
|
|
4815
4840
|
MCP_REGISTRATION_UNSUPPORTED: "MCP_REGISTRATION_UNSUPPORTED";
|
|
4841
|
+
MCP_SELF_ATTACH_NONE_AUTH_FORBIDDEN: "MCP_SELF_ATTACH_NONE_AUTH_FORBIDDEN";
|
|
4816
4842
|
MCP_SERVER_FORBIDDEN: "MCP_SERVER_FORBIDDEN";
|
|
4817
4843
|
MCP_SERVER_IN_USE: "MCP_SERVER_IN_USE";
|
|
4818
4844
|
MCP_SERVER_NAME_CONFLICT: "MCP_SERVER_NAME_CONFLICT";
|
|
@@ -4833,6 +4859,13 @@ declare const ErrorCodeSchema: ZodEnum<{
|
|
|
4833
4859
|
RUNTIME_AUTH_TIMEOUT: "RUNTIME_AUTH_TIMEOUT";
|
|
4834
4860
|
RUNTIME_REGISTER_TIMEOUT: "RUNTIME_REGISTER_TIMEOUT";
|
|
4835
4861
|
SANDBOX_RUNNER_CONFLICT: "SANDBOX_RUNNER_CONFLICT";
|
|
4862
|
+
SCHEDULE_INVALID_REQUEST: "SCHEDULE_INVALID_REQUEST";
|
|
4863
|
+
SCHEDULE_INVALID_RULE: "SCHEDULE_INVALID_RULE";
|
|
4864
|
+
SCHEDULE_INVALID_TIMEZONE: "SCHEDULE_INVALID_TIMEZONE";
|
|
4865
|
+
SCHEDULE_NO_FUTURE_OCCURRENCE: "SCHEDULE_NO_FUTURE_OCCURRENCE";
|
|
4866
|
+
SCHEDULE_REVISION_CONFLICT: "SCHEDULE_REVISION_CONFLICT";
|
|
4867
|
+
SCHEDULE_TARGET_INVALID: "SCHEDULE_TARGET_INVALID";
|
|
4868
|
+
SCHEDULE_TARGET_REQUIRED: "SCHEDULE_TARGET_REQUIRED";
|
|
4836
4869
|
SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
|
|
4837
4870
|
SESSION_CURSOR_INVALID: "SESSION_CURSOR_INVALID";
|
|
4838
4871
|
SESSION_PROOF_INVALID: "SESSION_PROOF_INVALID";
|
|
@@ -4844,7 +4877,13 @@ declare const ErrorCodeSchema: ZodEnum<{
|
|
|
4844
4877
|
SKILL_NAME_CONFLICT: "SKILL_NAME_CONFLICT";
|
|
4845
4878
|
SKILL_NAME_RESERVED: "SKILL_NAME_RESERVED";
|
|
4846
4879
|
SKILL_NOT_FOUND: "SKILL_NOT_FOUND";
|
|
4880
|
+
SKILL_PRESET_NOT_FOUND: "SKILL_PRESET_NOT_FOUND";
|
|
4847
4881
|
SKILL_REVISION_CONFLICT: "SKILL_REVISION_CONFLICT";
|
|
4882
|
+
SKILL_SOURCE_BLOCKED: "SKILL_SOURCE_BLOCKED";
|
|
4883
|
+
SKILL_SOURCE_INVALID: "SKILL_SOURCE_INVALID";
|
|
4884
|
+
SKILL_SOURCE_NO_SKILLS: "SKILL_SOURCE_NO_SKILLS";
|
|
4885
|
+
SKILL_SOURCE_TOO_LARGE: "SKILL_SOURCE_TOO_LARGE";
|
|
4886
|
+
SKILL_SOURCE_UNREACHABLE: "SKILL_SOURCE_UNREACHABLE";
|
|
4848
4887
|
SKILL_STORAGE_UNAVAILABLE: "SKILL_STORAGE_UNAVAILABLE";
|
|
4849
4888
|
SLACK_APP_TEAM_ALREADY_BOUND: "SLACK_APP_TEAM_ALREADY_BOUND";
|
|
4850
4889
|
SLACK_AUTH_IDENTITY_INCOMPLETE: "SLACK_AUTH_IDENTITY_INCOMPLETE";
|
|
@@ -5461,6 +5500,11 @@ declare const MCPProbeResponseSchema: ZodObject<{
|
|
|
5461
5500
|
protocolVersion: ZodNullable<ZodString>;
|
|
5462
5501
|
}, $strict>;
|
|
5463
5502
|
type MCPProbeResponse = output$1<typeof MCPProbeResponseSchema>;
|
|
5503
|
+
declare const AgentRuntimeOptionsSchema: ZodObject<{
|
|
5504
|
+
modelSuggestions: ZodArray<ZodString>;
|
|
5505
|
+
reasoningEffortAllowedValues: ZodNullable<ZodArray<ZodString>>;
|
|
5506
|
+
}, $strict>;
|
|
5507
|
+
type AgentRuntimeOptions = output$1<typeof AgentRuntimeOptionsSchema>;
|
|
5464
5508
|
declare const RuntimeDurableWorkKindSchema: ZodEnum<{
|
|
5465
5509
|
"session-message": "session-message";
|
|
5466
5510
|
"turn-report": "turn-report";
|
|
@@ -5517,6 +5561,7 @@ declare const EffectiveRuntimeSnapshotSchema: ZodObject<{
|
|
|
5517
5561
|
}, $strict>;
|
|
5518
5562
|
}, $strict>;
|
|
5519
5563
|
agentId: ZodString;
|
|
5564
|
+
selfConfigurationEnabled: ZodOptional<ZodBoolean>;
|
|
5520
5565
|
provider: ZodEnum<{
|
|
5521
5566
|
"claude-code": "claude-code";
|
|
5522
5567
|
codex: "codex";
|
|
@@ -5530,8 +5575,12 @@ declare const EffectiveRuntimeSnapshotSchema: ZodObject<{
|
|
|
5530
5575
|
session: ZodOptional<ZodString>;
|
|
5531
5576
|
}, $strict>;
|
|
5532
5577
|
execution: ZodObject<{
|
|
5533
|
-
approvalPolicy:
|
|
5578
|
+
approvalPolicy: ZodEnum<{
|
|
5579
|
+
never: "never";
|
|
5580
|
+
"on-request": "on-request";
|
|
5581
|
+
}>;
|
|
5534
5582
|
networkAccess: ZodBoolean;
|
|
5583
|
+
allowCommands: ZodOptional<ZodArray<ZodString>>;
|
|
5535
5584
|
}, $strict>;
|
|
5536
5585
|
workspace: ZodObject<{
|
|
5537
5586
|
workspaceId: ZodString;
|
|
@@ -5608,6 +5657,7 @@ declare const SessionReconcileRequestSchema: ZodObject<{
|
|
|
5608
5657
|
}, $strict>;
|
|
5609
5658
|
}, $strict>;
|
|
5610
5659
|
agentId: ZodString;
|
|
5660
|
+
selfConfigurationEnabled: ZodOptional<ZodBoolean>;
|
|
5611
5661
|
provider: ZodEnum<{
|
|
5612
5662
|
"claude-code": "claude-code";
|
|
5613
5663
|
codex: "codex";
|
|
@@ -5621,8 +5671,12 @@ declare const SessionReconcileRequestSchema: ZodObject<{
|
|
|
5621
5671
|
session: ZodOptional<ZodString>;
|
|
5622
5672
|
}, $strict>;
|
|
5623
5673
|
execution: ZodObject<{
|
|
5624
|
-
approvalPolicy:
|
|
5674
|
+
approvalPolicy: ZodEnum<{
|
|
5675
|
+
never: "never";
|
|
5676
|
+
"on-request": "on-request";
|
|
5677
|
+
}>;
|
|
5625
5678
|
networkAccess: ZodBoolean;
|
|
5679
|
+
allowCommands: ZodOptional<ZodArray<ZodString>>;
|
|
5626
5680
|
}, $strict>;
|
|
5627
5681
|
workspace: ZodObject<{
|
|
5628
5682
|
workspaceId: ZodString;
|
|
@@ -5772,6 +5826,7 @@ declare const DirectImMessageDeliveryRequestSchema: ZodObject<{
|
|
|
5772
5826
|
}, $strict>;
|
|
5773
5827
|
}, $strict>;
|
|
5774
5828
|
agentId: ZodString;
|
|
5829
|
+
selfConfigurationEnabled: ZodOptional<ZodBoolean>;
|
|
5775
5830
|
provider: ZodEnum<{
|
|
5776
5831
|
"claude-code": "claude-code";
|
|
5777
5832
|
codex: "codex";
|
|
@@ -5785,8 +5840,12 @@ declare const DirectImMessageDeliveryRequestSchema: ZodObject<{
|
|
|
5785
5840
|
session: ZodOptional<ZodString>;
|
|
5786
5841
|
}, $strict>;
|
|
5787
5842
|
execution: ZodObject<{
|
|
5788
|
-
approvalPolicy:
|
|
5843
|
+
approvalPolicy: ZodEnum<{
|
|
5844
|
+
never: "never";
|
|
5845
|
+
"on-request": "on-request";
|
|
5846
|
+
}>;
|
|
5789
5847
|
networkAccess: ZodBoolean;
|
|
5848
|
+
allowCommands: ZodOptional<ZodArray<ZodString>>;
|
|
5790
5849
|
}, $strict>;
|
|
5791
5850
|
workspace: ZodObject<{
|
|
5792
5851
|
workspaceId: ZodString;
|
|
@@ -6051,11 +6110,47 @@ declare const RuntimeImSteerResultSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
|
6051
6110
|
target_mismatch: "target_mismatch";
|
|
6052
6111
|
}>;
|
|
6053
6112
|
}, $strict>], "status">;
|
|
6054
|
-
declare const
|
|
6113
|
+
declare const SessionMessageDeliveryResultSchema: ZodObject<{
|
|
6114
|
+
type: ZodLiteral<"session:message:deliver:result">;
|
|
6115
|
+
requestId: ZodString;
|
|
6116
|
+
messageId: ZodString;
|
|
6117
|
+
targetSessionId: ZodString;
|
|
6118
|
+
placementGeneration: ZodNumber;
|
|
6119
|
+
status: ZodEnum<{
|
|
6120
|
+
accepted: "accepted";
|
|
6121
|
+
rejected: "rejected";
|
|
6122
|
+
}>;
|
|
6123
|
+
reason: ZodOptional<ZodEnum<{
|
|
6124
|
+
agent_busy: "agent_busy";
|
|
6125
|
+
agent_configuration_busy: "agent_configuration_busy";
|
|
6126
|
+
client_busy: "client_busy";
|
|
6127
|
+
configuration_unsupported: "configuration_unsupported";
|
|
6128
|
+
input_conflict: "input_conflict";
|
|
6129
|
+
invalid_input: "invalid_input";
|
|
6130
|
+
provider_unavailable: "provider_unavailable";
|
|
6131
|
+
session_binding_conflict: "session_binding_conflict";
|
|
6132
|
+
session_busy: "session_busy";
|
|
6133
|
+
session_not_ready: "session_not_ready";
|
|
6134
|
+
session_recovery_required: "session_recovery_required";
|
|
6135
|
+
stale_configuration: "stale_configuration";
|
|
6136
|
+
stale_generation: "stale_generation";
|
|
6137
|
+
target_mismatch: "target_mismatch";
|
|
6138
|
+
turn_expired: "turn_expired";
|
|
6139
|
+
}>>;
|
|
6140
|
+
}, $strict>;
|
|
6141
|
+
declare const SessionMessageDeliveryRequestV3Schema: ZodObject<{
|
|
6055
6142
|
type: ZodLiteral<"session:message:deliver">;
|
|
6056
6143
|
requestId: ZodString;
|
|
6057
6144
|
messageId: ZodString;
|
|
6058
|
-
sourceSessionId: ZodString
|
|
6145
|
+
sourceSessionId: ZodOptional<ZodString>;
|
|
6146
|
+
scheduledOrigin: ZodOptional<ZodObject<{
|
|
6147
|
+
scheduleId: ZodString;
|
|
6148
|
+
scheduledFor: ZodString;
|
|
6149
|
+
timezone: ZodString;
|
|
6150
|
+
name: ZodString;
|
|
6151
|
+
}, $strict>>;
|
|
6152
|
+
sentAt: ZodOptional<ZodString>;
|
|
6153
|
+
scheduleDetailUrl: ZodOptional<ZodString>;
|
|
6059
6154
|
targetSessionId: ZodString;
|
|
6060
6155
|
agentId: ZodString;
|
|
6061
6156
|
placementGeneration: ZodNumber;
|
|
@@ -6079,6 +6174,7 @@ declare const SessionMessageDeliveryRequestSchema: ZodObject<{
|
|
|
6079
6174
|
}, $strict>;
|
|
6080
6175
|
}, $strict>;
|
|
6081
6176
|
agentId: ZodString;
|
|
6177
|
+
selfConfigurationEnabled: ZodOptional<ZodBoolean>;
|
|
6082
6178
|
provider: ZodEnum<{
|
|
6083
6179
|
"claude-code": "claude-code";
|
|
6084
6180
|
codex: "codex";
|
|
@@ -6092,8 +6188,12 @@ declare const SessionMessageDeliveryRequestSchema: ZodObject<{
|
|
|
6092
6188
|
session: ZodOptional<ZodString>;
|
|
6093
6189
|
}, $strict>;
|
|
6094
6190
|
execution: ZodObject<{
|
|
6095
|
-
approvalPolicy:
|
|
6191
|
+
approvalPolicy: ZodEnum<{
|
|
6192
|
+
never: "never";
|
|
6193
|
+
"on-request": "on-request";
|
|
6194
|
+
}>;
|
|
6096
6195
|
networkAccess: ZodBoolean;
|
|
6196
|
+
allowCommands: ZodOptional<ZodArray<ZodString>>;
|
|
6097
6197
|
}, $strict>;
|
|
6098
6198
|
workspace: ZodObject<{
|
|
6099
6199
|
workspaceId: ZodString;
|
|
@@ -6105,34 +6205,6 @@ declare const SessionMessageDeliveryRequestSchema: ZodObject<{
|
|
|
6105
6205
|
}, $strict>>;
|
|
6106
6206
|
}, $strict>;
|
|
6107
6207
|
}, $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
6208
|
declare const TurnReportRequestSchema: ZodObject<{
|
|
6137
6209
|
type: ZodLiteral<"turn:report">;
|
|
6138
6210
|
requestId: ZodString;
|
|
@@ -6243,6 +6315,18 @@ declare const TurnReportResultSchema: ZodObject<{
|
|
|
6243
6315
|
}>;
|
|
6244
6316
|
resultHash: ZodString;
|
|
6245
6317
|
}, $strict>;
|
|
6318
|
+
declare const AgentRuntimeOptionsRequestFrameSchema: ZodObject<{
|
|
6319
|
+
type: ZodLiteral<"agent-runtime:options">;
|
|
6320
|
+
requestId: ZodString;
|
|
6321
|
+
agentId: ZodString;
|
|
6322
|
+
computerId: ZodString;
|
|
6323
|
+
provider: ZodEnum<{
|
|
6324
|
+
"claude-code": "claude-code";
|
|
6325
|
+
codex: "codex";
|
|
6326
|
+
pi: "pi";
|
|
6327
|
+
}>;
|
|
6328
|
+
model: ZodOptional<ZodString>;
|
|
6329
|
+
}, $strict>;
|
|
6246
6330
|
declare const AgentRuntimeTestRequestFrameSchema: ZodObject<{
|
|
6247
6331
|
type: ZodLiteral<"agent-runtime:test">;
|
|
6248
6332
|
requestId: ZodString;
|
|
@@ -6371,6 +6455,32 @@ declare const ProviderCliValidationResultFrameSchema: ZodObject<{
|
|
|
6371
6455
|
validation_expired: "validation_expired";
|
|
6372
6456
|
}>>;
|
|
6373
6457
|
}, $strict>;
|
|
6458
|
+
declare const RuntimeApprovalDecisionSchema: ZodObject<{
|
|
6459
|
+
requestId: ZodString;
|
|
6460
|
+
turnId: ZodString;
|
|
6461
|
+
sessionId: ZodString;
|
|
6462
|
+
deliveryId: ZodString;
|
|
6463
|
+
placementGeneration: ZodNumber;
|
|
6464
|
+
type: ZodLiteral<"approval:decision">;
|
|
6465
|
+
decision: ZodEnum<{
|
|
6466
|
+
accept: "accept";
|
|
6467
|
+
decline: "decline";
|
|
6468
|
+
}>;
|
|
6469
|
+
}, $strict>;
|
|
6470
|
+
declare const RuntimeApprovalResultSchema: ZodObject<{
|
|
6471
|
+
requestId: ZodString;
|
|
6472
|
+
turnId: ZodString;
|
|
6473
|
+
sessionId: ZodString;
|
|
6474
|
+
deliveryId: ZodString;
|
|
6475
|
+
placementGeneration: ZodNumber;
|
|
6476
|
+
type: ZodLiteral<"approval:result">;
|
|
6477
|
+
status: ZodEnum<{
|
|
6478
|
+
applied: "applied";
|
|
6479
|
+
stale: "stale";
|
|
6480
|
+
}>;
|
|
6481
|
+
}, $strict>;
|
|
6482
|
+
type RuntimeApprovalDecision = output$1<typeof RuntimeApprovalDecisionSchema>;
|
|
6483
|
+
type RuntimeApprovalResult = output$1<typeof RuntimeApprovalResultSchema>;
|
|
6374
6484
|
type RuntimeUsage = output$1<typeof RuntimeUsageSchema>;
|
|
6375
6485
|
type RuntimeDurableWorkKind = output$1<typeof RuntimeDurableWorkKindSchema>;
|
|
6376
6486
|
type RuntimeDurableWorkRecord = output$1<typeof RuntimeDurableWorkRecordSchema>;
|
|
@@ -6385,10 +6495,11 @@ type RuntimeImSteerResult = output$1<typeof RuntimeImSteerResultSchema>;
|
|
|
6385
6495
|
type RuntimeImCredentialGrantResult = output$1<typeof RuntimeImCredentialGrantResultSchema>;
|
|
6386
6496
|
type RuntimeImOutboxContext = output$1<typeof RuntimeImOutboxContextSchema>;
|
|
6387
6497
|
type ImMessageDeliveryResult = output$1<typeof ImMessageDeliveryResultSchema>;
|
|
6388
|
-
type
|
|
6498
|
+
type SessionMessageDeliveryRequestV3 = output$1<typeof SessionMessageDeliveryRequestV3Schema>;
|
|
6389
6499
|
type SessionMessageDeliveryResult = output$1<typeof SessionMessageDeliveryResultSchema>;
|
|
6390
6500
|
type TurnReportRequest = output$1<typeof TurnReportRequestSchema>;
|
|
6391
6501
|
type TurnReportResult = output$1<typeof TurnReportResultSchema>;
|
|
6502
|
+
type AgentRuntimeOptionsRequestFrame = output$1<typeof AgentRuntimeOptionsRequestFrameSchema>;
|
|
6392
6503
|
type AgentRuntimeTestRequestFrame = output$1<typeof AgentRuntimeTestRequestFrameSchema>;
|
|
6393
6504
|
type AgentRuntimeTestResultFrame = output$1<typeof AgentRuntimeTestResultFrameSchema>;
|
|
6394
6505
|
type ProviderCliExpectedIdentity = output$1<typeof ProviderCliExpectedIdentitySchema>;
|
|
@@ -6447,6 +6558,181 @@ type RuntimeClientCapabilities = output$1<typeof RuntimeClientCapabilitiesSchema
|
|
|
6447
6558
|
type RuntimeProviderReadinessObservation = output$1<typeof RuntimeProviderReadinessObservationSchema>;
|
|
6448
6559
|
type RuntimeImCliReadinessObservation = output$1<typeof RuntimeImCliReadinessObservationSchema>;
|
|
6449
6560
|
type RuntimeChannelTarget = output$1<typeof RuntimeChannelTargetSchema>;
|
|
6561
|
+
/** Full Schedule DTO: every management field, the full prompt, and the Web detail link. */
|
|
6562
|
+
declare const AgentScheduleSchema: ZodObject<{
|
|
6563
|
+
id: ZodString;
|
|
6564
|
+
agentId: ZodString;
|
|
6565
|
+
target: ZodObject<{
|
|
6566
|
+
sessionId: ZodString;
|
|
6567
|
+
provider: ZodEnum<{
|
|
6568
|
+
feishu: "feishu";
|
|
6569
|
+
slack: "slack";
|
|
6570
|
+
}>;
|
|
6571
|
+
sessionKind: ZodEnum<{
|
|
6572
|
+
channel: "channel";
|
|
6573
|
+
thread: "thread";
|
|
6574
|
+
}>;
|
|
6575
|
+
channelId: ZodString;
|
|
6576
|
+
threadKey: ZodNullable<ZodString>;
|
|
6577
|
+
}, $strict>;
|
|
6578
|
+
name: ZodString;
|
|
6579
|
+
prompt: ZodString;
|
|
6580
|
+
schedule: ZodDiscriminatedUnion<[ZodObject<{
|
|
6581
|
+
kind: ZodLiteral<"at">;
|
|
6582
|
+
at: ZodString;
|
|
6583
|
+
}, $strict>, ZodObject<{
|
|
6584
|
+
kind: ZodLiteral<"every">;
|
|
6585
|
+
intervalSeconds: ZodNumber;
|
|
6586
|
+
anchorAt: ZodString;
|
|
6587
|
+
}, $strict>, ZodObject<{
|
|
6588
|
+
kind: ZodLiteral<"cron">;
|
|
6589
|
+
expression: ZodString;
|
|
6590
|
+
}, $strict>], "kind">;
|
|
6591
|
+
timezone: ZodString;
|
|
6592
|
+
enabled: ZodBoolean;
|
|
6593
|
+
nextTriggerAt: ZodNullable<ZodString>;
|
|
6594
|
+
revision: ZodNumber;
|
|
6595
|
+
lastDispatch: ZodNullable<ZodObject<{
|
|
6596
|
+
scheduledFor: ZodString;
|
|
6597
|
+
attemptedAt: ZodNullable<ZodString>;
|
|
6598
|
+
messageId: ZodNullable<ZodString>;
|
|
6599
|
+
outcome: ZodEnum<{
|
|
6600
|
+
accepted: "accepted";
|
|
6601
|
+
rejected: "rejected";
|
|
6602
|
+
skipped: "skipped";
|
|
6603
|
+
unknown: "unknown";
|
|
6604
|
+
unreachable: "unreachable";
|
|
6605
|
+
}>;
|
|
6606
|
+
code: ZodNullable<ZodString>;
|
|
6607
|
+
}, $strict>>;
|
|
6608
|
+
detailUrl: ZodString;
|
|
6609
|
+
createdAt: ZodString;
|
|
6610
|
+
updatedAt: ZodString;
|
|
6611
|
+
}, $strict>;
|
|
6612
|
+
type AgentSchedule = output$1<typeof AgentScheduleSchema>;
|
|
6613
|
+
declare const AgentScheduleListResponseSchema: ZodObject<{
|
|
6614
|
+
items: ZodArray<ZodObject<{
|
|
6615
|
+
id: ZodString;
|
|
6616
|
+
agentId: ZodString;
|
|
6617
|
+
target: ZodObject<{
|
|
6618
|
+
sessionId: ZodString;
|
|
6619
|
+
provider: ZodEnum<{
|
|
6620
|
+
feishu: "feishu";
|
|
6621
|
+
slack: "slack";
|
|
6622
|
+
}>;
|
|
6623
|
+
sessionKind: ZodEnum<{
|
|
6624
|
+
channel: "channel";
|
|
6625
|
+
thread: "thread";
|
|
6626
|
+
}>;
|
|
6627
|
+
channelId: ZodString;
|
|
6628
|
+
threadKey: ZodNullable<ZodString>;
|
|
6629
|
+
}, $strict>;
|
|
6630
|
+
name: ZodString;
|
|
6631
|
+
schedule: ZodDiscriminatedUnion<[ZodObject<{
|
|
6632
|
+
kind: ZodLiteral<"at">;
|
|
6633
|
+
at: ZodString;
|
|
6634
|
+
}, $strict>, ZodObject<{
|
|
6635
|
+
kind: ZodLiteral<"every">;
|
|
6636
|
+
intervalSeconds: ZodNumber;
|
|
6637
|
+
anchorAt: ZodString;
|
|
6638
|
+
}, $strict>, ZodObject<{
|
|
6639
|
+
kind: ZodLiteral<"cron">;
|
|
6640
|
+
expression: ZodString;
|
|
6641
|
+
}, $strict>], "kind">;
|
|
6642
|
+
timezone: ZodString;
|
|
6643
|
+
enabled: ZodBoolean;
|
|
6644
|
+
nextTriggerAt: ZodNullable<ZodString>;
|
|
6645
|
+
revision: ZodNumber;
|
|
6646
|
+
lastDispatch: ZodNullable<ZodObject<{
|
|
6647
|
+
scheduledFor: ZodString;
|
|
6648
|
+
attemptedAt: ZodNullable<ZodString>;
|
|
6649
|
+
messageId: ZodNullable<ZodString>;
|
|
6650
|
+
outcome: ZodEnum<{
|
|
6651
|
+
accepted: "accepted";
|
|
6652
|
+
rejected: "rejected";
|
|
6653
|
+
skipped: "skipped";
|
|
6654
|
+
unknown: "unknown";
|
|
6655
|
+
unreachable: "unreachable";
|
|
6656
|
+
}>;
|
|
6657
|
+
code: ZodNullable<ZodString>;
|
|
6658
|
+
}, $strict>>;
|
|
6659
|
+
createdAt: ZodString;
|
|
6660
|
+
updatedAt: ZodString;
|
|
6661
|
+
}, $strict>>;
|
|
6662
|
+
nextCursor: ZodNullable<ZodString>;
|
|
6663
|
+
}, $strict>;
|
|
6664
|
+
type AgentScheduleListResponse = output$1<typeof AgentScheduleListResponseSchema>;
|
|
6665
|
+
declare const CreateAgentScheduleRequestSchema: ZodObject<{
|
|
6666
|
+
name: ZodString;
|
|
6667
|
+
prompt: ZodString;
|
|
6668
|
+
schedule: ZodDiscriminatedUnion<[ZodObject<{
|
|
6669
|
+
kind: ZodLiteral<"at">;
|
|
6670
|
+
at: ZodString;
|
|
6671
|
+
}, $strict>, ZodObject<{
|
|
6672
|
+
kind: ZodLiteral<"every">;
|
|
6673
|
+
intervalSeconds: ZodNumber;
|
|
6674
|
+
}, $strict>, ZodObject<{
|
|
6675
|
+
kind: ZodLiteral<"cron">;
|
|
6676
|
+
expression: ZodString;
|
|
6677
|
+
}, $strict>], "kind">;
|
|
6678
|
+
timezone: ZodString;
|
|
6679
|
+
}, $strict>;
|
|
6680
|
+
type CreateAgentScheduleRequest = output$1<typeof CreateAgentScheduleRequestSchema>;
|
|
6681
|
+
declare const UpdateAgentScheduleRequestSchema: ZodObject<{
|
|
6682
|
+
expectedRevision: ZodNumber;
|
|
6683
|
+
name: ZodOptional<ZodString>;
|
|
6684
|
+
prompt: ZodOptional<ZodString>;
|
|
6685
|
+
schedule: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
6686
|
+
kind: ZodLiteral<"at">;
|
|
6687
|
+
at: ZodString;
|
|
6688
|
+
}, $strict>, ZodObject<{
|
|
6689
|
+
kind: ZodLiteral<"every">;
|
|
6690
|
+
intervalSeconds: ZodNumber;
|
|
6691
|
+
}, $strict>, ZodObject<{
|
|
6692
|
+
kind: ZodLiteral<"cron">;
|
|
6693
|
+
expression: ZodString;
|
|
6694
|
+
}, $strict>], "kind">>;
|
|
6695
|
+
timezone: ZodOptional<ZodString>;
|
|
6696
|
+
}, $strict>;
|
|
6697
|
+
type UpdateAgentScheduleRequest = output$1<typeof UpdateAgentScheduleRequestSchema>;
|
|
6698
|
+
/** Preview either a persisted Schedule (keeps its `every` anchor) or an ad-hoc rule + timezone. */
|
|
6699
|
+
declare const PreviewAgentScheduleRequestSchema: ZodUnion<readonly [ZodObject<{
|
|
6700
|
+
scheduleId: ZodString;
|
|
6701
|
+
}, $strict>, ZodObject<{
|
|
6702
|
+
schedule: ZodDiscriminatedUnion<[ZodObject<{
|
|
6703
|
+
kind: ZodLiteral<"at">;
|
|
6704
|
+
at: ZodString;
|
|
6705
|
+
}, $strict>, ZodObject<{
|
|
6706
|
+
kind: ZodLiteral<"every">;
|
|
6707
|
+
intervalSeconds: ZodNumber;
|
|
6708
|
+
}, $strict>, ZodObject<{
|
|
6709
|
+
kind: ZodLiteral<"cron">;
|
|
6710
|
+
expression: ZodString;
|
|
6711
|
+
}, $strict>], "kind">;
|
|
6712
|
+
timezone: ZodString;
|
|
6713
|
+
}, $strict>]>;
|
|
6714
|
+
type PreviewAgentScheduleRequest = output$1<typeof PreviewAgentScheduleRequestSchema>;
|
|
6715
|
+
declare const AgentSchedulePreviewSchema: ZodObject<{
|
|
6716
|
+
calculatedAt: ZodString;
|
|
6717
|
+
schedule: ZodDiscriminatedUnion<[ZodObject<{
|
|
6718
|
+
kind: ZodLiteral<"at">;
|
|
6719
|
+
at: ZodString;
|
|
6720
|
+
}, $strict>, ZodObject<{
|
|
6721
|
+
kind: ZodLiteral<"every">;
|
|
6722
|
+
intervalSeconds: ZodNumber;
|
|
6723
|
+
anchorAt: ZodString;
|
|
6724
|
+
}, $strict>, ZodObject<{
|
|
6725
|
+
kind: ZodLiteral<"cron">;
|
|
6726
|
+
expression: ZodString;
|
|
6727
|
+
}, $strict>], "kind">;
|
|
6728
|
+
timezone: ZodString;
|
|
6729
|
+
items: ZodArray<ZodObject<{
|
|
6730
|
+
at: ZodString;
|
|
6731
|
+
local: ZodString;
|
|
6732
|
+
timezone: ZodString;
|
|
6733
|
+
}, $strict>>;
|
|
6734
|
+
}, $strict>;
|
|
6735
|
+
type AgentSchedulePreview = output$1<typeof AgentSchedulePreviewSchema>;
|
|
6450
6736
|
declare const SkillArchiveFormatSchema: ZodEnum<{
|
|
6451
6737
|
"tar.gz": "tar.gz";
|
|
6452
6738
|
zip: "zip";
|
|
@@ -6461,6 +6747,8 @@ declare const SkillSchema: ZodObject<{
|
|
|
6461
6747
|
source: ZodEnum<{
|
|
6462
6748
|
agent_upload: "agent_upload";
|
|
6463
6749
|
cli_upload: "cli_upload";
|
|
6750
|
+
preset: "preset";
|
|
6751
|
+
url_install: "url_install";
|
|
6464
6752
|
web_upload: "web_upload";
|
|
6465
6753
|
}>;
|
|
6466
6754
|
archiveSha256: ZodString;
|
|
@@ -6480,6 +6768,8 @@ declare const SkillDetailSchema: ZodObject<{
|
|
|
6480
6768
|
source: ZodEnum<{
|
|
6481
6769
|
agent_upload: "agent_upload";
|
|
6482
6770
|
cli_upload: "cli_upload";
|
|
6771
|
+
preset: "preset";
|
|
6772
|
+
url_install: "url_install";
|
|
6483
6773
|
web_upload: "web_upload";
|
|
6484
6774
|
}>;
|
|
6485
6775
|
archiveSha256: ZodString;
|
|
@@ -6505,6 +6795,8 @@ declare const ListAgentSkillsResponseSchema: ZodObject<{
|
|
|
6505
6795
|
source: ZodEnum<{
|
|
6506
6796
|
agent_upload: "agent_upload";
|
|
6507
6797
|
cli_upload: "cli_upload";
|
|
6798
|
+
preset: "preset";
|
|
6799
|
+
url_install: "url_install";
|
|
6508
6800
|
web_upload: "web_upload";
|
|
6509
6801
|
}>;
|
|
6510
6802
|
archiveSha256: ZodString;
|
|
@@ -6529,6 +6821,62 @@ declare const RuntimeSkillManifestSchema: ZodObject<{
|
|
|
6529
6821
|
}, $strict>>;
|
|
6530
6822
|
}, $strict>;
|
|
6531
6823
|
type RuntimeSkillManifest = output$1<typeof RuntimeSkillManifestSchema>;
|
|
6824
|
+
declare const ListSkillPresetsResponseSchema: ZodObject<{
|
|
6825
|
+
categories: ZodArray<ZodObject<{
|
|
6826
|
+
id: ZodEnum<{
|
|
6827
|
+
engineering: "engineering";
|
|
6828
|
+
"getting-started": "getting-started";
|
|
6829
|
+
}>;
|
|
6830
|
+
order: ZodNumber;
|
|
6831
|
+
}, $strict>>;
|
|
6832
|
+
presets: ZodArray<ZodObject<{
|
|
6833
|
+
name: ZodString;
|
|
6834
|
+
description: ZodString;
|
|
6835
|
+
category: ZodEnum<{
|
|
6836
|
+
engineering: "engineering";
|
|
6837
|
+
"getting-started": "getting-started";
|
|
6838
|
+
}>;
|
|
6839
|
+
order: ZodNumber;
|
|
6840
|
+
archiveSha256: ZodString;
|
|
6841
|
+
archiveBytes: ZodNumber;
|
|
6842
|
+
fileCount: ZodNumber;
|
|
6843
|
+
state: ZodEnum<{
|
|
6844
|
+
installed: "installed";
|
|
6845
|
+
name_conflict: "name_conflict";
|
|
6846
|
+
not_installed: "not_installed";
|
|
6847
|
+
update_available: "update_available";
|
|
6848
|
+
}>;
|
|
6849
|
+
}, $strict>>;
|
|
6850
|
+
}, $strict>;
|
|
6851
|
+
type ListSkillPresetsResponse = output$1<typeof ListSkillPresetsResponseSchema>;
|
|
6852
|
+
declare const InstallSkillPresetResponseSchema: ZodObject<{
|
|
6853
|
+
action: ZodEnum<{
|
|
6854
|
+
installed: "installed";
|
|
6855
|
+
unchanged: "unchanged";
|
|
6856
|
+
updated: "updated";
|
|
6857
|
+
}>;
|
|
6858
|
+
skill: ZodObject<{
|
|
6859
|
+
id: ZodString;
|
|
6860
|
+
agentId: ZodString;
|
|
6861
|
+
name: ZodString;
|
|
6862
|
+
description: ZodString;
|
|
6863
|
+
enabled: ZodBoolean;
|
|
6864
|
+
source: ZodEnum<{
|
|
6865
|
+
agent_upload: "agent_upload";
|
|
6866
|
+
cli_upload: "cli_upload";
|
|
6867
|
+
preset: "preset";
|
|
6868
|
+
url_install: "url_install";
|
|
6869
|
+
web_upload: "web_upload";
|
|
6870
|
+
}>;
|
|
6871
|
+
archiveSha256: ZodString;
|
|
6872
|
+
archiveBytes: ZodNumber;
|
|
6873
|
+
fileCount: ZodNumber;
|
|
6874
|
+
revision: ZodNumber;
|
|
6875
|
+
createdAt: ZodString;
|
|
6876
|
+
updatedAt: ZodString;
|
|
6877
|
+
}, $strict>;
|
|
6878
|
+
}, $strict>;
|
|
6879
|
+
type InstallSkillPresetResponse = output$1<typeof InstallSkillPresetResponseSchema>;
|
|
6532
6880
|
/** The stable high-level class used for operational routing and dashboards. */
|
|
6533
6881
|
declare const StructuredErrorCategorySchema: ZodEnum<{
|
|
6534
6882
|
auth: "auth";
|
|
@@ -7522,6 +7870,19 @@ type SessionCliSendRequest = output$1<typeof SessionCliSendRequestSchema>;
|
|
|
7522
7870
|
type SessionCliCommandResponse = output$1<typeof SessionCliCommandResponseSchema>;
|
|
7523
7871
|
type SessionCliListQuery = output$1<typeof SessionCliListQuerySchema>;
|
|
7524
7872
|
type SessionCliListResponse = output$1<typeof SessionCliListResponseSchema>;
|
|
7873
|
+
declare const TurnActivityResultSchema: ZodObject<{
|
|
7874
|
+
type: ZodLiteral<"turn:activity:result">;
|
|
7875
|
+
requestId: ZodString;
|
|
7876
|
+
turnId: ZodString;
|
|
7877
|
+
sequence: ZodNumber;
|
|
7878
|
+
status: ZodEnum<{
|
|
7879
|
+
already_recorded: "already_recorded";
|
|
7880
|
+
recorded: "recorded";
|
|
7881
|
+
stale_generation: "stale_generation";
|
|
7882
|
+
unsupported_capability: "unsupported_capability";
|
|
7883
|
+
}>;
|
|
7884
|
+
}, $strict>;
|
|
7885
|
+
type TurnActivityResult = output$1<typeof TurnActivityResultSchema>;
|
|
7525
7886
|
/** Business parameters shared by every hop; unknown fields are rejected. */
|
|
7526
7887
|
declare const WebSearchParamsSchema: ZodObject<{
|
|
7527
7888
|
query: ZodString;
|
|
@@ -7654,7 +8015,7 @@ declare const WebToolErrorCodeSchema: ZodEnum<{
|
|
|
7654
8015
|
}>;
|
|
7655
8016
|
type WebToolErrorCode = output$1<typeof WebToolErrorCodeSchema>;
|
|
7656
8017
|
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 };
|
|
8018
|
+
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, 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 };
|
|
7658
8019
|
}
|
|
7659
8020
|
//#region src/agent-runtime/types.d.ts
|
|
7660
8021
|
declare const AGENT_RUNTIME_CONTRACT_VERSION = 2;
|
|
@@ -7763,6 +8124,7 @@ interface AgentRuntimeWorkspace {
|
|
|
7763
8124
|
readonly writableRoots?: readonly string[];
|
|
7764
8125
|
}
|
|
7765
8126
|
interface AgentRuntimePolicy {
|
|
8127
|
+
readonly allowedCommands?: readonly string[];
|
|
7766
8128
|
readonly fileSystem: "read-only" | "workspace-write" | "unrestricted";
|
|
7767
8129
|
readonly network: "disabled" | "enabled";
|
|
7768
8130
|
readonly approvals: "never" | "on-request" | "unless-trusted";
|
|
@@ -7961,8 +8323,14 @@ interface AgentRuntime {
|
|
|
7961
8323
|
waitForIdle(): Promise<void>;
|
|
7962
8324
|
close(): Promise<void>;
|
|
7963
8325
|
}
|
|
8326
|
+
interface AgentRuntimeConfigurationOptionsRequest {
|
|
8327
|
+
readonly model?: string;
|
|
8328
|
+
readonly cwd: string;
|
|
8329
|
+
readonly signal?: AbortSignal;
|
|
8330
|
+
}
|
|
7964
8331
|
interface AgentRuntimeFactory {
|
|
7965
8332
|
readonly manifest: AgentRuntimeManifest;
|
|
8333
|
+
getConfigurationOptions?(request: AgentRuntimeConfigurationOptionsRequest): Promise<AgentRuntimeOptions>;
|
|
7966
8334
|
probe(request: AgentRuntimeProbeRequest): Promise<AgentRuntimeProbeResult>;
|
|
7967
8335
|
create(request: CreateAgentRuntimeRequest): Promise<AgentRuntime>;
|
|
7968
8336
|
resume(request: ResumeAgentRuntimeRequest): Promise<AgentRuntime>;
|
|
@@ -8108,8 +8476,23 @@ declare class OpenTagApi {
|
|
|
8108
8476
|
listRuntimeSkills(proof: string, options?: RequestOptions): Promise<ListAgentSkillsResponse>;
|
|
8109
8477
|
pushRuntimeSkill(proof: string, input: SkillUploadInput, options?: RequestOptions): Promise<Skill>;
|
|
8110
8478
|
openRuntimeSkillBundle(proof: string, name: string, options?: RequestOptions): Promise<Response>;
|
|
8479
|
+
listSkillPresets(accessToken: string, agentId: string, options?: RequestOptions): Promise<ListSkillPresetsResponse>;
|
|
8480
|
+
installSkillPreset(accessToken: string, agentId: string, presetName: string, options?: RequestOptions): Promise<InstallSkillPresetResponse>;
|
|
8481
|
+
listRuntimeSkillPresets(proof: string, options?: RequestOptions): Promise<ListSkillPresetsResponse>;
|
|
8482
|
+
installRuntimeSkillPreset(proof: string, presetName: string, options?: RequestOptions): Promise<InstallSkillPresetResponse>;
|
|
8111
8483
|
getRuntimeAgentConfig(proof: string, options?: RequestOptions): Promise<AgentAdminConfig>;
|
|
8112
8484
|
updateRuntimeAgentConfig(proof: string, input: UpdateSelfAgentRequest, options?: RequestOptions): Promise<AgentAdminConfig>;
|
|
8485
|
+
createRuntimeAgentSchedule(proof: string, input: CreateAgentScheduleRequest, options?: RequestOptions): Promise<AgentSchedule>;
|
|
8486
|
+
listRuntimeAgentSchedules(proof: string, query?: {
|
|
8487
|
+
limit?: number;
|
|
8488
|
+
cursor?: string;
|
|
8489
|
+
}, options?: RequestOptions): Promise<AgentScheduleListResponse>;
|
|
8490
|
+
getRuntimeAgentSchedule(proof: string, scheduleId: string, options?: RequestOptions): Promise<AgentSchedule>;
|
|
8491
|
+
updateRuntimeAgentSchedule(proof: string, scheduleId: string, input: UpdateAgentScheduleRequest, options?: RequestOptions): Promise<AgentSchedule>;
|
|
8492
|
+
pauseRuntimeAgentSchedule(proof: string, scheduleId: string, expectedRevision: number, options?: RequestOptions): Promise<AgentSchedule>;
|
|
8493
|
+
resumeRuntimeAgentSchedule(proof: string, scheduleId: string, expectedRevision: number, options?: RequestOptions): Promise<AgentSchedule>;
|
|
8494
|
+
deleteRuntimeAgentSchedule(proof: string, scheduleId: string, expectedRevision: number, options?: RequestOptions): Promise<void>;
|
|
8495
|
+
previewRuntimeAgentSchedule(proof: string, input: PreviewAgentScheduleRequest, options?: RequestOptions): Promise<AgentSchedulePreview>;
|
|
8113
8496
|
listRuntimeAgentMcpServers(proof: string, options?: RequestOptions): Promise<ListAgentMCPServersResponse>;
|
|
8114
8497
|
listRuntimeAgentAvailableMcpServers(proof: string, options?: RequestOptions): Promise<ListAvailableMCPServersResponse>;
|
|
8115
8498
|
attachRuntimeAgentMcpServer(proof: string, input: AttachMCPServerRequest, options?: RequestOptions): Promise<MCPAgentServer>;
|
|
@@ -8256,7 +8639,15 @@ interface ClientLogger {
|
|
|
8256
8639
|
interface CreateLoggerOptions {
|
|
8257
8640
|
destination?: "configured" | "stderr" | "file" | "dual";
|
|
8258
8641
|
}
|
|
8259
|
-
|
|
8642
|
+
/**
|
|
8643
|
+
* The resolved environment of the service that owns the log directory. The daemon service supplies
|
|
8644
|
+
* its `config/daemon.env` result here, so the logger reads the same environment the rest of the
|
|
8645
|
+
* daemon runs with instead of the raw process environment.
|
|
8646
|
+
*/
|
|
8647
|
+
interface ClientLoggerServiceOptions {
|
|
8648
|
+
environment?: Readonly<Record<string, string | undefined>>;
|
|
8649
|
+
}
|
|
8650
|
+
declare function configureClientLoggerForService(logDirectory: string, options?: ClientLoggerServiceOptions): void;
|
|
8260
8651
|
declare function configureClientLoggerContext(bindings: ClientLogBindings): void;
|
|
8261
8652
|
declare function createLogger(module: string, options?: CreateLoggerOptions): ClientLogger;
|
|
8262
8653
|
//#endregion
|
|
@@ -8303,9 +8694,11 @@ type RuntimeBusinessFrame = Readonly<Record<string, unknown>> & {
|
|
|
8303
8694
|
//#endregion
|
|
8304
8695
|
//#region src/runtime/runtime-connection-errors.d.ts
|
|
8305
8696
|
type RuntimeSendErrorCode = "aborted" | "deadline" | "frame_too_large" | "overflow" | "unavailable" | "capability_unavailable";
|
|
8697
|
+
type RuntimeConnectionErrorCategory = "authentication_rejection" | "capability_incompatibility" | "protocol" | "transient_connection";
|
|
8306
8698
|
declare class RuntimeConnectionError extends Error {
|
|
8307
8699
|
readonly fatal: boolean;
|
|
8308
|
-
|
|
8700
|
+
readonly category: RuntimeConnectionErrorCategory;
|
|
8701
|
+
constructor(message: string, fatal: boolean, category?: RuntimeConnectionErrorCategory);
|
|
8309
8702
|
}
|
|
8310
8703
|
declare class RuntimeSendError extends Error {
|
|
8311
8704
|
readonly code: RuntimeSendErrorCode;
|
|
@@ -8841,9 +9234,10 @@ interface ClaudeCodeMcpGatewayEndpoint {
|
|
|
8841
9234
|
interface ClaudeCodeHostedToolBridge {
|
|
8842
9235
|
readonly allowedTools: readonly string[];
|
|
8843
9236
|
readonly configPath: string;
|
|
9237
|
+
readonly pluginPath: string;
|
|
8844
9238
|
close(): Promise<void>;
|
|
8845
9239
|
}
|
|
8846
|
-
declare function startClaudeCodeHostedToolBridge(hostedTools: AgentHostedTools | undefined, runId: string, signal: AbortSignal, mcpGateway?: ClaudeCodeMcpGatewayEndpoint): Promise<ClaudeCodeHostedToolBridge>;
|
|
9240
|
+
declare function startClaudeCodeHostedToolBridge(hostedTools: AgentHostedTools | undefined, runId: string, signal: AbortSignal, skillPaths: readonly string[], mcpGateway?: ClaudeCodeMcpGatewayEndpoint): Promise<ClaudeCodeHostedToolBridge>;
|
|
8847
9241
|
//#endregion
|
|
8848
9242
|
//#region src/providers/claude-code/process-wire.d.ts
|
|
8849
9243
|
declare const CLAUDE_CODE_MAX_LINE_BYTES: number;
|
|
@@ -8871,6 +9265,7 @@ interface ClaudeCodeProcessResult {
|
|
|
8871
9265
|
readonly stderr: string;
|
|
8872
9266
|
}
|
|
8873
9267
|
interface ClaudeCodeProcessClient {
|
|
9268
|
+
send?(message: Readonly<Record<string, unknown>>): Promise<void>;
|
|
8874
9269
|
execute(input: Readonly<Record<string, unknown>>, onMessage: (message: Readonly<Record<string, unknown>>) => void, signal: AbortSignal): Promise<ClaudeCodeProcessResult>;
|
|
8875
9270
|
interrupt(): Promise<void>;
|
|
8876
9271
|
close(graceMs?: number): Promise<void>;
|
|
@@ -8880,18 +9275,21 @@ declare class ClaudeCodeProcess implements ClaudeCodeProcessClient {
|
|
|
8880
9275
|
constructor(options: ClaudeCodeSpawnOptions);
|
|
8881
9276
|
execute(input: Readonly<Record<string, unknown>>, onMessage: (message: Readonly<Record<string, unknown>>) => void, signal: AbortSignal): Promise<ClaudeCodeProcessResult>;
|
|
8882
9277
|
interrupt(): Promise<void>;
|
|
9278
|
+
send(message: Readonly<Record<string, unknown>>): Promise<void>;
|
|
8883
9279
|
close(graceMs?: number): Promise<void>;
|
|
8884
9280
|
}
|
|
8885
9281
|
//#endregion
|
|
8886
9282
|
//#region src/providers/claude-code/agent-runtime.d.ts
|
|
8887
9283
|
declare const CLAUDE_CODE_AGENT_RUNTIME_MANIFEST: AgentRuntimeManifest;
|
|
8888
9284
|
interface ClaudeCodeRuntimeOptions {
|
|
9285
|
+
readonly policy: AgentRuntimePolicy;
|
|
8889
9286
|
readonly binding: AgentRuntimeBinding;
|
|
8890
9287
|
readonly configuration?: AgentRunConfiguration;
|
|
8891
9288
|
readonly createProcess: (args: readonly string[]) => ClaudeCodeProcessClient;
|
|
8892
9289
|
readonly emptyNativeToolAllowList?: boolean;
|
|
8893
9290
|
readonly eventSink: AgentRuntimeEventSink;
|
|
8894
9291
|
readonly hostedTools?: AgentHostedTools;
|
|
9292
|
+
readonly skillPaths: readonly string[];
|
|
8895
9293
|
readonly resume: boolean;
|
|
8896
9294
|
readonly startHostedToolBridge: typeof startClaudeCodeHostedToolBridge;
|
|
8897
9295
|
readonly systemPrompt: string;
|
|
@@ -8920,12 +9318,17 @@ declare class ClaudeCodeAgentRuntime extends BaseAgentRuntime {
|
|
|
8920
9318
|
protected executeRun(request: AgentPromptRequest, context: AgentProviderRunContext): Promise<AgentProviderRunResult>;
|
|
8921
9319
|
protected abortProvider(_request: AgentAbortRequest): Promise<void>;
|
|
8922
9320
|
protected closeProvider(): Promise<void>;
|
|
9321
|
+
protected respondProvider(response: AgentInteractionResponse): Promise<void>;
|
|
8923
9322
|
}
|
|
8924
9323
|
declare class ClaudeCodeAgentRuntimeFactory implements AgentRuntimeFactory {
|
|
8925
9324
|
#private;
|
|
8926
9325
|
readonly manifest: AgentRuntimeManifest;
|
|
8927
9326
|
constructor(options?: ClaudeCodeAgentRuntimeFactoryOptions);
|
|
8928
9327
|
probe(request: AgentRuntimeProbeRequest): Promise<AgentRuntimeProbeResult>;
|
|
9328
|
+
getConfigurationOptions(request: AgentRuntimeConfigurationOptionsRequest): Promise<{
|
|
9329
|
+
modelSuggestions: string[];
|
|
9330
|
+
reasoningEffortAllowedValues: string[] | null;
|
|
9331
|
+
}>;
|
|
8929
9332
|
create(request: CreateAgentRuntimeRequest): Promise<ClaudeCodeAgentRuntime>;
|
|
8930
9333
|
resume(request: ResumeAgentRuntimeRequest): Promise<ClaudeCodeAgentRuntime>;
|
|
8931
9334
|
}
|
|
@@ -9017,7 +9420,7 @@ declare class CodexAppServerProcess implements InteractiveCodexAppServerClient {
|
|
|
9017
9420
|
}
|
|
9018
9421
|
//#endregion
|
|
9019
9422
|
//#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", "
|
|
9423
|
+
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" }'];
|
|
9021
9424
|
declare const CODEX_AGENT_RUNTIME_MANIFEST: AgentRuntimeManifest;
|
|
9022
9425
|
interface CodexRuntimeOptions {
|
|
9023
9426
|
readonly client: InteractiveCodexAppServerClient;
|
|
@@ -9064,6 +9467,10 @@ declare class CodexAgentRuntimeFactory implements AgentRuntimeFactory {
|
|
|
9064
9467
|
readonly manifest: AgentRuntimeManifest;
|
|
9065
9468
|
constructor(options: CodexAgentRuntimeFactoryOptions);
|
|
9066
9469
|
probe(request: AgentRuntimeProbeRequest): Promise<AgentRuntimeProbeResult>;
|
|
9470
|
+
getConfigurationOptions(request: AgentRuntimeConfigurationOptionsRequest): Promise<{
|
|
9471
|
+
modelSuggestions: string[];
|
|
9472
|
+
reasoningEffortAllowedValues: string[] | null;
|
|
9473
|
+
}>;
|
|
9067
9474
|
create(request: CreateAgentRuntimeRequest): Promise<CodexAgentRuntime>;
|
|
9068
9475
|
resume(request: ResumeAgentRuntimeRequest): Promise<CodexAgentRuntime>;
|
|
9069
9476
|
}
|
|
@@ -9156,6 +9563,10 @@ declare class PiAgentRuntimeFactory implements AgentRuntimeFactory {
|
|
|
9156
9563
|
readonly manifest: AgentRuntimeManifest;
|
|
9157
9564
|
constructor(options?: PiAgentRuntimeFactoryOptions);
|
|
9158
9565
|
probe(request: AgentRuntimeProbeRequest): Promise<AgentRuntimeProbeResult>;
|
|
9566
|
+
getConfigurationOptions(request: AgentRuntimeConfigurationOptionsRequest): Promise<{
|
|
9567
|
+
modelSuggestions: string[];
|
|
9568
|
+
reasoningEffortAllowedValues: string[] | null;
|
|
9569
|
+
}>;
|
|
9159
9570
|
create(request: CreateAgentRuntimeRequest): Promise<PiAgentRuntime>;
|
|
9160
9571
|
resume(request: ResumeAgentRuntimeRequest): Promise<PiAgentRuntime>;
|
|
9161
9572
|
}
|
|
@@ -9343,6 +9754,8 @@ declare class ContextTreeManager {
|
|
|
9343
9754
|
constructor(options: ContextTreeManagerOptions);
|
|
9344
9755
|
/** Directory to prepend to a Session PATH so the packaged skills can invoke `context-tree`. */
|
|
9345
9756
|
binDirectory(): string;
|
|
9757
|
+
/** Explicit packaged assets for providers that disable automatic workspace skill discovery. */
|
|
9758
|
+
skillPaths(): Promise<string[]>;
|
|
9346
9759
|
/**
|
|
9347
9760
|
* Resolve Context Tree for one Agent workspace, connecting it on first use.
|
|
9348
9761
|
*
|
|
@@ -9887,7 +10300,7 @@ interface ProviderCliTurnPlanPrepareInput {
|
|
|
9887
10300
|
/** Absolute Slack config leaf supplied by the trusted caller; Feishu must omit this. */
|
|
9888
10301
|
readonly configDir?: string;
|
|
9889
10302
|
readonly captureOutgoingReplies?: boolean;
|
|
9890
|
-
/**
|
|
10303
|
+
/** Absolute path of the current execution credential environment manifest. */
|
|
9891
10304
|
readonly environmentManifest?: string;
|
|
9892
10305
|
/** Runtime proxy mode: loopback HTTPS endpoint pinned through `--apihost` (Slack only). */
|
|
9893
10306
|
readonly slackApiHost?: string;
|
|
@@ -9959,6 +10372,7 @@ interface ImCredentialGrantSubject {
|
|
|
9959
10372
|
readonly sessionId: string;
|
|
9960
10373
|
}
|
|
9961
10374
|
interface PreparedImCredentialEnvironment {
|
|
10375
|
+
readonly environmentManifest: string;
|
|
9962
10376
|
readonly outboxContext?: RuntimeImOutboxContext;
|
|
9963
10377
|
readonly path: string;
|
|
9964
10378
|
readonly provider: "feishu" | "slack";
|
|
@@ -10095,7 +10509,7 @@ interface PreparedMcpGatewayLaunch {
|
|
|
10095
10509
|
interface PreparedRuntimeCredentialEnvironment {
|
|
10096
10510
|
/** Present in proxy mode; exact-execution cleanup token. */
|
|
10097
10511
|
readonly executionId?: string;
|
|
10098
|
-
/**
|
|
10512
|
+
/** Execution environment manifest merged by the Turn launcher. */
|
|
10099
10513
|
readonly environmentManifest?: string;
|
|
10100
10514
|
readonly outboxContext?: RuntimeImOutboxContext;
|
|
10101
10515
|
readonly path: string;
|
|
@@ -10275,6 +10689,7 @@ declare class SessionBindingStore {
|
|
|
10275
10689
|
#private;
|
|
10276
10690
|
constructor(options: SessionBindingStoreOptions);
|
|
10277
10691
|
read(agentId: string, sessionId: string): Promise<LocalSessionBinding | undefined>;
|
|
10692
|
+
validatePreparation(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10278
10693
|
prepare(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<SessionPreparationResult>;
|
|
10279
10694
|
recordAccepted(request: DirectImMessageDeliveryRequest, inputHash: string, turnId: string): Promise<CustodyResult>;
|
|
10280
10695
|
getSteerReceipt(request: RuntimeImSteerRequest, inputHash: string): Promise<RecordedSteerInput | undefined>;
|
|
@@ -10465,6 +10880,7 @@ interface SessionProtectedWorkSnapshot {
|
|
|
10465
10880
|
}>;
|
|
10466
10881
|
}
|
|
10467
10882
|
interface RuntimePreparation {
|
|
10883
|
+
validateSession?(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10468
10884
|
prepareAgent(snapshot: EffectiveRuntimeSnapshot, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10469
10885
|
verifyAgent?(snapshot: EffectiveRuntimeSnapshot, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10470
10886
|
requiresSessionPreparation?(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): boolean;
|
|
@@ -10520,7 +10936,7 @@ declare class SessionReconciler {
|
|
|
10520
10936
|
claimRecovery(sessionId: string, turn: SessionTurnIdentity): boolean;
|
|
10521
10937
|
reconcile(input: SessionReconcileRequest): Promise<SessionReconcileResult>;
|
|
10522
10938
|
checkDelivery(input: DirectImMessageDeliveryRequest): InputRejectReason | undefined;
|
|
10523
|
-
checkSessionMessageDelivery(input:
|
|
10939
|
+
checkSessionMessageDelivery(input: SessionMessageDeliveryRequestV3): InputRejectReason | undefined;
|
|
10524
10940
|
withAgentLock<T>(agentId: string, task: () => Promise<T>): Promise<T>;
|
|
10525
10941
|
}
|
|
10526
10942
|
//#endregion
|
|
@@ -10533,6 +10949,7 @@ declare class AgentWorkspaceManager implements RuntimePreparation {
|
|
|
10533
10949
|
#private;
|
|
10534
10950
|
constructor(options: AgentWorkspaceManagerOptions);
|
|
10535
10951
|
prepareAgent(snapshot: EffectiveRuntimeSnapshot, _hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10952
|
+
validateSession(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10536
10953
|
prepareSession(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<SessionPreparationResult>;
|
|
10537
10954
|
verifyAgent(snapshot: EffectiveRuntimeSnapshot, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10538
10955
|
stopSession(_sessionId: string, _placementGeneration: number): Promise<void>;
|
|
@@ -10563,7 +10980,7 @@ interface SessionRuntimeManagerOptions {
|
|
|
10563
10980
|
readonly bindingStore: SessionBindingStore;
|
|
10564
10981
|
readonly cliCommand?: string;
|
|
10565
10982
|
readonly cleanupProviderEnvironment?: (sessionId: string) => Promise<void>;
|
|
10566
|
-
readonly contextTree?: Pick<ContextTreeManager, "ensureAgent">;
|
|
10983
|
+
readonly contextTree?: Pick<ContextTreeManager, "ensureAgent" | "skillPaths">;
|
|
10567
10984
|
/**
|
|
10568
10985
|
* Optional. Materializes the Agent's enabled Skills before the provider starts; a failure only
|
|
10569
10986
|
* changes what is on disk and never stops the runtime.
|
|
@@ -10601,6 +11018,7 @@ declare class SessionRuntimeManager implements RuntimePreparation, RuntimeLocalP
|
|
|
10601
11018
|
constructor(options: SessionRuntimeManagerOptions);
|
|
10602
11019
|
validate(snapshot: EffectiveRuntimeSnapshot): InputRejectReason | undefined;
|
|
10603
11020
|
validateDelivery(snapshot: EffectiveRuntimeSnapshot): InputRejectReason | undefined;
|
|
11021
|
+
validateSession(request: SessionReconcileRequest, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10604
11022
|
prepareAgent(snapshot: EffectiveRuntimeSnapshot, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10605
11023
|
verifyAgent(snapshot: EffectiveRuntimeSnapshot, hashes: RuntimeSnapshotHashes): Promise<void>;
|
|
10606
11024
|
requiresSessionPreparation(request: SessionReconcileRequest): boolean;
|
|
@@ -10669,6 +11087,7 @@ interface DeliveryDecision {
|
|
|
10669
11087
|
onAcceptedSent?(): Promise<void> | void;
|
|
10670
11088
|
}
|
|
10671
11089
|
interface ClientRuntimeOptions {
|
|
11090
|
+
handleApproval?(request: RuntimeApprovalDecision): Promise<RuntimeApprovalResult>;
|
|
10672
11091
|
contextTreeSettings?: {
|
|
10673
11092
|
run(frame: ContextTreeOperationFrame): Promise<ContextTreeOperationResponse>;
|
|
10674
11093
|
close?(): void;
|
|
@@ -10676,8 +11095,10 @@ interface ClientRuntimeOptions {
|
|
|
10676
11095
|
logger?: ClientLogger;
|
|
10677
11096
|
handleDelivery?(request: DirectImMessageDeliveryRequest): Promise<DeliveryDecision> | DeliveryDecision;
|
|
10678
11097
|
handleSteer?(request: RuntimeImSteerRequest): Promise<RuntimeImSteerResult> | RuntimeImSteerResult;
|
|
11098
|
+
handleTurnActivityResult?(result: TurnActivityResult): void;
|
|
10679
11099
|
handleTurnReportResult?(result: TurnReportResult): Promise<void> | void;
|
|
10680
|
-
handleSessionMessageDelivery?(request:
|
|
11100
|
+
handleSessionMessageDelivery?(request: SessionMessageDeliveryRequestV3): Promise<SessionMessageDeliveryResult> | SessionMessageDeliveryResult;
|
|
11101
|
+
getRuntimeOptions?(frame: AgentRuntimeOptionsRequestFrame, signal: AbortSignal): Promise<AgentRuntimeOptions>;
|
|
10681
11102
|
availabilityTester?: {
|
|
10682
11103
|
run(request: AgentRuntimeTestRequestFrame, signal: AbortSignal): Promise<AgentRuntimeTestResultFrame> | AgentRuntimeTestResultFrame;
|
|
10683
11104
|
};
|
|
@@ -10855,6 +11276,7 @@ interface AgentTurnRunnerOptions {
|
|
|
10855
11276
|
readonly now?: () => number;
|
|
10856
11277
|
readonly onRuntimeEvent?: (event: AgentRuntimeEvent) => Promise<void> | void;
|
|
10857
11278
|
readonly reportOwner: TurnReportOwner;
|
|
11279
|
+
/** @deprecated Attachments are read on demand through the provider CLI. Never called. */
|
|
10858
11280
|
readonly resourceFetcher?: ImResourceFetcher;
|
|
10859
11281
|
readonly runtimeManager: SessionRuntimeManager;
|
|
10860
11282
|
readonly credentialEnvironment: Pick<RuntimeCredentialEnvironmentManager, "cleanup" | "prepare">;
|
|
@@ -10897,13 +11319,15 @@ interface TurnCompletion {
|
|
|
10897
11319
|
declare class AgentTurnRunner {
|
|
10898
11320
|
#private;
|
|
10899
11321
|
constructor(options: AgentTurnRunnerOptions);
|
|
11322
|
+
handleActivityResult(result: TurnActivityResult): void;
|
|
10900
11323
|
get activeCount(): number;
|
|
10901
11324
|
start(owner: LiveTurnOwner): void;
|
|
10902
11325
|
steer(request: RuntimeImSteerRequest): Promise<RuntimeImSteerResult>;
|
|
11326
|
+
respondToApproval(request: RuntimeApprovalDecision): Promise<RuntimeApprovalResult>;
|
|
10903
11327
|
stop(): void;
|
|
10904
11328
|
settled(): Promise<void>;
|
|
10905
11329
|
}
|
|
10906
|
-
declare function buildAgentInput(request: DirectImMessageDeliveryRequest | RuntimeImSteerRequest, supplementalContext?: string, rootRuntime?: EffectiveRuntimeSnapshot): AgentInput;
|
|
11330
|
+
declare function buildAgentInput(request: DirectImMessageDeliveryRequest | RuntimeImSteerRequest, supplementalContext?: string, rootRuntime?: EffectiveRuntimeSnapshot, processedAt?: Date): AgentInput;
|
|
10907
11331
|
//#endregion
|
|
10908
11332
|
//#region src/runtime/protected-paths.d.ts
|
|
10909
11333
|
type ReadLink = (path: string) => string;
|
|
@@ -11108,6 +11532,13 @@ interface SessionMessageInboxOptions {
|
|
|
11108
11532
|
retryPolicy?: Partial<RuntimeRetryPolicy>;
|
|
11109
11533
|
scheduler?: RuntimeRetryScheduler;
|
|
11110
11534
|
timeoutScheduler?: RuntimeRetryScheduler;
|
|
11535
|
+
/**
|
|
11536
|
+
* The negotiated `runtime.sessionCollaboration` version. A scheduled-origin delivery is only
|
|
11537
|
+
* legal on a v3 channel; anything else is refused at the wire boundary instead of being
|
|
11538
|
+
* silently executed or silently dropped. Already-accepted durable records are unaffected —
|
|
11539
|
+
* recovery never re-checks the negotiation.
|
|
11540
|
+
*/
|
|
11541
|
+
sessionCollaborationVersion(): number | undefined;
|
|
11111
11542
|
reconciler: Pick<SessionReconciler, "checkSessionMessageDelivery" | "clearActivity" | "setActivity" | "withAgentLock">;
|
|
11112
11543
|
runtimeManager: Pick<SessionRuntimeManager, "ensureRuntime" | "sessionKind">;
|
|
11113
11544
|
}
|
|
@@ -11115,9 +11546,9 @@ declare class SessionMessageInbox {
|
|
|
11115
11546
|
#private;
|
|
11116
11547
|
constructor(options: SessionMessageInboxOptions);
|
|
11117
11548
|
ready(): Promise<void>;
|
|
11118
|
-
getState(messageId: string): DurableWorkRecord<
|
|
11549
|
+
getState(messageId: string): DurableWorkRecord<SessionMessageDeliveryRequestV3> | undefined;
|
|
11119
11550
|
metricsSnapshot(): ReturnType<RuntimeDurabilityMetrics["snapshot"]> | undefined;
|
|
11120
|
-
accept(input:
|
|
11551
|
+
accept(input: SessionMessageDeliveryRequestV3): Promise<SessionMessageDeliveryResult>;
|
|
11121
11552
|
stop(): void;
|
|
11122
11553
|
/** Accepted Session messages still waiting in an in-memory delivery queue. */
|
|
11123
11554
|
get queuedCount(): number;
|
|
@@ -11134,7 +11565,18 @@ type SessionMessageTurnContext = {
|
|
|
11134
11565
|
readonly outboxContext: RuntimeImOutboxContext;
|
|
11135
11566
|
readonly sessionKind: "visible";
|
|
11136
11567
|
};
|
|
11137
|
-
|
|
11568
|
+
/**
|
|
11569
|
+
* Assemble the Agent input for one Session message at the moment processing actually begins.
|
|
11570
|
+
*
|
|
11571
|
+
* `processedAt` is the processing clock sample taken by the caller after `waitForIdle()`; every
|
|
11572
|
+
* branch exposes it as trustworthy UTC without guessing a local timezone. A scheduled message
|
|
11573
|
+
* additionally gains a distinct managed metadata item (schedule name, scheduled/sent/processing
|
|
11574
|
+
* times in UTC and the schedule's IANA timezone, message id, detail link, and the normalized
|
|
11575
|
+
* <=120 code-point preview) plus the single best-effort start-notification instruction. The full
|
|
11576
|
+
* prompt always stays its own trailing user-task item, and untrusted name/preview text enters the
|
|
11577
|
+
* managed block only JSON-escaped, so it can never close a managed tag or forge instructions.
|
|
11578
|
+
*/
|
|
11579
|
+
declare function buildSessionMessageInput(request: SessionMessageDeliveryRequestV3, cliCommand?: string, turnContext?: SessionMessageTurnContext, processedAt?: Date): AgentInput;
|
|
11138
11580
|
//#endregion
|
|
11139
11581
|
//#region src/runtime/client-runtime-composition.d.ts
|
|
11140
11582
|
/**
|
|
@@ -11381,15 +11823,49 @@ interface LocalComputerConfigurationInspection {
|
|
|
11381
11823
|
declare function inspectLocalComputerConfiguration(home: string): Promise<LocalComputerConfigurationInspection>;
|
|
11382
11824
|
//#endregion
|
|
11383
11825
|
//#region src/runtime/managed-instructions.d.ts
|
|
11826
|
+
type ManagedEnvironment = "local" | "cloud";
|
|
11827
|
+
/**
|
|
11828
|
+
* Both runtime tree statuses are structurally assignable to this prompt context.
|
|
11829
|
+
*/
|
|
11830
|
+
type ManagedContextTreeStatus = {
|
|
11831
|
+
status: "configured";
|
|
11832
|
+
connections: readonly ManagedContextTreeResult[];
|
|
11833
|
+
} | {
|
|
11834
|
+
status: "ready";
|
|
11835
|
+
treePath: string;
|
|
11836
|
+
branch?: string;
|
|
11837
|
+
sha?: string;
|
|
11838
|
+
} | {
|
|
11839
|
+
status: "stale";
|
|
11840
|
+
treePath: string;
|
|
11841
|
+
reason: string;
|
|
11842
|
+
} | {
|
|
11843
|
+
status: "unconfigured";
|
|
11844
|
+
} | {
|
|
11845
|
+
status: "unavailable";
|
|
11846
|
+
reason: string;
|
|
11847
|
+
};
|
|
11848
|
+
type ManagedContextTreeResult = ContextTreeConnection & Exclude<ManagedContextTreeStatus, {
|
|
11849
|
+
status: "configured";
|
|
11850
|
+
} | {
|
|
11851
|
+
status: "unconfigured";
|
|
11852
|
+
}>;
|
|
11853
|
+
/** Runtime facts supplied by either the Local manager or the Cloud worker. */
|
|
11384
11854
|
interface ManagedSessionContext {
|
|
11855
|
+
environment: ManagedEnvironment;
|
|
11385
11856
|
sessionId: string;
|
|
11386
11857
|
sessionKind: "visible" | "internal";
|
|
11858
|
+
/** The Session that created this one; omitted entirely when the caller does not carry one. */
|
|
11387
11859
|
creatorSessionId?: string;
|
|
11388
11860
|
cliCommand: string;
|
|
11861
|
+
/** True only with real Session-CLI proof material behind the commands. */
|
|
11389
11862
|
sessionCliAvailable: boolean;
|
|
11390
|
-
|
|
11863
|
+
selfConfigurationEnabled: boolean;
|
|
11864
|
+
contextTree?: ManagedContextTreeStatus;
|
|
11865
|
+
/** Local only: the Agent's persistent Home on this Computer. */
|
|
11391
11866
|
agentHome?: string;
|
|
11392
11867
|
}
|
|
11868
|
+
/** One template for both runtimes; only environment facts use Local/Cloud branches. */
|
|
11393
11869
|
declare function renderManagedSystemPrompt(snapshot: EffectiveRuntimeSnapshot, context?: ManagedSessionContext): string;
|
|
11394
11870
|
//#endregion
|
|
11395
11871
|
//#region src/runtime/provider-cli/probe.d.ts
|
|
@@ -11945,11 +12421,13 @@ interface UpdaterAttempt {
|
|
|
11945
12421
|
failureReason?: string;
|
|
11946
12422
|
}
|
|
11947
12423
|
type UpdaterStateName = "idle" | "awaiting_protected_work" | "installing" | "blocked" | "installed";
|
|
12424
|
+
type UpdaterRecoveryStatus = "upgrade_required" | "authentication_repair" | "retryable_connectivity";
|
|
11948
12425
|
/** Persisted updater status, also the source for `daemon status` update reporting. */
|
|
11949
12426
|
interface UpdaterStateSnapshot {
|
|
11950
12427
|
schemaVersion: 1;
|
|
11951
12428
|
currentVersion: string;
|
|
11952
12429
|
state: UpdaterStateName;
|
|
12430
|
+
recoveryStatus?: UpdaterRecoveryStatus;
|
|
11953
12431
|
target?: string;
|
|
11954
12432
|
lastAttempt?: UpdaterAttempt;
|
|
11955
12433
|
attempts: Record<string, UpdaterAttempt>;
|
|
@@ -11985,6 +12463,11 @@ interface UpdateManagerOptions {
|
|
|
11985
12463
|
saveState(state: UpdaterStateSnapshot): Promise<void>;
|
|
11986
12464
|
/** Protected-work re-check cadence. This is a poll interval, never a force timeout. */
|
|
11987
12465
|
checkIntervalMs?: number;
|
|
12466
|
+
/** Read the configured release channel without relying on a runtime heartbeat. */
|
|
12467
|
+
discoverTarget?: () => Promise<RuntimeChannelTarget | undefined>;
|
|
12468
|
+
/** Successful release discovery cadence. Failed reads use bounded exponential backoff. */
|
|
12469
|
+
discoveryIntervalMs?: number;
|
|
12470
|
+
discoveryMaxBackoffMs?: number;
|
|
11988
12471
|
now?: () => number;
|
|
11989
12472
|
sleep?: (milliseconds: number) => Promise<void>;
|
|
11990
12473
|
}
|
|
@@ -12009,6 +12492,14 @@ declare class UpdateManager {
|
|
|
12009
12492
|
syncRunningVersion(): Promise<void>;
|
|
12010
12493
|
/** Record a Server-advertised channel target. Cheap and safe to call on every heartbeat. */
|
|
12011
12494
|
observe(advertisement: RuntimeChannelTarget): void;
|
|
12495
|
+
/** Start the single heartbeat-independent release discovery loop. */
|
|
12496
|
+
startDiscovery(): void;
|
|
12497
|
+
/** Trigger one coalesced metadata read, for example after a capability rejection. */
|
|
12498
|
+
discoverNow(): Promise<void>;
|
|
12499
|
+
/** Keep the discovery loop referenced while the daemon waits for recovery. */
|
|
12500
|
+
holdRecoveryAlive(): () => void;
|
|
12501
|
+
/** Persist a local recovery diagnosis without changing the install-attempt state machine. */
|
|
12502
|
+
recordRecoveryStatus(status: UpdaterRecoveryStatus | undefined): Promise<void>;
|
|
12012
12503
|
stop(): void;
|
|
12013
12504
|
}
|
|
12014
12505
|
//#endregion
|