@agentdock/wire 0.0.95 → 0.0.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agentCapabilities.d.ts +5 -2
- package/dist/agentCapabilities.js +1 -1
- package/dist/agentCompatibility.d.ts +83 -0
- package/dist/agentCompatibility.js +1 -0
- package/dist/agentInstallGuide.js +1 -1
- package/dist/checkpointSchemas.d.ts +5 -0
- package/dist/checkpointSchemas.js +1 -1
- package/dist/enterpriseCurrency.d.ts +120 -0
- package/dist/enterpriseCurrency.js +1 -0
- package/dist/enterpriseDirectory.d.ts +636 -0
- package/dist/enterpriseDirectory.js +1 -0
- package/dist/enterpriseFileService.d.ts +7 -0
- package/dist/enterpriseFileService.js +1 -0
- package/dist/enterpriseGatewayExports.d.ts +4 -0
- package/dist/enterpriseGatewayExports.js +1 -0
- package/dist/enterpriseOverview.d.ts +423 -0
- package/dist/enterpriseOverview.js +1 -0
- package/dist/enterprisePolicy.d.ts +452 -489
- package/dist/enterprisePolicy.js +1 -1
- package/dist/enterprisePolicyExports.d.ts +4 -2
- package/dist/enterprisePolicyExports.js +1 -1
- package/dist/enterpriseRange.d.ts +19 -0
- package/dist/enterpriseRange.js +1 -0
- package/dist/enterpriseRuntime.d.ts +574 -46
- package/dist/enterpriseRuntime.js +1 -1
- package/dist/enterpriseUserContainer.d.ts +2 -0
- package/dist/enterpriseUserContainer.js +1 -0
- package/dist/gateway.d.ts +1393 -876
- package/dist/gateway.js +1 -1
- package/dist/gatewayBodyRetention.d.ts +149 -0
- package/dist/gatewayBodyRetention.js +2 -0
- package/dist/gatewayUsage.d.ts +3248 -0
- package/dist/gatewayUsage.js +1 -0
- package/dist/inboundEvents.d.ts +0 -6
- package/dist/inboundEvents.js +1 -1
- package/dist/index.d.ts +15 -6
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +2 -2
- package/dist/legacyProtocol.d.ts +36 -36
- package/dist/machine.d.ts +1 -6
- package/dist/machine.js +1 -1
- package/dist/messageMeta.d.ts +9 -7
- package/dist/messageMeta.js +1 -1
- package/dist/messages.d.ts +36 -36
- package/dist/ops.d.ts +112 -0
- package/dist/ops.js +1 -1
- package/dist/opsExports.d.ts +4 -0
- package/dist/opsExports.js +1 -0
- package/dist/pushPreferences.d.ts +12 -0
- package/dist/pushPreferences.js +1 -0
- package/dist/rpc.d.ts +537 -66
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +96 -21
- package/dist/scheduledTasks.js +1 -1
- package/dist/session.d.ts +4 -0
- package/dist/session.js +1 -0
- package/dist/sessionBtw.d.ts +2 -2
- package/dist/sessionFiles.d.ts +70 -0
- package/dist/sessionFiles.js +1 -0
- package/dist/sessionSlashCommands.d.ts +15 -0
- package/dist/sessionSlashCommands.js +1 -0
- package/dist/spawnError.d.ts +3 -3
- package/dist/stats.d.ts +31 -31
- package/dist/sync.d.ts +45 -45
- package/dist/sync.js +1 -1
- package/dist/telemetry.d.ts +13 -13
- package/dist/telemetry.js +1 -1
- package/dist/workspaceFileReaderProtocol.d.ts +270 -0
- package/dist/workspaceFileReaderProtocol.js +1 -0
- package/dist/workspaceFileRelay.d.ts +188 -0
- package/dist/workspaceFileRelay.js +1 -0
- package/package.json +1 -1
- package/dist/agentRuntimeSettings.d.ts +0 -139
- package/dist/agentRuntimeSettings.js +0 -1
- package/dist/enterpriseGateway.d.ts +0 -214
- package/dist/enterpriseGateway.js +0 -1
- package/dist/goals.d.ts +0 -829
- package/dist/goals.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";import{z as e}from"zod";import{EnterpriseRangePresetSchema as n}from"./enterpriseRange.js";export const GatewayRequestPriceSnapshotSchema=e.object({currency:e.string().regex(/^[A-Z]{3}$/),inputMicrosPerMillion:e.string().regex(/^\d+$/).nullable(),outputMicrosPerMillion:e.string().regex(/^\d+$/).nullable(),cacheReadMicrosPerMillion:e.string().regex(/^\d+$/).nullable(),cacheWriteMicrosPerMillion:e.string().regex(/^\d+$/).nullable(),reasoningMicrosPerMillion:e.string().regex(/^\d+$/).nullable().optional(),resolvedAt:e.string().datetime()}).strict(),GatewaySkeletonContentKindSchema=e.enum(["text","image","tool_use","tool_result","thinking","other"]),GatewaySkeletonMessageSchema=e.object({index:e.number().int(),role:e.string(),chars:e.number().int(),kinds:e.array(GatewaySkeletonContentKindSchema),toolCalls:e.array(e.object({name:e.string(),inputChars:e.number().int()}).strict()).optional()}).strict(),GatewayRequestSkeletonSchema=e.object({parseable:e.boolean(),system:e.object({present:e.boolean(),chars:e.number().int()}).strict().optional(),tools:e.object({count:e.number().int(),names:e.array(e.string()),namesTruncated:e.boolean().optional()}).strict().optional(),messages:e.array(GatewaySkeletonMessageSchema).optional(),messagesTruncated:e.boolean().optional(),params:e.object({temperature:e.number().nullable(),maxTokens:e.number().nullable(),topP:e.number().nullable()}).strict().optional()}).strict(),GatewaySkeletonResponseBlockSchema=e.object({type:GatewaySkeletonContentKindSchema,chars:e.number().int(),name:e.string().optional(),inputChars:e.number().int().optional()}).strict(),GatewayResponseSkeletonSchema=e.object({mode:e.enum(["stream","json","none"]),complete:e.boolean(),blocks:e.array(GatewaySkeletonResponseBlockSchema).optional(),blocksTruncated:e.boolean().optional(),stopReason:e.string().nullable().optional()}).strict(),GatewaySkeletonHeadersSchema=e.object({request:e.record(e.string(),e.string()).optional(),response:e.record(e.string(),e.string()).optional()}).strict(),GatewaySkeletonEnvelopeSchema=e.object({request:GatewayRequestSkeletonSchema.optional(),response:GatewayResponseSkeletonSchema.optional(),headers:GatewaySkeletonHeadersSchema.optional()}).strict(),GatewayRequestListQuerySchema=e.object({from:e.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),to:e.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),range:n.optional(),userId:e.string().optional(),machineId:e.string().optional(),connectionId:e.string().optional(),agent:e.string().optional(),model:e.string().optional(),provider:e.string().optional(),outcome:e.string().optional(),limit:e.number().int().min(1).max(200),offset:e.number().int().min(0),cursor:e.string().optional()}).strict(),GatewayRequestRowSchema=e.object({id:e.string(),gatewayRequestId:e.string(),createdAt:e.string(),startedAt:e.string().nullable(),endedAt:e.string().nullable(),enterpriseId:e.string(),connectionId:e.string().nullable(),connectionName:e.string().nullable(),routeId:e.string().nullable(),routeAlias:e.string().nullable(),agent:e.string().nullable(),model:e.string().nullable(),provider:e.string().nullable(),sessionId:e.string().nullable(),callType:e.string().nullable(),userAgent:e.string().nullable(),requestProtocol:e.string().nullable(),upstreamProtocol:e.string().nullable(),stream:e.boolean().nullable(),httpMethod:e.string().nullable(),httpPath:e.string().nullable(),username:e.string().nullable(),userId:e.string().nullable(),machineId:e.string().nullable(),statusCode:e.number().int().nullable(),statusClass:e.string().nullable(),outcome:e.string(),endReason:e.enum(["done","upstream_failed","client_gone","truncated"]).nullable(),errorCode:e.string().nullable(),durationMs:e.number().int(),requestBytes:e.number().int(),responseBytes:e.number().int(),upstreamRequestId:e.string().nullable(),inputTokens:e.number().int(),outputTokens:e.number().int(),cacheReadTokens:e.number().int(),cacheWriteTokens:e.number().int(),reasoningTokens:e.number().int(),totalTokens:e.number().int(),costMicros:e.number().nullable(),currency:e.string().nullable(),pricingVersion:e.string().nullable(),logicalModelId:e.string().nullable().optional(),logicalModelDisplayName:e.string().nullable().optional(),deploymentId:e.string().nullable().optional(),upstreamModelId:e.string().nullable().optional(),priceSource:e.enum(["default","deployment_override","connection_override","unpriced"]).nullable().optional(),priceRuleId:e.string().nullable().optional(),priceSnapshot:GatewayRequestPriceSnapshotSchema.nullable().optional(),pricedAt:e.string().datetime().nullable().optional(),skeleton:GatewaySkeletonEnvelopeSchema.optional(),requestSample:e.string().nullable().optional(),responseSample:e.string().nullable().optional(),bodyAvailable:e.boolean().optional(),bodyExpiresAt:e.string().datetime().nullable().optional()}).strict(),GatewayRequestPageSchema=e.object({data:e.array(GatewayRequestRowSchema),total:e.number().int().nonnegative(),limit:e.number().int().positive(),offset:e.number().int().nonnegative(),hasMore:e.boolean(),nextCursor:e.string().optional()}).strict(),GatewayRequestListResponseSchema=e.object({ok:e.literal(!0),data:e.array(GatewayRequestRowSchema),total:e.number().int().nonnegative(),limit:e.number().int().positive(),offset:e.number().int().nonnegative(),hasMore:e.boolean(),nextCursor:e.string().optional()}).strict(),GatewayUsageSummarySchema=e.object({currency:e.string().regex(/^[A-Z]{3}$/),requestCount:e.number().int().nonnegative(),inputTokens:e.number().nonnegative(),outputTokens:e.number().nonnegative(),cacheReadTokens:e.number().nonnegative(),cacheWriteTokens:e.number().nonnegative(),reasoningTokens:e.number().nonnegative(),totalTokens:e.number().nonnegative(),costMicros:e.number().nullable(),pricedCount:e.number().int().nonnegative(),unpricedCount:e.number().int().nonnegative(),errorCount:e.number().int().nonnegative(),errorRate:e.number().min(0).max(1),latencyMs:e.object({p50:e.number().nullable(),p95:e.number().nullable()}).strict(),breakdown:e.array(e.object({agent:e.string().nullable(),model:e.string().nullable(),provider:e.string().nullable(),requestCount:e.number().int().nonnegative(),inputTokens:e.number().nonnegative(),outputTokens:e.number().nonnegative(),totalTokens:e.number().nonnegative(),costMicros:e.number().nullable()}).strict())}).strict(),GatewayUsageSummaryResponseSchema=e.object({ok:e.literal(!0),data:GatewayUsageSummarySchema}).strict(),GatewayDailyUsageSchema=e.object({day:e.string().regex(/^\d{4}-\d{2}-\d{2}$/),agent:e.string().nullable(),model:e.string().nullable(),provider:e.string().nullable(),requestCount:e.number().int().nonnegative(),inputTokens:e.number().nonnegative(),outputTokens:e.number().nonnegative(),cacheReadTokens:e.number().nonnegative(),cacheWriteTokens:e.number().nonnegative(),totalTokens:e.number().nonnegative(),costMicros:e.number().nullable(),currency:e.string().regex(/^[A-Z]{3}$/).nullable()}).strict(),GatewayDailyUsageListResponseSchema=e.object({ok:e.literal(!0),data:e.array(GatewayDailyUsageSchema)}).strict();
|
package/dist/inboundEvents.d.ts
CHANGED
|
@@ -320,8 +320,6 @@ export declare const MachineRegisterPayloadSchema: z.ZodObject<{
|
|
|
320
320
|
daemonVersion: z.ZodOptional<z.ZodString>;
|
|
321
321
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
322
322
|
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
323
|
-
terminalHost: z.ZodOptional<z.ZodString>;
|
|
324
|
-
terminalPort: z.ZodOptional<z.ZodNumber>;
|
|
325
323
|
upgradeStatus: z.ZodOptional<z.ZodString>;
|
|
326
324
|
upgradeError: z.ZodOptional<z.ZodString>;
|
|
327
325
|
lastUpgradeError: z.ZodOptional<z.ZodString>;
|
|
@@ -365,8 +363,6 @@ export declare const MachineRegisterPayloadSchema: z.ZodObject<{
|
|
|
365
363
|
daemonVersion: z.ZodOptional<z.ZodString>;
|
|
366
364
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
367
365
|
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
368
|
-
terminalHost: z.ZodOptional<z.ZodString>;
|
|
369
|
-
terminalPort: z.ZodOptional<z.ZodNumber>;
|
|
370
366
|
upgradeStatus: z.ZodOptional<z.ZodString>;
|
|
371
367
|
upgradeError: z.ZodOptional<z.ZodString>;
|
|
372
368
|
lastUpgradeError: z.ZodOptional<z.ZodString>;
|
|
@@ -410,8 +406,6 @@ export declare const MachineRegisterPayloadSchema: z.ZodObject<{
|
|
|
410
406
|
daemonVersion: z.ZodOptional<z.ZodString>;
|
|
411
407
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
412
408
|
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
413
|
-
terminalHost: z.ZodOptional<z.ZodString>;
|
|
414
|
-
terminalPort: z.ZodOptional<z.ZodNumber>;
|
|
415
409
|
upgradeStatus: z.ZodOptional<z.ZodString>;
|
|
416
410
|
upgradeError: z.ZodOptional<z.ZodString>;
|
|
417
411
|
lastUpgradeError: z.ZodOptional<z.ZodString>;
|
package/dist/inboundEvents.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as o}from"zod";const t=o.string().min(1),a=9223372036854775807n,n=o.string().refine(e=>/^(0|[1-9]\d*)$/.test(e)?BigInt(e)<=a:!1,"expected canonical non-negative int64");export const SessionCreatePayloadSchema=o.object({tag:t,metadata:o.string().optional(),dataEncryptionKey:o.string().optional(),source:o.string().optional(),claudeSessionId:o.string().optional(),projectPath:o.string().optional(),ownerInstanceId:t.optional(),handoffEnabled:o.boolean().optional(),inheritedFrom:o.array(o.string().uuid()).max(5).optional()}).passthrough(),UpdateMetadataPayloadSchema=o.object({sessionId:t,metadata:o.string(),expectedVersion:o.number().int().min(0)}).passthrough(),ContextUsageUpdatePayloadSchema=o.object({sessionId:t,contextUsage:o.record(o.unknown())}).passthrough(),UpdateStatePayloadSchema=o.object({sessionId:t,agentState:o.string(),expectedVersion:o.number().int().min(0)}).passthrough(),SessionAlivePayloadSchema=o.object({sessionId:t,takeoverToken:t.optional(),ownerInstanceId:t.optional(),reconnectKey:t.optional(),ownerEpoch:n.optional(),connectionGeneration:n.optional(),runtimeStatus:o.enum(["idle","thinking","tool_running","permission_required","disconnected"]).optional()}).passthrough(),GetSessionRuntimeStatusPayloadSchema=o.object({sessionId:t}).strict(),SessionDeletePayloadSchema=o.object({sessionId:t}).passthrough(),SessionEndPayloadSchema=o.object({sessionId:t,summary:o.string().optional()}).passthrough(),SessionTerminatePayloadSchema=o.object({sessionId:t}).strict(),RenameSessionPayloadSchema=o.object({sessionId:t,displayName:o.string().refine(e=>e.trim()!=="","displayName must not be blank")}).passthrough(),SessionContextResetPayloadSchema=o.object({sessionId:t}).passthrough(),ClaimAutoSessionTitlePayloadSchema=o.object({sessionId:t}).passthrough(),MessagePayloadSchema=o.object({sessionId:t,localId:t,content:o.unknown(),skipBroadcast:o.boolean().optional(),ephemeral:o.boolean().optional()}).passthrough().refine(e=>"content"in e,{message:"content is required",path:["content"]});const s=o.object({localId:t,content:o.unknown()}).passthrough().refine(e=>"content"in e,{message:"content is required",path:["content"]});export const BatchMessagePayloadSchema=o.object({sessionId:t,messages:o.array(s).min(1).max(100),skipBroadcast:o.boolean().optional()}).passthrough(),GetMessagesPayloadSchema=o.object({sessionId:t,fromSeq:o.number().int().min(0).optional(),beforeSeq:o.number().int().min(1).optional(),order:o.enum(["asc","desc"]).optional(),limit:o.number().int().min(1).optional(),contextCycle:o.literal("latest").optional()}).passthrough(),INBOUND_SESSION_STATUSES=["idle","thinking","tool_running","permission_required","disconnected","turn-completed"],SessionStatusPayloadSchema=o.object({sessionId:t,status:o.enum(INBOUND_SESSION_STATUSES)}).strict(),MachineRegisterPayloadSchema=o.object({hostname:t,platform:t,arch:o.string().optional(),displayName:o.string().optional(),daemonVersion:o.string().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),
|
|
1
|
+
"use strict";import{z as o}from"zod";const t=o.string().min(1),a=9223372036854775807n,n=o.string().refine(e=>/^(0|[1-9]\d*)$/.test(e)?BigInt(e)<=a:!1,"expected canonical non-negative int64");export const SessionCreatePayloadSchema=o.object({tag:t,metadata:o.string().optional(),dataEncryptionKey:o.string().optional(),source:o.string().optional(),claudeSessionId:o.string().optional(),projectPath:o.string().optional(),ownerInstanceId:t.optional(),handoffEnabled:o.boolean().optional(),inheritedFrom:o.array(o.string().uuid()).max(5).optional()}).passthrough(),UpdateMetadataPayloadSchema=o.object({sessionId:t,metadata:o.string(),expectedVersion:o.number().int().min(0)}).passthrough(),ContextUsageUpdatePayloadSchema=o.object({sessionId:t,contextUsage:o.record(o.unknown())}).passthrough(),UpdateStatePayloadSchema=o.object({sessionId:t,agentState:o.string(),expectedVersion:o.number().int().min(0)}).passthrough(),SessionAlivePayloadSchema=o.object({sessionId:t,takeoverToken:t.optional(),ownerInstanceId:t.optional(),reconnectKey:t.optional(),ownerEpoch:n.optional(),connectionGeneration:n.optional(),runtimeStatus:o.enum(["idle","thinking","tool_running","permission_required","disconnected"]).optional()}).passthrough(),GetSessionRuntimeStatusPayloadSchema=o.object({sessionId:t}).strict(),SessionDeletePayloadSchema=o.object({sessionId:t}).passthrough(),SessionEndPayloadSchema=o.object({sessionId:t,summary:o.string().optional()}).passthrough(),SessionTerminatePayloadSchema=o.object({sessionId:t}).strict(),RenameSessionPayloadSchema=o.object({sessionId:t,displayName:o.string().refine(e=>e.trim()!=="","displayName must not be blank")}).passthrough(),SessionContextResetPayloadSchema=o.object({sessionId:t}).passthrough(),ClaimAutoSessionTitlePayloadSchema=o.object({sessionId:t}).passthrough(),MessagePayloadSchema=o.object({sessionId:t,localId:t,content:o.unknown(),skipBroadcast:o.boolean().optional(),ephemeral:o.boolean().optional()}).passthrough().refine(e=>"content"in e,{message:"content is required",path:["content"]});const s=o.object({localId:t,content:o.unknown()}).passthrough().refine(e=>"content"in e,{message:"content is required",path:["content"]});export const BatchMessagePayloadSchema=o.object({sessionId:t,messages:o.array(s).min(1).max(100),skipBroadcast:o.boolean().optional()}).passthrough(),GetMessagesPayloadSchema=o.object({sessionId:t,fromSeq:o.number().int().min(0).optional(),beforeSeq:o.number().int().min(1).optional(),order:o.enum(["asc","desc"]).optional(),limit:o.number().int().min(1).optional(),contextCycle:o.literal("latest").optional()}).passthrough(),INBOUND_SESSION_STATUSES=["idle","thinking","tool_running","permission_required","disconnected","turn-completed"],SessionStatusPayloadSchema=o.object({sessionId:t,status:o.enum(INBOUND_SESSION_STATUSES)}).strict(),MachineRegisterPayloadSchema=o.object({hostname:t,platform:t,arch:o.string().optional(),displayName:o.string().optional(),daemonVersion:o.string().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),upgradeStatus:o.string().optional(),upgradeError:o.string().optional(),lastUpgradeError:o.string().optional(),derivationVersion:o.number().optional(),autoUpgradeDaemon:o.boolean().optional(),notifyFeishu:o.boolean().optional(),notifyDingtalk:o.boolean().optional(),agentModels:o.record(o.array(o.object({id:o.string(),displayName:o.string(),isDefault:o.boolean(),hidden:o.boolean()}).passthrough())).optional(),agentModes:o.record(o.array(o.object({id:o.string(),label:o.string()}).passthrough())).optional(),capabilities:o.array(o.string()).optional()}).passthrough(),HistorySessionEntrySchema=o.object({claudeSessionId:t,projectPath:o.string(),title:o.string().nullable().optional(),messageCount:o.number(),createdAt:o.string(),agentType:o.string(),isSubagent:o.boolean().optional()}).passthrough(),RegisterHistorySessionsPayloadSchema=o.object({entries:o.array(HistorySessionEntrySchema)}).passthrough();
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,7 @@ export { SessionTextEventSchema, SessionServiceEventSchema, SessionToolCallStart
|
|
|
5
5
|
export type { SessionEvent, SessionTurnEndStatus, TurnUsage, SessionQuestionEvent, SessionPermissionRequestEvent, SessionAnswerEvent, SessionPermissionResolvedEvent, PermissionAction, ImageAttachment, SessionContextUsageEvent, SessionCompactBoundaryEvent, } from './events.js';
|
|
6
6
|
export { QuestionOptionSchema, SessionQuestionEventSchema, SessionPermissionRequestEventSchema, SessionAnswerEventSchema, AnswerQuestionParamsSchema, ApprovePermissionParamsSchema, DenyPermissionParamsSchema, PermissionModeSchema, } from './interactionEvents.js';
|
|
7
7
|
export type { QuestionOption, AnswerQuestionParams, ApprovePermissionParams, DenyPermissionParams, PermissionModeValue, } from './interactionEvents.js';
|
|
8
|
-
export
|
|
9
|
-
export type { SessionRole, SessionEnvelope, CreateEnvelopeOptions } from './envelope.js';
|
|
8
|
+
export * from './session.js';
|
|
10
9
|
export { NotificationEventTypeSchema, DispatchNotificationParamsSchema } from './notification.js';
|
|
11
10
|
export type { NotificationEventType, DispatchNotificationParams } from './notification.js';
|
|
12
11
|
export { AgentTypeSchema, MessageMetaSchema, AGENT_TYPES, SPAWNABLE_AGENTS, CLI_AGENT_TYPES, } from './messageMeta.js';
|
|
@@ -20,11 +19,14 @@ export type { UserMessage, AgentMessage, LegacyMessageContent } from './legacyPr
|
|
|
20
19
|
export { VersionedEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VersionedMachineEncryptedValueSchema, UpdateNewMessageBodySchema, UpdateSessionBodySchema, UpdateMachineBodySchema, UpdateSessionResetBodySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, } from './sync.js';
|
|
21
20
|
export type { VersionedEncryptedValue, VersionedNullableEncryptedValue, VersionedMachineEncryptedValue, UpdateNewMessageBody, UpdateSessionBody, UpdateMachineBody, UpdateSessionResetBody, CoreUpdateBody, CoreUpdateContainer, } from './sync.js';
|
|
22
21
|
export { RpcMethod, type RpcMethodType, SESSION_RPC_METHODS, MACHINE_RPC_METHODS, DAEMON_REQUIRED_RPC_METHODS, RpcCallSchema, RpcResultSchema, SpawnSessionParamsSchema, GetMessagesParamsSchema, GetMessagesResponseSchema, MachineInfoResponseSchema, CheckPathParamsSchema, AGENT_ENV_NONE, AgentEnvConfigSchema, AgentEnvConfigSetSchema, AgentSettingsSchema, SetAgentSettingsSchema, LabsSettingsSchema, CustomModelSchema, SkillDefinitionSchema, AiHelperConfigSchema, LocalAiHelperConfigSchema, LocalAgentSettingsSchema, AiHelperPayloadSchema, AiHelperDecryptedPayloadSchema, AiHelperParamsSchema, AiHelperCancelParamsSchema, } from './rpc.js';
|
|
22
|
+
export { SessionSlashCommandSchema, parseSessionSlashCommands } from './sessionSlashCommands.js';
|
|
23
23
|
export { HANDOFF_BRIEF_TEMPLATE, HANDOFF_BRIEF_TEMPLATE_ZH, HANDOFF_BRIEF_REQUIREMENTS, HANDOFF_SOURCE_REFERENCE_GUIDANCE, SESSION_DELIVERY_TEMPLATE, SESSION_DELIVERY_TEMPLATE_ZH, sessionDeliveryTemplate, SESSION_DELIVERY_REQUIREMENTS, HandoffBriefSchema, getMissingHandoffBriefSections, } from './handoffBrief.js';
|
|
24
24
|
export { SESSION_HANDOFF_CAPABILITY, HandoffProposalContentSchema, HandoffProposalCreateSchema, HandoffProposalStatusSchema, HandoffProposalContentEnvelopeSchema, HandoffProposalRecordSchema, InheritedDeliverySummarySchema, SessionHandoffContextSchema, AccountDeliveryRowSchema, AccountDeliveryPageSchema, DeliveryConsumerSchema, } from './workItems.js';
|
|
25
25
|
export type { HandoffProposalContent, HandoffProposalCreate, HandoffProposalRecord, HandoffProposalStatus, HandoffProposalContentEnvelope, InheritedDeliverySummary, SessionHandoffContext, AccountDeliveryRow, AccountDeliveryPage, DeliveryConsumer, } from './workItems.js';
|
|
26
26
|
export type { RpcCall, RpcResult, SpawnSessionParams, CheckPathParams, GetMessagesParams, GetMessagesResponse, MachineInfoResponse, AgentEnvConfig, AgentSettings, LabsSettings, CustomModel, SkillDefinition, AiHelperConfig, LocalAiHelperConfig, LocalAgentSettings, AiHelperParams, AiHelperCancelParams, } from './rpc.js';
|
|
27
|
+
export type { SessionSlashCommand } from './sessionSlashCommands.js';
|
|
27
28
|
export * from './enterprisePolicyExports.js';
|
|
29
|
+
export * from './enterpriseDirectory.js';
|
|
28
30
|
export { AGENT_CAPABILITIES, getAgentCapability, updateDynamicModes, getDynamicModes, normalizeModelId, NATIVE_MODE_TO_POLICY, resolvePolicyMode, } from './agentCapabilities.js';
|
|
29
31
|
export type { AgentCapability, AgentPermissionMode, AgentModelOption, ModelSource, } from './agentCapabilities.js';
|
|
30
32
|
export { ModelUsageEntrySchema, DailyActivitySchema, DailyModelTokensSchema, LongestSessionSchema, ClaudeStatsDataSchema, ProjectSummarySchema, StatsOverviewSchema, AgentTypeUsageSchema, AgentSessionUsageEntrySchema, AgentSessionUsageResponseSchema, ActivityUploadSchema, UsageReportSchema, TokenTrendPointSchema, ModelBreakdownEntrySchema, QuotaConfigSchema, } from './stats.js';
|
|
@@ -38,7 +40,7 @@ export { TEXT_EXTS, CODE_EXTS, DOC_EXTS, IMG_EXTS, FILE_CATEGORY_MAX_SIZE, BLOCK
|
|
|
38
40
|
export type { FileCategory } from './fileWhitelist.js';
|
|
39
41
|
export { PairingState, PairingRequestSchema, PairingResponseSchema, PairingExchangeSchema, PairingDeliverSchema, PairingStatusSchema, parseVersionByte, encodeVersionByte, CURRENT_DERIVATION_VERSION, } from './pairing.js';
|
|
40
42
|
export type { PairingRequest, PairingResponse, PairingExchange, PairingDeliver, PairingStatus, } from './pairing.js';
|
|
41
|
-
export { PlatformSchema, SessionStatusSchema, MachineSummarySchema, MachineRegisterResultSchema, } from './machine.js';
|
|
43
|
+
export { PLATFORMS, PlatformSchema, SessionStatusSchema, MachineSummarySchema, MachineRegisterResultSchema, } from './machine.js';
|
|
42
44
|
export type { Platform, SessionStatus, MachineSummary, MachineRegisterResult } from './machine.js';
|
|
43
45
|
export { SessionCreatePayloadSchema, UpdateMetadataPayloadSchema, UpdateStatePayloadSchema, ContextUsageUpdatePayloadSchema, SessionAlivePayloadSchema, GetSessionRuntimeStatusPayloadSchema, SessionDeletePayloadSchema, SessionEndPayloadSchema, SessionTerminatePayloadSchema, RenameSessionPayloadSchema, SessionContextResetPayloadSchema, ClaimAutoSessionTitlePayloadSchema, MessagePayloadSchema, BatchMessagePayloadSchema, GetMessagesPayloadSchema, SessionStatusPayloadSchema, MachineRegisterPayloadSchema, RegisterHistorySessionsPayloadSchema, HistorySessionEntrySchema, INBOUND_SESSION_STATUSES, } from './inboundEvents.js';
|
|
44
46
|
export type { SessionCreatePayload, UpdateMetadataPayload, UpdateStatePayload, ContextUsageUpdatePayload, SessionAlivePayload, GetSessionRuntimeStatusPayload, SessionDeletePayload, SessionEndPayload, SessionTerminatePayload, RenameSessionPayload, SessionContextResetPayload, ClaimAutoSessionTitlePayload, MessagePayload, BatchMessagePayload, GetMessagesPayload, SessionStatusPayload, MachineRegisterPayload, RegisterHistorySessionsPayload, HistorySessionEntry, } from './inboundEvents.js';
|
|
@@ -48,6 +50,8 @@ export { SessionResultSchema } from './sessionResult.js';
|
|
|
48
50
|
export type { SessionResult } from './sessionResult.js';
|
|
49
51
|
export { SpawnErrorCodeSchema, SpawnErrorSchema, createSpawnError } from './spawnError.js';
|
|
50
52
|
export type { SpawnErrorCode, SpawnError } from './spawnError.js';
|
|
53
|
+
export { AgentCompatibilityBlockStatusSchema, AgentCompatibilityBlockReasonSchema, AgentCompatibilityActionSchema, AgentCompatibilityBlockSchema, AgentCompatibilityBlocksSchema, } from './agentCompatibility.js';
|
|
54
|
+
export type { AgentCompatibilityBlockStatus, AgentCompatibilityBlockReason, AgentCompatibilityAction, AgentCompatibilityBlock, AgentCompatibilityBlocks, } from './agentCompatibility.js';
|
|
51
55
|
export { AGENT_INSTALL_GUIDE } from './agentInstallGuide.js';
|
|
52
56
|
export type { AgentInstallInfo } from './agentInstallGuide.js';
|
|
53
57
|
export { AGENT_COMMON_ENV_VARS } from './agentCommonEnv.js';
|
|
@@ -69,10 +73,15 @@ export type { TelemetryEventType, TelemetryEvent, TelemetryEventStrict, Telemetr
|
|
|
69
73
|
export * from './checkpointSchemas.js';
|
|
70
74
|
export { SourceMetadataSchema } from './sourceMetadata.js';
|
|
71
75
|
export type { SourceMetadata } from './sourceMetadata.js';
|
|
72
|
-
export * from './
|
|
73
|
-
export * from './
|
|
74
|
-
export
|
|
76
|
+
export * from './enterpriseGatewayExports.js';
|
|
77
|
+
export * from './enterpriseCurrency.js';
|
|
78
|
+
export * from './enterpriseOverview.js';
|
|
79
|
+
export * from './enterpriseRange.js';
|
|
80
|
+
export * from './opsExports.js';
|
|
81
|
+
export * from './enterpriseUserContainer.js';
|
|
82
|
+
export * from './enterpriseFileService.js';
|
|
75
83
|
export * from './edition.js';
|
|
84
|
+
export * from './pushPreferences.js';
|
|
76
85
|
export { LicensePayloadSchema, LicenseFileSchema, EnterpriseLicenseSchema, PrivateLicenseSchema, } from './license.js';
|
|
77
86
|
export type { LicensePayload, LicenseFile, EnterpriseLicensePayload, PrivateLicensePayload, } from './license.js';
|
|
78
87
|
export { FeedbackTypeSchema, FeedbackStatusSchema, DeviceInfoSchema, MachineSnapshotSchema, CreateFeedbackSchema, UpdateFeedbackSchema, RunModeSchema, RunModesSchema, BugFieldsSchema, SettingsSnapshotSchema, } from './feedback.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export{ACCOUNT_LANGUAGES,DEFAULT_ACCOUNT_LANGUAGE,ACCOUNT_LANGUAGE_CAPABILITY,AccountLanguageSchema,AccountLanguageRequestSchema,AccountLanguageResponseSchema,isAccountLanguage}from"./accountLanguage.js";export{parseSessionTitleFromTag,resolveSessionTitle,stripSessionTitleShortId}from"./sessionTitle.js";export{SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionTurnEndStatusSchema,TurnUsageSchema,SessionStartEventSchema,SessionStopEventSchema,SessionEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,SessionImageEventSchema,ImageAttachmentSchema,SessionContextUsageEventSchema,SessionCompactBoundaryEventSchema,emptyContextUsageSnapshot}from"./events.js";export{QuestionOptionSchema,SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,AnswerQuestionParamsSchema,ApprovePermissionParamsSchema,DenyPermissionParamsSchema,PermissionModeSchema}from"./interactionEvents.js";export
|
|
1
|
+
"use strict";export{ACCOUNT_LANGUAGES,DEFAULT_ACCOUNT_LANGUAGE,ACCOUNT_LANGUAGE_CAPABILITY,AccountLanguageSchema,AccountLanguageRequestSchema,AccountLanguageResponseSchema,isAccountLanguage}from"./accountLanguage.js";export{parseSessionTitleFromTag,resolveSessionTitle,stripSessionTitleShortId}from"./sessionTitle.js";export{SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionTurnEndStatusSchema,TurnUsageSchema,SessionStartEventSchema,SessionStopEventSchema,SessionEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,SessionImageEventSchema,ImageAttachmentSchema,SessionContextUsageEventSchema,SessionCompactBoundaryEventSchema,emptyContextUsageSnapshot}from"./events.js";export{QuestionOptionSchema,SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,AnswerQuestionParamsSchema,ApprovePermissionParamsSchema,DenyPermissionParamsSchema,PermissionModeSchema}from"./interactionEvents.js";export*from"./session.js";export{NotificationEventTypeSchema,DispatchNotificationParamsSchema}from"./notification.js";export{AgentTypeSchema,MessageMetaSchema,AGENT_TYPES,SPAWNABLE_AGENTS,CLI_AGENT_TYPES}from"./messageMeta.js";export{AGENT_SUPPORTS_IMAGES,AGENT_DISPLAY_NAMES}from"./messageMeta.js";export{SessionContextBoundaryKindSchema,getSessionContextBoundary,SessionMessageContentSchema,SessionMessageSchema,SessionProtocolMessageSchema,MessageContentSchema}from"./messages.js";export*from"./sessionBtw.js";export{UserMessageSchema,AgentMessageSchema,LegacyMessageContentSchema}from"./legacyProtocol.js";export{VersionedEncryptedValueSchema,VersionedNullableEncryptedValueSchema,VersionedMachineEncryptedValueSchema,UpdateNewMessageBodySchema,UpdateSessionBodySchema,UpdateMachineBodySchema,UpdateSessionResetBodySchema,CoreUpdateBodySchema,CoreUpdateContainerSchema}from"./sync.js";export{RpcMethod,SESSION_RPC_METHODS,MACHINE_RPC_METHODS,DAEMON_REQUIRED_RPC_METHODS,RpcCallSchema,RpcResultSchema,SpawnSessionParamsSchema,GetMessagesParamsSchema,GetMessagesResponseSchema,MachineInfoResponseSchema,CheckPathParamsSchema,AGENT_ENV_NONE,AgentEnvConfigSchema,AgentEnvConfigSetSchema,AgentSettingsSchema,SetAgentSettingsSchema,LabsSettingsSchema,CustomModelSchema,SkillDefinitionSchema,AiHelperConfigSchema,LocalAiHelperConfigSchema,LocalAgentSettingsSchema,AiHelperPayloadSchema,AiHelperDecryptedPayloadSchema,AiHelperParamsSchema,AiHelperCancelParamsSchema}from"./rpc.js";export{SessionSlashCommandSchema,parseSessionSlashCommands}from"./sessionSlashCommands.js";export{HANDOFF_BRIEF_TEMPLATE,HANDOFF_BRIEF_TEMPLATE_ZH,HANDOFF_BRIEF_REQUIREMENTS,HANDOFF_SOURCE_REFERENCE_GUIDANCE,SESSION_DELIVERY_TEMPLATE,SESSION_DELIVERY_TEMPLATE_ZH,sessionDeliveryTemplate,SESSION_DELIVERY_REQUIREMENTS,HandoffBriefSchema,getMissingHandoffBriefSections}from"./handoffBrief.js";export{SESSION_HANDOFF_CAPABILITY,HandoffProposalContentSchema,HandoffProposalCreateSchema,HandoffProposalStatusSchema,HandoffProposalContentEnvelopeSchema,HandoffProposalRecordSchema,InheritedDeliverySummarySchema,SessionHandoffContextSchema,AccountDeliveryRowSchema,AccountDeliveryPageSchema,DeliveryConsumerSchema}from"./workItems.js";export*from"./enterprisePolicyExports.js";export*from"./enterpriseDirectory.js";export{AGENT_CAPABILITIES,getAgentCapability,updateDynamicModes,getDynamicModes,normalizeModelId,NATIVE_MODE_TO_POLICY,resolvePolicyMode}from"./agentCapabilities.js";export{ModelUsageEntrySchema,DailyActivitySchema,DailyModelTokensSchema,LongestSessionSchema,ClaudeStatsDataSchema,ProjectSummarySchema,StatsOverviewSchema,AgentTypeUsageSchema,AgentSessionUsageEntrySchema,AgentSessionUsageResponseSchema,ActivityUploadSchema,UsageReportSchema,TokenTrendPointSchema,ModelBreakdownEntrySchema,QuotaConfigSchema}from"./stats.js";export{ControlLevel}from"./controlLevel.js";export{TEXT_EXTS,CODE_EXTS,DOC_EXTS,IMG_EXTS,FILE_CATEGORY_MAX_SIZE,BLOCKED_EXTS,ALLOWED_EXTENSIONS,FILE_SIGNATURES,getFileExt,resolveFileCategory,verifyMagicBytes}from"./fileWhitelist.js";export{PairingState,PairingRequestSchema,PairingResponseSchema,PairingExchangeSchema,PairingDeliverSchema,PairingStatusSchema,parseVersionByte,encodeVersionByte,CURRENT_DERIVATION_VERSION}from"./pairing.js";export{PLATFORMS,PlatformSchema,SessionStatusSchema,MachineSummarySchema,MachineRegisterResultSchema}from"./machine.js";export{SessionCreatePayloadSchema,UpdateMetadataPayloadSchema,UpdateStatePayloadSchema,ContextUsageUpdatePayloadSchema,SessionAlivePayloadSchema,GetSessionRuntimeStatusPayloadSchema,SessionDeletePayloadSchema,SessionEndPayloadSchema,SessionTerminatePayloadSchema,RenameSessionPayloadSchema,SessionContextResetPayloadSchema,ClaimAutoSessionTitlePayloadSchema,MessagePayloadSchema,BatchMessagePayloadSchema,GetMessagesPayloadSchema,SessionStatusPayloadSchema,MachineRegisterPayloadSchema,RegisterHistorySessionsPayloadSchema,HistorySessionEntrySchema,INBOUND_SESSION_STATUSES}from"./inboundEvents.js";export{FEATURE_REGISTRY,isFeatureAvailable,getUnavailableFeatures,isSubFeatureAvailable,getSubFeatureMinVersion,getFeatureMinVersion}from"./features.js";export{SessionResultSchema}from"./sessionResult.js";export{SpawnErrorCodeSchema,SpawnErrorSchema,createSpawnError}from"./spawnError.js";export{AgentCompatibilityBlockStatusSchema,AgentCompatibilityBlockReasonSchema,AgentCompatibilityActionSchema,AgentCompatibilityBlockSchema,AgentCompatibilityBlocksSchema}from"./agentCompatibility.js";export{AGENT_INSTALL_GUIDE}from"./agentInstallGuide.js";export{AGENT_COMMON_ENV_VARS}from"./agentCommonEnv.js";export{RetryPolicySchema,MissedRunPolicySchema,ScheduledSpawnParamsSchema,TaskExecutionStatusSchema,TaskExecutionTriggerSchema,TaskTriggerTypeSchema,TaskResultSchema,TaskStatsSchema,TaskExecutionBarSchema,TaskCardStatsSchema,CreateScheduledTaskSchema,UpdateScheduledTaskSchema,ScheduledTaskSummarySchema,TaskExecutionSchema,TriggerCallSchema,TriggerExecutionSchema,RegenerateTokenResponseSchema,CRON_RE}from"./scheduledTasks.js";export{TASK_RESULT_PREFIX,serializeTaskResult,parseTaskResultPayload,extractTaskResultFromText}from"./taskResult.js";export{PROTOCOL_VERSION}from"./protocol.js";export{parseSemver,compareVersions,satisfiesMin}from"./semver.js";export{createId}from"./utils.js";export{errorMessage}from"./errorMessage.js";export{BG_TASK_PREFIX,encodeBgTask,parseBgTask,isBgTaskLifecycleLine}from"./bgTask.js";export{BASH_TOOL_NAMES,isBashToolName,extractCommandSubject,MIN_SUBJECT_LENGTH}from"./permissionSubject.js";export{SOCKET_EVENTS}from"./socketEvents.js";export{TelemetryEventTypeSchema,TelemetryEventSchema,TelemetryReportPayloadSchema,sanitizeContext}from"./telemetry.js";export*from"./checkpointSchemas.js";export{SourceMetadataSchema}from"./sourceMetadata.js";export*from"./enterpriseGatewayExports.js";export*from"./enterpriseCurrency.js";export*from"./enterpriseOverview.js";export*from"./enterpriseRange.js";export*from"./opsExports.js";export*from"./enterpriseUserContainer.js";export*from"./enterpriseFileService.js";export*from"./edition.js";export*from"./pushPreferences.js";export{LicensePayloadSchema,LicenseFileSchema,EnterpriseLicenseSchema,PrivateLicenseSchema}from"./license.js";export{FeedbackTypeSchema,FeedbackStatusSchema,DeviceInfoSchema,MachineSnapshotSchema,CreateFeedbackSchema,UpdateFeedbackSchema,RunModeSchema,RunModesSchema,BugFieldsSchema,SettingsSnapshotSchema}from"./feedback.js";
|
|
@@ -229,7 +229,7 @@ export declare const ApprovePermissionParamsSchema: z.ZodObject<{
|
|
|
229
229
|
toolCallId: string;
|
|
230
230
|
sessionId: string;
|
|
231
231
|
allowTools?: string[] | undefined;
|
|
232
|
-
mode?: "never" | "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "yolo" | "untrusted" | "on-failure" | "on-request" | "autoEdit" | "
|
|
232
|
+
mode?: "never" | "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "read-only" | "yolo" | "untrusted" | "on-failure" | "on-request" | "autoEdit" | "safe-yolo" | "suggest" | "auto-edit" | "full-auto" | "build" | undefined;
|
|
233
233
|
autoApproveEdits?: boolean | undefined;
|
|
234
234
|
inputOverrides?: Record<string, unknown> | undefined;
|
|
235
235
|
}, {
|
|
@@ -237,7 +237,7 @@ export declare const ApprovePermissionParamsSchema: z.ZodObject<{
|
|
|
237
237
|
toolCallId: string;
|
|
238
238
|
sessionId: string;
|
|
239
239
|
allowTools?: string[] | undefined;
|
|
240
|
-
mode?: "never" | "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "yolo" | "untrusted" | "on-failure" | "on-request" | "autoEdit" | "
|
|
240
|
+
mode?: "never" | "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "read-only" | "yolo" | "untrusted" | "on-failure" | "on-request" | "autoEdit" | "safe-yolo" | "suggest" | "auto-edit" | "full-auto" | "build" | undefined;
|
|
241
241
|
autoApproveEdits?: boolean | undefined;
|
|
242
242
|
inputOverrides?: Record<string, unknown> | undefined;
|
|
243
243
|
}>;
|
package/dist/legacyProtocol.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
22
22
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
23
23
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
24
24
|
displayText: z.ZodOptional<z.ZodString>;
|
|
25
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
25
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
26
26
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
28
28
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -35,7 +35,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
35
35
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
36
36
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
37
37
|
displayText: z.ZodOptional<z.ZodString>;
|
|
38
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
38
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
39
39
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
40
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
41
41
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -48,7 +48,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
48
48
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
49
49
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
50
50
|
displayText: z.ZodOptional<z.ZodString>;
|
|
51
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
51
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
52
52
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
53
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
54
54
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -75,7 +75,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
75
75
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
76
76
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
77
77
|
displayText: z.ZodOptional<z.ZodString>;
|
|
78
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
78
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
79
79
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
80
80
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
81
81
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -88,7 +88,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
88
88
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
89
89
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
90
90
|
displayText: z.ZodOptional<z.ZodString>;
|
|
91
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
91
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
92
92
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
93
93
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
94
94
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -101,7 +101,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
101
101
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
102
102
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
103
103
|
displayText: z.ZodOptional<z.ZodString>;
|
|
104
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
104
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
105
105
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
106
106
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
107
107
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -128,7 +128,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
128
128
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
129
129
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
130
130
|
displayText: z.ZodOptional<z.ZodString>;
|
|
131
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
131
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
132
132
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
133
133
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
134
134
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -141,7 +141,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
141
141
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
142
142
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
143
143
|
displayText: z.ZodOptional<z.ZodString>;
|
|
144
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
144
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
145
145
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
146
146
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
147
147
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -154,7 +154,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
154
154
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
155
155
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
156
156
|
displayText: z.ZodOptional<z.ZodString>;
|
|
157
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
157
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
158
158
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
159
159
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
160
160
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -179,7 +179,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
179
179
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
180
180
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
181
181
|
displayText: z.ZodOptional<z.ZodString>;
|
|
182
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
182
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
183
183
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
184
184
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
185
185
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -192,7 +192,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
192
192
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
193
193
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
194
194
|
displayText: z.ZodOptional<z.ZodString>;
|
|
195
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
195
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
196
196
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
197
197
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
198
198
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -205,7 +205,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
205
205
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
206
206
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
207
207
|
displayText: z.ZodOptional<z.ZodString>;
|
|
208
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
208
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
209
209
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
210
210
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
211
211
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -228,7 +228,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
228
228
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
229
229
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
230
230
|
displayText: z.ZodOptional<z.ZodString>;
|
|
231
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
231
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
232
232
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
233
233
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
234
234
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -241,7 +241,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
241
241
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
242
242
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
243
243
|
displayText: z.ZodOptional<z.ZodString>;
|
|
244
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
244
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
245
245
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
246
246
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
247
247
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -254,7 +254,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
254
254
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
255
255
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
256
256
|
displayText: z.ZodOptional<z.ZodString>;
|
|
257
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
257
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
258
258
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
259
259
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
260
260
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -277,7 +277,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
277
277
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
278
278
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
279
279
|
displayText: z.ZodOptional<z.ZodString>;
|
|
280
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
280
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
281
281
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
282
282
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
283
283
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -290,7 +290,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
290
290
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
291
291
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
292
292
|
displayText: z.ZodOptional<z.ZodString>;
|
|
293
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
293
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
294
294
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
295
295
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
296
296
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -303,7 +303,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
303
303
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
304
304
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
305
305
|
displayText: z.ZodOptional<z.ZodString>;
|
|
306
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
306
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
307
307
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
308
308
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
309
309
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -332,7 +332,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
332
332
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
333
333
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
334
334
|
displayText: z.ZodOptional<z.ZodString>;
|
|
335
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
335
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
336
336
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
337
337
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
338
338
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -345,7 +345,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
345
345
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
346
346
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
347
347
|
displayText: z.ZodOptional<z.ZodString>;
|
|
348
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
348
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
349
349
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
350
350
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
351
351
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -358,7 +358,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
358
358
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
359
359
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
360
360
|
displayText: z.ZodOptional<z.ZodString>;
|
|
361
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
361
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
362
362
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
363
363
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
364
364
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -385,7 +385,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
385
385
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
386
386
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
387
387
|
displayText: z.ZodOptional<z.ZodString>;
|
|
388
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
388
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
389
389
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
390
390
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
391
391
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -398,7 +398,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
398
398
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
399
399
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
400
400
|
displayText: z.ZodOptional<z.ZodString>;
|
|
401
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
401
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
402
402
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
403
403
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
404
404
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -411,7 +411,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
411
411
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
412
412
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
413
413
|
displayText: z.ZodOptional<z.ZodString>;
|
|
414
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
414
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
415
415
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
416
416
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
417
417
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -438,7 +438,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
438
438
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
439
439
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
440
440
|
displayText: z.ZodOptional<z.ZodString>;
|
|
441
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
441
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
442
442
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
443
443
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
444
444
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -451,7 +451,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
451
451
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
452
452
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
453
453
|
displayText: z.ZodOptional<z.ZodString>;
|
|
454
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
454
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
455
455
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
456
456
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
457
457
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -464,7 +464,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
464
464
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
465
465
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
466
466
|
displayText: z.ZodOptional<z.ZodString>;
|
|
467
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
467
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
468
468
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
469
469
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
470
470
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -487,7 +487,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
487
487
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
488
488
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
489
489
|
displayText: z.ZodOptional<z.ZodString>;
|
|
490
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
490
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
491
491
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
492
492
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
493
493
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -500,7 +500,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
500
500
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
501
501
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
502
502
|
displayText: z.ZodOptional<z.ZodString>;
|
|
503
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
503
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
504
504
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
505
505
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
506
506
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -513,7 +513,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
513
513
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
514
514
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
515
515
|
displayText: z.ZodOptional<z.ZodString>;
|
|
516
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
516
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
517
517
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
518
518
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
519
519
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -536,7 +536,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
536
536
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
537
537
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
538
538
|
displayText: z.ZodOptional<z.ZodString>;
|
|
539
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
539
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
540
540
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
541
541
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
542
542
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -549,7 +549,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
549
549
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
550
550
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
551
551
|
displayText: z.ZodOptional<z.ZodString>;
|
|
552
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
552
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
553
553
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
554
554
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
555
555
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -562,7 +562,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
562
562
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
563
563
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
564
564
|
displayText: z.ZodOptional<z.ZodString>;
|
|
565
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
565
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
566
566
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
567
567
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
568
568
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -585,7 +585,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
585
585
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
586
586
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
587
587
|
displayText: z.ZodOptional<z.ZodString>;
|
|
588
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
588
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
589
589
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
590
590
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
591
591
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -598,7 +598,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
598
598
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
599
599
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
600
600
|
displayText: z.ZodOptional<z.ZodString>;
|
|
601
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
601
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
602
602
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
603
603
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
604
604
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
@@ -611,7 +611,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
611
611
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
612
612
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
613
613
|
displayText: z.ZodOptional<z.ZodString>;
|
|
614
|
-
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "
|
|
614
|
+
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "codex", "opencode", "pi", "copilot", "gemini", "hermes", "openclaw", "custom"]>>>;
|
|
615
615
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
616
616
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
617
617
|
}, z.ZodTypeAny, "passthrough">>>;
|
package/dist/machine.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const PLATFORMS: readonly ["darwin", "linux", "win32"];
|
|
2
3
|
export declare const PlatformSchema: z.ZodEnum<["darwin", "linux", "win32"]>;
|
|
3
4
|
export type Platform = z.infer<typeof PlatformSchema>;
|
|
4
5
|
export declare const SessionStatusSchema: z.ZodEnum<["idle", "thinking", "tool_running", "permission_required", "disconnected"]>;
|
|
@@ -14,8 +15,6 @@ export declare const MachineSummarySchema: z.ZodObject<{
|
|
|
14
15
|
activeAt: z.ZodNumber;
|
|
15
16
|
createdAt: z.ZodNumber;
|
|
16
17
|
|
|
17
|
-
hasTerminal: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
|
|
19
18
|
activeSessions: z.ZodOptional<z.ZodNumber>;
|
|
20
19
|
|
|
21
20
|
totalSessions: z.ZodOptional<z.ZodNumber>;
|
|
@@ -54,8 +53,6 @@ export declare const MachineSummarySchema: z.ZodObject<{
|
|
|
54
53
|
activeAt: z.ZodNumber;
|
|
55
54
|
createdAt: z.ZodNumber;
|
|
56
55
|
|
|
57
|
-
hasTerminal: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
-
|
|
59
56
|
activeSessions: z.ZodOptional<z.ZodNumber>;
|
|
60
57
|
|
|
61
58
|
totalSessions: z.ZodOptional<z.ZodNumber>;
|
|
@@ -94,8 +91,6 @@ export declare const MachineSummarySchema: z.ZodObject<{
|
|
|
94
91
|
activeAt: z.ZodNumber;
|
|
95
92
|
createdAt: z.ZodNumber;
|
|
96
93
|
|
|
97
|
-
hasTerminal: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
|
|
99
94
|
activeSessions: z.ZodOptional<z.ZodNumber>;
|
|
100
95
|
|
|
101
96
|
totalSessions: z.ZodOptional<z.ZodNumber>;
|
package/dist/machine.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as o}from"zod";import{LabsSettingsSchema as n}from"./rpc.js";import{AccountLanguageSchema as t}from"./accountLanguage.js";export const
|
|
1
|
+
"use strict";import{z as o}from"zod";import{LabsSettingsSchema as n}from"./rpc.js";import{AccountLanguageSchema as t}from"./accountLanguage.js";export const PLATFORMS=["darwin","linux","win32"],PlatformSchema=o.enum(PLATFORMS),SessionStatusSchema=o.enum(["idle","thinking","tool_running","permission_required","disconnected"]),MachineSummarySchema=o.object({id:o.string(),hostname:o.string(),platform:PlatformSchema,arch:o.string().optional(),displayName:o.string().optional(),daemonVersion:o.string().optional(),active:o.boolean(),activeAt:o.number(),createdAt:o.number(),activeSessions:o.number().optional(),totalSessions:o.number().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),supportedMethods:o.array(o.string()).optional(),disconnectReason:o.enum(["normal","upgrade-required"]).optional(),upgradeStatus:o.enum(["idle","preflight","downloading","ready","switching","failed"]).optional(),upgradeError:o.string().optional(),superseded:o.boolean().optional(),derivationVersion:o.number().int().min(0).optional(),autoUpgradeDaemon:o.boolean().optional(),notifyFeishu:o.boolean().optional(),notifyDingtalk:o.boolean().optional(),lastHeartbeat:o.number().optional()}).passthrough(),MachineRegisterResultSchema=o.object({ok:o.boolean(),error:o.string().optional(),accountId:o.string().min(1).optional(),latestVersion:o.string().optional(),labsSettings:n.optional(),preferredLanguage:t.optional()}).passthrough(),SetDefaultMachineBodySchema=o.object({machineId:o.string().nullable()}).strict();
|