@wzrhine/agent 0.0.0-stage → 0.2.0
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/CHANGELOG.md +40 -0
- package/LICENSE +21 -0
- package/README.md +29 -3
- package/dist/agent.css +16 -0
- package/dist/components/artifact/ArtifactCard.d.ts +59 -0
- package/dist/components/artifact/ArtifactCard.d.ts.map +1 -0
- package/dist/components/artifact/ArtifactCard.js +79 -0
- package/dist/components/artifact/ArtifactCard.js.map +1 -0
- package/dist/components/artifact/FilePreview.d.ts +121 -0
- package/dist/components/artifact/FilePreview.d.ts.map +1 -0
- package/dist/components/artifact/FilePreview.js +213 -0
- package/dist/components/artifact/FilePreview.js.map +1 -0
- package/dist/components/artifact/FilePreviewTabs.d.ts +51 -0
- package/dist/components/artifact/FilePreviewTabs.d.ts.map +1 -0
- package/dist/components/artifact/FilePreviewTabs.js +150 -0
- package/dist/components/artifact/FilePreviewTabs.js.map +1 -0
- package/dist/components/composer/AttachmentList.d.ts +33 -0
- package/dist/components/composer/AttachmentList.d.ts.map +1 -0
- package/dist/components/composer/AttachmentList.js +60 -0
- package/dist/components/composer/AttachmentList.js.map +1 -0
- package/dist/components/composer/Composer.d.ts +119 -0
- package/dist/components/composer/Composer.d.ts.map +1 -0
- package/dist/components/composer/Composer.js +336 -0
- package/dist/components/composer/Composer.js.map +1 -0
- package/dist/components/composer/ComposerInput.d.ts +103 -0
- package/dist/components/composer/ComposerInput.d.ts.map +1 -0
- package/dist/components/composer/ComposerInput.js +301 -0
- package/dist/components/composer/ComposerInput.js.map +1 -0
- package/dist/components/composer/ComposerNotice.d.ts +38 -0
- package/dist/components/composer/ComposerNotice.d.ts.map +1 -0
- package/dist/components/composer/ComposerNotice.js +16 -0
- package/dist/components/composer/ComposerNotice.js.map +1 -0
- package/dist/components/composer/MentionMenu.d.ts +37 -0
- package/dist/components/composer/MentionMenu.d.ts.map +1 -0
- package/dist/components/composer/MentionMenu.js +56 -0
- package/dist/components/composer/MentionMenu.js.map +1 -0
- package/dist/components/composer/MenuPanel.d.ts +49 -0
- package/dist/components/composer/MenuPanel.d.ts.map +1 -0
- package/dist/components/composer/MenuPanel.js +50 -0
- package/dist/components/composer/MenuPanel.js.map +1 -0
- package/dist/components/composer/ModelPicker.d.ts +53 -0
- package/dist/components/composer/ModelPicker.d.ts.map +1 -0
- package/dist/components/composer/ModelPicker.js +126 -0
- package/dist/components/composer/ModelPicker.js.map +1 -0
- package/dist/components/composer/PermissionPicker.d.ts +35 -0
- package/dist/components/composer/PermissionPicker.d.ts.map +1 -0
- package/dist/components/composer/PermissionPicker.js +51 -0
- package/dist/components/composer/PermissionPicker.js.map +1 -0
- package/dist/components/composer/ReferencePicker.d.ts +31 -0
- package/dist/components/composer/ReferencePicker.d.ts.map +1 -0
- package/dist/components/composer/ReferencePicker.js +50 -0
- package/dist/components/composer/ReferencePicker.js.map +1 -0
- package/dist/components/composer/SendStopButton.d.ts +73 -0
- package/dist/components/composer/SendStopButton.d.ts.map +1 -0
- package/dist/components/composer/SendStopButton.js +88 -0
- package/dist/components/composer/SendStopButton.js.map +1 -0
- package/dist/components/composer/SkillPicker.d.ts +26 -0
- package/dist/components/composer/SkillPicker.d.ts.map +1 -0
- package/dist/components/composer/SkillPicker.js +26 -0
- package/dist/components/composer/SkillPicker.js.map +1 -0
- package/dist/components/composer/SlashCommandMenu.d.ts +33 -0
- package/dist/components/composer/SlashCommandMenu.d.ts.map +1 -0
- package/dist/components/composer/SlashCommandMenu.js +43 -0
- package/dist/components/composer/SlashCommandMenu.js.map +1 -0
- package/dist/components/composer/composer-text.d.ts +10 -0
- package/dist/components/composer/composer-text.d.ts.map +1 -0
- package/dist/components/composer/composer-text.js +26 -0
- package/dist/components/composer/composer-text.js.map +1 -0
- package/dist/components/composer/composer-utils.d.ts +74 -0
- package/dist/components/composer/composer-utils.d.ts.map +1 -0
- package/dist/components/composer/composer-utils.js +133 -0
- package/dist/components/composer/composer-utils.js.map +1 -0
- package/dist/components/conversation/ConversationList.d.ts +94 -0
- package/dist/components/conversation/ConversationList.d.ts.map +1 -0
- package/dist/components/conversation/ConversationList.js +81 -0
- package/dist/components/conversation/ConversationList.js.map +1 -0
- package/dist/components/conversation/ConversationRow.d.ts +66 -0
- package/dist/components/conversation/ConversationRow.d.ts.map +1 -0
- package/dist/components/conversation/ConversationRow.js +65 -0
- package/dist/components/conversation/ConversationRow.js.map +1 -0
- package/dist/components/conversation/conversation-status.d.ts +21 -0
- package/dist/components/conversation/conversation-status.d.ts.map +1 -0
- package/dist/components/conversation/conversation-status.js +33 -0
- package/dist/components/conversation/conversation-status.js.map +1 -0
- package/dist/components/intervention/ApprovalDiff.d.ts +14 -0
- package/dist/components/intervention/ApprovalDiff.d.ts.map +1 -0
- package/dist/components/intervention/ApprovalDiff.js +25 -0
- package/dist/components/intervention/ApprovalDiff.js.map +1 -0
- package/dist/components/intervention/ApprovalPanel.d.ts +57 -0
- package/dist/components/intervention/ApprovalPanel.d.ts.map +1 -0
- package/dist/components/intervention/ApprovalPanel.js +111 -0
- package/dist/components/intervention/ApprovalPanel.js.map +1 -0
- package/dist/components/intervention/ErrorRecoveryNotice.d.ts +28 -0
- package/dist/components/intervention/ErrorRecoveryNotice.d.ts.map +1 -0
- package/dist/components/intervention/ErrorRecoveryNotice.js +31 -0
- package/dist/components/intervention/ErrorRecoveryNotice.js.map +1 -0
- package/dist/components/intervention/GrantList.d.ts +49 -0
- package/dist/components/intervention/GrantList.d.ts.map +1 -0
- package/dist/components/intervention/GrantList.js +58 -0
- package/dist/components/intervention/GrantList.js.map +1 -0
- package/dist/components/intervention/InterventionDock.d.ts +24 -0
- package/dist/components/intervention/InterventionDock.d.ts.map +1 -0
- package/dist/components/intervention/InterventionDock.js +18 -0
- package/dist/components/intervention/InterventionDock.js.map +1 -0
- package/dist/components/intervention/QuestionnaireCard.d.ts +81 -0
- package/dist/components/intervention/QuestionnaireCard.d.ts.map +1 -0
- package/dist/components/intervention/QuestionnaireCard.js +333 -0
- package/dist/components/intervention/QuestionnaireCard.js.map +1 -0
- package/dist/components/intervention/action-lock.d.ts +20 -0
- package/dist/components/intervention/action-lock.d.ts.map +1 -0
- package/dist/components/intervention/action-lock.js +65 -0
- package/dist/components/intervention/action-lock.js.map +1 -0
- package/dist/components/intervention/icons.d.ts +8 -0
- package/dist/components/intervention/icons.d.ts.map +1 -0
- package/dist/components/intervention/icons.js +11 -0
- package/dist/components/intervention/icons.js.map +1 -0
- package/dist/components/intervention/questionnaire-answers.d.ts +34 -0
- package/dist/components/intervention/questionnaire-answers.d.ts.map +1 -0
- package/dist/components/intervention/questionnaire-answers.js +97 -0
- package/dist/components/intervention/questionnaire-answers.js.map +1 -0
- package/dist/components/message/AgentMessage.d.ts +98 -0
- package/dist/components/message/AgentMessage.d.ts.map +1 -0
- package/dist/components/message/AgentMessage.js +94 -0
- package/dist/components/message/AgentMessage.js.map +1 -0
- package/dist/components/message/CitationChip.d.ts +38 -0
- package/dist/components/message/CitationChip.d.ts.map +1 -0
- package/dist/components/message/CitationChip.js +32 -0
- package/dist/components/message/CitationChip.js.map +1 -0
- package/dist/components/message/CodeBlock.d.ts +45 -0
- package/dist/components/message/CodeBlock.d.ts.map +1 -0
- package/dist/components/message/CodeBlock.js +21 -0
- package/dist/components/message/CodeBlock.js.map +1 -0
- package/dist/components/message/JumpToLatest.d.ts +27 -0
- package/dist/components/message/JumpToLatest.d.ts.map +1 -0
- package/dist/components/message/JumpToLatest.js +17 -0
- package/dist/components/message/JumpToLatest.js.map +1 -0
- package/dist/components/message/Markdown.d.ts +21 -0
- package/dist/components/message/Markdown.d.ts.map +1 -0
- package/dist/components/message/Markdown.js +21 -0
- package/dist/components/message/Markdown.js.map +1 -0
- package/dist/components/message/MessageActions.d.ts +67 -0
- package/dist/components/message/MessageActions.d.ts.map +1 -0
- package/dist/components/message/MessageActions.js +83 -0
- package/dist/components/message/MessageActions.js.map +1 -0
- package/dist/components/message/MessageList.d.ts +106 -0
- package/dist/components/message/MessageList.d.ts.map +1 -0
- package/dist/components/message/MessageList.js +327 -0
- package/dist/components/message/MessageList.js.map +1 -0
- package/dist/components/message/MessagePart.d.ts +44 -0
- package/dist/components/message/MessagePart.d.ts.map +1 -0
- package/dist/components/message/MessagePart.js +150 -0
- package/dist/components/message/MessagePart.js.map +1 -0
- package/dist/components/message/RunDetails.d.ts +26 -0
- package/dist/components/message/RunDetails.d.ts.map +1 -0
- package/dist/components/message/RunDetails.js +113 -0
- package/dist/components/message/RunDetails.js.map +1 -0
- package/dist/components/message/SkillUseList.d.ts +22 -0
- package/dist/components/message/SkillUseList.d.ts.map +1 -0
- package/dist/components/message/SkillUseList.js +20 -0
- package/dist/components/message/SkillUseList.js.map +1 -0
- package/dist/components/message/ThinkingBlock.d.ts +44 -0
- package/dist/components/message/ThinkingBlock.d.ts.map +1 -0
- package/dist/components/message/ThinkingBlock.js +34 -0
- package/dist/components/message/ThinkingBlock.js.map +1 -0
- package/dist/components/message/icons.d.ts +14 -0
- package/dist/components/message/icons.d.ts.map +1 -0
- package/dist/components/message/icons.js +16 -0
- package/dist/components/message/icons.js.map +1 -0
- package/dist/components/message/plain-text.d.ts +11 -0
- package/dist/components/message/plain-text.d.ts.map +1 -0
- package/dist/components/message/plain-text.js +58 -0
- package/dist/components/message/plain-text.js.map +1 -0
- package/dist/components/message/renderers.d.ts +30 -0
- package/dist/components/message/renderers.d.ts.map +1 -0
- package/dist/components/message/renderers.js +2 -0
- package/dist/components/message/renderers.js.map +1 -0
- package/dist/components/message/use-copy.d.ts +19 -0
- package/dist/components/message/use-copy.d.ts.map +1 -0
- package/dist/components/message/use-copy.js +67 -0
- package/dist/components/message/use-copy.js.map +1 -0
- package/dist/components/process/AgentProcess.d.ts +47 -0
- package/dist/components/process/AgentProcess.d.ts.map +1 -0
- package/dist/components/process/AgentProcess.js +78 -0
- package/dist/components/process/AgentProcess.js.map +1 -0
- package/dist/components/process/RunStatus.d.ts +60 -0
- package/dist/components/process/RunStatus.d.ts.map +1 -0
- package/dist/components/process/RunStatus.js +34 -0
- package/dist/components/process/RunStatus.js.map +1 -0
- package/dist/components/shell/AgentEmptyState.d.ts +35 -0
- package/dist/components/shell/AgentEmptyState.d.ts.map +1 -0
- package/dist/components/shell/AgentEmptyState.js +20 -0
- package/dist/components/shell/AgentEmptyState.js.map +1 -0
- package/dist/components/shell/AgentHeader.d.ts +84 -0
- package/dist/components/shell/AgentHeader.d.ts.map +1 -0
- package/dist/components/shell/AgentHeader.js +43 -0
- package/dist/components/shell/AgentHeader.js.map +1 -0
- package/dist/components/shell/AgentShell.d.ts +154 -0
- package/dist/components/shell/AgentShell.d.ts.map +1 -0
- package/dist/components/shell/AgentShell.js +210 -0
- package/dist/components/shell/AgentShell.js.map +1 -0
- package/dist/components/shell/AgentSidePane.d.ts +54 -0
- package/dist/components/shell/AgentSidePane.d.ts.map +1 -0
- package/dist/components/shell/AgentSidePane.js +26 -0
- package/dist/components/shell/AgentSidePane.js.map +1 -0
- package/dist/components/shell/ResizeHandle.d.ts +54 -0
- package/dist/components/shell/ResizeHandle.d.ts.map +1 -0
- package/dist/components/shell/ResizeHandle.js +94 -0
- package/dist/components/shell/ResizeHandle.js.map +1 -0
- package/dist/components/shell/use-controllable.d.ts +9 -0
- package/dist/components/shell/use-controllable.d.ts.map +1 -0
- package/dist/components/shell/use-controllable.js +26 -0
- package/dist/components/shell/use-controllable.js.map +1 -0
- package/dist/components/tools/ChunkPager.d.ts +48 -0
- package/dist/components/tools/ChunkPager.d.ts.map +1 -0
- package/dist/components/tools/ChunkPager.js +68 -0
- package/dist/components/tools/ChunkPager.js.map +1 -0
- package/dist/components/tools/CodeModeToolTree.d.ts +64 -0
- package/dist/components/tools/CodeModeToolTree.d.ts.map +1 -0
- package/dist/components/tools/CodeModeToolTree.js +97 -0
- package/dist/components/tools/CodeModeToolTree.js.map +1 -0
- package/dist/components/tools/DiffPreview.d.ts +83 -0
- package/dist/components/tools/DiffPreview.d.ts.map +1 -0
- package/dist/components/tools/DiffPreview.js +95 -0
- package/dist/components/tools/DiffPreview.js.map +1 -0
- package/dist/components/tools/ToolActivity.d.ts +63 -0
- package/dist/components/tools/ToolActivity.d.ts.map +1 -0
- package/dist/components/tools/ToolActivity.js +45 -0
- package/dist/components/tools/ToolActivity.js.map +1 -0
- package/dist/components/tools/ToolDetails.d.ts +118 -0
- package/dist/components/tools/ToolDetails.d.ts.map +1 -0
- package/dist/components/tools/ToolDetails.js +258 -0
- package/dist/components/tools/ToolDetails.js.map +1 -0
- package/dist/components/tools/ToolHistory.d.ts +48 -0
- package/dist/components/tools/ToolHistory.d.ts.map +1 -0
- package/dist/components/tools/ToolHistory.js +37 -0
- package/dist/components/tools/ToolHistory.js.map +1 -0
- package/dist/components/tools/ToolOutput.d.ts +61 -0
- package/dist/components/tools/ToolOutput.d.ts.map +1 -0
- package/dist/components/tools/ToolOutput.js +45 -0
- package/dist/components/tools/ToolOutput.js.map +1 -0
- package/dist/components/tools/ToolRecord.d.ts +58 -0
- package/dist/components/tools/ToolRecord.d.ts.map +1 -0
- package/dist/components/tools/ToolRecord.js +79 -0
- package/dist/components/tools/ToolRecord.js.map +1 -0
- package/dist/components/tools/shared.d.ts +93 -0
- package/dist/components/tools/shared.d.ts.map +1 -0
- package/dist/components/tools/shared.js +160 -0
- package/dist/components/tools/shared.js.map +1 -0
- package/dist/components/workspace/ActivityLedger.d.ts +44 -0
- package/dist/components/workspace/ActivityLedger.d.ts.map +1 -0
- package/dist/components/workspace/ActivityLedger.js +63 -0
- package/dist/components/workspace/ActivityLedger.js.map +1 -0
- package/dist/components/workspace/CompactionNotice.d.ts +63 -0
- package/dist/components/workspace/CompactionNotice.d.ts.map +1 -0
- package/dist/components/workspace/CompactionNotice.js +36 -0
- package/dist/components/workspace/CompactionNotice.js.map +1 -0
- package/dist/components/workspace/ContextUsage.d.ts +50 -0
- package/dist/components/workspace/ContextUsage.d.ts.map +1 -0
- package/dist/components/workspace/ContextUsage.js +106 -0
- package/dist/components/workspace/ContextUsage.js.map +1 -0
- package/dist/components/workspace/PersistentTerminal.d.ts +86 -0
- package/dist/components/workspace/PersistentTerminal.d.ts.map +1 -0
- package/dist/components/workspace/PersistentTerminal.js +155 -0
- package/dist/components/workspace/PersistentTerminal.js.map +1 -0
- package/dist/components/workspace/PinnedSummary.d.ts +43 -0
- package/dist/components/workspace/PinnedSummary.d.ts.map +1 -0
- package/dist/components/workspace/PinnedSummary.js +33 -0
- package/dist/components/workspace/PinnedSummary.js.map +1 -0
- package/dist/components/workspace/RunOverview.d.ts +29 -0
- package/dist/components/workspace/RunOverview.d.ts.map +1 -0
- package/dist/components/workspace/RunOverview.js +20 -0
- package/dist/components/workspace/RunOverview.js.map +1 -0
- package/dist/components/workspace/RunSummary.d.ts +35 -0
- package/dist/components/workspace/RunSummary.d.ts.map +1 -0
- package/dist/components/workspace/RunSummary.js +46 -0
- package/dist/components/workspace/RunSummary.js.map +1 -0
- package/dist/components/workspace/SubAgentCard.d.ts +64 -0
- package/dist/components/workspace/SubAgentCard.d.ts.map +1 -0
- package/dist/components/workspace/SubAgentCard.js +78 -0
- package/dist/components/workspace/SubAgentCard.js.map +1 -0
- package/dist/components/workspace/TerminalRow.d.ts +61 -0
- package/dist/components/workspace/TerminalRow.d.ts.map +1 -0
- package/dist/components/workspace/TerminalRow.js +65 -0
- package/dist/components/workspace/TerminalRow.js.map +1 -0
- package/dist/components/workspace/shared.d.ts +26 -0
- package/dist/components/workspace/shared.d.ts.map +1 -0
- package/dist/components/workspace/shared.js +41 -0
- package/dist/components/workspace/shared.js.map +1 -0
- package/dist/index.d.ts +136 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +79 -0
- package/dist/index.js.map +1 -0
- package/dist/motion/agent-motion.d.ts +62 -0
- package/dist/motion/agent-motion.d.ts.map +1 -0
- package/dist/motion/agent-motion.js +61 -0
- package/dist/motion/agent-motion.js.map +1 -0
- package/dist/primitives/AgentSpark.d.ts +17 -0
- package/dist/primitives/AgentSpark.d.ts.map +1 -0
- package/dist/primitives/AgentSpark.js +11 -0
- package/dist/primitives/AgentSpark.js.map +1 -0
- package/dist/primitives/AgentStatus.d.ts +32 -0
- package/dist/primitives/AgentStatus.d.ts.map +1 -0
- package/dist/primitives/AgentStatus.js +13 -0
- package/dist/primitives/AgentStatus.js.map +1 -0
- package/dist/primitives/StatusGlyph.d.ts +16 -0
- package/dist/primitives/StatusGlyph.d.ts.map +1 -0
- package/dist/primitives/StatusGlyph.js +31 -0
- package/dist/primitives/StatusGlyph.js.map +1 -0
- package/dist/primitives/icons.d.ts +13 -0
- package/dist/primitives/icons.d.ts.map +1 -0
- package/dist/primitives/icons.js +55 -0
- package/dist/primitives/icons.js.map +1 -0
- package/dist/provider/AgentMessages.d.ts +61 -0
- package/dist/provider/AgentMessages.d.ts.map +1 -0
- package/dist/provider/AgentMessages.js +81 -0
- package/dist/provider/AgentMessages.js.map +1 -0
- package/dist/provider/messages/composer.d.ts +112 -0
- package/dist/provider/messages/composer.d.ts.map +1 -0
- package/dist/provider/messages/composer.js +165 -0
- package/dist/provider/messages/composer.js.map +1 -0
- package/dist/provider/messages/intervention.d.ts +136 -0
- package/dist/provider/messages/intervention.d.ts.map +1 -0
- package/dist/provider/messages/intervention.js +321 -0
- package/dist/provider/messages/intervention.js.map +1 -0
- package/dist/provider/messages/message.d.ts +119 -0
- package/dist/provider/messages/message.d.ts.map +1 -0
- package/dist/provider/messages/message.js +224 -0
- package/dist/provider/messages/message.js.map +1 -0
- package/dist/provider/messages/shell.d.ts +70 -0
- package/dist/provider/messages/shell.d.ts.map +1 -0
- package/dist/provider/messages/shell.js +109 -0
- package/dist/provider/messages/shell.js.map +1 -0
- package/dist/provider/messages/status.d.ts +21 -0
- package/dist/provider/messages/status.d.ts.map +1 -0
- package/dist/provider/messages/status.js +195 -0
- package/dist/provider/messages/status.js.map +1 -0
- package/dist/provider/messages/tools.d.ts +217 -0
- package/dist/provider/messages/tools.d.ts.map +1 -0
- package/dist/provider/messages/tools.js +496 -0
- package/dist/provider/messages/tools.js.map +1 -0
- package/dist/provider/messages/workspace.d.ts +187 -0
- package/dist/provider/messages/workspace.d.ts.map +1 -0
- package/dist/provider/messages/workspace.js +333 -0
- package/dist/provider/messages/workspace.js.map +1 -0
- package/dist/styles/artifact.css +564 -0
- package/dist/styles/base.css +220 -0
- package/dist/styles/composer.css +1001 -0
- package/dist/styles/conversation.css +275 -0
- package/dist/styles/intervention.css +929 -0
- package/dist/styles/message.css +917 -0
- package/dist/styles/process.css +207 -0
- package/dist/styles/shell.css +453 -0
- package/dist/styles/tools.css +929 -0
- package/dist/styles/workspace.css +1297 -0
- package/dist/styles/wpi-adoption.css +24 -0
- package/dist/utils/cx.d.ts +3 -0
- package/dist/utils/cx.d.ts.map +1 -0
- package/dist/utils/cx.js +5 -0
- package/dist/utils/cx.js.map +1 -0
- package/package.json +64 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalRow.js","sourceRoot":"","sources":["../../../src/components/workspace/TerminalRow.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAenD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAAmC,SAAS,WA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CAAC,CAAC,gBAAgB,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,GACvE,CACV,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Completeness } from '@wzrhine/agent-core';
|
|
3
|
+
import type { AgentWorkspaceMessages } from '../../provider/messages/workspace.js';
|
|
4
|
+
/**
|
|
5
|
+
* Small helpers shared by the workspace and artifact families. Not exported from the package
|
|
6
|
+
* entry: every component re-exposes what it needs through its own props.
|
|
7
|
+
*/
|
|
8
|
+
/** Per-instance copy override (prop) merged over the nearest `AgentMessagesProvider`. Plain label
|
|
9
|
+
* records (e.g. `artifactKind`) merge key by key, so a single custom label can be added without
|
|
10
|
+
* repeating the built-ins (ADR-0013 §5). */
|
|
11
|
+
export type WorkspaceMessagesProp = {
|
|
12
|
+
[K in keyof AgentWorkspaceMessages]?: AgentWorkspaceMessages[K] extends Record<string, string> ? Partial<AgentWorkspaceMessages[K]> : AgentWorkspaceMessages[K];
|
|
13
|
+
};
|
|
14
|
+
export declare function useWorkspaceMessages(override?: WorkspaceMessagesProp): AgentWorkspaceMessages;
|
|
15
|
+
export type HeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
16
|
+
export declare function Heading({ level, ...rest }: React.HTMLAttributes<HTMLHeadingElement> & {
|
|
17
|
+
level: HeadingLevel;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* Ids present on the first render are "history" and must not play an entrance; ids that appear
|
|
21
|
+
* later are new. The decision per id is frozen by `AgentEntrance` at its mount.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useIsNewId(ids: readonly string[]): (id: string) => boolean;
|
|
24
|
+
/** Label for a non-exact number, or `undefined` for exact values. */
|
|
25
|
+
export declare function completenessTag(completeness: Completeness, labels: Record<Completeness, string>): string | undefined;
|
|
26
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/components/workspace/shared.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAEnF;;;GAGG;AAEH;;4CAE4C;AAC5C,MAAM,MAAM,qBAAqB,GAAG;KAAG,CAAC,IAAI,MAAM,sBAAsB,CAAC,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC;CAAE,CAAC;AAKxM,wBAAgB,oBAAoB,CAAC,QAAQ,CAAC,EAAE,qBAAqB,GAAG,sBAAsB,CAY7F;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7C,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,GAAG;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,qBAG7G;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAK1E;AAED,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS,CAEpH"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useAgentMessages } from '../../provider/AgentMessages.js';
|
|
5
|
+
/** Plain (non-array) object check for the key-by-key label merge. */
|
|
6
|
+
const isPlainRecord = (value) => typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
7
|
+
export function useWorkspaceMessages(override) {
|
|
8
|
+
const base = useAgentMessages().workspace;
|
|
9
|
+
return React.useMemo(() => {
|
|
10
|
+
if (!override)
|
|
11
|
+
return base;
|
|
12
|
+
const merged = { ...base };
|
|
13
|
+
for (const [key, value] of Object.entries(override)) {
|
|
14
|
+
if (value === undefined)
|
|
15
|
+
continue;
|
|
16
|
+
const current = merged[key];
|
|
17
|
+
merged[key] = isPlainRecord(current) && isPlainRecord(value) ? { ...current, ...value } : value;
|
|
18
|
+
}
|
|
19
|
+
return merged;
|
|
20
|
+
}, [base, override]);
|
|
21
|
+
}
|
|
22
|
+
export function Heading({ level, ...rest }) {
|
|
23
|
+
const Tag = `h${level}`;
|
|
24
|
+
return _jsx(Tag, { ...rest });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Ids present on the first render are "history" and must not play an entrance; ids that appear
|
|
28
|
+
* later are new. The decision per id is frozen by `AgentEntrance` at its mount.
|
|
29
|
+
*/
|
|
30
|
+
export function useIsNewId(ids) {
|
|
31
|
+
const initial = React.useRef(null);
|
|
32
|
+
if (initial.current === null)
|
|
33
|
+
initial.current = new Set(ids);
|
|
34
|
+
const seen = initial.current;
|
|
35
|
+
return React.useCallback((id) => !seen.has(id), [seen]);
|
|
36
|
+
}
|
|
37
|
+
/** Label for a non-exact number, or `undefined` for exact values. */
|
|
38
|
+
export function completenessTag(completeness, labels) {
|
|
39
|
+
return completeness === 'exact' ? undefined : labels[completeness];
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/components/workspace/shared.tsx"],"names":[],"mappings":"AAAA,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AU,UAAU,CAAC,GAAsB;IAC/C,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAqB,IAAI,CAAC,CAAC;IACvD,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI;QAAE,OAAO,CAAC,OAAO,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7D,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC;IAC7B,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,EAAU,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAClE,CAAC;AAED,qEAAqE;AACrE,MAAM,UAAU,eAAe,CAAC,YAA0B,EAAE,MAAoC;IAC9F,OAAO,YAAY,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AACrE,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
export { AgentMessagesProvider, agentEnUS, agentZhCN, mergeAgentMessages, useAgentFormat, useAgentMessages } from './provider/AgentMessages.js';
|
|
2
|
+
export type { AgentFormat, AgentMessages, AgentMessagesOverrides, AgentMessagesProviderProps } from './provider/AgentMessages.js';
|
|
3
|
+
export { AgentIcon } from './primitives/icons.js';
|
|
4
|
+
export type { AgentIconName, AgentIconProps } from './primitives/icons.js';
|
|
5
|
+
export { StatusGlyph } from './primitives/StatusGlyph.js';
|
|
6
|
+
export type { StatusGlyphProps } from './primitives/StatusGlyph.js';
|
|
7
|
+
export { AgentStatus, statusProps } from './primitives/AgentStatus.js';
|
|
8
|
+
export type { AgentStatusProps } from './primitives/AgentStatus.js';
|
|
9
|
+
export { AgentSpark } from './primitives/AgentSpark.js';
|
|
10
|
+
export type { AgentSparkProps } from './primitives/AgentSpark.js';
|
|
11
|
+
export { AGENT_STAGGER_CAP_MS, AGENT_STAGGER_MS, AgentEntrance, agentStaggerDelay, loopAttributes, useAgentLoop, useSwapTransition } from './motion/agent-motion.js';
|
|
12
|
+
export type { AgentEntranceKind, AgentEntranceProps } from './motion/agent-motion.js';
|
|
13
|
+
export * from '@wzrhine/agent-core';
|
|
14
|
+
export { AgentShell, useAgentContextPresentation, useAgentShell } from './components/shell/AgentShell.js';
|
|
15
|
+
export type { AgentContextPresentation, AgentShellContextValue, AgentShellLayout, AgentShellOpenReason, AgentShellProps } from './components/shell/AgentShell.js';
|
|
16
|
+
export { ResizeHandle } from './components/shell/ResizeHandle.js';
|
|
17
|
+
export type { ResizeHandleProps } from './components/shell/ResizeHandle.js';
|
|
18
|
+
export { AgentHeader } from './components/shell/AgentHeader.js';
|
|
19
|
+
export type { AgentHeaderBadge, AgentHeaderProps } from './components/shell/AgentHeader.js';
|
|
20
|
+
export { AgentSidePane } from './components/shell/AgentSidePane.js';
|
|
21
|
+
export type { AgentSidePaneProps, AgentSidePaneSection } from './components/shell/AgentSidePane.js';
|
|
22
|
+
export { AgentEmptyState, AgentWorkspaceEmpty } from './components/shell/AgentEmptyState.js';
|
|
23
|
+
export type { AgentEmptyStateProps } from './components/shell/AgentEmptyState.js';
|
|
24
|
+
export { ConversationList } from './components/conversation/ConversationList.js';
|
|
25
|
+
export type { ConversationListProps } from './components/conversation/ConversationList.js';
|
|
26
|
+
export { ConversationRow } from './components/conversation/ConversationRow.js';
|
|
27
|
+
export type { ConversationRowProps } from './components/conversation/ConversationRow.js';
|
|
28
|
+
export type { AgentShellMessages } from './provider/messages/shell.js';
|
|
29
|
+
export { FOLLOW_THRESHOLD_PX, MessageList } from './components/message/MessageList.js';
|
|
30
|
+
export type { MessageListHandle, MessageListProps } from './components/message/MessageList.js';
|
|
31
|
+
export { JumpToLatest } from './components/message/JumpToLatest.js';
|
|
32
|
+
export type { JumpToLatestProps } from './components/message/JumpToLatest.js';
|
|
33
|
+
export { AgentMessage, messagePlainText } from './components/message/AgentMessage.js';
|
|
34
|
+
export type { AgentMessagePartHandlers, AgentMessageProps } from './components/message/AgentMessage.js';
|
|
35
|
+
export { ArtifactFallback, MessageErrorNotice, MessagePart, ToolFallback, UnsupportedPart } from './components/message/MessagePart.js';
|
|
36
|
+
export type { MessagePartProps } from './components/message/MessagePart.js';
|
|
37
|
+
export type { ArtifactRenderer, CodePart, CustomPart, MarkdownRenderContext, MessagePartRenderers, ToolRenderer } from './components/message/renderers.js';
|
|
38
|
+
export { CodeBlock } from './components/message/CodeBlock.js';
|
|
39
|
+
export type { CodeBlockProps } from './components/message/CodeBlock.js';
|
|
40
|
+
export { ThinkingBlock } from './components/message/ThinkingBlock.js';
|
|
41
|
+
export type { ThinkingBlockProps } from './components/message/ThinkingBlock.js';
|
|
42
|
+
export { CitationChip } from './components/message/CitationChip.js';
|
|
43
|
+
export type { CitationChipProps } from './components/message/CitationChip.js';
|
|
44
|
+
export { MessageActions } from './components/message/MessageActions.js';
|
|
45
|
+
export type { MessageActionCapabilities, MessageActionKey, MessageActionsProps, MessageFeedback } from './components/message/MessageActions.js';
|
|
46
|
+
export { RunDetails, hasRunDetails } from './components/message/RunDetails.js';
|
|
47
|
+
export type { RunDetailsProps } from './components/message/RunDetails.js';
|
|
48
|
+
export { DIGEST_LENGTH, SkillUseList } from './components/message/SkillUseList.js';
|
|
49
|
+
export type { SkillUseListProps } from './components/message/SkillUseList.js';
|
|
50
|
+
export { COPY_FEEDBACK_MS } from './components/message/use-copy.js';
|
|
51
|
+
export type { CopyHandler, CopyState } from './components/message/use-copy.js';
|
|
52
|
+
export { AgentProcess } from './components/process/AgentProcess.js';
|
|
53
|
+
export type { AgentProcessProps } from './components/process/AgentProcess.js';
|
|
54
|
+
export { RunStatus } from './components/process/RunStatus.js';
|
|
55
|
+
export type { RunStatusProps } from './components/process/RunStatus.js';
|
|
56
|
+
export { ToolRecord } from './components/tools/ToolRecord.js';
|
|
57
|
+
export type { ToolRecordProps } from './components/tools/ToolRecord.js';
|
|
58
|
+
export { ToolActivity, orderTools } from './components/tools/ToolActivity.js';
|
|
59
|
+
export type { ToolActivityProps, ToolRowSharedProps } from './components/tools/ToolActivity.js';
|
|
60
|
+
export { CodeModeToolTree, ScriptDisclosure, childOutcome } from './components/tools/CodeModeToolTree.js';
|
|
61
|
+
export type { CodeModeToolTreeProps } from './components/tools/CodeModeToolTree.js';
|
|
62
|
+
export { ToolOutput } from './components/tools/ToolOutput.js';
|
|
63
|
+
export type { ToolOutputProps } from './components/tools/ToolOutput.js';
|
|
64
|
+
export { ChunkPager } from './components/tools/ChunkPager.js';
|
|
65
|
+
export type { ChunkPagerActions, ChunkPagerProps } from './components/tools/ChunkPager.js';
|
|
66
|
+
export { ToolHistory, useStableOrder } from './components/tools/ToolHistory.js';
|
|
67
|
+
export type { ToolHistoryProps } from './components/tools/ToolHistory.js';
|
|
68
|
+
export { DiffPreview, DiffStats, DiffStatusPill, MultiFileDiff, resolveDiff } from './components/tools/DiffPreview.js';
|
|
69
|
+
export type { DiffPreviewProps, MultiFileDiffProps } from './components/tools/DiffPreview.js';
|
|
70
|
+
export { ApplyPatchDetail, EditFileDetail, FileReadDetail, FileWriteDetail, GenericToolDetail, MCPExecuteDetail, ManageFilesDetail, NativeModelDetail, QuestionToolDetail, RunCommandDetail, SubagentToolDetail, ToolDetail } from './components/tools/ToolDetails.js';
|
|
71
|
+
export type { ApplyPatchDetailProps, EditFileDetailProps, FileReadDetailProps, FileWriteDetailProps, GenericToolDetailProps, MCPExecuteDetailProps, ManageFilesDetailProps, NativeModelDetailProps, QuestionToolDetailProps, RunCommandDetailProps, SubagentToolDetailProps, ToolDetailActions, ToolDetailProps } from './components/tools/ToolDetails.js';
|
|
72
|
+
export { ToolCategoryChip, ToolStatusPill } from './components/tools/shared.js';
|
|
73
|
+
export { Composer } from './components/composer/Composer.js';
|
|
74
|
+
export type { ComposerProps } from './components/composer/Composer.js';
|
|
75
|
+
export { ComposerInput } from './components/composer/ComposerInput.js';
|
|
76
|
+
export type { ComposerInputHandle, ComposerInputProps, ComposerSelection, ComposerTokenKind } from './components/composer/ComposerInput.js';
|
|
77
|
+
export { MentionMenu } from './components/composer/MentionMenu.js';
|
|
78
|
+
export type { MentionMenuProps } from './components/composer/MentionMenu.js';
|
|
79
|
+
export { SlashCommandMenu } from './components/composer/SlashCommandMenu.js';
|
|
80
|
+
export type { SlashCommandMenuProps } from './components/composer/SlashCommandMenu.js';
|
|
81
|
+
export { AttachmentList } from './components/composer/AttachmentList.js';
|
|
82
|
+
export type { AttachmentListProps } from './components/composer/AttachmentList.js';
|
|
83
|
+
export { SendStopButton } from './components/composer/SendStopButton.js';
|
|
84
|
+
export type { SendStopButtonProps } from './components/composer/SendStopButton.js';
|
|
85
|
+
export { ModelPicker, normalizeEfforts } from './components/composer/ModelPicker.js';
|
|
86
|
+
export type { ModelPickerProps } from './components/composer/ModelPicker.js';
|
|
87
|
+
export { PermissionPicker } from './components/composer/PermissionPicker.js';
|
|
88
|
+
export type { PermissionPickerProps } from './components/composer/PermissionPicker.js';
|
|
89
|
+
export { SkillPicker } from './components/composer/SkillPicker.js';
|
|
90
|
+
export type { SkillOption, SkillPickerProps } from './components/composer/SkillPicker.js';
|
|
91
|
+
export { ReferencePicker } from './components/composer/ReferencePicker.js';
|
|
92
|
+
export type { ReferenceOption, ReferencePickerProps } from './components/composer/ReferencePicker.js';
|
|
93
|
+
export { ComposerNotice } from './components/composer/ComposerNotice.js';
|
|
94
|
+
export type { ComposerNoticeAction, ComposerNoticeProps, ComposerNoticeTone } from './components/composer/ComposerNotice.js';
|
|
95
|
+
export { defaultMentionTokenName, drillQuery, filterCommandOptions, filterMentionOptions, moveActiveIndex, orderCommandOptions, removeTokens, resolveSendStop, splitMentionQuery, } from './components/composer/composer-utils.js';
|
|
96
|
+
export type { SendStopInput, SendStopResolved, SendStopState } from './components/composer/composer-utils.js';
|
|
97
|
+
export type { AgentComposerMessages } from './provider/messages/composer.js';
|
|
98
|
+
export { ApprovalPanel } from './components/intervention/ApprovalPanel.js';
|
|
99
|
+
export type { ApprovalPanelProps } from './components/intervention/ApprovalPanel.js';
|
|
100
|
+
export { QuestionnaireCard } from './components/intervention/QuestionnaireCard.js';
|
|
101
|
+
export type { QuestionnaireCardHandle, QuestionnaireCardProps, QuestionRenderContext } from './components/intervention/QuestionnaireCard.js';
|
|
102
|
+
export { answerState, answerText, isChoiceQuestion, isKnownQuestionKind, isOverLimit, isQuestionOptional, normalizeAnswers } from './components/intervention/questionnaire-answers.js';
|
|
103
|
+
export type { QuestionAnswerState } from './components/intervention/questionnaire-answers.js';
|
|
104
|
+
export { ErrorRecoveryNotice } from './components/intervention/ErrorRecoveryNotice.js';
|
|
105
|
+
export type { ErrorRecoveryNoticeProps } from './components/intervention/ErrorRecoveryNotice.js';
|
|
106
|
+
export { InterventionDock } from './components/intervention/InterventionDock.js';
|
|
107
|
+
export type { InterventionDockProps } from './components/intervention/InterventionDock.js';
|
|
108
|
+
export { GrantList } from './components/intervention/GrantList.js';
|
|
109
|
+
export type { GrantListProps } from './components/intervention/GrantList.js';
|
|
110
|
+
export type { AgentInterventionMessages } from './provider/messages/intervention.js';
|
|
111
|
+
export { PersistentTerminal, TerminalTabs, isTerminalReadOnly } from './components/workspace/PersistentTerminal.js';
|
|
112
|
+
export type { PersistentTerminalProps, TerminalTabsProps } from './components/workspace/PersistentTerminal.js';
|
|
113
|
+
export { TerminalList, TerminalRow, terminalGroup } from './components/workspace/TerminalRow.js';
|
|
114
|
+
export type { TerminalListProps, TerminalRowProps } from './components/workspace/TerminalRow.js';
|
|
115
|
+
export { SubAgentCard, SubAgentList, subagentSparkPhase } from './components/workspace/SubAgentCard.js';
|
|
116
|
+
export type { SubAgentCardProps, SubAgentListProps } from './components/workspace/SubAgentCard.js';
|
|
117
|
+
export { ContextUsage } from './components/workspace/ContextUsage.js';
|
|
118
|
+
export type { ContextUsageProps, ContextUsageVariant } from './components/workspace/ContextUsage.js';
|
|
119
|
+
export { PinnedSummary } from './components/workspace/PinnedSummary.js';
|
|
120
|
+
export type { PinnedSummaryProps } from './components/workspace/PinnedSummary.js';
|
|
121
|
+
export { RunOverview } from './components/workspace/RunOverview.js';
|
|
122
|
+
export type { RunOverviewFact, RunOverviewProps, RunOverviewSection } from './components/workspace/RunOverview.js';
|
|
123
|
+
export { ActivityLedger, orderLedger } from './components/workspace/ActivityLedger.js';
|
|
124
|
+
export type { ActivityLedgerProps } from './components/workspace/ActivityLedger.js';
|
|
125
|
+
export { RunSummary } from './components/workspace/RunSummary.js';
|
|
126
|
+
export type { RunSummaryProps } from './components/workspace/RunSummary.js';
|
|
127
|
+
export { CompactionNotice } from './components/workspace/CompactionNotice.js';
|
|
128
|
+
export type { CompactionNoticeProps, CompactionPhase, CompactionStatus } from './components/workspace/CompactionNotice.js';
|
|
129
|
+
export { ArtifactCard, ArtifactList, artifactKindIcon } from './components/artifact/ArtifactCard.js';
|
|
130
|
+
export type { ArtifactCardProps, ArtifactListProps } from './components/artifact/ArtifactCard.js';
|
|
131
|
+
export { FilePreview, pathCrumbs } from './components/artifact/FilePreview.js';
|
|
132
|
+
export type { FileOpenTarget, FilePreviewProps, FilePreviewZoom } from './components/artifact/FilePreview.js';
|
|
133
|
+
export { FilePreviewTabs } from './components/artifact/FilePreviewTabs.js';
|
|
134
|
+
export type { FilePreviewTab, FilePreviewTabsProps } from './components/artifact/FilePreviewTabs.js';
|
|
135
|
+
export type { AgentWorkspaceMessages, LedgerFilterKey, TerminalGroupKey } from './provider/messages/workspace.js';
|
|
136
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,SAAS,EAAE,kBAAkB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAChJ,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAGlI,OA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zrhine/agent: Agent UI components (ADR-0010 … ADR-0012). View-models in (`@wzrhine/agent-core`),
|
|
2
|
+
// actions out; no runtime, transport, cache or SDK dependency. Styles are opt-in via
|
|
3
|
+
// `@wzrhine/agent/styles.css`; this entry has no CSS side effects.
|
|
4
|
+
// ---------- provider & copy ----------
|
|
5
|
+
export { AgentMessagesProvider, agentEnUS, agentZhCN, mergeAgentMessages, useAgentFormat, useAgentMessages } from './provider/AgentMessages.js';
|
|
6
|
+
// ---------- primitives & motion ----------
|
|
7
|
+
export { AgentIcon } from './primitives/icons.js';
|
|
8
|
+
export { StatusGlyph } from './primitives/StatusGlyph.js';
|
|
9
|
+
export { AgentStatus, statusProps } from './primitives/AgentStatus.js';
|
|
10
|
+
export { AgentSpark } from './primitives/AgentSpark.js';
|
|
11
|
+
export { AGENT_STAGGER_CAP_MS, AGENT_STAGGER_MS, AgentEntrance, agentStaggerDelay, loopAttributes, useAgentLoop, useSwapTransition } from './motion/agent-motion.js';
|
|
12
|
+
// ---------- contracts (re-exported for convenience) ----------
|
|
13
|
+
export * from '@wzrhine/agent-core';
|
|
14
|
+
// ---------- shell & conversation ----------
|
|
15
|
+
export { AgentShell, useAgentContextPresentation, useAgentShell } from './components/shell/AgentShell.js';
|
|
16
|
+
export { ResizeHandle } from './components/shell/ResizeHandle.js';
|
|
17
|
+
export { AgentHeader } from './components/shell/AgentHeader.js';
|
|
18
|
+
export { AgentSidePane } from './components/shell/AgentSidePane.js';
|
|
19
|
+
export { AgentEmptyState, AgentWorkspaceEmpty } from './components/shell/AgentEmptyState.js';
|
|
20
|
+
export { ConversationList } from './components/conversation/ConversationList.js';
|
|
21
|
+
export { ConversationRow } from './components/conversation/ConversationRow.js';
|
|
22
|
+
// ---------- message, thinking & process ----------
|
|
23
|
+
export { FOLLOW_THRESHOLD_PX, MessageList } from './components/message/MessageList.js';
|
|
24
|
+
export { JumpToLatest } from './components/message/JumpToLatest.js';
|
|
25
|
+
export { AgentMessage, messagePlainText } from './components/message/AgentMessage.js';
|
|
26
|
+
export { ArtifactFallback, MessageErrorNotice, MessagePart, ToolFallback, UnsupportedPart } from './components/message/MessagePart.js';
|
|
27
|
+
export { CodeBlock } from './components/message/CodeBlock.js';
|
|
28
|
+
export { ThinkingBlock } from './components/message/ThinkingBlock.js';
|
|
29
|
+
export { CitationChip } from './components/message/CitationChip.js';
|
|
30
|
+
export { MessageActions } from './components/message/MessageActions.js';
|
|
31
|
+
export { RunDetails, hasRunDetails } from './components/message/RunDetails.js';
|
|
32
|
+
export { DIGEST_LENGTH, SkillUseList } from './components/message/SkillUseList.js';
|
|
33
|
+
export { COPY_FEEDBACK_MS } from './components/message/use-copy.js';
|
|
34
|
+
export { AgentProcess } from './components/process/AgentProcess.js';
|
|
35
|
+
export { RunStatus } from './components/process/RunStatus.js';
|
|
36
|
+
// ---------- tools & execution ----------
|
|
37
|
+
export { ToolRecord } from './components/tools/ToolRecord.js';
|
|
38
|
+
export { ToolActivity, orderTools } from './components/tools/ToolActivity.js';
|
|
39
|
+
export { CodeModeToolTree, ScriptDisclosure, childOutcome } from './components/tools/CodeModeToolTree.js';
|
|
40
|
+
export { ToolOutput } from './components/tools/ToolOutput.js';
|
|
41
|
+
export { ChunkPager } from './components/tools/ChunkPager.js';
|
|
42
|
+
export { ToolHistory, useStableOrder } from './components/tools/ToolHistory.js';
|
|
43
|
+
export { DiffPreview, DiffStats, DiffStatusPill, MultiFileDiff, resolveDiff } from './components/tools/DiffPreview.js';
|
|
44
|
+
export { ApplyPatchDetail, EditFileDetail, FileReadDetail, FileWriteDetail, GenericToolDetail, MCPExecuteDetail, ManageFilesDetail, NativeModelDetail, QuestionToolDetail, RunCommandDetail, SubagentToolDetail, ToolDetail } from './components/tools/ToolDetails.js';
|
|
45
|
+
export { ToolCategoryChip, ToolStatusPill } from './components/tools/shared.js';
|
|
46
|
+
// ---------- composer & selection ----------
|
|
47
|
+
export { Composer } from './components/composer/Composer.js';
|
|
48
|
+
export { ComposerInput } from './components/composer/ComposerInput.js';
|
|
49
|
+
export { MentionMenu } from './components/composer/MentionMenu.js';
|
|
50
|
+
export { SlashCommandMenu } from './components/composer/SlashCommandMenu.js';
|
|
51
|
+
export { AttachmentList } from './components/composer/AttachmentList.js';
|
|
52
|
+
export { SendStopButton } from './components/composer/SendStopButton.js';
|
|
53
|
+
export { ModelPicker, normalizeEfforts } from './components/composer/ModelPicker.js';
|
|
54
|
+
export { PermissionPicker } from './components/composer/PermissionPicker.js';
|
|
55
|
+
export { SkillPicker } from './components/composer/SkillPicker.js';
|
|
56
|
+
export { ReferencePicker } from './components/composer/ReferencePicker.js';
|
|
57
|
+
export { ComposerNotice } from './components/composer/ComposerNotice.js';
|
|
58
|
+
export { defaultMentionTokenName, drillQuery, filterCommandOptions, filterMentionOptions, moveActiveIndex, orderCommandOptions, removeTokens, resolveSendStop, splitMentionQuery, } from './components/composer/composer-utils.js';
|
|
59
|
+
// ---------- approval & questionnaire ----------
|
|
60
|
+
export { ApprovalPanel } from './components/intervention/ApprovalPanel.js';
|
|
61
|
+
export { QuestionnaireCard } from './components/intervention/QuestionnaireCard.js';
|
|
62
|
+
export { answerState, answerText, isChoiceQuestion, isKnownQuestionKind, isOverLimit, isQuestionOptional, normalizeAnswers } from './components/intervention/questionnaire-answers.js';
|
|
63
|
+
export { ErrorRecoveryNotice } from './components/intervention/ErrorRecoveryNotice.js';
|
|
64
|
+
export { InterventionDock } from './components/intervention/InterventionDock.js';
|
|
65
|
+
export { GrantList } from './components/intervention/GrantList.js';
|
|
66
|
+
// ---------- terminals, sub-agents, context & artifacts ----------
|
|
67
|
+
export { PersistentTerminal, TerminalTabs, isTerminalReadOnly } from './components/workspace/PersistentTerminal.js';
|
|
68
|
+
export { TerminalList, TerminalRow, terminalGroup } from './components/workspace/TerminalRow.js';
|
|
69
|
+
export { SubAgentCard, SubAgentList, subagentSparkPhase } from './components/workspace/SubAgentCard.js';
|
|
70
|
+
export { ContextUsage } from './components/workspace/ContextUsage.js';
|
|
71
|
+
export { PinnedSummary } from './components/workspace/PinnedSummary.js';
|
|
72
|
+
export { RunOverview } from './components/workspace/RunOverview.js';
|
|
73
|
+
export { ActivityLedger, orderLedger } from './components/workspace/ActivityLedger.js';
|
|
74
|
+
export { RunSummary } from './components/workspace/RunSummary.js';
|
|
75
|
+
export { CompactionNotice } from './components/workspace/CompactionNotice.js';
|
|
76
|
+
export { ArtifactCard, ArtifactList, artifactKindIcon } from './components/artifact/ArtifactCard.js';
|
|
77
|
+
export { FilePreview, pathCrumbs } from './components/artifact/FilePreview.js';
|
|
78
|
+
export { FilePreviewTabs } from './components/artifact/FilePreviewTabs.js';
|
|
79
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,qFAAqF;AACrF,mEAAmE;AAEnE,wCAAwC;AACxC,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,SAAS,EAAE,kBAAkB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGhJ,4CAA4C;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGrK,gEAAgE;AAChE,cAAc,qBAAqB,CAAC;AAEpC,6CAA6C;AAC7C,OAAO,EAAE,UAAU,EAAE,2BAA2B,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAE1G,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,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AsC,CAAC;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Transition } from 'motion/react';
|
|
3
|
+
import type { MotionLifecycle } from '@wzrhine/react';
|
|
4
|
+
/** First-entrance kinds. `message` = new message; `row` = tool / ledger row; `card` = intervention card. */
|
|
5
|
+
export type AgentEntranceKind = 'message' | 'row' | 'card';
|
|
6
|
+
/** Stagger step and cap for rows that arrive together (MOTION.md: 20–30ms per item, capped). */
|
|
7
|
+
export declare const AGENT_STAGGER_MS = 24;
|
|
8
|
+
export declare const AGENT_STAGGER_CAP_MS = 120;
|
|
9
|
+
export declare function agentStaggerDelay(index: number, reduced: boolean, speed?: number): number;
|
|
10
|
+
type MotionConflictingProps = 'onDrag' | 'onDragStart' | 'onDragEnd' | 'onAnimationStart' | 'onAnimationEnd' | 'onAnimationIteration';
|
|
11
|
+
declare const tags: {
|
|
12
|
+
readonly div: import("motion/react").ForwardRefComponent<HTMLDivElement, import("motion/react").HTMLMotionProps<"div">>;
|
|
13
|
+
readonly li: import("motion/react").ForwardRefComponent<HTMLLIElement, import("motion/react").HTMLMotionProps<"li">>;
|
|
14
|
+
readonly article: import("motion/react").ForwardRefComponent<HTMLElement, import("motion/react").HTMLMotionProps<"article">>;
|
|
15
|
+
readonly section: import("motion/react").ForwardRefComponent<HTMLElement, import("motion/react").HTMLMotionProps<"section">>;
|
|
16
|
+
};
|
|
17
|
+
export type AgentEntranceProps = Omit<React.HTMLAttributes<HTMLElement>, MotionConflictingProps> & {
|
|
18
|
+
kind?: AgentEntranceKind;
|
|
19
|
+
/** Animate this mount. Pass `false` for items present on first render or restored from history. */
|
|
20
|
+
animate?: boolean;
|
|
21
|
+
/** Position among items that arrived together (stagger). */
|
|
22
|
+
index?: number;
|
|
23
|
+
as?: keyof typeof tags;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Plays a single first entrance and never again: later re-renders (streaming text, status changes)
|
|
27
|
+
* do not replay it, because the decision is frozen at mount. Content is visible from the first
|
|
28
|
+
* frame under reduced motion (no transform, ≤ fast opacity fade).
|
|
29
|
+
*/
|
|
30
|
+
export declare const AgentEntrance: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, MotionConflictingProps> & {
|
|
31
|
+
kind?: AgentEntranceKind;
|
|
32
|
+
/** Animate this mount. Pass `false` for items present on first render or restored from history. */
|
|
33
|
+
animate?: boolean;
|
|
34
|
+
/** Position among items that arrived together (stagger). */
|
|
35
|
+
index?: number;
|
|
36
|
+
as?: keyof typeof tags;
|
|
37
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
38
|
+
/**
|
|
39
|
+
* Loop lifecycle for agent activity indicators (AgentSpark, breathing dots, shimmer). Runs only
|
|
40
|
+
* while `active`, the page is visible, the element is on screen and motion is not reduced.
|
|
41
|
+
* Returns the lifecycle plus a ref to attach to the animated element.
|
|
42
|
+
*/
|
|
43
|
+
export declare function useAgentLoop<T extends Element>(active: boolean): {
|
|
44
|
+
ref: React.RefObject<T | null>;
|
|
45
|
+
lifecycle: MotionLifecycle;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Data attributes that drive CSS loops: `data-loop="running" | "paused"` and the pause reason.
|
|
49
|
+
* CSS only animates `[data-loop='running']`, so hidden pages and off-screen items cost nothing.
|
|
50
|
+
*/
|
|
51
|
+
export declare function loopAttributes(lifecycle: MotionLifecycle): {
|
|
52
|
+
'data-loop': 'running' | 'paused' | 'idle';
|
|
53
|
+
'data-loop-paused'?: string;
|
|
54
|
+
};
|
|
55
|
+
/** Cross-fade transition for two stacked icons (send ↔ stop). Reduced: instant swap. */
|
|
56
|
+
export declare function useSwapTransition(): {
|
|
57
|
+
enter: Transition;
|
|
58
|
+
exit: Transition;
|
|
59
|
+
reduced: boolean;
|
|
60
|
+
};
|
|
61
|
+
export {};
|
|
62
|
+
//# sourceMappingURL=agent-motion.d.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,EAAE,OAAO,GAAG;IAAE,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAAC,SAAS,EAAE,eAAe,CAAA;CAAE,CAI/H;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,eAAe,GAAG;IAAE,WAAW,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IAAC,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,CAItI;AAED,wFAAwF;AACxF,wBAAgB,iBAAiB,IAAI;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAG7F"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { motion } from 'motion/react';
|
|
5
|
+
import { useMotionLifecycle, useRhineMotion } from '@wzrhine/react';
|
|
6
|
+
const entranceSpec = {
|
|
7
|
+
message: { y: 6, scale: 1, name: 'base' },
|
|
8
|
+
row: { y: 4, scale: 1, name: 'fast' },
|
|
9
|
+
card: { y: 8, scale: 0.985, name: 'panel' },
|
|
10
|
+
};
|
|
11
|
+
/** Stagger step and cap for rows that arrive together (MOTION.md: 20–30ms per item, capped). */
|
|
12
|
+
export const AGENT_STAGGER_MS = 24;
|
|
13
|
+
export const AGENT_STAGGER_CAP_MS = 120;
|
|
14
|
+
export function agentStaggerDelay(index, reduced, speed = 1) {
|
|
15
|
+
if (reduced || index <= 0)
|
|
16
|
+
return 0;
|
|
17
|
+
return Math.min(index * AGENT_STAGGER_MS, AGENT_STAGGER_CAP_MS) / 1000 / speed;
|
|
18
|
+
}
|
|
19
|
+
const tags = { div: motion.div, li: motion.li, article: motion.article, section: motion.section };
|
|
20
|
+
/**
|
|
21
|
+
* Plays a single first entrance and never again: later re-renders (streaming text, status changes)
|
|
22
|
+
* do not replay it, because the decision is frozen at mount. Content is visible from the first
|
|
23
|
+
* frame under reduced motion (no transform, ≤ fast opacity fade).
|
|
24
|
+
*/
|
|
25
|
+
export const AgentEntrance = React.forwardRef(function AgentEntrance({ kind = 'row', animate = true, index = 0, as = 'div', children, ...rest }, ref) {
|
|
26
|
+
const { reduced, speed, resolve } = useRhineMotion();
|
|
27
|
+
const [play] = React.useState(animate);
|
|
28
|
+
const spec = entranceSpec[kind];
|
|
29
|
+
const Comp = tags[as];
|
|
30
|
+
const delay = agentStaggerDelay(index, reduced, speed);
|
|
31
|
+
const opacity = { ...resolve('opacity', spec.name), delay };
|
|
32
|
+
const move = { ...resolve('transform', spec.name), delay };
|
|
33
|
+
return (_jsx(Comp, { ...rest, ref: ref, "data-agent-entrance": kind, initial: play ? { opacity: 0, y: reduced ? 0 : spec.y, scale: reduced ? 1 : spec.scale } : false, animate: { opacity: 1, y: 0, scale: 1 }, transition: { opacity, y: move, scale: move }, children: children }));
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* Loop lifecycle for agent activity indicators (AgentSpark, breathing dots, shimmer). Runs only
|
|
37
|
+
* while `active`, the page is visible, the element is on screen and motion is not reduced.
|
|
38
|
+
* Returns the lifecycle plus a ref to attach to the animated element.
|
|
39
|
+
*/
|
|
40
|
+
export function useAgentLoop(active) {
|
|
41
|
+
const ref = React.useRef(null);
|
|
42
|
+
const lifecycle = useMotionLifecycle({ active, viewportRef: ref });
|
|
43
|
+
return { ref, lifecycle };
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Data attributes that drive CSS loops: `data-loop="running" | "paused"` and the pause reason.
|
|
47
|
+
* CSS only animates `[data-loop='running']`, so hidden pages and off-screen items cost nothing.
|
|
48
|
+
*/
|
|
49
|
+
export function loopAttributes(lifecycle) {
|
|
50
|
+
if (lifecycle.running)
|
|
51
|
+
return { 'data-loop': 'running' };
|
|
52
|
+
if (lifecycle.pauseReason)
|
|
53
|
+
return { 'data-loop': 'paused', 'data-loop-paused': lifecycle.pauseReason };
|
|
54
|
+
return { 'data-loop': 'idle' };
|
|
55
|
+
}
|
|
56
|
+
/** Cross-fade transition for two stacked icons (send ↔ stop). Reduced: instant swap. */
|
|
57
|
+
export function useSwapTransition() {
|
|
58
|
+
const { reduced, resolve } = useRhineMotion();
|
|
59
|
+
return { enter: resolve('opacity', 'base'), exit: resolve('opacity', 'fast'), reduced };
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=agent-motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-motion.js","sourceRoot":"","sources":["../../src/motion/agent-motion.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAmBpE,MAAM,YAAY,GAA6F;IAC7G,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;IACzC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;IACrC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE;CAC5C,CAAC;AAEF,gGAAgG;AAChG,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AACnC,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAExC,MAAM,UAAU,iBAAiB,CAAC,KAAa,EAAE,OAAgB,EAAE,KAAK,GAAG,CAAC;IAC1E,IAAI,OAAO,IAAI,KAAK,IAAI,CAAC;QAAE,OAAO,CAAC,CAAC;IACpC,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK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AE,CAAC;AAC1F,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SparkPhase } from '@wzrhine/agent-core';
|
|
3
|
+
/**
|
|
4
|
+
* AgentSpark (atlas 25): a 3 × 3 dot matrix hinting at what the agent is doing. Purely visual
|
|
5
|
+
* (`aria-hidden`); the text next to it carries the status. Each phase has its own rhythm, all
|
|
6
|
+
* driven by CSS keyframes over `--rl-motion-loop` multiples. The loop runs only while the phase
|
|
7
|
+
* is active, the page is visible and the matrix is on screen (shared motion lifecycle); reduced
|
|
8
|
+
* motion and settled phases render one static frame that still differs per phase.
|
|
9
|
+
*/
|
|
10
|
+
export type AgentSparkProps = Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> & {
|
|
11
|
+
phase: SparkPhase;
|
|
12
|
+
size?: 'sm' | 'md';
|
|
13
|
+
/** Force the static frame (e.g. twelve sparks in a dense list). Default: animate when active. */
|
|
14
|
+
animate?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function AgentSpark({ phase, size, animate, className, ...rest }: AgentSparkProps): React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=AgentSpark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentSpark.d.ts","sourceRoot":"","sources":["../../src/primitives/AgentSpark.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItD;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,GAAG;IACtF,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,iGAAiG;IACjG,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAIF,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,IAAW,EAAE,OAAc,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,qBAkBrG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cx } from '../utils/cx.js';
|
|
4
|
+
import { loopAttributes, useAgentLoop } from '../motion/agent-motion.js';
|
|
5
|
+
const ACTIVE = ['thinking', 'responding', 'executing', 'waiting'];
|
|
6
|
+
export function AgentSpark({ phase, size = 'sm', animate = true, className, ...rest }) {
|
|
7
|
+
const active = animate && ACTIVE.includes(phase);
|
|
8
|
+
const { ref, lifecycle } = useAgentLoop(active);
|
|
9
|
+
return (_jsx("span", { ...rest, ref: ref, className: cx('rl-agent-spark', className), "aria-hidden": "true", "data-phase": phase, "data-size": size, ...loopAttributes(lifecycle), children: Array.from({ length: 9 }, (_, i) => (_jsx("i", { className: "rl-agent-spark__dot", "data-row": Math.floor(i / 3), "data-col": i % 3 }, i))) }));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=AgentSpark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentSpark.js","sourceRoot":"","sources":["../../src/primitives/AgentSpark.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAgBzE,MAAM,MAAM,GAAiB,CAAC,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;AAEhF,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAmB;IACpG,MAAM,MAAM,GAAG,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjD,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,YAAY,CAAkB,MAAM,CAAC,CAAC;IACjE,OAAO,CACL,kBACM,IAAI,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,gBAAgB,EAAE,SAAS,CAAC,iBAC9B,MAAM,gBACN,KAAK,eACN,IAAI,KACX,cAAc,CAAC,SAAS,CAAC,YAE5B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnC,YAAW,SAAS,EAAC,qBAAqB,cAAW,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,cAAY,CAAC,GAAG,CAAC,IAA/E,CAAC,CAAkF,CAC5F,CAAC,GACG,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { AgentTone, StatusGlyphName, StatusMeta } from '@wzrhine/agent-core';
|
|
3
|
+
/**
|
|
4
|
+
* The status pill shared by every agent component: glyph + label (+ optional meta such as an
|
|
5
|
+
* elapsed time). Tone is never the only signal. Not a live region by itself: components that
|
|
6
|
+
* announce changes wrap it in their own `role="status"` with a throttled text.
|
|
7
|
+
*/
|
|
8
|
+
export type AgentStatusProps = Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> & {
|
|
9
|
+
glyph: StatusGlyphName;
|
|
10
|
+
tone: AgentTone;
|
|
11
|
+
label: React.ReactNode;
|
|
12
|
+
/** Secondary text after the label (elapsed time, count). */
|
|
13
|
+
meta?: React.ReactNode;
|
|
14
|
+
active?: boolean;
|
|
15
|
+
/** `pill` = tinted chip; `inline` = glyph + text without a frame. */
|
|
16
|
+
appearance?: 'pill' | 'inline';
|
|
17
|
+
size?: 'sm' | 'md';
|
|
18
|
+
};
|
|
19
|
+
export declare const AgentStatus: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
20
|
+
glyph: StatusGlyphName;
|
|
21
|
+
tone: AgentTone;
|
|
22
|
+
label: React.ReactNode;
|
|
23
|
+
/** Secondary text after the label (elapsed time, count). */
|
|
24
|
+
meta?: React.ReactNode;
|
|
25
|
+
active?: boolean;
|
|
26
|
+
/** `pill` = tinted chip; `inline` = glyph + text without a frame. */
|
|
27
|
+
appearance?: "pill" | "inline";
|
|
28
|
+
size?: "sm" | "md";
|
|
29
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
30
|
+
/** Convenience: render a status from a `StatusMeta` record plus its label. */
|
|
31
|
+
export declare function statusProps(meta: StatusMeta, label: React.ReactNode): Pick<AgentStatusProps, 'glyph' | 'tone' | 'label' | 'active'>;
|
|
32
|
+
//# sourceMappingURL=AgentStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentStatus.d.ts","sourceRoot":"","sources":["../../src/primitives/AgentStatus.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIlF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,GAAG;IACvF,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,WAAW;WAXf,eAAe;UAChB,SAAS;WACR,KAAK,CAAC,SAAS;IACtB,4DAA4D;WACrD,KAAK,CAAC,SAAS;aACb,OAAO;IAChB,qEAAqE;iBACxD,MAAM,GAAG,QAAQ;WACvB,IAAI,GAAG,IAAI;yCAsBlB,CAAC;AAEH,8EAA8E;AAC9E,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC,CAEnI"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { cx } from '../utils/cx.js';
|
|
5
|
+
import { StatusGlyph } from './StatusGlyph.js';
|
|
6
|
+
export const AgentStatus = React.forwardRef(function AgentStatus({ glyph, tone, label, meta, active, appearance = 'pill', size = 'sm', className, ...rest }, ref) {
|
|
7
|
+
return (_jsxs("span", { ...rest, ref: ref, className: cx('rl-agent-status', className), "data-tone": tone, "data-appearance": appearance, "data-size": size, "data-active": active || undefined, children: [_jsx(StatusGlyph, { name: glyph, tone: tone, active: active, className: "rl-agent-status__glyph" }), _jsx("span", { className: "rl-agent-status__label", children: label }), meta != null && meta !== false && _jsx("span", { className: "rl-agent-status__meta", children: meta })] }));
|
|
8
|
+
});
|
|
9
|
+
/** Convenience: render a status from a `StatusMeta` record plus its label. */
|
|
10
|
+
export function statusProps(meta, label) {
|
|
11
|
+
return { glyph: meta.glyph, tone: meta.tone, label, active: meta.active };
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=AgentStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentStatus.js","sourceRoot":"","sources":["../../src/primitives/AgentStatus.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;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VGProps<SVGSVGElement>, 'children'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Built-in glyph name. Any other string is accepted together with `children` (ADR-0013 §3):
|
|
6
|
+
* the children become the glyph content and `data-glyph` carries the custom name.
|
|
7
|
+
*/
|
|
8
|
+
name: StatusGlyphName | (string & {});
|
|
9
|
+
tone?: AgentTone;
|
|
10
|
+
/** Ongoing activity: CSS adds a slow breathing halo (`data-loop` from the caller). */
|
|
11
|
+
active?: boolean;
|
|
12
|
+
/** Custom SVG inner nodes; win over the built-in glyph for `name`. */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export declare function StatusGlyph({ name, tone, active, className, children, ...rest }: StatusGlyphProps): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=StatusGlyph.d.ts.map
|