@ai-matrx/chat 0.5.0 → 0.5.3
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 +26 -0
- package/dist/action-requests/components/ActionRequestAnswerForm.js +313 -209
- package/dist/action-requests/components/ActionRequestInlineAnswer.js +9 -2
- package/dist/action-requests/components/ParkedOnPersonCard.js +17 -4
- package/dist/action-requests/hooks/useToolAction.js +25 -15
- package/dist/agent-copy/AlchemySurfaceBridge.js +2 -1
- package/dist/agent-copy/RichCopySplit.js +20 -15
- package/dist/agents/coding-session-reply/CodingReplyNotice.js +39 -14
- package/dist/agents/components/AutoSubmitForm.js +2 -1
- package/dist/agents/components/agent-widgets/AgentChatBubble.js +44 -32
- package/dist/agents/components/agent-widgets/AgentChatHistorySidebar.js +46 -27
- package/dist/agents/components/agent-widgets/AgentCompactModal.js +16 -13
- package/dist/agents/components/agent-widgets/AgentFlexiblePanel.js +11 -10
- package/dist/agents/components/agent-widgets/AgentFloatingChat.js +6 -5
- package/dist/agents/components/agent-widgets/AgentFullModal.js +15 -12
- package/dist/agents/components/agent-widgets/AgentInlineOverlay.js +40 -32
- package/dist/agents/components/agent-widgets/AgentPanelOverlay.js +11 -10
- package/dist/agents/components/agent-widgets/AgentSidebarOverlay.js +11 -10
- package/dist/agents/components/agent-widgets/AgentToastOverlay.js +107 -86
- package/dist/agents/components/agent-widgets/ChatCollapsible.js +51 -42
- package/dist/agents/components/agent-widgets/chat-assistant/AgentChatAssistant.js +43 -30
- package/dist/agents/components/agent-widgets/chat-assistant/AssistantCardStack.js +49 -41
- package/dist/agents/components/agent-widgets/chat-assistant/AssistantControlBar.js +59 -45
- package/dist/agents/components/agent-widgets/chat-assistant/AssistantMessageCard.js +21 -14
- package/dist/agents/components/agent-widgets/chat-assistant/ChatAssistantVariableInputs.js +87 -67
- package/dist/agents/components/agent-widgets/chat-assistant/CompactAssistantInput.js +91 -73
- package/dist/agents/components/agent-widgets/chat-assistant/StatusCard.js +8 -1
- package/dist/agents/components/agent-widgets/chat-assistant/UserMessageCard.js +5 -1
- package/dist/agents/components/agent-widgets/execution-gates/AgentGateInput.js +36 -35
- package/dist/agents/components/agent-widgets/execution-gates/PreExecutionCard.js +39 -27
- package/dist/agents/components/ambient-assistant/ScrollAssistantLauncher.js +3 -2
- package/dist/agents/components/ambient-assistant/ScrollAssistantLauncherImpl.js +117 -105
- package/dist/agents/components/ambient-assistant/ScrollVoiceAssistantLauncherImpl.js +193 -155
- package/dist/agents/components/chat/ChatConversationRoom.js +8 -7
- package/dist/agents/components/chat/ChatConversationSurface.js +5 -4
- package/dist/agents/components/chat/ChatHistorySidebar.js +2 -2
- package/dist/agents/components/chat/ChatIncognitoHeaderButton.js +3 -2
- package/dist/agents/components/chat/ChatIncognitoProvider.js +2 -1
- package/dist/agents/components/chat/ChatNewClient.js +37 -22
- package/dist/agents/components/chat/ChatNewHeader.js +4 -3
- package/dist/agents/components/chat/ChatRoomClient.js +36 -33
- package/dist/agents/components/chat/ChatRoomSkeleton.js +49 -32
- package/dist/agents/components/chat/ChatRunHeader.js +26 -18
- package/dist/agents/components/chat/ChatSidebarMenu.js +204 -183
- package/dist/agents/components/chat/ConversationAttachmentsChip.js +53 -29
- package/dist/agents/components/chat/ConversationPageMenu.js +39 -35
- package/dist/agents/components/chat/ConversationRecordsChip.js +28 -19
- package/dist/agents/components/chat/ConversationRoomNotice.js +18 -14
- package/dist/agents/components/chat/NewChatGreeting.js +29 -23
- package/dist/agents/components/chat/PinnedAgentsSection.js +58 -49
- package/dist/agents/components/chat/SandboxPanel.js +203 -147
- package/dist/agents/components/chat/sandbox-insight/SandboxActivityFeed.js +70 -39
- package/dist/agents/components/chat/sandbox-insight/SandboxCanvasBody.js +87 -67
- package/dist/agents/components/coming-soon/AgentComingSoonContent.js +22 -9
- package/dist/agents/components/context-items/ContextItemViewer.js +43 -12
- package/dist/agents/components/context-items/bodies/BookmarkReferenceBody.js +6 -5
- package/dist/agents/components/context-items/bodies/ContextInputBody.js +15 -5
- package/dist/agents/components/context-items/bodies/ContextLayerBodies.js +100 -61
- package/dist/agents/components/context-items/bodies/DataBody.js +3 -2
- package/dist/agents/components/context-items/bodies/EntityReferenceBody.js +26 -19
- package/dist/agents/components/context-items/bodies/GenericBody.js +7 -6
- package/dist/agents/components/context-items/bodies/MediaBody.js +39 -32
- package/dist/agents/components/context-items/bodies/NoteBody.js +2 -1
- package/dist/agents/components/context-items/bodies/ProcessedDocumentBody.js +7 -3
- package/dist/agents/components/context-items/bodies/ProcessedDocumentTitle.js +2 -1
- package/dist/agents/components/context-items/bodies/RemarkBody.js +3 -2
- package/dist/agents/components/context-items/bodies/ResourceSnapshotView.js +10 -3
- package/dist/agents/components/context-items/bodies/TaskBody.js +2 -1
- package/dist/agents/components/context-items/bodies/UnregisteredBody.js +2 -1
- package/dist/agents/components/context-items/bodies/WebpageBody.js +38 -24
- package/dist/agents/components/context-items/bodies/WorkingDocumentBody.js +3 -2
- package/dist/agents/components/context-policies-display/ContextPolicyChip.js +2 -1
- package/dist/agents/components/context-policies-display/ContextPolicyChipStrip.js +23 -16
- package/dist/agents/components/context-policies-display/ContextPolicyDetail.js +54 -29
- package/dist/agents/components/context-policies-display/ContextPolicyItemsPopover.js +51 -41
- package/dist/agents/components/context-policies-display/ContextPolicyTile.js +13 -7
- package/dist/agents/components/context-policies-display/ContextRulesPanel.js +19 -12
- package/dist/agents/components/context-policies-display/ContextValueBody.js +20 -17
- package/dist/agents/components/context-policies-display/MessageContextReceipt.js +71 -30
- package/dist/agents/components/context-policies-display/ValueCountPill.js +6 -5
- package/dist/agents/components/context-policies-display/knownContextValues.js +20 -16
- package/dist/agents/components/context-preview/AttachedContextSection.js +169 -85
- package/dist/agents/components/context-preview/ContextCompareView.js +413 -196
- package/dist/agents/components/context-preview/ContextPreviewPanel.js +220 -105
- package/dist/agents/components/context-preview/SystemItemsLine.js +27 -13
- package/dist/agents/components/context-preview/inspector/ContextInspector.js +63 -31
- package/dist/agents/components/context-preview/inspector/ContextParityLastRun.js +48 -12
- package/dist/agents/components/conversation-actions/conversationActionRegistry.js +6 -1
- package/dist/agents/components/conversation-actions/rename/ConversationRenameDialogHost.js +2 -1
- package/dist/agents/components/conversation-actions/rename/ConversationRenameDialogHostImpl.js +4 -3
- package/dist/agents/components/conversation-history/ConversationHistorySidebar.js +450 -358
- package/dist/agents/components/conversation-history/ConversationLaneToggles.js +30 -28
- package/dist/agents/components/conversation-history/ConversationPickerWindow.js +20 -19
- package/dist/agents/components/conversation-history/ConversationSearchStatus.js +19 -5
- package/dist/agents/components/conversation-history/ConversationSourceFilterTree.js +242 -184
- package/dist/agents/components/conversation-history/ConversationTrashSection.js +53 -36
- package/dist/agents/components/custom-agent/CustomAgentWindow.js +97 -62
- package/dist/agents/components/debug/RoutingPanel.js +58 -15
- package/dist/agents/components/debug/SandboxFileViewer.js +56 -38
- package/dist/agents/components/debug/SandboxInsightPanel.js +27 -2
- package/dist/agents/components/debug/StreamDebugFloating.js +12 -12
- package/dist/agents/components/debug/StreamDebugPanel.js +1012 -597
- package/dist/agents/components/inputs/AgentVariablesInline.js +200 -177
- package/dist/agents/components/inputs/BoundVariableChips.js +117 -76
- package/dist/agents/components/inputs/DataBoundVariableChips.js +36 -23
- package/dist/agents/components/inputs/PreExecutionAgentInput.js +20 -9
- package/dist/agents/components/inputs/RowChoicesButton.js +27 -21
- package/dist/agents/components/inputs/input-components/AudioVariableInput.js +2 -1
- package/dist/agents/components/inputs/input-components/CheckboxGroupInput.js +72 -63
- package/dist/agents/components/inputs/input-components/CurrencyVariableInput.js +36 -30
- package/dist/agents/components/inputs/input-components/DocumentVariableInput.js +2 -1
- package/dist/agents/components/inputs/input-components/ImageVariableInput.js +2 -1
- package/dist/agents/components/inputs/input-components/MediaVariableInput.js +177 -126
- package/dist/agents/components/inputs/input-components/NumberInput.js +52 -47
- package/dist/agents/components/inputs/input-components/PicklistVariableInput.js +11 -11
- package/dist/agents/components/inputs/input-components/PillToggleInput.js +2 -2
- package/dist/agents/components/inputs/input-components/RadioGroupInput.js +53 -43
- package/dist/agents/components/inputs/input-components/ScalarVariableInput.js +46 -39
- package/dist/agents/components/inputs/input-components/SelectInput.js +91 -74
- package/dist/agents/components/inputs/input-components/SliderInput.js +37 -30
- package/dist/agents/components/inputs/input-components/TableVariableInput.js +29 -23
- package/dist/agents/components/inputs/input-components/TextareaInput.js +3 -2
- package/dist/agents/components/inputs/input-components/ToggleInput.js +24 -22
- package/dist/agents/components/inputs/input-components/VariableInputComponent.js +53 -40
- package/dist/agents/components/inputs/input-components/VideoVariableInput.js +2 -1
- package/dist/agents/components/inputs/input-components/YoutubeVariableInput.js +29 -17
- package/dist/agents/components/inputs/resources/AttachedDocumentChip.js +83 -57
- package/dist/agents/components/inputs/resources/AttachedDocumentChips.js +68 -62
- package/dist/agents/components/inputs/resources/ResourceFamilyPolicyEditor.js +214 -144
- package/dist/agents/components/inputs/resources/SmartAgentResourceChips.js +70 -69
- package/dist/agents/components/inputs/resources/SmartAgentResourcePickerButton.js +22 -18
- package/dist/agents/components/inputs/smart-input/AgentMicrophoneButton.js +3 -2
- package/dist/agents/components/inputs/smart-input/AgentTextarea.js +70 -58
- package/dist/agents/components/inputs/smart-input/ChatConnectionsStrip.js +172 -142
- package/dist/agents/components/inputs/smart-input/ComposerChip.js +30 -22
- package/dist/agents/components/inputs/smart-input/ComposerDraftNotice.js +15 -2
- package/dist/agents/components/inputs/smart-input/ComposerToolsNotice.js +12 -7
- package/dist/agents/components/inputs/smart-input/ComputeLensBar.js +141 -106
- package/dist/agents/components/inputs/smart-input/ContextDocsMenu.js +139 -91
- package/dist/agents/components/inputs/smart-input/ConversationContextChip.js +9 -6
- package/dist/agents/components/inputs/smart-input/ConversationContextRail.js +106 -80
- package/dist/agents/components/inputs/smart-input/DesktopPresenceIndicator.js +58 -37
- package/dist/agents/components/inputs/smart-input/InboxQueueStrip.js +227 -190
- package/dist/agents/components/inputs/smart-input/InputActionButtons.js +80 -36
- package/dist/agents/components/inputs/smart-input/PlusAttachMenu.js +163 -118
- package/dist/agents/components/inputs/smart-input/QuicksetPanel.js +147 -110
- package/dist/agents/components/inputs/smart-input/RunControlsMenu.js +105 -90
- package/dist/agents/components/inputs/smart-input/RunControlsTabPanel.js +86 -62
- package/dist/agents/components/inputs/smart-input/RunPicksSurface.js +157 -110
- package/dist/agents/components/inputs/smart-input/RunSkillPicker.js +12 -11
- package/dist/agents/components/inputs/smart-input/RunToolPicker.js +42 -38
- package/dist/agents/components/inputs/smart-input/ShapeChipsRow.js +20 -16
- package/dist/agents/components/inputs/smart-input/SmartAgentInput.js +40 -33
- package/dist/agents/components/inputs/smart-input/SmartAgentInputStacked.js +203 -177
- package/dist/agents/components/inputs/smart-input/SmartInputFileDropTarget.js +30 -21
- package/dist/agents/components/inputs/smart-input/UninitializedShell.js +22 -19
- package/dist/agents/components/inputs/smart-input/ViewOnlyComposerBar.js +8 -5
- package/dist/agents/components/inputs/smart-input/composer/ComposerAgentPeek.js +3 -2
- package/dist/agents/components/inputs/smart-input/composer/ComposerAgentPill.js +129 -99
- package/dist/agents/components/inputs/smart-input/composer/ComposerChipsRow.js +53 -47
- package/dist/agents/components/inputs/smart-input/composer/ComposerConnectPromo.js +25 -21
- package/dist/agents/components/inputs/smart-input/composer/ComposerConnectorsPanel.js +91 -55
- package/dist/agents/components/inputs/smart-input/composer/ComposerEffortPill.js +51 -42
- package/dist/agents/components/inputs/smart-input/composer/ComposerMenu.js +143 -115
- package/dist/agents/components/inputs/smart-input/composer/ComposerMenuSheet.js +26 -23
- package/dist/agents/components/inputs/smart-input/composer/ComposerMetaRow.js +41 -30
- package/dist/agents/components/inputs/smart-input/composer/ComposerModeSwitch.js +38 -26
- package/dist/agents/components/inputs/smart-input/composer/ComposerOutput.js +150 -101
- package/dist/agents/components/inputs/smart-input/composer/ComposerPlusMenu.js +264 -198
- package/dist/agents/components/inputs/smart-input/composer/ComposerSplash.js +54 -38
- package/dist/agents/components/inputs/variable-input-variations/AgentVariableCards.js +144 -127
- package/dist/agents/components/inputs/variable-input-variations/AgentVariableForm.js +247 -165
- package/dist/agents/components/inputs/variable-input-variations/AgentVariablesGuided.js +323 -244
- package/dist/agents/components/inputs/variable-input-variations/AgentVariablesStacked.js +32 -28
- package/dist/agents/components/inputs/variable-input-variations/AgentVariablesWizard.js +43 -16
- package/dist/agents/components/inputs/variable-input-variations/SmartAgentVariables.js +7 -6
- package/dist/agents/components/live-run/LiveRunDisplay.js +81 -53
- package/dist/agents/components/live-run/LiveRunProgress.js +72 -48
- package/dist/agents/components/live-run/RunSetDisplay.js +20 -17
- package/dist/agents/components/memory/components/AgentMemoryAllView.js +45 -27
- package/dist/agents/components/memory/components/AgentMemoryBody.js +4 -3
- package/dist/agents/components/memory/components/AgentMemoryEditor.js +52 -36
- package/dist/agents/components/memory/components/AgentMemoryFooter.js +66 -44
- package/dist/agents/components/memory/components/AgentMemoryInlinePanel.js +10 -2
- package/dist/agents/components/memory/components/AgentMemorySidebar.js +125 -89
- package/dist/agents/components/messages-display/AgentConversationDisplay.js +130 -119
- package/dist/agents/components/messages-display/MessageAttachmentStrip.js +8 -7
- package/dist/agents/components/messages-display/MessageTimestamp.js +8 -5
- package/dist/agents/components/messages-display/TranscriptIntegrityCopyButton.js +4 -3
- package/dist/agents/components/messages-display/assistant/AgentAssistantMessage.js +135 -108
- package/dist/agents/components/messages-display/assistant/AgentEmptyMessageDisplay.js +20 -9
- package/dist/agents/components/messages-display/assistant/AssistantMessageFooter.js +76 -65
- package/dist/agents/components/messages-display/assistant/AssistantNoAnswer.js +28 -17
- package/dist/agents/components/messages-display/assistant/AssistantTurnGroup.js +65 -62
- package/dist/agents/components/messages-display/assistant/BreathingOrb.js +70 -57
- package/dist/agents/components/messages-display/assistant/InPlaceAnswerEditor.js +7 -3
- package/dist/agents/components/messages-display/assistant/ProviderRetryCard.js +61 -36
- package/dist/agents/components/messages-display/citations/MessageCitationsContext.js +2 -1
- package/dist/agents/components/messages-display/citations/MessageSourcesRow.js +25 -21
- package/dist/agents/components/messages-display/conversation-tools/ConversationFindBar.js +46 -43
- package/dist/agents/components/messages-display/conversation-tools/FollowUpSuggestions.js +2 -2
- package/dist/agents/components/messages-display/message-options/DeleteMessageDialog.js +61 -40
- package/dist/agents/components/messages-display/message-options/EditHistoryDialog.js +91 -56
- package/dist/agents/components/messages-display/message-options/shareMessageAsWebpage.js +1 -1
- package/dist/agents/components/messages-display/user/AgentUserMessage.js +180 -144
- package/dist/agents/components/messages-display/user/CollabNoteMessage.js +16 -6
- package/dist/agents/components/messages-display/user/FirstTurnVariables.js +51 -40
- package/dist/agents/components/messages-display/user/PendingSendMessage.js +60 -37
- package/dist/agents/components/messages-display/user/RemarksTranscriptView.js +22 -5
- package/dist/agents/components/messages-display/user/ResourceAttachmentTile.js +187 -147
- package/dist/agents/components/messages-display/user/ResourceEditableToggleSamples.js +17 -1
- package/dist/agents/components/messages-display/user/UserActionBar.js +77 -62
- package/dist/agents/components/messages-display/user/UserMessageAttachmentStyleComparison.js +82 -39
- package/dist/agents/components/messages-display/user/UserMessageChipsDemo.js +189 -105
- package/dist/agents/components/messages-display/user/UserMessageHybridTileSamples.js +212 -130
- package/dist/agents/components/model/AgentModelPanel.js +2 -1
- package/dist/agents/components/model-tiers/ModelTierIdentityList.js +18 -15
- package/dist/agents/components/notifications/ImageArrivalPeek.js +45 -34
- package/dist/agents/components/notifications/ImageArrivalPeekHost.js +14 -13
- package/dist/agents/components/observational-memory/ObservationalMemoryCore.js +46 -31
- package/dist/agents/components/observational-memory/components/MemoryControls.js +84 -48
- package/dist/agents/components/observational-memory/components/MemoryCostCard.js +136 -84
- package/dist/agents/components/observational-memory/components/MemoryEventTimeline.js +127 -78
- package/dist/agents/components/observational-memory/components/MemoryOverviewCard.js +113 -72
- package/dist/agents/components/observational-memory/components/MemoryStateInspector.js +384 -216
- package/dist/agents/components/run/AgentRunHeader.js +44 -27
- package/dist/agents/components/run/AgentRunnerPage.js +47 -31
- package/dist/agents/components/run/AgentStatusIndicator.js +2 -1
- package/dist/agents/components/run/AssistantError.js +61 -27
- package/dist/agents/components/run/AssistantWarning.js +18 -2
- package/dist/agents/components/run/GenerationJobCard.js +19 -6
- package/dist/agents/components/run/IncompleteNote.js +11 -1
- package/dist/agents/components/run/RunJobWorkingLine.js +14 -11
- package/dist/agents/components/run/run-sidebar/SidebarHeader.js +25 -18
- package/dist/agents/components/run-controls/AdvancedRunSettings/AdvancedRunSettings.js +72 -56
- package/dist/agents/components/run-controls/AdvancedRunSettings/ComplexityBadge.js +10 -8
- package/dist/agents/components/run-controls/AdvancedRunSettings/primitives.js +84 -66
- package/dist/agents/components/run-controls/ContextPoliciesTab.js +194 -130
- package/dist/agents/components/run-controls/RunConfigOverrides.js +245 -179
- package/dist/agents/components/run-controls/RunInputCapabilities.js +24 -20
- package/dist/agents/components/run-controls/RunModelPicker.js +35 -25
- package/dist/agents/components/run-controls/RunSettingsEditor.js +356 -267
- package/dist/agents/components/run-controls/RunSettingsModal.js +8 -1
- package/dist/agents/components/run-controls/SimpleRunSettings/CapabilityGrid.js +25 -20
- package/dist/agents/components/run-controls/SimpleRunSettings/ReasoningLevelSelector.js +14 -11
- package/dist/agents/components/run-controls/SimpleRunSettings/SimpleRunSettings.js +32 -21
- package/dist/agents/components/run-controls/SimpleRunSettings/SimpleRunSettingsButton.js +41 -35
- package/dist/agents/components/run-controls/StoredModelOverridesField.js +38 -27
- package/dist/agents/components/run-controls/SurfaceSimulatorSelect.js +117 -69
- package/dist/agents/components/run-controls/panels/BackendTargetPanel.js +81 -35
- package/dist/agents/components/run-controls/panels/ClientMetricsPanel.js +65 -33
- package/dist/agents/components/run-controls/panels/ModelContextPanel.js +94 -46
- package/dist/agents/components/run-controls/panels/RequestStatsPanel.js +82 -53
- package/dist/agents/components/run-controls/panels/SessionStatsPanel.js +33 -9
- package/dist/agents/components/run-controls/panels/shared.js +10 -4
- package/dist/agents/components/send-to-agent/SendToAgentWindow.js +89 -57
- package/dist/agents/components/shared/AgentConversationColumn.js +135 -123
- package/dist/agents/components/shared/AgentHeader.js +47 -29
- package/dist/agents/components/shared/AgentHeaderMobile.js +173 -133
- package/dist/agents/components/shared/AgentModeController.js +58 -43
- package/dist/agents/components/shared/AgentNewRunButton.js +2 -1
- package/dist/agents/components/shared/AgentPlanningIndicator.js +2 -1
- package/dist/agents/components/shared/AgentReferenceCopyButton.js +2 -1
- package/dist/agents/components/shared/AgentSelectorIsland.js +26 -18
- package/dist/agents/components/shared/AutoInjectionSwitch.js +66 -55
- package/dist/agents/components/shared/DesktopFilterPanel.js +183 -140
- package/dist/agents/components/shared/OlderMessagesSentinel.js +2 -1
- package/dist/agents/components/shared/StreamProfilerOverlay.js +64 -5
- package/dist/agents/components/shared/transcript-audience.js +2 -1
- package/dist/agents/components/shell/AgentBuildSidebarExtras.js +14 -3
- package/dist/agents/components/shell/AgentRunSidebarMenu.js +82 -58
- package/dist/agents/components/smart/AgentRunWrapper.js +2 -1
- package/dist/agents/components/smart/AgentRunner.js +45 -40
- package/dist/agents/components/smart/CreateWithAiTabs.js +88 -73
- package/dist/agents/components/working-document/DocumentLinkPicker.js +74 -47
- package/dist/agents/components/working-document/ScratchpadQuickPanel.js +3 -2
- package/dist/agents/components/working-document/ScratchpadSwitcherMenu.js +58 -35
- package/dist/agents/components/working-document/WorkingDocumentAgentDiff.js +8 -4
- package/dist/agents/components/working-document/WorkingDocumentEditor.js +35 -34
- package/dist/agents/components/working-document/WorkingDocumentLatestVersionDiff.js +15 -5
- package/dist/agents/components/working-document/WorkingDocumentPanel.js +250 -174
- package/dist/agents/components/working-document/WorkingDocumentVersionHistory.js +82 -46
- package/dist/agents/components/working-document/WorkingDocumentViewControls.js +64 -52
- package/dist/agents/components/working-document/documents-workspace/DocumentsListRail.js +127 -106
- package/dist/agents/components/working-document/documents-workspace/DocumentsWorkspace.js +116 -103
- package/dist/agents/decision-answers/DecisionAnswers.js +164 -107
- package/dist/agents/image-roles/ImageRoleSelector.js +60 -50
- package/dist/agents/image-roles/ReferenceRoleCaption.js +5 -4
- package/dist/agents/message-flags/ExampleTurnsGroup.js +8 -1
- package/dist/agents/message-flags/MessageFlagToggles.js +72 -56
- package/dist/agents/message-flags/MessageFlagsPreview.js +35 -10
- package/dist/agents/message-flags/PrefillNote.js +5 -4
- package/dist/agents/message-flags/StoppedNote.js +8 -5
- package/dist/agents/prompt-preview/PromptPreviewContent.js +72 -34
- package/dist/agents/redux/execution-system/host-conversations/conversation-abilities.js +2 -1
- package/dist/agents/redux/execution-system/inbox/inbox.thunks.js +19 -10
- package/dist/agents/redux/execution-system/instance-ui-state/components/InstanceUIStateCore.js +430 -313
- package/dist/agents/redux/execution-system/instance-ui-state/components/InstanceUIStateList.js +120 -104
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.persistence.d.ts +6 -0
- package/dist/agents/redux/execution-system/instance-variable-values/instance-variable-values.persistence.js +4 -2
- package/dist/agents/redux/execution-system/thunks/execute-instance.thunk.js +24 -8
- package/dist/agents/resources/ResourceChips.js +37 -34
- package/dist/agents/resources/ResourceDisplay.js +51 -32
- package/dist/agents/route/AgentHydratorServer.js +2 -1
- package/dist/agents/routing/ConfidentialToggle.js +8 -6
- package/dist/agents/runtime-reconnect/ServerOperationBanner.js +33 -28
- package/dist/agents/speech-script/SpeechScriptTranscriptView.js +20 -1
- package/dist/agents/ui-first-tools/ui/AgentCardShell.js +78 -67
- package/dist/agents/ui-first-tools/ui/ApprovalCard.js +136 -102
- package/dist/agents/ui-first-tools/ui/AskCard.js +383 -293
- package/dist/agents/ui-first-tools/ui/AskCardCountdown.js +10 -9
- package/dist/agents/ui-first-tools/ui/AskWizard.js +91 -70
- package/dist/agents/ui-first-tools/ui/BatchAskCard.js +2 -1
- package/dist/agents/ui-first-tools/ui/CredentialCaptureCard.js +54 -33
- package/dist/agents/ui-first-tools/ui/PendingAsksZone.js +66 -55
- package/dist/agents/ui-first-tools/ui/QuestionsAskForm.js +2 -1
- package/dist/agents/ui-first-tools/ui/lists/ListsHubView.js +112 -63
- package/dist/agents/ui-first-tools/ui/lists/TaskPanel.js +209 -140
- package/dist/agents/ui-first-tools/ui/lists/TaskPanelChip.js +7 -6
- package/dist/canvas/workspace/CanvasChatColumn.js +28 -17
- package/dist/canvas/workspace/CanvasPropertiesPanel.js +38 -32
- package/dist/canvas/workspace/ChatCanvasWorkspace.js +87 -53
- package/dist/canvas/workspace/ChatPanelTitleMenu.js +56 -44
- package/dist/canvas/workspace/ShellChatDock.js +71 -54
- package/dist/context-menu/types.d.ts +12 -6
- package/dist/cx-chat/components/ChatConversationSkeleton.js +35 -2
- package/dist/cx-chat/components/ChatHeaderControls.js +35 -23
- package/dist/cx-chat/components/ChatInstanceManager.js +3 -2
- package/dist/cx-chat/components/ChatMobileAdminToggles.js +16 -11
- package/dist/cx-chat/components/ChatMobileAgentName.js +13 -9
- package/dist/cx-chat/components/ChatMobileHeaderBar.js +25 -22
- package/dist/cx-chat/components/ChatPanelBackButton.js +2 -1
- package/dist/cx-chat/components/ChatSidebarClient.js +164 -135
- package/dist/cx-chat/components/ChatWelcomeClient.js +27 -17
- package/dist/cx-chat/components/ChatWelcomeServer.js +3 -2
- package/dist/cx-chat/components/ContextGaugeWidget.js +22 -13
- package/dist/cx-chat/components/SsrSidebarAgents.js +4 -3
- package/dist/cx-chat/components/SsrSidebarChats.js +159 -105
- package/dist/cx-chat/components/agent/AgentPickerSheet.js +16 -3
- package/dist/cx-chat/components/core/ChatConversationClient.js +47 -32
- package/dist/cx-chat/components/messages/MessageErrorBoundary.js +8 -1
- package/dist/cx-chat/components/messages/UserMessage.js +142 -116
- package/dist/cx-chat/components/sidebar/SidebarActions.js +24 -16
- package/dist/cx-chat/components/sidebar/SidebarUserFooter.js +43 -30
- package/dist/cx-chat/components/user-input/ConversationInput.js +157 -136
- package/dist/cx-chat/components/user-input/InpuControlButtons.js +18 -17
- package/dist/cx-chat/components/user-input/InputActionButtons.js +33 -28
- package/dist/cx-chat/components/user-input/StackedVariableInputs.js +79 -65
- package/dist/cx-chat/components/variable-inputs/CheckboxGroupInput.js +90 -63
- package/dist/cx-chat/components/variable-inputs/NumberInput.js +41 -30
- package/dist/cx-chat/components/variable-inputs/RadioGroupInput.js +64 -46
- package/dist/cx-chat/components/variable-inputs/SelectInput.js +32 -15
- package/dist/cx-chat/components/variable-inputs/TextareaInput.js +3 -2
- package/dist/cx-chat/components/variable-inputs/ToggleInput.js +28 -8
- package/dist/host/bare-host-chrome.js +2 -1
- package/dist/host/chrome.js +10 -9
- package/dist/host/configure.js +7 -1
- package/dist/host/conversation-hooks-react.d.ts +7 -0
- package/dist/host/conversation-hooks-react.js +15 -2
- package/dist/host/conversation-hooks.d.ts +10 -0
- package/dist/host/conversation-hooks.js +7 -0
- package/dist/host/defaults/memory-navigation.js +5 -4
- package/dist/host/defaults/resource-picker-menu.js +30 -25
- package/dist/host/defaults/setting-control-input.js +13 -10
- package/dist/host/defaults/window-panel.js +38 -17
- package/dist/host/defaults/workspace-gate.js +31 -20
- package/dist/host/navigation.js +2 -1
- package/dist/host/react.js +3 -2
- package/dist/host/ui-slots.d.ts +3 -2
- package/dist/mandates/RunFailureCard.js +27 -16
- package/dist/public-chat/components/AgentSelector.js +26 -26
- package/dist/public-chat/components/GuidedVariableInputs.js +282 -216
- package/dist/public-chat/components/PublicMessageOptionsMenu.js +36 -31
- package/dist/public-chat/components/PublicVariableInputs.js +79 -65
- package/dist/quick-actions/components/QuickChatSheet.js +83 -59
- package/dist/surfaces/components/chrome/PageIntelligenceSection.js +36 -22
- package/dist/surfaces/components/chrome/SurfaceAgentsHeaderButton.js +31 -21
- package/dist/surfaces/components/chrome/SurfaceAgentsPanelImpl.js +109 -64
- package/dist/surfaces/components/chrome/SurfaceConversationsSection.js +87 -41
- package/dist/surfaces/components/chrome/SurfaceMandatesSection.js +118 -75
- package/dist/surfaces/components/chrome/SurfaceRoleAgentButton.js +8 -5
- package/dist/surfaces/runtime/StaticSurfaceRuntimeProvider.js +2 -1
- package/dist/surfaces/runtime/SurfaceRuntimeContext.js +8 -7
- package/dist/surfaces/runtime/intelligence.js +2 -1
- package/dist/testing/chat-host-test-provider.js +2 -1
- package/dist/testing/render-hook.js +2 -2
- package/dist/tool-call-visualization/components/AgentWorkGroup.js +15 -11
- package/dist/tool-call-visualization/components/ArtifactResultBar.js +78 -51
- package/dist/tool-call-visualization/components/ChatResultColumn.js +2 -2
- package/dist/tool-call-visualization/components/LiveToolCallCard.js +2 -1
- package/dist/tool-call-visualization/components/ToolCallBatch.js +35 -29
- package/dist/tool-call-visualization/components/ToolCallVisualization.js +217 -200
- package/dist/tool-call-visualization/components/ToolConversationContext.js +3 -2
- package/dist/tool-call-visualization/components/ToolTabBodies.js +122 -70
- package/dist/tool-call-visualization/components/ToolUpdatesOverlay.js +68 -50
- package/dist/tool-call-visualization/components/agentWorkTurn.js +8 -8
- package/dist/tool-call-visualization/db-renderer/DbToolRenderer.js +2 -2
- package/dist/tool-call-visualization/db-renderer/DbToolRendererImpl.js +7 -6
- package/dist/tool-call-visualization/grouping/foldAgentWork.js +10 -3
- package/dist/tool-call-visualization/registry/GenericRenderer.js +68 -51
- package/dist/tool-call-visualization/registry/registry.js +62 -10
- package/dist/tool-call-visualization/renderers/_shared-entity/EmptyResultCard.js +9 -4
- package/dist/tool-call-visualization/renderers/_shared-entity/EntityCard.js +116 -85
- package/dist/tool-call-visualization/renderers/_shared-entity/EntityOpenActions.js +16 -9
- package/dist/tool-call-visualization/renderers/_shared-entity/PartPeekPopover.js +24 -18
- package/dist/tool-call-visualization/renderers/_shared-entity/ToolGlyph.js +2 -1
- package/dist/tool-call-visualization/renderers/_shared-entity/ToolResultCard.js +89 -65
- package/dist/tool-call-visualization/renderers/agent-call/AgentCallInline.js +71 -54
- package/dist/tool-call-visualization/renderers/agent-call/CollabCallCard.js +90 -54
- package/dist/tool-call-visualization/renderers/agent-call/ImageGenerationResult.js +39 -31
- package/dist/tool-call-visualization/renderers/ask/AskInline.js +20 -15
- package/dist/tool-call-visualization/renderers/ask-person/AskPersonInline.js +17 -8
- package/dist/tool-call-visualization/renderers/cloud-browser/CloudBrowserRunCard.js +89 -55
- package/dist/tool-call-visualization/renderers/ctx/ContextActionInline.js +4 -4
- package/dist/tool-call-visualization/renderers/ctx/CtxBatchInline.js +50 -18
- package/dist/tool-call-visualization/renderers/ctx/CtxGetInline.js +13 -5
- package/dist/tool-call-visualization/renderers/ctx/CtxItemCard.js +22 -13
- package/dist/tool-call-visualization/renderers/ctx/CtxPatchInline.js +25 -6
- package/dist/tool-call-visualization/renderers/dictionary/DictEntryList.js +37 -5
- package/dist/tool-call-visualization/renderers/dictionary/DictionaryInline.js +5 -4
- package/dist/tool-call-visualization/renderers/dictionary/DictionaryOverlay.js +18 -2
- package/dist/tool-call-visualization/renderers/fs/FsInline.js +73 -55
- package/dist/tool-call-visualization/renderers/news-api/NewsInline.js +90 -41
- package/dist/tool-call-visualization/renderers/news-api/NewsOverlay.js +152 -84
- package/dist/tool-call-visualization/renderers/random-wheel/RandomWheelInline.js +297 -180
- package/dist/tool-call-visualization/renderers/records/RecordsInline.js +7 -2
- package/dist/tool-call-visualization/renderers/research/ResearchInline.js +88 -45
- package/dist/tool-call-visualization/renderers/research/ResearchOverlay.js +102 -54
- package/dist/tool-call-visualization/renderers/research/SubagentReportBlock.js +95 -65
- package/dist/tool-call-visualization/renderers/scrape/ScrapeInline.js +170 -100
- package/dist/tool-call-visualization/renderers/scrape/ScrapeOverlay.js +109 -55
- package/dist/tool-call-visualization/renderers/search/SearchInline.js +297 -186
- package/dist/tool-call-visualization/renderers/search/SearchOverlay.js +240 -105
- package/dist/tool-call-visualization/renderers/shell/ShellInline.js +52 -33
- package/dist/tool-call-visualization/renderers/skill/SkillInline.js +44 -36
- package/dist/tool-call-visualization/renderers/sql/DbSchemaInline.js +33 -7
- package/dist/tool-call-visualization/renderers/sql/SqlInline.js +46 -14
- package/dist/tool-call-visualization/renderers/web/WebInline.js +4 -4
- package/dist/tool-call-visualization/renderers/web/WebOverlay.js +4 -4
- package/dist/tool-call-visualization/renderers/workbook/WorkbookGrid.js +25 -15
- package/dist/tool-call-visualization/renderers/workbook/WorkbookInline.js +24 -15
- package/dist/tool-call-visualization/renderers/workbook/WorkbookOverlay.js +25 -11
- package/dist/tool-call-visualization/renderers/working-document/PatchDiffInline.js +11 -10
- package/dist/tool-call-visualization/result-fields/EmptyResult.js +8 -6
- package/dist/tool-call-visualization/result-fields/KeyValueGrid.js +121 -78
- package/dist/tool-call-visualization/result-fields/KindValueNode.js +4 -3
- package/dist/tool-call-visualization/result-fields/ResultFile.js +28 -19
- package/dist/tool-call-visualization/result-fields/ResultJson.js +2 -2
- package/dist/tool-call-visualization/result-fields/ResultMarkdown.js +31 -24
- package/dist/tool-call-visualization/result-fields/ResultMedia.js +23 -19
- package/dist/tool-call-visualization/result-fields/ResultRecordRef.js +3 -2
- package/dist/tool-call-visualization/result-fields/ResultScalar.js +4 -4
- package/dist/tool-call-visualization/result-fields/ResultTable.js +144 -107
- package/dist/tool-call-visualization/result-fields/ResultValue.js +78 -61
- package/dist/tool-call-visualization/result-fields/ShortId.js +21 -13
- package/dist/tool-call-visualization/result-fields/ToolErrorCard.js +22 -17
- package/dist/tool-call-visualization/result-fields/ToolResultValue.js +3 -3
- package/dist/tool-call-visualization/result-fields/UrlChips.js +13 -11
- package/dist/tool-call-visualization/result-fields/document-presentation.js +3 -2
- package/dist/tool-call-visualization/surface-write/SurfaceWriteDiff.js +69 -55
- package/dist/tool-call-visualization/surface-write/SurfaceWriteStress.js +8 -1
- package/dist/tool-call-visualization/surface-write/withSurfaceWriteDiff.js +3 -2
- package/dist/tool-call-visualization/window-panel/ToolCallWindowPanel.js +140 -120
- package/dist/ui/AudioOutputBlockSkeleton.js +61 -21
- package/dist/ui/chat-panel/ChatPanel.js +61 -45
- package/dist/ui/checkbox.js +2 -1
- package/dist/ui/html-preview/HtmlPreviewBridge.js +3 -2
- package/dist/ui/lazy/SurfaceAgentsPanelImpl.js +5 -1
- package/dist/ui/markdown-stream/EnhancedChatMarkdown.js +141 -131
- package/dist/ui/markdown-stream/MarkdownStreamImpl.js +42 -42
- package/dist/ui/markdown-stream/StreamAwareChatMarkdown.js +19 -18
- package/dist/ui/markdown-stream/internal-handlers/AgentCallChildTrace.js +59 -56
- package/dist/ui/markdown-stream/internal-handlers/InlineAssistantError.js +2 -1
- package/dist/ui/markdown-stream/internal-handlers/InlineThinkingSlot.js +3 -3
- package/dist/ui/markdown-stream/internal-handlers/ToolHandlers.js +34 -31
- package/dist/ui/scroll-fade.js +5 -4
- package/dist/ui/tabs.js +2 -1
- package/dist/ui/usages/DriftSeverityBadge.js +9 -6
- package/dist/utils/connectors/marks.js +122 -59
- package/dist/utils/resource-picker/ResourcePickerSubViewHeader.js +66 -40
- package/dist/voice-agent/components/GoogleLiveSurface.js +127 -90
- package/dist/voice-agent/components/LiveVoiceDoor.js +10 -7
- package/dist/voice-agent/components/VoiceAgentSurface.js +114 -92
- package/dist/voice-agent/components/VoiceControlCluster.js +5 -1
- package/dist/voice-agent/components/VoiceDebugPanel.js +212 -107
- package/dist/voice-agent/components/VoiceEdgeRibbon.js +63 -60
- package/dist/voice-agent/components/VoiceErrorBanner.js +20 -17
- package/dist/voice-agent/components/VoiceMicButton.js +5 -4
- package/dist/voice-agent/components/VoiceMuteButton.js +5 -4
- package/dist/voice-agent/components/VoiceOrb.js +84 -81
- package/dist/voice-agent/components/VoiceStatusPill.js +12 -11
- package/dist/voice-agent/components/VoiceTranscriptStream.js +8 -5
- package/dist/voice-agent/components/VoiceTranscriptTurn.js +20 -17
- package/dist/voice-agent/components/playground/InstructionsEditor.js +34 -27
- package/dist/voice-agent/components/playground/PlaygroundSettingsSheet.js +27 -15
- package/dist/voice-agent/components/playground/ToolToggleList.js +34 -25
- package/dist/voice-agent/components/playground/VoicePicker.js +17 -10
- package/dist/voice-agent/relay/VoiceChatClient.js +3 -2
- package/dist/voice-agent/relay/VoiceRelayBar.js +60 -53
- package/dist/voice-agent/relay/VoiceRelayDock.js +26 -14
- package/dist/voice-agent/relay/VoiceRelayPanel.js +21 -10
- package/dist/window-panels/windows/agents/AgentAssistantMarkdownDebugWindow.js +74 -59
- package/dist/window-panels/windows/agents/AgentMemoryWindow.js +24 -20
- package/dist/window-panels/windows/agents/AgentPickerFrame.js +14 -13
- package/dist/window-panels/windows/agents/AgentRunHistoryWindow.js +151 -112
- package/dist/window-panels/windows/agents/AgentRunWindow.js +118 -78
- package/dist/window-panels/windows/agents/ChatHistoryWindow.js +49 -38
- package/dist/window-panels/windows/agents/LiveRunWindow.js +34 -31
- package/dist/window-panels/windows/agents/MessageAnalysisWindow.js +39 -34
- package/dist/window-panels/windows/agents/ObservationalMemoryWindow.js +189 -137
- package/dist/window-panels/windows/agents/RunControlsWindow.js +50 -49
- package/package.json +9 -9
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { formatCount } from "@ai-matrx/kit/format";
|
|
3
4
|
import { useClipboard } from "@ai-matrx/kit/clipboard";
|
|
4
5
|
import { toast } from "../../../../host/notify.js";
|
|
5
|
-
import
|
|
6
|
+
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
6
7
|
import { extractErrorMessage } from "@ai-matrx/data/net";
|
|
7
8
|
import {
|
|
8
9
|
Check,
|
|
@@ -51,126 +52,170 @@ function MemoryStateInspector({
|
|
|
51
52
|
if (!autoFetch) return;
|
|
52
53
|
void fetchRow();
|
|
53
54
|
}, [autoFetch, fetchRow]);
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ jsxs(
|
|
55
56
|
"div",
|
|
56
57
|
{
|
|
57
58
|
className: cn(
|
|
58
59
|
"flex flex-col min-h-0 h-full rounded-md border border-border bg-card/60",
|
|
59
60
|
className
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
),
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-3 py-1.5 border-b border-border shrink-0", children: [
|
|
64
|
+
/* @__PURE__ */ jsx(Database, { className: "w-3.5 h-3.5 text-muted-foreground" }),
|
|
65
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wider flex-1", children: "Observational memory" }),
|
|
66
|
+
/* @__PURE__ */ jsx(Button, { variant: "quiet", icon: state.status === "loading" ? /* @__PURE__ */ jsx(Loader2, { className: "animate-spin" }) : /* @__PURE__ */ jsx(RefreshCw, {}), onClick: fetchRow, disabled: state.status === "loading", children: "Refresh" })
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-h-0 overflow-y-auto p-3 space-y-3", children: [
|
|
69
|
+
state.status === "idle" && /* @__PURE__ */ jsx(EmptyHint, { children: "Click refresh to fetch the memory row." }),
|
|
70
|
+
state.status === "loading" && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center py-8 text-muted-foreground text-xs", children: [
|
|
71
|
+
/* @__PURE__ */ jsx(Loader2, { className: "w-4 h-4 mr-2 animate-spin" }),
|
|
72
|
+
"Loading memory\u2026"
|
|
73
|
+
] }),
|
|
74
|
+
state.status === "error" && /* @__PURE__ */ jsxs("div", { className: "text-xs bg-destructive/5 border border-destructive/20 text-destructive-ink rounded p-2", children: [
|
|
75
|
+
state.error,
|
|
76
|
+
/* @__PURE__ */ jsx(ErrorAlchemyMenu, { error: state.error })
|
|
77
|
+
] }),
|
|
78
|
+
state.status === "success" && !state.row && /* @__PURE__ */ jsx(EmptyHint, { children: "No memory row exists for this conversation yet. A row is created on the first memory-enabled turn." }),
|
|
79
|
+
state.status === "success" && state.row && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ jsx(MemoryRowDetails, { row: state.row }) })
|
|
80
|
+
] })
|
|
81
|
+
]
|
|
82
|
+
}
|
|
64
83
|
);
|
|
65
84
|
}
|
|
66
85
|
function EmptyHint({ children }) {
|
|
67
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center py-8 gap-2 text-muted-foreground", children: [
|
|
87
|
+
/* @__PURE__ */ jsx(Info, { className: "w-8 h-8 opacity-20" }),
|
|
88
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs text-center max-w-sm", children })
|
|
89
|
+
] });
|
|
68
90
|
}
|
|
69
91
|
function MemoryRowDetails({ row }) {
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
92
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
93
|
+
/* @__PURE__ */ jsx(BufferedObservationsView, { value: row.buffered_observations }),
|
|
94
|
+
/* @__PURE__ */ jsx(
|
|
95
|
+
TextPayload,
|
|
96
|
+
{
|
|
97
|
+
title: "Active observations",
|
|
98
|
+
subtitle: "Consolidated text injected into every turn's system prompt",
|
|
99
|
+
icon: /* @__PURE__ */ jsx(FileText, { className: "w-3.5 h-3.5 text-emerald-500" }),
|
|
100
|
+
text: row.active_observations,
|
|
101
|
+
maxHeightClass: "max-h-80"
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 sm:grid-cols-4 gap-2", children: [
|
|
105
|
+
/* @__PURE__ */ jsx(
|
|
106
|
+
StatTile,
|
|
107
|
+
{
|
|
108
|
+
label: "Generation",
|
|
109
|
+
value: String(row.generation_count),
|
|
110
|
+
tone: "emerald"
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ jsx(
|
|
114
|
+
StatTile,
|
|
115
|
+
{
|
|
116
|
+
label: "Observation tokens",
|
|
117
|
+
value: formatTokens(row.observation_token_count)
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ jsx(
|
|
121
|
+
StatTile,
|
|
122
|
+
{
|
|
123
|
+
label: "Pending tokens",
|
|
124
|
+
value: formatTokens(row.pending_message_tokens)
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
/* @__PURE__ */ jsx(
|
|
128
|
+
StatTile,
|
|
129
|
+
{
|
|
130
|
+
label: "Reflected lines",
|
|
131
|
+
value: formatTokens(row.reflected_observation_line_count)
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
] }),
|
|
135
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-1 text-[11px]", children: [
|
|
136
|
+
/* @__PURE__ */ jsx(KeyValue, { label: "Scope", value: row.scope, mono: true }),
|
|
137
|
+
/* @__PURE__ */ jsx(
|
|
138
|
+
KeyValue,
|
|
139
|
+
{
|
|
140
|
+
label: "Last observed",
|
|
141
|
+
value: row.last_observed_at ? `${formatRelativeTime(row.last_observed_at)} \xB7 ${formatDateTime(
|
|
142
|
+
row.last_observed_at
|
|
143
|
+
)}` : "\u2014"
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
/* @__PURE__ */ jsx(
|
|
147
|
+
KeyValue,
|
|
148
|
+
{
|
|
149
|
+
label: "Buffering observation",
|
|
150
|
+
value: row.is_buffering_observation ? "yes" : "no",
|
|
151
|
+
tone: row.is_buffering_observation ? "emerald" : void 0
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
/* @__PURE__ */ jsx(
|
|
155
|
+
KeyValue,
|
|
156
|
+
{
|
|
157
|
+
label: "Buffering reflection",
|
|
158
|
+
value: row.is_buffering_reflection ? "yes" : "no",
|
|
159
|
+
tone: row.is_buffering_reflection ? "emerald" : void 0
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ jsx(
|
|
163
|
+
KeyValue,
|
|
164
|
+
{
|
|
165
|
+
label: "Updated",
|
|
166
|
+
value: `${formatRelativeTime(row.updated_at)} \xB7 ${formatDateTime(row.updated_at)}`
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
/* @__PURE__ */ jsx(
|
|
170
|
+
KeyValue,
|
|
171
|
+
{
|
|
172
|
+
label: "Created",
|
|
173
|
+
value: `${formatRelativeTime(row.created_at)} \xB7 ${formatDateTime(row.created_at)}`
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
] }),
|
|
177
|
+
row.current_task && /* @__PURE__ */ jsx(
|
|
178
|
+
TextPayload,
|
|
179
|
+
{
|
|
180
|
+
title: "Current task",
|
|
181
|
+
subtitle: "Latest distilled task the user is working on",
|
|
182
|
+
text: row.current_task
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
row.suggested_response && /* @__PURE__ */ jsx(
|
|
186
|
+
TextPayload,
|
|
187
|
+
{
|
|
188
|
+
title: "Suggested response",
|
|
189
|
+
subtitle: "Observer's proposed next-turn nudge",
|
|
190
|
+
text: row.suggested_response
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
row.buffered_reflection && /* @__PURE__ */ jsx(
|
|
194
|
+
TextPayload,
|
|
195
|
+
{
|
|
196
|
+
title: "Buffered reflection",
|
|
197
|
+
subtitle: "Pending Reflector compression queued for the next run",
|
|
198
|
+
text: row.buffered_reflection
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
/* @__PURE__ */ jsx(ObservedMessageIds, { value: row.observed_message_ids }),
|
|
202
|
+
/* @__PURE__ */ jsx(
|
|
203
|
+
KeyValueBlock,
|
|
204
|
+
{
|
|
205
|
+
title: "Config",
|
|
206
|
+
subtitle: "Per-conversation memory config overrides",
|
|
207
|
+
value: row.config
|
|
208
|
+
}
|
|
209
|
+
),
|
|
210
|
+
/* @__PURE__ */ jsx(
|
|
211
|
+
KeyValueBlock,
|
|
212
|
+
{
|
|
213
|
+
title: "Metadata",
|
|
214
|
+
subtitle: "Free-form metadata on the memory row",
|
|
215
|
+
value: row.metadata
|
|
216
|
+
}
|
|
217
|
+
)
|
|
218
|
+
] });
|
|
174
219
|
}
|
|
175
220
|
function BufferedObservationsView({ value }) {
|
|
176
221
|
const cycles = useMemo(() => {
|
|
@@ -182,16 +227,39 @@ function BufferedObservationsView({ value }) {
|
|
|
182
227
|
});
|
|
183
228
|
}, [value]);
|
|
184
229
|
if (cycles.length === 0) {
|
|
185
|
-
return /* @__PURE__ */
|
|
230
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded border border-border/60 bg-background/50 overflow-hidden", children: [
|
|
231
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 px-2 py-1 bg-amber-500/5 border-b border-border/60", children: [
|
|
232
|
+
/* @__PURE__ */ jsx(Layers, { className: "w-3.5 h-3.5 text-amber-500" }),
|
|
233
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
234
|
+
/* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium text-foreground", children: "Buffered observation cycles" }),
|
|
235
|
+
/* @__PURE__ */ jsx("div", { className: "text-[10px] text-muted-foreground truncate", children: "Latest async observer chunks awaiting promotion" })
|
|
236
|
+
] })
|
|
237
|
+
] }),
|
|
238
|
+
/* @__PURE__ */ jsx("div", { className: "p-3 text-[11px] text-muted-foreground italic", children: "No buffered cycles. Anything observed has already been promoted into active observations." })
|
|
239
|
+
] });
|
|
186
240
|
}
|
|
187
|
-
return /* @__PURE__ */
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
241
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded border border-amber-500/30 bg-background/50 overflow-hidden", children: [
|
|
242
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 px-2 py-1 bg-amber-500/10 border-b border-amber-500/20", children: [
|
|
243
|
+
/* @__PURE__ */ jsx(Layers, { className: "w-3.5 h-3.5 text-amber-500" }),
|
|
244
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
245
|
+
/* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium text-foreground", children: "Buffered observation cycles" }),
|
|
246
|
+
/* @__PURE__ */ jsx("div", { className: "text-[10px] text-muted-foreground truncate", children: "Newest first \xB7 awaiting promotion into active observations" })
|
|
247
|
+
] }),
|
|
248
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[10px] font-mono text-muted-foreground shrink-0", children: [
|
|
249
|
+
cycles.length,
|
|
250
|
+
" cycle",
|
|
251
|
+
cycles.length === 1 ? "" : "s"
|
|
252
|
+
] })
|
|
253
|
+
] }),
|
|
254
|
+
/* @__PURE__ */ jsx("div", { className: "p-2 flex flex-col gap-2", children: cycles.map((cycle, idx) => /* @__PURE__ */ jsx(
|
|
255
|
+
BufferedObservationCard,
|
|
256
|
+
{
|
|
257
|
+
cycle,
|
|
258
|
+
defaultOpen: idx === 0
|
|
259
|
+
},
|
|
260
|
+
cycle.cycle_id ?? `cycle-${idx}`
|
|
261
|
+
)) })
|
|
262
|
+
] });
|
|
195
263
|
}
|
|
196
264
|
function BufferedObservationCard({
|
|
197
265
|
cycle,
|
|
@@ -211,49 +279,109 @@ function BufferedObservationCard({
|
|
|
211
279
|
setTimeout(() => setCopied(false), 1500);
|
|
212
280
|
}, [text, hasText]);
|
|
213
281
|
const messageIds = Array.isArray(cycle.message_ids) ? cycle.message_ids.filter((v) => typeof v === "string") : [];
|
|
214
|
-
return /* @__PURE__ */
|
|
215
|
-
"
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
282
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded border border-border/60 bg-background overflow-hidden", children: [
|
|
283
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-1.5 px-2 py-1.5 bg-muted/20 hover:bg-muted/30 transition-colors", children: [
|
|
284
|
+
/* @__PURE__ */ jsxs(
|
|
285
|
+
"button",
|
|
286
|
+
{
|
|
287
|
+
type: "button",
|
|
288
|
+
onClick: () => setOpen((v) => !v),
|
|
289
|
+
className: "flex-1 min-w-0 flex items-start gap-1.5 text-left",
|
|
290
|
+
"aria-expanded": open,
|
|
291
|
+
children: [
|
|
292
|
+
/* @__PURE__ */ jsx(
|
|
293
|
+
ChevronRight,
|
|
294
|
+
{
|
|
295
|
+
className: cn(
|
|
296
|
+
"w-3 h-3 mt-0.5 text-muted-foreground transition-transform shrink-0",
|
|
297
|
+
open && "rotate-90"
|
|
298
|
+
)
|
|
299
|
+
}
|
|
300
|
+
),
|
|
301
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
302
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 flex-wrap", children: [
|
|
303
|
+
/* @__PURE__ */ jsx(Hammer, { className: "w-3 h-3 text-amber-500 shrink-0" }),
|
|
304
|
+
/* @__PURE__ */ jsx("span", { className: "text-[11px] font-medium text-foreground", children: cycle.thread_title || "Cycle" }),
|
|
305
|
+
cycle.cycle_id && /* @__PURE__ */ jsx(
|
|
306
|
+
"span",
|
|
307
|
+
{
|
|
308
|
+
className: "font-mono text-[10px] text-muted-foreground/70",
|
|
309
|
+
title: cycle.cycle_id,
|
|
310
|
+
children: cycle.cycle_id.slice(0, 8)
|
|
311
|
+
}
|
|
312
|
+
),
|
|
313
|
+
cycle.created_at && /* @__PURE__ */ jsx("span", { className: "text-[10px] text-muted-foreground", children: formatRelativeTime(cycle.created_at) })
|
|
314
|
+
] }),
|
|
315
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-x-2 gap-y-0.5 text-[10px] text-muted-foreground/80 mt-0.5", children: [
|
|
316
|
+
cycle.message_count != null && /* @__PURE__ */ jsxs("span", { children: [
|
|
317
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground/70 font-mono", children: cycle.message_count }),
|
|
318
|
+
" ",
|
|
319
|
+
"msg"
|
|
320
|
+
] }),
|
|
321
|
+
messageIds.length > 0 && cycle.message_count !== messageIds.length && /* @__PURE__ */ jsxs("span", { children: [
|
|
322
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground/70 font-mono", children: messageIds.length }),
|
|
323
|
+
" ",
|
|
324
|
+
"ids"
|
|
325
|
+
] }),
|
|
326
|
+
cycle.observation_tokens != null && /* @__PURE__ */ jsxs("span", { children: [
|
|
327
|
+
"obs",
|
|
328
|
+
" ",
|
|
329
|
+
/* @__PURE__ */ jsx("span", { className: "text-emerald-500 font-mono", children: formatTokens(cycle.observation_tokens) }),
|
|
330
|
+
"t"
|
|
331
|
+
] }),
|
|
332
|
+
cycle.message_tokens != null && /* @__PURE__ */ jsxs("span", { children: [
|
|
333
|
+
"in",
|
|
334
|
+
" ",
|
|
335
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground/70 font-mono", children: formatTokens(cycle.message_tokens) }),
|
|
336
|
+
"t"
|
|
337
|
+
] }),
|
|
338
|
+
hasText && /* @__PURE__ */ jsxs("span", { children: [
|
|
339
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground/70 font-mono", children: formatCount(text.length) }),
|
|
340
|
+
" ",
|
|
341
|
+
"chars"
|
|
342
|
+
] })
|
|
343
|
+
] })
|
|
344
|
+
] })
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
hasText && /* @__PURE__ */ jsx(Button, { variant: "quiet", icon: copied ? /* @__PURE__ */ jsx(Check, {}) : /* @__PURE__ */ jsx(Copy, {}), glyphTone: copied ? "success" : void 0, onClick: handleCopy, title: "Copy observations", "aria-label": "Copy observations", className: "mt-0.5 shrink-0" })
|
|
349
|
+
] }),
|
|
350
|
+
open && /* @__PURE__ */ jsxs("div", { className: "border-t border-border/60", children: [
|
|
351
|
+
hasText ? /* @__PURE__ */ jsx("pre", { className: "p-2 text-[11px] font-mono text-foreground whitespace-pre-wrap break-words max-h-96 overflow-y-auto leading-relaxed bg-background", children: text }) : /* @__PURE__ */ jsx("div", { className: "p-2 text-[11px] text-muted-foreground italic", children: "(no observation text in this cycle)" }),
|
|
352
|
+
(cycle.current_task || cycle.suggested_continuation || messageIds.length > 0) && /* @__PURE__ */ jsxs("div", { className: "border-t border-border/60 bg-muted/10 px-2 py-1.5 flex flex-col gap-1.5 text-[10px]", children: [
|
|
353
|
+
cycle.current_task && /* @__PURE__ */ jsx(CycleAside, { label: "Task", value: cycle.current_task }),
|
|
354
|
+
cycle.suggested_continuation && /* @__PURE__ */ jsx(
|
|
355
|
+
CycleAside,
|
|
356
|
+
{
|
|
357
|
+
label: "Suggested",
|
|
358
|
+
value: cycle.suggested_continuation
|
|
359
|
+
}
|
|
360
|
+
),
|
|
361
|
+
messageIds.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex gap-1.5 min-w-0", children: [
|
|
362
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground shrink-0", children: "Messages:" }),
|
|
363
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1 min-w-0", children: messageIds.map((id) => /* @__PURE__ */ jsx(
|
|
364
|
+
"code",
|
|
365
|
+
{
|
|
366
|
+
className: "font-mono text-[10px] px-1 py-0.5 rounded bg-muted/40 text-muted-foreground",
|
|
367
|
+
title: id,
|
|
368
|
+
children: id.startsWith("om-") ? id : id.slice(0, 8)
|
|
369
|
+
},
|
|
370
|
+
id
|
|
371
|
+
)) })
|
|
372
|
+
] })
|
|
373
|
+
] })
|
|
374
|
+
] })
|
|
375
|
+
] });
|
|
254
376
|
}
|
|
255
377
|
function CycleAside({ label, value }) {
|
|
256
|
-
return /* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex gap-1.5 min-w-0", children: [
|
|
379
|
+
/* @__PURE__ */ jsxs("span", { className: "text-muted-foreground shrink-0", children: [
|
|
380
|
+
label,
|
|
381
|
+
":"
|
|
382
|
+
] }),
|
|
383
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground/90 break-words", children: value })
|
|
384
|
+
] });
|
|
257
385
|
}
|
|
258
386
|
function ObservedMessageIds({ value }) {
|
|
259
387
|
const ids = useMemo(() => {
|
|
@@ -262,26 +390,29 @@ function ObservedMessageIds({ value }) {
|
|
|
262
390
|
}, [value]);
|
|
263
391
|
const [open, setOpen] = useState(false);
|
|
264
392
|
if (ids.length === 0) return null;
|
|
265
|
-
return /* @__PURE__ */
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
{
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
393
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded border border-border/60 bg-background/50 overflow-hidden", children: [
|
|
394
|
+
/* @__PURE__ */ jsx(
|
|
395
|
+
DisclosureHeader,
|
|
396
|
+
{
|
|
397
|
+
className: "w-full",
|
|
398
|
+
open,
|
|
399
|
+
onClick: () => setOpen((v) => !v),
|
|
400
|
+
icon: /* @__PURE__ */ jsx(MessageSquare, {}),
|
|
401
|
+
title: "Observed messages",
|
|
402
|
+
line: "Message IDs already fed into memory",
|
|
403
|
+
end: ids.length
|
|
404
|
+
}
|
|
405
|
+
),
|
|
406
|
+
open && /* @__PURE__ */ jsx("div", { className: "p-2 max-h-48 overflow-y-auto bg-background/50", children: /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1", children: ids.map((id) => /* @__PURE__ */ jsx(
|
|
407
|
+
"code",
|
|
408
|
+
{
|
|
409
|
+
className: "font-mono text-[10px] px-1.5 py-0.5 rounded bg-muted/40 text-muted-foreground hover:text-foreground",
|
|
410
|
+
title: id,
|
|
411
|
+
children: id.startsWith("om-") ? id : id.slice(0, 8)
|
|
412
|
+
},
|
|
413
|
+
id
|
|
414
|
+
)) }) })
|
|
415
|
+
] });
|
|
285
416
|
}
|
|
286
417
|
function KeyValueBlock({
|
|
287
418
|
title,
|
|
@@ -293,7 +424,19 @@ function KeyValueBlock({
|
|
|
293
424
|
return Object.entries(value);
|
|
294
425
|
}, [value]);
|
|
295
426
|
if (entries.length === 0) return null;
|
|
296
|
-
return /* @__PURE__ */
|
|
427
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded border border-border/60 bg-background/50 overflow-hidden", children: [
|
|
428
|
+
/* @__PURE__ */ jsxs("div", { className: "px-2 py-1 bg-muted/20 border-b border-border/60", children: [
|
|
429
|
+
/* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium text-foreground", children: title }),
|
|
430
|
+
/* @__PURE__ */ jsx("div", { className: "text-[10px] text-muted-foreground truncate", children: subtitle })
|
|
431
|
+
] }),
|
|
432
|
+
/* @__PURE__ */ jsx("div", { className: "p-2 flex flex-col gap-1 text-[11px]", children: entries.map(([key, val]) => /* @__PURE__ */ jsxs("div", { className: "flex gap-2 min-w-0", children: [
|
|
433
|
+
/* @__PURE__ */ jsxs("span", { className: "font-mono text-muted-foreground shrink-0", children: [
|
|
434
|
+
key,
|
|
435
|
+
":"
|
|
436
|
+
] }),
|
|
437
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-foreground break-all min-w-0", children: formatScalar(val) })
|
|
438
|
+
] }, key)) })
|
|
439
|
+
] });
|
|
297
440
|
}
|
|
298
441
|
function formatScalar(value) {
|
|
299
442
|
if (value === null) return "null";
|
|
@@ -313,17 +456,20 @@ function StatTile({
|
|
|
313
456
|
value,
|
|
314
457
|
tone
|
|
315
458
|
}) {
|
|
316
|
-
return /* @__PURE__ */
|
|
317
|
-
"div",
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
459
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded border border-border/60 bg-muted/10 px-2 py-1.5", children: [
|
|
460
|
+
/* @__PURE__ */ jsx("div", { className: "text-[10px] uppercase tracking-wide text-muted-foreground/70 truncate", children: label }),
|
|
461
|
+
/* @__PURE__ */ jsx(
|
|
462
|
+
"div",
|
|
463
|
+
{
|
|
464
|
+
className: cn(
|
|
465
|
+
"text-xs font-mono font-medium truncate",
|
|
466
|
+
tone === "emerald" && "text-emerald-500",
|
|
467
|
+
!tone && "text-foreground"
|
|
468
|
+
),
|
|
469
|
+
children: value
|
|
470
|
+
}
|
|
471
|
+
)
|
|
472
|
+
] });
|
|
327
473
|
}
|
|
328
474
|
function KeyValue({
|
|
329
475
|
label,
|
|
@@ -331,19 +477,25 @@ function KeyValue({
|
|
|
331
477
|
mono,
|
|
332
478
|
tone
|
|
333
479
|
}) {
|
|
334
|
-
return /* @__PURE__ */
|
|
335
|
-
"span",
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
480
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex gap-1.5 min-w-0", children: [
|
|
481
|
+
/* @__PURE__ */ jsxs("span", { className: "text-muted-foreground/80 shrink-0", children: [
|
|
482
|
+
label,
|
|
483
|
+
":"
|
|
484
|
+
] }),
|
|
485
|
+
/* @__PURE__ */ jsx(
|
|
486
|
+
"span",
|
|
487
|
+
{
|
|
488
|
+
className: cn(
|
|
489
|
+
"truncate",
|
|
490
|
+
mono && "font-mono text-[11px]",
|
|
491
|
+
tone === "emerald" && "text-emerald-500",
|
|
492
|
+
!tone && "text-foreground"
|
|
493
|
+
),
|
|
494
|
+
title: value,
|
|
495
|
+
children: value
|
|
496
|
+
}
|
|
497
|
+
)
|
|
498
|
+
] });
|
|
347
499
|
}
|
|
348
500
|
function TextPayload({
|
|
349
501
|
title,
|
|
@@ -363,16 +515,32 @@ function TextPayload({
|
|
|
363
515
|
setCopied(true);
|
|
364
516
|
setTimeout(() => setCopied(false), 1500);
|
|
365
517
|
}, [text]);
|
|
366
|
-
return /* @__PURE__ */
|
|
367
|
-
"
|
|
368
|
-
|
|
369
|
-
className:
|
|
370
|
-
"
|
|
371
|
-
|
|
372
|
-
)
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
518
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded border border-border/60 bg-background/50 overflow-hidden", children: [
|
|
519
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 px-2 py-1 bg-muted/20 border-b border-border/60", children: [
|
|
520
|
+
icon,
|
|
521
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
522
|
+
/* @__PURE__ */ jsx("div", { className: "text-[11px] font-medium text-foreground", children: title }),
|
|
523
|
+
/* @__PURE__ */ jsx("div", { className: "text-[10px] text-muted-foreground truncate", children: subtitle })
|
|
524
|
+
] }),
|
|
525
|
+
hasText && text && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
526
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[10px] font-mono text-muted-foreground shrink-0", children: [
|
|
527
|
+
formatCount(text.length),
|
|
528
|
+
" chars"
|
|
529
|
+
] }),
|
|
530
|
+
/* @__PURE__ */ jsx(Button, { variant: "quiet", icon: copied ? /* @__PURE__ */ jsx(Check, {}) : /* @__PURE__ */ jsx(Copy, {}), glyphTone: copied ? "success" : void 0, onClick: handleCopy, title: "Copy", "aria-label": "Copy", className: "shrink-0" })
|
|
531
|
+
] })
|
|
532
|
+
] }),
|
|
533
|
+
hasText ? /* @__PURE__ */ jsx(
|
|
534
|
+
"pre",
|
|
535
|
+
{
|
|
536
|
+
className: cn(
|
|
537
|
+
"p-2 text-[11px] font-mono text-foreground whitespace-pre-wrap break-words overflow-y-auto leading-relaxed",
|
|
538
|
+
maxHeightClass
|
|
539
|
+
),
|
|
540
|
+
children: text
|
|
541
|
+
}
|
|
542
|
+
) : /* @__PURE__ */ jsx("div", { className: "p-2 text-[11px] text-muted-foreground italic", children: "(empty)" })
|
|
543
|
+
] });
|
|
376
544
|
}
|
|
377
545
|
export {
|
|
378
546
|
MemoryStateInspector
|