@agentdock/wire 0.0.92 → 0.0.94
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/accountLanguage.d.ts +32 -0
- package/dist/accountLanguage.js +1 -0
- package/dist/agentCapabilities.d.ts +26 -0
- package/dist/agentCapabilities.js +1 -1
- package/dist/agentRuntimeSettings.d.ts +140 -0
- package/dist/agentRuntimeSettings.js +1 -0
- package/dist/enterpriseGateway.d.ts +215 -0
- package/dist/enterpriseGateway.js +1 -0
- package/dist/envelope.d.ts +45 -30
- package/dist/events.d.ts +24 -12
- package/dist/events.js +1 -1
- package/dist/features.d.ts +7 -3
- package/dist/features.js +1 -1
- package/dist/feedback.d.ts +18 -18
- package/dist/gateway.d.ts +386 -0
- package/dist/gateway.js +1 -0
- package/dist/handoffBrief.d.ts +14 -0
- package/dist/handoffBrief.js +52 -0
- package/dist/inboundEvents.d.ts +70 -0
- package/dist/inboundEvents.js +1 -1
- package/dist/index.d.ts +20 -12
- 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 +9 -0
- package/dist/machine.js +1 -1
- package/dist/messageMeta.d.ts +6 -4
- package/dist/messageMeta.js +1 -1
- package/dist/messages.d.ts +338 -216
- package/dist/messages.js +1 -1
- package/dist/notification.d.ts +1 -1
- package/dist/notification.js +1 -1
- package/dist/rpc.d.ts +884 -84
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +50 -50
- package/dist/sessionBtw.d.ts +153 -0
- package/dist/sessionBtw.js +1 -0
- package/dist/sessionTitle.d.ts +16 -0
- package/dist/sessionTitle.js +1 -0
- package/dist/socketEvents.d.ts +9 -0
- package/dist/socketEvents.js +1 -1
- package/dist/sourceMetadata.d.ts +2 -2
- package/dist/stats.d.ts +87 -49
- package/dist/stats.js +1 -1
- package/dist/sync.d.ts +315 -0
- package/dist/sync.js +1 -1
- package/dist/workItems.d.ts +345 -0
- package/dist/workItems.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export { ACCOUNT_LANGUAGES, DEFAULT_ACCOUNT_LANGUAGE, ACCOUNT_LANGUAGE_CAPABILITY, AccountLanguageSchema, AccountLanguageRequestSchema, AccountLanguageResponseSchema, isAccountLanguage, } from './accountLanguage.js';
|
|
2
|
+
export type { AccountLanguage } from './accountLanguage.js';
|
|
3
|
+
export { parseSessionTitleFromTag, resolveSessionTitle, stripSessionTitleShortId, } from './sessionTitle.js';
|
|
1
4
|
export { SessionTextEventSchema, SessionServiceEventSchema, SessionToolCallStartEventSchema, SessionToolCallEndEventSchema, SessionFileEventSchema, SessionTurnStartEventSchema, SessionTurnEndEventSchema, SessionTurnEndStatusSchema, TurnUsageSchema, SessionStartEventSchema, SessionStopEventSchema, SessionEventSchema, SessionPermissionResolvedEventSchema, PermissionActionSchema, SessionImageEventSchema, ImageAttachmentSchema, SessionContextUsageEventSchema, SessionCompactBoundaryEventSchema, emptyContextUsageSnapshot, } from './events.js';
|
|
2
5
|
export type { SessionEvent, SessionTurnEndStatus, TurnUsage, SessionQuestionEvent, SessionPermissionRequestEvent, SessionAnswerEvent, SessionPermissionResolvedEvent, PermissionAction, ImageAttachment, SessionContextUsageEvent, SessionCompactBoundaryEvent, } from './events.js';
|
|
3
6
|
export { QuestionOptionSchema, SessionQuestionEventSchema, SessionPermissionRequestEventSchema, SessionAnswerEventSchema, AnswerQuestionParamsSchema, ApprovePermissionParamsSchema, DenyPermissionParamsSchema, PermissionModeSchema, } from './interactionEvents.js';
|
|
@@ -7,34 +10,38 @@ export type { SessionRole, SessionEnvelope, CreateEnvelopeOptions } from './enve
|
|
|
7
10
|
export { NotificationEventTypeSchema, DispatchNotificationParamsSchema } from './notification.js';
|
|
8
11
|
export type { NotificationEventType, DispatchNotificationParams } from './notification.js';
|
|
9
12
|
export { AgentTypeSchema, MessageMetaSchema, AGENT_TYPES, SPAWNABLE_AGENTS, CLI_AGENT_TYPES, } from './messageMeta.js';
|
|
10
|
-
export { AGENT_SUPPORTS_IMAGES } from './messageMeta.js';
|
|
13
|
+
export { AGENT_SUPPORTS_IMAGES, AGENT_DISPLAY_NAMES } from './messageMeta.js';
|
|
11
14
|
export type { AgentType, MessageMeta, CliAgentType } from './messageMeta.js';
|
|
12
|
-
export { SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, MessageContentSchema, } from './messages.js';
|
|
13
|
-
export
|
|
15
|
+
export { SessionContextBoundaryKindSchema, getSessionContextBoundary, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, MessageContentSchema, } from './messages.js';
|
|
16
|
+
export * from './sessionBtw.js';
|
|
17
|
+
export type { SessionContextBoundaryKind, SessionMessageContent, SessionMessage, SessionProtocolMessage, MessageContent, } from './messages.js';
|
|
14
18
|
export { UserMessageSchema, AgentMessageSchema, LegacyMessageContentSchema, } from './legacyProtocol.js';
|
|
15
19
|
export type { UserMessage, AgentMessage, LegacyMessageContent } from './legacyProtocol.js';
|
|
16
20
|
export { VersionedEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VersionedMachineEncryptedValueSchema, UpdateNewMessageBodySchema, UpdateSessionBodySchema, UpdateMachineBodySchema, UpdateSessionResetBodySchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, } from './sync.js';
|
|
17
21
|
export type { VersionedEncryptedValue, VersionedNullableEncryptedValue, VersionedMachineEncryptedValue, UpdateNewMessageBody, UpdateSessionBody, UpdateMachineBody, UpdateSessionResetBody, CoreUpdateBody, CoreUpdateContainer, } from './sync.js';
|
|
18
|
-
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, } from './rpc.js';
|
|
19
|
-
export
|
|
20
|
-
export {
|
|
22
|
+
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, } from './rpc.js';
|
|
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
|
+
export { SESSION_HANDOFF_CAPABILITY, HandoffProposalContentSchema, HandoffProposalCreateSchema, HandoffProposalStatusSchema, HandoffProposalContentEnvelopeSchema, HandoffProposalRecordSchema, InheritedDeliverySummarySchema, SessionHandoffContextSchema, AccountDeliveryRowSchema, AccountDeliveryPageSchema, DeliveryConsumerSchema, } from './workItems.js';
|
|
25
|
+
export type { HandoffProposalContent, HandoffProposalCreate, HandoffProposalRecord, HandoffProposalStatus, HandoffProposalContentEnvelope, InheritedDeliverySummary, SessionHandoffContext, AccountDeliveryRow, AccountDeliveryPage, DeliveryConsumer, } from './workItems.js';
|
|
26
|
+
export type { RpcCall, RpcResult, SpawnSessionParams, CheckPathParams, GetMessagesParams, GetMessagesResponse, MachineInfoResponse, AgentEnvConfig, AgentSettings, LabsSettings, CustomModel, SkillDefinition, AiHelperConfig, LocalAiHelperConfig, LocalAgentSettings, AiHelperParams, } from './rpc.js';
|
|
27
|
+
export { AGENT_CAPABILITIES, getAgentCapability, updateDynamicModes, getDynamicModes, normalizeModelId, NATIVE_MODE_TO_POLICY, resolvePolicyMode, } from './agentCapabilities.js';
|
|
21
28
|
export type { AgentCapability, AgentPermissionMode, AgentModelOption, ModelSource, } from './agentCapabilities.js';
|
|
22
|
-
export { ModelUsageEntrySchema, DailyActivitySchema, DailyModelTokensSchema, LongestSessionSchema, ClaudeStatsDataSchema, ProjectSummarySchema, StatsOverviewSchema, AgentTypeUsageSchema, ActivityUploadSchema, UsageReportSchema, TokenTrendPointSchema, ModelBreakdownEntrySchema, QuotaConfigSchema, } from './stats.js';
|
|
29
|
+
export { ModelUsageEntrySchema, DailyActivitySchema, DailyModelTokensSchema, LongestSessionSchema, ClaudeStatsDataSchema, ProjectSummarySchema, StatsOverviewSchema, AgentTypeUsageSchema, AgentSessionUsageEntrySchema, AgentSessionUsageResponseSchema, ActivityUploadSchema, UsageReportSchema, TokenTrendPointSchema, ModelBreakdownEntrySchema, QuotaConfigSchema, } from './stats.js';
|
|
23
30
|
export type { StatsOverview, ClaudeStatsData, ProjectSummary, ModelUsageEntry as WireModelUsageEntry, // AS-CAST-OK: export alias renames type, not a type assertion
|
|
24
31
|
DailyActivity as WireDailyActivity, // AS-CAST-OK: export alias renames type, not a type assertion
|
|
25
32
|
LongestSession as WireLongestSession, // AS-CAST-OK: export alias renames type, not a type assertion
|
|
26
|
-
AgentTypeUsage, ActivityUpload, UsageReport, TokenTrendPoint, ModelBreakdownEntry, QuotaConfig, QuotaStatusSchema, QuotaStatus, } from './stats.js';
|
|
33
|
+
AgentTypeUsage, AgentSessionUsageEntry, AgentSessionUsageResponse, ActivityUpload, UsageReport, TokenTrendPoint, ModelBreakdownEntry, QuotaConfig, QuotaStatusSchema, QuotaStatus, } from './stats.js';
|
|
27
34
|
export { ControlLevel } from './controlLevel.js';
|
|
28
35
|
export type { ControlLevelType } from './controlLevel.js';
|
|
29
36
|
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';
|
|
30
37
|
export type { FileCategory } from './fileWhitelist.js';
|
|
31
|
-
export { PairingState, PairingRequestSchema, PairingResponseSchema, PairingExchangeSchema, PairingDeliverSchema, PairingStatusSchema, parseVersionByte, encodeVersionByte,
|
|
38
|
+
export { PairingState, PairingRequestSchema, PairingResponseSchema, PairingExchangeSchema, PairingDeliverSchema, PairingStatusSchema, parseVersionByte, encodeVersionByte, CURRENT_DERIVATION_VERSION, } from './pairing.js';
|
|
32
39
|
export type { PairingRequest, PairingResponse, PairingExchange, PairingDeliver, PairingStatus, } from './pairing.js';
|
|
33
40
|
export { PlatformSchema, SessionStatusSchema, MachineSummarySchema, MachineRegisterResultSchema, } from './machine.js';
|
|
34
41
|
export type { Platform, SessionStatus, MachineSummary, MachineRegisterResult } from './machine.js';
|
|
35
|
-
export { SessionCreatePayloadSchema, UpdateMetadataPayloadSchema, UpdateStatePayloadSchema, ContextUsageUpdatePayloadSchema, SessionAlivePayloadSchema, GetSessionRuntimeStatusPayloadSchema, SessionDeletePayloadSchema, SessionEndPayloadSchema, RenameSessionPayloadSchema, MessagePayloadSchema, BatchMessagePayloadSchema, GetMessagesPayloadSchema, SessionStatusPayloadSchema, MachineRegisterPayloadSchema, RegisterHistorySessionsPayloadSchema, HistorySessionEntrySchema, INBOUND_SESSION_STATUSES, } from './inboundEvents.js';
|
|
36
|
-
export type { SessionCreatePayload, UpdateMetadataPayload, UpdateStatePayload, ContextUsageUpdatePayload, SessionAlivePayload, GetSessionRuntimeStatusPayload, SessionDeletePayload, SessionEndPayload, RenameSessionPayload, MessagePayload, BatchMessagePayload, GetMessagesPayload, SessionStatusPayload, MachineRegisterPayload, RegisterHistorySessionsPayload, HistorySessionEntry, } from './inboundEvents.js';
|
|
37
|
-
export { FEATURE_REGISTRY, isFeatureAvailable, getUnavailableFeatures, isSubFeatureAvailable, getSubFeatureMinVersion, } from './features.js';
|
|
42
|
+
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';
|
|
43
|
+
export type { SessionCreatePayload, UpdateMetadataPayload, UpdateStatePayload, ContextUsageUpdatePayload, SessionAlivePayload, GetSessionRuntimeStatusPayload, SessionDeletePayload, SessionEndPayload, SessionTerminatePayload, RenameSessionPayload, SessionContextResetPayload, ClaimAutoSessionTitlePayload, MessagePayload, BatchMessagePayload, GetMessagesPayload, SessionStatusPayload, MachineRegisterPayload, RegisterHistorySessionsPayload, HistorySessionEntry, } from './inboundEvents.js';
|
|
44
|
+
export { FEATURE_REGISTRY, isFeatureAvailable, getUnavailableFeatures, isSubFeatureAvailable, getSubFeatureMinVersion, getFeatureMinVersion, } from './features.js';
|
|
38
45
|
export type { FeatureDefinition, SubFeatureDefinition } from './features.js';
|
|
39
46
|
export { SessionResultSchema } from './sessionResult.js';
|
|
40
47
|
export type { SessionResult } from './sessionResult.js';
|
|
@@ -61,6 +68,7 @@ export type { TelemetryEventType, TelemetryEvent, TelemetryEventStrict, Telemetr
|
|
|
61
68
|
export * from './checkpointSchemas.js';
|
|
62
69
|
export { SourceMetadataSchema } from './sourceMetadata.js';
|
|
63
70
|
export type { SourceMetadata } from './sourceMetadata.js';
|
|
71
|
+
export * from './gateway.js';
|
|
64
72
|
export { OpsRpcMessageSchema, OpsMethodSchema, OpsRpcTypeSchema, DockerImageRefSchema, FileEntrySchema, FileStatSchema, StorageUsageSchema, SyncUserSchema, SyncFullPayloadSchema, SyncUserCreatedPayloadSchema, SyncContainerStatusPayloadSchema, SyncUserPairedPayloadSchema, type OpsRpcMessage, type OpsMethod, type OpsRpcType, type DockerImageRef, type OpsTunnelMetrics, type FileEntry, type FileStat, type StorageUsage, type SyncUser, type SyncFullPayload, type SyncUserCreatedPayload, type SyncContainerStatusPayload, type SyncUserPairedPayload, } from './ops.js';
|
|
65
73
|
export * from './edition.js';
|
|
66
74
|
export { LicensePayloadSchema, LicenseFileSchema, EnterpriseLicenseSchema, PrivateLicenseSchema, } from './license.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";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{SessionRoleSchema,SessionEnvelopeSchema,createEnvelope}from"./envelope.js";export{NotificationEventTypeSchema,DispatchNotificationParamsSchema}from"./notification.js";export{AgentTypeSchema,MessageMetaSchema,AGENT_TYPES,SPAWNABLE_AGENTS,CLI_AGENT_TYPES}from"./messageMeta.js";export{AGENT_SUPPORTS_IMAGES}from"./messageMeta.js";export{SessionMessageContentSchema,SessionMessageSchema,SessionProtocolMessageSchema,MessageContentSchema}from"./messages.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}from"./rpc.js";export{AGENT_CAPABILITIES,getAgentCapability,updateDynamicModes,getDynamicModes,normalizeModelId}from"./agentCapabilities.js";export{ModelUsageEntrySchema,DailyActivitySchema,DailyModelTokensSchema,LongestSessionSchema,ClaudeStatsDataSchema,ProjectSummarySchema,StatsOverviewSchema,AgentTypeUsageSchema,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,
|
|
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{SessionRoleSchema,SessionEnvelopeSchema,createEnvelope}from"./envelope.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}from"./rpc.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{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{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{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"./gateway.js";export{OpsRpcMessageSchema,OpsMethodSchema,OpsRpcTypeSchema,DockerImageRefSchema,FileEntrySchema,FileStatSchema,StorageUsageSchema,SyncUserSchema,SyncFullPayloadSchema,SyncUserCreatedPayloadSchema,SyncContainerStatusPayloadSchema,SyncUserPairedPayloadSchema}from"./ops.js";export*from"./edition.js";export{LicensePayloadSchema,LicenseFileSchema,EnterpriseLicenseSchema,PrivateLicenseSchema}from"./license.js";export{FeedbackTypeSchema,FeedbackStatusSchema,DeviceInfoSchema,MachineSnapshotSchema,CreateFeedbackSchema,UpdateFeedbackSchema,RunModeSchema,RunModesSchema,BugFieldsSchema,SettingsSnapshotSchema}from"./feedback.js";
|
|
@@ -236,7 +236,7 @@ export declare const ApprovePermissionParamsSchema: z.ZodObject<{
|
|
|
236
236
|
toolCallId: string;
|
|
237
237
|
sessionId: string;
|
|
238
238
|
allowTools?: string[] | undefined;
|
|
239
|
-
mode?: "never" | "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "
|
|
239
|
+
mode?: "never" | "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "yolo" | "untrusted" | "on-failure" | "on-request" | "autoEdit" | "read-only" | "safe-yolo" | "suggest" | "auto-edit" | "full-auto" | "build" | undefined;
|
|
240
240
|
autoApproveEdits?: boolean | undefined;
|
|
241
241
|
inputOverrides?: Record<string, unknown> | undefined;
|
|
242
242
|
}, {
|
|
@@ -244,7 +244,7 @@ export declare const ApprovePermissionParamsSchema: z.ZodObject<{
|
|
|
244
244
|
toolCallId: string;
|
|
245
245
|
sessionId: string;
|
|
246
246
|
allowTools?: string[] | undefined;
|
|
247
|
-
mode?: "never" | "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "
|
|
247
|
+
mode?: "never" | "default" | "acceptEdits" | "auto" | "plan" | "bypassPermissions" | "yolo" | "untrusted" | "on-failure" | "on-request" | "autoEdit" | "read-only" | "safe-yolo" | "suggest" | "auto-edit" | "full-auto" | "build" | undefined;
|
|
248
248
|
autoApproveEdits?: boolean | undefined;
|
|
249
249
|
inputOverrides?: Record<string, unknown> | undefined;
|
|
250
250
|
}>;
|
package/dist/legacyProtocol.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
19
19
|
localKey: z.ZodOptional<z.ZodString>;
|
|
20
20
|
meta: z.ZodOptional<z.ZodObject<{
|
|
21
21
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
22
|
-
permissionMode: z.ZodOptional<z.
|
|
22
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
23
23
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -32,7 +32,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
32
32
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
33
33
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
34
34
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
35
|
-
permissionMode: z.ZodOptional<z.
|
|
35
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
36
36
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
38
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -45,7 +45,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
45
45
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
46
46
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
47
47
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
48
|
-
permissionMode: z.ZodOptional<z.
|
|
48
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
49
49
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
50
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -72,7 +72,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
72
72
|
localKey: z.ZodOptional<z.ZodString>;
|
|
73
73
|
meta: z.ZodOptional<z.ZodObject<{
|
|
74
74
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
75
|
-
permissionMode: z.ZodOptional<z.
|
|
75
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
76
76
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
77
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
78
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -85,7 +85,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
85
85
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
86
86
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
87
87
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
88
|
-
permissionMode: z.ZodOptional<z.
|
|
88
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
89
89
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
90
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
91
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -98,7 +98,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
98
98
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
99
99
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
100
100
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
101
|
-
permissionMode: z.ZodOptional<z.
|
|
101
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
102
102
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
103
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
104
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -125,7 +125,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
125
125
|
localKey: z.ZodOptional<z.ZodString>;
|
|
126
126
|
meta: z.ZodOptional<z.ZodObject<{
|
|
127
127
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
128
|
-
permissionMode: z.ZodOptional<z.
|
|
128
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
129
129
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
130
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
131
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -138,7 +138,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
138
138
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
139
139
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
140
140
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
141
|
-
permissionMode: z.ZodOptional<z.
|
|
141
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
142
142
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
143
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
144
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -151,7 +151,7 @@ export declare const UserMessageSchema: z.ZodObject<{
|
|
|
151
151
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
152
152
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
153
153
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
154
|
-
permissionMode: z.ZodOptional<z.
|
|
154
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
155
155
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
156
156
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
157
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -176,7 +176,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
176
176
|
}, z.ZodTypeAny, "passthrough">>;
|
|
177
177
|
meta: z.ZodOptional<z.ZodObject<{
|
|
178
178
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
179
|
-
permissionMode: z.ZodOptional<z.
|
|
179
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
180
180
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
181
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
182
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -189,7 +189,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
189
189
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
190
190
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
191
191
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
192
|
-
permissionMode: z.ZodOptional<z.
|
|
192
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
193
193
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
194
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
195
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -202,7 +202,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
202
202
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
203
203
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
204
204
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
205
|
-
permissionMode: z.ZodOptional<z.
|
|
205
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
206
206
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
207
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
208
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -225,7 +225,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
225
225
|
}, z.ZodTypeAny, "passthrough">>;
|
|
226
226
|
meta: z.ZodOptional<z.ZodObject<{
|
|
227
227
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
228
|
-
permissionMode: z.ZodOptional<z.
|
|
228
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
229
229
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
230
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
231
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -238,7 +238,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
238
238
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
239
239
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
240
240
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
241
|
-
permissionMode: z.ZodOptional<z.
|
|
241
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
242
242
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
243
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
244
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -251,7 +251,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
251
251
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
252
252
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
253
253
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
254
|
-
permissionMode: z.ZodOptional<z.
|
|
254
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
255
255
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
256
256
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
257
257
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -274,7 +274,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
274
274
|
}, z.ZodTypeAny, "passthrough">>;
|
|
275
275
|
meta: z.ZodOptional<z.ZodObject<{
|
|
276
276
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
277
|
-
permissionMode: z.ZodOptional<z.
|
|
277
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
278
278
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
279
279
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
280
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -287,7 +287,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
287
287
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
288
288
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
289
289
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
290
|
-
permissionMode: z.ZodOptional<z.
|
|
290
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
291
291
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
292
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
293
293
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -300,7 +300,7 @@ export declare const AgentMessageSchema: z.ZodObject<{
|
|
|
300
300
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
301
301
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
302
302
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
303
|
-
permissionMode: z.ZodOptional<z.
|
|
303
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
304
304
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
305
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
306
306
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -329,7 +329,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
329
329
|
localKey: z.ZodOptional<z.ZodString>;
|
|
330
330
|
meta: z.ZodOptional<z.ZodObject<{
|
|
331
331
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
332
|
-
permissionMode: z.ZodOptional<z.
|
|
332
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
333
333
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
334
334
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
335
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -342,7 +342,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
342
342
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
343
343
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
344
344
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
345
|
-
permissionMode: z.ZodOptional<z.
|
|
345
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
346
346
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
347
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
348
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -355,7 +355,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
355
355
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
356
356
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
357
357
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
358
|
-
permissionMode: z.ZodOptional<z.
|
|
358
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
359
359
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
360
360
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
361
361
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -382,7 +382,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
382
382
|
localKey: z.ZodOptional<z.ZodString>;
|
|
383
383
|
meta: z.ZodOptional<z.ZodObject<{
|
|
384
384
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
385
|
-
permissionMode: z.ZodOptional<z.
|
|
385
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
386
386
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
387
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
388
388
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -395,7 +395,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
395
395
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
396
396
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
397
397
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
398
|
-
permissionMode: z.ZodOptional<z.
|
|
398
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
399
399
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
400
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
401
401
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -408,7 +408,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
408
408
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
409
409
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
410
410
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
411
|
-
permissionMode: z.ZodOptional<z.
|
|
411
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
412
412
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
413
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
414
414
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -435,7 +435,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
435
435
|
localKey: z.ZodOptional<z.ZodString>;
|
|
436
436
|
meta: z.ZodOptional<z.ZodObject<{
|
|
437
437
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
438
|
-
permissionMode: z.ZodOptional<z.
|
|
438
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
439
439
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
440
440
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
441
441
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -448,7 +448,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
448
448
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
449
449
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
450
450
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
451
|
-
permissionMode: z.ZodOptional<z.
|
|
451
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
452
452
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
453
453
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
454
454
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -461,7 +461,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
461
461
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
462
462
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
463
463
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
464
|
-
permissionMode: z.ZodOptional<z.
|
|
464
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
465
465
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
466
466
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
467
467
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -484,7 +484,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
484
484
|
}, z.ZodTypeAny, "passthrough">>;
|
|
485
485
|
meta: z.ZodOptional<z.ZodObject<{
|
|
486
486
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
487
|
-
permissionMode: z.ZodOptional<z.
|
|
487
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
488
488
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
489
489
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
490
490
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -497,7 +497,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
497
497
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
498
498
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
499
499
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
500
|
-
permissionMode: z.ZodOptional<z.
|
|
500
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
501
501
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
502
502
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
503
503
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -510,7 +510,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
510
510
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
511
511
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
512
512
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
513
|
-
permissionMode: z.ZodOptional<z.
|
|
513
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
514
514
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
515
515
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
516
516
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -533,7 +533,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
533
533
|
}, z.ZodTypeAny, "passthrough">>;
|
|
534
534
|
meta: z.ZodOptional<z.ZodObject<{
|
|
535
535
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
536
|
-
permissionMode: z.ZodOptional<z.
|
|
536
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
537
537
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
538
538
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
539
539
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -546,7 +546,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
546
546
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
547
547
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
548
548
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
549
|
-
permissionMode: z.ZodOptional<z.
|
|
549
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
550
550
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
551
551
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
552
552
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -559,7 +559,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
559
559
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
560
560
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
561
561
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
562
|
-
permissionMode: z.ZodOptional<z.
|
|
562
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
563
563
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
564
564
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
565
565
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -582,7 +582,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
582
582
|
}, z.ZodTypeAny, "passthrough">>;
|
|
583
583
|
meta: z.ZodOptional<z.ZodObject<{
|
|
584
584
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
585
|
-
permissionMode: z.ZodOptional<z.
|
|
585
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
586
586
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
587
587
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
588
588
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -595,7 +595,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
595
595
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
596
596
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
597
597
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
598
|
-
permissionMode: z.ZodOptional<z.
|
|
598
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
599
599
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
600
600
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
601
601
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -608,7 +608,7 @@ export declare const LegacyMessageContentSchema: z.ZodDiscriminatedUnion<"role",
|
|
|
608
608
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
609
609
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
610
610
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
611
|
-
permissionMode: z.ZodOptional<z.
|
|
611
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
612
612
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
613
613
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
614
614
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
package/dist/machine.d.ts
CHANGED
|
@@ -135,6 +135,8 @@ export type MachineSummary = z.infer<typeof MachineSummarySchema>;
|
|
|
135
135
|
export declare const MachineRegisterResultSchema: z.ZodObject<{
|
|
136
136
|
ok: z.ZodBoolean;
|
|
137
137
|
error: z.ZodOptional<z.ZodString>;
|
|
138
|
+
/** Authenticated account identity, persisted locally for E2EE WorkItem operations. */
|
|
139
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
138
140
|
latestVersion: z.ZodOptional<z.ZodString>;
|
|
139
141
|
labsSettings: z.ZodOptional<z.ZodObject<{
|
|
140
142
|
historySessionSync: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -143,9 +145,12 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
|
|
|
143
145
|
}, {
|
|
144
146
|
historySessionSync?: boolean | undefined;
|
|
145
147
|
}>>;
|
|
148
|
+
preferredLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
|
|
146
149
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
147
150
|
ok: z.ZodBoolean;
|
|
148
151
|
error: z.ZodOptional<z.ZodString>;
|
|
152
|
+
/** Authenticated account identity, persisted locally for E2EE WorkItem operations. */
|
|
153
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
149
154
|
latestVersion: z.ZodOptional<z.ZodString>;
|
|
150
155
|
labsSettings: z.ZodOptional<z.ZodObject<{
|
|
151
156
|
historySessionSync: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -154,9 +159,12 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
|
|
|
154
159
|
}, {
|
|
155
160
|
historySessionSync?: boolean | undefined;
|
|
156
161
|
}>>;
|
|
162
|
+
preferredLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
|
|
157
163
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
158
164
|
ok: z.ZodBoolean;
|
|
159
165
|
error: z.ZodOptional<z.ZodString>;
|
|
166
|
+
/** Authenticated account identity, persisted locally for E2EE WorkItem operations. */
|
|
167
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
160
168
|
latestVersion: z.ZodOptional<z.ZodString>;
|
|
161
169
|
labsSettings: z.ZodOptional<z.ZodObject<{
|
|
162
170
|
historySessionSync: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -165,6 +173,7 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
|
|
|
165
173
|
}, {
|
|
166
174
|
historySessionSync?: boolean | undefined;
|
|
167
175
|
}>>;
|
|
176
|
+
preferredLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
|
|
168
177
|
}, z.ZodTypeAny, "passthrough">>;
|
|
169
178
|
export type MachineRegisterResult = z.infer<typeof MachineRegisterResultSchema>;
|
|
170
179
|
export declare const SetDefaultMachineBodySchema: z.ZodObject<{
|
package/dist/machine.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as o}from"zod";import{LabsSettingsSchema as n}from"./rpc.js";export const PlatformSchema=o.enum(["darwin","linux","win32"]),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(),hasTerminal:o.boolean().optional(),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(),latestVersion:o.string().optional(),labsSettings:n.optional()}).passthrough(),SetDefaultMachineBodySchema=o.object({machineId:o.string().nullable()}).strict();
|
|
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 PlatformSchema=o.enum(["darwin","linux","win32"]),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(),hasTerminal:o.boolean().optional(),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();
|
package/dist/messageMeta.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ export type AgentType = z.infer<typeof AgentTypeSchema>;
|
|
|
5
5
|
/** All agent type values derived from the schema (single source of truth). */
|
|
6
6
|
export declare const AGENT_TYPES: ["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"];
|
|
7
7
|
/** Agent types that can be spawned as sessions (excludes 'custom'). */
|
|
8
|
-
export declare const SPAWNABLE_AGENTS: ("
|
|
8
|
+
export declare const SPAWNABLE_AGENTS: ("hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw")[];
|
|
9
9
|
/** CLI identifiers accepted by spawn-session RPC. */
|
|
10
10
|
export declare const CLI_AGENT_TYPES: readonly ["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"];
|
|
11
11
|
export type CliAgentType = (typeof CLI_AGENT_TYPES)[number];
|
|
12
12
|
export declare const MessageMetaSchema: z.ZodObject<{
|
|
13
13
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
14
|
-
permissionMode: z.ZodOptional<z.
|
|
14
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
15
15
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -27,7 +27,7 @@ export declare const MessageMetaSchema: z.ZodObject<{
|
|
|
27
27
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
28
28
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
29
29
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
30
|
-
permissionMode: z.ZodOptional<z.
|
|
30
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
31
31
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -43,7 +43,7 @@ export declare const MessageMetaSchema: z.ZodObject<{
|
|
|
43
43
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
44
44
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
45
45
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
46
|
-
permissionMode: z.ZodOptional<z.
|
|
46
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
47
47
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
48
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -62,4 +62,6 @@ export type MessageMeta = z.infer<typeof MessageMetaSchema>;
|
|
|
62
62
|
/** Hardcoded per-agent image support. UX-driven: hides image button immediately on agent selection.
|
|
63
63
|
* Updated when agents add ACP promptCapabilities.image support. */
|
|
64
64
|
export declare const AGENT_SUPPORTS_IMAGES: Readonly<Record<AgentType, boolean>>;
|
|
65
|
+
/** 固定品牌显示名(不随界面语言变化)。单一来源:消费方(web/daemon/admin-panel)从此导入,禁止本地再写一份。 */
|
|
66
|
+
export declare const AGENT_DISPLAY_NAMES: Readonly<Record<AgentType, string>>;
|
|
65
67
|
//# sourceMappingURL=messageMeta.d.ts.map
|
package/dist/messageMeta.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as e}from"zod";
|
|
1
|
+
"use strict";import{z as e}from"zod";export const AgentTypeSchema=e.enum(["claude","copilot","codex","gemini","opencode","hermes","openclaw","custom"]),AGENT_TYPES=AgentTypeSchema.options,SPAWNABLE_AGENTS=AGENT_TYPES.filter(o=>o!=="custom"),CLI_AGENT_TYPES=["claude","copilot","opencode","codex","gemini","hermes","openclaw"],MessageMetaSchema=e.object({sentFrom:e.string().optional(),permissionMode:e.string().optional(),model:e.string().nullable().optional(),fallbackModel:e.string().nullable().optional(),customSystemPrompt:e.string().nullable().optional(),appendSystemPrompt:e.string().nullable().optional(),allowedTools:e.array(e.string()).nullable().optional(),disallowedTools:e.array(e.string()).nullable().optional(),displayText:e.string().optional(),agentType:AgentTypeSchema.nullable().optional(),startedAt:e.number().nullable().optional(),sessionStatus:e.enum(["running","idle","completed","failed","cancelled"]).nullable().optional()}).passthrough(),AGENT_SUPPORTS_IMAGES={claude:!0,copilot:!0,codex:!1,gemini:!0,opencode:!0,hermes:!1,openclaw:!1,custom:!0},AGENT_DISPLAY_NAMES={claude:"Claude",copilot:"Copilot",codex:"Codex",gemini:"Gemini",opencode:"OpenCode",hermes:"Hermes",openclaw:"OpenClaw",custom:"Custom"};
|