@flanksource/clicky-ui 0.3.15 → 0.3.17
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/NOTICE.md +10 -0
- package/dist/ai.cjs +33 -4
- package/dist/ai.cjs.map +1 -1
- package/dist/ai.js +31 -2
- package/dist/ai.js.map +1 -1
- package/dist/chat.cjs +6 -0
- package/dist/chat.cjs.map +1 -1
- package/dist/chat.js +7 -1
- package/dist/chat.js.map +1 -1
- package/dist/components/Combobox.cjs +92 -170
- package/dist/components/Combobox.cjs.map +1 -1
- package/dist/components/Combobox.d.ts +2 -111
- package/dist/components/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox.js +95 -173
- package/dist/components/Combobox.js.map +1 -1
- package/dist/components/ComboboxActions.cjs +70 -0
- package/dist/components/ComboboxActions.cjs.map +1 -0
- package/dist/components/ComboboxActions.d.ts +8 -0
- package/dist/components/ComboboxActions.d.ts.map +1 -0
- package/dist/components/ComboboxActions.js +70 -0
- package/dist/components/ComboboxActions.js.map +1 -0
- package/dist/components/ComboboxMenu.cjs +160 -0
- package/dist/components/ComboboxMenu.cjs.map +1 -0
- package/dist/components/ComboboxMenu.d.ts +22 -0
- package/dist/components/ComboboxMenu.d.ts.map +1 -0
- package/dist/components/ComboboxMenu.js +160 -0
- package/dist/components/ComboboxMenu.js.map +1 -0
- package/dist/components/EndpointSelector.cjs +407 -0
- package/dist/components/EndpointSelector.cjs.map +1 -0
- package/dist/components/EndpointSelector.d.ts +3 -0
- package/dist/components/EndpointSelector.d.ts.map +1 -0
- package/dist/components/EndpointSelector.js +407 -0
- package/dist/components/EndpointSelector.js.map +1 -0
- package/dist/components/EndpointSelector.model.d.ts +52 -0
- package/dist/components/EndpointSelector.model.d.ts.map +1 -0
- package/dist/components/FilterBar.cjs +12 -0
- package/dist/components/FilterBar.cjs.map +1 -1
- package/dist/components/FilterBar.d.ts +4 -0
- package/dist/components/FilterBar.d.ts.map +1 -1
- package/dist/components/FilterBar.js +12 -0
- package/dist/components/FilterBar.js.map +1 -1
- package/dist/components/InputField.cjs +11 -12
- package/dist/components/InputField.cjs.map +1 -1
- package/dist/components/InputField.d.ts +7 -0
- package/dist/components/InputField.d.ts.map +1 -1
- package/dist/components/InputField.js +12 -13
- package/dist/components/InputField.js.map +1 -1
- package/dist/components/JsonSchemaForm.cjs +22 -16
- package/dist/components/JsonSchemaForm.cjs.map +1 -1
- package/dist/components/JsonSchemaForm.d.ts +1 -1
- package/dist/components/JsonSchemaForm.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm.js +22 -16
- package/dist/components/JsonSchemaForm.js.map +1 -1
- package/dist/components/MultiSelect.cjs +3 -3
- package/dist/components/MultiSelect.cjs.map +1 -1
- package/dist/components/MultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect.js +3 -3
- package/dist/components/MultiSelect.js.map +1 -1
- package/dist/components/SecretKeySelector.cjs +150 -77
- package/dist/components/SecretKeySelector.cjs.map +1 -1
- package/dist/components/SecretKeySelector.d.ts.map +1 -1
- package/dist/components/SecretKeySelector.js +151 -78
- package/dist/components/SecretKeySelector.js.map +1 -1
- package/dist/components/WorkloadPicker.cjs +2 -1
- package/dist/components/WorkloadPicker.cjs.map +1 -1
- package/dist/components/WorkloadPicker.d.ts +6 -1
- package/dist/components/WorkloadPicker.d.ts.map +1 -1
- package/dist/components/WorkloadPicker.js +2 -1
- package/dist/components/WorkloadPicker.js.map +1 -1
- package/dist/components/combobox-types.d.ts +107 -0
- package/dist/components/combobox-types.d.ts.map +1 -0
- package/dist/components/combobox-utils.cjs +21 -0
- package/dist/components/combobox-utils.cjs.map +1 -0
- package/dist/components/combobox-utils.d.ts +15 -0
- package/dist/components/combobox-utils.d.ts.map +1 -0
- package/dist/components/combobox-utils.js +21 -0
- package/dist/components/combobox-utils.js.map +1 -0
- package/dist/components/endpoint-port.cjs +12 -0
- package/dist/components/endpoint-port.cjs.map +1 -0
- package/dist/components/endpoint-port.d.ts +4 -0
- package/dist/components/endpoint-port.d.ts.map +1 -0
- package/dist/components/endpoint-port.js +12 -0
- package/dist/components/endpoint-port.js.map +1 -0
- package/dist/components/json-schema-form-array.cjs +12 -23
- package/dist/components/json-schema-form-array.cjs.map +1 -1
- package/dist/components/json-schema-form-array.d.ts +1 -1
- package/dist/components/json-schema-form-array.d.ts.map +1 -1
- package/dist/components/json-schema-form-array.js +12 -23
- package/dist/components/json-schema-form-array.js.map +1 -1
- package/dist/components/json-schema-form-discriminator.cjs +6 -2
- package/dist/components/json-schema-form-discriminator.cjs.map +1 -1
- package/dist/components/json-schema-form-discriminator.d.ts.map +1 -1
- package/dist/components/json-schema-form-discriminator.js +6 -2
- package/dist/components/json-schema-form-discriminator.js.map +1 -1
- package/dist/components/json-schema-form-error-display.cjs +50 -0
- package/dist/components/json-schema-form-error-display.cjs.map +1 -0
- package/dist/components/json-schema-form-error-display.d.ts +12 -0
- package/dist/components/json-schema-form-error-display.d.ts.map +1 -0
- package/dist/components/json-schema-form-error-display.js +50 -0
- package/dist/components/json-schema-form-error-display.js.map +1 -0
- package/dist/components/json-schema-form-error-types.d.ts +26 -0
- package/dist/components/json-schema-form-error-types.d.ts.map +1 -0
- package/dist/components/json-schema-form-errors.cjs +169 -0
- package/dist/components/json-schema-form-errors.cjs.map +1 -0
- package/dist/components/json-schema-form-errors.d.ts +14 -0
- package/dist/components/json-schema-form-errors.d.ts.map +1 -0
- package/dist/components/json-schema-form-errors.js +169 -0
- package/dist/components/json-schema-form-errors.js.map +1 -0
- package/dist/components/json-schema-form-object.cjs +12 -2
- package/dist/components/json-schema-form-object.cjs.map +1 -1
- package/dist/components/json-schema-form-object.d.ts.map +1 -1
- package/dist/components/json-schema-form-object.js +12 -2
- package/dist/components/json-schema-form-object.js.map +1 -1
- package/dist/components/json-schema-form-refs.cjs +84 -19
- package/dist/components/json-schema-form-refs.cjs.map +1 -1
- package/dist/components/json-schema-form-refs.d.ts.map +1 -1
- package/dist/components/json-schema-form-refs.js +84 -19
- package/dist/components/json-schema-form-refs.js.map +1 -1
- package/dist/components/json-schema-form-render.cjs +33 -10
- package/dist/components/json-schema-form-render.cjs.map +1 -1
- package/dist/components/json-schema-form-render.d.ts.map +1 -1
- package/dist/components/json-schema-form-render.js +34 -11
- package/dist/components/json-schema-form-render.js.map +1 -1
- package/dist/components/json-schema-form-resolve.cjs +16 -4
- package/dist/components/json-schema-form-resolve.cjs.map +1 -1
- package/dist/components/json-schema-form-resolve.d.ts +1 -0
- package/dist/components/json-schema-form-resolve.d.ts.map +1 -1
- package/dist/components/json-schema-form-resolve.js +17 -5
- package/dist/components/json-schema-form-resolve.js.map +1 -1
- package/dist/components/json-schema-form-types.d.ts +4 -3
- package/dist/components/json-schema-form-types.d.ts.map +1 -1
- package/dist/components.cjs +13 -0
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.ts +8 -1
- package/dist/components.d.ts.map +1 -1
- package/dist/components.js +15 -2
- package/dist/components.js.map +1 -1
- package/dist/data/DataTable.cjs +205 -14
- package/dist/data/DataTable.cjs.map +1 -1
- package/dist/data/DataTable.d.ts +41 -0
- package/dist/data/DataTable.d.ts.map +1 -1
- package/dist/data/DataTable.grouping.cjs +21 -0
- package/dist/data/DataTable.grouping.cjs.map +1 -0
- package/dist/data/DataTable.grouping.d.ts +26 -0
- package/dist/data/DataTable.grouping.d.ts.map +1 -0
- package/dist/data/DataTable.grouping.js +21 -0
- package/dist/data/DataTable.grouping.js.map +1 -0
- package/dist/data/DataTable.js +205 -14
- package/dist/data/DataTable.js.map +1 -1
- package/dist/data/Markdown.cjs +45 -1
- package/dist/data/Markdown.cjs.map +1 -1
- package/dist/data/Markdown.d.ts +3 -2
- package/dist/data/Markdown.d.ts.map +1 -1
- package/dist/data/Markdown.js +45 -1
- package/dist/data/Markdown.js.map +1 -1
- package/dist/data/MarkdownEditor.cjs +4 -3
- package/dist/data/MarkdownEditor.cjs.map +1 -1
- package/dist/data/MarkdownEditor.d.ts +6 -2
- package/dist/data/MarkdownEditor.d.ts.map +1 -1
- package/dist/data/MarkdownEditor.js +4 -3
- package/dist/data/MarkdownEditor.js.map +1 -1
- package/dist/data/ServerTimingBadge.cjs +64 -0
- package/dist/data/ServerTimingBadge.cjs.map +1 -0
- package/dist/data/ServerTimingBadge.d.ts +9 -0
- package/dist/data/ServerTimingBadge.d.ts.map +1 -0
- package/dist/data/ServerTimingBadge.js +64 -0
- package/dist/data/ServerTimingBadge.js.map +1 -0
- package/dist/data/StatStrip.cjs +99 -0
- package/dist/data/StatStrip.cjs.map +1 -0
- package/dist/data/StatStrip.d.ts +41 -0
- package/dist/data/StatStrip.d.ts.map +1 -0
- package/dist/data/StatStrip.js +99 -0
- package/dist/data/StatStrip.js.map +1 -0
- package/dist/data/TaskManager.cjs +20 -1
- package/dist/data/TaskManager.cjs.map +1 -1
- package/dist/data/TaskManager.d.ts +3 -1
- package/dist/data/TaskManager.d.ts.map +1 -1
- package/dist/data/TaskManager.js +20 -1
- package/dist/data/TaskManager.js.map +1 -1
- package/dist/data/TaskManagerButton.cjs +49 -0
- package/dist/data/TaskManagerButton.cjs.map +1 -0
- package/dist/data/TaskManagerButton.d.ts +8 -0
- package/dist/data/TaskManagerButton.d.ts.map +1 -0
- package/dist/data/TaskManagerButton.js +49 -0
- package/dist/data/TaskManagerButton.js.map +1 -0
- package/dist/data/TaskProcessDetails.cjs +113 -0
- package/dist/data/TaskProcessDetails.cjs.map +1 -0
- package/dist/data/TaskProcessDetails.d.ts +6 -0
- package/dist/data/TaskProcessDetails.d.ts.map +1 -0
- package/dist/data/TaskProcessDetails.js +113 -0
- package/dist/data/TaskProcessDetails.js.map +1 -0
- package/dist/data/TaskProgress.cjs +106 -19
- package/dist/data/TaskProgress.cjs.map +1 -1
- package/dist/data/TaskProgress.d.ts +4 -2
- package/dist/data/TaskProgress.d.ts.map +1 -1
- package/dist/data/TaskProgress.js +107 -20
- package/dist/data/TaskProgress.js.map +1 -1
- package/dist/data/TaskSnapshot.cjs.map +1 -1
- package/dist/data/TaskSnapshot.d.ts +43 -0
- package/dist/data/TaskSnapshot.d.ts.map +1 -1
- package/dist/data/TaskSnapshot.js.map +1 -1
- package/dist/data/Tree.cjs +91 -82
- package/dist/data/Tree.cjs.map +1 -1
- package/dist/data/Tree.d.ts +3 -1
- package/dist/data/Tree.d.ts.map +1 -1
- package/dist/data/Tree.js +91 -82
- package/dist/data/Tree.js.map +1 -1
- package/dist/data/TreeNode.cjs +3 -0
- package/dist/data/TreeNode.cjs.map +1 -1
- package/dist/data/TreeNode.d.ts +2 -1
- package/dist/data/TreeNode.d.ts.map +1 -1
- package/dist/data/TreeNode.js +3 -0
- package/dist/data/TreeNode.js.map +1 -1
- package/dist/data/ai/ChatWindow.cjs +18 -141
- package/dist/data/ai/ChatWindow.cjs.map +1 -1
- package/dist/data/ai/ChatWindow.d.ts +2 -40
- package/dist/data/ai/ChatWindow.d.ts.map +1 -1
- package/dist/data/ai/ChatWindow.js +15 -138
- package/dist/data/ai/ChatWindow.js.map +1 -1
- package/dist/data/ai/ChatWindow.models.cjs +11 -0
- package/dist/data/ai/ChatWindow.models.cjs.map +1 -0
- package/dist/data/ai/ChatWindow.models.d.ts +3 -0
- package/dist/data/ai/ChatWindow.models.d.ts.map +1 -0
- package/dist/data/ai/ChatWindow.models.js +11 -0
- package/dist/data/ai/ChatWindow.models.js.map +1 -0
- package/dist/data/ai/ChatWindow.preferences.cjs +57 -0
- package/dist/data/ai/ChatWindow.preferences.cjs.map +1 -0
- package/dist/data/ai/ChatWindow.preferences.d.ts +13 -0
- package/dist/data/ai/ChatWindow.preferences.d.ts.map +1 -0
- package/dist/data/ai/ChatWindow.preferences.js +57 -0
- package/dist/data/ai/ChatWindow.preferences.js.map +1 -0
- package/dist/data/ai/ChatWindow.thread-status.cjs +14 -0
- package/dist/data/ai/ChatWindow.thread-status.cjs.map +1 -0
- package/dist/data/ai/ChatWindow.thread-status.d.ts +5 -0
- package/dist/data/ai/ChatWindow.thread-status.d.ts.map +1 -0
- package/dist/data/ai/ChatWindow.thread-status.js +14 -0
- package/dist/data/ai/ChatWindow.thread-status.js.map +1 -0
- package/dist/data/ai/ChatWindow.thread.cjs +68 -0
- package/dist/data/ai/ChatWindow.thread.cjs.map +1 -0
- package/dist/data/ai/ChatWindow.thread.d.ts +16 -0
- package/dist/data/ai/ChatWindow.thread.d.ts.map +1 -0
- package/dist/data/ai/ChatWindow.thread.js +68 -0
- package/dist/data/ai/ChatWindow.thread.js.map +1 -0
- package/dist/data/ai/ChatWindow.tool-catalog.cjs +99 -0
- package/dist/data/ai/ChatWindow.tool-catalog.cjs.map +1 -0
- package/dist/data/ai/ChatWindow.tool-catalog.d.ts +3 -0
- package/dist/data/ai/ChatWindow.tool-catalog.d.ts.map +1 -0
- package/dist/data/ai/ChatWindow.tool-catalog.js +99 -0
- package/dist/data/ai/ChatWindow.tool-catalog.js.map +1 -0
- package/dist/data/ai/ChatWindow.types.d.ts +41 -0
- package/dist/data/ai/ChatWindow.types.d.ts.map +1 -0
- package/dist/data/ai/ContextBadges.cjs +76 -46
- package/dist/data/ai/ContextBadges.cjs.map +1 -1
- package/dist/data/ai/ContextBadges.d.ts.map +1 -1
- package/dist/data/ai/ContextBadges.js +77 -47
- package/dist/data/ai/ContextBadges.js.map +1 -1
- package/dist/data/ai/PromptPicker/PromptPicker.cjs +151 -32
- package/dist/data/ai/PromptPicker/PromptPicker.cjs.map +1 -1
- package/dist/data/ai/PromptPicker/PromptPicker.d.ts +7 -4
- package/dist/data/ai/PromptPicker/PromptPicker.d.ts.map +1 -1
- package/dist/data/ai/PromptPicker/PromptPicker.js +152 -33
- package/dist/data/ai/PromptPicker/PromptPicker.js.map +1 -1
- package/dist/data/ai/PromptPicker/PromptSourceRepair.cjs +133 -0
- package/dist/data/ai/PromptPicker/PromptSourceRepair.cjs.map +1 -0
- package/dist/data/ai/PromptPicker/PromptSourceRepair.d.ts +11 -0
- package/dist/data/ai/PromptPicker/PromptSourceRepair.d.ts.map +1 -0
- package/dist/data/ai/PromptPicker/PromptSourceRepair.js +133 -0
- package/dist/data/ai/PromptPicker/PromptSourceRepair.js.map +1 -0
- package/dist/data/ai/PromptPicker/index.d.ts +2 -1
- package/dist/data/ai/PromptPicker/index.d.ts.map +1 -1
- package/dist/data/ai/PromptPicker/types.cjs +7 -0
- package/dist/data/ai/PromptPicker/types.cjs.map +1 -0
- package/dist/data/ai/PromptPicker/types.d.ts +18 -2
- package/dist/data/ai/PromptPicker/types.d.ts.map +1 -1
- package/dist/data/ai/PromptPicker/types.js +7 -0
- package/dist/data/ai/PromptPicker/types.js.map +1 -0
- package/dist/data/ai/PromptRunEditor/index.cjs +171 -91
- package/dist/data/ai/PromptRunEditor/index.cjs.map +1 -1
- package/dist/data/ai/PromptRunEditor/index.d.ts +9 -9
- package/dist/data/ai/PromptRunEditor/index.d.ts.map +1 -1
- package/dist/data/ai/PromptRunEditor/index.js +175 -95
- package/dist/data/ai/PromptRunEditor/index.js.map +1 -1
- package/dist/data/ai/PromptRunEditor/model.cjs +47 -0
- package/dist/data/ai/PromptRunEditor/model.cjs.map +1 -0
- package/dist/data/ai/PromptRunEditor/model.d.ts +17 -0
- package/dist/data/ai/PromptRunEditor/model.d.ts.map +1 -0
- package/dist/data/ai/PromptRunEditor/model.js +47 -0
- package/dist/data/ai/PromptRunEditor/model.js.map +1 -0
- package/dist/data/ai/RuntimeBar.cjs +408 -0
- package/dist/data/ai/RuntimeBar.cjs.map +1 -0
- package/dist/data/ai/RuntimeBar.d.ts +20 -0
- package/dist/data/ai/RuntimeBar.d.ts.map +1 -0
- package/dist/data/ai/RuntimeBar.js +408 -0
- package/dist/data/ai/RuntimeBar.js.map +1 -0
- package/dist/data/ai/RuntimeBar.model.cjs +14 -0
- package/dist/data/ai/RuntimeBar.model.cjs.map +1 -0
- package/dist/data/ai/RuntimeBar.model.d.ts +10 -0
- package/dist/data/ai/RuntimeBar.model.d.ts.map +1 -0
- package/dist/data/ai/RuntimeBar.model.js +14 -0
- package/dist/data/ai/RuntimeBar.model.js.map +1 -0
- package/dist/data/ai/RuntimeBarCombo.cjs +359 -0
- package/dist/data/ai/RuntimeBarCombo.cjs.map +1 -0
- package/dist/data/ai/RuntimeBarCombo.d.ts +22 -0
- package/dist/data/ai/RuntimeBarCombo.d.ts.map +1 -0
- package/dist/data/ai/RuntimeBarCombo.js +359 -0
- package/dist/data/ai/RuntimeBarCombo.js.map +1 -0
- package/dist/data/ai/SessionChatComposer.cjs +56 -0
- package/dist/data/ai/SessionChatComposer.cjs.map +1 -0
- package/dist/data/ai/SessionChatComposer.d.ts +24 -0
- package/dist/data/ai/SessionChatComposer.d.ts.map +1 -0
- package/dist/data/ai/SessionChatComposer.js +56 -0
- package/dist/data/ai/SessionChatComposer.js.map +1 -0
- package/dist/data/ai/SessionInspector.cjs +222 -382
- package/dist/data/ai/SessionInspector.cjs.map +1 -1
- package/dist/data/ai/SessionInspector.collection-types.d.ts +55 -0
- package/dist/data/ai/SessionInspector.collection-types.d.ts.map +1 -0
- package/dist/data/ai/SessionInspector.collection.cjs +377 -0
- package/dist/data/ai/SessionInspector.collection.cjs.map +1 -0
- package/dist/data/ai/SessionInspector.collection.d.ts +15 -0
- package/dist/data/ai/SessionInspector.collection.d.ts.map +1 -0
- package/dist/data/ai/SessionInspector.collection.js +377 -0
- package/dist/data/ai/SessionInspector.collection.js.map +1 -0
- package/dist/data/ai/SessionInspector.d.ts +9 -4
- package/dist/data/ai/SessionInspector.d.ts.map +1 -1
- package/dist/data/ai/SessionInspector.files.cjs +162 -0
- package/dist/data/ai/SessionInspector.files.cjs.map +1 -0
- package/dist/data/ai/SessionInspector.files.d.ts +5 -0
- package/dist/data/ai/SessionInspector.files.d.ts.map +1 -0
- package/dist/data/ai/SessionInspector.files.js +162 -0
- package/dist/data/ai/SessionInspector.files.js.map +1 -0
- package/dist/data/ai/SessionInspector.hierarchy-state.cjs +148 -0
- package/dist/data/ai/SessionInspector.hierarchy-state.cjs.map +1 -0
- package/dist/data/ai/SessionInspector.hierarchy-state.d.ts +15 -0
- package/dist/data/ai/SessionInspector.hierarchy-state.d.ts.map +1 -0
- package/dist/data/ai/SessionInspector.hierarchy-state.js +148 -0
- package/dist/data/ai/SessionInspector.hierarchy-state.js.map +1 -0
- package/dist/data/ai/SessionInspector.hierarchy.cjs +256 -0
- package/dist/data/ai/SessionInspector.hierarchy.cjs.map +1 -0
- package/dist/data/ai/SessionInspector.hierarchy.d.ts +9 -0
- package/dist/data/ai/SessionInspector.hierarchy.d.ts.map +1 -0
- package/dist/data/ai/SessionInspector.hierarchy.js +256 -0
- package/dist/data/ai/SessionInspector.hierarchy.js.map +1 -0
- package/dist/data/ai/SessionInspector.js +224 -384
- package/dist/data/ai/SessionInspector.js.map +1 -1
- package/dist/data/ai/SessionInspector.model.cjs +125 -0
- package/dist/data/ai/SessionInspector.model.cjs.map +1 -0
- package/dist/data/ai/SessionInspector.model.d.ts +14 -0
- package/dist/data/ai/SessionInspector.model.d.ts.map +1 -0
- package/dist/data/ai/SessionInspector.model.js +125 -0
- package/dist/data/ai/SessionInspector.model.js.map +1 -0
- package/dist/data/ai/SessionInspector.panels.cjs +265 -0
- package/dist/data/ai/SessionInspector.panels.cjs.map +1 -0
- package/dist/data/ai/SessionInspector.panels.d.ts +10 -0
- package/dist/data/ai/SessionInspector.panels.d.ts.map +1 -0
- package/dist/data/ai/SessionInspector.panels.js +265 -0
- package/dist/data/ai/SessionInspector.panels.js.map +1 -0
- package/dist/data/ai/SessionInspector.plan.cjs +77 -0
- package/dist/data/ai/SessionInspector.plan.cjs.map +1 -0
- package/dist/data/ai/SessionInspector.plan.d.ts +6 -0
- package/dist/data/ai/SessionInspector.plan.d.ts.map +1 -0
- package/dist/data/ai/SessionInspector.plan.js +77 -0
- package/dist/data/ai/SessionInspector.plan.js.map +1 -0
- package/dist/data/ai/SessionInspector.summary.cjs +182 -0
- package/dist/data/ai/SessionInspector.summary.cjs.map +1 -0
- package/dist/data/ai/SessionInspector.summary.d.ts +8 -0
- package/dist/data/ai/SessionInspector.summary.d.ts.map +1 -0
- package/dist/data/ai/SessionInspector.summary.js +182 -0
- package/dist/data/ai/SessionInspector.summary.js.map +1 -0
- package/dist/data/ai/SessionInspector.transcript.cjs +94 -0
- package/dist/data/ai/SessionInspector.transcript.cjs.map +1 -0
- package/dist/data/ai/SessionInspector.transcript.d.ts +7 -0
- package/dist/data/ai/SessionInspector.transcript.d.ts.map +1 -0
- package/dist/data/ai/SessionInspector.transcript.js +94 -0
- package/dist/data/ai/SessionInspector.transcript.js.map +1 -0
- package/dist/data/ai/SessionInspector.turns.d.ts +11 -0
- package/dist/data/ai/SessionInspector.turns.d.ts.map +1 -0
- package/dist/data/ai/SessionViewer.cjs +86 -121
- package/dist/data/ai/SessionViewer.cjs.map +1 -1
- package/dist/data/ai/SessionViewer.d.ts +8 -1
- package/dist/data/ai/SessionViewer.d.ts.map +1 -1
- package/dist/data/ai/SessionViewer.fixtures.d.ts +2 -0
- package/dist/data/ai/SessionViewer.fixtures.d.ts.map +1 -1
- package/dist/data/ai/SessionViewer.header.cjs +118 -0
- package/dist/data/ai/SessionViewer.header.cjs.map +1 -0
- package/dist/data/ai/SessionViewer.header.d.ts +11 -0
- package/dist/data/ai/SessionViewer.header.d.ts.map +1 -0
- package/dist/data/ai/SessionViewer.header.js +118 -0
- package/dist/data/ai/SessionViewer.header.js.map +1 -0
- package/dist/data/ai/SessionViewer.js +87 -122
- package/dist/data/ai/SessionViewer.js.map +1 -1
- package/dist/data/ai/SessionViewer.model.cjs +111 -39
- package/dist/data/ai/SessionViewer.model.cjs.map +1 -1
- package/dist/data/ai/SessionViewer.model.d.ts +6 -0
- package/dist/data/ai/SessionViewer.model.d.ts.map +1 -1
- package/dist/data/ai/SessionViewer.model.js +111 -39
- package/dist/data/ai/SessionViewer.model.js.map +1 -1
- package/dist/data/ai/SessionViewer.row-metadata.cjs +132 -0
- package/dist/data/ai/SessionViewer.row-metadata.cjs.map +1 -0
- package/dist/data/ai/SessionViewer.row-metadata.d.ts +14 -0
- package/dist/data/ai/SessionViewer.row-metadata.d.ts.map +1 -0
- package/dist/data/ai/SessionViewer.row-metadata.js +132 -0
- package/dist/data/ai/SessionViewer.row-metadata.js.map +1 -0
- package/dist/data/ai/SessionViewer.row-time.cjs +15 -0
- package/dist/data/ai/SessionViewer.row-time.cjs.map +1 -0
- package/dist/data/ai/SessionViewer.row-time.d.ts +3 -0
- package/dist/data/ai/SessionViewer.row-time.d.ts.map +1 -0
- package/dist/data/ai/SessionViewer.row-time.js +15 -0
- package/dist/data/ai/SessionViewer.row-time.js.map +1 -0
- package/dist/data/ai/SessionViewer.rows.cjs +37 -424
- package/dist/data/ai/SessionViewer.rows.cjs.map +1 -1
- package/dist/data/ai/SessionViewer.rows.d.ts +5 -2
- package/dist/data/ai/SessionViewer.rows.d.ts.map +1 -1
- package/dist/data/ai/SessionViewer.rows.js +31 -418
- package/dist/data/ai/SessionViewer.rows.js.map +1 -1
- package/dist/data/ai/SessionViewer.tool-details.cjs +65 -0
- package/dist/data/ai/SessionViewer.tool-details.cjs.map +1 -0
- package/dist/data/ai/SessionViewer.tool-details.d.ts +20 -0
- package/dist/data/ai/SessionViewer.tool-details.d.ts.map +1 -0
- package/dist/data/ai/SessionViewer.tool-details.js +65 -0
- package/dist/data/ai/SessionViewer.tool-details.js.map +1 -0
- package/dist/data/ai/SessionViewer.tool-row.cjs +404 -0
- package/dist/data/ai/SessionViewer.tool-row.cjs.map +1 -0
- package/dist/data/ai/SessionViewer.tool-row.d.ts +12 -0
- package/dist/data/ai/SessionViewer.tool-row.d.ts.map +1 -0
- package/dist/data/ai/SessionViewer.tool-row.js +404 -0
- package/dist/data/ai/SessionViewer.tool-row.js.map +1 -0
- package/dist/data/ai/SessionViewer.unified.d.ts +11 -2
- package/dist/data/ai/SessionViewer.unified.d.ts.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/CommitSection.cjs +44 -26
- package/dist/data/ai/SpecRuntimeEditor/CommitSection.cjs.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/CommitSection.d.ts.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/CommitSection.js +47 -29
- package/dist/data/ai/SpecRuntimeEditor/CommitSection.js.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/ModelSection.cjs +45 -153
- package/dist/data/ai/SpecRuntimeEditor/ModelSection.cjs.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/ModelSection.d.ts.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/ModelSection.js +51 -159
- package/dist/data/ai/SpecRuntimeEditor/ModelSection.js.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/PromptSection.cjs +0 -1
- package/dist/data/ai/SpecRuntimeEditor/PromptSection.cjs.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/PromptSection.d.ts.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/PromptSection.js +0 -1
- package/dist/data/ai/SpecRuntimeEditor/PromptSection.js.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/WorkspaceSection.cjs +0 -5
- package/dist/data/ai/SpecRuntimeEditor/WorkspaceSection.cjs.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/WorkspaceSection.d.ts.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/WorkspaceSection.js +0 -5
- package/dist/data/ai/SpecRuntimeEditor/WorkspaceSection.js.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/fields.js +1 -1
- package/dist/data/ai/SpecRuntimeEditor/summaries.cjs.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/summaries.d.ts.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/summaries.js.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/update.cjs +19 -6
- package/dist/data/ai/SpecRuntimeEditor/update.cjs.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/update.d.ts +5 -2
- package/dist/data/ai/SpecRuntimeEditor/update.d.ts.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor/update.js +19 -6
- package/dist/data/ai/SpecRuntimeEditor/update.js.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor.model.cjs +67 -10
- package/dist/data/ai/SpecRuntimeEditor.model.cjs.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor.model.d.ts +31 -4
- package/dist/data/ai/SpecRuntimeEditor.model.d.ts.map +1 -1
- package/dist/data/ai/SpecRuntimeEditor.model.js +67 -10
- package/dist/data/ai/SpecRuntimeEditor.model.js.map +1 -1
- package/dist/data/ai/ThreadPicker.cjs.map +1 -1
- package/dist/data/ai/ThreadPicker.d.ts +2 -0
- package/dist/data/ai/ThreadPicker.d.ts.map +1 -1
- package/dist/data/ai/ThreadPicker.js.map +1 -1
- package/dist/data/ai/ToolPreferences.cjs +2 -1
- package/dist/data/ai/ToolPreferences.cjs.map +1 -1
- package/dist/data/ai/ToolPreferences.d.ts.map +1 -1
- package/dist/data/ai/ToolPreferences.js +2 -1
- package/dist/data/ai/ToolPreferences.js.map +1 -1
- package/dist/data/ai/agent-action-icons.cjs +7 -10
- package/dist/data/ai/agent-action-icons.cjs.map +1 -1
- package/dist/data/ai/agent-action-icons.d.ts +1 -2
- package/dist/data/ai/agent-action-icons.d.ts.map +1 -1
- package/dist/data/ai/agent-action-icons.js +8 -11
- package/dist/data/ai/agent-action-icons.js.map +1 -1
- package/dist/data/ai/context.cjs.map +1 -1
- package/dist/data/ai/context.d.ts +4 -0
- package/dist/data/ai/context.d.ts.map +1 -1
- package/dist/data/ai/context.js.map +1 -1
- package/dist/data/ai/examples/sessions/claude-complete.cjs +513 -0
- package/dist/data/ai/examples/sessions/claude-complete.cjs.map +1 -0
- package/dist/data/ai/examples/sessions/claude-complete.d.ts +3 -0
- package/dist/data/ai/examples/sessions/claude-complete.d.ts.map +1 -0
- package/dist/data/ai/examples/sessions/claude-complete.js +513 -0
- package/dist/data/ai/examples/sessions/claude-complete.js.map +1 -0
- package/dist/data/ai/examples/sessions/claude.cjs +252 -0
- package/dist/data/ai/examples/sessions/claude.cjs.map +1 -0
- package/dist/data/ai/examples/sessions/claude.d.ts +3 -0
- package/dist/data/ai/examples/sessions/claude.d.ts.map +1 -0
- package/dist/data/ai/examples/sessions/claude.js +252 -0
- package/dist/data/ai/examples/sessions/claude.js.map +1 -0
- package/dist/data/ai/examples/sessions/codex-complete.cjs +394 -0
- package/dist/data/ai/examples/sessions/codex-complete.cjs.map +1 -0
- package/dist/data/ai/examples/sessions/codex-complete.d.ts +3 -0
- package/dist/data/ai/examples/sessions/codex-complete.d.ts.map +1 -0
- package/dist/data/ai/examples/sessions/codex-complete.js +394 -0
- package/dist/data/ai/examples/sessions/codex-complete.js.map +1 -0
- package/dist/data/ai/examples/sessions/codex.cjs +236 -0
- package/dist/data/ai/examples/sessions/codex.cjs.map +1 -0
- package/dist/data/ai/examples/sessions/codex.d.ts +3 -0
- package/dist/data/ai/examples/sessions/codex.d.ts.map +1 -0
- package/dist/data/ai/examples/sessions/codex.js +236 -0
- package/dist/data/ai/examples/sessions/codex.js.map +1 -0
- package/dist/data/ai/examples/sessions/index.cjs +21 -0
- package/dist/data/ai/examples/sessions/index.cjs.map +1 -0
- package/dist/data/ai/examples/sessions/index.d.ts +10 -0
- package/dist/data/ai/examples/sessions/index.d.ts.map +1 -0
- package/dist/data/ai/examples/sessions/index.js +21 -0
- package/dist/data/ai/examples/sessions/index.js.map +1 -0
- package/dist/data/ai/index.d.ts +9 -3
- package/dist/data/ai/index.d.ts.map +1 -1
- package/dist/data/ai/model-capabilities.cjs +12 -1
- package/dist/data/ai/model-capabilities.cjs.map +1 -1
- package/dist/data/ai/model-capabilities.d.ts +2 -6
- package/dist/data/ai/model-capabilities.d.ts.map +1 -1
- package/dist/data/ai/model-capabilities.js +12 -1
- package/dist/data/ai/model-capabilities.js.map +1 -1
- package/dist/data/ai/runtime-mode.cjs +72 -1
- package/dist/data/ai/runtime-mode.cjs.map +1 -1
- package/dist/data/ai/runtime-mode.d.ts +28 -0
- package/dist/data/ai/runtime-mode.d.ts.map +1 -1
- package/dist/data/ai/runtime-mode.js +73 -2
- package/dist/data/ai/runtime-mode.js.map +1 -1
- package/dist/data/cells/EntityCell.cjs +64 -0
- package/dist/data/cells/EntityCell.cjs.map +1 -0
- package/dist/data/cells/EntityCell.d.ts +27 -0
- package/dist/data/cells/EntityCell.d.ts.map +1 -0
- package/dist/data/cells/EntityCell.js +64 -0
- package/dist/data/cells/EntityCell.js.map +1 -0
- package/dist/data/chat/Attachment.cjs +53 -13
- package/dist/data/chat/Attachment.cjs.map +1 -1
- package/dist/data/chat/Attachment.d.ts +9 -3
- package/dist/data/chat/Attachment.d.ts.map +1 -1
- package/dist/data/chat/Attachment.js +54 -14
- package/dist/data/chat/Attachment.js.map +1 -1
- package/dist/data/chat/Chat.cjs +113 -36
- package/dist/data/chat/Chat.cjs.map +1 -1
- package/dist/data/chat/Chat.d.ts +11 -4
- package/dist/data/chat/Chat.d.ts.map +1 -1
- package/dist/data/chat/Chat.js +111 -34
- package/dist/data/chat/Chat.js.map +1 -1
- package/dist/data/chat/ContextMeter.cjs +240 -66
- package/dist/data/chat/ContextMeter.cjs.map +1 -1
- package/dist/data/chat/ContextMeter.d.ts +11 -3
- package/dist/data/chat/ContextMeter.d.ts.map +1 -1
- package/dist/data/chat/ContextMeter.js +241 -67
- package/dist/data/chat/ContextMeter.js.map +1 -1
- package/dist/data/chat/Conversation.cjs +55 -3
- package/dist/data/chat/Conversation.cjs.map +1 -1
- package/dist/data/chat/Conversation.d.ts +5 -1
- package/dist/data/chat/Conversation.d.ts.map +1 -1
- package/dist/data/chat/Conversation.js +55 -3
- package/dist/data/chat/Conversation.js.map +1 -1
- package/dist/data/chat/ModelSelector.cjs +8 -10
- package/dist/data/chat/ModelSelector.cjs.map +1 -1
- package/dist/data/chat/ModelSelector.d.ts.map +1 -1
- package/dist/data/chat/ModelSelector.js +9 -11
- package/dist/data/chat/ModelSelector.js.map +1 -1
- package/dist/data/chat/PromptInput.cjs +56 -5
- package/dist/data/chat/PromptInput.cjs.map +1 -1
- package/dist/data/chat/PromptInput.d.ts +10 -1
- package/dist/data/chat/PromptInput.d.ts.map +1 -1
- package/dist/data/chat/PromptInput.js +57 -6
- package/dist/data/chat/PromptInput.js.map +1 -1
- package/dist/data/chat/approval.cjs +21 -0
- package/dist/data/chat/approval.cjs.map +1 -0
- package/dist/data/chat/approval.d.ts +11 -0
- package/dist/data/chat/approval.d.ts.map +1 -0
- package/dist/data/chat/approval.js +21 -0
- package/dist/data/chat/approval.js.map +1 -0
- package/dist/data/chat/attachment-upload.cjs +33 -0
- package/dist/data/chat/attachment-upload.cjs.map +1 -0
- package/dist/data/chat/attachment-upload.d.ts +21 -0
- package/dist/data/chat/attachment-upload.d.ts.map +1 -0
- package/dist/data/chat/attachment-upload.js +33 -0
- package/dist/data/chat/attachment-upload.js.map +1 -0
- package/dist/data/chat/effort-icons.cjs +36 -6
- package/dist/data/chat/effort-icons.cjs.map +1 -1
- package/dist/data/chat/effort-icons.d.ts +6 -3
- package/dist/data/chat/effort-icons.d.ts.map +1 -1
- package/dist/data/chat/effort-icons.js +37 -7
- package/dist/data/chat/effort-icons.js.map +1 -1
- package/dist/data/chat/index.d.ts +3 -1
- package/dist/data/chat/index.d.ts.map +1 -1
- package/dist/data/chat/models.cjs +8 -0
- package/dist/data/chat/models.cjs.map +1 -0
- package/dist/data/chat/models.d.ts +11 -0
- package/dist/data/chat/models.d.ts.map +1 -0
- package/dist/data/chat/models.js +8 -0
- package/dist/data/chat/models.js.map +1 -0
- package/dist/data/chat/provider-icons.cjs +49 -16
- package/dist/data/chat/provider-icons.cjs.map +1 -1
- package/dist/data/chat/provider-icons.d.ts +2 -0
- package/dist/data/chat/provider-icons.d.ts.map +1 -1
- package/dist/data/chat/provider-icons.js +50 -17
- package/dist/data/chat/provider-icons.js.map +1 -1
- package/dist/data/chat/types.cjs.map +1 -1
- package/dist/data/chat/types.d.ts +21 -0
- package/dist/data/chat/types.d.ts.map +1 -1
- package/dist/data/chat/types.js.map +1 -1
- package/dist/data/examples/markdown-preview-mock.cjs +45 -0
- package/dist/data/examples/markdown-preview-mock.cjs.map +1 -0
- package/dist/data/examples/markdown-preview-mock.d.ts +23 -0
- package/dist/data/examples/markdown-preview-mock.d.ts.map +1 -0
- package/dist/data/examples/markdown-preview-mock.js +45 -0
- package/dist/data/examples/markdown-preview-mock.js.map +1 -0
- package/dist/data/examples/markdown-syntax.cjs +36 -0
- package/dist/data/examples/markdown-syntax.cjs.map +1 -0
- package/dist/data/examples/markdown-syntax.d.ts +12 -0
- package/dist/data/examples/markdown-syntax.d.ts.map +1 -0
- package/dist/data/examples/markdown-syntax.js +36 -0
- package/dist/data/examples/markdown-syntax.js.map +1 -0
- package/dist/data/examples/markdown-syntax.md.cjs +4 -0
- package/dist/data/examples/markdown-syntax.md.cjs.map +1 -0
- package/dist/data/examples/markdown-syntax.md.js +5 -0
- package/dist/data/examples/markdown-syntax.md.js.map +1 -0
- package/dist/data/server-timing.cjs +120 -0
- package/dist/data/server-timing.cjs.map +1 -0
- package/dist/data/server-timing.d.ts +11 -0
- package/dist/data/server-timing.d.ts.map +1 -0
- package/dist/data/server-timing.js +120 -0
- package/dist/data/server-timing.js.map +1 -0
- package/dist/data/task-process-details.cjs +48 -0
- package/dist/data/task-process-details.cjs.map +1 -0
- package/dist/data/task-process-details.d.ts +5 -0
- package/dist/data/task-process-details.d.ts.map +1 -0
- package/dist/data/task-process-details.js +48 -0
- package/dist/data/task-process-details.js.map +1 -0
- package/dist/data/version-info.cjs +3 -3
- package/dist/data/version-info.js +3 -3
- package/dist/data.cjs +37 -0
- package/dist/data.cjs.map +1 -1
- package/dist/data.d.ts +9 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +37 -0
- package/dist/data.js.map +1 -1
- package/dist/hooks/use-hotkey.cjs +98 -0
- package/dist/hooks/use-hotkey.cjs.map +1 -0
- package/dist/hooks/use-hotkey.d.ts +42 -0
- package/dist/hooks/use-hotkey.d.ts.map +1 -0
- package/dist/hooks/use-hotkey.js +98 -0
- package/dist/hooks/use-hotkey.js.map +1 -0
- package/dist/hooks/use-task-run.cjs +23 -1
- package/dist/hooks/use-task-run.cjs.map +1 -1
- package/dist/hooks/use-task-run.d.ts.map +1 -1
- package/dist/hooks/use-task-run.js +23 -1
- package/dist/hooks/use-task-run.js.map +1 -1
- package/dist/hooks.cjs +4 -0
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +4 -0
- package/dist/hooks.js.map +1 -1
- package/dist/icons/components/UiBank.cjs +15 -0
- package/dist/icons/components/UiBank.cjs.map +1 -0
- package/dist/icons/components/UiBank.d.ts +15 -0
- package/dist/icons/components/UiBank.d.ts.map +1 -0
- package/dist/icons/components/UiBank.js +15 -0
- package/dist/icons/components/UiBank.js.map +1 -0
- package/dist/icons/components/UiChartOfAccounts.cjs +15 -0
- package/dist/icons/components/UiChartOfAccounts.cjs.map +1 -0
- package/dist/icons/components/UiChartOfAccounts.d.ts +15 -0
- package/dist/icons/components/UiChartOfAccounts.d.ts.map +1 -0
- package/dist/icons/components/UiChartOfAccounts.js +15 -0
- package/dist/icons/components/UiChartOfAccounts.js.map +1 -0
- package/dist/icons/components/UiCloudUpload.cjs +15 -0
- package/dist/icons/components/UiCloudUpload.cjs.map +1 -0
- package/dist/icons/components/UiCloudUpload.d.ts +15 -0
- package/dist/icons/components/UiCloudUpload.d.ts.map +1 -0
- package/dist/icons/components/UiCloudUpload.js +15 -0
- package/dist/icons/components/UiCloudUpload.js.map +1 -0
- package/dist/icons/components/UiLedger.cjs +15 -0
- package/dist/icons/components/UiLedger.cjs.map +1 -0
- package/dist/icons/components/UiLedger.d.ts +15 -0
- package/dist/icons/components/UiLedger.d.ts.map +1 -0
- package/dist/icons/components/UiLedger.js +15 -0
- package/dist/icons/components/UiLedger.js.map +1 -0
- package/dist/icons/components/UiReceipt.cjs +15 -0
- package/dist/icons/components/UiReceipt.cjs.map +1 -0
- package/dist/icons/components/UiReceipt.d.ts +15 -0
- package/dist/icons/components/UiReceipt.d.ts.map +1 -0
- package/dist/icons/components/UiReceipt.js +15 -0
- package/dist/icons/components/UiReceipt.js.map +1 -0
- package/dist/icons/index.d.ts +10 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons.cjs +15 -0
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.js +15 -0
- package/dist/icons.js.map +1 -1
- package/dist/index.cjs +54 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +56 -2
- package/dist/index.js.map +1 -1
- package/dist/layout/AppShell.cjs +270 -238
- package/dist/layout/AppShell.cjs.map +1 -1
- package/dist/layout/AppShell.d.ts +9 -0
- package/dist/layout/AppShell.d.ts.map +1 -1
- package/dist/layout/AppShell.debug.cjs +53 -0
- package/dist/layout/AppShell.debug.cjs.map +1 -0
- package/dist/layout/AppShell.debug.d.ts +6 -0
- package/dist/layout/AppShell.debug.d.ts.map +1 -0
- package/dist/layout/AppShell.debug.js +53 -0
- package/dist/layout/AppShell.debug.js.map +1 -0
- package/dist/layout/AppShell.js +269 -237
- package/dist/layout/AppShell.js.map +1 -1
- package/dist/layout/AppShell.nav.cjs +90 -0
- package/dist/layout/AppShell.nav.cjs.map +1 -0
- package/dist/layout/AppShell.nav.d.ts +7 -0
- package/dist/layout/AppShell.nav.d.ts.map +1 -0
- package/dist/layout/AppShell.nav.js +90 -0
- package/dist/layout/AppShell.nav.js.map +1 -0
- package/dist/layout/AppSidebar.cjs +35 -5
- package/dist/layout/AppSidebar.cjs.map +1 -1
- package/dist/layout/AppSidebar.d.ts +4 -1
- package/dist/layout/AppSidebar.d.ts.map +1 -1
- package/dist/layout/AppSidebar.js +35 -5
- package/dist/layout/AppSidebar.js.map +1 -1
- package/dist/layout/Panel.cjs +25 -41
- package/dist/layout/Panel.cjs.map +1 -1
- package/dist/layout/Panel.d.ts +2 -1
- package/dist/layout/Panel.d.ts.map +1 -1
- package/dist/layout/Panel.js +26 -42
- package/dist/layout/Panel.js.map +1 -1
- package/dist/layout/PanelFrame.cjs +56 -0
- package/dist/layout/PanelFrame.cjs.map +1 -0
- package/dist/layout/PanelFrame.d.ts +15 -0
- package/dist/layout/PanelFrame.d.ts.map +1 -0
- package/dist/layout/PanelFrame.js +56 -0
- package/dist/layout/PanelFrame.js.map +1 -0
- package/dist/layout/Section.cjs +51 -41
- package/dist/layout/Section.cjs.map +1 -1
- package/dist/layout/Section.d.ts +3 -2
- package/dist/layout/Section.d.ts.map +1 -1
- package/dist/layout/Section.js +51 -41
- package/dist/layout/Section.js.map +1 -1
- package/dist/layout/content-width.cjs +8 -0
- package/dist/layout/content-width.cjs.map +1 -0
- package/dist/layout/content-width.d.ts +3 -0
- package/dist/layout/content-width.d.ts.map +1 -0
- package/dist/layout/content-width.js +8 -0
- package/dist/layout/content-width.js.map +1 -0
- package/dist/overlay/CommandPalette.cjs +207 -0
- package/dist/overlay/CommandPalette.cjs.map +1 -0
- package/dist/overlay/CommandPalette.d.ts +71 -0
- package/dist/overlay/CommandPalette.d.ts.map +1 -0
- package/dist/overlay/CommandPalette.js +207 -0
- package/dist/overlay/CommandPalette.js.map +1 -0
- package/dist/overlay/CommandPalette.model.cjs +70 -0
- package/dist/overlay/CommandPalette.model.cjs.map +1 -0
- package/dist/overlay/CommandPalette.model.d.ts +71 -0
- package/dist/overlay/CommandPalette.model.d.ts.map +1 -0
- package/dist/overlay/CommandPalette.model.js +70 -0
- package/dist/overlay/CommandPalette.model.js.map +1 -0
- package/dist/overlay/CommandPaletteList.cjs +88 -0
- package/dist/overlay/CommandPaletteList.cjs.map +1 -0
- package/dist/overlay/CommandPaletteList.d.ts +23 -0
- package/dist/overlay/CommandPaletteList.d.ts.map +1 -0
- package/dist/overlay/CommandPaletteList.js +88 -0
- package/dist/overlay/CommandPaletteList.js.map +1 -0
- package/dist/overlay/CommandPaletteTrigger.cjs +36 -0
- package/dist/overlay/CommandPaletteTrigger.cjs.map +1 -0
- package/dist/overlay/CommandPaletteTrigger.d.ts +22 -0
- package/dist/overlay/CommandPaletteTrigger.d.ts.map +1 -0
- package/dist/overlay/CommandPaletteTrigger.js +36 -0
- package/dist/overlay/CommandPaletteTrigger.js.map +1 -0
- package/dist/overlay/HoverCard.cjs.map +1 -1
- package/dist/overlay/HoverCard.d.ts +2 -2
- package/dist/overlay/HoverCard.d.ts.map +1 -1
- package/dist/overlay/HoverCard.js.map +1 -1
- package/dist/overlay/Modal.cjs +12 -5
- package/dist/overlay/Modal.cjs.map +1 -1
- package/dist/overlay/Modal.d.ts.map +1 -1
- package/dist/overlay/Modal.js +12 -5
- package/dist/overlay/Modal.js.map +1 -1
- package/dist/overlay/modalStack.js +1 -1
- package/dist/overlay/zIndex.cjs +2 -0
- package/dist/overlay/zIndex.cjs.map +1 -1
- package/dist/overlay/zIndex.js +2 -0
- package/dist/overlay/zIndex.js.map +1 -1
- package/dist/rpc/EntityExplorerApp.cjs +6 -0
- package/dist/rpc/EntityExplorerApp.cjs.map +1 -1
- package/dist/rpc/EntityExplorerApp.d.ts.map +1 -1
- package/dist/rpc/EntityExplorerApp.js +6 -0
- package/dist/rpc/EntityExplorerApp.js.map +1 -1
- package/dist/rpc/OperationCatalog.cjs +45 -71
- package/dist/rpc/OperationCatalog.cjs.map +1 -1
- package/dist/rpc/OperationCatalog.d.ts +12 -2
- package/dist/rpc/OperationCatalog.d.ts.map +1 -1
- package/dist/rpc/OperationCatalog.js +46 -72
- package/dist/rpc/OperationCatalog.js.map +1 -1
- package/dist/rpc/OperationResultView.cjs +42 -0
- package/dist/rpc/OperationResultView.cjs.map +1 -1
- package/dist/rpc/OperationResultView.d.ts +2 -1
- package/dist/rpc/OperationResultView.d.ts.map +1 -1
- package/dist/rpc/OperationResultView.js +42 -0
- package/dist/rpc/OperationResultView.js.map +1 -1
- package/dist/rpc/clickyMetadata.cjs +2 -1
- package/dist/rpc/clickyMetadata.cjs.map +1 -1
- package/dist/rpc/clickyMetadata.d.ts.map +1 -1
- package/dist/rpc/clickyMetadata.js +2 -1
- package/dist/rpc/clickyMetadata.js.map +1 -1
- package/dist/rpc/rpc-story-fixtures/orders.fixture.d.ts.map +1 -1
- package/dist/rpc/rpc-story-fixtures/services.fixture.d.ts.map +1 -1
- package/dist/rpc/rpc-story-fixtures/surface-fixture.d.ts +25 -2
- package/dist/rpc/rpc-story-fixtures/surface-fixture.d.ts.map +1 -1
- package/dist/rpc/rpc-story-fixtures/widgets.fixture.d.ts.map +1 -1
- package/dist/rpc/rpc-story.fixtures.d.ts +2 -1
- package/dist/rpc/rpc-story.fixtures.d.ts.map +1 -1
- package/dist/rpc/types.cjs.map +1 -1
- package/dist/rpc/types.d.ts +1 -0
- package/dist/rpc/types.d.ts.map +1 -1
- package/dist/rpc/types.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +15 -0
- package/dist/tailwind-preset.cjs.map +1 -1
- package/dist/tailwind-preset.d.ts.map +1 -1
- package/dist/tailwind-preset.js +15 -0
- package/dist/tailwind-preset.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const SegmentedControl = require("../../components/SegmentedControl.cjs");
|
|
6
5
|
const utils = require("../../lib/utils.cjs");
|
|
7
|
-
const
|
|
8
|
-
const KeyValueList = require("../KeyValueList.cjs");
|
|
9
|
-
const SessionViewer = require("./SessionViewer.cjs");
|
|
6
|
+
const TabButton = require("../TabButton.cjs");
|
|
10
7
|
const sessionCost = require("./session-cost.cjs");
|
|
8
|
+
const SessionInspector_panels = require("./SessionInspector.panels.cjs");
|
|
9
|
+
const SessionInspector_summary = require("./SessionInspector.summary.cjs");
|
|
10
|
+
const SessionInspector_transcript = require("./SessionInspector.transcript.cjs");
|
|
11
|
+
const SessionInspector_collection = require("./SessionInspector.collection.cjs");
|
|
12
|
+
const SessionInspector_hierarchy = require("./SessionInspector.hierarchy.cjs");
|
|
13
|
+
const SessionInspector_hierarchyState = require("./SessionInspector.hierarchy-state.cjs");
|
|
14
|
+
const SessionViewer = require("./SessionViewer.cjs");
|
|
11
15
|
const UiChatDots = require("../../icons/components/UiChatDots.cjs");
|
|
12
|
-
const UiRepeat = require("../../icons/components/UiRepeat.cjs");
|
|
13
|
-
const UiRobotAi = require("../../icons/components/UiRobotAi.cjs");
|
|
14
16
|
const UiFileText = require("../../icons/components/UiFileText.cjs");
|
|
15
17
|
const UiStrategy = require("../../icons/components/UiStrategy.cjs");
|
|
16
18
|
const UiSealCheck = require("../../icons/components/UiSealCheck.cjs");
|
|
@@ -18,10 +20,8 @@ const UiCoins = require("../../icons/components/UiCoins.cjs");
|
|
|
18
20
|
const UiListDashes = require("../../icons/components/UiListDashes.cjs");
|
|
19
21
|
const UiBraces = require("../../icons/components/UiBraces.cjs");
|
|
20
22
|
const tokens = require("../../lib/tokens.cjs");
|
|
21
|
-
const
|
|
23
|
+
const TABS = [
|
|
22
24
|
{ id: "transcript", label: "Transcript", icon: UiChatDots.UiChatDots },
|
|
23
|
-
{ id: "turns", label: "Turns", icon: UiRepeat.UiRepeat },
|
|
24
|
-
{ id: "agents", label: "Agents", icon: UiRobotAi.UiRobotAi },
|
|
25
25
|
{ id: "files", label: "Files", icon: UiFileText.UiFileText },
|
|
26
26
|
{ id: "plan", label: "Plan", icon: UiStrategy.UiStrategy },
|
|
27
27
|
{ id: "approvals", label: "Approvals", icon: UiSealCheck.UiSealCheck },
|
|
@@ -33,400 +33,240 @@ function SessionInspector({
|
|
|
33
33
|
session,
|
|
34
34
|
className,
|
|
35
35
|
defaultTab = "transcript",
|
|
36
|
-
transcriptProps
|
|
36
|
+
transcriptProps,
|
|
37
|
+
renderSessionActions,
|
|
38
|
+
onPlanChange,
|
|
39
|
+
composer
|
|
37
40
|
}) {
|
|
38
|
-
const detail = react.useMemo(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
className: utils.cn(
|
|
57
|
-
"min-h-0 flex-1",
|
|
58
|
-
tab === "transcript" ? "overflow-hidden" : "overflow-auto p-density-4"
|
|
59
|
-
),
|
|
60
|
-
children: tab === "transcript" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
61
|
-
SessionViewer.SessionViewer,
|
|
62
|
-
{
|
|
63
|
-
session,
|
|
64
|
-
scrollable: true,
|
|
65
|
-
showRowMetadata: true,
|
|
66
|
-
...transcriptProps,
|
|
67
|
-
className: transcriptClassName
|
|
68
|
-
}
|
|
69
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(InspectorTab, { tab, detail, session })
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
] });
|
|
73
|
-
}
|
|
74
|
-
function InspectorTab({
|
|
75
|
-
tab,
|
|
76
|
-
detail,
|
|
77
|
-
session
|
|
78
|
-
}) {
|
|
79
|
-
switch (tab) {
|
|
80
|
-
case "turns":
|
|
81
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TurnsPanel, { turns: detail == null ? void 0 : detail.turns });
|
|
82
|
-
case "agents":
|
|
83
|
-
return /* @__PURE__ */ jsxRuntime.jsx(AgentsPanel, { root: detail == null ? void 0 : detail.root, agents: detail == null ? void 0 : detail.agents });
|
|
84
|
-
case "files":
|
|
85
|
-
return /* @__PURE__ */ jsxRuntime.jsx(FilesPanel, { files: detail == null ? void 0 : detail.files });
|
|
86
|
-
case "plan":
|
|
87
|
-
return /* @__PURE__ */ jsxRuntime.jsx(PlanPanel, { plan: detail == null ? void 0 : detail.plan });
|
|
88
|
-
case "approvals":
|
|
89
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ApprovalsPanel, { approvals: detail == null ? void 0 : detail.approvals });
|
|
90
|
-
case "costs":
|
|
91
|
-
return /* @__PURE__ */ jsxRuntime.jsx(CostsPanel, { usage: detail == null ? void 0 : detail.usage, cost: detail == null ? void 0 : detail.cost, toolCosts: detail == null ? void 0 : detail.toolCosts });
|
|
92
|
-
case "metadata":
|
|
93
|
-
return /* @__PURE__ */ jsxRuntime.jsx(MetadataPanel, { session: detail });
|
|
94
|
-
case "raw":
|
|
95
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RawPanel, { value: detail ?? session });
|
|
96
|
-
default:
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
function TurnsPanel({ turns }) {
|
|
101
|
-
if (!(turns == null ? void 0 : turns.length)) return /* @__PURE__ */ jsxRuntime.jsx(EmptyState, { children: "No turn metadata." });
|
|
102
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-auto rounded-md border border-border", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "w-full min-w-[720px] border-collapse text-left text-sm", children: [
|
|
103
|
-
/* @__PURE__ */ jsxRuntime.jsx("thead", { className: "bg-muted/60 text-xs text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
104
|
-
/* @__PURE__ */ jsxRuntime.jsx(Th, { children: "Turn" }),
|
|
105
|
-
/* @__PURE__ */ jsxRuntime.jsx(Th, { children: "Time" }),
|
|
106
|
-
/* @__PURE__ */ jsxRuntime.jsx(Th, { children: "Model" }),
|
|
107
|
-
/* @__PURE__ */ jsxRuntime.jsx(Th, { children: "Stop" }),
|
|
108
|
-
/* @__PURE__ */ jsxRuntime.jsx(Th, { children: "Usage" }),
|
|
109
|
-
/* @__PURE__ */ jsxRuntime.jsx(Th, { children: "Cost" }),
|
|
110
|
-
/* @__PURE__ */ jsxRuntime.jsx(Th, { children: "Context" }),
|
|
111
|
-
/* @__PURE__ */ jsxRuntime.jsx(Th, { children: "Messages" }),
|
|
112
|
-
/* @__PURE__ */ jsxRuntime.jsx(Th, { children: "Events" })
|
|
113
|
-
] }) }),
|
|
114
|
-
/* @__PURE__ */ jsxRuntime.jsx("tbody", { className: "divide-y divide-border", children: turns.map((turn) => {
|
|
115
|
-
var _a, _b;
|
|
116
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("tr", { className: "align-top", children: [
|
|
117
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Td, { children: [
|
|
118
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-medium text-foreground", children: turn.index || turn.id }),
|
|
119
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-muted-foreground", children: turn.id })
|
|
120
|
-
] }),
|
|
121
|
-
/* @__PURE__ */ jsxRuntime.jsx(Td, { children: timeRange(turn.startedAt, turn.endedAt) }),
|
|
122
|
-
/* @__PURE__ */ jsxRuntime.jsx(Td, { children: turn.model || muted("-") }),
|
|
123
|
-
/* @__PURE__ */ jsxRuntime.jsx(Td, { children: turn.stopReason || muted("-") }),
|
|
124
|
-
/* @__PURE__ */ jsxRuntime.jsx(Td, { children: usageLabel(turn.usage) }),
|
|
125
|
-
/* @__PURE__ */ jsxRuntime.jsx(Td, { children: costLabel(turn.cost) }),
|
|
126
|
-
/* @__PURE__ */ jsxRuntime.jsx(Td, { children: contextLabel(turn.context) }),
|
|
127
|
-
/* @__PURE__ */ jsxRuntime.jsx(Td, { children: countLabel((_a = turn.messageIds) == null ? void 0 : _a.length, "message") }),
|
|
128
|
-
/* @__PURE__ */ jsxRuntime.jsx(Td, { children: countLabel((_b = turn.events) == null ? void 0 : _b.length, "event") })
|
|
129
|
-
] }, turn.id);
|
|
130
|
-
}) })
|
|
131
|
-
] }) });
|
|
132
|
-
}
|
|
133
|
-
function AgentsPanel({
|
|
134
|
-
root,
|
|
135
|
-
agents
|
|
136
|
-
}) {
|
|
137
|
-
const nodes = root ? [root] : agents ?? [];
|
|
138
|
-
if (!nodes.length) return /* @__PURE__ */ jsxRuntime.jsx(EmptyState, { children: "No agent hierarchy." });
|
|
139
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-density-2", children: nodes.map((agent, index) => /* @__PURE__ */ jsxRuntime.jsx(AgentNode, { agent }, agent.id || index)) });
|
|
140
|
-
}
|
|
141
|
-
function AgentNode({ agent, depth = 0 }) {
|
|
142
|
-
var _a;
|
|
143
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: utils.cn(depth > 0 && "ml-density-5 border-l border-border pl-density-3"), children: [
|
|
144
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-md border border-border p-density-3", children: [
|
|
145
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-wrap items-center gap-density-2", children: [
|
|
146
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: agent.isRoot ? "Root" : agent.type || "Agent" }),
|
|
147
|
-
agent.id && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-xs text-muted-foreground", children: agent.id })
|
|
148
|
-
] }),
|
|
149
|
-
agent.desc && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-sm text-muted-foreground", children: agent.desc }),
|
|
150
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 grid gap-density-2 text-xs text-muted-foreground md:grid-cols-3", children: [
|
|
151
|
-
agent.historyFile && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "truncate", children: [
|
|
152
|
-
"History: ",
|
|
153
|
-
agent.historyFile
|
|
154
|
-
] }),
|
|
155
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { children: usageLabel(agent.usage) }),
|
|
156
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { children: costLabel(agent.cost) })
|
|
157
|
-
] })
|
|
158
|
-
] }),
|
|
159
|
-
((_a = agent.children) == null ? void 0 : _a.length) ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-density-2 space-y-density-2", children: agent.children.map((child, index) => /* @__PURE__ */ jsxRuntime.jsx(AgentNode, { agent: child, depth: depth + 1 }, child.id || index)) }) : null
|
|
160
|
-
] });
|
|
161
|
-
}
|
|
162
|
-
function FilesPanel({ files }) {
|
|
163
|
-
const read = (files == null ? void 0 : files.read) ?? [];
|
|
164
|
-
const written = (files == null ? void 0 : files.written) ?? [];
|
|
165
|
-
if (read.length === 0 && written.length === 0) return /* @__PURE__ */ jsxRuntime.jsx(EmptyState, { children: "No changed-file summary." });
|
|
166
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-density-4 md:grid-cols-2", children: [
|
|
167
|
-
/* @__PURE__ */ jsxRuntime.jsx(PathList, { title: `Read (${read.length})`, paths: read }),
|
|
168
|
-
/* @__PURE__ */ jsxRuntime.jsx(PathList, { title: `Written (${written.length})`, paths: written })
|
|
169
|
-
] });
|
|
170
|
-
}
|
|
171
|
-
function PathList({ title, paths }) {
|
|
172
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "min-w-0", children: [
|
|
173
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-density-2 text-xs font-semibold uppercase text-muted-foreground", children: title }),
|
|
174
|
-
paths.length ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "divide-y divide-border rounded-md border border-border", children: paths.map((path) => /* @__PURE__ */ jsxRuntime.jsx("li", { className: "truncate px-density-3 py-density-2 font-mono text-xs", children: path }, path)) }) : /* @__PURE__ */ jsxRuntime.jsx(EmptyState, { compact: true, children: "None." })
|
|
175
|
-
] });
|
|
176
|
-
}
|
|
177
|
-
function PlanPanel({ plan }) {
|
|
178
|
-
var _a, _b;
|
|
179
|
-
if (!plan) return /* @__PURE__ */ jsxRuntime.jsx(EmptyState, { children: "No plan metadata." });
|
|
180
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-density-4", children: [
|
|
181
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
182
|
-
KeyValueList.KeyValueList,
|
|
183
|
-
{
|
|
184
|
-
items: [
|
|
185
|
-
kv("Path", plan.path),
|
|
186
|
-
kv("Slug", plan.slug),
|
|
187
|
-
kv("Explicit", plan.explicit === void 0 ? void 0 : String(plan.explicit)),
|
|
188
|
-
kv("Events", countLabel((_a = plan.events) == null ? void 0 : _a.length, "event"))
|
|
189
|
-
]
|
|
190
|
-
}
|
|
191
|
-
),
|
|
192
|
-
plan.content && /* @__PURE__ */ jsxRuntime.jsx(CodeBlock.CodeBlock, { language: "markdown", source: plan.content, copyable: true }),
|
|
193
|
-
((_b = plan.events) == null ? void 0 : _b.length) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
194
|
-
SimpleList,
|
|
41
|
+
const detail = react.useMemo(
|
|
42
|
+
() => SessionInspector_collection.isSessionCollectionInput(session) ? void 0 : asUnifiedSession(session),
|
|
43
|
+
[session]
|
|
44
|
+
);
|
|
45
|
+
const collection = react.useMemo(
|
|
46
|
+
() => SessionInspector_collection.isSessionCollectionInput(session) ? session : detail ? singleSessionCollection(detail) : void 0,
|
|
47
|
+
[detail, session]
|
|
48
|
+
);
|
|
49
|
+
if (collection) {
|
|
50
|
+
const optionalProps = {
|
|
51
|
+
...className ? { className } : {},
|
|
52
|
+
...transcriptProps ? { transcriptProps } : {},
|
|
53
|
+
...renderSessionActions ? { renderSessionActions } : {},
|
|
54
|
+
...onPlanChange ? { onPlanChange } : {},
|
|
55
|
+
...composer ? { composer } : {}
|
|
56
|
+
};
|
|
57
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
58
|
+
CollectionSessionInspector,
|
|
195
59
|
{
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
title: event.kind,
|
|
200
|
-
detail: [formatTime(event.timestamp), event.reason].filter(Boolean).join(" - ")
|
|
201
|
-
}))
|
|
60
|
+
collection,
|
|
61
|
+
defaultTab,
|
|
62
|
+
...optionalProps
|
|
202
63
|
}
|
|
203
|
-
)
|
|
204
|
-
] });
|
|
205
|
-
}
|
|
206
|
-
function ApprovalsPanel({ approvals }) {
|
|
207
|
-
var _a, _b;
|
|
208
|
-
if (!approvals || !approvals.approved && !approvals.denied && !((_a = approvals.denials) == null ? void 0 : _a.length)) {
|
|
209
|
-
return /* @__PURE__ */ jsxRuntime.jsx(EmptyState, { children: "No approval metadata." });
|
|
64
|
+
);
|
|
210
65
|
}
|
|
211
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
((_b = approvals.denials) == null ? void 0 : _b.length) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
222
|
-
SimpleList,
|
|
223
|
-
{
|
|
224
|
-
title: "Denials",
|
|
225
|
-
rows: approvals.denials.map((denial, index) => ({
|
|
226
|
-
key: denial.toolUseId || `${denial.tool}-${index}`,
|
|
227
|
-
title: [denial.tool, denial.toolUseId].filter(Boolean).join(" "),
|
|
228
|
-
detail: denial.reason
|
|
229
|
-
}))
|
|
230
|
-
}
|
|
231
|
-
) : null
|
|
232
|
-
] });
|
|
66
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
+
LegacySessionInspector,
|
|
68
|
+
{
|
|
69
|
+
session,
|
|
70
|
+
defaultTab,
|
|
71
|
+
...className ? { className } : {},
|
|
72
|
+
...transcriptProps ? { transcriptProps } : {},
|
|
73
|
+
...composer ? { composer } : {}
|
|
74
|
+
}
|
|
75
|
+
);
|
|
233
76
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
77
|
+
function CollectionSessionInspector({
|
|
78
|
+
collection,
|
|
79
|
+
className,
|
|
80
|
+
defaultTab = "transcript",
|
|
81
|
+
transcriptProps,
|
|
82
|
+
renderSessionActions,
|
|
83
|
+
onPlanChange,
|
|
84
|
+
composer
|
|
238
85
|
}) {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
86
|
+
const hierarchy = SessionInspector_hierarchyState.useSessionHierarchy(collection);
|
|
87
|
+
const [tab, setTab] = react.useState(defaultTab);
|
|
88
|
+
const transcriptClassName = utils.cn("h-full", transcriptProps == null ? void 0 : transcriptProps.className);
|
|
89
|
+
const panelDetail = tab === "costs" ? hierarchy.filtered : hierarchy.current;
|
|
90
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
91
|
+
"div",
|
|
92
|
+
{
|
|
93
|
+
className: utils.cn(
|
|
94
|
+
"flex h-full min-h-0 w-full max-w-full flex-col overflow-hidden rounded-xl border border-border bg-background text-sm shadow-sm",
|
|
95
|
+
className
|
|
96
|
+
),
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ jsxRuntime.jsx(SessionInspector_summary.SessionInspectorHeader, { session: hierarchy.current }),
|
|
99
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
role: "toolbar",
|
|
103
|
+
"aria-label": "Session content controls",
|
|
104
|
+
className: "flex shrink-0 justify-start border-b border-border px-density-2 py-density-2",
|
|
105
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
106
|
+
SessionInspector_hierarchy.SessionHierarchyPicker,
|
|
107
|
+
{
|
|
108
|
+
collection,
|
|
109
|
+
state: hierarchy,
|
|
110
|
+
...renderSessionActions ? { renderSessionActions } : {}
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
role: "tablist",
|
|
119
|
+
"aria-label": "Session detail view",
|
|
120
|
+
className: "flex shrink-0 overflow-x-auto border-b border-border px-density-2",
|
|
121
|
+
children: TABS.map((item) => {
|
|
122
|
+
const count = tabCount(item.id, hierarchy.current);
|
|
123
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
124
|
+
TabButton.TabButton,
|
|
125
|
+
{
|
|
126
|
+
active: tab === item.id,
|
|
127
|
+
onClick: () => setTab(item.id),
|
|
128
|
+
label: tabLabel(
|
|
129
|
+
item.id,
|
|
130
|
+
item.label,
|
|
131
|
+
item.id === "costs" ? hierarchy.filtered : hierarchy.current
|
|
132
|
+
),
|
|
133
|
+
icon: item.icon,
|
|
134
|
+
variant: "underline",
|
|
135
|
+
...count === void 0 ? {} : { count },
|
|
136
|
+
className: "shrink-0 py-density-2 [&_svg]:text-muted-foreground"
|
|
137
|
+
},
|
|
138
|
+
item.id
|
|
139
|
+
);
|
|
140
|
+
})
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid min-h-0 flex-1 overflow-y-auto lg:grid-cols-[minmax(0,1fr)_18rem] lg:overflow-hidden", children: [
|
|
144
|
+
/* @__PURE__ */ jsxRuntime.jsxs("main", { className: "flex min-h-[28rem] min-w-0 flex-col lg:min-h-0", children: [
|
|
145
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
+
"div",
|
|
147
|
+
{
|
|
148
|
+
className: utils.cn(
|
|
149
|
+
"min-h-0 flex-1",
|
|
150
|
+
tab === "transcript" ? "overflow-hidden" : "overflow-auto p-density-4"
|
|
151
|
+
),
|
|
152
|
+
children: tab === "transcript" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
153
|
+
SessionInspector_transcript.SessionTranscript,
|
|
154
|
+
{
|
|
155
|
+
session: hierarchy.filtered,
|
|
156
|
+
viewerProps: {
|
|
157
|
+
...transcriptProps,
|
|
158
|
+
className: transcriptClassName
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
162
|
+
SessionInspector_panels.SessionInspectorPanel,
|
|
163
|
+
{
|
|
164
|
+
tab,
|
|
165
|
+
detail: panelDetail,
|
|
166
|
+
session: hierarchy.current,
|
|
167
|
+
...onPlanChange ? { onPlanChange } : {}
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
}
|
|
171
|
+
),
|
|
172
|
+
composer ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 border-t border-border p-density-3", children: composer }) : null
|
|
173
|
+
] }),
|
|
174
|
+
/* @__PURE__ */ jsxRuntime.jsx(SessionInspector_summary.SessionInspectorSidebar, { session: hierarchy.current })
|
|
175
|
+
] })
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
);
|
|
315
179
|
}
|
|
316
|
-
function
|
|
317
|
-
|
|
318
|
-
|
|
180
|
+
function LegacySessionInspector({
|
|
181
|
+
session,
|
|
182
|
+
className,
|
|
183
|
+
defaultTab = "transcript",
|
|
184
|
+
transcriptProps,
|
|
185
|
+
composer
|
|
319
186
|
}) {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: row.title || row.key }),
|
|
324
|
-
row.detail ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-0.5 text-xs text-muted-foreground", children: row.detail }) : null
|
|
325
|
-
] }, row.key)) })
|
|
326
|
-
] });
|
|
327
|
-
}
|
|
328
|
-
function Th({ children }) {
|
|
329
|
-
return /* @__PURE__ */ jsxRuntime.jsx("th", { className: "px-density-3 py-density-2 font-medium", children });
|
|
330
|
-
}
|
|
331
|
-
function Td({ children }) {
|
|
332
|
-
return /* @__PURE__ */ jsxRuntime.jsx("td", { className: "px-density-3 py-density-2", children });
|
|
333
|
-
}
|
|
334
|
-
function EmptyState({ children, compact = false }) {
|
|
335
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
187
|
+
const [tab, setTab] = react.useState(defaultTab);
|
|
188
|
+
const transcriptClassName = utils.cn("h-full", transcriptProps == null ? void 0 : transcriptProps.className);
|
|
189
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
336
190
|
"div",
|
|
337
191
|
{
|
|
338
192
|
className: utils.cn(
|
|
339
|
-
"rounded-
|
|
340
|
-
|
|
193
|
+
"flex h-full min-h-0 w-full max-w-full flex-col overflow-hidden rounded-xl border border-border bg-background text-sm shadow-sm",
|
|
194
|
+
className
|
|
341
195
|
),
|
|
342
|
-
children
|
|
196
|
+
children: [
|
|
197
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
198
|
+
"div",
|
|
199
|
+
{
|
|
200
|
+
role: "tablist",
|
|
201
|
+
"aria-label": "Session detail view",
|
|
202
|
+
className: "flex shrink-0 overflow-x-auto border-b border-border px-density-2",
|
|
203
|
+
children: TABS.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
204
|
+
TabButton.TabButton,
|
|
205
|
+
{
|
|
206
|
+
active: tab === item.id,
|
|
207
|
+
onClick: () => setTab(item.id),
|
|
208
|
+
label: item.label,
|
|
209
|
+
icon: item.icon,
|
|
210
|
+
variant: "underline",
|
|
211
|
+
className: "shrink-0 py-density-2 [&_svg]:text-muted-foreground"
|
|
212
|
+
},
|
|
213
|
+
item.id
|
|
214
|
+
))
|
|
215
|
+
}
|
|
216
|
+
),
|
|
217
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1 flex-col overflow-hidden", children: [
|
|
218
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-hidden", children: tab === "transcript" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
219
|
+
SessionViewer.SessionViewer,
|
|
220
|
+
{
|
|
221
|
+
session,
|
|
222
|
+
scrollable: true,
|
|
223
|
+
showRowMetadata: true,
|
|
224
|
+
...transcriptProps,
|
|
225
|
+
className: transcriptClassName
|
|
226
|
+
}
|
|
227
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
228
|
+
SessionInspector_panels.SessionInspectorPanel,
|
|
229
|
+
{
|
|
230
|
+
tab,
|
|
231
|
+
detail: void 0,
|
|
232
|
+
session
|
|
233
|
+
}
|
|
234
|
+
) }),
|
|
235
|
+
composer ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 border-t border-border p-density-3", children: composer }) : null
|
|
236
|
+
] })
|
|
237
|
+
]
|
|
343
238
|
}
|
|
344
239
|
);
|
|
345
240
|
}
|
|
346
|
-
function
|
|
241
|
+
function tabCount(tab, session) {
|
|
242
|
+
var _a, _b, _c, _d, _e, _f;
|
|
243
|
+
switch (tab) {
|
|
244
|
+
case "files":
|
|
245
|
+
return (((_b = (_a = session == null ? void 0 : session.files) == null ? void 0 : _a.read) == null ? void 0 : _b.length) ?? 0) + (((_d = (_c = session == null ? void 0 : session.files) == null ? void 0 : _c.written) == null ? void 0 : _d.length) ?? 0);
|
|
246
|
+
case "approvals":
|
|
247
|
+
return (((_e = session == null ? void 0 : session.approvals) == null ? void 0 : _e.approved) ?? 0) + (((_f = session == null ? void 0 : session.approvals) == null ? void 0 : _f.denied) ?? 0);
|
|
248
|
+
default:
|
|
249
|
+
return void 0;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
function singleSessionCollection(session) {
|
|
253
|
+
const id = session.id || "session";
|
|
347
254
|
return {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
255
|
+
kind: "session-collection",
|
|
256
|
+
id,
|
|
257
|
+
currentSessionId: id,
|
|
258
|
+
sessions: [{ id, session }]
|
|
352
259
|
};
|
|
353
260
|
}
|
|
354
|
-
function
|
|
355
|
-
|
|
261
|
+
function tabLabel(tab, label, session) {
|
|
262
|
+
if (tab !== "costs") return label;
|
|
263
|
+
const total = sessionCost.costTotal(session == null ? void 0 : session.cost);
|
|
264
|
+
return total ? `${label} ${tokens.formatCost(total)}` : label;
|
|
356
265
|
}
|
|
357
266
|
function asUnifiedSession(session) {
|
|
358
|
-
if (typeof session !== "object" || session === null || Array.isArray(session))
|
|
267
|
+
if (typeof session !== "object" || session === null || Array.isArray(session))
|
|
268
|
+
return void 0;
|
|
359
269
|
return session;
|
|
360
270
|
}
|
|
361
|
-
function jsonSource(value) {
|
|
362
|
-
if (typeof value === "string") {
|
|
363
|
-
try {
|
|
364
|
-
return JSON.stringify(JSON.parse(value), null, 2);
|
|
365
|
-
} catch {
|
|
366
|
-
return value;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
try {
|
|
370
|
-
return JSON.stringify(value, null, 2);
|
|
371
|
-
} catch {
|
|
372
|
-
return String(value);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
function formatTime(value) {
|
|
376
|
-
if (!value) return "";
|
|
377
|
-
const date = new Date(value);
|
|
378
|
-
if (Number.isNaN(date.getTime())) return value;
|
|
379
|
-
return date.toLocaleString();
|
|
380
|
-
}
|
|
381
|
-
function timeRange(start, end) {
|
|
382
|
-
const parts = [formatTime(start), formatTime(end)].filter(Boolean);
|
|
383
|
-
return parts.length ? parts.join(" - ") : muted("-");
|
|
384
|
-
}
|
|
385
|
-
function durationLabel(start, end) {
|
|
386
|
-
if (!start || !end) return "";
|
|
387
|
-
const s = new Date(start).getTime();
|
|
388
|
-
const e = new Date(end).getTime();
|
|
389
|
-
if (Number.isNaN(s) || Number.isNaN(e) || e < s) return "";
|
|
390
|
-
const seconds = Math.round((e - s) / 1e3);
|
|
391
|
-
if (seconds < 60) return `${seconds}s`;
|
|
392
|
-
const minutes = Math.floor(seconds / 60);
|
|
393
|
-
const rem = seconds % 60;
|
|
394
|
-
if (minutes < 60) return rem ? `${minutes}m ${rem}s` : `${minutes}m`;
|
|
395
|
-
const hours = Math.floor(minutes / 60);
|
|
396
|
-
const min = minutes % 60;
|
|
397
|
-
return min ? `${hours}h ${min}m` : `${hours}h`;
|
|
398
|
-
}
|
|
399
|
-
function usageLabel(usage) {
|
|
400
|
-
const total = sessionCost.tokenTotal(usage);
|
|
401
|
-
if (!total) return muted("-");
|
|
402
|
-
return `${tokens.compactTokens(total)} tokens`;
|
|
403
|
-
}
|
|
404
|
-
function costLabel(cost) {
|
|
405
|
-
const total = sessionCost.costTotal(cost);
|
|
406
|
-
if (!total) return muted("-");
|
|
407
|
-
return tokens.formatCost(total);
|
|
408
|
-
}
|
|
409
|
-
function countLabel(count, label) {
|
|
410
|
-
if (!count) return muted("-");
|
|
411
|
-
return `${count} ${label}${count === 1 ? "" : "s"}`;
|
|
412
|
-
}
|
|
413
|
-
function contextLabel(context) {
|
|
414
|
-
if (!context) return muted("-");
|
|
415
|
-
const used = tokens.compactTokens(context.usedTokens);
|
|
416
|
-
const total = tokens.compactTokens(context.windowTokens);
|
|
417
|
-
return total ? `${context.freePercent}% free (${used}/${total})` : `${context.freePercent}% free`;
|
|
418
|
-
}
|
|
419
|
-
function gitLabel(git) {
|
|
420
|
-
if (!git) return "";
|
|
421
|
-
return [git.branch, git.commit, git.worktree, git.diff ? "diff" : ""].filter(Boolean).join(" ");
|
|
422
|
-
}
|
|
423
|
-
function liveLabel(live) {
|
|
424
|
-
if (!live) return "";
|
|
425
|
-
return [live.status || (live.active ? "active" : "inactive"), live.pid ? `pid ${live.pid}` : "", live.command].filter(Boolean).join(" - ");
|
|
426
|
-
}
|
|
427
|
-
function healthLabel(health) {
|
|
428
|
-
if (!(health == null ? void 0 : health.length)) return "";
|
|
429
|
-
return health.map((item) => `${item.severity}:${item.kind}`).join(", ");
|
|
430
|
-
}
|
|
431
271
|
exports.SessionInspector = SessionInspector;
|
|
432
272
|
//# sourceMappingURL=SessionInspector.cjs.map
|