@ycodium-ai/plugin-api 0.2.5557 → 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 +61 -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 +312 -2
- 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 +33 -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 +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 +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 +44 -0
- package/dist/provider-settings.d.ts.map +1 -1
- package/dist/provider-settings.js +10 -2
- 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 +50 -0
- package/dist/runtime-maintenance.d.ts.map +1 -0
- package/dist/runtime-maintenance.js +246 -0
- package/dist/runtime-maintenance.js.map +1 -0
- 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 +118 -3
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 宿主 UI 原语:时间线折叠态过程行的几件,插件经 `bridge.ui` 取用,画出来与宿主自己的工作行同一个样子。
|
|
3
|
+
* - `TimelineProcessShell`:过程行外壳,边框按三态换色,`running` 时左侧竖条分步脉冲。
|
|
4
|
+
* - `ProcessRowIcon`:16px 图标槽,图标可以缺席,槽位照留,正文起点才对齐。
|
|
5
|
+
* - `WorkEntryStatusDot`:每步左侧的 8px 状态点,形状区分三态;`null` 时只留占位。
|
|
6
|
+
* - `WorkEntryIcon`:工作行用的那套图标,按名字取。
|
|
7
|
+
* 都不含浮层。`Node` 是 React 节点类型,本包因此不依赖 React。
|
|
8
|
+
*
|
|
9
|
+
* @module @ycodium-ai/plugin-api/ui
|
|
10
|
+
*/
|
|
11
|
+
import type { ConversationWorkEntryStatus } from "./conversationDerive.ts";
|
|
12
|
+
|
|
13
|
+
/** 折叠态过程行的三态;成功不单独着色,`running` 与 `failed` 之外一律 `idle`。 */
|
|
14
|
+
export type TimelineProcessState = "running" | "failed" | "idle";
|
|
15
|
+
|
|
16
|
+
export interface TimelineProcessShellProps<Node = unknown> {
|
|
17
|
+
readonly state: TimelineProcessState;
|
|
18
|
+
/** `tool` 是带底色的卡片,缺省 `inline`。 */
|
|
19
|
+
readonly variant?: "inline" | "tool" | undefined;
|
|
20
|
+
readonly className?: string | undefined;
|
|
21
|
+
readonly children?: Node;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ProcessRowIconProps<Node = unknown> {
|
|
25
|
+
readonly children?: Node;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface WorkEntryStatusDotProps {
|
|
29
|
+
readonly status: ConversationWorkEntryStatus;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type WorkEntryIconName =
|
|
33
|
+
| "bot"
|
|
34
|
+
| "check"
|
|
35
|
+
| "circle-alert"
|
|
36
|
+
| "eye"
|
|
37
|
+
| "globe"
|
|
38
|
+
| "hammer"
|
|
39
|
+
| "message-circle"
|
|
40
|
+
| "search"
|
|
41
|
+
| "square-pen"
|
|
42
|
+
| "terminal"
|
|
43
|
+
| "wrench"
|
|
44
|
+
| "x"
|
|
45
|
+
| "zap";
|
|
46
|
+
|
|
47
|
+
export interface WorkEntryIconProps {
|
|
48
|
+
readonly name: WorkEntryIconName;
|
|
49
|
+
readonly className: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** 时间线居中分隔线的语气:`neutral` 为中性(默认),`danger` 用于失败等需要醒目提示的分隔行。 */
|
|
53
|
+
export type TimelineSeparatorTone = "neutral" | "danger";
|
|
54
|
+
|
|
55
|
+
export interface TimelineSeparatorProps<Node = unknown> {
|
|
56
|
+
readonly tone?: TimelineSeparatorTone | undefined;
|
|
57
|
+
/** 中央内容前的图标(可选,不传不占位)。 */
|
|
58
|
+
readonly icon?: Node;
|
|
59
|
+
readonly "aria-label"?: string | undefined;
|
|
60
|
+
readonly "data-pending"?: "true" | undefined;
|
|
61
|
+
readonly className?: string | undefined;
|
|
62
|
+
readonly children?: Node;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** 模型身份的三种密度:`header`(信息弹层/消息头,带框图标)、`compact`(回复上方,无框图标)、`inline`(分隔线等行内次级位置)。 */
|
|
66
|
+
export type ModelIdentityVariant = "header" | "compact" | "inline";
|
|
67
|
+
|
|
68
|
+
/** 传给 `ModelIdentity` 的徽章子集(兼容 `ConversationModelBadge` 与宿主 `AssistantModelBadge`)。 */
|
|
69
|
+
export interface ModelIdentityBadge {
|
|
70
|
+
readonly driverKind: string | null;
|
|
71
|
+
readonly providerDisplayName: string;
|
|
72
|
+
readonly accentColor?: string | undefined;
|
|
73
|
+
readonly modelLabel: string;
|
|
74
|
+
readonly effortLabel: string | null;
|
|
75
|
+
readonly effortLevel?: string | null | undefined;
|
|
76
|
+
readonly effortDisplayKind?: "standard-tier" | undefined;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface ModelIdentityProps<Node = unknown> {
|
|
80
|
+
readonly badge: ModelIdentityBadge;
|
|
81
|
+
readonly variant?: ModelIdentityVariant | undefined;
|
|
82
|
+
/** 是否在左侧画 provider 图标;默认 true,当外层已把图标放在前缀前时可设为 false。 */
|
|
83
|
+
readonly showIcon?: boolean | undefined;
|
|
84
|
+
/** 可选自定义模型名节点(例如包一层悬停复制);缺省直接画文字。 */
|
|
85
|
+
readonly renderModelLabel?: ((label: string) => Node) | undefined;
|
|
86
|
+
readonly className?: string | undefined;
|
|
87
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 宿主 UI 原语 `TimelineRowErrorFallback`:时间线里一行(或行内某个展开区)渲染抛错时的占位,
|
|
3
|
+
* 一行「无法显示此条目」,错误信息在悬浮提示里。插件经 `bridge.ui` 取用,配自己的错误边界。
|
|
4
|
+
* 悬浮提示是浮层:给了 `open` / `onOpenChange` 就受控,插件按自己的面板可见性与行占用管理它。
|
|
5
|
+
*
|
|
6
|
+
* @module @ycodium-ai/plugin-api/ui
|
|
7
|
+
*/
|
|
8
|
+
export interface TimelineRowErrorFallbackProps {
|
|
9
|
+
readonly error: Error;
|
|
10
|
+
readonly className?: string | undefined;
|
|
11
|
+
/** 悬浮提示是否打开;不给时由宿主自己管。 */
|
|
12
|
+
readonly open?: boolean | undefined;
|
|
13
|
+
readonly onOpenChange?: ((open: boolean) => void) | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@ycodium-ai/plugin-api/tool-display` —— 工具展示插件与宿主之间的窄契约。
|
|
3
|
+
*
|
|
4
|
+
* 只放必须共享的身份常量、已取得的工具事实和嵌入视图 props。命令 / 读文件 /
|
|
5
|
+
* 修改 / 搜索 / 网页的解释与第一方 Overview 形状属于 `@ycodium-ai/plugin-tool-display`,
|
|
6
|
+
* 升级插件即可改规则,不锁在宿主 API 里。本文件零运行时依赖、无 DOM。
|
|
7
|
+
*
|
|
8
|
+
* @module @ycodium-ai/plugin-api/tool-display
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** 官方工具展示插件的 `definePlugin({ id })` / bundle `pluginId`。 */
|
|
12
|
+
export const TOOL_DISPLAY_PLUGIN_ID = "tool-display";
|
|
13
|
+
|
|
14
|
+
/** `register(bridge).views` 里嵌入会话时间线的视图 id。 */
|
|
15
|
+
export const TOOL_DISPLAY_VIEW_ID = "toolCall";
|
|
16
|
+
|
|
17
|
+
/** 会话身份必须同时带机器,不能按当前选中机器猜测。 */
|
|
18
|
+
export interface ToolDisplayThreadRef {
|
|
19
|
+
readonly environmentId: string;
|
|
20
|
+
readonly threadId: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface ToolDisplaySegment {
|
|
24
|
+
readonly text: string;
|
|
25
|
+
/** 服务器明确标记内容已截断;不能推断未取得部分的长度。 */
|
|
26
|
+
readonly truncated: boolean;
|
|
27
|
+
readonly clamped: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ToolDisplayInputField {
|
|
31
|
+
readonly label: string;
|
|
32
|
+
readonly value: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** 宿主已经拆好的输入 / 输出;插件只展示,不回取。 */
|
|
36
|
+
export interface ToolDisplayDetails {
|
|
37
|
+
readonly input?: ToolDisplaySegment;
|
|
38
|
+
readonly output?: ToolDisplaySegment;
|
|
39
|
+
readonly exitCode?: number;
|
|
40
|
+
readonly files: ReadonlyArray<string>;
|
|
41
|
+
readonly inputFields: ReadonlyArray<ToolDisplayInputField>;
|
|
42
|
+
readonly raw?: ToolDisplaySegment;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ToolDisplayToolLabel {
|
|
46
|
+
readonly name?: string;
|
|
47
|
+
readonly path?: string;
|
|
48
|
+
readonly detail?: string;
|
|
49
|
+
readonly descriptive?: boolean;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 一条工具调用的只读快照。`displayFailed` 由宿主按现有展示口径算好:
|
|
54
|
+
* 插件不得把完成态猜成成功,也不得伪造字段。
|
|
55
|
+
*/
|
|
56
|
+
export interface ToolDisplayEntry {
|
|
57
|
+
readonly id: string;
|
|
58
|
+
readonly label: string;
|
|
59
|
+
readonly displayFailed: boolean;
|
|
60
|
+
readonly detail?: string;
|
|
61
|
+
readonly toolTitle?: string;
|
|
62
|
+
readonly toolLabel?: ToolDisplayToolLabel;
|
|
63
|
+
readonly requestKind?: string;
|
|
64
|
+
readonly itemType?: string;
|
|
65
|
+
readonly toolLifecycleStatus?: string;
|
|
66
|
+
readonly toolData?: unknown;
|
|
67
|
+
readonly toolIo?: {
|
|
68
|
+
readonly input?: string;
|
|
69
|
+
readonly output?: string;
|
|
70
|
+
readonly inputTruncated?: boolean;
|
|
71
|
+
readonly outputTruncated?: boolean;
|
|
72
|
+
readonly exitCode?: number;
|
|
73
|
+
};
|
|
74
|
+
readonly command?: string;
|
|
75
|
+
readonly rawCommand?: string;
|
|
76
|
+
readonly changedFiles?: ReadonlyArray<string>;
|
|
77
|
+
readonly sourceActivityKind?: string;
|
|
78
|
+
readonly tone?: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface ToolDisplayContext {
|
|
82
|
+
readonly entry: ToolDisplayEntry;
|
|
83
|
+
readonly details: ToolDisplayDetails;
|
|
84
|
+
readonly workspaceRoot?: string;
|
|
85
|
+
readonly threadRef?: ToolDisplayThreadRef;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
import type { PluginJson } from "./capabilityPorts.ts";
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* `views.toolCall` 的 props。`environmentId` 与 `threadRef` 必须来自这条会话,
|
|
92
|
+
* 流式更新时不得把上一台机器或上一条会话的插件结果留下来。
|
|
93
|
+
*/
|
|
94
|
+
export interface ToolDisplayViewProps extends ToolDisplayContext {
|
|
95
|
+
readonly environmentId: string;
|
|
96
|
+
readonly threadKey?: string;
|
|
97
|
+
readonly stateKey?: string;
|
|
98
|
+
readonly summary?: boolean;
|
|
99
|
+
readonly followOutputTail?: boolean;
|
|
100
|
+
readonly onShowOutput?: () => void;
|
|
101
|
+
readonly onDisclosureChange?: () => void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* 插件给自己的工具画结果卡时(`package.json#ycodium.ui.toolViews`)拿到的 props。
|
|
106
|
+
* 颜色只读,来自宿主已经算出的主题。不增加自定义 CSS。
|
|
107
|
+
* Phase 2 必须带上 invocationId、colorScheme 和 colors;缺席时仍可画文字卡。
|
|
108
|
+
*/
|
|
109
|
+
export interface PluginToolResultViewProps extends ToolDisplayViewProps {
|
|
110
|
+
readonly invocationId?: string;
|
|
111
|
+
readonly presentation?: PluginJson;
|
|
112
|
+
readonly colorScheme?: "light" | "dark";
|
|
113
|
+
readonly colors?: {
|
|
114
|
+
readonly foreground: string;
|
|
115
|
+
readonly surface: string;
|
|
116
|
+
readonly muted: string;
|
|
117
|
+
readonly border: string;
|
|
118
|
+
readonly accent: string;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/** 过期工作状态降为中性,等待与错误保留优先级色。 */
|
|
123
|
+
export function memberRuntimeTone<T extends string>(
|
|
124
|
+
state: string,
|
|
125
|
+
stale: boolean | undefined,
|
|
126
|
+
tone: T,
|
|
127
|
+
neutral: T,
|
|
128
|
+
): T {
|
|
129
|
+
return stale === true && state === "working" ? neutral : tone;
|
|
130
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 宿主 UI 原语 `TraitsPicker` / `TraitsMenuContent`(型号档位:思考强度、快速模式、上下文窗口……)的 props。
|
|
3
|
+
* 插件经 `bridge.ui` 取用;宿主的设置页与会话输入框画的是同一个组件,`TraitsMenuContent` 是不带触发器的
|
|
4
|
+
* 菜单正文,给调用方塞进自己的菜单。画什么、改了一项存什么都在宿主判,调用方只给档位从哪来、存到哪去。
|
|
5
|
+
*
|
|
6
|
+
* 类型参数只让宿主代入自己更窄的类型(品牌化的 id、完整的型号条目与解析结论);插件用缺省。
|
|
7
|
+
*
|
|
8
|
+
* @module @ycodium-ai/plugin-api/ui
|
|
9
|
+
*/
|
|
10
|
+
import type {
|
|
11
|
+
ConversationDraftId,
|
|
12
|
+
ConversationModelChoice,
|
|
13
|
+
ConversationProviderOptionSelection,
|
|
14
|
+
ConversationScopedThreadRef,
|
|
15
|
+
ConversationServerProviderModel,
|
|
16
|
+
} from "./conversationHostModels.ts";
|
|
17
|
+
|
|
18
|
+
export interface TraitsPickerTypes {
|
|
19
|
+
readonly driver: string;
|
|
20
|
+
readonly instanceId: string;
|
|
21
|
+
readonly threadRef: unknown;
|
|
22
|
+
readonly draftId: string;
|
|
23
|
+
readonly model: unknown;
|
|
24
|
+
readonly choice: unknown;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ConversationTraitsPickerTypes {
|
|
28
|
+
readonly driver: string;
|
|
29
|
+
readonly instanceId: string;
|
|
30
|
+
readonly threadRef: ConversationScopedThreadRef;
|
|
31
|
+
readonly draftId: ConversationDraftId;
|
|
32
|
+
readonly model: ConversationServerProviderModel;
|
|
33
|
+
readonly choice: ConversationModelChoice;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
type OptionSelections = ReadonlyArray<ConversationProviderOptionSelection>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 档位从哪来:
|
|
40
|
+
* - `choice`:宿主模型解析器的结论(会话输入框)。选中的型号不在目录里时档位只读显示。
|
|
41
|
+
* - `models` + `modelOptions`:实例的型号表与存着的选择(设置页的默认 agent)。
|
|
42
|
+
*/
|
|
43
|
+
export type TraitsSource<T extends TraitsPickerTypes> =
|
|
44
|
+
| {
|
|
45
|
+
readonly choice: T["choice"] | null;
|
|
46
|
+
readonly models?: never;
|
|
47
|
+
readonly modelOptions?: never;
|
|
48
|
+
}
|
|
49
|
+
| {
|
|
50
|
+
readonly choice?: never;
|
|
51
|
+
readonly models: ReadonlyArray<T["model"]>;
|
|
52
|
+
readonly modelOptions?: OptionSelections | null | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** 改了存到哪:会话或草稿(宿主写进草稿存储并记成粘性选择),或交给调用方。 */
|
|
56
|
+
export type TraitsTarget<T extends TraitsPickerTypes> =
|
|
57
|
+
| {
|
|
58
|
+
readonly threadRef?: T["threadRef"] | undefined;
|
|
59
|
+
readonly draftId?: T["draftId"] | undefined;
|
|
60
|
+
readonly onModelOptionsChange?: never;
|
|
61
|
+
}
|
|
62
|
+
| {
|
|
63
|
+
readonly threadRef?: undefined;
|
|
64
|
+
readonly draftId?: undefined;
|
|
65
|
+
readonly onModelOptionsChange: (nextOptions: OptionSelections | undefined) => void;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type TraitsMenuContentProps<T extends TraitsPickerTypes = ConversationTraitsPickerTypes> = {
|
|
69
|
+
readonly provider: T["driver"];
|
|
70
|
+
readonly instanceId?: T["instanceId"] | undefined;
|
|
71
|
+
/** 当前选中的型号 slug,档位记在它名下。 */
|
|
72
|
+
readonly model: string | null | undefined;
|
|
73
|
+
} & TraitsSource<T> &
|
|
74
|
+
TraitsTarget<T>;
|
|
75
|
+
|
|
76
|
+
export type TraitsPickerProps<T extends TraitsPickerTypes = ConversationTraitsPickerTypes> =
|
|
77
|
+
TraitsMenuContentProps<T> & {
|
|
78
|
+
/** 触发器置灰:照画当前档位,不能打开。 */
|
|
79
|
+
readonly disabled?: boolean | undefined;
|
|
80
|
+
readonly open?: boolean | undefined;
|
|
81
|
+
readonly onOpenChange?: ((open: boolean) => void) | undefined;
|
|
82
|
+
readonly triggerVariant?: "ghost" | "outline" | undefined;
|
|
83
|
+
readonly triggerClassName?: string | undefined;
|
|
84
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UI bundle 与宿主的版本门。这个子路径必须随浏览器 bundle 内联,不能从旧宿主注入的
|
|
3
|
+
* `@ycodium-ai/plugin-api/ui` 模块读取:旧宿主没有新断言,也只会提供旧版本号。
|
|
4
|
+
*
|
|
5
|
+
* @module @ycodium-ai/plugin-api/ui-bridge-version
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const PLUGIN_UI_BRIDGE_VERSION = 1;
|
|
9
|
+
|
|
10
|
+
export type PluginUiBridgeVersionFailure =
|
|
11
|
+
| "invalid-bundle-version"
|
|
12
|
+
| "invalid-host-version"
|
|
13
|
+
| "update-app"
|
|
14
|
+
| "update-plugin";
|
|
15
|
+
|
|
16
|
+
export class PluginUiBridgeVersionError extends Error {
|
|
17
|
+
readonly reason: PluginUiBridgeVersionFailure;
|
|
18
|
+
|
|
19
|
+
constructor(reason: PluginUiBridgeVersionFailure) {
|
|
20
|
+
const messages: Record<PluginUiBridgeVersionFailure, string> = {
|
|
21
|
+
"invalid-bundle-version":
|
|
22
|
+
"This plugin UI declares an invalid bridge version. Update the plugin.",
|
|
23
|
+
"invalid-host-version":
|
|
24
|
+
"This Ycodium app has an invalid plugin UI bridge version. Update the app.",
|
|
25
|
+
"update-app": "This plugin UI needs a newer Ycodium app. Update the app.",
|
|
26
|
+
"update-plugin": "This plugin UI was built for an older Ycodium app. Update the plugin.",
|
|
27
|
+
};
|
|
28
|
+
super(messages[reason]);
|
|
29
|
+
this.name = "PluginUiBridgeVersionError";
|
|
30
|
+
this.reason = reason;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const validVersion = (value: unknown): value is number =>
|
|
35
|
+
typeof value === "number" && Number.isSafeInteger(value) && value > 0;
|
|
36
|
+
|
|
37
|
+
const assertVersionsMatch = (requiredVersion: unknown, hostVersion: unknown): void => {
|
|
38
|
+
if (!validVersion(requiredVersion))
|
|
39
|
+
throw new PluginUiBridgeVersionError("invalid-bundle-version");
|
|
40
|
+
if (!validVersion(hostVersion)) throw new PluginUiBridgeVersionError("invalid-host-version");
|
|
41
|
+
if (hostVersion < requiredVersion) throw new PluginUiBridgeVersionError("update-app");
|
|
42
|
+
if (hostVersion > requiredVersion) throw new PluginUiBridgeVersionError("update-plugin");
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** 宿主导入 bundle 之后、调用 `register` 之前检查。旧 bundle 缺少命名导出时属于 v1。 */
|
|
46
|
+
export function checkPluginUiBridgeVersion(module: unknown, hostVersion: number): void {
|
|
47
|
+
const record =
|
|
48
|
+
module !== null && (typeof module === "object" || typeof module === "function")
|
|
49
|
+
? (module as Record<string, unknown>)
|
|
50
|
+
: null;
|
|
51
|
+
const declared =
|
|
52
|
+
record !== null && Object.prototype.hasOwnProperty.call(record, "requiredUiBridgeVersion")
|
|
53
|
+
? record["requiredUiBridgeVersion"]
|
|
54
|
+
: 1;
|
|
55
|
+
assertVersionsMatch(declared, hostVersion);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** 新 bundle 的 `register` 第一行检查;旧宿主不读命名导出,只能由 bundle 自己拒绝。 */
|
|
59
|
+
export function assertPluginUiBridgeVersion(
|
|
60
|
+
bridge: { readonly version?: unknown },
|
|
61
|
+
requiredVersion: number,
|
|
62
|
+
): void {
|
|
63
|
+
assertVersionsMatch(requiredVersion, bridge.version);
|
|
64
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { createBundleStyleHolder } from "./_private/ycodium-ui-hooks/bundleStyle.ts";
|
|
2
|
+
export { ClipboardError, useCopyToClipboard } from "./_private/ycodium-ui-hooks/clipboard.ts";
|
|
3
|
+
export { DiffStatCounts } from "./_private/ycodium-ui-hooks/DiffStatCounts.tsx";
|
|
4
|
+
export { hostControl, ProvideHost } from "./_private/ycodium-ui-hooks/hostControls.ts";
|
|
5
|
+
export {
|
|
6
|
+
createFileTagChipContent,
|
|
7
|
+
createPierreEntryIcon,
|
|
8
|
+
createSkillChipRenderer,
|
|
9
|
+
} from "./_private/ycodium-ui-hooks/inlineChips.tsx";
|
|
10
|
+
export { notifyMessages, type NotifyTone } from "./_private/ycodium-ui-hooks/notifyMessages.ts";
|
|
11
|
+
export { PROCESS_ROW_HEADER_CLASS } from "./_private/ycodium-ui-hooks/processRowHeader.ts";
|
|
12
|
+
export { ProviderSignInChallenge } from "./_private/ycodium-ui-hooks/ProviderSignInChallenge.tsx";
|
|
13
|
+
export { RenderErrorBoundary } from "./_private/ycodium-ui-hooks/RenderErrorBoundary.tsx";
|
|
14
|
+
export { RuntimeMaintenanceActions } from "./_private/ycodium-ui-hooks/RuntimeMaintenanceActions.tsx";
|
|
15
|
+
export { SkillInlineText } from "./_private/ycodium-ui-hooks/SkillInlineText.tsx";
|
|
16
|
+
export {
|
|
17
|
+
readTimelineDisclosure,
|
|
18
|
+
useTimelineDisclosure,
|
|
19
|
+
writeTimelineDisclosure,
|
|
20
|
+
} from "./_private/ycodium-ui-hooks/timelineDisclosure.ts";
|
|
21
|
+
export {
|
|
22
|
+
aggregateProcessState,
|
|
23
|
+
dominantToolGroupIcon,
|
|
24
|
+
processStateFromWorkStatus,
|
|
25
|
+
tallyToolGroupActions,
|
|
26
|
+
} from "./_private/ycodium-ui-hooks/workEntryIcons.ts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type CatalogTranslationKey } from "./_private/ycodium-ui-hooks/catalogKeys.ts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useMediaQuery } from "./_private/ycodium-ui-hooks/useMediaQuery.ts";
|