@ycodium-ai/plugin-api 0.2.5634 → 0.2.5751
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -65
- package/dist/_private/ycodium-attachment-kinds/chatAttachmentKinds.d.ts +34 -0
- package/dist/_private/ycodium-attachment-kinds/chatAttachmentKinds.js +70 -0
- package/dist/_private/ycodium-attachment-kinds/mediaKinds.d.ts +23 -0
- package/dist/_private/ycodium-attachment-kinds/mediaKinds.js +73 -0
- package/dist/_private/ycodium-composer-tokens/approvalFileChanges.d.ts +20 -0
- package/dist/_private/ycodium-composer-tokens/approvalFileChanges.js +45 -0
- package/dist/_private/ycodium-composer-tokens/composerFileLink.d.ts +1 -0
- package/dist/_private/ycodium-composer-tokens/composerFileLink.js +20 -0
- package/dist/_private/ycodium-composer-tokens/composerInlineTokens.d.ts +17 -0
- package/dist/_private/ycodium-composer-tokens/composerInlineTokens.js +91 -0
- package/dist/_private/ycodium-composer-tokens/composerLogic.d.ts +30 -0
- package/dist/_private/ycodium-composer-tokens/composerLogic.js +181 -0
- package/dist/_private/ycodium-composer-tokens/composerMentionDrag.d.ts +40 -0
- package/dist/_private/ycodium-composer-tokens/composerMentionDrag.js +60 -0
- package/dist/_private/ycodium-composer-tokens/composerPromptSegments.d.ts +16 -0
- package/dist/_private/ycodium-composer-tokens/composerPromptSegments.js +142 -0
- package/dist/_private/ycodium-composer-tokens/composerTrigger.d.ts +18 -0
- package/dist/_private/ycodium-composer-tokens/composerTrigger.js +44 -0
- package/dist/_private/ycodium-composer-tokens/contextWindowFormat.d.ts +2 -0
- package/dist/_private/ycodium-composer-tokens/contextWindowFormat.js +16 -0
- package/dist/_private/ycodium-composer-tokens/diffCount.d.ts +2 -0
- package/dist/_private/ycodium-composer-tokens/diffCount.js +15 -0
- package/dist/_private/ycodium-composer-tokens/pendingUserInput.d.ts +48 -0
- package/dist/_private/ycodium-composer-tokens/pendingUserInput.js +145 -0
- package/dist/_private/ycodium-composer-tokens/promptContextBlocks.d.ts +58 -0
- package/dist/_private/ycodium-composer-tokens/promptContextBlocks.js +121 -0
- package/dist/_private/ycodium-composer-tokens/proposedPlan.d.ts +21 -0
- package/dist/_private/ycodium-composer-tokens/proposedPlan.js +106 -0
- package/dist/_private/ycodium-composer-tokens/providerSkillSearch.d.ts +3 -0
- package/dist/_private/ycodium-composer-tokens/providerSkillSearch.js +79 -0
- package/dist/_private/ycodium-composer-tokens/providerSkills.d.ts +17 -0
- package/dist/_private/ycodium-composer-tokens/providerSkills.js +57 -0
- package/dist/_private/ycodium-composer-tokens/queueEntry.d.ts +31 -0
- package/dist/_private/ycodium-composer-tokens/queueEntry.js +44 -0
- package/dist/_private/ycodium-composer-tokens/reviewCommentBlocks.d.ts +29 -0
- package/dist/_private/ycodium-composer-tokens/reviewCommentBlocks.js +118 -0
- package/dist/_private/ycodium-composer-tokens/searchRanking.d.ts +27 -0
- package/dist/_private/ycodium-composer-tokens/searchRanking.js +129 -0
- package/dist/_private/ycodium-composer-tokens/skillTokens.d.ts +101 -0
- package/dist/_private/ycodium-composer-tokens/skillTokens.js +148 -0
- package/dist/_private/ycodium-composer-tokens/slashMenu.d.ts +130 -0
- package/dist/_private/ycodium-composer-tokens/slashMenu.js +175 -0
- package/dist/_private/ycodium-composer-tokens/userInputOptionText.d.ts +33 -0
- package/dist/_private/ycodium-composer-tokens/userInputOptionText.js +27 -0
- package/dist/_private/ycodium-credential-account/credentialAccount.d.ts +21 -0
- package/dist/_private/ycodium-credential-account/credentialAccount.js +62 -0
- package/dist/_private/ycodium-credential-account/quotaJson.d.ts +12 -0
- package/dist/_private/ycodium-credential-account/quotaJson.js +14 -0
- package/dist/_private/ycodium-credential-account/quotaRequest.d.ts +32 -0
- package/dist/_private/ycodium-credential-account/quotaRequest.js +60 -0
- package/dist/_private/ycodium-day-format/dayFormat.d.ts +31 -0
- package/dist/_private/ycodium-day-format/dayFormat.js +32 -0
- package/dist/_private/ycodium-day-format/timestampFormat.d.ts +35 -0
- package/dist/_private/ycodium-day-format/timestampFormat.js +119 -0
- package/dist/_private/ycodium-decision-order/decisionOrder.d.ts +19 -0
- package/dist/_private/ycodium-decision-order/decisionOrder.js +38 -0
- package/dist/_private/ycodium-diff-format/diffRendering.d.ts +42 -0
- package/dist/_private/ycodium-diff-format/diffRendering.js +171 -0
- package/dist/_private/ycodium-duration-format/durationFormat.d.ts +20 -0
- package/dist/_private/ycodium-duration-format/durationFormat.js +56 -0
- package/dist/_private/ycodium-fetch-ports/fetchPorts.d.ts +36 -0
- package/dist/_private/ycodium-fetch-ports/fetchPorts.js +69 -0
- package/dist/_private/ycodium-fetch-ports/netFault.d.ts +10 -0
- package/dist/_private/ycodium-fetch-ports/netFault.js +17 -0
- package/dist/_private/ycodium-full-access-mode/fullAccessNativeMode.d.ts +28 -0
- package/dist/_private/ycodium-full-access-mode/fullAccessNativeMode.js +30 -0
- package/dist/_private/ycodium-instance-config/homePath.d.ts +34 -0
- package/dist/_private/ycodium-instance-config/homePath.js +85 -0
- package/dist/_private/ycodium-instance-config/instanceConfig.d.ts +46 -0
- package/dist/_private/ycodium-instance-config/instanceConfig.js +111 -0
- package/dist/_private/ycodium-instance-config/launchArgs.d.ts +5 -0
- package/dist/_private/ycodium-instance-config/launchArgs.js +65 -0
- package/dist/_private/ycodium-instance-config/probeProcess.d.ts +39 -0
- package/dist/_private/ycodium-instance-config/probeProcess.js +55 -0
- package/dist/_private/ycodium-instance-config/programHomeSchema.d.ts +44 -0
- package/dist/_private/ycodium-instance-config/programHomeSchema.js +60 -0
- package/dist/_private/ycodium-instance-config/tomlScalar.d.ts +5 -0
- package/dist/_private/ycodium-instance-config/tomlScalar.js +11 -0
- package/dist/_private/ycodium-jsonl-stream/appendedJsonl.d.ts +47 -0
- package/dist/_private/ycodium-jsonl-stream/appendedJsonl.js +172 -0
- package/dist/_private/ycodium-jsonl-stream/claudeSessions.d.ts +63 -0
- package/dist/_private/ycodium-jsonl-stream/claudeSessions.js +220 -0
- package/dist/_private/ycodium-jsonl-stream/codexSessions.d.ts +41 -0
- package/dist/_private/ycodium-jsonl-stream/codexSessions.js +197 -0
- package/dist/_private/ycodium-jsonl-stream/history.d.ts +6 -0
- package/dist/_private/ycodium-jsonl-stream/history.js +389 -0
- package/dist/_private/ycodium-jsonl-stream/historyErrors.d.ts +6 -0
- package/dist/_private/ycodium-jsonl-stream/historyErrors.js +6 -0
- package/dist/_private/ycodium-jsonl-stream/historyFile.d.ts +19 -0
- package/dist/_private/ycodium-jsonl-stream/historyFile.js +117 -0
- package/dist/_private/ycodium-jsonl-stream/historyRecord.d.ts +31 -0
- package/dist/_private/ycodium-jsonl-stream/historyRecord.js +144 -0
- package/dist/_private/ycodium-jsonl-stream/historyWaiting.d.ts +8 -0
- package/dist/_private/ycodium-jsonl-stream/historyWaiting.js +142 -0
- package/dist/_private/ycodium-jsonl-stream/jsonObjectLine.d.ts +5 -0
- package/dist/_private/ycodium-jsonl-stream/jsonObjectLine.js +18 -0
- package/dist/_private/ycodium-jsonl-stream/jsonlStream.d.ts +79 -0
- package/dist/_private/ycodium-jsonl-stream/jsonlStream.js +603 -0
- package/dist/_private/ycodium-jsonl-stream/scanCache.d.ts +69 -0
- package/dist/_private/ycodium-jsonl-stream/scanCache.js +106 -0
- package/dist/_private/ycodium-jsonl-stream/sessionDirectory.d.ts +5 -0
- package/dist/_private/ycodium-jsonl-stream/sessionDirectory.js +32 -0
- package/dist/_private/ycodium-jsonl-stream/sessionTranscript.d.ts +16 -0
- package/dist/_private/ycodium-jsonl-stream/sessionTranscript.js +112 -0
- package/dist/_private/ycodium-jsonl-stream/usageFields.d.ts +5 -0
- package/dist/_private/ycodium-jsonl-stream/usageFields.js +11 -0
- package/dist/_private/ycodium-markdown-fence/markdownFence.d.ts +6 -0
- package/dist/_private/ycodium-markdown-fence/markdownFence.js +24 -0
- package/dist/_private/ycodium-source-control/pullRequestScope.d.ts +23 -0
- package/dist/_private/ycodium-source-control/pullRequestScope.js +29 -0
- package/dist/_private/ycodium-sse-stream/sseStream.d.ts +37 -0
- package/dist/_private/ycodium-sse-stream/sseStream.js +104 -0
- package/dist/_private/ycodium-system-text/memberInstructions.d.ts +13 -0
- package/dist/_private/ycodium-system-text/memberInstructions.js +9 -0
- package/dist/_private/ycodium-system-text/systemText.d.ts +179 -0
- package/dist/_private/ycodium-system-text/systemText.js +257 -0
- package/dist/_private/ycodium-system-text/threadPreset.d.ts +18 -0
- package/dist/_private/ycodium-system-text/threadPreset.js +21 -0
- package/dist/_private/ycodium-text-generation/branchName.d.ts +6 -0
- package/dist/_private/ycodium-text-generation/branchName.js +26 -0
- package/dist/_private/ycodium-text-generation/prompts.d.ts +70 -0
- package/dist/_private/ycodium-text-generation/prompts.js +266 -0
- package/dist/_private/ycodium-text-generation/sanitize.d.ts +10 -0
- package/dist/_private/ycodium-text-generation/sanitize.js +124 -0
- package/dist/_private/ycodium-text-generation/structuredTextGeneration.d.ts +29 -0
- package/dist/_private/ycodium-text-generation/structuredTextGeneration.js +163 -0
- package/dist/_private/ycodium-tool-label/toolLabel.d.ts +42 -0
- package/dist/_private/ycodium-tool-label/toolLabel.js +249 -0
- package/dist/_private/ycodium-ui-hooks/DiffStatCounts.d.ts +22 -0
- package/dist/_private/ycodium-ui-hooks/DiffStatCounts.js +22 -0
- package/dist/_private/ycodium-ui-hooks/ProviderSignInChallenge.d.ts +29 -0
- package/dist/_private/ycodium-ui-hooks/ProviderSignInChallenge.js +13 -0
- package/dist/_private/ycodium-ui-hooks/RenderErrorBoundary.d.ts +28 -0
- package/dist/_private/ycodium-ui-hooks/RenderErrorBoundary.js +22 -0
- package/dist/_private/ycodium-ui-hooks/RuntimeMaintenanceActions.d.ts +19 -0
- package/dist/_private/ycodium-ui-hooks/RuntimeMaintenanceActions.js +7 -0
- package/dist/_private/ycodium-ui-hooks/SkillInlineText.d.ts +13 -0
- package/dist/_private/ycodium-ui-hooks/SkillInlineText.js +13 -0
- package/dist/_private/ycodium-ui-hooks/bundleStyle.d.ts +4 -0
- package/dist/_private/ycodium-ui-hooks/bundleStyle.js +52 -0
- package/dist/_private/ycodium-ui-hooks/catalogKeys.d.ts +9 -0
- package/dist/_private/ycodium-ui-hooks/catalogKeys.js +1 -0
- package/dist/_private/ycodium-ui-hooks/clipboard.d.ts +22 -0
- package/dist/_private/ycodium-ui-hooks/clipboard.js +149 -0
- package/dist/_private/ycodium-ui-hooks/hostControls.d.ts +24 -0
- package/dist/_private/ycodium-ui-hooks/hostControls.js +25 -0
- package/dist/_private/ycodium-ui-hooks/inlineChips.d.ts +50 -0
- package/dist/_private/ycodium-ui-hooks/inlineChips.js +32 -0
- package/dist/_private/ycodium-ui-hooks/notifyMessages.d.ts +20 -0
- package/dist/_private/ycodium-ui-hooks/notifyMessages.js +26 -0
- package/dist/_private/ycodium-ui-hooks/presenterInputState.d.ts +52 -0
- package/dist/_private/ycodium-ui-hooks/presenterInputState.js +240 -0
- package/dist/_private/ycodium-ui-hooks/processRowHeader.d.ts +6 -0
- package/dist/_private/ycodium-ui-hooks/processRowHeader.js +6 -0
- package/dist/_private/ycodium-ui-hooks/timelineDisclosure.d.ts +5 -0
- package/dist/_private/ycodium-ui-hooks/timelineDisclosure.js +73 -0
- package/dist/_private/ycodium-ui-hooks/useMediaQuery.d.ts +20 -0
- package/dist/_private/ycodium-ui-hooks/useMediaQuery.js +70 -0
- package/dist/_private/ycodium-ui-hooks/workEntryIcons.d.ts +25 -0
- package/dist/_private/ycodium-ui-hooks/workEntryIcons.js +66 -0
- package/dist/_private/ycodium-workspace-path/directoryScope.d.ts +5 -0
- package/dist/_private/ycodium-workspace-path/directoryScope.js +28 -0
- package/dist/_private/ycodium-workspace-path/workspacePath.d.ts +19 -0
- package/dist/_private/ycodium-workspace-path/workspacePath.js +90 -0
- package/dist/cache.d.ts.map +1 -1
- package/dist/cache.js.map +1 -1
- package/dist/capabilityPorts.d.ts.map +1 -1
- package/dist/capabilityPorts.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js.map +1 -1
- package/dist/communication-view.d.ts.map +1 -1
- package/dist/communication-view.js.map +1 -1
- package/dist/communication.d.ts.map +1 -1
- package/dist/communication.js.map +1 -1
- package/dist/composer-control.d.ts.map +1 -1
- package/dist/composer-control.js.map +1 -1
- package/dist/composer.d.ts +22 -0
- package/dist/composer.d.ts.map +1 -0
- package/dist/composer.js +22 -0
- package/dist/composer.js.map +1 -0
- package/dist/conversation-queue.d.ts.map +1 -1
- package/dist/conversation-queue.js.map +1 -1
- package/dist/conversation-view.d.ts.map +1 -1
- package/dist/conversation-view.js.map +1 -1
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js.map +1 -1
- package/dist/conversationAttachments.d.ts.map +1 -1
- package/dist/conversationAttachments.js.map +1 -1
- package/dist/conversationBase.d.ts.map +1 -1
- package/dist/conversationBase.js.map +1 -1
- package/dist/conversationComposerApi.d.ts.map +1 -1
- package/dist/conversationComposerApi.js.map +1 -1
- package/dist/conversationComposerEnvironment.d.ts.map +1 -1
- package/dist/conversationComposerEnvironment.js.map +1 -1
- package/dist/conversationComposerHandle.d.ts.map +1 -1
- package/dist/conversationComposerHandle.js.map +1 -1
- package/dist/conversationComposerParts.d.ts.map +1 -1
- package/dist/conversationComposerParts.js.map +1 -1
- package/dist/conversationDerive.d.ts.map +1 -1
- package/dist/conversationDerive.js.map +1 -1
- package/dist/conversationDrafts.d.ts.map +1 -1
- package/dist/conversationDrafts.js.map +1 -1
- package/dist/conversationForks.d.ts.map +1 -1
- package/dist/conversationForks.js.map +1 -1
- package/dist/conversationHostModels.d.ts.map +1 -1
- package/dist/conversationHostModels.js.map +1 -1
- package/dist/conversationLoadFailure.d.ts.map +1 -1
- package/dist/conversationLoadFailure.js.map +1 -1
- package/dist/conversationMemberMentions.d.ts.map +1 -1
- package/dist/conversationMemberMentions.js.map +1 -1
- package/dist/conversationMessageLinks.d.ts.map +1 -1
- package/dist/conversationMessageLinks.js.map +1 -1
- package/dist/conversationMessageMemory.d.ts.map +1 -1
- package/dist/conversationMessageMemory.js.map +1 -1
- package/dist/conversationPresets.d.ts.map +1 -1
- package/dist/conversationPresets.js.map +1 -1
- package/dist/conversationRows.d.ts.map +1 -1
- package/dist/conversationRows.js.map +1 -1
- package/dist/conversationSessionMessage.d.ts.map +1 -1
- package/dist/conversationSessionMessage.js.map +1 -1
- package/dist/conversationSkills.d.ts.map +1 -1
- package/dist/conversationSkills.js.map +1 -1
- package/dist/conversationTrajectory.d.ts.map +1 -1
- package/dist/conversationTrajectory.js.map +1 -1
- package/dist/conversationTranscript.d.ts.map +1 -1
- package/dist/conversationTranscript.js.map +1 -1
- package/dist/conversationTurnSummaries.d.ts.map +1 -1
- package/dist/conversationTurnSummaries.js.map +1 -1
- package/dist/conversationViewProps.d.ts.map +1 -1
- package/dist/conversationViewProps.js.map +1 -1
- package/dist/conversationWorkEntry.d.ts.map +1 -1
- package/dist/conversationWorkEntry.js.map +1 -1
- package/dist/credential-account.d.ts +4 -0
- package/dist/credential-account.d.ts.map +1 -0
- package/dist/credential-account.js +4 -0
- package/dist/credential-account.js.map +1 -0
- package/dist/dataPorts.gen.d.ts +306 -0
- package/dist/dataPorts.gen.d.ts.map +1 -1
- package/dist/dataPorts.gen.js.map +1 -1
- package/dist/decision-card.d.ts.map +1 -1
- package/dist/decision-card.js.map +1 -1
- package/dist/decisions.d.ts.map +1 -1
- package/dist/decisions.js.map +1 -1
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js.map +1 -1
- package/dist/derivedState.d.ts.map +1 -1
- package/dist/derivedState.js.map +1 -1
- package/dist/diagnosticData.d.ts.map +1 -1
- package/dist/diagnosticData.js.map +1 -1
- package/dist/diff-rendering.d.ts +2 -0
- package/dist/diff-rendering.d.ts.map +1 -0
- package/dist/diff-rendering.js +2 -0
- package/dist/diff-rendering.js.map +1 -0
- package/dist/display-format.d.ts +5 -0
- package/dist/display-format.d.ts.map +1 -0
- package/dist/display-format.js +5 -0
- package/dist/display-format.js.map +1 -0
- package/dist/entity-names.d.ts.map +1 -1
- package/dist/entity-names.js.map +1 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js.map +1 -1
- package/dist/executor-mode.d.ts +2 -0
- package/dist/executor-mode.d.ts.map +1 -0
- package/dist/executor-mode.js +2 -0
- package/dist/executor-mode.js.map +1 -0
- package/dist/executor.d.ts +17 -1
- package/dist/executor.d.ts.map +1 -1
- package/dist/executor.js.map +1 -1
- package/dist/executorCapabilities.d.ts.map +1 -1
- package/dist/executorCapabilities.js.map +1 -1
- package/dist/executorCard.d.ts +6 -0
- package/dist/executorCard.d.ts.map +1 -1
- package/dist/executorCard.js.map +1 -1
- package/dist/executorCommandArgv.d.ts.map +1 -1
- package/dist/executorCommandArgv.js.map +1 -1
- package/dist/executorEffective.d.ts.map +1 -1
- package/dist/executorEffective.js.map +1 -1
- package/dist/executorErrors.d.ts.map +1 -1
- package/dist/executorErrors.js.map +1 -1
- package/dist/executorEvents.d.ts.map +1 -1
- package/dist/executorEvents.js.map +1 -1
- package/dist/executorModelOptions.d.ts.map +1 -1
- package/dist/executorModelOptions.js.map +1 -1
- package/dist/executorProcesses.d.ts.map +1 -1
- package/dist/executorProcesses.js.map +1 -1
- package/dist/executorSession.d.ts +8 -2
- package/dist/executorSession.d.ts.map +1 -1
- package/dist/executorSession.js.map +1 -1
- package/dist/executorSpawn.d.ts +5 -4
- package/dist/executorSpawn.d.ts.map +1 -1
- package/dist/executorSpawn.js +20 -7
- package/dist/executorSpawn.js.map +1 -1
- package/dist/fetch-ports.d.ts +2 -0
- package/dist/fetch-ports.d.ts.map +1 -0
- package/dist/fetch-ports.js +2 -0
- package/dist/fetch-ports.js.map +1 -0
- package/dist/file-preview.d.ts.map +1 -1
- package/dist/file-preview.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inline-tag.d.ts.map +1 -1
- package/dist/inline-tag.js.map +1 -1
- package/dist/instance-config.d.ts +7 -0
- package/dist/instance-config.d.ts.map +1 -0
- package/dist/instance-config.js +7 -0
- package/dist/instance-config.js.map +1 -0
- package/dist/interval.d.ts.map +1 -1
- package/dist/interval.js.map +1 -1
- package/dist/jsonl.d.ts +6 -0
- package/dist/jsonl.d.ts.map +1 -0
- package/dist/jsonl.js +6 -0
- package/dist/jsonl.js.map +1 -0
- package/dist/keyedSubscribers.d.ts.map +1 -1
- package/dist/keyedSubscribers.js.map +1 -1
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js.map +1 -1
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js.map +1 -1
- package/dist/model-picker.d.ts.map +1 -1
- package/dist/model-picker.js.map +1 -1
- package/dist/modelCatalogNotice.d.ts.map +1 -1
- package/dist/modelCatalogNotice.js.map +1 -1
- package/dist/modelChoice.d.ts.map +1 -1
- package/dist/modelChoice.js.map +1 -1
- package/dist/modelChoiceOptions.d.ts.map +1 -1
- package/dist/modelChoiceOptions.js.map +1 -1
- package/dist/modelChoiceTraits.d.ts.map +1 -1
- package/dist/modelChoiceTraits.js.map +1 -1
- package/dist/modelDisplayName.d.ts.map +1 -1
- package/dist/modelDisplayName.js.map +1 -1
- package/dist/pending-requests.d.ts.map +1 -1
- package/dist/pending-requests.js.map +1 -1
- package/dist/plugin-tools.d.ts.map +1 -1
- package/dist/plugin-tools.js.map +1 -1
- package/dist/pluginContextCommands.d.ts.map +1 -1
- package/dist/pluginContextCommands.js.map +1 -1
- package/dist/pluginContextProviders.d.ts.map +1 -1
- package/dist/pluginContextProviders.js.map +1 -1
- package/dist/pluginContextThreads.d.ts.map +1 -1
- package/dist/pluginContextThreads.js.map +1 -1
- package/dist/pluginContextWorkspace.d.ts.map +1 -1
- package/dist/pluginContextWorkspace.js.map +1 -1
- package/dist/process-operation.d.ts.map +1 -1
- package/dist/process-operation.js.map +1 -1
- package/dist/process-socket.d.ts.map +1 -1
- package/dist/process-socket.js.map +1 -1
- package/dist/process-stdin.d.ts.map +1 -1
- package/dist/process-stdin.js.map +1 -1
- package/dist/projects.d.ts.map +1 -1
- package/dist/projects.js.map +1 -1
- package/dist/provider-settings.d.ts.map +1 -1
- package/dist/provider-settings.js.map +1 -1
- package/dist/providerInstanceSelection.d.ts.map +1 -1
- package/dist/providerInstanceSelection.js.map +1 -1
- package/dist/reasoningLevelFallback.d.ts.map +1 -1
- package/dist/reasoningLevelFallback.js.map +1 -1
- package/dist/runtime-maintenance.d.ts.map +1 -1
- package/dist/runtime-maintenance.js.map +1 -1
- package/dist/runtimes.d.ts.map +1 -1
- package/dist/runtimes.js.map +1 -1
- package/dist/selectAllCopy.d.ts.map +1 -1
- package/dist/selectAllCopy.js.map +1 -1
- package/dist/session-history.d.ts +6 -0
- package/dist/session-history.d.ts.map +1 -0
- package/dist/session-history.js +6 -0
- package/dist/session-history.js.map +1 -0
- package/dist/settings-actions.d.ts.map +1 -1
- package/dist/settings-actions.js.map +1 -1
- package/dist/settings-card-shape.d.ts.map +1 -1
- package/dist/settings-card-shape.js.map +1 -1
- package/dist/settings-card.d.ts.map +1 -1
- package/dist/settings-card.js.map +1 -1
- package/dist/settings-ui.d.ts.map +1 -1
- package/dist/settings-ui.js.map +1 -1
- package/dist/sign-in.d.ts.map +1 -1
- package/dist/sign-in.js.map +1 -1
- package/dist/slashCommands.d.ts.map +1 -1
- package/dist/slashCommands.js.map +1 -1
- package/dist/slots.d.ts.map +1 -1
- package/dist/slots.js.map +1 -1
- package/dist/source/_private/ycodium-attachment-kinds/chatAttachmentKinds.ts +105 -0
- package/dist/source/_private/ycodium-attachment-kinds/mediaKinds.ts +83 -0
- package/dist/source/_private/ycodium-composer-tokens/approvalFileChanges.ts +58 -0
- package/dist/source/_private/ycodium-composer-tokens/composerFileLink.ts +23 -0
- package/dist/source/_private/ycodium-composer-tokens/composerInlineTokens.ts +130 -0
- package/dist/source/_private/ycodium-composer-tokens/composerLogic.ts +251 -0
- package/dist/source/_private/ycodium-composer-tokens/composerMentionDrag.ts +98 -0
- package/dist/source/_private/ycodium-composer-tokens/composerPromptSegments.ts +222 -0
- package/dist/source/_private/ycodium-composer-tokens/composerTrigger.ts +64 -0
- package/dist/source/_private/ycodium-composer-tokens/contextWindowFormat.ts +16 -0
- package/dist/source/_private/ycodium-composer-tokens/diffCount.ts +14 -0
- package/dist/source/_private/ycodium-composer-tokens/pendingUserInput.ts +256 -0
- package/dist/source/_private/ycodium-composer-tokens/promptContextBlocks.ts +179 -0
- package/dist/source/_private/ycodium-composer-tokens/proposedPlan.ts +134 -0
- package/dist/source/_private/ycodium-composer-tokens/providerSkillSearch.ts +105 -0
- package/dist/source/_private/ycodium-composer-tokens/providerSkills.ts +86 -0
- package/dist/source/_private/ycodium-composer-tokens/queueEntry.ts +49 -0
- package/dist/source/_private/ycodium-composer-tokens/reviewCommentBlocks.ts +177 -0
- package/dist/source/_private/ycodium-composer-tokens/searchRanking.ts +192 -0
- package/dist/source/_private/ycodium-composer-tokens/skillTokens.ts +192 -0
- package/dist/source/_private/ycodium-composer-tokens/slashMenu.ts +293 -0
- package/dist/source/_private/ycodium-composer-tokens/userInputOptionText.ts +51 -0
- package/dist/source/_private/ycodium-credential-account/credentialAccount.ts +83 -0
- package/dist/source/_private/ycodium-credential-account/quotaJson.ts +25 -0
- package/dist/source/_private/ycodium-credential-account/quotaRequest.ts +79 -0
- package/dist/source/_private/ycodium-day-format/dayFormat.ts +57 -0
- package/dist/source/_private/ycodium-day-format/timestampFormat.ts +165 -0
- package/dist/source/_private/ycodium-decision-order/decisionOrder.ts +54 -0
- package/dist/source/_private/ycodium-diff-format/diffRendering.ts +229 -0
- package/dist/source/_private/ycodium-duration-format/durationFormat.ts +60 -0
- package/dist/source/_private/ycodium-executor-common/catalogModel.ts +40 -0
- package/dist/source/_private/ycodium-executor-common/eventTypes.ts +97 -0
- package/dist/source/_private/ycodium-executor-common/modelSelection.ts +24 -0
- package/dist/source/_private/ycodium-executor-common/nodeStreams.ts +212 -0
- package/dist/source/_private/ycodium-executor-common/raceAbort.ts +25 -0
- package/dist/source/_private/ycodium-executor-common/reasoningLevelFallback.ts +28 -0
- package/dist/source/_private/ycodium-executor-common/stderrTail.ts +27 -0
- package/dist/source/_private/ycodium-executor-common/toolPresentation.ts +268 -0
- package/dist/source/_private/ycodium-fetch-ports/fetchPorts.ts +84 -0
- package/dist/source/_private/ycodium-fetch-ports/netFault.ts +30 -0
- package/dist/source/_private/ycodium-full-access-mode/fullAccessNativeMode.ts +32 -0
- package/dist/source/_private/ycodium-instance-config/homePath.ts +140 -0
- package/dist/source/_private/ycodium-instance-config/instanceConfig.ts +149 -0
- package/dist/source/_private/ycodium-instance-config/launchArgs.ts +60 -0
- package/dist/source/_private/ycodium-instance-config/probeProcess.ts +89 -0
- package/dist/source/_private/ycodium-instance-config/programHomeSchema.ts +74 -0
- package/dist/source/_private/ycodium-instance-config/tomlScalar.ts +10 -0
- package/dist/source/_private/ycodium-jsonl-stream/appendedJsonl.ts +222 -0
- package/dist/source/_private/ycodium-jsonl-stream/claudeSessions.ts +263 -0
- package/dist/source/_private/ycodium-jsonl-stream/codexSessions.ts +254 -0
- package/dist/source/_private/ycodium-jsonl-stream/history.ts +492 -0
- package/dist/source/_private/ycodium-jsonl-stream/historyErrors.ts +6 -0
- package/dist/source/_private/ycodium-jsonl-stream/historyFile.ts +139 -0
- package/dist/source/_private/ycodium-jsonl-stream/historyRecord.ts +180 -0
- package/dist/source/_private/ycodium-jsonl-stream/historyWaiting.ts +140 -0
- package/dist/source/_private/ycodium-jsonl-stream/jsonObjectLine.ts +15 -0
- package/dist/source/_private/ycodium-jsonl-stream/jsonlStream.ts +650 -0
- package/dist/source/_private/ycodium-jsonl-stream/scanCache.ts +163 -0
- package/dist/source/_private/ycodium-jsonl-stream/sessionDirectory.ts +39 -0
- package/dist/source/_private/ycodium-jsonl-stream/sessionTranscript.ts +136 -0
- package/dist/source/_private/ycodium-jsonl-stream/usageFields.ts +13 -0
- package/dist/source/_private/ycodium-markdown-fence/markdownFence.ts +28 -0
- package/dist/source/_private/ycodium-source-control/pullRequestScope.ts +35 -0
- package/dist/source/_private/ycodium-sse-stream/sseStream.ts +118 -0
- package/dist/source/_private/ycodium-system-text/memberInstructions.ts +24 -0
- package/dist/source/_private/ycodium-system-text/systemText.ts +356 -0
- package/dist/source/_private/ycodium-system-text/threadPreset.ts +35 -0
- package/dist/source/_private/ycodium-text-generation/branchName.ts +29 -0
- package/dist/source/_private/ycodium-text-generation/prompts.ts +342 -0
- package/dist/source/_private/ycodium-text-generation/sanitize.ts +125 -0
- package/dist/source/_private/ycodium-text-generation/structuredTextGeneration.ts +237 -0
- package/dist/source/_private/ycodium-tool-label/toolLabel.ts +287 -0
- package/dist/source/_private/ycodium-ui-hooks/DiffStatCounts.tsx +76 -0
- package/dist/source/_private/ycodium-ui-hooks/ProviderSignInChallenge.tsx +115 -0
- package/dist/source/_private/ycodium-ui-hooks/RenderErrorBoundary.tsx +34 -0
- package/dist/source/_private/ycodium-ui-hooks/RuntimeMaintenanceActions.tsx +63 -0
- package/dist/source/_private/ycodium-ui-hooks/SkillInlineText.tsx +28 -0
- package/dist/source/_private/ycodium-ui-hooks/bundleStyle.ts +52 -0
- package/dist/source/_private/ycodium-ui-hooks/catalogKeys.ts +11 -0
- package/dist/source/_private/ycodium-ui-hooks/clipboard.ts +176 -0
- package/dist/source/_private/ycodium-ui-hooks/hostControls.ts +43 -0
- package/dist/source/_private/ycodium-ui-hooks/inlineChips.tsx +114 -0
- package/dist/source/_private/ycodium-ui-hooks/notifyMessages.ts +36 -0
- package/dist/source/_private/ycodium-ui-hooks/presenterInputState.ts +341 -0
- package/dist/source/_private/ycodium-ui-hooks/processRowHeader.ts +7 -0
- package/dist/source/_private/ycodium-ui-hooks/timelineDisclosure.ts +98 -0
- package/dist/source/_private/ycodium-ui-hooks/useMediaQuery.ts +87 -0
- package/dist/source/_private/ycodium-ui-hooks/workEntryIcons.ts +99 -0
- package/dist/source/_private/ycodium-workspace-path/directoryScope.ts +34 -0
- package/dist/source/_private/ycodium-workspace-path/workspacePath.ts +110 -0
- package/dist/source/cache.ts +55 -0
- package/dist/source/capabilityPorts.ts +272 -0
- package/dist/source/cli.ts +69 -0
- package/dist/source/commands.ts +208 -0
- package/dist/source/communication-view.ts +107 -0
- package/dist/source/communication.ts +26 -0
- package/dist/source/composer-control.ts +16 -0
- package/dist/source/composer.ts +108 -0
- package/dist/source/conversation-queue.ts +165 -0
- package/dist/source/conversation-view.ts +49 -0
- package/dist/source/conversation.ts +700 -0
- package/dist/source/conversationAttachments.ts +139 -0
- package/dist/source/conversationBase.ts +128 -0
- package/dist/source/conversationComposerApi.ts +339 -0
- package/dist/source/conversationComposerEnvironment.ts +76 -0
- package/dist/source/conversationComposerHandle.ts +89 -0
- package/dist/source/conversationComposerParts.ts +10 -0
- package/dist/source/conversationDerive.ts +252 -0
- package/dist/source/conversationDrafts.ts +281 -0
- package/dist/source/conversationForks.ts +40 -0
- package/dist/source/conversationHostModels.ts +467 -0
- package/dist/source/conversationLoadFailure.ts +9 -0
- package/dist/source/conversationMemberMentions.ts +63 -0
- package/dist/source/conversationMessageLinks.ts +153 -0
- package/dist/source/conversationMessageMemory.ts +45 -0
- package/dist/source/conversationPresets.ts +15 -0
- package/dist/source/conversationRows.ts +132 -0
- package/dist/source/conversationSessionMessage.ts +18 -0
- package/dist/source/conversationSkills.ts +26 -0
- package/dist/source/conversationTrajectory.ts +116 -0
- package/dist/source/conversationTranscript.ts +33 -0
- package/dist/source/conversationTurnSummaries.ts +57 -0
- package/dist/source/conversationViewProps.ts +486 -0
- package/dist/source/conversationWorkEntry.ts +104 -0
- package/dist/source/credential-account.ts +18 -0
- package/dist/source/dataPorts.gen.ts +2207 -0
- package/dist/source/decision-card.ts +87 -0
- package/dist/source/decisions.ts +43 -0
- package/dist/source/definition.ts +28 -0
- package/dist/source/derivedState.ts +55 -0
- package/dist/source/diagnosticData.ts +238 -0
- package/dist/source/diff-rendering.ts +6 -0
- package/dist/source/display-format.ts +14 -0
- package/dist/source/entity-names.ts +73 -0
- package/dist/source/events.ts +326 -0
- package/dist/source/executor-mode.ts +1 -0
- package/dist/source/executor.ts +623 -0
- package/dist/source/executorCapabilities.ts +89 -0
- package/dist/source/executorCard.ts +426 -0
- package/dist/source/executorCommandArgv.ts +114 -0
- package/dist/source/executorEffective.ts +99 -0
- package/dist/source/executorErrors.ts +73 -0
- package/dist/source/executorEvents.ts +258 -0
- package/dist/source/executorModelOptions.ts +179 -0
- package/dist/source/executorProcesses.ts +43 -0
- package/dist/source/executorSession.ts +508 -0
- package/dist/source/executorSpawn.ts +141 -0
- package/dist/source/fetch-ports.ts +1 -0
- package/dist/source/file-preview.ts +32 -0
- package/dist/source/index.ts +416 -0
- package/dist/source/inline-tag.ts +27 -0
- package/dist/source/instance-config.ts +31 -0
- package/dist/source/interval.ts +32 -0
- package/dist/source/jsonl.ts +21 -0
- package/dist/source/keyedSubscribers.ts +55 -0
- package/dist/source/logger.ts +16 -0
- package/dist/source/messages.ts +27 -0
- package/dist/source/model-picker.ts +82 -0
- package/dist/source/modelCatalogNotice.ts +34 -0
- package/dist/source/modelChoice.ts +371 -0
- package/dist/source/modelChoiceOptions.ts +309 -0
- package/dist/source/modelChoiceTraits.ts +133 -0
- package/dist/source/modelDisplayName.ts +42 -0
- package/dist/source/pending-requests.ts +56 -0
- package/dist/source/plugin-tools.ts +181 -0
- package/dist/source/pluginContextCommands.ts +224 -0
- package/dist/source/pluginContextProviders.ts +136 -0
- package/dist/source/pluginContextThreads.ts +83 -0
- package/dist/source/pluginContextWorkspace.ts +74 -0
- package/dist/source/process-operation.ts +291 -0
- package/dist/source/process-socket.ts +371 -0
- package/dist/source/process-stdin.ts +214 -0
- package/dist/source/projects.ts +31 -0
- package/dist/source/provider-settings.ts +343 -0
- package/dist/source/providerInstanceSelection.ts +72 -0
- package/dist/source/reasoningLevelFallback.ts +13 -0
- package/dist/source/runtime-maintenance.ts +307 -0
- package/dist/source/runtimes.ts +14 -0
- package/dist/source/selectAllCopy.ts +12 -0
- package/dist/source/session-history.ts +45 -0
- package/dist/source/settings-actions.ts +91 -0
- package/dist/source/settings-card-shape.ts +229 -0
- package/dist/source/settings-card.ts +311 -0
- package/dist/source/settings-ui.ts +48 -0
- package/dist/source/sign-in.ts +52 -0
- package/dist/source/slashCommands.ts +36 -0
- package/dist/source/slots.ts +243 -0
- package/dist/source/source-control.ts +5 -0
- package/dist/source/sse.ts +1 -0
- package/dist/source/system-text.ts +18 -0
- package/dist/source/teamView.ts +67 -0
- package/dist/source/testing.ts +203 -0
- package/dist/source/text-generation.ts +5 -0
- package/dist/source/threadAnnotation.ts +12 -0
- package/dist/source/threads.ts +77 -0
- package/dist/source/timeline-process.ts +87 -0
- package/dist/source/timeline-row-error.ts +14 -0
- package/dist/source/tool-display.ts +130 -0
- package/dist/source/traits-picker.ts +84 -0
- package/dist/source/ui-bridge-version.ts +64 -0
- package/dist/source/ui-hooks.ts +26 -0
- package/dist/source/ui-i18n.ts +1 -0
- package/dist/source/ui-media-query.ts +1 -0
- package/dist/source/ui-presenter-state.ts +6 -0
- package/dist/source/ui.ts +671 -0
- package/dist/source/uiHostCapabilities.ts +85 -0
- package/dist/source/uiMachineAdmission.ts +21 -0
- package/dist/source/uiSessionProjections.ts +19 -0
- package/dist/source/usage.ts +225 -0
- package/dist/source/version.ts +30 -0
- package/dist/source/workspace-path.ts +2 -0
- package/dist/source-control.d.ts +3 -0
- package/dist/source-control.d.ts.map +1 -0
- package/dist/source-control.js +3 -0
- package/dist/source-control.js.map +1 -0
- package/dist/sse.d.ts +2 -0
- package/dist/sse.d.ts.map +1 -0
- package/dist/sse.js +2 -0
- package/dist/sse.js.map +1 -0
- package/dist/system-text.d.ts +4 -0
- package/dist/system-text.d.ts.map +1 -0
- package/dist/system-text.js +4 -0
- package/dist/system-text.js.map +1 -0
- package/dist/teamView.d.ts.map +1 -1
- package/dist/teamView.js.map +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js.map +1 -1
- package/dist/text-generation.d.ts +3 -0
- package/dist/text-generation.d.ts.map +1 -0
- package/dist/text-generation.js +3 -0
- package/dist/text-generation.js.map +1 -0
- package/dist/threadAnnotation.d.ts.map +1 -1
- package/dist/threadAnnotation.js.map +1 -1
- package/dist/threads.d.ts.map +1 -1
- package/dist/threads.js.map +1 -1
- package/dist/timeline-process.d.ts +32 -0
- package/dist/timeline-process.d.ts.map +1 -1
- package/dist/timeline-process.js.map +1 -1
- package/dist/timeline-row-error.d.ts.map +1 -1
- package/dist/timeline-row-error.js.map +1 -1
- package/dist/tool-display.d.ts.map +1 -1
- package/dist/tool-display.js.map +1 -1
- package/dist/traits-picker.d.ts.map +1 -1
- package/dist/traits-picker.js.map +1 -1
- package/dist/ui-bridge-version.d.ts.map +1 -1
- package/dist/ui-bridge-version.js.map +1 -1
- package/dist/ui-hooks.d.ts +14 -0
- package/dist/ui-hooks.d.ts.map +1 -0
- package/dist/ui-hooks.js +14 -0
- package/dist/ui-hooks.js.map +1 -0
- package/dist/ui-i18n.d.ts +2 -0
- package/dist/ui-i18n.d.ts.map +1 -0
- package/dist/ui-i18n.js +2 -0
- package/dist/ui-i18n.js.map +1 -0
- package/dist/ui-media-query.d.ts +2 -0
- package/dist/ui-media-query.d.ts.map +1 -0
- package/dist/ui-media-query.js +2 -0
- package/dist/ui-media-query.js.map +1 -0
- package/dist/ui-presenter-state.d.ts +2 -0
- package/dist/ui-presenter-state.d.ts.map +1 -0
- package/dist/ui-presenter-state.js +2 -0
- package/dist/ui-presenter-state.js.map +1 -0
- package/dist/ui.d.ts +2 -2
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js.map +1 -1
- package/dist/uiHostCapabilities.d.ts.map +1 -1
- package/dist/uiHostCapabilities.js.map +1 -1
- package/dist/uiMachineAdmission.d.ts.map +1 -1
- package/dist/uiMachineAdmission.js.map +1 -1
- package/dist/uiSessionProjections.d.ts.map +1 -1
- package/dist/uiSessionProjections.js.map +1 -1
- package/dist/usage.d.ts.map +1 -1
- package/dist/usage.js.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/workspace-path.d.ts +3 -0
- package/dist/workspace-path.d.ts.map +1 -0
- package/dist/workspace-path.js +3 -0
- package/dist/workspace-path.js.map +1 -0
- package/package.json +114 -3
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `views.conversation` 的视图 props。
|
|
3
|
+
* 类型从 `conversation.ts` 再导出,插件照常从 `@ycodium-ai/plugin-api/conversation` 引。
|
|
4
|
+
*
|
|
5
|
+
* @module @ycodium-ai/plugin-api/conversationViewProps
|
|
6
|
+
*/
|
|
7
|
+
import type { ConversationHostData } from "./conversation.ts";
|
|
8
|
+
import type {
|
|
9
|
+
ConversationAttachmentDocumentOpen,
|
|
10
|
+
ConversationAttachmentsApi,
|
|
11
|
+
} from "./conversationAttachments.ts";
|
|
12
|
+
import type { ConversationModelBadge } from "./conversationBase.ts";
|
|
13
|
+
import type { ConversationComposerApi } from "./conversationComposerApi.ts";
|
|
14
|
+
import type {
|
|
15
|
+
ConversationComposerHandle,
|
|
16
|
+
ConversationComposerSendContextReader,
|
|
17
|
+
} from "./conversationComposerHandle.ts";
|
|
18
|
+
import type { ConversationDeriveApi, ConversationScrollAnchor } from "./conversationDerive.ts";
|
|
19
|
+
import type {
|
|
20
|
+
ConversationComposerImageAttachment,
|
|
21
|
+
ConversationElementContextDraft,
|
|
22
|
+
ConversationTerminalContextDraft,
|
|
23
|
+
} from "./conversationDrafts.ts";
|
|
24
|
+
import type {
|
|
25
|
+
ConversationComposerThreadTarget,
|
|
26
|
+
ConversationDraftId,
|
|
27
|
+
ConversationEnvironmentConnectionPresentation,
|
|
28
|
+
ConversationEnvironmentId,
|
|
29
|
+
ConversationModelSelection,
|
|
30
|
+
ConversationProviderInstanceId,
|
|
31
|
+
ConversationResolvedKeybindingsConfig,
|
|
32
|
+
ConversationRuntimeMode,
|
|
33
|
+
ConversationScopedThreadRef,
|
|
34
|
+
ConversationSessionPhase,
|
|
35
|
+
ConversationThreadId,
|
|
36
|
+
ConversationThreadMeta,
|
|
37
|
+
ConversationTurnId,
|
|
38
|
+
ConversationUnifiedSettings,
|
|
39
|
+
} from "./conversationHostModels.ts";
|
|
40
|
+
import type { ConversationTimelineRow } from "./conversationRows.ts";
|
|
41
|
+
import type { ConversationTimelineSkill } from "./conversationSkills.ts";
|
|
42
|
+
import type { ConversationWorkEntry } from "./conversationWorkEntry.ts";
|
|
43
|
+
|
|
44
|
+
export type ConversationViewMode = "chat" | "trajectory";
|
|
45
|
+
|
|
46
|
+
/** 会话身份与多 pane 仲裁。`active` 为 false 的实例不得绑定全局监听。 */
|
|
47
|
+
export interface ConversationScopeProps {
|
|
48
|
+
readonly environmentId: string;
|
|
49
|
+
readonly threadId: string;
|
|
50
|
+
/** 会话路由键(宿主 scoped thread key),草稿会话也有稳定值。 */
|
|
51
|
+
readonly threadKey: string;
|
|
52
|
+
/** 这是同屏会话里接收全局操作的那一个。 */
|
|
53
|
+
readonly active: boolean;
|
|
54
|
+
/** 面板可见(保活隐藏时为 false:停观察器、停测量、停跟随)。 */
|
|
55
|
+
readonly visible: boolean;
|
|
56
|
+
/** 处于同屏分组中。 */
|
|
57
|
+
readonly grouped: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface ConversationModeProps {
|
|
61
|
+
readonly mode: ConversationViewMode;
|
|
62
|
+
/** 持久化归宿主;插件只上报用户选择。 */
|
|
63
|
+
onModeChange(mode: ConversationViewMode): void;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** 聊天/轨迹切换的快捷键展示文案(宿主解析键位绑定,插件不读键位配置)。 */
|
|
67
|
+
export interface ConversationShortcutLabels {
|
|
68
|
+
readonly toggleTrajectory: string | null;
|
|
69
|
+
readonly interrupt: string | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// —— 时间线(聊天视图) ——
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 宿主驱动聊天时间线的入口。跟随末尾、「回到底部」与手势停跟都归插件,宿主只在
|
|
76
|
+
* 自己发出消息后请求回到末尾。
|
|
77
|
+
*/
|
|
78
|
+
export interface ConversationTimelineControl {
|
|
79
|
+
/**
|
|
80
|
+
* 解除展开阅读锁、恢复跟随并滚到末尾。聊天停在历史窗口时先经数据窗口的
|
|
81
|
+
* `onReturnToLatest` 换回最新页;时间线不可见时等重新可见再滚。
|
|
82
|
+
*/
|
|
83
|
+
followEnd(options?: { readonly animated?: boolean }): void;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** 可见和受交互保护的轮次;历史页保留归宿主,插件只报告当前呈现范围。 */
|
|
87
|
+
export interface ConversationVisibleTurnRange {
|
|
88
|
+
readonly selectionTurnRange?: {
|
|
89
|
+
readonly firstTurnId: ConversationTurnId;
|
|
90
|
+
readonly lastTurnId: ConversationTurnId;
|
|
91
|
+
} | null;
|
|
92
|
+
readonly firstTurnId: ConversationTurnId | null;
|
|
93
|
+
readonly lastTurnId: ConversationTurnId | null;
|
|
94
|
+
readonly protectedTurnIds: ReadonlyArray<ConversationTurnId>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface ConversationTimelineProps {
|
|
98
|
+
/** 行派生(= ConversationViewProps.derive;时间线经 ctx 下发给行组件)。 */
|
|
99
|
+
readonly derive: ConversationDeriveApi;
|
|
100
|
+
/** 会话路由键:开合态、滚动落点、已读上报都按它隔离(= scope.threadKey)。 */
|
|
101
|
+
readonly threadKey: string;
|
|
102
|
+
/** 宿主 ScopedThreadRef(对插件不透明):markdown/计划卡按它取机器上下文。 */
|
|
103
|
+
readonly threadRef: unknown;
|
|
104
|
+
/** 会话所属机器(= scope.environmentId):计划卡保存走它。 */
|
|
105
|
+
readonly environmentId: string;
|
|
106
|
+
readonly threadTitle: string;
|
|
107
|
+
readonly resolveModelBadge:
|
|
108
|
+
| ((selection: ConversationModelSelection | undefined) => ConversationModelBadge | null)
|
|
109
|
+
| undefined;
|
|
110
|
+
readonly markdownCwd: string | undefined;
|
|
111
|
+
readonly resolvedTheme: "light" | "dark";
|
|
112
|
+
readonly timestampFormat: string;
|
|
113
|
+
readonly workspaceRoot: string | undefined;
|
|
114
|
+
readonly skills: ReadonlyArray<ConversationTimelineSkill>;
|
|
115
|
+
readonly contentInsetEndAdjustment: number;
|
|
116
|
+
readonly awaitingUserDecision: boolean;
|
|
117
|
+
readonly topFadeEnabled: boolean;
|
|
118
|
+
/** 宿主拿到的时间线控制入口;插件在挂载、换会话与卸载时同步它。 */
|
|
119
|
+
readonly controlRef:
|
|
120
|
+
| { current: ConversationTimelineControl | null }
|
|
121
|
+
| ((control: ConversationTimelineControl | null) => void);
|
|
122
|
+
readonly agentPanelModel: unknown;
|
|
123
|
+
/** 草稿/断开会话传 null:决定卡只显示状态、无按钮。 */
|
|
124
|
+
readonly onRespondToDecision: ((requestId: string, optionId: string) => void) | null;
|
|
125
|
+
readonly onInterrupt: (() => void) | null;
|
|
126
|
+
/** 已请求停止、还在等确认:卡住提示里的「停止」显示「正在停止…」并停用。旧宿主没有它。 */
|
|
127
|
+
readonly stopping?: boolean;
|
|
128
|
+
/** 结果是服务器是否受理:true 时「取消」保持停用,等订阅推回新状态;false 时恢复可点。 */
|
|
129
|
+
readonly onCancelScheduledWake: ((wakeId: string) => Promise<boolean>) | null;
|
|
130
|
+
readonly onOpenFileDiff: (filePath: string) => void;
|
|
131
|
+
readonly onForkFromUserMessage: ((messageId: string) => void) | null;
|
|
132
|
+
/** 「没有发出」的那条放回输入框:输入框空着就填入,不空就接在末尾。旧宿主没有它,行上不画按钮。 */
|
|
133
|
+
readonly onRestoreUnsentMessage?: ((messageId: string) => void) | null | undefined;
|
|
134
|
+
/** 当前登录者;用户消息作者是它或没有作者时画成「你说的」,否则在气泡上方署名。 */
|
|
135
|
+
readonly selfUserId?: string | null | undefined;
|
|
136
|
+
/** 没署名的人话算不算这个人的;缺省算。服务器把连接认成某个账号时是 false。 */
|
|
137
|
+
readonly ownsUnsignedMessages?: boolean | undefined;
|
|
138
|
+
/** 插件交 `ConversationExpandedImagePreview`;宿主的 Markdown 也经它交宿主自己的形状,所以参数是 unknown。 */
|
|
139
|
+
readonly onImageExpand: (preview: unknown) => void;
|
|
140
|
+
/** 附件卡片请求打开,由宿主决定进查看器还是下载。可选:宿主没给时卡片退到链接。 */
|
|
141
|
+
readonly onAttachmentDocumentOpen?: ConversationAttachmentDocumentOpen | undefined;
|
|
142
|
+
/** 工作台请求定位某轮;宿主先取得那一轮的数据窗口。 */
|
|
143
|
+
readonly revealTurnRequest?: {
|
|
144
|
+
readonly turnId: string;
|
|
145
|
+
readonly nonce: number;
|
|
146
|
+
readonly onHandled?: () => void;
|
|
147
|
+
} | null;
|
|
148
|
+
readonly onOpenAgents: (() => void) | null;
|
|
149
|
+
/**
|
|
150
|
+
* 工具呈现接缝:一组工具/过程行的展开体。宿主先用现有实现渲染,接
|
|
151
|
+
* tool-display 插件后改指其视图;缺省时插件画极简回退(标题+摘要)。
|
|
152
|
+
*/
|
|
153
|
+
readonly renderWorkGroup?:
|
|
154
|
+
| ((input: {
|
|
155
|
+
readonly row: ConversationTimelineRow;
|
|
156
|
+
readonly threadRef: unknown;
|
|
157
|
+
readonly visible: boolean;
|
|
158
|
+
}) => unknown)
|
|
159
|
+
| undefined;
|
|
160
|
+
/** 折叠工具组的展开详情接缝(懒加载的工具调用输入/输出)。 */
|
|
161
|
+
readonly renderToolCallDetail?:
|
|
162
|
+
| ((input: {
|
|
163
|
+
readonly entry: ConversationWorkEntry;
|
|
164
|
+
readonly threadRef: unknown;
|
|
165
|
+
readonly threadKey: string;
|
|
166
|
+
readonly workspaceRoot: string | undefined;
|
|
167
|
+
readonly revision: string;
|
|
168
|
+
readonly onOpenFileDiff: (filePath: string) => void;
|
|
169
|
+
readonly onDisclosureChange?: (() => void) | undefined;
|
|
170
|
+
}) => unknown)
|
|
171
|
+
| undefined;
|
|
172
|
+
/** 滚动落点持久化(卸载前保存、重挂恢复)。 */
|
|
173
|
+
loadScrollAnchor(threadKey: string): ConversationScrollAnchor | null;
|
|
174
|
+
saveScrollAnchor(threadKey: string, anchor: ConversationScrollAnchor | null): void;
|
|
175
|
+
/** 开合态持久化:用户显式展开的轮次跨会话保留。 */
|
|
176
|
+
readonly disclosure: {
|
|
177
|
+
usePersistedExpandedTurnIds(threadKey: string): readonly string[];
|
|
178
|
+
setTurnExpanded(threadKey: string, turnId: string, expanded: boolean): void;
|
|
179
|
+
};
|
|
180
|
+
/** 已读上报:可见帧内最后一条完成消息变化时由宿主标记。 */
|
|
181
|
+
useVisibleThreadCompletion(input: unknown): void;
|
|
182
|
+
/**
|
|
183
|
+
* 计划卡「保存到工作区」的宿主 RPC(写文件走宿主命令管线)。null 时不画
|
|
184
|
+
* 该菜单项(草稿会话、环境断开)。
|
|
185
|
+
*/
|
|
186
|
+
readonly onSavePlanToWorkspace:
|
|
187
|
+
| ((input: {
|
|
188
|
+
readonly environmentId: string;
|
|
189
|
+
readonly workspaceRoot: string;
|
|
190
|
+
readonly relativePath: string;
|
|
191
|
+
readonly contents: string;
|
|
192
|
+
}) => Promise<{ readonly ok: true; readonly relativePath: string } | { readonly ok: false }>)
|
|
193
|
+
| null;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// —— 轨迹视图 ——
|
|
197
|
+
|
|
198
|
+
/** 轨迹行工具详情的懒加载请求(行级版本 = 状态 + 末次活动 id)。 */
|
|
199
|
+
export interface ConversationTrajectoryToolCallDetailRequest {
|
|
200
|
+
readonly threadRef: unknown;
|
|
201
|
+
readonly toolCallId: string;
|
|
202
|
+
readonly turnId: string | null;
|
|
203
|
+
readonly revision: string;
|
|
204
|
+
readonly original?: boolean;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/** 已回取的工具详情;输入/输出可能只到一半——已知事实不许从界面消失。 */
|
|
208
|
+
export interface ConversationTrajectoryToolCallDetailData {
|
|
209
|
+
readonly input?: string | undefined;
|
|
210
|
+
readonly output?: string | undefined;
|
|
211
|
+
readonly original?: string | undefined;
|
|
212
|
+
readonly originalLoading?: boolean;
|
|
213
|
+
readonly originalFailed?: boolean;
|
|
214
|
+
readonly originalTruncated?: boolean;
|
|
215
|
+
readonly loadMoreOriginal?: (() => void) | undefined;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* 轨迹面板里宿主仍要给的部分。行、翻页与工具详情由插件经 {@link ConversationHostData}
|
|
220
|
+
* 自己读;在轨迹中选中一行后切回聊天定位由插件自己协调。
|
|
221
|
+
*/
|
|
222
|
+
export interface ConversationTrajectoryProps {
|
|
223
|
+
readonly timestampFormat: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// —— 输入卡(第一行:视图切换 + 轮次导航;下方排队与横幅之上) ——
|
|
227
|
+
|
|
228
|
+
// —— 输入卡(第一行:视图切换 + 轮次导航;下方排队与横幅之上) ——
|
|
229
|
+
|
|
230
|
+
/** 输入卡上方的横幅堆条目(宿主算好顺序;icon/title 等是宿主创建的节点,插件原样渲染)。 */
|
|
231
|
+
export interface ConversationComposerBannerItem {
|
|
232
|
+
readonly id: string;
|
|
233
|
+
readonly variant: "default" | "error" | "info" | "success" | "warning";
|
|
234
|
+
/** 平静、低频的提示可缩成单行,不占用完整告警卡片。 */
|
|
235
|
+
readonly presentation?: "banner" | "compact" | undefined;
|
|
236
|
+
/** 排序提示:平静变体也要前置(如实时更新进度)。栈本身忽略它。 */
|
|
237
|
+
readonly urgent?: boolean | undefined;
|
|
238
|
+
readonly icon: unknown;
|
|
239
|
+
readonly title: unknown;
|
|
240
|
+
readonly description?: unknown;
|
|
241
|
+
readonly actions?: unknown;
|
|
242
|
+
readonly className?: string | undefined;
|
|
243
|
+
readonly actionClassName?: string | undefined;
|
|
244
|
+
readonly dismissLabel?: string | undefined;
|
|
245
|
+
readonly onDismiss?: (() => void) | undefined;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/** 输入卡上方的横幅堆(宿主排好了顺序)与横幅带出的宿主浮层。 */
|
|
249
|
+
export interface ConversationComposerBanners {
|
|
250
|
+
readonly items: ReadonlyArray<ConversationComposerBannerItem>;
|
|
251
|
+
/** 宿主 React 节点(例如切回分支前的确认框),插件原样挂在输入卡旁;没有时为 null。 */
|
|
252
|
+
readonly overlay: unknown;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/** 输入卡读的会话与发送状态(`ConversationHostData.useComposerStatus`)。 */
|
|
256
|
+
export interface ConversationComposerStatus {
|
|
257
|
+
readonly activeThreadId: ConversationThreadId | null;
|
|
258
|
+
/** 只读这些 meta 字段;宿主给低频 meta 视图而不是完整 detail。 */
|
|
259
|
+
readonly activeThread:
|
|
260
|
+
| Pick<ConversationThreadMeta, "id" | "session" | "latestTurn" | "presetId" | "nativeModeId">
|
|
261
|
+
| undefined;
|
|
262
|
+
readonly isLocalDraftThread: boolean;
|
|
263
|
+
/** 草稿会话还没有项目,发不出去。 */
|
|
264
|
+
readonly projectSelectionRequired: boolean;
|
|
265
|
+
readonly phase: ConversationSessionPhase;
|
|
266
|
+
/** 消息刚发出、服务器还没确认。 */
|
|
267
|
+
readonly isSendBusy: boolean;
|
|
268
|
+
/** 插件正在检查上一轮要不要接着干(轮次续跑):停止按钮这时是「取消检查」。旧宿主缺席。 */
|
|
269
|
+
readonly continuationChecking?: boolean;
|
|
270
|
+
/** 发送被挡下的原因(宿主解析好的文案);能发时为 null。 */
|
|
271
|
+
readonly sendDisabledReason: string | null;
|
|
272
|
+
/** 群记录不启动 provider:只保留机器、会话与项目的禁发原因。旧宿主缺席时插件不绕过普通发送闸。 */
|
|
273
|
+
readonly groupSendDisabledReason?: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* 用户之前选的 agent(实例 id)已删或被停用时的那个 id,否则 null。宿主不替用户换别的,
|
|
276
|
+
* 输入卡据此把原来的选择连同「不可用」画出来,发送由 `sendDisabledReason` 挡住。
|
|
277
|
+
*/
|
|
278
|
+
readonly unavailableAgentInstanceId?: string | null;
|
|
279
|
+
/**
|
|
280
|
+
* 这条会话从没选过 agent(草稿、会话、线程、项目默认都没存过实例 id)。宿主不替用户挑,
|
|
281
|
+
* 输入卡画「选择 agent」占位、不显示任何 agent,发送由 `sendDisabledReason` 挡住。
|
|
282
|
+
*/
|
|
283
|
+
readonly noAgentChosen?: boolean;
|
|
284
|
+
/** 会话所在机器没连上时,它的名字与连接状态。 */
|
|
285
|
+
readonly environmentUnavailable: {
|
|
286
|
+
readonly label: string;
|
|
287
|
+
readonly connection: ConversationEnvironmentConnectionPresentation;
|
|
288
|
+
} | null;
|
|
289
|
+
readonly compactDisabled: boolean;
|
|
290
|
+
readonly compactDisabledReason: string | null;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/** 拒发原因。沿用宿主已有提示,不在这里新增文案。 */
|
|
294
|
+
export type ConversationComposerSendRefusalReason =
|
|
295
|
+
| "annotation-attached"
|
|
296
|
+
| "still-sending"
|
|
297
|
+
| "messages-loading"
|
|
298
|
+
| "offline"
|
|
299
|
+
| "no-agent"
|
|
300
|
+
| "model-probing"
|
|
301
|
+
| "model-unavailable"
|
|
302
|
+
| "model-missing"
|
|
303
|
+
| "provider-input";
|
|
304
|
+
|
|
305
|
+
export type ConversationComposerSendRefusal = {
|
|
306
|
+
readonly accepted: false;
|
|
307
|
+
/** 缺席表示没发出,原因已经在别处说了。 */
|
|
308
|
+
readonly reason?: ConversationComposerSendRefusalReason;
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
export type ConversationComposerSendAcceptance = {
|
|
312
|
+
readonly accepted: true;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
export type ConversationComposerSendOutcome =
|
|
316
|
+
| ConversationComposerSendRefusal
|
|
317
|
+
| ConversationComposerSendAcceptance;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* `false` 与 `void` 留给旧宿主。新交回用 {@link ConversationComposerSendOutcome};
|
|
321
|
+
* 异步准备还没完时,Promise 兑现成这三者之一。
|
|
322
|
+
*/
|
|
323
|
+
export type ConversationComposerSendResult =
|
|
324
|
+
| false
|
|
325
|
+
| void
|
|
326
|
+
| ConversationComposerSendOutcome
|
|
327
|
+
| Promise<false | void | ConversationComposerSendOutcome>;
|
|
328
|
+
|
|
329
|
+
export interface ConversationComposerProps {
|
|
330
|
+
/** 宿主注入的 composer API(store/hook/纯函数面)。 */
|
|
331
|
+
api: ConversationComposerApi;
|
|
332
|
+
composerDraftTarget: ConversationComposerThreadTarget;
|
|
333
|
+
environmentId: ConversationEnvironmentId;
|
|
334
|
+
attachmentUploadsCapabilityKnown: boolean;
|
|
335
|
+
supportsAttachmentUploads: boolean;
|
|
336
|
+
routeKind: "server" | "draft";
|
|
337
|
+
routeThreadRef: ConversationScopedThreadRef;
|
|
338
|
+
draftId: ConversationDraftId | null;
|
|
339
|
+
forceExpandedOnMobile: boolean;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* 输入区座位。骨架调用 `renderSlot`;整条输入区被占住时走 `renderSlotChain`。
|
|
343
|
+
* 缺席(测试)时骨架画内置默认控件。`fallback` 是骨架的内置控件:座位无人占用、
|
|
344
|
+
* 或占用者渲染时抛错,宿主都画它,一个插件的控件坏掉不会连带整块会话区。
|
|
345
|
+
*/
|
|
346
|
+
slots?: {
|
|
347
|
+
readonly renderSlot: (name: string, owner?: unknown, fallback?: unknown) => unknown;
|
|
348
|
+
readonly renderSlotChain: (name: string, owner: unknown, fallback: unknown) => unknown;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
// Misc
|
|
352
|
+
resolvedTheme: "light" | "dark";
|
|
353
|
+
settings: ConversationUnifiedSettings;
|
|
354
|
+
keybindings: ConversationResolvedKeybindingsConfig;
|
|
355
|
+
terminalOpen: boolean;
|
|
356
|
+
gitCwd: string | null;
|
|
357
|
+
|
|
358
|
+
// Refs the parent needs kept in sync
|
|
359
|
+
promptRef: { readonly current: string };
|
|
360
|
+
composerImagesRef: { readonly current: ConversationComposerImageAttachment[] };
|
|
361
|
+
composerTerminalContextsRef: { readonly current: ConversationTerminalContextDraft[] };
|
|
362
|
+
composerElementContextsRef: { readonly current: ConversationElementContextDraft[] };
|
|
363
|
+
/**
|
|
364
|
+
* 同步发送读这里。子组件每轮把读函数推上来;正文等活在 ref 里的字段,
|
|
365
|
+
* 调用时读此刻真值,不是上一次渲染的快照。
|
|
366
|
+
*/
|
|
367
|
+
sendContextRef: { current: ConversationComposerSendContextReader | null };
|
|
368
|
+
/**
|
|
369
|
+
* 宿主 imperative handle。callback ref 或 object ref;插件经
|
|
370
|
+
* `useImperativeHandle` 写入。宿主发送路径用带品牌的适配别名读它。
|
|
371
|
+
*/
|
|
372
|
+
composerRef:
|
|
373
|
+
| { current: ConversationComposerHandle | null }
|
|
374
|
+
| ((handle: ConversationComposerHandle | null) => void);
|
|
375
|
+
|
|
376
|
+
// Callbacks
|
|
377
|
+
/**
|
|
378
|
+
* 发送的唯一结果。同步把关与 provider 输入校验都走它。
|
|
379
|
+
* 当场能定的同步交回;要等异步准备(插件动作)才能定的,交回 Promise,在拒发或已接受定下来时兑现,不等整轮派发结束。
|
|
380
|
+
* `false` 仍是当场拒发,`void` 仍是已接下。`reason` 可选,沿用现有提示,不在这里新写文案。
|
|
381
|
+
* 派发收尾不在这个结果里。
|
|
382
|
+
*/
|
|
383
|
+
onSend: (
|
|
384
|
+
e?: { preventDefault: () => void },
|
|
385
|
+
intent?: "foreground" | "background" | "steer",
|
|
386
|
+
) => ConversationComposerSendResult;
|
|
387
|
+
onInterrupt: () => void;
|
|
388
|
+
/** Esc 两段式停止已武装:停止按钮显示「再按一次」态。缺席按 false。 */
|
|
389
|
+
interruptArmed?: boolean;
|
|
390
|
+
/** 已请求停止、还在等确认:停止按钮显示「正在停止…」并停用。旧宿主没有它。 */
|
|
391
|
+
stopping?: boolean;
|
|
392
|
+
/** slash 菜单「最近使用」:item id 列表,新在前。宿主本机持久化。 */
|
|
393
|
+
recentSlashCommandIds?: ReadonlyArray<string>;
|
|
394
|
+
/** slash 菜单选中一条时回宿主记一次使用。 */
|
|
395
|
+
onSlashCommandUsed?: (itemId: string) => void;
|
|
396
|
+
/** slash 菜单分组小标题:宿主解析好的文案(内置插件命名空间运行期不注册,见 0026 后续记录)。 */
|
|
397
|
+
slashMenuSectionTitles?: Readonly<Record<string, string>>;
|
|
398
|
+
/** 停止按钮武装态文案(宿主解析)。 */
|
|
399
|
+
interruptArmedLabel?: string;
|
|
400
|
+
/** 派发原生压缩命令。服务端按 adapter 能力位执行,不再伪造一条 `/compact` 消息。 */
|
|
401
|
+
onCompactContext: () => void;
|
|
402
|
+
onImplementPlanInNewThread: () => void;
|
|
403
|
+
|
|
404
|
+
/** 点了某个实例下的一行模型:`model` 归 `instanceId`。 */
|
|
405
|
+
onProviderModelSelect: (instanceId: ConversationProviderInstanceId, model: string) => void;
|
|
406
|
+
/** 选手格换手:`carried` 是换手前的选择,型号归不归新手由宿主判,选手格不猜。 */
|
|
407
|
+
onProviderInstanceSelect: (
|
|
408
|
+
instanceId: ConversationProviderInstanceId,
|
|
409
|
+
carried: ConversationModelSelection,
|
|
410
|
+
) => void;
|
|
411
|
+
/** 选择器(模型或档位)一改就把合成后的选择交出去,由宿主立刻落库。 */
|
|
412
|
+
onModelSelectionChosen?: ((selection: ConversationModelSelection) => void) | undefined;
|
|
413
|
+
getModelDisabledReason: (
|
|
414
|
+
instanceId: ConversationProviderInstanceId,
|
|
415
|
+
model: string,
|
|
416
|
+
) => string | null;
|
|
417
|
+
/** 被挡下的模型还能不能靠开新 thread 接着干;返回那一行的动作文案,或 null。 */
|
|
418
|
+
getModelContinuationLabel: (
|
|
419
|
+
instanceId: ConversationProviderInstanceId,
|
|
420
|
+
model: string,
|
|
421
|
+
) => string | null;
|
|
422
|
+
onContinueInModel: (instanceId: ConversationProviderInstanceId, model: string) => void;
|
|
423
|
+
handleRuntimeModeChange: (mode: ConversationRuntimeMode) => void;
|
|
424
|
+
handleNativeModeChange: (nativeModeId: string) => void;
|
|
425
|
+
|
|
426
|
+
focusComposer: () => void;
|
|
427
|
+
scheduleComposerFocus: () => void;
|
|
428
|
+
setThreadError: (threadId: ConversationThreadId | null, error: string | null) => void;
|
|
429
|
+
onExpandImage: (preview: unknown) => void;
|
|
430
|
+
|
|
431
|
+
// —— 组合根补充(外壳与浮层) ——
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* 输入卡第一行左侧:新建会话 / 历史 / 导入。宿主 React 节点,插件原样摆。
|
|
435
|
+
* 缺席(测试、着陆页没有输入卡)就不画。
|
|
436
|
+
*/
|
|
437
|
+
readonly sessionActions?: unknown;
|
|
438
|
+
/**
|
|
439
|
+
* 输入卡第一行右段、轮次导航左边:会话的 agents 控制(按钮 + 舰队弹窗)。
|
|
440
|
+
* 宿主 React 节点,插件原样摆;本会话没 spawn 过 agent 时宿主给 null。
|
|
441
|
+
*/
|
|
442
|
+
readonly agentsControl?: unknown;
|
|
443
|
+
/**
|
|
444
|
+
* 输入卡第一行右段、agents 控制左边:终端开关。宿主 React 节点,插件原样摆;
|
|
445
|
+
* 0026 Q1 拍板从顶栏搬进玻璃壳(右面板与最大化开关仍留顶栏)。
|
|
446
|
+
*/
|
|
447
|
+
readonly terminalControl?: unknown;
|
|
448
|
+
/** 输入卡下缘内容(分支工具条等宿主工作区控件),原样渲染。 */
|
|
449
|
+
readonly belowSlot: unknown;
|
|
450
|
+
/**
|
|
451
|
+
* 输入卡上方、横幅之下的团队「等你处理」坞:宿主 React 节点,插件原样摆。只有团队页的群聊视角给,
|
|
452
|
+
* 别处缺席就不画。
|
|
453
|
+
*/
|
|
454
|
+
readonly teamDock?: unknown;
|
|
455
|
+
/** 草稿首条消息的居中大标题态。 */
|
|
456
|
+
readonly draftHero: {
|
|
457
|
+
readonly active: boolean;
|
|
458
|
+
readonly headline: unknown;
|
|
459
|
+
readonly forceExpandedOnMobile: boolean;
|
|
460
|
+
readonly transitionGroupRef?: ((element: HTMLDivElement | null) => void) | undefined;
|
|
461
|
+
readonly composerAnchorRef?: ((element: HTMLDivElement | null) => void) | undefined;
|
|
462
|
+
readonly composerTransitionName?: string | undefined;
|
|
463
|
+
readonly headlineTransitionName?: string | undefined;
|
|
464
|
+
};
|
|
465
|
+
readonly contextStrip: boolean;
|
|
466
|
+
/**
|
|
467
|
+
* 浮层根元素上报:宿主量它的高度给时间线让位(contentInsetEndAdjustment),
|
|
468
|
+
* 并在其中找 `[data-chat-composer-stack="true"]` 量输入卡占的列(浮动预览可停在两侧留白)。
|
|
469
|
+
* 卸载时以 null 收尾。元素对契约不透明(本文件不引 DOM 类型)。
|
|
470
|
+
*/
|
|
471
|
+
readonly onOverlayElementChange?: ((element: unknown) => void) | undefined;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/** `views.conversation` 的完整 props。 */
|
|
475
|
+
export interface ConversationViewProps {
|
|
476
|
+
readonly scope: ConversationScopeProps;
|
|
477
|
+
readonly mode: ConversationModeProps;
|
|
478
|
+
readonly shortcuts: ConversationShortcutLabels;
|
|
479
|
+
readonly derive: ConversationDeriveApi;
|
|
480
|
+
/** 宿主数据接口。老版本宿主不给;插件发现缺席或版本不同时显示版本不一致的说明。 */
|
|
481
|
+
readonly data?: ConversationHostData | undefined;
|
|
482
|
+
readonly timeline: ConversationTimelineProps;
|
|
483
|
+
readonly trajectory: ConversationTrajectoryProps;
|
|
484
|
+
readonly composer: ConversationComposerProps;
|
|
485
|
+
readonly attachments: ConversationAttachmentsApi;
|
|
486
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 工具/过程行的可渲染子集。展开详情走 `renderWorkGroup` 接缝,不在这里。
|
|
3
|
+
* 从 `conversation.ts` 拆出来,是为了给打断事实留位置而不把那个文件再撑过行数基线。
|
|
4
|
+
*/
|
|
5
|
+
export interface ConversationWorkEntry {
|
|
6
|
+
readonly slashCommandRun?: {
|
|
7
|
+
readonly pluginId: string;
|
|
8
|
+
readonly command: string;
|
|
9
|
+
readonly args: string;
|
|
10
|
+
readonly notice?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly createdAt: string;
|
|
14
|
+
readonly label: string;
|
|
15
|
+
readonly tone: "thinking" | "tool" | "info" | "error";
|
|
16
|
+
readonly detail?: string | undefined;
|
|
17
|
+
readonly command?: string | undefined;
|
|
18
|
+
readonly rawCommand?: string | undefined;
|
|
19
|
+
readonly changedFiles?: ReadonlyArray<string> | undefined;
|
|
20
|
+
readonly toolTitle?: string | undefined;
|
|
21
|
+
/** 分段标题(工具名/路径/参数摘要);拿不到时宿主不给。 */
|
|
22
|
+
readonly toolLabel?:
|
|
23
|
+
| {
|
|
24
|
+
readonly name: string;
|
|
25
|
+
readonly path?: string | undefined;
|
|
26
|
+
readonly detail?: string | undefined;
|
|
27
|
+
readonly diffStat?: { readonly additions: number; readonly deletions: number } | undefined;
|
|
28
|
+
readonly descriptive: boolean;
|
|
29
|
+
}
|
|
30
|
+
| undefined;
|
|
31
|
+
/** 工具的原始载荷(对插件不透明;折叠摘要的回退标题从里面猜工具名)。 */
|
|
32
|
+
readonly toolData?: unknown;
|
|
33
|
+
/**
|
|
34
|
+
* 出现即表示这是 Ycodium 自己的浏览器工具行;`pageUrl` 只在 agent 真的打开过那个页面时才有。
|
|
35
|
+
* 旧宿主不给这个字段,插件照旧画原来的图标。
|
|
36
|
+
*/
|
|
37
|
+
readonly toolIcon?:
|
|
38
|
+
| { readonly kind: "website"; readonly pageUrl?: string | undefined }
|
|
39
|
+
| undefined;
|
|
40
|
+
readonly toolCallId?: string | undefined;
|
|
41
|
+
readonly invocationId?: string | undefined;
|
|
42
|
+
readonly rewrittenBy?: readonly string[] | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* 这一行是 Ycodium 内置 MCP 工具时的工具 id(`<插件 id>_<工具名>`)。由宿主判定,插件只读:
|
|
45
|
+
* 线上名字有歧义的形状要结合 driver 与注册工具表才认得准,插件不从 `toolData` 里自己猜。
|
|
46
|
+
*/
|
|
47
|
+
readonly builtinMcpTool?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* 服务器盖的调用来源(`source` 为 native / ycodium / plugin / mcp / unknown,加插件 id、MCP 服务器名、
|
|
50
|
+
* 技能名)。由宿主判定,插件只读;行怎么显示经 `ConversationHostData.useToolPresentation` 取,不自己拼。
|
|
51
|
+
*/
|
|
52
|
+
readonly toolMetadata?:
|
|
53
|
+
| {
|
|
54
|
+
readonly source: string;
|
|
55
|
+
readonly toolName?: string | undefined;
|
|
56
|
+
readonly pluginId?: string | undefined;
|
|
57
|
+
readonly mcpServer?: string | undefined;
|
|
58
|
+
readonly action?: string | undefined;
|
|
59
|
+
readonly skillName?: string | undefined;
|
|
60
|
+
}
|
|
61
|
+
| undefined;
|
|
62
|
+
/** 内置 MCP 工具这次调用的参数对象;拿不到为 undefined。 */
|
|
63
|
+
readonly toolArgs?: unknown;
|
|
64
|
+
readonly turnId?: string | null | undefined;
|
|
65
|
+
readonly itemType?: string | undefined;
|
|
66
|
+
readonly toolLifecycleStatus?: string | undefined;
|
|
67
|
+
/** 服务器只能推断任务已结束时显示状态未知,不当作完成或失败。 */
|
|
68
|
+
readonly statusInferred?: boolean | undefined;
|
|
69
|
+
readonly sourceActivityKind?: string | undefined;
|
|
70
|
+
readonly taskId?: string | undefined;
|
|
71
|
+
readonly agentRole?: string | undefined;
|
|
72
|
+
readonly agentSpawn?:
|
|
73
|
+
| { readonly workflowId: string | null; readonly agentTaskIds: ReadonlyArray<string> }
|
|
74
|
+
| undefined;
|
|
75
|
+
readonly childThread?:
|
|
76
|
+
| {
|
|
77
|
+
readonly childThreadId: string;
|
|
78
|
+
readonly title: string;
|
|
79
|
+
readonly instanceId: string | null;
|
|
80
|
+
readonly model: string | null;
|
|
81
|
+
}
|
|
82
|
+
| undefined;
|
|
83
|
+
/**
|
|
84
|
+
* 打断之后这一行上的事实。都可选:老宿主不给。
|
|
85
|
+
* 缺省不带主语;`stoppedByUser` 只有宿主确知是界面上这位用户按了停止才为 true。
|
|
86
|
+
*/
|
|
87
|
+
readonly toolInterrupt?:
|
|
88
|
+
| {
|
|
89
|
+
readonly terminationConfirmed?: boolean | undefined;
|
|
90
|
+
readonly continuedAfterStop?: boolean | undefined;
|
|
91
|
+
readonly durationMs?: number | undefined;
|
|
92
|
+
readonly stoppedByUser?: boolean | undefined;
|
|
93
|
+
}
|
|
94
|
+
| undefined;
|
|
95
|
+
/** 工具自己的输入输出。迟到的完成把真实退出码留在这里,行仍是已停止。 */
|
|
96
|
+
readonly toolIo?:
|
|
97
|
+
| {
|
|
98
|
+
readonly exitCode?: number | undefined;
|
|
99
|
+
readonly input?: string | undefined;
|
|
100
|
+
readonly output?: string | undefined;
|
|
101
|
+
}
|
|
102
|
+
| undefined;
|
|
103
|
+
readonly backgroundTasks?: readonly ConversationWorkEntry[] | undefined;
|
|
104
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export {
|
|
2
|
+
accountWithoutIdentity,
|
|
3
|
+
type CredentialAccountProbe,
|
|
4
|
+
directoryExists,
|
|
5
|
+
epochMillisToIso,
|
|
6
|
+
isRecord,
|
|
7
|
+
parseJsonRecord,
|
|
8
|
+
readCredentialFile,
|
|
9
|
+
readTrimmedString,
|
|
10
|
+
} from "./_private/ycodium-credential-account/credentialAccount.ts";
|
|
11
|
+
export {
|
|
12
|
+
asNumber,
|
|
13
|
+
asObject,
|
|
14
|
+
asString,
|
|
15
|
+
clampPercent,
|
|
16
|
+
parseJson,
|
|
17
|
+
} from "./_private/ycodium-credential-account/quotaJson.ts";
|
|
18
|
+
export { requestQuotaJson, requestQuotaJsonValue } from "./_private/ycodium-credential-account/quotaRequest.ts";
|