@sumicom/quicksave 0.8.14 → 0.8.16
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/ai/cardBuilder.d.ts +22 -2
- package/dist/ai/cardBuilder.d.ts.map +1 -1
- package/dist/ai/cardBuilder.js +133 -8
- package/dist/ai/cardBuilder.js.map +1 -1
- package/dist/ai/claudeCliProvider.d.ts +25 -2
- package/dist/ai/claudeCliProvider.d.ts.map +1 -1
- package/dist/ai/claudeCliProvider.js +85 -21
- package/dist/ai/claudeCliProvider.js.map +1 -1
- package/dist/ai/claudeTerminal/hookBridge.d.ts +4 -3
- package/dist/ai/claudeTerminal/hookBridge.d.ts.map +1 -1
- package/dist/ai/claudeTerminal/hookBridge.js.map +1 -1
- package/dist/ai/claudeTerminal/provider.d.ts +14 -1
- package/dist/ai/claudeTerminal/provider.d.ts.map +1 -1
- package/dist/ai/claudeTerminal/provider.js +358 -65
- package/dist/ai/claudeTerminal/provider.js.map +1 -1
- package/dist/ai/codexAppServer/approvalMapping.d.ts.map +1 -1
- package/dist/ai/codexAppServer/approvalMapping.js +3 -1
- package/dist/ai/codexAppServer/approvalMapping.js.map +1 -1
- package/dist/ai/codexAppServer/cardAdapter.d.ts.map +1 -1
- package/dist/ai/codexAppServer/cardAdapter.js +175 -24
- package/dist/ai/codexAppServer/cardAdapter.js.map +1 -1
- package/dist/ai/codexAppServer/overrideStore.d.ts +0 -2
- package/dist/ai/codexAppServer/overrideStore.d.ts.map +1 -1
- package/dist/ai/codexAppServer/overrideStore.js +0 -1
- package/dist/ai/codexAppServer/overrideStore.js.map +1 -1
- package/dist/ai/codexAppServer/permissionMapping.d.ts.map +1 -1
- package/dist/ai/codexAppServer/permissionMapping.js +0 -2
- package/dist/ai/codexAppServer/permissionMapping.js.map +1 -1
- package/dist/ai/codexAppServer/protocolLog.d.ts +2 -0
- package/dist/ai/codexAppServer/protocolLog.d.ts.map +1 -0
- package/dist/ai/codexAppServer/protocolLog.js +16 -0
- package/dist/ai/codexAppServer/protocolLog.js.map +1 -0
- package/dist/ai/codexAppServer/provider.d.ts +18 -0
- package/dist/ai/codexAppServer/provider.d.ts.map +1 -1
- package/dist/ai/codexAppServer/provider.js +433 -19
- package/dist/ai/codexAppServer/provider.js.map +1 -1
- package/dist/ai/codexAppServer/rpcClient.d.ts +2 -0
- package/dist/ai/codexAppServer/rpcClient.d.ts.map +1 -1
- package/dist/ai/codexAppServer/rpcClient.js +15 -1
- package/dist/ai/codexAppServer/rpcClient.js.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/AgentMessageInputContent.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/AgentMessageInputContent.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/AgentMessageInputContent.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/AgentMessageInputContent.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/AuthMode.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/AuthMode.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/AutoCompactTokenLimitScope.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/AutoCompactTokenLimitScope.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/AutoCompactTokenLimitScope.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/AutoCompactTokenLimitScope.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/ClientRequest.d.ts +74 -16
- package/dist/ai/codexAppServer/schema/generated/ClientRequest.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/FunctionCallOutputContentItem.d.ts +3 -0
- package/dist/ai/codexAppServer/schema/generated/FunctionCallOutputContentItem.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/InitializeCapabilities.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/InitializeCapabilities.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/InternalSessionSource.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/InternalSessionSource.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/{v2/DeviceKeyCreateParams.js → InternalSessionSource.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/InternalSessionSource.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/McpServerInfo.d.ts +13 -0
- package/dist/ai/codexAppServer/schema/generated/McpServerInfo.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/{v2/ReadOnlyAccess.js → McpServerInfo.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/McpServerInfo.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/ReasoningEffort.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/ReasoningEffort.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/ResponseItem.d.ts +11 -5
- package/dist/ai/codexAppServer/schema/generated/ResponseItem.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/ServerNotification.d.ts +28 -0
- package/dist/ai/codexAppServer/schema/generated/ServerNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/ServerRequest.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/ServerRequest.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/SessionSource.d.ts +3 -0
- package/dist/ai/codexAppServer/schema/generated/SessionSource.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/AccountRateLimitsUpdatedNotification.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountRateLimitsUpdatedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageDailyBucket.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageDailyBucket.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageDailyBucket.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageDailyBucket.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageSummary.d.ts +8 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageSummary.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageSummary.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AccountTokenUsageSummary.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ActivePermissionProfile.d.ts +13 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ActivePermissionProfile.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ActivePermissionProfile.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ActivePermissionProfile.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextEntry.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextEntry.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextEntry.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextEntry.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextKind.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextKind.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextKind.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AdditionalContextKind.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateSummary.d.ts +12 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateSummary.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/{DeviceKeyAlgorithm.js → AppTemplateSummary.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateSummary.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateUnavailableReason.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateUnavailableReason.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateUnavailableReason.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppTemplateUnavailableReason.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppsConfig.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AppsConfig.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateParams.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateResponse.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/AttestationGenerateResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/CommandExecParams.d.ts +12 -35
- package/dist/ai/codexAppServer/schema/generated/v2/CommandExecParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/CommandExecutionRequestApprovalParams.d.ts +11 -26
- package/dist/ai/codexAppServer/schema/generated/v2/CommandExecutionRequestApprovalParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/CommandMigration.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/CommandMigration.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/CommandMigration.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/CommandMigration.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ComputerUseRequirements.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ComputerUseRequirements.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ComputerUseRequirements.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ComputerUseRequirements.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/Config.d.ts +8 -8
- package/dist/ai/codexAppServer/schema/generated/v2/Config.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigLayerSource.d.ts +17 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigLayerSource.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigReadParams.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigReadParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigRequirements.d.ts +10 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ConfigRequirements.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ConfiguredHookHandler.d.ts +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ConfiguredHookHandler.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ExperimentalFeatureListParams.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ExperimentalFeatureListParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ExternalAgentConfigMigrationItemType.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ExternalAgentConfigMigrationItemType.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FeedbackUploadParams.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FeedbackUploadParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FileChangeOutputDeltaNotification.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/FileChangeOutputDeltaNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FileChangeRequestApprovalParams.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/FileChangeRequestApprovalParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FileSystemAccessMode.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/FileSystemSpecialPath.d.ts +0 -2
- package/dist/ai/codexAppServer/schema/generated/v2/FileSystemSpecialPath.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ForcedChatgptWorkspaceIds.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ForcedChatgptWorkspaceIds.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ForcedChatgptWorkspaceIds.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ForcedChatgptWorkspaceIds.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountParams.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountTokenUsageResponse.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountTokenUsageResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountTokenUsageResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/GetAccountTokenUsageResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookErrorInfo.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookErrorInfo.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookErrorInfo.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookErrorInfo.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookEventName.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HookEventName.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HookMetadata.d.ts +23 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookMetadata.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/{GhostCommit.js → v2/HookMetadata.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HookMetadata.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookMigration.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookMigration.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookMigration.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookMigration.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookSource.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HookSource.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HookTrustStatus.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookTrustStatus.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookTrustStatus.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HookTrustStatus.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListEntry.d.ts +9 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListEntry.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListEntry.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListEntry.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListParams.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/{PermissionProfile.js → HooksListResponse.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/HooksListResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ItemCompletedNotification.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ItemCompletedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ItemGuardianApprovalReviewCompletedNotification.d.ts +8 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ItemGuardianApprovalReviewCompletedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ItemGuardianApprovalReviewStartedNotification.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ItemGuardianApprovalReviewStartedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ItemStartedNotification.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ItemStartedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ListMcpServerStatusParams.d.ts +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ListMcpServerStatusParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/LoginAccountParams.d.ts +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/LoginAccountParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ManagedHooksRequirements.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ManagedHooksRequirements.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerMigration.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerMigration.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerMigration.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerMigration.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerStatus.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerStatus.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerStatusUpdatedNotification.d.ts +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/McpServerStatusUpdatedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/MigrationDetails.d.ts +10 -0
- package/dist/ai/codexAppServer/schema/generated/v2/MigrationDetails.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/Model.d.ts +9 -0
- package/dist/ai/codexAppServer/schema/generated/v2/Model.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadParams.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadResponse.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelProviderCapabilitiesReadResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelServiceTier.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelServiceTier.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelServiceTier.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ModelServiceTier.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/NetworkUnixSocketPermission.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListParams.d.ts +15 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListResponse.d.ts +10 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileListResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileSummary.d.ts +11 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileSummary.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileSummary.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileSummary.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionsRequestApprovalParams.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionsRequestApprovalParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PluginAvailability.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginAvailability.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginAvailability.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginAvailability.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginDetail.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginDetail.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PluginHookSummary.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginHookSummary.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginHookSummary.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginHookSummary.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledParams.d.ts +13 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledResponse.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginInstalledResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListMarketplaceKind.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListMarketplaceKind.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListMarketplaceKind.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListMarketplaceKind.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListParams.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginListParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutParams.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutResponse.d.ts +11 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareCheckoutResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareContext.d.ts +15 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareContext.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareContext.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareContext.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteParams.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteResponse.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDeleteResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDiscoverability.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDiscoverability.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDiscoverability.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareDiscoverability.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListItem.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListItem.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/{DeviceKeySignParams.js → PluginShareListItem.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListItem.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListParams.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareListResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipal.d.ts +9 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipal.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipal.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipal.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalRole.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalRole.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalRole.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalRole.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalType.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalType.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalType.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSharePrincipalType.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveParams.d.ts +10 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareSaveResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTarget.d.ts +8 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTarget.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTarget.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTarget.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTargetRole.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTargetRole.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTargetRole.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareTargetRole.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateDiscoverability.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateDiscoverability.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateDiscoverability.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateDiscoverability.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsParams.d.ts +8 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsResponse.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginShareUpdateTargetsResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadParams.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadResponse.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSkillReadResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSummary.d.ts +19 -0
- package/dist/ai/codexAppServer/schema/generated/v2/PluginSummary.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessExitedNotification.d.ts +40 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessExitedNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessExitedNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessExitedNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputDeltaNotification.d.ts +24 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputDeltaNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputDeltaNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputDeltaNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputStream.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputStream.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputStream.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessOutputStream.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessTerminalSize.d.ts +14 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessTerminalSize.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessTerminalSize.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ProcessTerminalSize.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RateLimitSnapshot.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RateLimitSnapshot.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlConnectionStatus.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlConnectionStatus.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlConnectionStatus.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlConnectionStatus.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlStatusChangedNotification.d.ts +11 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlStatusChangedNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlStatusChangedNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlStatusChangedNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SandboxPolicy.d.ts +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/SandboxPolicy.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/SessionMigration.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SessionMigration.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SessionMigration.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SessionMigration.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetParams.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetResponse.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsExtraRootsSetResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListParams.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/SpendControlLimitSnapshot.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SpendControlLimitSnapshot.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SpendControlLimitSnapshot.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SpendControlLimitSnapshot.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SubagentMigration.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SubagentMigration.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SubagentMigration.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/SubagentMigration.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/Thread.d.ts +13 -0
- package/dist/ai/codexAppServer/schema/generated/v2/Thread.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadForkParams.d.ts +7 -21
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadForkParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadForkResponse.d.ts +6 -16
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadForkResponse.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoal.d.ts +12 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoal.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/{ServiceTier.js → v2/ThreadGoal.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoal.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearParams.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearResponse.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearedNotification.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearedNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearedNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalClearedNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetParams.d.ts +4 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalGetResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetParams.d.ts +8 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalSetResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalStatus.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalStatus.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalStatus.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalStatus.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalUpdatedNotification.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalUpdatedNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalUpdatedNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadGoalUpdatedNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadItem.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadItem.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadReadParams.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadReadParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadRealtimeStartedNotification.d.ts +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadRealtimeStartedNotification.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeInitialTurnsPageParams.d.ts +17 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeInitialTurnsPageParams.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeInitialTurnsPageParams.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeInitialTurnsPageParams.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeParams.d.ts +10 -30
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeResponse.d.ts +6 -16
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadResumeResponse.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSearchResult.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSearchResult.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSearchResult.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSearchResult.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettings.d.ts +24 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettings.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettings.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettings.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettingsUpdatedNotification.d.ts +6 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettingsUpdatedNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettingsUpdatedNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSettingsUpdatedNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSource.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSource.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSource.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadSource.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadStartParams.d.ts +5 -15
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadStartParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadStartResponse.d.ts +6 -16
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadStartResponse.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ToolsV2.d.ts +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ToolsV2.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/Turn.d.ts +6 -3
- package/dist/ai/codexAppServer/schema/generated/v2/Turn.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/TurnItemsView.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnItemsView.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnItemsView.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnItemsView.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnModerationMetadataNotification.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnModerationMetadataNotification.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnModerationMetadataNotification.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnModerationMetadataNotification.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnStartParams.d.ts +3 -16
- package/dist/ai/codexAppServer/schema/generated/v2/TurnStartParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/TurnSteerParams.d.ts +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnSteerParams.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/TurnsPage.d.ts +7 -0
- package/dist/ai/codexAppServer/schema/generated/v2/TurnsPage.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/{ProfileV2.js → TurnsPage.js} +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/TurnsPage.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/UserInput.d.ts +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/UserInput.d.ts.map +1 -1
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadiness.d.ts +2 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadiness.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadiness.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadiness.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadinessResponse.d.ts +5 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadinessResponse.d.ts.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadinessResponse.js +3 -0
- package/dist/ai/codexAppServer/schema/generated/v2/WindowsSandboxReadinessResponse.js.map +1 -0
- package/dist/ai/codexAppServer/schema/generated/v2/index.d.ts +84 -20
- package/dist/ai/codexAppServer/schema/generated/v2/index.d.ts.map +1 -1
- package/dist/ai/codexAppServer/serverRequestIds.d.ts +3 -0
- package/dist/ai/codexAppServer/serverRequestIds.d.ts.map +1 -0
- package/dist/ai/codexAppServer/serverRequestIds.js +6 -0
- package/dist/ai/codexAppServer/serverRequestIds.js.map +1 -0
- package/dist/ai/codexAppServer/version.d.ts +1 -1
- package/dist/ai/codexAppServer/version.js +1 -1
- package/dist/ai/codexMcpProvider.d.ts.map +1 -1
- package/dist/ai/codexMcpProvider.js +6 -0
- package/dist/ai/codexMcpProvider.js.map +1 -1
- package/dist/ai/codexQuota.js +1 -1
- package/dist/ai/codexQuota.js.map +1 -1
- package/dist/ai/provider.d.ts +29 -6
- package/dist/ai/provider.d.ts.map +1 -1
- package/dist/ai/provider.js.map +1 -1
- package/dist/ai/queuedUserPrompts.d.ts +6 -0
- package/dist/ai/queuedUserPrompts.d.ts.map +1 -1
- package/dist/ai/queuedUserPrompts.js +9 -0
- package/dist/ai/queuedUserPrompts.js.map +1 -1
- package/dist/ai/realtimeTranscription.d.ts +2 -0
- package/dist/ai/realtimeTranscription.d.ts.map +1 -1
- package/dist/ai/realtimeTranscription.js +14 -0
- package/dist/ai/realtimeTranscription.js.map +1 -1
- package/dist/ai/sessionManager.d.ts +13 -1
- package/dist/ai/sessionManager.d.ts.map +1 -1
- package/dist/ai/sessionManager.js +91 -23
- package/dist/ai/sessionManager.js.map +1 -1
- package/dist/ai/voiceIntermediary/historyStore.d.ts +54 -0
- package/dist/ai/voiceIntermediary/historyStore.d.ts.map +1 -0
- package/dist/ai/voiceIntermediary/historyStore.js +159 -0
- package/dist/ai/voiceIntermediary/historyStore.js.map +1 -0
- package/dist/ai/voiceIntermediary/index.d.ts +13 -0
- package/dist/ai/voiceIntermediary/index.d.ts.map +1 -0
- package/dist/ai/voiceIntermediary/index.js +13 -0
- package/dist/ai/voiceIntermediary/index.js.map +1 -0
- package/dist/ai/voiceIntermediary/llm.d.ts +52 -0
- package/dist/ai/voiceIntermediary/llm.d.ts.map +1 -0
- package/dist/ai/voiceIntermediary/llm.js +63 -0
- package/dist/ai/voiceIntermediary/llm.js.map +1 -0
- package/dist/ai/voiceIntermediary/manager.d.ts +58 -0
- package/dist/ai/voiceIntermediary/manager.d.ts.map +1 -0
- package/dist/ai/voiceIntermediary/manager.js +134 -0
- package/dist/ai/voiceIntermediary/manager.js.map +1 -0
- package/dist/ai/voiceIntermediary/memory.d.ts +22 -0
- package/dist/ai/voiceIntermediary/memory.d.ts.map +1 -0
- package/dist/ai/voiceIntermediary/memory.js +109 -0
- package/dist/ai/voiceIntermediary/memory.js.map +1 -0
- package/dist/ai/voiceIntermediary/session.d.ts +81 -0
- package/dist/ai/voiceIntermediary/session.d.ts.map +1 -0
- package/dist/ai/voiceIntermediary/session.js +567 -0
- package/dist/ai/voiceIntermediary/session.js.map +1 -0
- package/dist/ai/voiceIntermediary/tools.d.ts +58 -0
- package/dist/ai/voiceIntermediary/tools.d.ts.map +1 -0
- package/dist/ai/voiceIntermediary/tools.js +277 -0
- package/dist/ai/voiceIntermediary/tools.js.map +1 -0
- package/dist/ai/voiceIntermediary/tts.d.ts +28 -0
- package/dist/ai/voiceIntermediary/tts.d.ts.map +1 -0
- package/dist/ai/voiceIntermediary/tts.js +66 -0
- package/dist/ai/voiceIntermediary/tts.js.map +1 -0
- package/dist/ai/voiceLog.d.ts +18 -0
- package/dist/ai/voiceLog.d.ts.map +1 -0
- package/dist/ai/voiceLog.js +74 -0
- package/dist/ai/voiceLog.js.map +1 -0
- package/dist/ai/voiceStream.d.ts +5 -0
- package/dist/ai/voiceStream.d.ts.map +1 -1
- package/dist/ai/voiceStream.js +29 -5
- package/dist/ai/voiceStream.js.map +1 -1
- package/dist/handlers/legacyBusAdapter.d.ts.map +1 -1
- package/dist/handlers/legacyBusAdapter.js +8 -0
- package/dist/handlers/legacyBusAdapter.js.map +1 -1
- package/dist/handlers/messageHandler.d.ts +14 -0
- package/dist/handlers/messageHandler.d.ts.map +1 -1
- package/dist/handlers/messageHandler.js +151 -2
- package/dist/handlers/messageHandler.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/service/ipcClient.js +1 -1
- package/dist/service/run.d.ts.map +1 -1
- package/dist/service/run.js +14 -1
- package/dist/service/run.js.map +1 -1
- package/dist/service/types.js +1 -1
- package/dist/terminal/terminalManager.d.ts +1 -0
- package/dist/terminal/terminalManager.d.ts.map +1 -1
- package/dist/terminal/terminalManager.js +4 -0
- package/dist/terminal/terminalManager.js.map +1 -1
- package/package.json +3 -3
- package/dist/ai/codexAppServer/schema/generated/GhostCommit.d.ts +0 -10
- package/dist/ai/codexAppServer/schema/generated/GhostCommit.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/GhostCommit.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/ServiceTier.d.ts +0 -2
- package/dist/ai/codexAppServer/schema/generated/ServiceTier.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/ServiceTier.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyAlgorithm.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyAlgorithm.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyAlgorithm.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateParams.d.ts +0 -13
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateParams.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateParams.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateResponse.d.ts +0 -15
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateResponse.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateResponse.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyCreateResponse.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionClass.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionClass.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionClass.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionClass.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionPolicy.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionPolicy.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionPolicy.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyProtectionPolicy.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicParams.d.ts +0 -7
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicParams.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicParams.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicParams.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicResponse.d.ts +0 -15
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicResponse.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicResponse.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeyPublicResponse.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignParams.d.ts +0 -9
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignParams.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignParams.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignPayload.d.ts +0 -63
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignPayload.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignPayload.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignPayload.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignResponse.d.ts +0 -17
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignResponse.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignResponse.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/DeviceKeySignResponse.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfile.d.ts +0 -13
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfile.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfile.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileFileSystemPermissions.d.ts +0 -9
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileFileSystemPermissions.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileFileSystemPermissions.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileFileSystemPermissions.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileNetworkPermissions.d.ts +0 -4
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileNetworkPermissions.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileNetworkPermissions.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/PermissionProfileNetworkPermissions.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ProfileV2.d.ts +0 -31
- package/dist/ai/codexAppServer/schema/generated/v2/ProfileV2.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ProfileV2.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ReadOnlyAccess.d.ts +0 -9
- package/dist/ai/codexAppServer/schema/generated/v2/ReadOnlyAccess.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ReadOnlyAccess.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientConnectionAudience.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientConnectionAudience.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientConnectionAudience.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientConnectionAudience.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientEnrollmentAudience.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientEnrollmentAudience.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientEnrollmentAudience.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/RemoteControlClientEnrollmentAudience.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListExtraRootsForCwd.d.ts +0 -5
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListExtraRootsForCwd.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListExtraRootsForCwd.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/SkillsListExtraRootsForCwd.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListParams.d.ts +0 -17
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListParams.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListParams.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListParams.js.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListResponse.d.ts +0 -17
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListResponse.d.ts.map +0 -1
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListResponse.js +0 -3
- package/dist/ai/codexAppServer/schema/generated/v2/ThreadTurnsListResponse.js.map +0 -1
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 King Young Technology
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
import { appendMemory } from './memory.js';
|
|
4
|
+
import { formatVoiceHistoryEvent } from './historyStore.js';
|
|
5
|
+
export const VOICE_AGENT_TOOLS = [
|
|
6
|
+
{
|
|
7
|
+
type: 'function',
|
|
8
|
+
function: {
|
|
9
|
+
name: 'send_to_coding_agent',
|
|
10
|
+
description: 'Internally dispatch implementation work. To the user, present this as your own action ("I will handle it", "I am checking"), not as asking another agent. Use for "do X", redirection, and answering open questions. Set interrupt=true ONLY when the user wants to stop the current work and change course now ("no, stop and do X instead"); otherwise the prompt queues politely.',
|
|
11
|
+
parameters: {
|
|
12
|
+
type: 'object',
|
|
13
|
+
properties: {
|
|
14
|
+
prompt: { type: 'string', description: 'The internal implementation instruction, in the project/user language.' },
|
|
15
|
+
interrupt: { type: 'boolean', description: 'Interrupt the in-flight turn before sending. Default false.' },
|
|
16
|
+
},
|
|
17
|
+
required: ['prompt'],
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: 'function',
|
|
23
|
+
function: {
|
|
24
|
+
name: 'stop_coding_agent',
|
|
25
|
+
description: 'Interrupt the current implementation turn without sending a new prompt. Use when the user just says "stop" / "halt"; tell the user you stopped the current work.',
|
|
26
|
+
parameters: { type: 'object', properties: {} },
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'function',
|
|
31
|
+
function: {
|
|
32
|
+
name: 'respond_to_permission',
|
|
33
|
+
description: 'Relay the user\'s spoken decision to a PENDING permission prompt. NEVER decide on your own: first speak what the tool wants and ask the user, then call this with their explicit allow/deny. Get request_id from get_status. Irreversible actions (push, delete, deploy, send) require a clear spoken yes.',
|
|
34
|
+
parameters: {
|
|
35
|
+
type: 'object',
|
|
36
|
+
properties: {
|
|
37
|
+
request_id: { type: 'string', description: 'The pending request id from get_status.' },
|
|
38
|
+
decision: { type: 'string', enum: ['allow', 'deny'], description: 'The user\'s explicit decision.' },
|
|
39
|
+
reason: { type: 'string', description: 'Optional note to attach (e.g. why denied).' },
|
|
40
|
+
},
|
|
41
|
+
required: ['request_id', 'decision'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'function',
|
|
47
|
+
function: {
|
|
48
|
+
name: 'set_permission_mode',
|
|
49
|
+
description: 'Change implementation autonomy. Confirm verbally with the user before widening autonomy. Modes: default, acceptEdits, bypassPermissions, plan, auto (Claude); read-only, default, auto-review, full-access (Codex).',
|
|
50
|
+
parameters: {
|
|
51
|
+
type: 'object',
|
|
52
|
+
properties: {
|
|
53
|
+
mode: { type: 'string', description: 'The permission/autonomy mode to switch to.' },
|
|
54
|
+
},
|
|
55
|
+
required: ['mode'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: 'function',
|
|
61
|
+
function: {
|
|
62
|
+
name: 'get_status',
|
|
63
|
+
description: 'Glance at current work: is it running, is a permission prompt pending (with its request_id and tool), what autonomy mode. Cheap — prefer this over read_cards when the user asks what is happening. Summarize as your own status update.',
|
|
64
|
+
parameters: { type: 'object', properties: {} },
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: 'function',
|
|
69
|
+
function: {
|
|
70
|
+
name: 'read_cards',
|
|
71
|
+
description: 'Read or search the recent implementation transcript (messages, tool calls + results, errors). Pass query to filter. Use to interpret what happened and answer detailed questions. Summarize as your own status update — do NOT read it back verbatim and do NOT say you are reading another agent.',
|
|
72
|
+
parameters: {
|
|
73
|
+
type: 'object',
|
|
74
|
+
properties: {
|
|
75
|
+
query: { type: 'string', description: 'Optional case-insensitive substring filter.' },
|
|
76
|
+
limit: { type: 'number', description: 'How many recent cards to scan (1-50, default 20).' },
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: 'function',
|
|
83
|
+
function: {
|
|
84
|
+
name: 'remember',
|
|
85
|
+
description: 'Persist a durable fact to the workspace memory so future voice sessions know it. Use when the user states a standing preference, a boundary/decision, or a project fact ("always run lint", "never push to main without asking", "tests are pnpm test").',
|
|
86
|
+
parameters: {
|
|
87
|
+
type: 'object',
|
|
88
|
+
properties: {
|
|
89
|
+
note: { type: 'string', description: 'The fact to remember, phrased concisely.' },
|
|
90
|
+
section: { type: 'string', enum: ['preference', 'decision', 'fact', 'note'], description: 'Which section it belongs in.' },
|
|
91
|
+
},
|
|
92
|
+
required: ['note'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: 'function',
|
|
98
|
+
function: {
|
|
99
|
+
name: 'read_voice_history',
|
|
100
|
+
description: 'Search or browse this voice agent\'s own persisted JSONL history, including messages before compaction. Use when the user asks what they told you earlier, why you made a voice-agent decision, or when active context lacks older voice conversation details. Summarize; do not read raw history aloud.',
|
|
101
|
+
parameters: {
|
|
102
|
+
type: 'object',
|
|
103
|
+
properties: {
|
|
104
|
+
query: { type: 'string', description: 'Optional case-insensitive search text.' },
|
|
105
|
+
limit: { type: 'number', description: 'How many recent matching history events to read (1-100, default 20).' },
|
|
106
|
+
before_seq: { type: 'number', description: 'Only read events before this sequence number.' },
|
|
107
|
+
include_runtime_events: { type: 'boolean', description: 'Include runtime/log events. Default false.' },
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
];
|
|
113
|
+
const MAX_CARD_CONTENT = 220;
|
|
114
|
+
function truncate(text, max) {
|
|
115
|
+
const t = text.replace(/\s+/g, ' ').trim();
|
|
116
|
+
return t.length > max ? `${t.slice(0, max)}…` : t;
|
|
117
|
+
}
|
|
118
|
+
function briefInput(input) {
|
|
119
|
+
try {
|
|
120
|
+
const s = JSON.stringify(input);
|
|
121
|
+
return truncate(s, 120);
|
|
122
|
+
}
|
|
123
|
+
catch {
|
|
124
|
+
return '';
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/** One compact line per card for the brain to reason over (not for TTS). */
|
|
128
|
+
export function formatCardForBrain(card) {
|
|
129
|
+
switch (card.type) {
|
|
130
|
+
case 'user':
|
|
131
|
+
return `[你] ${truncate(card.text, MAX_CARD_CONTENT)}`;
|
|
132
|
+
case 'assistant_text':
|
|
133
|
+
return `[Claude] ${truncate(card.text, MAX_CARD_CONTENT)}`;
|
|
134
|
+
case 'thinking':
|
|
135
|
+
return `[思考] ${truncate(card.text, 120)}`;
|
|
136
|
+
case 'tool_call': {
|
|
137
|
+
const head = `[工具] ${card.toolName}(${briefInput(card.toolInput)})`;
|
|
138
|
+
if (!card.result)
|
|
139
|
+
return `${head} …進行中`;
|
|
140
|
+
const tag = card.result.isError ? '錯誤: ' : '→ ';
|
|
141
|
+
return `${head} ${tag}${truncate(card.result.content, MAX_CARD_CONTENT)}`;
|
|
142
|
+
}
|
|
143
|
+
case 'subagent':
|
|
144
|
+
return `[子代理${card.subagentType ? ' ' + card.subagentType : ''}] ${truncate(card.description, 120)} — ${card.status}${card.summary ? ': ' + truncate(card.summary, 160) : ''}`;
|
|
145
|
+
case 'system':
|
|
146
|
+
return `[系統${card.subtype ? '/' + card.subtype : ''}] ${truncate(card.text, MAX_CARD_CONTENT)}`;
|
|
147
|
+
case 'generated_image':
|
|
148
|
+
return `[圖片] ${truncate(card.prompt, 120)} (${card.status})`;
|
|
149
|
+
case 'artifact':
|
|
150
|
+
return `[文件] ${truncate(card.artifact?.title ?? '', 120)}`;
|
|
151
|
+
case 'recovery_suggested':
|
|
152
|
+
return `[復原建議] ${truncate(card.reason, 160)}`;
|
|
153
|
+
default:
|
|
154
|
+
return '';
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Execute one tool call and return the string result fed back to the model.
|
|
159
|
+
* Never throws on expected failures (returns an explanatory string) so the loop
|
|
160
|
+
* keeps going; only programmer errors propagate.
|
|
161
|
+
*/
|
|
162
|
+
export async function executeTool(name, args, ctx) {
|
|
163
|
+
const { sessionId, cwd, bridge, emitAction } = ctx;
|
|
164
|
+
switch (name) {
|
|
165
|
+
case 'send_to_coding_agent': {
|
|
166
|
+
const prompt = String(args.prompt ?? '').trim();
|
|
167
|
+
if (!prompt)
|
|
168
|
+
return 'error: empty prompt';
|
|
169
|
+
const interrupt = !!args.interrupt;
|
|
170
|
+
const ok = bridge.sendUserMessageToSession(sessionId, prompt, { interrupt });
|
|
171
|
+
if (!ok)
|
|
172
|
+
return 'error: the coding session is not running';
|
|
173
|
+
emitAction(interrupt ? `改做:${truncate(prompt, 60)}` : `開始處理:${truncate(prompt, 60)}`);
|
|
174
|
+
return interrupt ? 'interrupted and sent' : 'sent (will run on the next turn boundary)';
|
|
175
|
+
}
|
|
176
|
+
case 'stop_coding_agent': {
|
|
177
|
+
const ok = await bridge.interruptSession(sessionId);
|
|
178
|
+
if (ok)
|
|
179
|
+
emitAction('已停止目前工作');
|
|
180
|
+
return ok ? 'stopped the current turn' : 'nothing was running to stop';
|
|
181
|
+
}
|
|
182
|
+
case 'respond_to_permission': {
|
|
183
|
+
const requestId = String(args.request_id ?? '').trim();
|
|
184
|
+
const decision = args.decision === 'deny' ? 'deny' : args.decision === 'allow' ? 'allow' : null;
|
|
185
|
+
if (!requestId || !decision)
|
|
186
|
+
return 'error: request_id and decision (allow|deny) are required';
|
|
187
|
+
const pending = bridge
|
|
188
|
+
.getPendingInputRequests()
|
|
189
|
+
.find((r) => r.requestId === requestId && r.sessionId === sessionId);
|
|
190
|
+
if (!pending)
|
|
191
|
+
return `error: no pending permission request with id ${requestId} for this session`;
|
|
192
|
+
const payload = {
|
|
193
|
+
sessionId,
|
|
194
|
+
requestId,
|
|
195
|
+
action: decision,
|
|
196
|
+
response: typeof args.reason === 'string' ? args.reason : undefined,
|
|
197
|
+
};
|
|
198
|
+
const ok = bridge.resolveUserInput(payload);
|
|
199
|
+
if (ok)
|
|
200
|
+
emitAction(`${decision === 'allow' ? '核准' : '拒絕'}權限:${pending.toolName ?? pending.title}`);
|
|
201
|
+
return ok ? `relayed ${decision} for ${pending.toolName ?? 'request'}` : 'error: failed to relay the decision';
|
|
202
|
+
}
|
|
203
|
+
case 'set_permission_mode': {
|
|
204
|
+
const mode = String(args.mode ?? '').trim();
|
|
205
|
+
if (!mode)
|
|
206
|
+
return 'error: mode is required';
|
|
207
|
+
const ok = await bridge.setPermissionLevel(sessionId, mode);
|
|
208
|
+
if (ok)
|
|
209
|
+
emitAction(`權限模式 → ${mode}`);
|
|
210
|
+
return ok ? `permission mode set to ${mode}` : `error: "${mode}" was rejected for this agent`;
|
|
211
|
+
}
|
|
212
|
+
case 'get_status': {
|
|
213
|
+
const active = bridge.getActiveSessions().find((s) => s.sessionId === sessionId);
|
|
214
|
+
const pending = bridge
|
|
215
|
+
.getPendingInputRequests()
|
|
216
|
+
.filter((r) => r.sessionId === sessionId)
|
|
217
|
+
.map((r) => ({
|
|
218
|
+
request_id: r.requestId,
|
|
219
|
+
tool: r.toolName ?? r.title,
|
|
220
|
+
wants: r.toolInput ? briefInput(r.toolInput) : undefined,
|
|
221
|
+
}));
|
|
222
|
+
return JSON.stringify({
|
|
223
|
+
running: active ? bridge.isStreaming(sessionId) : false,
|
|
224
|
+
attached: !!active,
|
|
225
|
+
permission_mode: bridge.getPermissionLevel(sessionId),
|
|
226
|
+
pending_permissions: pending,
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
case 'read_cards': {
|
|
230
|
+
const limit = Math.min(50, Math.max(1, Number(args.limit) || 20));
|
|
231
|
+
const query = typeof args.query === 'string' ? args.query.toLowerCase().trim() : '';
|
|
232
|
+
let resp;
|
|
233
|
+
try {
|
|
234
|
+
resp = await bridge.getCards(sessionId, cwd, 0, limit);
|
|
235
|
+
}
|
|
236
|
+
catch (err) {
|
|
237
|
+
return `error reading cards: ${err.message}`;
|
|
238
|
+
}
|
|
239
|
+
let lines = resp.cards.map(formatCardForBrain).filter(Boolean);
|
|
240
|
+
if (ctx.liveContext?.trim()) {
|
|
241
|
+
lines.push(...ctx.liveContext.split('\n').map((l) => l.trim()).filter(Boolean));
|
|
242
|
+
}
|
|
243
|
+
if (query)
|
|
244
|
+
lines = lines.filter((l) => l.toLowerCase().includes(query));
|
|
245
|
+
if (lines.length === 0)
|
|
246
|
+
return query ? `no cards matched "${query}"` : 'no transcript yet';
|
|
247
|
+
return lines.join('\n');
|
|
248
|
+
}
|
|
249
|
+
case 'remember': {
|
|
250
|
+
const note = String(args.note ?? '').trim();
|
|
251
|
+
if (!note)
|
|
252
|
+
return 'error: note is required';
|
|
253
|
+
const section = ['preference', 'decision', 'fact', 'note'].includes(args.section)
|
|
254
|
+
? args.section
|
|
255
|
+
: 'note';
|
|
256
|
+
await appendMemory(cwd, note, section);
|
|
257
|
+
emitAction(`記住:${truncate(note, 60)}`);
|
|
258
|
+
return 'remembered';
|
|
259
|
+
}
|
|
260
|
+
case 'read_voice_history': {
|
|
261
|
+
if (!ctx.readVoiceHistory)
|
|
262
|
+
return 'error: voice history is unavailable';
|
|
263
|
+
const events = await ctx.readVoiceHistory({
|
|
264
|
+
query: typeof args.query === 'string' ? args.query : undefined,
|
|
265
|
+
limit: Math.min(100, Math.max(1, Number(args.limit) || 20)),
|
|
266
|
+
beforeSeq: Number.isFinite(Number(args.before_seq)) ? Number(args.before_seq) : undefined,
|
|
267
|
+
includeRuntimeEvents: args.include_runtime_events === true,
|
|
268
|
+
});
|
|
269
|
+
if (events.length === 0)
|
|
270
|
+
return 'no voice history matched';
|
|
271
|
+
return events.map(formatVoiceHistoryEvent).join('\n');
|
|
272
|
+
}
|
|
273
|
+
default:
|
|
274
|
+
return `error: unknown tool ${name}`;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/ai/voiceIntermediary/tools.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,+BAA+B;AAmB/B,OAAO,EAAE,YAAY,EAAsB,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,uBAAuB,EAAwD,MAAM,mBAAmB,CAAC;AA+BlH,MAAM,CAAC,MAAM,iBAAiB,GAAiB;IAC7C;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE;YACR,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EACT,sXAAsX;YACxX,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV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AAC,IAAI,EAAE,CAAC,CAAC;gBAC3D,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS;gBACzF,oBAAoB,EAAE,IAAI,CAAC,sBAAsB,KAAK,IAAI;aAC3D,CAAC,CAAC;YACH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,0BAA0B,CAAC;YAC3D,OAAO,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxD,CAAC;QAED;YACE,OAAO,uBAAuB,IAAI,EAAE,CAAC;IACzC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI-compatible text-to-speech for the voice intermediary. POSTs to
|
|
3
|
+
* `{baseUrl}/audio/speech` and returns raw audio bytes. The daemon synthesizes
|
|
4
|
+
* (keeping the API key server-side) and hands the PWA an id to fetch on demand.
|
|
5
|
+
*/
|
|
6
|
+
import type { VoiceConfig } from '@sumicom/quicksave-shared';
|
|
7
|
+
import type { FetchLike } from './llm.js';
|
|
8
|
+
export interface SynthesizedSpeech {
|
|
9
|
+
audio: Buffer;
|
|
10
|
+
mimeType: string;
|
|
11
|
+
requestId?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class VoiceTtsError extends Error {
|
|
14
|
+
readonly cause?: unknown | undefined;
|
|
15
|
+
readonly status?: number | undefined;
|
|
16
|
+
readonly requestId?: string | undefined;
|
|
17
|
+
constructor(message: string, cause?: unknown | undefined, status?: number | undefined, requestId?: string | undefined);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Synthesize `text` to speech. Returns null (silent) when no `ttsModel` is
|
|
21
|
+
* configured — the agent still works, just text-only. Throws on transport /
|
|
22
|
+
* server errors so the session can surface them.
|
|
23
|
+
*/
|
|
24
|
+
export declare function synthesizeSpeech(config: VoiceConfig, text: string, opts?: {
|
|
25
|
+
signal?: AbortSignal;
|
|
26
|
+
fetchImpl?: FetchLike;
|
|
27
|
+
}): Promise<SynthesizedSpeech | null>;
|
|
28
|
+
//# sourceMappingURL=tts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tts.d.ts","sourceRoot":"","sources":["../../../src/ai/voiceIntermediary/tts.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,aAAc,SAAQ,KAAK;IAGpC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM;gBAH3B,OAAO,EAAE,MAAM,EACN,KAAK,CAAC,EAAE,OAAO,YAAA,EACf,MAAM,CAAC,EAAE,MAAM,YAAA,EACf,SAAS,CAAC,EAAE,MAAM,YAAA;CAK9B;AAYD;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,CAAA;CAAE,GACrD,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAyCnC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 King Young Technology
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
import { randomUUID } from 'crypto';
|
|
4
|
+
export class VoiceTtsError extends Error {
|
|
5
|
+
cause;
|
|
6
|
+
status;
|
|
7
|
+
requestId;
|
|
8
|
+
constructor(message, cause, status, requestId) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.cause = cause;
|
|
11
|
+
this.status = status;
|
|
12
|
+
this.requestId = requestId;
|
|
13
|
+
this.name = 'VoiceTtsError';
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function apiUrl(baseUrl, path) {
|
|
17
|
+
return `${baseUrl.trim().replace(/\/+$/, '')}${path}`;
|
|
18
|
+
}
|
|
19
|
+
function authHeaders(config) {
|
|
20
|
+
const headers = { 'Content-Type': 'application/json' };
|
|
21
|
+
if (config.apiKey.trim())
|
|
22
|
+
headers.Authorization = `Bearer ${config.apiKey.trim()}`;
|
|
23
|
+
return headers;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Synthesize `text` to speech. Returns null (silent) when no `ttsModel` is
|
|
27
|
+
* configured — the agent still works, just text-only. Throws on transport /
|
|
28
|
+
* server errors so the session can surface them.
|
|
29
|
+
*/
|
|
30
|
+
export async function synthesizeSpeech(config, text, opts) {
|
|
31
|
+
const model = config.ttsModel?.trim();
|
|
32
|
+
if (!model || !text.trim())
|
|
33
|
+
return null;
|
|
34
|
+
const doFetch = opts?.fetchImpl ?? fetch;
|
|
35
|
+
let res;
|
|
36
|
+
const clientRequestId = `quicksave-tts-${randomUUID()}`;
|
|
37
|
+
const instructions = config.ttsInstructions?.trim();
|
|
38
|
+
try {
|
|
39
|
+
res = await doFetch(apiUrl(config.baseUrl, '/audio/speech'), {
|
|
40
|
+
method: 'POST',
|
|
41
|
+
headers: {
|
|
42
|
+
...authHeaders(config),
|
|
43
|
+
'X-Client-Request-Id': clientRequestId,
|
|
44
|
+
},
|
|
45
|
+
body: JSON.stringify({
|
|
46
|
+
model,
|
|
47
|
+
voice: config.ttsVoice?.trim() || 'alloy',
|
|
48
|
+
input: text,
|
|
49
|
+
response_format: 'mp3',
|
|
50
|
+
...(instructions ? { instructions } : {}),
|
|
51
|
+
}),
|
|
52
|
+
signal: opts?.signal,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
catch (err) {
|
|
56
|
+
throw new VoiceTtsError('Could not reach the speech endpoint.', err);
|
|
57
|
+
}
|
|
58
|
+
const requestId = res.headers.get('x-request-id') ?? clientRequestId;
|
|
59
|
+
if (!res.ok) {
|
|
60
|
+
const detail = await res.text().catch(() => '');
|
|
61
|
+
throw new VoiceTtsError(`Speech synthesis failed (${res.status})${detail ? `: ${detail.slice(0, 200)}` : ''}`, undefined, res.status, requestId);
|
|
62
|
+
}
|
|
63
|
+
const audio = Buffer.from(await res.arrayBuffer());
|
|
64
|
+
return { audio, mimeType: res.headers.get('content-type') ?? 'audio/mpeg', requestId };
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=tts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tts.js","sourceRoot":"","sources":["../../../src/ai/voiceIntermediary/tts.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,+BAA+B;AAQ/B,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AASpC,MAAM,OAAO,aAAc,SAAQ,KAAK;IAG3B;IACA;IACA;IAJX,YACE,OAAe,EACN,KAAe,EACf,MAAe,EACf,SAAkB;QAE3B,KAAK,CAAC,OAAO,CAAC,CAAC;QAJN,UAAK,GAAL,KAAK,CAAU;QACf,WAAM,GAAN,MAAM,CAAS;QACf,cAAS,GAAT,SAAS,CAAS;QAG3B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF;AAED,SAAS,MAAM,CAAC,OAAe,EAAE,IAAY;IAC3C,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC;AACxD,CAAC;AAED,SAAS,WAAW,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CAAC,CAAC;IACL,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,IAAI,aAAa,CAAC,sCAAsC,EAAE,GAAG,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,eAAe,CAAC;IACrE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;QACZ,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QAChD,MAAM,IAAI,aAAa,CACrB,4BAA4B,GAAG,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EACrF,SAAS,EACT,GAAG,CAAC,MAAM,EACV,SAAS,CACV,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;IACnD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,YAAY,EAAE,SAAS,EAAE,CAAC;AACzF,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type VoiceLogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
2
|
+
export interface VoiceLogEntry {
|
|
3
|
+
sessionId?: string;
|
|
4
|
+
event: string;
|
|
5
|
+
level?: VoiceLogLevel;
|
|
6
|
+
phase?: string;
|
|
7
|
+
turnId?: string;
|
|
8
|
+
data?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
declare function enabled(): boolean;
|
|
11
|
+
export declare class VoiceEventLogger {
|
|
12
|
+
private readonly isEnabled;
|
|
13
|
+
constructor(isEnabled?: typeof enabled);
|
|
14
|
+
log(entry: VoiceLogEntry): void;
|
|
15
|
+
}
|
|
16
|
+
export declare const voiceEventLogger: VoiceEventLogger;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=voiceLog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voiceLog.d.ts","sourceRoot":"","sources":["../../src/ai/voiceLog.ts"],"names":[],"mappings":"AAOA,KAAK,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAID,iBAAS,OAAO,IAAI,OAAO,CAK1B;AA8BD,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,iBAAU;IAEhD,GAAG,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;CAmBhC;AAED,eAAO,MAAM,gBAAgB,kBAAyB,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 King Young Technology
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
import { appendFile, mkdir } from 'fs/promises';
|
|
4
|
+
import { join } from 'path';
|
|
5
|
+
import { getLogsDir } from '../service/singleton.js';
|
|
6
|
+
import { isDebugEnabled } from '../service/types.js';
|
|
7
|
+
const MAX_TEXT_CHARS = Number(process.env.QUICKSAVE_VOICE_LOG_MAX_TEXT_CHARS ?? 2048);
|
|
8
|
+
function enabled() {
|
|
9
|
+
const env = process.env.QUICKSAVE_VOICE_LOG?.trim();
|
|
10
|
+
if (env === '1')
|
|
11
|
+
return true;
|
|
12
|
+
if (env === '0')
|
|
13
|
+
return false;
|
|
14
|
+
return isDebugEnabled() && process.env.NODE_ENV !== 'test';
|
|
15
|
+
}
|
|
16
|
+
function shortSessionId(sessionId) {
|
|
17
|
+
if (!sessionId)
|
|
18
|
+
return 'unknown';
|
|
19
|
+
return sessionId.length > 12 ? sessionId.slice(0, 12) : sessionId;
|
|
20
|
+
}
|
|
21
|
+
function dayStamp(date = new Date()) {
|
|
22
|
+
return date.toISOString().slice(0, 10);
|
|
23
|
+
}
|
|
24
|
+
function sanitize(value) {
|
|
25
|
+
if (typeof value === 'string') {
|
|
26
|
+
if (value.length <= MAX_TEXT_CHARS)
|
|
27
|
+
return value;
|
|
28
|
+
return `${value.slice(0, MAX_TEXT_CHARS)}…`;
|
|
29
|
+
}
|
|
30
|
+
if (Array.isArray(value))
|
|
31
|
+
return value.map(sanitize);
|
|
32
|
+
if (!value || typeof value !== 'object')
|
|
33
|
+
return value;
|
|
34
|
+
const out = {};
|
|
35
|
+
for (const [key, raw] of Object.entries(value)) {
|
|
36
|
+
if (/apiKey|authorization|token|secret|audioBase64|audio/i.test(key)) {
|
|
37
|
+
if (/audioBytes|audioId/i.test(key))
|
|
38
|
+
out[key] = sanitize(raw);
|
|
39
|
+
else
|
|
40
|
+
out[key] = '[redacted]';
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
out[key] = sanitize(raw);
|
|
44
|
+
}
|
|
45
|
+
return out;
|
|
46
|
+
}
|
|
47
|
+
export class VoiceEventLogger {
|
|
48
|
+
isEnabled;
|
|
49
|
+
constructor(isEnabled = enabled) {
|
|
50
|
+
this.isEnabled = isEnabled;
|
|
51
|
+
}
|
|
52
|
+
log(entry) {
|
|
53
|
+
if (!this.isEnabled())
|
|
54
|
+
return;
|
|
55
|
+
const line = JSON.stringify({
|
|
56
|
+
v: 1,
|
|
57
|
+
ts: new Date().toISOString(),
|
|
58
|
+
source: 'voice',
|
|
59
|
+
level: entry.level ?? 'info',
|
|
60
|
+
sessionId: entry.sessionId,
|
|
61
|
+
event: entry.event,
|
|
62
|
+
phase: entry.phase,
|
|
63
|
+
turnId: entry.turnId,
|
|
64
|
+
data: sanitize(entry.data ?? {}),
|
|
65
|
+
});
|
|
66
|
+
const dir = join(getLogsDir(), 'voice', dayStamp());
|
|
67
|
+
const file = join(dir, `${shortSessionId(entry.sessionId)}.jsonl`);
|
|
68
|
+
void mkdir(dir, { recursive: true })
|
|
69
|
+
.then(() => appendFile(file, `${line}\n`, 'utf8'))
|
|
70
|
+
.catch(() => undefined);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export const voiceEventLogger = new VoiceEventLogger();
|
|
74
|
+
//# sourceMappingURL=voiceLog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voiceLog.js","sourceRoot":"","sources":["../../src/ai/voiceLog.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,+BAA+B;AAC/B,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAarD,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,IAAI,IAAI,CAAC,CAAC;AAEtF,SAAS,OAAO;IACd,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,EAAE,CAAC;IACpD,IAAI,GAAG,KAAK,GAAG;QAAE,OAAO,IAAI,CAAC;IAC7B,IAAI,GAAG,KAAK,GAAG;QAAE,OAAO,KAAK,CAAC;IAC9B,OAAO,cAAc,EAAE,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,CAAC;AAC7D,CAAC;AAED,SAAS,cAAc,CAAC,SAA6B;I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oiceBus {
|
|
|
19
19
|
onCommand<Req = unknown, Res = unknown>(verb: string, handler: (payload: Req, ctx: {
|
|
20
20
|
peer: string;
|
|
21
21
|
}) => Promise<Res> | Res): void;
|
|
22
|
+
/** Register a subscribable push path. REQUIRED before `publish` to it can
|
|
23
|
+
* reach anyone — the server rejects subscriptions to unregistered patterns. */
|
|
24
|
+
onSubscribe(pattern: string, handler: {
|
|
25
|
+
snapshot: (ctx: unknown) => unknown;
|
|
26
|
+
}): void;
|
|
22
27
|
publish<T>(path: string, data: T): void;
|
|
23
28
|
}
|
|
24
29
|
/** Classification of an inbound DataChannel message. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voiceStream.d.ts","sourceRoot":"","sources":["../../src/ai/voiceStream.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAEV,cAAc,EAEd,8BAA8B,EAE9B,0BAA0B,EAE3B,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"voiceStream.d.ts","sourceRoot":"","sources":["../../src/ai/voiceStream.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAEV,cAAc,EAEd,8BAA8B,EAE9B,0BAA0B,EAE3B,MAAM,2BAA2B,CAAC;AAInC,gFAAgF;AAChF,MAAM,WAAW,QAAQ;IACvB,SAAS,CAAC,GAAG,GAAG,OAAO,EAAE,GAAG,GAAG,OAAO,EACpC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,GACnE,IAAI,CAAC;IACR;oFACgF;IAChF,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAA;KAAE,GAAG,IAA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
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RealtimeTranscriber } from './realtimeTranscription.js';
|
|
2
|
+
import { voiceEventLogger } from './voiceLog.js';
|
|
2
3
|
/**
|
|
3
4
|
* Decide whether a DataChannel frame is binary audio or a JSON control
|
|
4
5
|
* message. Extracted (and pure) so it can be unit-tested without WebRTC.
|
|
@@ -129,7 +130,7 @@ export class VoiceStreamManager {
|
|
|
129
130
|
return;
|
|
130
131
|
const msg = inbound.msg;
|
|
131
132
|
if (msg.t === 'start') {
|
|
132
|
-
this.startUtterance(peer, msg.config, msg.sampleRate, sendDc);
|
|
133
|
+
this.startUtterance(sessionId, peer, msg.config, msg.sampleRate, sendDc);
|
|
133
134
|
}
|
|
134
135
|
else if (msg.t === 'stop') {
|
|
135
136
|
peer.transcriber?.commit();
|
|
@@ -137,12 +138,29 @@ export class VoiceStreamManager {
|
|
|
137
138
|
};
|
|
138
139
|
channel.onclose = () => this.teardown(sessionId);
|
|
139
140
|
}
|
|
140
|
-
startUtterance(peer, config, sampleRate, sendDc) {
|
|
141
|
+
startUtterance(sessionId, peer, config, sampleRate, sendDc) {
|
|
141
142
|
peer.transcriber?.close();
|
|
142
143
|
peer.transcriber = new RealtimeTranscriber(config, sampleRate, {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
onSpeechStarted: () => {
|
|
145
|
+
voiceEventLogger.log({ sessionId, event: 'vad.speech_started', phase: 'vad' });
|
|
146
|
+
sendDc({ t: 'speech', active: true });
|
|
147
|
+
},
|
|
148
|
+
onSpeechStopped: () => {
|
|
149
|
+
voiceEventLogger.log({ sessionId, event: 'vad.speech_stopped', phase: 'vad' });
|
|
150
|
+
sendDc({ t: 'speech', active: false });
|
|
151
|
+
},
|
|
152
|
+
onPartial: (text) => {
|
|
153
|
+
voiceEventLogger.log({ sessionId, event: 'asr.partial', phase: 'asr', data: { textChars: text.length } });
|
|
154
|
+
sendDc({ t: 'transcript', final: false, text });
|
|
155
|
+
},
|
|
156
|
+
onFinal: (text) => {
|
|
157
|
+
voiceEventLogger.log({ sessionId, event: 'asr.final_fragment', phase: 'asr', data: { text, textChars: text.length } });
|
|
158
|
+
sendDc({ t: 'transcript', final: true, text });
|
|
159
|
+
},
|
|
160
|
+
onError: (message) => {
|
|
161
|
+
voiceEventLogger.log({ sessionId, event: 'asr.error', phase: 'asr', level: 'error', data: { message } });
|
|
162
|
+
sendDc({ t: 'error', message });
|
|
163
|
+
},
|
|
146
164
|
});
|
|
147
165
|
peer.transcriber.start();
|
|
148
166
|
}
|
|
@@ -172,6 +190,12 @@ export class VoiceStreamManager {
|
|
|
172
190
|
*/
|
|
173
191
|
export function wireVoiceStream(bus) {
|
|
174
192
|
const manager = new VoiceStreamManager(bus);
|
|
193
|
+
// The agent trickles its ICE candidates to the PWA on this path. It MUST be
|
|
194
|
+
// registered like any subscribable path — otherwise the server rejects the
|
|
195
|
+
// PWA's `sub` with `sub-error` and `publish()` reaches zero peers, so the
|
|
196
|
+
// agent's candidates never arrive and P2P always times out (remote
|
|
197
|
+
// candidates = 0). Push-only, so the snapshot is null.
|
|
198
|
+
bus.onSubscribe('/voice/rtc/:sessionId', { snapshot: () => null });
|
|
175
199
|
bus.onCommand('voice:rtc-connect', (payload) => manager.connect(payload.sessionId, payload.sdp));
|
|
176
200
|
bus.onCommand('voice:rtc-ice', (payload) => manager.addIce(payload.sessionId, payload.candidate));
|
|
177
201
|
return manager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voiceStream.js","sourceRoot":"","sources":["../../src/ai/voiceStream.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"voiceStream.js","sourceRoot":"","sources":["../../src/ai/voiceStream.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AA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M,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,CAClE,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacyBusAdapter.d.ts","sourceRoot":"","sources":["../../src/handlers/legacyBusAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"legacyBusAdapter.d.ts","sourceRoot":"","sources":["../../src/handlers/legacyBusAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,EAqGzC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,gBAAgB,EACrB,OAAO,EAAE,cAAc,EACvB,KAAK,GAAE,SAAS,WAAW,EAAqB,GAC/C,IAAI,CA4BN"}
|