@sixb/app 0.1.11 → 0.1.12
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/LICENSE +2 -0
- package/README.md +25 -19
- package/assets/connector-icons/README.md +29 -0
- package/assets/connector-icons/ace-iot.ico +0 -0
- package/assets/connector-icons/companycam.png +0 -0
- package/assets/connector-icons/exa.png +0 -0
- package/assets/connector-icons/github.svg +1 -0
- package/assets/connector-icons/google.ico +0 -0
- package/assets/connector-icons/googleads.svg +29 -0
- package/assets/connector-icons/linkedin.svg +1 -0
- package/assets/connector-icons/mercury.svg +1 -0
- package/assets/connector-icons/meta.svg +1 -0
- package/assets/connector-icons/microsoft.ico +0 -0
- package/assets/connector-icons/notion.svg +1 -0
- package/assets/connector-icons/pandadoc.png +0 -0
- package/assets/connector-icons/pennylane.ico +0 -0
- package/assets/connector-icons/pipedrive.png +0 -0
- package/assets/connector-icons/plaud.png +0 -0
- package/assets/connector-icons/quickbooks.svg +1 -0
- package/assets/connector-icons/stripe.svg +1 -0
- package/assets/connector-icons/teamleader.ico +0 -0
- package/assets/connector-icons/tiktok.svg +1 -0
- package/assets/connector-icons/unipile.png +0 -0
- package/dist/agent/activity-label.d.ts +5 -0
- package/dist/agent/activity-label.d.ts.map +1 -0
- package/dist/agent/agent-chat.d.ts +24 -0
- package/dist/agent/agent-chat.d.ts.map +1 -0
- package/dist/agent/agent-context-provider.d.ts +9 -0
- package/dist/agent/agent-context-provider.d.ts.map +1 -0
- package/dist/agent/agent-execution-trace.d.ts +9 -0
- package/dist/agent/agent-execution-trace.d.ts.map +1 -0
- package/dist/agent/agent-panel.d.ts +27 -0
- package/dist/agent/agent-panel.d.ts.map +1 -0
- package/dist/agent/agent-surface-state.d.ts +22 -0
- package/dist/agent/agent-surface-state.d.ts.map +1 -0
- package/dist/agent/agent-surface.d.ts +46 -0
- package/dist/agent/agent-surface.d.ts.map +1 -0
- package/dist/agent/bash/bash-tool-view.d.ts +17 -0
- package/dist/agent/bash/bash-tool-view.d.ts.map +1 -0
- package/dist/agent/bash/data.d.ts +35 -0
- package/dist/agent/bash/data.d.ts.map +1 -0
- package/dist/agent/bash/interpret.d.ts +84 -0
- package/dist/agent/bash/interpret.d.ts.map +1 -0
- package/dist/agent/bash/renderers.d.ts +31 -0
- package/dist/agent/bash/renderers.d.ts.map +1 -0
- package/dist/agent/bash/shell.d.ts +16 -0
- package/dist/agent/bash/shell.d.ts.map +1 -0
- package/dist/agent/components/activity-status.d.ts +13 -0
- package/dist/agent/components/activity-status.d.ts.map +1 -0
- package/dist/agent/components/agent-thread-switcher.d.ts +16 -0
- package/dist/agent/components/agent-thread-switcher.d.ts.map +1 -0
- package/dist/agent/components/composer.d.ts +47 -0
- package/dist/agent/components/composer.d.ts.map +1 -0
- package/dist/agent/components/context-chips.d.ts +7 -0
- package/dist/agent/components/context-chips.d.ts.map +1 -0
- package/dist/agent/components/context-picker.d.ts +16 -0
- package/dist/agent/components/context-picker.d.ts.map +1 -0
- package/dist/agent/components/conversation-panel.d.ts +82 -0
- package/dist/agent/components/conversation-panel.d.ts.map +1 -0
- package/dist/agent/components/file-attachment-card.d.ts +8 -0
- package/dist/agent/components/file-attachment-card.d.ts.map +1 -0
- package/dist/agent/components/message-parts.d.ts +13 -0
- package/dist/agent/components/message-parts.d.ts.map +1 -0
- package/dist/agent/components/message-view.d.ts +58 -0
- package/dist/agent/components/message-view.d.ts.map +1 -0
- package/dist/agent/components/model-controls.d.ts +20 -0
- package/dist/agent/components/model-controls.d.ts.map +1 -0
- package/dist/agent/components/model-picker-row.d.ts +8 -0
- package/dist/agent/components/model-picker-row.d.ts.map +1 -0
- package/dist/agent/components/provider-logo.d.ts +6 -0
- package/dist/agent/components/provider-logo.d.ts.map +1 -0
- package/dist/agent/components/provider-logos.d.ts +3 -0
- package/dist/agent/components/provider-logos.d.ts.map +1 -0
- package/dist/agent/components/reasoning-effort-slider.d.ts +11 -0
- package/dist/agent/components/reasoning-effort-slider.d.ts.map +1 -0
- package/dist/agent/components/sandbox-recovery.d.ts +6 -0
- package/dist/agent/components/sandbox-recovery.d.ts.map +1 -0
- package/dist/agent/components/transcript.d.ts +36 -0
- package/dist/agent/components/transcript.d.ts.map +1 -0
- package/dist/agent/components/web-fetch-tool-view.d.ts +5 -0
- package/dist/agent/components/web-fetch-tool-view.d.ts.map +1 -0
- package/dist/agent/components/web-search-tool-view.d.ts +5 -0
- package/dist/agent/components/web-search-tool-view.d.ts.map +1 -0
- package/dist/agent/components/web-sources.d.ts +9 -0
- package/dist/agent/components/web-sources.d.ts.map +1 -0
- package/dist/agent/document-preview/classify.d.ts +4 -0
- package/dist/agent/document-preview/classify.d.ts.map +1 -0
- package/dist/agent/document-preview/content-policy.d.ts +10 -0
- package/dist/agent/document-preview/content-policy.d.ts.map +1 -0
- package/dist/agent/document-preview/content.d.ts +26 -0
- package/dist/agent/document-preview/content.d.ts.map +1 -0
- package/dist/agent/document-preview/delimited.d.ts +19 -0
- package/dist/agent/document-preview/delimited.d.ts.map +1 -0
- package/dist/agent/document-preview/document-preview-root.d.ts +24 -0
- package/dist/agent/document-preview/document-preview-root.d.ts.map +1 -0
- package/dist/agent/document-preview/file-size.d.ts +3 -0
- package/dist/agent/document-preview/file-size.d.ts.map +1 -0
- package/dist/agent/document-preview/html.d.ts +9 -0
- package/dist/agent/document-preview/html.d.ts.map +1 -0
- package/dist/agent/document-preview/persistence.d.ts +6 -0
- package/dist/agent/document-preview/persistence.d.ts.map +1 -0
- package/dist/agent/document-preview/presentation.d.ts +3 -0
- package/dist/agent/document-preview/presentation.d.ts.map +1 -0
- package/dist/agent/document-preview/rendering.d.ts +14 -0
- package/dist/agent/document-preview/rendering.d.ts.map +1 -0
- package/dist/agent/document-preview/source.d.ts +13 -0
- package/dist/agent/document-preview/source.d.ts.map +1 -0
- package/dist/agent/document-preview/state.d.ts +27 -0
- package/dist/agent/document-preview/state.d.ts.map +1 -0
- package/dist/agent/document-preview/types.d.ts +33 -0
- package/dist/agent/document-preview/types.d.ts.map +1 -0
- package/dist/agent/format.d.ts +12 -0
- package/dist/agent/format.d.ts.map +1 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts +338 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -0
- package/dist/agent/hooks/use-thread-stream.d.ts +22 -0
- package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -0
- package/dist/agent/i18n/en.d.ts +589 -0
- package/dist/agent/i18n/en.d.ts.map +1 -0
- package/dist/agent/i18n/fr.d.ts +4 -0
- package/dist/agent/i18n/fr.d.ts.map +1 -0
- package/dist/agent/i18n/index.d.ts +1161 -0
- package/dist/agent/i18n/index.d.ts.map +1 -0
- package/dist/agent/live-run.d.ts +48 -0
- package/dist/agent/live-run.d.ts.map +1 -0
- package/dist/agent/model-selection.d.ts +33 -0
- package/dist/agent/model-selection.d.ts.map +1 -0
- package/dist/agent/object-context-title.d.ts +22 -0
- package/dist/agent/object-context-title.d.ts.map +1 -0
- package/dist/agent/parts.d.ts +42 -0
- package/dist/agent/parts.d.ts.map +1 -0
- package/dist/agent/react-router.d.ts +8 -0
- package/dist/agent/react-router.d.ts.map +1 -0
- package/dist/agent/read/interpret.d.ts +24 -0
- package/dist/agent/read/interpret.d.ts.map +1 -0
- package/dist/agent/read/read-tool-view.d.ts +5 -0
- package/dist/agent/read/read-tool-view.d.ts.map +1 -0
- package/dist/agent/requester-settings.d.ts +15 -0
- package/dist/agent/requester-settings.d.ts.map +1 -0
- package/dist/agent/run-presentation.d.ts +70 -0
- package/dist/agent/run-presentation.d.ts.map +1 -0
- package/dist/agent/thread-navigation.d.ts +5 -0
- package/dist/agent/thread-navigation.d.ts.map +1 -0
- package/dist/agent/types.d.ts +22 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/utils/context-display.d.ts +5 -0
- package/dist/agent/utils/context-display.d.ts.map +1 -0
- package/dist/agent/utils/context-mention.d.ts +12 -0
- package/dist/agent/utils/context-mention.d.ts.map +1 -0
- package/dist/agent/utils/web-fetch.d.ts +4 -0
- package/dist/agent/utils/web-fetch.d.ts.map +1 -0
- package/dist/agent/utils/web-search.d.ts +20 -0
- package/dist/agent/utils/web-search.d.ts.map +1 -0
- package/dist/agent/view-file/interpret.d.ts +9 -0
- package/dist/agent/view-file/interpret.d.ts.map +1 -0
- package/dist/agent/view-file/view-file-tool-view.d.ts +9 -0
- package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -0
- package/dist/agent/workspace.d.ts +11 -0
- package/dist/agent/workspace.d.ts.map +1 -0
- package/dist/chunk-3a99tmwg.js +176 -0
- package/dist/chunk-3a99tmwg.js.map +10 -0
- package/dist/chunk-48pkffj6.js +20 -0
- package/dist/chunk-48pkffj6.js.map +10 -0
- package/dist/chunk-6n5pdqp0.js +115 -0
- package/dist/chunk-6n5pdqp0.js.map +11 -0
- package/dist/chunk-j97e06rg.js +10668 -0
- package/dist/chunk-j97e06rg.js.map +80 -0
- package/dist/chunk-md3p7qdt.js +379 -0
- package/dist/chunk-md3p7qdt.js.map +10 -0
- package/dist/chunk-shmw3f8t.js +251 -0
- package/dist/chunk-shmw3f8t.js.map +10 -0
- package/dist/chunk-yvhzn4ye.js +98 -0
- package/dist/chunk-yvhzn4ye.js.map +10 -0
- package/dist/chunk-zcxrt24m.js +148 -0
- package/dist/chunk-zcxrt24m.js.map +10 -0
- package/dist/codegen.d.ts +6 -4
- package/dist/codegen.d.ts.map +1 -1
- package/dist/createCustomApp.d.ts +14 -7
- package/dist/createCustomApp.d.ts.map +1 -1
- package/dist/index.d.ts +33 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +958 -2890
- package/dist/index.js.map +14 -13
- package/dist/locale-messages.d.ts +72 -6
- package/dist/locale-messages.d.ts.map +1 -1
- package/dist/locale.d.ts +73 -8
- package/dist/locale.d.ts.map +1 -1
- package/dist/locale.js +10 -19
- package/dist/locale.js.map +3 -4
- package/dist/metadata.d.ts.map +1 -1
- package/dist/pages/data/connectors.d.ts +5 -0
- package/dist/pages/data/connectors.d.ts.map +1 -0
- package/dist/pages/data/datasets.d.ts +30 -0
- package/dist/pages/data/datasets.d.ts.map +1 -0
- package/dist/pages/data/live-updates.d.ts +13 -0
- package/dist/pages/data/live-updates.d.ts.map +1 -0
- package/dist/pages/data/messages.d.ts +354 -0
- package/dist/pages/data/messages.d.ts.map +1 -0
- package/dist/pages/data/pipeline-canvas.d.ts +34 -0
- package/dist/pages/data/pipeline-canvas.d.ts.map +1 -0
- package/dist/pages/data/pipelines.d.ts +9 -0
- package/dist/pages/data/pipelines.d.ts.map +1 -0
- package/dist/pages/data/projections.d.ts +10 -0
- package/dist/pages/data/projections.d.ts.map +1 -0
- package/dist/pages/data/schema.d.ts +20 -0
- package/dist/pages/data/schema.d.ts.map +1 -0
- package/dist/pages/data/shared.d.ts +13 -0
- package/dist/pages/data/shared.d.ts.map +1 -0
- package/dist/pages/data/sync-button.d.ts +15 -0
- package/dist/pages/data/sync-button.d.ts.map +1 -0
- package/dist/pages/data/syncs.d.ts +5 -0
- package/dist/pages/data/syncs.d.ts.map +1 -0
- package/dist/pages/home.d.ts +6 -0
- package/dist/pages/home.d.ts.map +1 -0
- package/dist/pages/mosaic.d.ts +5 -0
- package/dist/pages/mosaic.d.ts.map +1 -0
- package/dist/pages/observability/action-run.d.ts +19 -0
- package/dist/pages/observability/action-run.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/calls.d.ts +27 -0
- package/dist/pages/observability/ai-usage/calls.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/charts.d.ts +23 -0
- package/dist/pages/observability/ai-usage/charts.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/format.d.ts +101 -0
- package/dist/pages/observability/ai-usage/format.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/limits.d.ts +12 -0
- package/dist/pages/observability/ai-usage/limits.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/messages.d.ts +431 -0
- package/dist/pages/observability/ai-usage/messages.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/page.d.ts +6 -0
- package/dist/pages/observability/ai-usage/page.d.ts.map +1 -0
- package/dist/pages/observability/live-updates.d.ts +3 -0
- package/dist/pages/observability/live-updates.d.ts.map +1 -0
- package/dist/pages/observability/logs.d.ts +11 -0
- package/dist/pages/observability/logs.d.ts.map +1 -0
- package/dist/pages/observability/messages.d.ts +329 -0
- package/dist/pages/observability/messages.d.ts.map +1 -0
- package/dist/pages/observability/runs.d.ts +7 -0
- package/dist/pages/observability/runs.d.ts.map +1 -0
- package/dist/pages/observability/workflow-run.d.ts +6 -0
- package/dist/pages/observability/workflow-run.d.ts.map +1 -0
- package/dist/pages/ontology/actions.d.ts +3 -0
- package/dist/pages/ontology/actions.d.ts.map +1 -0
- package/dist/pages/ontology/components/action-button.d.ts +12 -0
- package/dist/pages/ontology/components/action-button.d.ts.map +1 -0
- package/dist/pages/ontology/components/action-param-null-control.d.ts +7 -0
- package/dist/pages/ontology/components/action-param-null-control.d.ts.map +1 -0
- package/dist/pages/ontology/components/collection-toolbar.d.ts +21 -0
- package/dist/pages/ontology/components/collection-toolbar.d.ts.map +1 -0
- package/dist/pages/ontology/components/common.d.ts +16 -0
- package/dist/pages/ontology/components/common.d.ts.map +1 -0
- package/dist/pages/ontology/components/file-ref-upload-field.d.ts +13 -0
- package/dist/pages/ontology/components/file-ref-upload-field.d.ts.map +1 -0
- package/dist/pages/ontology/components/object-filter-popover.d.ts +9 -0
- package/dist/pages/ontology/components/object-filter-popover.d.ts.map +1 -0
- package/dist/pages/ontology/components/object-icon.d.ts +7 -0
- package/dist/pages/ontology/components/object-icon.d.ts.map +1 -0
- package/dist/pages/ontology/components/object-query-bar.d.ts +21 -0
- package/dist/pages/ontology/components/object-query-bar.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-chart.d.ts +18 -0
- package/dist/pages/ontology/components/telemetry-chart.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-grid.d.ts +19 -0
- package/dist/pages/ontology/components/telemetry-grid.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-tile.d.ts +18 -0
- package/dist/pages/ontology/components/telemetry-tile.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-value.d.ts +10 -0
- package/dist/pages/ontology/components/telemetry-value.d.ts.map +1 -0
- package/dist/pages/ontology/components/usage-bar.d.ts +12 -0
- package/dist/pages/ontology/components/usage-bar.d.ts.map +1 -0
- package/dist/pages/ontology/graph.d.ts +6 -0
- package/dist/pages/ontology/graph.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/object-live-updates.d.ts +5 -0
- package/dist/pages/ontology/hooks/object-live-updates.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts +8 -0
- package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/object-type-counts.d.ts +5 -0
- package/dist/pages/ontology/hooks/object-type-counts.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/rule-live-updates.d.ts +9 -0
- package/dist/pages/ontology/hooks/rule-live-updates.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/workflow-live-updates.d.ts +6 -0
- package/dist/pages/ontology/hooks/workflow-live-updates.d.ts.map +1 -0
- package/dist/pages/ontology/lib/action-params.d.ts +55 -0
- package/dist/pages/ontology/lib/action-params.d.ts.map +1 -0
- package/dist/pages/ontology/lib/format-value.d.ts +3 -0
- package/dist/pages/ontology/lib/format-value.d.ts.map +1 -0
- package/dist/pages/ontology/lib/labels.d.ts +3 -0
- package/dist/pages/ontology/lib/labels.d.ts.map +1 -0
- package/dist/pages/ontology/lib/live-update-keys.d.ts +15 -0
- package/dist/pages/ontology/lib/live-update-keys.d.ts.map +1 -0
- package/dist/pages/ontology/lib/object-query.d.ts +72 -0
- package/dist/pages/ontology/lib/object-query.d.ts.map +1 -0
- package/dist/pages/ontology/lib/ontology-graph-layout.d.ts +68 -0
- package/dist/pages/ontology/lib/ontology-graph-layout.d.ts.map +1 -0
- package/dist/pages/ontology/lib/ontology-graph-links.d.ts +4 -0
- package/dist/pages/ontology/lib/ontology-graph-links.d.ts.map +1 -0
- package/dist/pages/ontology/lib/telemetry-history.d.ts +10 -0
- package/dist/pages/ontology/lib/telemetry-history.d.ts.map +1 -0
- package/dist/pages/ontology/lib/time.d.ts +3 -0
- package/dist/pages/ontology/lib/time.d.ts.map +1 -0
- package/dist/pages/ontology/lib/user-preferences.d.ts +8 -0
- package/dist/pages/ontology/lib/user-preferences.d.ts.map +1 -0
- package/dist/pages/ontology/object-page.d.ts +7 -0
- package/dist/pages/ontology/object-page.d.ts.map +1 -0
- package/dist/pages/ontology/object-type.d.ts +3 -0
- package/dist/pages/ontology/object-type.d.ts.map +1 -0
- package/dist/pages/ontology/object-types.d.ts +7 -0
- package/dist/pages/ontology/object-types.d.ts.map +1 -0
- package/dist/pages/ontology/objects.d.ts +6 -0
- package/dist/pages/ontology/objects.d.ts.map +1 -0
- package/dist/pages/ontology/rules.d.ts +32 -0
- package/dist/pages/ontology/rules.d.ts.map +1 -0
- package/dist/pages/ontology/workflow.d.ts +6 -0
- package/dist/pages/ontology/workflow.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/agent-execution-panel.d.ts +17 -0
- package/dist/pages/ontology/workflows/agent-execution-panel.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/intervention-panel.d.ts +5 -0
- package/dist/pages/ontology/workflows/intervention-panel.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/node-execution-panel.d.ts +11 -0
- package/dist/pages/ontology/workflows/node-execution-panel.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/request-run-dialog.d.ts +5 -0
- package/dist/pages/ontology/workflows/request-run-dialog.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/run-debug-section.d.ts +11 -0
- package/dist/pages/ontology/workflows/run-debug-section.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/run-input-form.d.ts +18 -0
- package/dist/pages/ontology/workflows/run-input-form.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/run-progress.d.ts +15 -0
- package/dist/pages/ontology/workflows/run-progress.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/schema-shape.d.ts +10 -0
- package/dist/pages/ontology/workflows/schema-shape.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/status-badge.d.ts +5 -0
- package/dist/pages/ontology/workflows/status-badge.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/utils.d.ts +29 -0
- package/dist/pages/ontology/workflows/utils.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/workflow-card.d.ts +5 -0
- package/dist/pages/ontology/workflows/workflow-card.d.ts.map +1 -0
- package/dist/pages/ontology/workflows.d.ts +3 -0
- package/dist/pages/ontology/workflows.d.ts.map +1 -0
- package/dist/pages/routes.d.ts +19 -0
- package/dist/pages/routes.d.ts.map +1 -0
- package/dist/pages/section-page.d.ts +91 -0
- package/dist/pages/section-page.d.ts.map +1 -0
- package/dist/pages/section-ui.d.ts +211 -0
- package/dist/pages/section-ui.d.ts.map +1 -0
- package/dist/pages/settings/controls.d.ts +94 -0
- package/dist/pages/settings/controls.d.ts.map +1 -0
- package/dist/pages/settings/developers.d.ts +3 -0
- package/dist/pages/settings/developers.d.ts.map +1 -0
- package/dist/pages/settings/members.d.ts +3 -0
- package/dist/pages/settings/members.d.ts.map +1 -0
- package/dist/pages/settings/messages.d.ts +538 -0
- package/dist/pages/settings/messages.d.ts.map +1 -0
- package/dist/pages/settings/personal.d.ts +6 -0
- package/dist/pages/settings/personal.d.ts.map +1 -0
- package/dist/pages/settings/service-accounts.d.ts +3 -0
- package/dist/pages/settings/service-accounts.d.ts.map +1 -0
- package/dist/pages/settings/sessions.d.ts +3 -0
- package/dist/pages/settings/sessions.d.ts.map +1 -0
- package/dist/pages/values.d.ts +77 -0
- package/dist/pages/values.d.ts.map +1 -0
- package/dist/pages.d.ts +42 -0
- package/dist/pages.d.ts.map +1 -0
- package/dist/pages.js +23931 -0
- package/dist/pages.js.map +85 -0
- package/dist/runtime.d.ts +0 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/sections/catalog.d.ts +37 -0
- package/dist/sections/catalog.d.ts.map +1 -0
- package/dist/sections/counts.d.ts +7 -0
- package/dist/sections/counts.d.ts.map +1 -0
- package/dist/sections/sections.d.ts +67 -0
- package/dist/sections/sections.d.ts.map +1 -0
- package/dist/server.d.ts +8 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +2983 -0
- package/dist/server.js.map +19 -0
- package/dist/session.d.ts +18 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/shell/agent-dock.d.ts +7 -0
- package/dist/shell/agent-dock.d.ts.map +1 -0
- package/dist/shell/app-shell.d.ts +42 -0
- package/dist/shell/app-shell.d.ts.map +1 -0
- package/dist/shell/brand.d.ts +15 -0
- package/dist/shell/brand.d.ts.map +1 -0
- package/dist/shell/nav-items.d.ts +34 -0
- package/dist/shell/nav-items.d.ts.map +1 -0
- package/dist/shell/search-command.d.ts +12 -0
- package/dist/shell/search-command.d.ts.map +1 -0
- package/dist/shell/section-nav.d.ts +13 -0
- package/dist/shell/section-nav.d.ts.map +1 -0
- package/dist/shell/user-menu.d.ts +25 -0
- package/dist/shell/user-menu.d.ts.map +1 -0
- package/dist/tailwind.d.ts +4 -4
- package/dist/tailwind.d.ts.map +1 -1
- package/package.json +24 -21
- package/src/agent/activity-label.ts +63 -0
- package/src/agent/agent-chat.tsx +237 -0
- package/src/agent/agent-context-provider.tsx +92 -0
- package/src/agent/agent-execution-trace.tsx +316 -0
- package/src/agent/agent-panel.tsx +79 -0
- package/src/agent/agent-surface-state.ts +113 -0
- package/src/agent/agent-surface.tsx +363 -0
- package/src/agent/agent.css +231 -0
- package/src/agent/bash/bash-tool-view.tsx +288 -0
- package/src/agent/bash/data.ts +137 -0
- package/src/agent/bash/interpret.ts +769 -0
- package/src/agent/bash/renderers.tsx +503 -0
- package/src/agent/bash/shell.ts +195 -0
- package/src/agent/components/activity-status.tsx +86 -0
- package/src/agent/components/agent-thread-switcher.tsx +346 -0
- package/src/agent/components/composer.tsx +870 -0
- package/src/agent/components/context-chips.tsx +63 -0
- package/src/agent/components/context-picker.tsx +88 -0
- package/src/agent/components/conversation-panel.tsx +352 -0
- package/src/agent/components/file-attachment-card.tsx +137 -0
- package/src/agent/components/message-parts.tsx +280 -0
- package/src/agent/components/message-view.tsx +428 -0
- package/src/agent/components/model-controls.tsx +204 -0
- package/src/agent/components/model-picker-row.tsx +136 -0
- package/src/agent/components/provider-logo.tsx +31 -0
- package/src/agent/components/provider-logos.ts +24 -0
- package/src/agent/components/reasoning-effort-slider.tsx +121 -0
- package/src/agent/components/sandbox-recovery.tsx +49 -0
- package/src/agent/components/transcript.tsx +239 -0
- package/src/agent/components/web-fetch-tool-view.tsx +69 -0
- package/src/agent/components/web-search-tool-view.tsx +37 -0
- package/src/agent/components/web-sources.tsx +159 -0
- package/src/agent/document-preview/classify.ts +55 -0
- package/src/agent/document-preview/content-policy.ts +37 -0
- package/src/agent/document-preview/content.ts +82 -0
- package/src/agent/document-preview/delimited.ts +118 -0
- package/src/agent/document-preview/document-preview-root.tsx +1017 -0
- package/src/agent/document-preview/file-size.ts +26 -0
- package/src/agent/document-preview/html.ts +67 -0
- package/src/agent/document-preview/persistence.ts +115 -0
- package/src/agent/document-preview/presentation.ts +13 -0
- package/src/agent/document-preview/rendering.ts +48 -0
- package/src/agent/document-preview/source.ts +48 -0
- package/src/agent/document-preview/state.ts +77 -0
- package/src/agent/document-preview/types.ts +36 -0
- package/src/agent/format.ts +60 -0
- package/src/agent/hooks/use-agent-conversation.ts +536 -0
- package/src/agent/hooks/use-thread-stream.ts +121 -0
- package/src/agent/i18n/en.ts +542 -0
- package/src/agent/i18n/fr.ts +574 -0
- package/src/agent/i18n/index.ts +14 -0
- package/src/agent/live-run.ts +257 -0
- package/src/agent/model-selection.ts +88 -0
- package/src/agent/object-context-title.ts +57 -0
- package/src/agent/parts.ts +119 -0
- package/src/agent/react-router.tsx +84 -0
- package/src/agent/read/interpret.ts +101 -0
- package/src/agent/read/read-tool-view.tsx +92 -0
- package/src/agent/requester-settings.ts +55 -0
- package/src/agent/run-presentation.ts +211 -0
- package/src/agent/thread-navigation.ts +11 -0
- package/src/agent/types.ts +37 -0
- package/src/agent/utils/context-display.ts +72 -0
- package/src/agent/utils/context-mention.ts +28 -0
- package/src/agent/utils/web-fetch.ts +20 -0
- package/src/agent/utils/web-search.ts +106 -0
- package/src/agent/view-file/interpret.ts +22 -0
- package/src/agent/view-file/view-file-tool-view.tsx +120 -0
- package/src/{agents.ts → agent/workspace.ts} +4 -19
- package/src/codegen.ts +61 -79
- package/src/createCustomApp.ts +155 -67
- package/src/index.ts +52 -16
- package/src/locale-messages.ts +121 -12
- package/src/locale.ts +1 -2
- package/src/metadata.ts +35 -1
- package/src/pages/canvas.css +43 -0
- package/src/pages/data/connectors.tsx +317 -0
- package/src/pages/data/datasets.tsx +731 -0
- package/src/pages/data/live-updates.ts +71 -0
- package/src/pages/data/messages.ts +349 -0
- package/src/pages/data/pipeline-canvas.tsx +288 -0
- package/src/pages/data/pipelines.tsx +710 -0
- package/src/pages/data/projections.tsx +482 -0
- package/src/pages/data/schema.tsx +62 -0
- package/src/pages/data/shared.tsx +78 -0
- package/src/pages/data/sync-button.tsx +103 -0
- package/src/pages/data/syncs.tsx +326 -0
- package/src/pages/home.tsx +64 -0
- package/src/pages/mosaic.tsx +97 -0
- package/src/pages/observability/action-run.tsx +229 -0
- package/src/pages/observability/ai-usage/calls.tsx +541 -0
- package/src/pages/observability/ai-usage/charts.tsx +126 -0
- package/src/pages/observability/ai-usage/format.ts +276 -0
- package/src/pages/observability/ai-usage/limits.tsx +629 -0
- package/src/pages/observability/ai-usage/messages.ts +446 -0
- package/src/pages/observability/ai-usage/page.tsx +814 -0
- package/src/pages/observability/live-updates.ts +19 -0
- package/src/pages/observability/logs.tsx +617 -0
- package/src/pages/observability/messages.ts +336 -0
- package/src/pages/observability/runs.tsx +732 -0
- package/src/pages/observability/workflow-run.tsx +323 -0
- package/src/pages/ontology/actions.tsx +749 -0
- package/src/pages/ontology/components/action-button.tsx +355 -0
- package/src/pages/ontology/components/action-param-null-control.tsx +35 -0
- package/src/pages/ontology/components/collection-toolbar.tsx +61 -0
- package/src/pages/ontology/components/common.tsx +60 -0
- package/src/pages/ontology/components/file-ref-upload-field.tsx +279 -0
- package/src/pages/ontology/components/object-filter-popover.tsx +311 -0
- package/src/pages/ontology/components/object-icon.tsx +133 -0
- package/src/pages/ontology/components/object-query-bar.tsx +217 -0
- package/src/pages/ontology/components/telemetry-chart.tsx +392 -0
- package/src/pages/ontology/components/telemetry-grid.tsx +137 -0
- package/src/pages/ontology/components/telemetry-tile.tsx +164 -0
- package/src/pages/ontology/components/telemetry-value.tsx +91 -0
- package/src/pages/ontology/components/usage-bar.tsx +64 -0
- package/src/pages/ontology/graph.tsx +1283 -0
- package/src/pages/ontology/hooks/object-live-updates.ts +53 -0
- package/src/pages/ontology/hooks/object-telemetry-updates.ts +45 -0
- package/src/pages/ontology/hooks/object-type-counts.ts +27 -0
- package/src/pages/ontology/hooks/rule-live-updates.ts +28 -0
- package/src/pages/ontology/hooks/workflow-live-updates.ts +20 -0
- package/src/pages/ontology/lib/action-params.ts +231 -0
- package/src/pages/ontology/lib/format-value.ts +34 -0
- package/src/pages/ontology/lib/labels.ts +50 -0
- package/src/pages/ontology/lib/live-update-keys.ts +62 -0
- package/src/pages/ontology/lib/object-query.ts +372 -0
- package/src/pages/ontology/lib/ontology-graph-layout.ts +1004 -0
- package/src/pages/ontology/lib/ontology-graph-links.ts +15 -0
- package/src/pages/ontology/lib/telemetry-history.ts +56 -0
- package/src/pages/ontology/lib/time.ts +23 -0
- package/src/pages/ontology/lib/user-preferences.ts +52 -0
- package/src/pages/ontology/object-page.tsx +1029 -0
- package/src/pages/ontology/object-type.tsx +910 -0
- package/src/pages/ontology/object-types.tsx +240 -0
- package/src/pages/ontology/objects.tsx +938 -0
- package/src/pages/ontology/rules.tsx +805 -0
- package/src/pages/ontology/workflow.tsx +1485 -0
- package/src/pages/ontology/workflows/agent-execution-panel.tsx +340 -0
- package/src/pages/ontology/workflows/intervention-panel.tsx +261 -0
- package/src/pages/ontology/workflows/node-execution-panel.tsx +86 -0
- package/src/pages/ontology/workflows/request-run-dialog.tsx +197 -0
- package/src/pages/ontology/workflows/run-debug-section.tsx +54 -0
- package/src/pages/ontology/workflows/run-input-form.tsx +900 -0
- package/src/pages/ontology/workflows/run-progress.tsx +83 -0
- package/src/pages/ontology/workflows/schema-shape.tsx +206 -0
- package/src/pages/ontology/workflows/status-badge.tsx +15 -0
- package/src/pages/ontology/workflows/utils.ts +107 -0
- package/src/pages/ontology/workflows/workflow-card.tsx +48 -0
- package/src/pages/ontology/workflows.tsx +143 -0
- package/src/pages/routes.ts +48 -0
- package/src/pages/section-page.tsx +272 -0
- package/src/pages/section-ui.tsx +771 -0
- package/src/pages/settings/controls.tsx +721 -0
- package/src/pages/settings/developers.tsx +163 -0
- package/src/pages/settings/members.tsx +1018 -0
- package/src/pages/settings/messages.ts +551 -0
- package/src/pages/settings/personal.tsx +97 -0
- package/src/pages/settings/service-accounts.tsx +623 -0
- package/src/pages/settings/sessions.tsx +183 -0
- package/src/pages/values.tsx +700 -0
- package/src/pages.ts +56 -0
- package/src/runtime.ts +0 -3
- package/src/sections/catalog.ts +181 -0
- package/src/sections/counts.ts +33 -0
- package/src/sections/sections.tsx +257 -0
- package/src/server.ts +19 -0
- package/src/session.ts +29 -0
- package/src/shell/agent-dock.tsx +32 -0
- package/src/shell/app-shell.tsx +142 -0
- package/src/shell/brand.tsx +47 -0
- package/src/shell/nav-items.tsx +136 -0
- package/src/shell/search-command.tsx +158 -0
- package/src/shell/section-nav.tsx +61 -0
- package/src/shell/user-menu.tsx +206 -0
- package/src/tailwind.ts +4 -4
- package/dist/agents.d.ts +0 -11
- package/dist/agents.d.ts.map +0 -1
- package/dist/agents.js +0 -41
- package/dist/agents.js.map +0 -10
- package/dist/auth.js +0 -3
- package/dist/auth.js.map +0 -9
- package/dist/browser.d.ts +0 -3
- package/dist/browser.d.ts.map +0 -1
- package/dist/browser.js +0 -9
- package/dist/browser.js.map +0 -9
- package/dist/chunk-cftmy40z.js +0 -70
- package/dist/chunk-cftmy40z.js.map +0 -10
- package/dist/chunk-e1gj8c1a.js +0 -8
- package/dist/chunk-e1gj8c1a.js.map +0 -10
- package/src/browser.ts +0 -2
package/src/createCustomApp.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { randomBytes } from "node:crypto"
|
|
2
|
-
import { watch } from "node:fs"
|
|
2
|
+
import { existsSync, watch } from "node:fs"
|
|
3
3
|
import { access, cp, mkdir, readFile, rm, writeFile } from "node:fs/promises"
|
|
4
4
|
import { dirname, isAbsolute, join, normalize, relative, resolve } from "node:path"
|
|
5
5
|
import { pathToFileURL } from "node:url"
|
|
6
|
-
import type { AuthSessionAudience } from "@sixb/core"
|
|
7
6
|
import {
|
|
8
7
|
type BuildAppResult,
|
|
9
8
|
type BuildSharedAppDevResult,
|
|
@@ -23,6 +22,7 @@ import {
|
|
|
23
22
|
import { devReloadResponse } from "./dev-reload"
|
|
24
23
|
import { collectPublicEnv, renderCustomAppRuntimeScript } from "./runtime"
|
|
25
24
|
import { type PageRoute, routePatternKey, scanAppRoutes } from "./scanner"
|
|
25
|
+
import { sectionCatalog } from "./sections/catalog"
|
|
26
26
|
import { type CustomAppStylesheet, resolveCustomAppStylesheet } from "./styles"
|
|
27
27
|
import { createTailwindCssCompiler, type TailwindCssCompiler } from "./tailwind"
|
|
28
28
|
|
|
@@ -32,9 +32,9 @@ export interface CreateCustomAppOptions {
|
|
|
32
32
|
generatedDir?: string
|
|
33
33
|
publicDir?: string
|
|
34
34
|
apiBaseUrl?: string
|
|
35
|
-
audience?: AuthSessionAudience
|
|
36
35
|
authEnabled?: boolean
|
|
37
|
-
|
|
36
|
+
/** Home, the agent, object pages and the sections. On unless a test turns them off. */
|
|
37
|
+
builtInPages?: boolean
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export interface CustomAppDevOptions {
|
|
@@ -59,36 +59,49 @@ export interface CustomAppStartOptions {
|
|
|
59
59
|
port?: number
|
|
60
60
|
outdir?: string
|
|
61
61
|
apiBaseUrl?: string
|
|
62
|
-
audience?: AuthSessionAudience
|
|
63
62
|
authEnabled?: boolean
|
|
64
63
|
}
|
|
65
64
|
|
|
66
|
-
export interface
|
|
65
|
+
export interface CustomAppServer {
|
|
67
66
|
host: string
|
|
68
67
|
port: number
|
|
69
68
|
url: string
|
|
70
69
|
stop(): Promise<void>
|
|
71
70
|
}
|
|
72
71
|
|
|
72
|
+
export interface CustomAppDevServer extends CustomAppServer {
|
|
73
|
+
/** Whether it reloads the app's sources itself: not while the project has no `app/` folder. */
|
|
74
|
+
watchesSources: boolean
|
|
75
|
+
}
|
|
76
|
+
|
|
73
77
|
export interface CustomAppInstance {
|
|
74
78
|
scanRoutes(): Promise<PageRoute[]>
|
|
75
|
-
hasRoutes(): Promise<boolean>
|
|
76
79
|
prepareAuthExperience(
|
|
77
80
|
options?: CustomAuthExperienceBuildOptions
|
|
78
81
|
): Promise<CustomAuthExperienceBuildResult | null>
|
|
79
82
|
dev(options?: CustomAppDevOptions): Promise<CustomAppDevServer>
|
|
80
83
|
build(options?: CustomAppBuildOptions): Promise<BuildAppResult>
|
|
81
|
-
start(options?: CustomAppStartOptions): Promise<
|
|
84
|
+
start(options?: CustomAppStartOptions): Promise<CustomAppServer>
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
type BunServeRoutes = NonNullable<Parameters<typeof Bun.serve>[0]["routes"]>
|
|
85
88
|
type BunServeRoute = BunServeRoutes[string]
|
|
86
89
|
const packageRoot = resolve(import.meta.dir, "..")
|
|
87
|
-
const builtInAgentRouteModule = "@sixb/app/agents"
|
|
88
90
|
const builtInAgentRoutePaths = ["/agents", "/agents/new/:agentId", "/agents/:threadId"] as const
|
|
89
|
-
|
|
91
|
+
// The shell parts a layout imports from `@sixb/app` style themselves with the same Tailwind build.
|
|
92
|
+
const shellSourcePath = join(packageRoot, "src", "shell")
|
|
93
|
+
const builtInPageModule = "@sixb/app/pages"
|
|
94
|
+
const builtInPageSourcePath = join(packageRoot, "src", "pages")
|
|
95
|
+
// Styles built-in pages need beyond utilities: the pipeline canvas.
|
|
96
|
+
const builtInPageStylesheetPath = join(packageRoot, "src", "pages", "canvas.css")
|
|
97
|
+
// The agent's styles beyond utilities, and the `@source` for its components.
|
|
98
|
+
const agentStylesheetPath = join(packageRoot, "src", "agent", "agent.css")
|
|
90
99
|
const customAppManifestRoute = "/app.webmanifest"
|
|
91
100
|
const internalAppShellRoute = "/__sixb/generated/app-shell"
|
|
101
|
+
// Files the built-in pages show, such as connector logos, served from the package itself so they
|
|
102
|
+
// need no build step of the project's.
|
|
103
|
+
const frameworkAssetsRoute = "/__sixb/assets"
|
|
104
|
+
const frameworkAssetsDir = join(packageRoot, "assets")
|
|
92
105
|
const internalSharedAppShellRoute = "/__sixb/generated/shared-app-shell"
|
|
93
106
|
|
|
94
107
|
export async function createCustomApp(options: CreateCustomAppOptions): Promise<CustomAppInstance> {
|
|
@@ -99,18 +112,23 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
99
112
|
? resolve(rootDir, options.publicDir)
|
|
100
113
|
: resolve(appDir, "public")
|
|
101
114
|
const apiBaseUrl = options.apiBaseUrl
|
|
102
|
-
const audience = options.audience ?? "app"
|
|
103
115
|
const authEnabled = options.authEnabled ?? true
|
|
104
|
-
const
|
|
116
|
+
const builtInPagesEnabled = options.builtInPages ?? true
|
|
105
117
|
|
|
106
118
|
async function scanRoutes(): Promise<PageRoute[]> {
|
|
107
119
|
return [...(await scanAppRoutes(appDir)).pages]
|
|
108
120
|
}
|
|
109
121
|
|
|
122
|
+
// With the built-in pages on, every project is an app, even without an `app/` folder: they fill
|
|
123
|
+
// its routes, Home included.
|
|
124
|
+
function servesApp(routes: readonly PageRoute[]): boolean {
|
|
125
|
+
return routes.length > 0 || builtInPagesEnabled
|
|
126
|
+
}
|
|
127
|
+
|
|
110
128
|
let tailwindCompiler: TailwindCssCompiler | null = null
|
|
111
129
|
let tailwindCompilerKey: string | null = null
|
|
112
130
|
let authTailwindCompiler: TailwindCssCompiler | null = null
|
|
113
|
-
let
|
|
131
|
+
let frameworkCssCompiler: TailwindCssCompiler | null = null
|
|
114
132
|
|
|
115
133
|
// `app/globals.css` is source. When it uses Tailwind, compile it to
|
|
116
134
|
// `.sixb/generated/app.css` and bundle that; plain CSS bundles as-is. This
|
|
@@ -152,19 +170,20 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
152
170
|
await compiler.compile()
|
|
153
171
|
}
|
|
154
172
|
|
|
155
|
-
async function
|
|
173
|
+
async function prepareCombinedStylesheet(
|
|
156
174
|
stylesheet: Extract<CustomAppStylesheet, { kind: "tailwind" }>
|
|
157
175
|
): Promise<string> {
|
|
158
176
|
const inputPath = join(generatedDir, "app.input.css")
|
|
159
177
|
const uiGlobalsPath = Bun.resolveSync("@sixb/ui/globals.css", packageRoot)
|
|
160
|
-
const agentUiGlobalsPath = Bun.resolveSync("@sixb/agent-ui/globals.css", packageRoot)
|
|
161
178
|
await writeFileIfChanged(
|
|
162
179
|
inputPath,
|
|
163
180
|
[
|
|
164
181
|
`@import ${JSON.stringify(uiGlobalsPath)};`,
|
|
165
|
-
`@source ${JSON.stringify(
|
|
182
|
+
`@source ${JSON.stringify(shellSourcePath)};`,
|
|
183
|
+
`@source ${JSON.stringify(builtInPageSourcePath)};`,
|
|
184
|
+
`@import ${JSON.stringify(builtInPageStylesheetPath)};`,
|
|
166
185
|
`@import ${JSON.stringify(stylesheet.sourcePath)};`,
|
|
167
|
-
`@import ${JSON.stringify(
|
|
186
|
+
`@import ${JSON.stringify(agentStylesheetPath)};`,
|
|
168
187
|
"",
|
|
169
188
|
].join("\n")
|
|
170
189
|
)
|
|
@@ -181,16 +200,16 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
181
200
|
|
|
182
201
|
if (stylesheet.kind === "tailwind" && builtInRoutes.length > 0) {
|
|
183
202
|
return {
|
|
184
|
-
stylesheetPath: await
|
|
203
|
+
stylesheetPath: await prepareCombinedStylesheet(stylesheet),
|
|
185
204
|
frameworkStylesheetPaths: [],
|
|
186
205
|
}
|
|
187
206
|
}
|
|
188
207
|
|
|
189
208
|
const preparedStylesheet = await prepareStylesheet(stylesheet)
|
|
190
|
-
const
|
|
209
|
+
const frameworkStylesheetPath = await prepareFrameworkStylesheet(builtInRoutes)
|
|
191
210
|
|
|
192
211
|
return {
|
|
193
|
-
frameworkStylesheetPaths:
|
|
212
|
+
frameworkStylesheetPaths: frameworkStylesheetPath ? [frameworkStylesheetPath] : [],
|
|
194
213
|
stylesheetPath:
|
|
195
214
|
preparedStylesheet.kind === "none"
|
|
196
215
|
? null
|
|
@@ -200,35 +219,36 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
200
219
|
}
|
|
201
220
|
}
|
|
202
221
|
|
|
203
|
-
async function
|
|
222
|
+
async function prepareFrameworkStylesheet(
|
|
204
223
|
builtInRoutes: readonly BuiltInRouteManifestEntry[]
|
|
205
224
|
): Promise<string | null> {
|
|
206
225
|
if (builtInRoutes.length === 0) {
|
|
207
226
|
return null
|
|
208
227
|
}
|
|
209
228
|
|
|
210
|
-
const inputPath = join(generatedDir, "
|
|
211
|
-
const outputPath = join(generatedDir, "
|
|
229
|
+
const inputPath = join(generatedDir, "framework.input.css")
|
|
230
|
+
const outputPath = join(generatedDir, "framework.css")
|
|
212
231
|
const uiGlobalsPath = Bun.resolveSync("@sixb/ui/globals.css", packageRoot)
|
|
213
|
-
const agentUiGlobalsPath = Bun.resolveSync("@sixb/agent-ui/globals.css", packageRoot)
|
|
214
232
|
await writeFileIfChanged(
|
|
215
233
|
inputPath,
|
|
216
234
|
[
|
|
217
235
|
`@import ${JSON.stringify(uiGlobalsPath)};`,
|
|
218
|
-
`@source ${JSON.stringify(
|
|
219
|
-
`@
|
|
236
|
+
`@source ${JSON.stringify(shellSourcePath)};`,
|
|
237
|
+
`@source ${JSON.stringify(builtInPageSourcePath)};`,
|
|
238
|
+
`@import ${JSON.stringify(builtInPageStylesheetPath)};`,
|
|
239
|
+
`@import ${JSON.stringify(agentStylesheetPath)};`,
|
|
220
240
|
"",
|
|
221
241
|
].join("\n")
|
|
222
242
|
)
|
|
223
243
|
|
|
224
|
-
|
|
244
|
+
frameworkCssCompiler ??= createTailwindCssCompiler({
|
|
225
245
|
inputPath,
|
|
226
246
|
outputPath,
|
|
227
247
|
cwd: packageRoot,
|
|
228
248
|
resolveFrom: packageRoot,
|
|
229
249
|
label: "[SixbCustomApp]",
|
|
230
250
|
})
|
|
231
|
-
await
|
|
251
|
+
await frameworkCssCompiler.compile()
|
|
232
252
|
return outputPath
|
|
233
253
|
}
|
|
234
254
|
|
|
@@ -241,13 +261,14 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
241
261
|
sharedMainPath: string
|
|
242
262
|
routes: PageRoute[]
|
|
243
263
|
}> {
|
|
264
|
+
assertAppPackagesInstalled(rootDir)
|
|
244
265
|
const discovery = await scanAppRoutes(appDir)
|
|
245
266
|
const routes = [...discovery.pages]
|
|
246
|
-
if (routes
|
|
267
|
+
if (!servesApp(routes)) {
|
|
247
268
|
throw new Error(`[SixbCustomApp] No app routes found in ${appDir}`)
|
|
248
269
|
}
|
|
249
270
|
|
|
250
|
-
const builtInRoutes =
|
|
271
|
+
const builtInRoutes = builtInPagesEnabled ? builtInRoutesFor(routes) : []
|
|
251
272
|
const stylesheets = await prepareStylesheets(builtInRoutes)
|
|
252
273
|
await generateRouteManifest(routes, generatedDir, {
|
|
253
274
|
builtInRoutes,
|
|
@@ -255,12 +276,13 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
255
276
|
})
|
|
256
277
|
const entry = await generateAppEntry(rootDir, generatedDir, {
|
|
257
278
|
apiBaseUrl,
|
|
258
|
-
audience,
|
|
259
279
|
authEnabled,
|
|
260
280
|
appDir,
|
|
261
281
|
publicDir,
|
|
262
282
|
frameworkStylesheetPaths: stylesheets.frameworkStylesheetPaths,
|
|
263
283
|
stylesheetPath: stylesheets.stylesheetPath,
|
|
284
|
+
sections: builtInPagesEnabled,
|
|
285
|
+
projectPages: routes.length > 0,
|
|
264
286
|
})
|
|
265
287
|
return { ...entry, routes }
|
|
266
288
|
}
|
|
@@ -322,11 +344,6 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
322
344
|
return await scanRoutes()
|
|
323
345
|
},
|
|
324
346
|
|
|
325
|
-
async hasRoutes() {
|
|
326
|
-
const routes = await scanRoutes()
|
|
327
|
-
return routes.length > 0
|
|
328
|
-
},
|
|
329
|
-
|
|
330
347
|
async prepareAuthExperience(options) {
|
|
331
348
|
return await prepareAuthExperience(options)
|
|
332
349
|
},
|
|
@@ -334,9 +351,9 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
334
351
|
async dev(devOptions: CustomAppDevOptions = {}) {
|
|
335
352
|
const publicEnv = collectPublicEnv()
|
|
336
353
|
const withRuntime = (html: string) =>
|
|
337
|
-
injectRuntimeConfig(html, { apiBaseUrl,
|
|
354
|
+
injectRuntimeConfig(html, { apiBaseUrl, authEnabled, publicEnv })
|
|
338
355
|
const host = devOptions.host ?? "0.0.0.0"
|
|
339
|
-
const port = devOptions.port ??
|
|
356
|
+
const port = devOptions.port ?? 3000
|
|
340
357
|
const { htmlPath, manifestPath, sharedHtmlPath, sharedMainPath } = await prepareGeneratedApp()
|
|
341
358
|
await prepareAuthExperience()
|
|
342
359
|
let htmlImportVersion = 0
|
|
@@ -364,13 +381,15 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
364
381
|
...sharedAssetRoutes,
|
|
365
382
|
...reservedSixbRoutes(),
|
|
366
383
|
"/__sixb/dev-reload.js": getHeadRoute(devReloadResponse),
|
|
384
|
+
[`${frameworkAssetsRoute}/*`]: getHeadRoute((request) =>
|
|
385
|
+
frameworkAssetResponse(request, new URL(request.url).pathname)
|
|
386
|
+
),
|
|
367
387
|
[customAppManifestRoute]: manifestRoute(manifestPath),
|
|
368
388
|
[privateAppShellRoute]: htmlBundleRoute(bundle),
|
|
369
389
|
...sharedAppDevRoutes(
|
|
370
390
|
async () =>
|
|
371
391
|
injectRuntimeConfig((await ensureSharedBuild()).html, {
|
|
372
392
|
apiBaseUrl,
|
|
373
|
-
audience: "app",
|
|
374
393
|
authEnabled: false,
|
|
375
394
|
publicEnv,
|
|
376
395
|
}),
|
|
@@ -459,23 +478,27 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
459
478
|
console.error(`[SixbCustomApp] Rebuild failed: ${message}`)
|
|
460
479
|
})
|
|
461
480
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
481
|
+
// A project without an `app/` folder serves the built-in pages alone. Nothing here can
|
|
482
|
+
// watch a folder that does not exist yet, so `sixb dev` restarts when one is created.
|
|
483
|
+
const watcher = (await pathExists(appDir))
|
|
484
|
+
? watch(appDir, { recursive: true }, (_eventType, filename) => {
|
|
485
|
+
if (!filename) return
|
|
486
|
+
if (!/\.(ts|tsx|css)$/.test(String(filename))) return
|
|
487
|
+
|
|
488
|
+
if (rebuildTimer) {
|
|
489
|
+
clearTimeout(rebuildTimer)
|
|
490
|
+
}
|
|
491
|
+
rebuildTimer = setTimeout(() => {
|
|
492
|
+
rebuildTimer = null
|
|
493
|
+
enqueueRebuild()
|
|
494
|
+
}, 80)
|
|
495
|
+
})
|
|
496
|
+
: null
|
|
474
497
|
|
|
475
498
|
// An FSWatcher emits `error` as an event, and an unhandled one takes the whole dev process
|
|
476
499
|
// down — the `.catch()` above only covers a failed rebuild. Losing file watching should cost
|
|
477
500
|
// hot reload, not the server: keep serving the last good build and say so.
|
|
478
|
-
watcher
|
|
501
|
+
watcher?.on("error", (error: unknown) => {
|
|
479
502
|
const message = error instanceof Error ? error.message : String(error)
|
|
480
503
|
console.error(
|
|
481
504
|
`[SixbCustomApp] Stopped watching ${appDir}: ${message}. ` +
|
|
@@ -489,17 +512,18 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
489
512
|
host,
|
|
490
513
|
port,
|
|
491
514
|
url: `http://${displayHost}:${port}`,
|
|
515
|
+
watchesSources: watcher !== null,
|
|
492
516
|
async stop() {
|
|
493
517
|
stopping = true
|
|
494
518
|
if (rebuildTimer) {
|
|
495
519
|
clearTimeout(rebuildTimer)
|
|
496
520
|
rebuildTimer = null
|
|
497
521
|
}
|
|
498
|
-
watcher
|
|
522
|
+
watcher?.close()
|
|
499
523
|
await rebuildChain
|
|
500
524
|
await tailwindCompiler?.stop()
|
|
501
525
|
await authTailwindCompiler?.stop()
|
|
502
|
-
await
|
|
526
|
+
await frameworkCssCompiler?.stop()
|
|
503
527
|
const activeServer = server
|
|
504
528
|
server = null
|
|
505
529
|
activeServer?.stop(true)
|
|
@@ -547,7 +571,7 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
547
571
|
async start(startOptions: CustomAppStartOptions = {}) {
|
|
548
572
|
const publicEnv = collectPublicEnv()
|
|
549
573
|
const host = startOptions.host ?? "0.0.0.0"
|
|
550
|
-
const port = startOptions.port ??
|
|
574
|
+
const port = startOptions.port ?? 3000
|
|
551
575
|
const outdir = resolve(rootDir, startOptions.outdir ?? join(".sixb", "dist", "app"))
|
|
552
576
|
const indexPath = join(outdir, "index.html")
|
|
553
577
|
const sharedIndexPath = join(outdir, SHARED_APP_SHELL_FILE_NAME)
|
|
@@ -563,13 +587,11 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
563
587
|
|
|
564
588
|
const indexHtml = injectRuntimeConfig(await Bun.file(indexPath).text(), {
|
|
565
589
|
apiBaseUrl: startOptions.apiBaseUrl ?? apiBaseUrl,
|
|
566
|
-
audience: startOptions.audience ?? audience,
|
|
567
590
|
authEnabled: startOptions.authEnabled ?? authEnabled,
|
|
568
591
|
publicEnv,
|
|
569
592
|
})
|
|
570
593
|
const sharedIndexHtml = injectRuntimeConfig(await Bun.file(sharedIndexPath).text(), {
|
|
571
594
|
apiBaseUrl: startOptions.apiBaseUrl ?? apiBaseUrl,
|
|
572
|
-
audience: "app",
|
|
573
595
|
authEnabled: false,
|
|
574
596
|
publicEnv,
|
|
575
597
|
})
|
|
@@ -592,6 +614,10 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
592
614
|
return notFoundResponse()
|
|
593
615
|
}
|
|
594
616
|
|
|
617
|
+
if (url.pathname.startsWith(`${frameworkAssetsRoute}/`)) {
|
|
618
|
+
return frameworkAssetResponse(req, url.pathname)
|
|
619
|
+
}
|
|
620
|
+
|
|
595
621
|
if (isSharedAppRoute(url.pathname)) {
|
|
596
622
|
if (isAssetRequest(url.pathname)) {
|
|
597
623
|
return notFoundResponse()
|
|
@@ -664,15 +690,68 @@ async function pathExists(path: string): Promise<boolean> {
|
|
|
664
690
|
}
|
|
665
691
|
}
|
|
666
692
|
|
|
667
|
-
|
|
668
|
-
|
|
693
|
+
// The generated app imports these from the project, so the page code and the framework share one
|
|
694
|
+
// copy of React. `@sixb/app` only names them as peers.
|
|
695
|
+
const appPeerPackages = ["react", "react-dom", "react-router-dom", "@tanstack/react-query"] as const
|
|
696
|
+
|
|
697
|
+
// Looks for `node_modules` as the bundler does. `Bun.resolveSync` would also find Bun's global
|
|
698
|
+
// install cache, which the bundler never reads.
|
|
699
|
+
function assertAppPackagesInstalled(rootDir: string): void {
|
|
700
|
+
const missing = appPeerPackages.filter((name) => {
|
|
701
|
+
for (let dir = rootDir; ; dir = dirname(dir)) {
|
|
702
|
+
if (existsSync(join(dir, "node_modules", name, "package.json"))) return false
|
|
703
|
+
if (dirname(dir) === dir) return true
|
|
704
|
+
}
|
|
705
|
+
})
|
|
706
|
+
if (missing.length > 0) throw new AppPackagesMissingError(missing)
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/** The project lacks packages the app is bundled from. `sixb dev` keeps the API running. */
|
|
710
|
+
export class AppPackagesMissingError extends Error {
|
|
711
|
+
readonly name = "AppPackagesMissingError"
|
|
712
|
+
|
|
713
|
+
constructor(readonly missing: readonly string[]) {
|
|
714
|
+
super(
|
|
715
|
+
`[SixbCustomApp] The app needs ${missing.join(", ")} in this project. Install them with: ` +
|
|
716
|
+
`bun add ${missing.join(" ")}`
|
|
717
|
+
)
|
|
718
|
+
}
|
|
719
|
+
}
|
|
669
720
|
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
721
|
+
function builtInRoutesFor(routes: readonly PageRoute[]): BuiltInRouteManifestEntry[] {
|
|
722
|
+
const projectRoutePatterns = new Set(routes.map((route) => routePatternKey(route.path)))
|
|
723
|
+
const builtInRoutes: BuiltInRouteManifestEntry[] = [
|
|
724
|
+
...builtInAgentRoutePaths.map((path) => ({
|
|
673
725
|
path,
|
|
674
|
-
moduleSpecifier:
|
|
675
|
-
|
|
726
|
+
moduleSpecifier: builtInPageModule,
|
|
727
|
+
exportName: "AgentsPage",
|
|
728
|
+
})),
|
|
729
|
+
// Home starts conversations that continue on the agent routes, so it ships with them.
|
|
730
|
+
{ path: "/", moduleSpecifier: builtInPageModule, exportName: "HomePage" },
|
|
731
|
+
// Every object has a page, outside any section: grants decide who reads it.
|
|
732
|
+
{
|
|
733
|
+
path: "/objects/:objectTypeId/:primaryId",
|
|
734
|
+
moduleSpecifier: builtInPageModule,
|
|
735
|
+
exportName: "ObjectPage",
|
|
736
|
+
},
|
|
737
|
+
...sectionCatalog.flatMap((section) => [
|
|
738
|
+
{
|
|
739
|
+
path: section.path,
|
|
740
|
+
moduleSpecifier: builtInPageModule,
|
|
741
|
+
exportName: section.indexExportName,
|
|
742
|
+
},
|
|
743
|
+
...section.pages.flatMap((page) => [
|
|
744
|
+
{ path: page.path, moduleSpecifier: builtInPageModule, exportName: page.exportName },
|
|
745
|
+
...(page.details ?? []).map((detail) => ({
|
|
746
|
+
path: detail.path,
|
|
747
|
+
moduleSpecifier: builtInPageModule,
|
|
748
|
+
exportName: detail.exportName,
|
|
749
|
+
})),
|
|
750
|
+
]),
|
|
751
|
+
]),
|
|
752
|
+
]
|
|
753
|
+
|
|
754
|
+
return builtInRoutes.filter((route) => !projectRoutePatterns.has(routePatternKey(route.path)))
|
|
676
755
|
}
|
|
677
756
|
|
|
678
757
|
async function writeFileIfChanged(path: string, content: string): Promise<void> {
|
|
@@ -698,6 +777,16 @@ function isFileNotFoundError(error: unknown): boolean {
|
|
|
698
777
|
)
|
|
699
778
|
}
|
|
700
779
|
|
|
780
|
+
async function frameworkAssetResponse(request: Request, pathname: string): Promise<Response> {
|
|
781
|
+
const resolvedPath = resolveStaticPath(
|
|
782
|
+
frameworkAssetsDir,
|
|
783
|
+
pathname.slice(frameworkAssetsRoute.length)
|
|
784
|
+
)
|
|
785
|
+
if (!resolvedPath || !(await Bun.file(resolvedPath).exists())) return notFoundResponse()
|
|
786
|
+
// A release replaces the package, and with it every asset, so a day of caching is safe.
|
|
787
|
+
return staticFileResponse(request, resolvedPath, { "cache-control": "public, max-age=86400" })
|
|
788
|
+
}
|
|
789
|
+
|
|
701
790
|
async function createPublicRoutes(publicDir: string): Promise<BunServeRoutes> {
|
|
702
791
|
const files = new Bun.Glob("**/*").scan({
|
|
703
792
|
cwd: publicDir,
|
|
@@ -912,7 +1001,6 @@ function injectRuntimeConfig(
|
|
|
912
1001
|
html: string,
|
|
913
1002
|
config: {
|
|
914
1003
|
readonly apiBaseUrl?: string
|
|
915
|
-
readonly audience: AuthSessionAudience
|
|
916
1004
|
readonly authEnabled: boolean
|
|
917
1005
|
readonly publicEnv: Record<string, string>
|
|
918
1006
|
}
|
|
@@ -920,12 +1008,12 @@ function injectRuntimeConfig(
|
|
|
920
1008
|
const existingRuntimeScript = /<script>window\.__SIXB_RUNTIME__ = (.*?);<\/script>/
|
|
921
1009
|
const existingConfig = html.match(existingRuntimeScript)?.[1]
|
|
922
1010
|
const script = renderCustomAppRuntimeScript({
|
|
923
|
-
auth: {
|
|
1011
|
+
auth: { enabled: config.authEnabled },
|
|
924
1012
|
...(existingConfig ? JSON.parse(existingConfig) : {}),
|
|
925
1013
|
...(config.apiBaseUrl
|
|
926
1014
|
? {
|
|
927
1015
|
api: { baseUrl: config.apiBaseUrl },
|
|
928
|
-
auth: {
|
|
1016
|
+
auth: { enabled: config.authEnabled },
|
|
929
1017
|
}
|
|
930
1018
|
: {}),
|
|
931
1019
|
publicEnv: config.publicEnv,
|
package/src/index.ts
CHANGED
|
@@ -1,19 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export {
|
|
1
|
+
/**
|
|
2
|
+
* Everything `@sixb/app` offers code in a project's `app/` directory.
|
|
3
|
+
*
|
|
4
|
+
* One module for both places that code runs: the browser bundle, and Bun when the build imports
|
|
5
|
+
* `app/layout.tsx` to read its exports. Nothing here may need Node or Bun, and nothing may touch
|
|
6
|
+
* `window` or `document` at module scope. The CLI's tooling lives in `@sixb/app/server`.
|
|
7
|
+
*
|
|
8
|
+
* Components and data stay where they live: `@sixb/ui` for the design system and `@sixb/client`
|
|
9
|
+
* for the API. This entry never re-exports them, so each name has one import path.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export { agentContext } from "@sixb/core/agents/context"
|
|
13
|
+
export type { ModelReasoningLevel } from "@sixb/core/models"
|
|
14
|
+
export { AgentContextProvider, useAgentContext } from "./agent/agent-context-provider"
|
|
15
|
+
export { AgentPanel, type AgentPanelProps } from "./agent/agent-panel"
|
|
16
|
+
export { AgentSurface, type AgentSurfaceMode, type AgentSurfaceProps } from "./agent/agent-surface"
|
|
17
|
+
export { setAgentSurfaceMode } from "./agent/agent-surface-state"
|
|
18
|
+
export { Composer, type ComposerProps } from "./agent/components/composer"
|
|
19
|
+
export type {
|
|
20
|
+
AgentDocumentPreviewRenderer,
|
|
21
|
+
AgentDocumentPreviewRendererProps,
|
|
22
|
+
} from "./agent/document-preview/types"
|
|
23
|
+
export { AgentChatPage, type AgentChatPageProps } from "./agent/react-router"
|
|
24
|
+
export type { LanguageModel } from "./agent/types"
|
|
25
|
+
export { AgentWorkspaceProvider, type AgentWorkspaceProviderProps } from "./agent/workspace"
|
|
26
|
+
export type { AuthExperienceActions, AuthExperienceProps, AuthExperienceState } from "./auth"
|
|
13
27
|
export type { AppMetadata } from "./metadata"
|
|
28
|
+
export { SyncButton, type SyncButtonProps } from "./pages/data/sync-button"
|
|
14
29
|
export { publicEnv } from "./public-env"
|
|
30
|
+
export type { AppSectionId } from "./sections/catalog"
|
|
31
|
+
export {
|
|
32
|
+
type AppSection,
|
|
33
|
+
type AppVisibility,
|
|
34
|
+
useCurrentSection,
|
|
35
|
+
useSections,
|
|
36
|
+
} from "./sections/sections"
|
|
37
|
+
export { type CurrentUser, useCurrentUser, useSignOut } from "./session"
|
|
38
|
+
export { AgentDock } from "./shell/agent-dock"
|
|
39
|
+
export {
|
|
40
|
+
AppShell,
|
|
41
|
+
type AppShellProps,
|
|
42
|
+
AppShellProvider,
|
|
43
|
+
type AppShellProviderProps,
|
|
44
|
+
} from "./shell/app-shell"
|
|
45
|
+
export { Brand, type BrandProps } from "./shell/brand"
|
|
15
46
|
export {
|
|
16
|
-
|
|
17
|
-
type
|
|
18
|
-
type
|
|
19
|
-
|
|
47
|
+
type NavEntry,
|
|
48
|
+
type NavGroup,
|
|
49
|
+
type NavItem,
|
|
50
|
+
NavItems,
|
|
51
|
+
type NavItemsProps,
|
|
52
|
+
} from "./shell/nav-items"
|
|
53
|
+
export { SearchCommand, type SearchCommandProps } from "./shell/search-command"
|
|
54
|
+
export { SectionNav, type SectionNavProps } from "./shell/section-nav"
|
|
55
|
+
export { UserMenu, type UserMenuItemProps, type UserMenuProps } from "./shell/user-menu"
|