@inneranimalmedia/agentsam-sdk 2.6.18 → 2.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/apps/README.md +71 -0
- package/apps/agentsam-browser-site/README.md +30 -0
- package/apps/agentsam-copro-studio/README.md +113 -0
- package/apps/agentsam-go-worker/LICENSE +110 -0
- package/apps/agentsam-go-worker/README.md +244 -0
- package/apps/agentsam-go-worker/runtime/.agentsam-build-commit +1 -0
- package/apps/agentsam-go-worker/runtime/.agentsam-built-at +1 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/app_packages.go +443 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/app_packages_test.go +125 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/auth.go +27 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/auth_test.go +45 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/expose.go +147 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/expose_test.go +59 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/hostpath.go +11 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/language_packs.go +172 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/language_packs_test.go +32 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/main.go +253 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/pair.go +157 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/pair_test.go +100 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/relay.go +162 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/relay_supervisor_test.go +128 -0
- package/apps/agentsam-go-worker/runtime/cmd/agentsamd/tunnel.go +51 -0
- package/apps/agentsam-go-worker/runtime/cmd/server/main.go +135 -0
- package/apps/agentsam-go-worker/runtime/go.mod +8 -0
- package/apps/agentsam-go-worker/runtime/go.sum +4 -0
- package/apps/agentsam-go-worker/runtime/internal/agentserror/envelope.go +100 -0
- package/apps/agentsam-go-worker/runtime/internal/agentserror/envelope_test.go +31 -0
- package/apps/agentsam-go-worker/runtime/internal/backoff/backoff.go +57 -0
- package/apps/agentsam-go-worker/runtime/internal/backoff/backoff_test.go +31 -0
- package/apps/agentsam-go-worker/runtime/internal/dockerapi/client.go +409 -0
- package/apps/agentsam-go-worker/runtime/internal/dockerapi/dockerapi_test.go +178 -0
- package/apps/agentsam-go-worker/runtime/internal/dockerapi/http.go +202 -0
- package/apps/agentsam-go-worker/runtime/internal/execapi/exec.go +148 -0
- package/apps/agentsam-go-worker/runtime/internal/execapi/http.go +18 -0
- package/apps/agentsam-go-worker/runtime/internal/execapi/pty.go +45 -0
- package/apps/agentsam-go-worker/runtime/internal/execapi/pty_sessions.go +543 -0
- package/apps/agentsam-go-worker/runtime/internal/execapi/pty_sessions_test.go +195 -0
- package/apps/agentsam-go-worker/runtime/internal/execapi/pty_test.go +21 -0
- package/apps/agentsam-go-worker/runtime/internal/fsapi/fsapi.go +864 -0
- package/apps/agentsam-go-worker/runtime/internal/fsapi/fsapi_test.go +228 -0
- package/apps/agentsam-go-worker/runtime/internal/gitapi/gitapi.go +589 -0
- package/apps/agentsam-go-worker/runtime/internal/gitapi/gitapi_test.go +113 -0
- package/apps/agentsam-go-worker/runtime/internal/hashop/hashop.go +37 -0
- package/apps/agentsam-go-worker/runtime/internal/hashop/hashop_test.go +26 -0
- package/apps/agentsam-go-worker/runtime/internal/health/health.go +60 -0
- package/apps/agentsam-go-worker/runtime/internal/hostpath/hostpath.go +134 -0
- package/apps/agentsam-go-worker/runtime/internal/hostpath/hostpath_test.go +59 -0
- package/apps/agentsam-go-worker/runtime/internal/imessage/http.go +120 -0
- package/apps/agentsam-go-worker/runtime/internal/imessage/imessage.go +523 -0
- package/apps/agentsam-go-worker/runtime/internal/imessage/imessage_test.go +307 -0
- package/apps/agentsam-go-worker/runtime/internal/inspect/inspect.go +71 -0
- package/apps/agentsam-go-worker/runtime/internal/inspect/inspect_test.go +24 -0
- package/apps/agentsam-go-worker/runtime/internal/localauth/token.go +171 -0
- package/apps/agentsam-go-worker/runtime/internal/localauth/token_test.go +84 -0
- package/apps/agentsam-go-worker/runtime/internal/pairing/dialog.go +56 -0
- package/apps/agentsam-go-worker/runtime/internal/pairing/pairing.go +100 -0
- package/apps/agentsam-go-worker/runtime/internal/pairing/pairing_test.go +75 -0
- package/apps/agentsam-go-worker/runtime/internal/relay/relay.go +519 -0
- package/apps/agentsam-go-worker/runtime/internal/relay/relay_test.go +397 -0
- package/apps/agentsam-go-worker/runtime/internal/runtimeinfo/runtimeinfo.go +49 -0
- package/apps/agentsam-go-worker/runtime/internal/runtimeinfo/runtimeinfo_test.go +20 -0
- package/apps/agentsam-go-worker/runtime/internal/sshtunnel/sshtunnel.go +277 -0
- package/apps/agentsam-go-worker/runtime/internal/sshtunnel/sshtunnel_test.go +176 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/ADAPTER_CONTRACT.md +61 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/bridge.go +125 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/registry.go +53 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-go/adapter.go +39 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-go/tool.json +21 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-http/server.py +33 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-http/tool.json +17 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-node/adapter.js +13 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-node/tool.json +20 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-python/adapter.py +18 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-python/tool.json +20 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-rust/Cargo.toml +12 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-rust/src/main.rs +21 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-rust/tool.json +21 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-ts/adapter.ts +19 -0
- package/apps/agentsam-go-worker/runtime/mcp-bridge/tools/echo-ts/tool.json +22 -0
- package/apps/agentsamd/README.md +107 -0
- package/apps/cad-creator/LICENSE +110 -0
- package/apps/cad-creator/README.md +743 -0
- package/apps/cad-creator/agentsam.app.json +2 -2
- package/apps/design-canvas/README.md +101 -0
- package/apps/design-canvas/agentsam.app.json +19 -8
- package/apps/ecommerce-cms-agentsam/README.md +24 -0
- package/apps/ecommerce-cms-agentsam/agentsam.app.json +1 -128
- package/apps/local-studio/LICENSE +110 -0
- package/apps/local-studio/README.md +61 -0
- package/apps/local-studio/agentsam.app.json +47 -2
- package/apps/samsketch/README.md +21 -0
- package/apps/samsketch/agentsam.app.json +0 -1
- package/apps/samspeaks/README.md +49 -0
- package/apps/theme-gallery-preview/README.md +49 -0
- package/docs/AUTH_IDENTITY_CONTRACT.md +70 -37
- package/docs/CLI_SHELL.md +19 -8
- package/docs/adr/ADR-0011-portable-project-context-and-agentsam-authority.md +124 -0
- package/docs/adr/ADR-0012-repository-intelligence-and-knowledge-lane-authority.md +148 -0
- package/docs/adr/ADR-0013-local-studio-identity-and-provider-grant-ownership.md +101 -0
- package/docs/adr/README.md +24 -13
- package/docs/agentsam-remote-control/ARCHITECTURE.md +60 -0
- package/docs/agentsam-remote-control/README.md +127 -0
- package/docs/architecture/ACP_D1_HOSTING.md +93 -47
- package/docs/architecture/AGENTSAM_RUNTIME_PROTOCOL.md +6 -4
- package/docs/architecture/AGENTSAM_WORK_IDE_LANES_2026-10-28.md +2 -0
- package/docs/architecture/DESIGN_PROJECT_READS.md +35 -0
- package/docs/architecture/FS_E2E_CLOSURE_RECEIPT.md +2 -0
- package/docs/architecture/LOCAL_FS_AUTHORITY.md +31 -29
- package/docs/architecture/LOCAL_STUDIO_CLOUDFLARE_OAUTH.md +115 -23
- package/docs/architecture/PROVIDER_NEUTRAL_COMPUTE.md +89 -0
- package/docs/architecture/SAM_RUNTIME_EXECUTION_PLAN.md +88 -0
- package/docs/architecture/identity-and-plugin-oauth-ownership.md +70 -0
- package/docs/architecture/marketplace-forms-and-embeds-end-state.md +299 -0
- package/docs/architecture/primetech/IMPLEMENTATION_WAVES.md +4 -0
- package/docs/architecture/primetech/RESIDENTIAL_DEVELOPMENT_PLAN.md +166 -0
- package/docs/architecture/studio-templates-audit-2026-11-01.md +2 -0
- package/docs/contracts/environment-vocabulary.md +14 -14
- package/docs/contracts/google-cloud-oauth-setup.md +15 -0
- package/docs/document-workflows.md +14 -0
- package/docs/generated/SDK_CAPABILITY_INVENTORY.md +37 -34
- package/docs/local-studio/WORKMODE_DONOR_NOTES.md +2 -0
- package/docs/plans/AGENTSAM_SDK_RELEASE_PROGRAM.md +3 -3
- package/docs/plugins.md +82 -37
- package/docs/prd/PRD-agentsam-cad-studio.md +8 -0
- package/docs/primetech/CANVAS_WORKSPACE_SPEC_2026-12-01.md +335 -0
- package/docs/product/COPRO-EXECUTION-PLAN.md +1 -1
- package/docs/product/PLUGIN-GALLERY-DISCOVERY-AND-INSTALL.md +44 -97
- package/docs/reference/AGENTSAM-REGISTRY.generated.md +18 -15
- package/docs/reference/MCP-DEVELOPMENT.md +32 -0
- package/docs/sam/opencv-media.md +70 -36
- package/migrations/d1/0011c_agentsam_skill_v2_backfill.sql +23 -1
- package/migrations/d1/20261127_agentsam_r2_list_prefix_pagination.sql +17 -0
- package/migrations/d1/20261128_rename_agentsam_mcp_cloudflare_plugin_key.sql +29 -0
- package/migrations/d1/20261130_release_publish_capability.sql +16 -0
- package/migrations/d1/20261202_plugin_built_in_and_categories.sql +19 -0
- package/migrations/d1/generated/20261123_portable_cli_seed.sql +99 -94
- package/migrations/d1/generated/20261123_source_skill_seed.sql +487 -39
- package/migrations/runtime/0013_acp_spawn_and_approval_contract.sql +54 -0
- package/migrations/runtime/0014_notification_outbox_channels.sql +41 -0
- package/package.json +26 -12
- package/packages/agentsam-3d-viewer/package.json +1 -1
- package/packages/agentsam-abs/README.md +91 -0
- package/packages/agentsam-analytics/LICENSE +110 -0
- package/packages/agentsam-analytics/README.md +92 -0
- package/packages/agentsam-architectural-intelligence/mcp/assembly.mjs +17 -0
- package/packages/agentsam-architectural-intelligence/mcp/server.mjs +2 -8
- package/packages/agentsam-assets-core/LICENSE +110 -0
- package/packages/agentsam-brand/LICENSE +110 -0
- package/packages/agentsam-brand/README.md +12 -0
- package/packages/agentsam-brand/package.json +8 -3
- package/packages/agentsam-brand/src/adapters/d1-registry.d.ts +58 -0
- package/packages/agentsam-brand/src/adapters/d1-registry.js +437 -15
- package/packages/agentsam-brand/src/cli/controller.js +53 -16
- package/packages/agentsam-brand/src/core/capabilities.js +3 -3
- package/packages/agentsam-brand/src/core/iconography/family.js +569 -0
- package/packages/agentsam-brand/src/index.js +15 -1
- package/packages/agentsam-brand/src/workspace.d.ts +30 -4
- package/packages/agentsam-brand/src/workspace.js +28 -3
- package/packages/agentsam-browser-surface/README.md +28 -0
- package/packages/agentsam-campaign/LICENSE +110 -0
- package/packages/agentsam-campaign/README.md +133 -0
- package/packages/agentsam-cloudflare-images/LICENSE +110 -0
- package/packages/agentsam-cms/package.json +2 -2
- package/packages/agentsam-cms/src/chat-storage.js +33 -9
- package/packages/agentsam-cms/test/chat-storage.test.mjs +37 -0
- package/packages/agentsam-communications/README.md +5 -4
- package/packages/agentsam-communications/package.json +5 -3
- package/packages/agentsam-communications/src/adapters.js +26 -0
- package/packages/agentsam-communications/src/imessage.js +249 -0
- package/packages/agentsam-communications/src/index.js +3 -1
- package/packages/agentsam-communications/src/outbox.js +87 -6
- package/packages/agentsam-communications/src/push.js +146 -0
- package/packages/agentsam-communications/test/communications.test.mjs +43 -1
- package/packages/agentsam-communications/test/imessage.test.mjs +223 -0
- package/packages/agentsam-communications/test/push.test.mjs +113 -0
- package/packages/agentsam-content/LICENSE +110 -0
- package/packages/agentsam-content-studio/LICENSE +110 -0
- package/packages/agentsam-contracts/README.md +6 -1
- package/packages/agentsam-contracts/agentsam.package.json +11 -3
- package/packages/agentsam-contracts/dist/agent.d.ts +1 -3
- package/packages/agentsam-contracts/dist/agent.js +1 -1
- package/packages/agentsam-contracts/dist/index.js +30 -39
- package/packages/agentsam-contracts/dist/run.d.ts +70 -45
- package/packages/agentsam-contracts/dist/run.js +29 -38
- package/packages/agentsam-contracts/dist/widgets.d.ts +18 -0
- package/packages/agentsam-contracts/package.json +6 -3
- package/packages/agentsam-contracts/schemas/approval-decision.v1.schema.json +36 -0
- package/packages/agentsam-contracts/schemas/approval.v1.schema.json +134 -0
- package/packages/agentsam-contracts/schemas/run-receipt.v1.schema.json +2 -91
- package/packages/agentsam-contracts/schemas/run-spawn.v1.schema.json +74 -0
- package/packages/agentsam-contracts/schemas/run.v1.schema.json +3 -85
- package/packages/agentsam-contracts/src/agent.ts +1 -3
- package/packages/agentsam-contracts/src/run.ts +76 -90
- package/packages/agentsam-contracts/src/widgets.ts +22 -0
- package/packages/agentsam-contracts/test/run-contract.test.mjs +29 -61
- package/packages/agentsam-database-editor/LICENSE +110 -0
- package/packages/agentsam-database-editor/README.md +105 -0
- package/packages/agentsam-desktop-shell/LICENSE +110 -0
- package/packages/agentsam-desktop-shell/README.md +73 -0
- package/packages/agentsam-docs-theme/LICENSE +110 -0
- package/packages/agentsam-docs-theme/README.md +11 -0
- package/packages/agentsam-embeds/README.md +51 -0
- package/packages/agentsam-errors/package.json +1 -1
- package/packages/agentsam-goalguru/README.md +19 -0
- package/packages/agentsam-goap/package.json +2 -2
- package/packages/agentsam-hooks/README.md +14 -0
- package/packages/agentsam-hooks/package.json +1 -1
- package/packages/agentsam-hooks/src/contracts.js +1 -0
- package/packages/agentsam-hooks/src/index.d.ts +1 -1
- package/packages/agentsam-hooks/test/runtime.test.mjs +13 -0
- package/packages/agentsam-ide/LICENSE +110 -0
- package/packages/agentsam-ide/README.md +146 -0
- package/packages/agentsam-key-manager/LICENSE +110 -0
- package/packages/agentsam-knowledge/package.json +1 -1
- package/packages/agentsam-loading-scene/LICENSE +110 -0
- package/packages/agentsam-loading-scene/README.md +109 -0
- package/packages/agentsam-merch/package.json +1 -1
- package/packages/agentsam-nav/LICENSE +110 -0
- package/packages/agentsam-nav/dist/AdminAppsDialog.d.ts +1 -1
- package/packages/agentsam-nav/dist/NavProvider.d.ts +2 -0
- package/packages/agentsam-nav/dist/Surfaces.d.ts +1 -0
- package/packages/agentsam-nav/dist/browser.global.js +19 -15
- package/packages/agentsam-nav/dist/browser.js +598 -190
- package/packages/agentsam-nav/dist/contracts.d.ts +22 -1
- package/packages/agentsam-nav/dist/index.d.ts +1 -1
- package/packages/agentsam-nav/dist/index.js +529 -91
- package/packages/agentsam-nav/dist/legacy.css +8 -0
- package/packages/agentsam-nav/dist/shell.css +268 -2
- package/packages/agentsam-nav/dist/theme.css +268 -2
- package/packages/agentsam-nav/dist/useAdminApps.d.ts +1 -0
- package/packages/agentsam-nav/package.json +1 -1
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/engine.cpp.o +0 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/engine.cpp.o.d +2 -0
- package/packages/agentsam-occt/.native-build/agentsam-occt +0 -0
- package/packages/agentsam-occt/dist/browser.d.ts +2 -2
- package/packages/agentsam-occt/native/engine.cpp +3 -0
- package/packages/agentsam-occt/package.json +1 -1
- package/packages/agentsam-occt/src/browser.ts +2 -2
- package/packages/agentsam-occt/test/native-engine.test.mjs +2 -2
- package/packages/agentsam-queue-control/package.json +1 -1
- package/packages/agentsam-repository/package.json +1 -1
- package/packages/agentsam-scoring/LICENSE +110 -0
- package/packages/agentsam-sections/README.md +76 -0
- package/packages/agentsam-settings/LICENSE +110 -0
- package/packages/agentsam-settings/README.md +136 -0
- package/packages/agentsam-shell-kit/LICENSE +110 -0
- package/packages/agentsam-shell-kit/README.md +5 -0
- package/packages/agentsam-vault/LICENSE +110 -0
- package/packages/agentsam-vault/README.md +16 -8
- package/packages/agentsam-vault/package.json +5 -2
- package/packages/agentsam-vault/src/crypto/oauth-envelope.js +1 -1
- package/packages/agentsam-vault/src/index.d.ts +84 -0
- package/packages/agentsam-vault/src/index.js +4 -0
- package/packages/agentsam-vault/src/providers/registry.js +8 -0
- package/packages/agentsam-vault/src/runtime/account-resolver.js +282 -0
- package/packages/agentsam-vault/src/runtime/oauth-resolver.js +163 -0
- package/packages/agentsam-vault/src/runtime/resolver.js +73 -30
- package/packages/agentsam-work/LICENSE +110 -0
- package/packages/agentsam-work/README.md +64 -0
- package/packages/agentsam-workbench/LICENSE +110 -0
- package/packages/agentsam-workbench/package.json +8 -3
- package/packages/agentsam-workbench/src/agent/AgentPanel.tsx +2 -0
- package/packages/agentsam-workbench/src/agent/ArtifactCard.tsx +61 -0
- package/packages/agentsam-workbench/src/agent/Composer.tsx +90 -26
- package/packages/agentsam-workbench/src/agent/ConnectedAgentPanel.tsx +8 -0
- package/packages/agentsam-workbench/src/agent/Thread.tsx +21 -4
- package/packages/agentsam-workbench/src/agent/ToolReceipt.tsx +48 -8
- package/packages/agentsam-workbench/src/agent/contextual-composer.css +12 -0
- package/packages/agentsam-workbench/src/agent/mini-agentsam.css +18 -2
- package/packages/agentsam-workbench/src/agent/thread.css +20 -0
- package/packages/agentsam-workbench/src/design/DesignWorkspaceFrame.tsx +16 -3
- package/packages/agentsam-workbench/src/design/design-workspace.css +52 -1
- package/packages/agentsam-workbench/src/shell/appearance.mjs +16 -5
- package/packages/agentsam-workbench/src/styles.d.ts +1 -0
- package/packages/agentsam-workbench/src/widgets/AskAgentSamWidget.tsx +29 -0
- package/packages/agentsam-workbench/src/widgets/BuiltinWidget.tsx +33 -1
- package/packages/agentsam-workbench/src/widgets/CreativeWidgets.tsx +30 -0
- package/packages/agentsam-workbench/src/widgets/MediaWidget.tsx +21 -0
- package/packages/agentsam-workbench/src/widgets/ProviderWidgets.tsx +96 -0
- package/packages/agentsam-workbench/src/widgets/QueueDepthWidget.tsx +53 -10
- package/packages/agentsam-workbench/src/widgets/ReleaseWidgets.tsx +137 -0
- package/packages/agentsam-workbench/src/widgets/ask-agentsam.ts +25 -0
- package/packages/agentsam-workbench/src/widgets/covers/brand-guidelines.svg +1 -0
- package/packages/agentsam-workbench/src/widgets/covers/brand.svg +28 -0
- package/packages/agentsam-workbench/src/widgets/covers/data.svg +24 -0
- package/packages/agentsam-workbench/src/widgets/covers/design-in-code.svg +1 -0
- package/packages/agentsam-workbench/src/widgets/covers/design-system.svg +1 -0
- package/packages/agentsam-workbench/src/widgets/covers/design.svg +1 -0
- package/packages/agentsam-workbench/src/widgets/covers/docs.svg +21 -0
- package/packages/agentsam-workbench/src/widgets/covers/sheets.svg +17 -0
- package/packages/agentsam-workbench/src/widgets/covers/slides.svg +1 -0
- package/packages/agentsam-workbench/src/widgets/covers/whiteboard.svg +1 -0
- package/packages/agentsam-workbench/src/widgets/covers/workflows.svg +36 -0
- package/packages/agentsam-workbench/src/widgets/creative-covers.ts +54 -0
- package/packages/agentsam-workbench/src/widgets/index.ts +8 -0
- package/packages/agentsam-workbench/src/widgets/register-ask-agentsam-widget.sql +5 -0
- package/packages/agentsam-workbench/src/widgets/register-creative-widgets.sql +10 -0
- package/packages/agentsam-workbench/src/widgets/register-media-widget.sql +1 -0
- package/packages/agentsam-workbench/src/widgets/register-release-widgets.sql +5 -0
- package/packages/agentsam-workbench/src/widgets/registry.ts +64 -36
- package/packages/agentsam-workbench/src/widgets/release-snapshots.ts +28 -0
- package/packages/agentsam-workbench/src/widgets/svg.d.ts +9 -0
- package/packages/agentsam-workbench/src/widgets/widgets.css +82 -0
- package/packages/agentsam-workbench/src/workflows/WorkflowStudio.tsx +366 -97
- package/packages/agentsam-workbench/src/workflows/model.ts +15 -9
- package/packages/agentsam-workbench/src/workflows/step-choices.ts +46 -0
- package/packages/agentsam-workbench/src/workflows/types.ts +34 -1
- package/packages/agentsam-workbench/src/workflows/workflow-studio.css +301 -0
- package/packages/analytics-ui/LICENSE +110 -0
- package/packages/analytics-ui/README.md +22 -0
- package/packages/catalog/generated/packages.json +47 -9
- package/packages/connectors/cfoa/OAUTH_STORAGE_AUDIT.md +11 -55
- package/packages/connectors/cfoa/package.json +5 -2
- package/packages/connectors/cfoa/src/api-client.js +18 -1
- package/packages/connectors/cfoa/src/credential.js +139 -23
- package/packages/connectors/cfoa/src/families/media.js +25 -3
- package/packages/connectors/cfoa/src/index.js +2 -2
- package/packages/connectors/cfoa/src/oauth-persist.js +177 -61
- package/packages/connectors/cfoa/src/owner.js +20 -32
- package/packages/connectors/cfoa/src/routes.js +160 -42
- package/packages/connectors/cfoa/src/scope-registry.js +15 -0
- package/packages/connectors/cfoa/test/scope-registry.test.mjs +23 -0
- package/packages/connectors/cfoa/tests/api-client-fetch.test.mjs +34 -0
- package/packages/connectors/cfoa/tests/connection-records.test.mjs +74 -0
- package/packages/connectors/cfoa/tests/connector.test.mjs +123 -1
- package/packages/connectors/cfoa/tests/cross-host-recovery.test.mjs +19 -4
- package/packages/connectors/cfoa/tests/media-discovery.test.mjs +48 -2
- package/packages/connectors/cfoa/tests/oauth-account-selection.test.mjs +51 -0
- package/packages/connectors/cfoa/tests/oauth-persist.test.mjs +131 -0
- package/packages/copro-editor/LICENSE +110 -0
- package/packages/copro-editor/README.md +16 -0
- package/packages/copro-media/LICENSE +110 -0
- package/packages/copro-media/README.md +5 -0
- package/packages/copro-project/LICENSE +110 -0
- package/packages/copro-project/README.md +13 -0
- package/packages/copro-proof/LICENSE +110 -0
- package/packages/copro-proof/README.md +9 -0
- package/packages/copro-provider-contracts/LICENSE +110 -0
- package/packages/copro-provider-contracts/README.md +23 -0
- package/packages/copro-render/LICENSE +110 -0
- package/packages/copro-render/README.md +5 -0
- package/packages/copro-storage/LICENSE +110 -0
- package/packages/copro-storage/README.md +37 -0
- package/packages/copro-templates/LICENSE +110 -0
- package/packages/copro-templates/README.md +52 -0
- package/packages/copro-timeline/LICENSE +110 -0
- package/packages/copro-timeline/README.md +5 -0
- package/packages/copro-ui/LICENSE +110 -0
- package/packages/copro-ui/README.md +7 -0
- package/packages/financial-analytics/README.md +69 -0
- package/packages/iamscene/LICENSE +110 -0
- package/packages/iamscene/README.md +375 -0
- package/packages/identity/README.md +1 -1
- package/packages/identity/migrations/D1_SCHEMA_MAPPING.md +3 -3
- package/packages/identity/package.json +5 -2
- package/packages/identity/src/adapters/account-security-store.js +119 -28
- package/packages/identity/src/adapters/iam-compat/index.js +100 -40
- package/packages/identity/src/contracts/auth-config.js +2 -0
- package/packages/identity/src/core/account-api-key.js +31 -0
- package/packages/identity/src/core/account-security.js +23 -2
- package/packages/identity/src/core/service-api-key.js +79 -0
- package/packages/identity/src/frontend/auth-portal/README.md +2 -1
- package/packages/identity/src/oauth/goaude.js +38 -32
- package/packages/identity/src/recovery/d1-password-reset.js +238 -0
- package/packages/identity/src/server/identity-service.js +14 -2
- package/packages/identity/src/server/mcp-workspace-policy.js +61 -0
- package/packages/identity/src/server/worker-router.js +113 -46
- package/packages/identity/tests/account-api-key.test.mjs +35 -0
- package/packages/identity/tests/account-security.test.mjs +108 -3
- package/packages/identity/tests/d1-password-reset.test.mjs +175 -0
- package/packages/identity/tests/google-desktop-identity-login.test.mjs +65 -35
- package/packages/identity/tests/iam-compat-hosted-migrations.test.mjs +102 -0
- package/packages/identity/tests/identity-service.test.mjs +32 -0
- package/packages/identity/tests/lane1-identity-store-parity.test.mjs +77 -10
- package/packages/identity/tests/lane1-packed-consumer.test.mjs +11 -1
- package/packages/identity/tests/oauth-presets-accounts-ssot.test.mjs +29 -0
- package/packages/identity/tests/service-api-key.test.mjs +70 -0
- package/packages/identity/tests/user-oauth-token-owner-migration.test.mjs +72 -0
- package/packages/primetech-procedures/README.md +145 -4
- package/packages/providers/completeful/src/tools.js +3 -4
- package/packages/providers/completeful/test/provider.test.mjs +24 -0
- package/packages/runtime-protocol/src/adapters/agentsamd.js +141 -0
- package/packages/runtime-protocol/src/adapters/execos-legacy.js +39 -0
- package/packages/runtime-protocol/src/adapters/provider-native.js +119 -0
- package/packages/runtime-protocol/src/client.js +299 -0
- package/packages/runtime-protocol/src/dispatch.js +81 -0
- package/packages/runtime-protocol/src/index.js +46 -14
- package/packages/runtime-protocol/src/timeouts.js +25 -0
- package/packages/theme-contract/README.md +5 -0
- package/packages/theme-plain-jane/README.md +42 -0
- package/packages/theme-scenes/package.json +1 -1
- package/packages/work-graph/package.json +1 -1
- package/protocol/capabilities/terminal-exec-input.schema.json +2 -2
- package/protocol/governance/distribution-roadmap.v1.json +2 -2
- package/protocol/models/README.md +9 -6
- package/protocol/models/discovery.mjs +39 -10
- package/protocol/models/workers-ai-curated.mjs +6 -0
- package/protocol/notifications/README.md +3 -3
- package/protocol/plugins/agentsam.plugin-package.v1.schema.json +24 -0
- package/protocol/registry/universal-catalog.v1.json +640 -368
- package/protocol/runtime/agentsam.runtime.v1.schema.json +1 -0
- package/protocol/sam/run-receipt.v1.schema.json +2 -91
- package/protocol/sam/run.v1.schema.json +3 -85
- package/python/README.md +46 -16
- package/python/agentsam_sdk/cli.py +1 -1
- package/python/agentsam_sdk/client.py +120 -19
- package/python/agentsam_sdk/mcp/__init__.py +8 -0
- package/python/agentsam_sdk/mcp/__main__.py +68 -0
- package/python/agentsam_sdk/mcp/server.py +129 -0
- package/python/agentsam_sdk/media/opencv.py +73 -7
- package/python/agentsam_sdk/registry_cli.py +2 -2
- package/python/agentsam_sdk/runtime/native.py +2 -2
- package/python/docs/gaps.md +24 -4
- package/python/docs/tooling.md +4 -4
- package/python/pyproject.toml +2 -1
- package/python/requirements-tui.txt +1 -1
- package/python/scripts/check-dist.py +2 -2
- package/python/tests/test_bridge_policy.py +3 -1
- package/python/tests/test_cli_distribution.py +3 -0
- package/python/tests/test_mcp_server.py +108 -0
- package/python/tests/test_opencv_media.py +12 -4
- package/python/tests/test_packaging.py +5 -0
- package/python/tests/test_public_client.py +84 -2
- package/skills/README.md +11 -1
- package/skills/catalog.json +152 -1
- package/src/acp/agent-executor.js +14 -2
- package/src/acp/client.js +66 -317
- package/src/acp/database-client.js +348 -0
- package/src/acp/dependencies.js +753 -264
- package/src/acp/http.js +33 -0
- package/src/acp/index.js +9 -0
- package/src/acp/queue-executor.js +79 -0
- package/src/acp/runs.js +6 -2
- package/src/acp/runtime-candidates.js +191 -0
- package/src/acp/runtime-registry.js +34 -0
- package/src/acp/runtime-selection.js +35 -9
- package/src/capabilities/terminal-exec.js +3 -2
- package/src/capabilities/test-run.js +2 -1
- package/src/cli/command-catalog.js +37 -13
- package/src/cli/desktop-launch.js +66 -17
- package/src/cli/dispatch.js +1 -0
- package/src/cli.js +39 -6
- package/src/commands/account-auth.js +8 -5
- package/src/commands/account-model-inventory.js +84 -0
- package/src/commands/api-key.js +172 -120
- package/src/commands/app.js +27 -22
- package/src/commands/cheat-sheet.js +12 -7
- package/src/commands/cloudflare-login.js +94 -46
- package/src/commands/cloudflare.js +28 -18
- package/src/commands/codebaseindex.js +179 -74
- package/src/commands/compute.js +485 -2
- package/src/commands/db.js +471 -41
- package/src/commands/design.js +64 -0
- package/src/commands/document.js +22 -0
- package/src/commands/env.js +16 -6
- package/src/commands/gcloud-auth.js +23 -12
- package/src/commands/google-cloud.js +5 -9
- package/src/commands/mcp.js +86 -3
- package/src/commands/models.js +49 -5
- package/src/commands/plugins.js +18 -8
- package/src/commands/providers.js +6 -5
- package/src/commands/python.js +167 -0
- package/src/commands/rc.js +175 -0
- package/src/commands/remote.js +369 -0
- package/src/commands/run.js +38 -16
- package/src/commands/runtime-connect.js +156 -0
- package/src/commands/runtime-status.js +25 -2
- package/src/commands/runtime.js +95 -51
- package/src/commands/setup.js +269 -86
- package/src/commands/shell.js +235 -36
- package/src/commands/skill.js +22 -22
- package/src/commands/terminal.js +30 -144
- package/src/commands/tunnel.js +81 -17
- package/src/commands/update.js +5 -5
- package/src/commands/whoami.js +9 -4
- package/src/commands/workflows.js +213 -0
- package/src/index.js +3 -1
- package/src/knowledge/config.js +4 -1
- package/src/knowledge/store-discovery.js +92 -10
- package/src/knowledge/stores/d1.js +138 -73
- package/src/lib/account-session.js +2 -0
- package/src/lib/auth.js +93 -1
- package/src/lib/cad/production-operations.d.ts +1 -1
- package/src/lib/cad/production-operations.js +21 -21
- package/src/lib/cad/project-runtime.js +8 -2
- package/src/lib/core-client.js +1 -0
- package/src/lib/design-client.js +68 -0
- package/src/lib/google-desktop-oauth.js +5 -2
- package/src/lib/local-scaffold.js +3 -4
- package/src/lib/local-status.js +2 -1
- package/src/lib/machine-connection.js +120 -0
- package/src/lib/machine-connection.test.js +74 -0
- package/src/lib/provider-credentials.js +64 -18
- package/src/lib/scaffold/mcp-project.js +97 -0
- package/src/lib/scaffold/mcp-server.js +17 -3
- package/src/lib/scaffold/templates/mcp-server/index.js +409 -304
- package/src/lib/scaffold/templates/mcp-server/presets.js +8 -10
- package/src/lib/scaffold/templates/mcp-server/runtime-adapters.js +165 -0
- package/src/lib/scaffold/wizards/mcp-server.js +48 -4
- package/src/lib/setup/runtime-persist.js +12 -8
- package/src/lib/setup/runtime.js +84 -156
- package/src/lib/slash-commands.js +72 -17
- package/src/lib/studio-client.js +81 -0
- package/src/lib/terminal-scopes.js +9 -6
- package/src/local-fs/index.js +29 -2
- package/src/mcp/client.js +18 -10
- package/src/mcp/server/account-workspace-policy.js +2 -0
- package/src/mcp/server/index.js +70 -0
- package/src/mcp/server/oauth.js +134 -0
- package/src/mcp/server/studio-host.js +96 -0
- package/src/mcp/server/tools/index.js +81 -0
- package/src/mcp/server/workspace.js +142 -0
- package/src/models/catalog.js +2 -0
- package/src/models/index.js +2 -0
- package/src/models/inventory-core.d.ts +10 -0
- package/src/models/inventory-core.js +2 -2
- package/src/models/media-runtime.d.ts +53 -0
- package/src/models/media-runtime.js +221 -0
- package/src/plugins/cloudflare.js +62 -12
- package/src/plugins/contracts.js +58 -3
- package/src/plugins/index.js +4 -1
- package/src/plugins/primetech-hosted.js +13 -0
- package/src/plugins/registry.js +79 -25
- package/src/plugins/runtime.js +6 -2
- package/src/providers/anthropic-messages.js +7 -3
- package/src/providers/cloudflare-chat.js +5 -2
- package/src/providers/gemini-generate-content.js +8 -20
- package/src/providers/index.js +13 -0
- package/src/providers/multimodal-input.js +181 -0
- package/src/providers/ollama-chat.js +5 -2
- package/src/providers/openai-media.d.ts +18 -0
- package/src/providers/openai-media.js +81 -0
- package/src/providers/openai-responses.js +7 -2
- package/src/registry/generated/inventory.json +146 -33
- package/src/registry/universal-source.js +43 -14
- package/src/sam/adapters/audio-transcription.js +122 -0
- package/src/sam/adapters/cloudflare-r2-inventory.js +34 -0
- package/src/sam/adapters/local-script-runtime.js +3 -2
- package/src/sam/adapters/opencv-video.js +103 -16
- package/src/sam/adapters/pdf-document.js +210 -0
- package/src/sam/adapters/tesseract-ocr.js +276 -0
- package/src/sam/bridge/stdio.mjs +57 -2
- package/src/sam/client.js +48 -84
- package/src/sam/index.js +2 -0
- package/src/sam/model-adapter.js +15 -2
- package/src/sam/operation-packs/generated-v2/background.d.ts +21 -0
- package/src/sam/operation-packs/generated-v2/background.js +6 -0
- package/src/sam/operation-packs/generated-v2/catalog.js +98 -3
- package/src/sam/operation-packs/generated-v2/generated-tool-descriptors.json +98 -3
- package/src/sam/operation-packs/generated-v2/operation-pack.js +2 -2
- package/src/sam/operation-packs/generated-v2/raster.js +54 -13
- package/src/sam/operation-packs/generated-v2/test/background.test.mjs +5 -0
- package/src/sam/operation-packs/generated-v2/test/raster.test.mjs +19 -5
- package/src/sam/operation-packs/generated-v2/test/superbash-client-integration.test.mjs +8 -1
- package/src/sam/operation-packs/generated-v2/tool-types.d.ts +1 -1
- package/src/sam/operations/cad-bim-ifc.js +1 -1
- package/src/sam/operations/cad-blender-inspect.js +1 -1
- package/src/sam/os.js +269 -11
- package/src/sam/packs/cad/index.js +18 -12
- package/src/sam/packs/primetech-creative.js +250 -0
- package/src/sam/shell-host.js +121 -16
- package/src/sam/validation.js +3 -0
- package/src/skills/catalog.js +32 -9
- package/src/skills/index.js +3 -1
- package/src/skills/local-store.js +84 -0
- package/src/skills/package-source.js +9 -0
- package/src/skills/registry.js +13 -7
- package/src/tunnel/providers.js +133 -0
- package/src/tunnel/session.js +100 -0
- package/src/ui/boot.js +7 -2
- package/src/ui/brand/primetech-mark.generated.js +49 -0
- package/src/ui/cli/brand-profile.js +42 -0
- package/src/ui/cli/prompt-box.js +73 -25
- package/src/ui/home-screen.js +46 -13
- package/src/ui/theme.js +1 -1
- package/docs/acceptance/AGENTSAM_DOCS_CMS_2026-11-10.md +0 -62
- package/docs/agent-briefs/2026-10-28-agent1-ui-product-foundation.md +0 -132
- package/docs/agent-briefs/2026-10-28-agent2-cms-audit.md +0 -144
- package/docs/agent-briefs/2026-10-28-sites-next-wave-acceptance.md +0 -67
- package/packages/primetech-procedures/agentsam.package.json +0 -63
- package/packages/primetech-procedures/package.json +0 -33
- package/packages/primetech-procedures/procedures/arch.assembly.calculate/procedure.json +0 -83
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/README.md +0 -21
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/__pycache__/test_generate_toolpaths.cpython-314.pyc +0 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/build_freecad.py +0 -514
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/finalize_bundle.py +0 -26
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/generate_assets.py +0 -284
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/generate_toolpaths.py +0 -715
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/package_artifacts.py +0 -154
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/parameters.json +0 -51
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/procedure.json +0 -101
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/render_preview.py +0 -98
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/run.py +0 -214
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/test_generate_toolpaths.py +0 -50
- package/packages/primetech-procedures/procedures/media.asset.preflight/procedure.json +0 -85
- package/packages/primetech-procedures/procedures/media.image.optimize-asset/procedure.json +0 -102
- package/packages/primetech-procedures/procedures/repo.asset.inventory/__pycache__/run.cpython-312.pyc +0 -0
- package/packages/primetech-procedures/procedures/repo.asset.inventory/__pycache__/run.cpython-314.pyc +0 -0
- package/packages/primetech-procedures/procedures/repo.asset.inventory/procedure.json +0 -65
- package/packages/primetech-procedures/procedures/repo.asset.inventory/run.py +0 -116
- package/packages/primetech-procedures/procedures/repo.asset.inventory/run.sh +0 -11
- package/packages/primetech-procedures/procedures/repo.git.status/procedure.json +0 -58
- package/packages/primetech-procedures/procedures/repo.git.status/run.sh +0 -10
- package/packages/primetech-procedures/profiles/PRIMETECH_PROCEDURE_ENGINEER.md +0 -25
- package/packages/primetech-procedures/src/index.js +0 -646
- package/packages/primetech-procedures/test/__pycache__/test_inventory.cpython-312.pyc +0 -0
- package/packages/primetech-procedures/test/__pycache__/test_inventory.cpython-314.pyc +0 -0
- package/packages/primetech-procedures/test/procedure.test.mjs +0 -207
- package/packages/primetech-procedures/test/runtime-kinds.test.mjs +0 -210
- package/packages/primetech-procedures/test/test_inventory.py +0 -57
- package/src/commands/start-local.js +0 -98
- package/src/local-fs/capability.js +0 -126
- package/src/local-lsp/host.js +0 -2
- package/src/local-pty/server.js +0 -521
|
@@ -2566,8 +2566,15 @@ var __iconNode = [
|
|
|
2566
2566
|
];
|
|
2567
2567
|
var Archive = createLucideIcon("archive", __iconNode);
|
|
2568
2568
|
|
|
2569
|
-
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/
|
|
2569
|
+
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/arrow-left.js
|
|
2570
2570
|
var __iconNode2 = [
|
|
2571
|
+
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
2572
|
+
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
2573
|
+
];
|
|
2574
|
+
var ArrowLeft = createLucideIcon("arrow-left", __iconNode2);
|
|
2575
|
+
|
|
2576
|
+
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/bell.js
|
|
2577
|
+
var __iconNode3 = [
|
|
2571
2578
|
["path", { d: "M10.268 21a2 2 0 0 0 3.464 0", key: "vwvbt9" }],
|
|
2572
2579
|
[
|
|
2573
2580
|
"path",
|
|
@@ -2577,10 +2584,10 @@ var __iconNode2 = [
|
|
|
2577
2584
|
}
|
|
2578
2585
|
]
|
|
2579
2586
|
];
|
|
2580
|
-
var Bell = createLucideIcon("bell",
|
|
2587
|
+
var Bell = createLucideIcon("bell", __iconNode3);
|
|
2581
2588
|
|
|
2582
2589
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/bot.js
|
|
2583
|
-
var
|
|
2590
|
+
var __iconNode4 = [
|
|
2584
2591
|
["path", { d: "M12 8V4H8", key: "hb8ula" }],
|
|
2585
2592
|
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
|
|
2586
2593
|
["path", { d: "M2 14h2", key: "vft8re" }],
|
|
@@ -2588,10 +2595,10 @@ var __iconNode3 = [
|
|
|
2588
2595
|
["path", { d: "M15 13v2", key: "1xurst" }],
|
|
2589
2596
|
["path", { d: "M9 13v2", key: "rq6x2g" }]
|
|
2590
2597
|
];
|
|
2591
|
-
var Bot = createLucideIcon("bot",
|
|
2598
|
+
var Bot = createLucideIcon("bot", __iconNode4);
|
|
2592
2599
|
|
|
2593
2600
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/box.js
|
|
2594
|
-
var
|
|
2601
|
+
var __iconNode5 = [
|
|
2595
2602
|
[
|
|
2596
2603
|
"path",
|
|
2597
2604
|
{
|
|
@@ -2602,10 +2609,10 @@ var __iconNode4 = [
|
|
|
2602
2609
|
["path", { d: "m3.3 7 8.7 5 8.7-5", key: "g66t2b" }],
|
|
2603
2610
|
["path", { d: "M12 22V12", key: "d0xqtd" }]
|
|
2604
2611
|
];
|
|
2605
|
-
var Box = createLucideIcon("box",
|
|
2612
|
+
var Box = createLucideIcon("box", __iconNode5);
|
|
2606
2613
|
|
|
2607
2614
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/chart-no-axes-combined.js
|
|
2608
|
-
var
|
|
2615
|
+
var __iconNode6 = [
|
|
2609
2616
|
["path", { d: "M12 16v5", key: "zza2cw" }],
|
|
2610
2617
|
["path", { d: "M16 14v7", key: "1g90b9" }],
|
|
2611
2618
|
["path", { d: "M20 10v11", key: "1iqoj0" }],
|
|
@@ -2616,22 +2623,22 @@ var __iconNode5 = [
|
|
|
2616
2623
|
["path", { d: "M4 18v3", key: "1yp0dc" }],
|
|
2617
2624
|
["path", { d: "M8 14v7", key: "n3cwzv" }]
|
|
2618
2625
|
];
|
|
2619
|
-
var ChartNoAxesCombined = createLucideIcon("chart-no-axes-combined",
|
|
2626
|
+
var ChartNoAxesCombined = createLucideIcon("chart-no-axes-combined", __iconNode6);
|
|
2620
2627
|
|
|
2621
2628
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/check.js
|
|
2622
|
-
var
|
|
2623
|
-
var Check = createLucideIcon("check",
|
|
2629
|
+
var __iconNode7 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
2630
|
+
var Check = createLucideIcon("check", __iconNode7);
|
|
2624
2631
|
|
|
2625
2632
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/chevron-down.js
|
|
2626
|
-
var
|
|
2627
|
-
var ChevronDown = createLucideIcon("chevron-down",
|
|
2633
|
+
var __iconNode8 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
2634
|
+
var ChevronDown = createLucideIcon("chevron-down", __iconNode8);
|
|
2628
2635
|
|
|
2629
2636
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/chevron-right.js
|
|
2630
|
-
var
|
|
2631
|
-
var ChevronRight = createLucideIcon("chevron-right",
|
|
2637
|
+
var __iconNode9 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
2638
|
+
var ChevronRight = createLucideIcon("chevron-right", __iconNode9);
|
|
2632
2639
|
|
|
2633
2640
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/clapperboard.js
|
|
2634
|
-
var
|
|
2641
|
+
var __iconNode10 = [
|
|
2635
2642
|
[
|
|
2636
2643
|
"path",
|
|
2637
2644
|
{ d: "M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z", key: "1tn4o7" }
|
|
@@ -2640,10 +2647,10 @@ var __iconNode9 = [
|
|
|
2640
2647
|
["path", { d: "m12.4 3.4 3.1 4", key: "6hsd6n" }],
|
|
2641
2648
|
["path", { d: "M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z", key: "ltgou9" }]
|
|
2642
2649
|
];
|
|
2643
|
-
var Clapperboard = createLucideIcon("clapperboard",
|
|
2650
|
+
var Clapperboard = createLucideIcon("clapperboard", __iconNode10);
|
|
2644
2651
|
|
|
2645
2652
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/clipboard-list.js
|
|
2646
|
-
var
|
|
2653
|
+
var __iconNode11 = [
|
|
2647
2654
|
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
2648
2655
|
[
|
|
2649
2656
|
"path",
|
|
@@ -2657,76 +2664,84 @@ var __iconNode10 = [
|
|
|
2657
2664
|
["path", { d: "M8 11h.01", key: "1dfujw" }],
|
|
2658
2665
|
["path", { d: "M8 16h.01", key: "18s6g9" }]
|
|
2659
2666
|
];
|
|
2660
|
-
var ClipboardList = createLucideIcon("clipboard-list",
|
|
2667
|
+
var ClipboardList = createLucideIcon("clipboard-list", __iconNode11);
|
|
2661
2668
|
|
|
2662
2669
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/code.js
|
|
2663
|
-
var
|
|
2670
|
+
var __iconNode12 = [
|
|
2664
2671
|
["polyline", { points: "16 18 22 12 16 6", key: "z7tu5w" }],
|
|
2665
2672
|
["polyline", { points: "8 6 2 12 8 18", key: "1eg1df" }]
|
|
2666
2673
|
];
|
|
2667
|
-
var Code = createLucideIcon("code",
|
|
2674
|
+
var Code = createLucideIcon("code", __iconNode12);
|
|
2668
2675
|
|
|
2669
2676
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/credit-card.js
|
|
2670
|
-
var
|
|
2677
|
+
var __iconNode13 = [
|
|
2671
2678
|
["rect", { width: "20", height: "14", x: "2", y: "5", rx: "2", key: "ynyp8z" }],
|
|
2672
2679
|
["line", { x1: "2", x2: "22", y1: "10", y2: "10", key: "1b3vmo" }]
|
|
2673
2680
|
];
|
|
2674
|
-
var CreditCard = createLucideIcon("credit-card",
|
|
2681
|
+
var CreditCard = createLucideIcon("credit-card", __iconNode13);
|
|
2675
2682
|
|
|
2676
2683
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/database.js
|
|
2677
|
-
var
|
|
2684
|
+
var __iconNode14 = [
|
|
2678
2685
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
2679
2686
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
2680
2687
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
2681
2688
|
];
|
|
2682
|
-
var Database = createLucideIcon("database",
|
|
2689
|
+
var Database = createLucideIcon("database", __iconNode14);
|
|
2683
2690
|
|
|
2684
2691
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/ellipsis.js
|
|
2685
|
-
var
|
|
2692
|
+
var __iconNode15 = [
|
|
2686
2693
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
2687
2694
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
2688
2695
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
2689
2696
|
];
|
|
2690
|
-
var Ellipsis = createLucideIcon("ellipsis",
|
|
2697
|
+
var Ellipsis = createLucideIcon("ellipsis", __iconNode15);
|
|
2698
|
+
|
|
2699
|
+
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/external-link.js
|
|
2700
|
+
var __iconNode16 = [
|
|
2701
|
+
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
2702
|
+
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
2703
|
+
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
2704
|
+
];
|
|
2705
|
+
var ExternalLink = createLucideIcon("external-link", __iconNode16);
|
|
2691
2706
|
|
|
2692
2707
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/file-code-2.js
|
|
2693
|
-
var
|
|
2708
|
+
var __iconNode17 = [
|
|
2694
2709
|
["path", { d: "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4", key: "1pf5j1" }],
|
|
2695
2710
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
2696
2711
|
["path", { d: "m5 12-3 3 3 3", key: "oke12k" }],
|
|
2697
2712
|
["path", { d: "m9 18 3-3-3-3", key: "112psh" }]
|
|
2698
2713
|
];
|
|
2699
|
-
var FileCode2 = createLucideIcon("file-code-2",
|
|
2714
|
+
var FileCode2 = createLucideIcon("file-code-2", __iconNode17);
|
|
2700
2715
|
|
|
2701
2716
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/file-image.js
|
|
2702
|
-
var
|
|
2717
|
+
var __iconNode18 = [
|
|
2703
2718
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
2704
2719
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
2705
2720
|
["circle", { cx: "10", cy: "12", r: "2", key: "737tya" }],
|
|
2706
2721
|
["path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22", key: "wt3hpn" }]
|
|
2707
2722
|
];
|
|
2708
|
-
var FileImage = createLucideIcon("file-image",
|
|
2723
|
+
var FileImage = createLucideIcon("file-image", __iconNode18);
|
|
2709
2724
|
|
|
2710
2725
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/file-text.js
|
|
2711
|
-
var
|
|
2726
|
+
var __iconNode19 = [
|
|
2712
2727
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
2713
2728
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
2714
2729
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
2715
2730
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
2716
2731
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
2717
2732
|
];
|
|
2718
|
-
var FileText = createLucideIcon("file-text",
|
|
2733
|
+
var FileText = createLucideIcon("file-text", __iconNode19);
|
|
2719
2734
|
|
|
2720
2735
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/files.js
|
|
2721
|
-
var
|
|
2736
|
+
var __iconNode20 = [
|
|
2722
2737
|
["path", { d: "M20 7h-3a2 2 0 0 1-2-2V2", key: "x099mo" }],
|
|
2723
2738
|
["path", { d: "M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z", key: "18t6ie" }],
|
|
2724
2739
|
["path", { d: "M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8", key: "1nja0z" }]
|
|
2725
2740
|
];
|
|
2726
|
-
var Files = createLucideIcon("files",
|
|
2741
|
+
var Files = createLucideIcon("files", __iconNode20);
|
|
2727
2742
|
|
|
2728
2743
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/film.js
|
|
2729
|
-
var
|
|
2744
|
+
var __iconNode21 = [
|
|
2730
2745
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
2731
2746
|
["path", { d: "M7 3v18", key: "bbkbws" }],
|
|
2732
2747
|
["path", { d: "M3 7.5h4", key: "zfgn84" }],
|
|
@@ -2736,10 +2751,10 @@ var __iconNode19 = [
|
|
|
2736
2751
|
["path", { d: "M17 7.5h4", key: "myr1c1" }],
|
|
2737
2752
|
["path", { d: "M17 16.5h4", key: "go4c1d" }]
|
|
2738
2753
|
];
|
|
2739
|
-
var Film = createLucideIcon("film",
|
|
2754
|
+
var Film = createLucideIcon("film", __iconNode21);
|
|
2740
2755
|
|
|
2741
2756
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/folder-open.js
|
|
2742
|
-
var
|
|
2757
|
+
var __iconNode22 = [
|
|
2743
2758
|
[
|
|
2744
2759
|
"path",
|
|
2745
2760
|
{
|
|
@@ -2748,10 +2763,10 @@ var __iconNode20 = [
|
|
|
2748
2763
|
}
|
|
2749
2764
|
]
|
|
2750
2765
|
];
|
|
2751
|
-
var FolderOpen = createLucideIcon("folder-open",
|
|
2766
|
+
var FolderOpen = createLucideIcon("folder-open", __iconNode22);
|
|
2752
2767
|
|
|
2753
2768
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/folder.js
|
|
2754
|
-
var
|
|
2769
|
+
var __iconNode23 = [
|
|
2755
2770
|
[
|
|
2756
2771
|
"path",
|
|
2757
2772
|
{
|
|
@@ -2760,18 +2775,18 @@ var __iconNode21 = [
|
|
|
2760
2775
|
}
|
|
2761
2776
|
]
|
|
2762
2777
|
];
|
|
2763
|
-
var Folder = createLucideIcon("folder",
|
|
2778
|
+
var Folder = createLucideIcon("folder", __iconNode23);
|
|
2764
2779
|
|
|
2765
2780
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/globe.js
|
|
2766
|
-
var
|
|
2781
|
+
var __iconNode24 = [
|
|
2767
2782
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2768
2783
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
2769
2784
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
2770
2785
|
];
|
|
2771
|
-
var Globe = createLucideIcon("globe",
|
|
2786
|
+
var Globe = createLucideIcon("globe", __iconNode24);
|
|
2772
2787
|
|
|
2773
2788
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/house.js
|
|
2774
|
-
var
|
|
2789
|
+
var __iconNode25 = [
|
|
2775
2790
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
2776
2791
|
[
|
|
2777
2792
|
"path",
|
|
@@ -2781,18 +2796,18 @@ var __iconNode23 = [
|
|
|
2781
2796
|
}
|
|
2782
2797
|
]
|
|
2783
2798
|
];
|
|
2784
|
-
var House = createLucideIcon("house",
|
|
2799
|
+
var House = createLucideIcon("house", __iconNode25);
|
|
2785
2800
|
|
|
2786
2801
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/image.js
|
|
2787
|
-
var
|
|
2802
|
+
var __iconNode26 = [
|
|
2788
2803
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
2789
2804
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
2790
2805
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
2791
2806
|
];
|
|
2792
|
-
var Image = createLucideIcon("image",
|
|
2807
|
+
var Image = createLucideIcon("image", __iconNode26);
|
|
2793
2808
|
|
|
2794
2809
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/layers.js
|
|
2795
|
-
var
|
|
2810
|
+
var __iconNode27 = [
|
|
2796
2811
|
[
|
|
2797
2812
|
"path",
|
|
2798
2813
|
{
|
|
@@ -2815,36 +2830,36 @@ var __iconNode25 = [
|
|
|
2815
2830
|
}
|
|
2816
2831
|
]
|
|
2817
2832
|
];
|
|
2818
|
-
var Layers = createLucideIcon("layers",
|
|
2833
|
+
var Layers = createLucideIcon("layers", __iconNode27);
|
|
2819
2834
|
|
|
2820
2835
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js
|
|
2821
|
-
var
|
|
2836
|
+
var __iconNode28 = [
|
|
2822
2837
|
["rect", { width: "7", height: "9", x: "3", y: "3", rx: "1", key: "10lvy0" }],
|
|
2823
2838
|
["rect", { width: "7", height: "5", x: "14", y: "3", rx: "1", key: "16une8" }],
|
|
2824
2839
|
["rect", { width: "7", height: "9", x: "14", y: "12", rx: "1", key: "1hutg5" }],
|
|
2825
2840
|
["rect", { width: "7", height: "5", x: "3", y: "16", rx: "1", key: "ldoo1y" }]
|
|
2826
2841
|
];
|
|
2827
|
-
var LayoutDashboard = createLucideIcon("layout-dashboard",
|
|
2842
|
+
var LayoutDashboard = createLucideIcon("layout-dashboard", __iconNode28);
|
|
2828
2843
|
|
|
2829
2844
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/layout-panel-top.js
|
|
2830
|
-
var
|
|
2845
|
+
var __iconNode29 = [
|
|
2831
2846
|
["rect", { width: "18", height: "7", x: "3", y: "3", rx: "1", key: "f1a2em" }],
|
|
2832
2847
|
["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }],
|
|
2833
2848
|
["rect", { width: "7", height: "7", x: "14", y: "14", rx: "1", key: "nxv5o0" }]
|
|
2834
2849
|
];
|
|
2835
|
-
var LayoutPanelTop = createLucideIcon("layout-panel-top",
|
|
2850
|
+
var LayoutPanelTop = createLucideIcon("layout-panel-top", __iconNode29);
|
|
2836
2851
|
|
|
2837
2852
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/library.js
|
|
2838
|
-
var
|
|
2853
|
+
var __iconNode30 = [
|
|
2839
2854
|
["path", { d: "m16 6 4 14", key: "ji33uf" }],
|
|
2840
2855
|
["path", { d: "M12 6v14", key: "1n7gus" }],
|
|
2841
2856
|
["path", { d: "M8 8v12", key: "1gg7y9" }],
|
|
2842
2857
|
["path", { d: "M4 4v16", key: "6qkkli" }]
|
|
2843
2858
|
];
|
|
2844
|
-
var Library = createLucideIcon("library",
|
|
2859
|
+
var Library = createLucideIcon("library", __iconNode30);
|
|
2845
2860
|
|
|
2846
2861
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/life-buoy.js
|
|
2847
|
-
var
|
|
2862
|
+
var __iconNode31 = [
|
|
2848
2863
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2849
2864
|
["path", { d: "m4.93 4.93 4.24 4.24", key: "1ymg45" }],
|
|
2850
2865
|
["path", { d: "m14.83 9.17 4.24-4.24", key: "1cb5xl" }],
|
|
@@ -2852,36 +2867,42 @@ var __iconNode29 = [
|
|
|
2852
2867
|
["path", { d: "m9.17 14.83-4.24 4.24", key: "bqpfvv" }],
|
|
2853
2868
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }]
|
|
2854
2869
|
];
|
|
2855
|
-
var LifeBuoy = createLucideIcon("life-buoy",
|
|
2870
|
+
var LifeBuoy = createLucideIcon("life-buoy", __iconNode31);
|
|
2856
2871
|
|
|
2857
2872
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/link.js
|
|
2858
|
-
var
|
|
2873
|
+
var __iconNode32 = [
|
|
2859
2874
|
["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
|
|
2860
2875
|
["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
|
|
2861
2876
|
];
|
|
2862
|
-
var Link = createLucideIcon("link",
|
|
2877
|
+
var Link = createLucideIcon("link", __iconNode32);
|
|
2863
2878
|
|
|
2864
2879
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/loader-circle.js
|
|
2865
|
-
var
|
|
2866
|
-
var LoaderCircle = createLucideIcon("loader-circle",
|
|
2880
|
+
var __iconNode33 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
2881
|
+
var LoaderCircle = createLucideIcon("loader-circle", __iconNode33);
|
|
2867
2882
|
|
|
2868
2883
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/log-out.js
|
|
2869
|
-
var
|
|
2884
|
+
var __iconNode34 = [
|
|
2870
2885
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
|
|
2871
2886
|
["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
|
|
2872
2887
|
["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
|
|
2873
2888
|
];
|
|
2874
|
-
var LogOut = createLucideIcon("log-out",
|
|
2889
|
+
var LogOut = createLucideIcon("log-out", __iconNode34);
|
|
2875
2890
|
|
|
2876
2891
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/mail.js
|
|
2877
|
-
var
|
|
2892
|
+
var __iconNode35 = [
|
|
2878
2893
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
2879
2894
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
2880
2895
|
];
|
|
2881
|
-
var Mail = createLucideIcon("mail",
|
|
2896
|
+
var Mail = createLucideIcon("mail", __iconNode35);
|
|
2897
|
+
|
|
2898
|
+
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/message-square.js
|
|
2899
|
+
var __iconNode36 = [
|
|
2900
|
+
["path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z", key: "1lielz" }]
|
|
2901
|
+
];
|
|
2902
|
+
var MessageSquare = createLucideIcon("message-square", __iconNode36);
|
|
2882
2903
|
|
|
2883
2904
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/package.js
|
|
2884
|
-
var
|
|
2905
|
+
var __iconNode37 = [
|
|
2885
2906
|
[
|
|
2886
2907
|
"path",
|
|
2887
2908
|
{
|
|
@@ -2893,10 +2914,10 @@ var __iconNode34 = [
|
|
|
2893
2914
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
2894
2915
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
2895
2916
|
];
|
|
2896
|
-
var Package = createLucideIcon("package",
|
|
2917
|
+
var Package = createLucideIcon("package", __iconNode37);
|
|
2897
2918
|
|
|
2898
2919
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/palette.js
|
|
2899
|
-
var
|
|
2920
|
+
var __iconNode38 = [
|
|
2900
2921
|
[
|
|
2901
2922
|
"path",
|
|
2902
2923
|
{
|
|
@@ -2909,17 +2930,17 @@ var __iconNode35 = [
|
|
|
2909
2930
|
["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
|
|
2910
2931
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
|
|
2911
2932
|
];
|
|
2912
|
-
var Palette = createLucideIcon("palette",
|
|
2933
|
+
var Palette = createLucideIcon("palette", __iconNode38);
|
|
2913
2934
|
|
|
2914
2935
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/panel-left.js
|
|
2915
|
-
var
|
|
2936
|
+
var __iconNode39 = [
|
|
2916
2937
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
2917
2938
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
2918
2939
|
];
|
|
2919
|
-
var PanelLeft = createLucideIcon("panel-left",
|
|
2940
|
+
var PanelLeft = createLucideIcon("panel-left", __iconNode39);
|
|
2920
2941
|
|
|
2921
2942
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/pen-tool.js
|
|
2922
|
-
var
|
|
2943
|
+
var __iconNode40 = [
|
|
2923
2944
|
[
|
|
2924
2945
|
"path",
|
|
2925
2946
|
{
|
|
@@ -2937,10 +2958,10 @@ var __iconNode37 = [
|
|
|
2937
2958
|
["path", { d: "m2.3 2.3 7.286 7.286", key: "1wuzzi" }],
|
|
2938
2959
|
["circle", { cx: "11", cy: "11", r: "2", key: "xmgehs" }]
|
|
2939
2960
|
];
|
|
2940
|
-
var PenTool = createLucideIcon("pen-tool",
|
|
2961
|
+
var PenTool = createLucideIcon("pen-tool", __iconNode40);
|
|
2941
2962
|
|
|
2942
2963
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/pencil.js
|
|
2943
|
-
var
|
|
2964
|
+
var __iconNode41 = [
|
|
2944
2965
|
[
|
|
2945
2966
|
"path",
|
|
2946
2967
|
{
|
|
@@ -2950,10 +2971,10 @@ var __iconNode38 = [
|
|
|
2950
2971
|
],
|
|
2951
2972
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
2952
2973
|
];
|
|
2953
|
-
var Pencil = createLucideIcon("pencil",
|
|
2974
|
+
var Pencil = createLucideIcon("pencil", __iconNode41);
|
|
2954
2975
|
|
|
2955
2976
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/pin.js
|
|
2956
|
-
var
|
|
2977
|
+
var __iconNode42 = [
|
|
2957
2978
|
["path", { d: "M12 17v5", key: "bb1du9" }],
|
|
2958
2979
|
[
|
|
2959
2980
|
"path",
|
|
@@ -2963,17 +2984,17 @@ var __iconNode39 = [
|
|
|
2963
2984
|
}
|
|
2964
2985
|
]
|
|
2965
2986
|
];
|
|
2966
|
-
var Pin = createLucideIcon("pin",
|
|
2987
|
+
var Pin = createLucideIcon("pin", __iconNode42);
|
|
2967
2988
|
|
|
2968
2989
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/plus.js
|
|
2969
|
-
var
|
|
2990
|
+
var __iconNode43 = [
|
|
2970
2991
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
2971
2992
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
2972
2993
|
];
|
|
2973
|
-
var Plus = createLucideIcon("plus",
|
|
2994
|
+
var Plus = createLucideIcon("plus", __iconNode43);
|
|
2974
2995
|
|
|
2975
2996
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/puzzle.js
|
|
2976
|
-
var
|
|
2997
|
+
var __iconNode44 = [
|
|
2977
2998
|
[
|
|
2978
2999
|
"path",
|
|
2979
3000
|
{
|
|
@@ -2982,17 +3003,26 @@ var __iconNode41 = [
|
|
|
2982
3003
|
}
|
|
2983
3004
|
]
|
|
2984
3005
|
];
|
|
2985
|
-
var Puzzle = createLucideIcon("puzzle",
|
|
3006
|
+
var Puzzle = createLucideIcon("puzzle", __iconNode44);
|
|
3007
|
+
|
|
3008
|
+
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/refresh-cw.js
|
|
3009
|
+
var __iconNode45 = [
|
|
3010
|
+
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
3011
|
+
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
3012
|
+
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
3013
|
+
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
3014
|
+
];
|
|
3015
|
+
var RefreshCw = createLucideIcon("refresh-cw", __iconNode45);
|
|
2986
3016
|
|
|
2987
3017
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/search.js
|
|
2988
|
-
var
|
|
3018
|
+
var __iconNode46 = [
|
|
2989
3019
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
2990
3020
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
2991
3021
|
];
|
|
2992
|
-
var Search = createLucideIcon("search",
|
|
3022
|
+
var Search = createLucideIcon("search", __iconNode46);
|
|
2993
3023
|
|
|
2994
3024
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/settings.js
|
|
2995
|
-
var
|
|
3025
|
+
var __iconNode47 = [
|
|
2996
3026
|
[
|
|
2997
3027
|
"path",
|
|
2998
3028
|
{
|
|
@@ -3002,18 +3032,18 @@ var __iconNode43 = [
|
|
|
3002
3032
|
],
|
|
3003
3033
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
3004
3034
|
];
|
|
3005
|
-
var Settings = createLucideIcon("settings",
|
|
3035
|
+
var Settings = createLucideIcon("settings", __iconNode47);
|
|
3006
3036
|
|
|
3007
3037
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/shopping-bag.js
|
|
3008
|
-
var
|
|
3038
|
+
var __iconNode48 = [
|
|
3009
3039
|
["path", { d: "M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z", key: "hou9p0" }],
|
|
3010
3040
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
3011
3041
|
["path", { d: "M16 10a4 4 0 0 1-8 0", key: "1ltviw" }]
|
|
3012
3042
|
];
|
|
3013
|
-
var ShoppingBag = createLucideIcon("shopping-bag",
|
|
3043
|
+
var ShoppingBag = createLucideIcon("shopping-bag", __iconNode48);
|
|
3014
3044
|
|
|
3015
3045
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/store.js
|
|
3016
|
-
var
|
|
3046
|
+
var __iconNode49 = [
|
|
3017
3047
|
["path", { d: "m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7", key: "ztvudi" }],
|
|
3018
3048
|
["path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8", key: "1b2hhj" }],
|
|
3019
3049
|
["path", { d: "M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4", key: "2ebpfo" }],
|
|
@@ -3026,10 +3056,10 @@ var __iconNode45 = [
|
|
|
3026
3056
|
}
|
|
3027
3057
|
]
|
|
3028
3058
|
];
|
|
3029
|
-
var Store = createLucideIcon("store",
|
|
3059
|
+
var Store = createLucideIcon("store", __iconNode49);
|
|
3030
3060
|
|
|
3031
3061
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/tag.js
|
|
3032
|
-
var
|
|
3062
|
+
var __iconNode50 = [
|
|
3033
3063
|
[
|
|
3034
3064
|
"path",
|
|
3035
3065
|
{
|
|
@@ -3039,25 +3069,25 @@ var __iconNode46 = [
|
|
|
3039
3069
|
],
|
|
3040
3070
|
["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
|
|
3041
3071
|
];
|
|
3042
|
-
var Tag = createLucideIcon("tag",
|
|
3072
|
+
var Tag = createLucideIcon("tag", __iconNode50);
|
|
3043
3073
|
|
|
3044
3074
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/target.js
|
|
3045
|
-
var
|
|
3075
|
+
var __iconNode51 = [
|
|
3046
3076
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3047
3077
|
["circle", { cx: "12", cy: "12", r: "6", key: "1vlfrh" }],
|
|
3048
3078
|
["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }]
|
|
3049
3079
|
];
|
|
3050
|
-
var Target = createLucideIcon("target",
|
|
3080
|
+
var Target = createLucideIcon("target", __iconNode51);
|
|
3051
3081
|
|
|
3052
3082
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/terminal.js
|
|
3053
|
-
var
|
|
3083
|
+
var __iconNode52 = [
|
|
3054
3084
|
["polyline", { points: "4 17 10 11 4 5", key: "akl6gq" }],
|
|
3055
3085
|
["line", { x1: "12", x2: "20", y1: "19", y2: "19", key: "q2wloq" }]
|
|
3056
3086
|
];
|
|
3057
|
-
var Terminal = createLucideIcon("terminal",
|
|
3087
|
+
var Terminal = createLucideIcon("terminal", __iconNode52);
|
|
3058
3088
|
|
|
3059
3089
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/ticket.js
|
|
3060
|
-
var
|
|
3090
|
+
var __iconNode53 = [
|
|
3061
3091
|
[
|
|
3062
3092
|
"path",
|
|
3063
3093
|
{
|
|
@@ -3069,47 +3099,50 @@ var __iconNode49 = [
|
|
|
3069
3099
|
["path", { d: "M13 17v2", key: "1ont0d" }],
|
|
3070
3100
|
["path", { d: "M13 11v2", key: "1wjjxi" }]
|
|
3071
3101
|
];
|
|
3072
|
-
var Ticket = createLucideIcon("ticket",
|
|
3102
|
+
var Ticket = createLucideIcon("ticket", __iconNode53);
|
|
3073
3103
|
|
|
3074
3104
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/trash-2.js
|
|
3075
|
-
var
|
|
3105
|
+
var __iconNode54 = [
|
|
3076
3106
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
3077
3107
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
3078
3108
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
|
|
3079
3109
|
["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
|
|
3080
3110
|
["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
|
|
3081
3111
|
];
|
|
3082
|
-
var Trash2 = createLucideIcon("trash-2",
|
|
3112
|
+
var Trash2 = createLucideIcon("trash-2", __iconNode54);
|
|
3083
3113
|
|
|
3084
3114
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/trending-up.js
|
|
3085
|
-
var
|
|
3115
|
+
var __iconNode55 = [
|
|
3086
3116
|
["polyline", { points: "22 7 13.5 15.5 8.5 10.5 2 17", key: "126l90" }],
|
|
3087
3117
|
["polyline", { points: "16 7 22 7 22 13", key: "kwv8wd" }]
|
|
3088
3118
|
];
|
|
3089
|
-
var TrendingUp = createLucideIcon("trending-up",
|
|
3119
|
+
var TrendingUp = createLucideIcon("trending-up", __iconNode55);
|
|
3090
3120
|
|
|
3091
3121
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/user.js
|
|
3092
|
-
var
|
|
3122
|
+
var __iconNode56 = [
|
|
3093
3123
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
3094
3124
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
3095
3125
|
];
|
|
3096
|
-
var User = createLucideIcon("user",
|
|
3126
|
+
var User = createLucideIcon("user", __iconNode56);
|
|
3097
3127
|
|
|
3098
3128
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/users.js
|
|
3099
|
-
var
|
|
3129
|
+
var __iconNode57 = [
|
|
3100
3130
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
3101
3131
|
["path", { d: "M16 3.128a4 4 0 0 1 0 7.744", key: "16gr8j" }],
|
|
3102
3132
|
["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87", key: "kshegd" }],
|
|
3103
3133
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }]
|
|
3104
3134
|
];
|
|
3105
|
-
var Users = createLucideIcon("users",
|
|
3135
|
+
var Users = createLucideIcon("users", __iconNode57);
|
|
3106
3136
|
|
|
3107
3137
|
// ../../apps/local-studio/node_modules/lucide-react/dist/esm/icons/x.js
|
|
3108
|
-
var
|
|
3138
|
+
var __iconNode58 = [
|
|
3109
3139
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3110
3140
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3111
3141
|
];
|
|
3112
|
-
var X = createLucideIcon("x",
|
|
3142
|
+
var X = createLucideIcon("x", __iconNode58);
|
|
3143
|
+
|
|
3144
|
+
// src/AdminAppsDialog.tsx
|
|
3145
|
+
import { useEffect as useEffect14, useState as useState12 } from "react";
|
|
3113
3146
|
|
|
3114
3147
|
// src/useAdminApps.ts
|
|
3115
3148
|
import { useEffect as useEffect13, useState as useState11 } from "react";
|
|
@@ -3195,7 +3228,7 @@ function useAdminApps({ loadApps, installApp, removeApp, updateApp, onInstalled,
|
|
|
3195
3228
|
}
|
|
3196
3229
|
|
|
3197
3230
|
// src/AdminAppsDialog.tsx
|
|
3198
|
-
import { jsx as jsx7, jsxs } from "react/jsx-runtime";
|
|
3231
|
+
import { Fragment as Fragment5, jsx as jsx7, jsxs } from "react/jsx-runtime";
|
|
3199
3232
|
function AdminAppMark({ app, size: size4 = 20 }) {
|
|
3200
3233
|
if (app.icon_url && (app.icon_url.startsWith("/") || /^https:\/\//.test(app.icon_url)))
|
|
3201
3234
|
return /* @__PURE__ */ jsx7("img", { src: app.icon_url, alt: "", loading: "lazy" });
|
|
@@ -3211,10 +3244,168 @@ function AdminAppMark({ app, size: size4 = 20 }) {
|
|
|
3211
3244
|
if (icon === "canvas" || icon === "design-canvas") return /* @__PURE__ */ jsx7(PenTool, { size: size4 });
|
|
3212
3245
|
return /* @__PURE__ */ jsx7(LayoutPanelTop, { size: size4 });
|
|
3213
3246
|
}
|
|
3214
|
-
function AdminAppsDirectory({ loadApps, installApp, removeApp, updateApp, onOpenApp, onInstalled }) {
|
|
3247
|
+
function AdminAppsDirectory({ loadApps, installApp, removeApp, updateApp, onOpenApp, onInstalled, variant = "compact" }) {
|
|
3215
3248
|
const { apps, visible, view, setView, query, setQuery, needle, loading, error, active, confirmRemove, setConfirmRemove, perform, refresh } = useAdminApps({ loadApps, installApp, removeApp, updateApp, onInstalled });
|
|
3249
|
+
const [selectedKey, setSelectedKey] = useState12(null);
|
|
3250
|
+
const selected = apps.find((app) => app.key === selectedKey) || null;
|
|
3251
|
+
useEffect14(() => {
|
|
3252
|
+
if (selectedKey && !apps.some((app) => app.key === selectedKey)) setSelectedKey(null);
|
|
3253
|
+
}, [apps, selectedKey]);
|
|
3216
3254
|
const installedCount = !apps.length && (loading || Boolean(error)) ? "\u2014" : String(apps.filter((a) => a.installed).length);
|
|
3217
3255
|
const browseCount = !apps.length && (loading || Boolean(error)) ? "\u2014" : String(apps.filter((a) => !a.installed).length);
|
|
3256
|
+
const enabledCount = apps.filter((app) => app.installed && app.enabled).length;
|
|
3257
|
+
const statusLabel = (app) => app.installed ? app.enabled ? "Enabled" : "Disabled" : app.installable ? "Available" : "Setup required";
|
|
3258
|
+
const screenStatus = (app) => app.screen_status === "registered" ? "Routes registered" : app.screen_status === "manifest_missing" ? "Manifest missing" : app.screen_status === "not_registered" ? "Routes not registered" : "Not reported";
|
|
3259
|
+
const lastOpened = (value) => {
|
|
3260
|
+
if (!value) return "Never opened";
|
|
3261
|
+
const date = new Date(value > 1e12 ? value : value * 1e3);
|
|
3262
|
+
return Number.isNaN(date.getTime()) ? "Unknown" : date.toLocaleString();
|
|
3263
|
+
};
|
|
3264
|
+
const actions = (app, detail = false) => /* @__PURE__ */ jsx7("div", { className: detail ? "as-apps-settings-detail-actions" : "as-apps-settings-card-actions", children: confirmRemove === app.key ? /* @__PURE__ */ jsxs(Fragment5, { children: [
|
|
3265
|
+
/* @__PURE__ */ jsx7("span", { className: "as-apps-settings-confirm", children: "Remove this app from the account?" }),
|
|
3266
|
+
/* @__PURE__ */ jsx7("button", { type: "button", onClick: () => setConfirmRemove(null), children: "Cancel" }),
|
|
3267
|
+
/* @__PURE__ */ jsx7("button", { type: "button", disabled: Boolean(active), onClick: () => void perform(app, "remove"), children: "Confirm remove" })
|
|
3268
|
+
] }) : /* @__PURE__ */ jsxs(Fragment5, { children: [
|
|
3269
|
+
app.installed && app.enabled && app.href ? /* @__PURE__ */ jsxs("button", { type: "button", className: "as-apps-settings-primary", onClick: () => onOpenApp?.(app.href, app), children: [
|
|
3270
|
+
/* @__PURE__ */ jsx7(ExternalLink, { size: 14 }),
|
|
3271
|
+
" Open app"
|
|
3272
|
+
] }) : null,
|
|
3273
|
+
app.installed && updateApp ? /* @__PURE__ */ jsx7("button", { type: "button", disabled: Boolean(active), onClick: () => void perform(app, app.enabled ? "disable" : "enable"), children: app.enabled ? "Disable" : "Enable" }) : null,
|
|
3274
|
+
!app.installed && app.installable ? /* @__PURE__ */ jsx7("button", { type: "button", className: "as-apps-settings-primary", disabled: Boolean(active), onClick: () => void perform(app, "install"), children: active === app.key ? "Installing\u2026" : "Install" }) : null,
|
|
3275
|
+
app.installed && removeApp ? /* @__PURE__ */ jsx7("button", { type: "button", className: "as-apps-settings-danger", disabled: Boolean(active), onClick: () => setConfirmRemove(app.key), children: "Remove" }) : null,
|
|
3276
|
+
!app.installed && !app.installable ? /* @__PURE__ */ jsx7("span", { className: "as-apps-settings-muted", children: "Setup required" }) : null
|
|
3277
|
+
] }) });
|
|
3278
|
+
if (variant === "settings") return /* @__PURE__ */ jsx7("div", { className: "as-apps-directory as-apps-settings-directory", children: selected ? /* @__PURE__ */ jsxs(Fragment5, { children: [
|
|
3279
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-detail-head", children: [
|
|
3280
|
+
/* @__PURE__ */ jsx7("button", { type: "button", className: "as-apps-settings-back", onClick: () => {
|
|
3281
|
+
setSelectedKey(null);
|
|
3282
|
+
setConfirmRemove(null);
|
|
3283
|
+
}, "aria-label": "Back to Apps", children: /* @__PURE__ */ jsx7(ArrowLeft, { size: 17 }) }),
|
|
3284
|
+
/* @__PURE__ */ jsx7("span", { className: "as-apps-settings-mark", children: /* @__PURE__ */ jsx7(AdminAppMark, { app: selected, size: 25 }) }),
|
|
3285
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-detail-title", children: [
|
|
3286
|
+
/* @__PURE__ */ jsx7("h3", { children: selected.label }),
|
|
3287
|
+
/* @__PURE__ */ jsx7("p", { children: selected.description || "Account application" }),
|
|
3288
|
+
/* @__PURE__ */ jsxs("span", { className: "as-apps-settings-badges", children: [
|
|
3289
|
+
/* @__PURE__ */ jsx7("span", { children: statusLabel(selected) }),
|
|
3290
|
+
/* @__PURE__ */ jsx7("span", { children: selected.kind === "app" ? "Application" : "Plugin app" })
|
|
3291
|
+
] })
|
|
3292
|
+
] })
|
|
3293
|
+
] }),
|
|
3294
|
+
error ? /* @__PURE__ */ jsx7("p", { className: "as-apps-settings-error", role: "alert", children: error }) : null,
|
|
3295
|
+
actions(selected, true),
|
|
3296
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-meta-grid", children: [
|
|
3297
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-meta", children: [
|
|
3298
|
+
/* @__PURE__ */ jsx7("small", { children: "App key" }),
|
|
3299
|
+
/* @__PURE__ */ jsx7("strong", { children: selected.key })
|
|
3300
|
+
] }),
|
|
3301
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-meta", children: [
|
|
3302
|
+
/* @__PURE__ */ jsx7("small", { children: "Installation state" }),
|
|
3303
|
+
/* @__PURE__ */ jsx7("strong", { children: selected.setup_status || "Unknown" })
|
|
3304
|
+
] }),
|
|
3305
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-meta", children: [
|
|
3306
|
+
/* @__PURE__ */ jsx7("small", { children: "Route registration" }),
|
|
3307
|
+
/* @__PURE__ */ jsx7("strong", { children: screenStatus(selected) })
|
|
3308
|
+
] }),
|
|
3309
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-meta", children: [
|
|
3310
|
+
/* @__PURE__ */ jsx7("small", { children: "Last opened" }),
|
|
3311
|
+
/* @__PURE__ */ jsx7("strong", { children: lastOpened(selected.last_opened_at) })
|
|
3312
|
+
] }),
|
|
3313
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-meta", children: [
|
|
3314
|
+
/* @__PURE__ */ jsx7("small", { children: "Manifest ID" }),
|
|
3315
|
+
/* @__PURE__ */ jsx7("strong", { children: selected.manifest_id || "Not provided" })
|
|
3316
|
+
] }),
|
|
3317
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-meta", children: [
|
|
3318
|
+
/* @__PURE__ */ jsx7("small", { children: "Manifest version" }),
|
|
3319
|
+
/* @__PURE__ */ jsx7("strong", { children: selected.manifest_version || "Not provided" })
|
|
3320
|
+
] }),
|
|
3321
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-meta", children: [
|
|
3322
|
+
/* @__PURE__ */ jsx7("small", { children: "Delivery" }),
|
|
3323
|
+
/* @__PURE__ */ jsx7("strong", { children: selected.delivery ? `${selected.delivery.kind} \xB7 ${selected.delivery.package}` : "Host managed" })
|
|
3324
|
+
] }),
|
|
3325
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-meta", children: [
|
|
3326
|
+
/* @__PURE__ */ jsx7("small", { children: "App route" }),
|
|
3327
|
+
/* @__PURE__ */ jsx7("strong", { children: selected.href || "No route registered" })
|
|
3328
|
+
] })
|
|
3329
|
+
] }),
|
|
3330
|
+
/* @__PURE__ */ jsxs("section", { className: "as-apps-settings-section", children: [
|
|
3331
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-section-title", children: [
|
|
3332
|
+
/* @__PURE__ */ jsx7("h4", { children: "Surfaces" }),
|
|
3333
|
+
/* @__PURE__ */ jsx7("span", { children: selected.surfaces?.length || 0 })
|
|
3334
|
+
] }),
|
|
3335
|
+
selected.surfaces?.length ? /* @__PURE__ */ jsx7("div", { className: "as-apps-settings-chips", children: selected.surfaces.map((surface) => /* @__PURE__ */ jsx7("span", { children: surface }, surface)) }) : /* @__PURE__ */ jsx7("p", { className: "as-apps-settings-muted", children: "No surfaces are declared in the current app manifest." })
|
|
3336
|
+
] }),
|
|
3337
|
+
/* @__PURE__ */ jsxs("section", { className: "as-apps-settings-section", children: [
|
|
3338
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-section-title", children: [
|
|
3339
|
+
/* @__PURE__ */ jsx7("h4", { children: "Registered screens" }),
|
|
3340
|
+
/* @__PURE__ */ jsx7("span", { children: selected.screens?.length || 0 })
|
|
3341
|
+
] }),
|
|
3342
|
+
selected.screens?.length ? /* @__PURE__ */ jsx7("div", { className: "as-apps-settings-screen-list", children: selected.screens.map((screen, index2) => /* @__PURE__ */ jsxs("div", { children: [
|
|
3343
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
3344
|
+
/* @__PURE__ */ jsx7("strong", { children: screen.label || screen.id }),
|
|
3345
|
+
/* @__PURE__ */ jsx7("small", { children: screen.id })
|
|
3346
|
+
] }),
|
|
3347
|
+
/* @__PURE__ */ jsx7("code", { children: screen.route || "Route not declared" })
|
|
3348
|
+
] }, screen.id || `${selected.key}-${index2}`)) }) : /* @__PURE__ */ jsx7("p", { className: "as-apps-settings-muted", children: "No screen registrations were returned for this app." })
|
|
3349
|
+
] }),
|
|
3350
|
+
/* @__PURE__ */ jsx7("p", { className: "as-apps-settings-footnote", children: "App installation state is account-owned. Plugin connections, OAuth permissions and tool visibility remain managed separately in Plugins." })
|
|
3351
|
+
] }) : /* @__PURE__ */ jsxs(Fragment5, { children: [
|
|
3352
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-summary", children: [
|
|
3353
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
3354
|
+
/* @__PURE__ */ jsx7("small", { children: "Catalog apps" }),
|
|
3355
|
+
/* @__PURE__ */ jsx7("strong", { children: loading && !apps.length ? "\u2014" : apps.length })
|
|
3356
|
+
] }),
|
|
3357
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
3358
|
+
/* @__PURE__ */ jsx7("small", { children: "Installed" }),
|
|
3359
|
+
/* @__PURE__ */ jsx7("strong", { children: installedCount })
|
|
3360
|
+
] }),
|
|
3361
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
3362
|
+
/* @__PURE__ */ jsx7("small", { children: "Enabled" }),
|
|
3363
|
+
/* @__PURE__ */ jsx7("strong", { children: loading && !apps.length ? "\u2014" : enabledCount })
|
|
3364
|
+
] })
|
|
3365
|
+
] }),
|
|
3366
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-controls", children: [
|
|
3367
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-tabs", role: "tablist", "aria-label": "Apps view", children: [
|
|
3368
|
+
/* @__PURE__ */ jsxs("button", { role: "tab", "aria-selected": view === "installed", type: "button", onClick: () => setView("installed"), children: [
|
|
3369
|
+
"Installed (",
|
|
3370
|
+
installedCount,
|
|
3371
|
+
")"
|
|
3372
|
+
] }),
|
|
3373
|
+
/* @__PURE__ */ jsxs("button", { role: "tab", "aria-selected": view === "browse", type: "button", onClick: () => setView("browse"), children: [
|
|
3374
|
+
"Browse (",
|
|
3375
|
+
browseCount,
|
|
3376
|
+
")"
|
|
3377
|
+
] }),
|
|
3378
|
+
/* @__PURE__ */ jsx7("button", { role: "tab", "aria-selected": view === "all", type: "button", onClick: () => setView("all"), children: "All" })
|
|
3379
|
+
] }),
|
|
3380
|
+
/* @__PURE__ */ jsxs("div", { className: "as-apps-settings-control-actions", children: [
|
|
3381
|
+
/* @__PURE__ */ jsxs("label", { className: "as-apps-settings-search", children: [
|
|
3382
|
+
/* @__PURE__ */ jsx7(Search, { size: 15 }),
|
|
3383
|
+
/* @__PURE__ */ jsx7("input", { type: "search", value: query, onChange: (event) => setQuery(event.target.value), placeholder: "Search apps", "aria-label": "Search apps" })
|
|
3384
|
+
] }),
|
|
3385
|
+
/* @__PURE__ */ jsx7("button", { type: "button", className: "as-apps-settings-refresh", onClick: () => refresh(), disabled: loading || Boolean(active), "aria-label": "Refresh apps", children: /* @__PURE__ */ jsx7(RefreshCw, { size: 14 }) })
|
|
3386
|
+
] })
|
|
3387
|
+
] }),
|
|
3388
|
+
loading ? /* @__PURE__ */ jsx7("p", { className: "as-apps-picker-state", children: "Verifying account Apps\u2026" }) : error && !apps.length ? /* @__PURE__ */ jsxs("div", { className: "as-apps-settings-error", role: "alert", children: [
|
|
3389
|
+
/* @__PURE__ */ jsx7("p", { children: error }),
|
|
3390
|
+
/* @__PURE__ */ jsx7("button", { type: "button", onClick: () => refresh(), children: "Retry" })
|
|
3391
|
+
] }) : visible.length ? /* @__PURE__ */ jsx7("div", { className: "as-apps-settings-grid", children: visible.map((app) => /* @__PURE__ */ jsxs("article", { className: "as-apps-settings-card", children: [
|
|
3392
|
+
/* @__PURE__ */ jsxs("button", { type: "button", className: "as-apps-settings-card-main", onClick: () => setSelectedKey(app.key), children: [
|
|
3393
|
+
/* @__PURE__ */ jsx7("span", { className: "as-apps-settings-mark", children: /* @__PURE__ */ jsx7(AdminAppMark, { app, size: 23 }) }),
|
|
3394
|
+
/* @__PURE__ */ jsxs("span", { className: "as-apps-settings-card-copy", children: [
|
|
3395
|
+
/* @__PURE__ */ jsx7("strong", { children: app.label }),
|
|
3396
|
+
/* @__PURE__ */ jsx7("small", { children: app.description || "Account application" }),
|
|
3397
|
+
/* @__PURE__ */ jsxs("span", { className: "as-apps-settings-badges", children: [
|
|
3398
|
+
/* @__PURE__ */ jsx7("span", { children: statusLabel(app) }),
|
|
3399
|
+
/* @__PURE__ */ jsx7("span", { children: screenStatus(app) })
|
|
3400
|
+
] })
|
|
3401
|
+
] }),
|
|
3402
|
+
/* @__PURE__ */ jsx7(ChevronRight, { size: 16 })
|
|
3403
|
+
] }),
|
|
3404
|
+
actions(app)
|
|
3405
|
+
] }, app.key)) }) : /* @__PURE__ */ jsx7("div", { className: "as-apps-settings-empty", children: needle ? "No apps match this search." : view === "installed" ? "No apps are installed for this account." : "No additional apps are available in this catalog." }),
|
|
3406
|
+
error && apps.length ? /* @__PURE__ */ jsx7("p", { className: "as-apps-settings-error", role: "alert", children: error }) : null,
|
|
3407
|
+
/* @__PURE__ */ jsx7("p", { className: "as-apps-settings-footnote", children: "Click an app to inspect its manifest, route, surfaces and registered screens. App installations belong to your account; plugins and their connections are managed separately." })
|
|
3408
|
+
] }) });
|
|
3218
3409
|
return /* @__PURE__ */ jsxs("div", { className: "as-apps-directory", children: [
|
|
3219
3410
|
/* @__PURE__ */ jsxs("div", { className: "as-apps-picker-controls", children: [
|
|
3220
3411
|
/* @__PURE__ */ jsxs("div", { className: "as-apps-picker-tabs", role: "tablist", "aria-label": "Apps view", children: [
|
|
@@ -3279,19 +3470,19 @@ function AdminAppsDialog({ onClose, theme = "system", ...directory }) {
|
|
|
3279
3470
|
] }),
|
|
3280
3471
|
/* @__PURE__ */ jsx7(DialogClose, { className: "as-apps-picker-close", "aria-label": "Close Apps", children: /* @__PURE__ */ jsx7(X, { size: 18 }) })
|
|
3281
3472
|
] }),
|
|
3282
|
-
/* @__PURE__ */ jsx7(AdminAppsDirectory, { ...directory, onOpenApp: (href) => {
|
|
3473
|
+
/* @__PURE__ */ jsx7(AdminAppsDirectory, { ...directory, variant: "compact", onOpenApp: (href, app) => {
|
|
3283
3474
|
onClose();
|
|
3284
|
-
directory.onOpenApp?.(href);
|
|
3475
|
+
directory.onOpenApp?.(href, app);
|
|
3285
3476
|
} })
|
|
3286
3477
|
] })
|
|
3287
3478
|
] }) });
|
|
3288
3479
|
}
|
|
3289
3480
|
|
|
3290
3481
|
// src/browser.tsx
|
|
3291
|
-
import { createElement as createElement8, useEffect as
|
|
3482
|
+
import { createElement as createElement8, useEffect as useEffect23 } from "react";
|
|
3292
3483
|
|
|
3293
3484
|
// src/NavProvider.tsx
|
|
3294
|
-
import { createContext as createContext4, useCallback as useCallback8, useContext as useContext3, useEffect as
|
|
3485
|
+
import { createContext as createContext4, useCallback as useCallback8, useContext as useContext3, useEffect as useEffect15, useMemo as useMemo6, useState as useState13, useSyncExternalStore } from "react";
|
|
3295
3486
|
|
|
3296
3487
|
// src/utils.ts
|
|
3297
3488
|
function cx(...values) {
|
|
@@ -3350,9 +3541,12 @@ function stabilizeNavStateStore(host) {
|
|
|
3350
3541
|
return {
|
|
3351
3542
|
getSnapshot,
|
|
3352
3543
|
subscribe(listener) {
|
|
3544
|
+
let seen = getSnapshot();
|
|
3353
3545
|
return host.subscribe(() => {
|
|
3354
|
-
const
|
|
3355
|
-
if (
|
|
3546
|
+
const next = getSnapshot();
|
|
3547
|
+
if (next === seen) return;
|
|
3548
|
+
seen = next;
|
|
3549
|
+
listener();
|
|
3356
3550
|
});
|
|
3357
3551
|
},
|
|
3358
3552
|
setState(update) {
|
|
@@ -3391,6 +3585,23 @@ function createNavState(initial = {}) {
|
|
|
3391
3585
|
// src/NavProvider.tsx
|
|
3392
3586
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
3393
3587
|
var NavContext = createContext4(null);
|
|
3588
|
+
function useCompactNavigation(breakpoint = 901, serverCompact = false) {
|
|
3589
|
+
const read = useCallback8(() => window.matchMedia(`(max-width: ${breakpoint - 1}px)`).matches, [breakpoint]);
|
|
3590
|
+
const subscribe2 = useCallback8((notify) => {
|
|
3591
|
+
const query = window.matchMedia(`(max-width: ${breakpoint - 1}px)`);
|
|
3592
|
+
if (query.addEventListener) query.addEventListener("change", notify);
|
|
3593
|
+
else query.addListener(notify);
|
|
3594
|
+
window.addEventListener("resize", notify);
|
|
3595
|
+
window.visualViewport?.addEventListener("resize", notify);
|
|
3596
|
+
return () => {
|
|
3597
|
+
if (query.removeEventListener) query.removeEventListener("change", notify);
|
|
3598
|
+
else query.removeListener(notify);
|
|
3599
|
+
window.removeEventListener("resize", notify);
|
|
3600
|
+
window.visualViewport?.removeEventListener("resize", notify);
|
|
3601
|
+
};
|
|
3602
|
+
}, [breakpoint]);
|
|
3603
|
+
return useSyncExternalStore(subscribe2, read, () => serverCompact);
|
|
3604
|
+
}
|
|
3394
3605
|
function NavProvider({
|
|
3395
3606
|
children,
|
|
3396
3607
|
value: input = {},
|
|
@@ -3408,16 +3619,18 @@ function NavProvider({
|
|
|
3408
3619
|
const destinations = resolveNavDestinations(input.destinations ?? [], input.pathname);
|
|
3409
3620
|
return { ...input, destinations, breadcrumbs: input.breadcrumbs ?? navBreadcrumbs(destinations) };
|
|
3410
3621
|
}, [input]);
|
|
3411
|
-
const [ownedStore] =
|
|
3622
|
+
const [ownedStore] = useState13(() => createNavState({
|
|
3412
3623
|
desktopOpen: defaultOpen && (typeof window === "undefined" || window.innerWidth >= 1024),
|
|
3413
3624
|
isMobile: typeof window !== "undefined" && window.innerWidth < mobileBreakpoint
|
|
3414
3625
|
}));
|
|
3415
3626
|
const stateStore = useMemo6(() => suppliedStore ? stabilizeNavStateStore(suppliedStore) : ownedStore, [suppliedStore, ownedStore]);
|
|
3416
|
-
const
|
|
3627
|
+
const getServerSnapshot = useMemo6(() => createNavState({ desktopOpen: defaultOpen }).getSnapshot, [defaultOpen]);
|
|
3628
|
+
const isMobile = useCompactNavigation(mobileBreakpoint, suppliedStore?.getSnapshot().isMobile ?? false);
|
|
3629
|
+
const { menu, desktopOpen, mobileOpen, isPeeking, width } = useSyncExternalStore(stateStore.subscribe, stateStore.getSnapshot, getServerSnapshot);
|
|
3417
3630
|
const setMenu = useCallback8((menu2) => stateStore.setState({ menu: menu2 }), [stateStore]);
|
|
3418
3631
|
const setPeeking = useCallback8((isPeeking2) => stateStore.setState({ isPeeking: isPeeking2 }), [stateStore]);
|
|
3419
|
-
const [loadedKey, setLoadedKey] =
|
|
3420
|
-
|
|
3632
|
+
const [loadedKey, setLoadedKey] = useState13();
|
|
3633
|
+
useEffect15(() => {
|
|
3421
3634
|
if (!storageKey) {
|
|
3422
3635
|
setLoadedKey(void 0);
|
|
3423
3636
|
return;
|
|
@@ -3432,33 +3645,28 @@ function NavProvider({
|
|
|
3432
3645
|
stateStore.setState(initial);
|
|
3433
3646
|
setLoadedKey(storageKey);
|
|
3434
3647
|
}, [storageKey, defaultOpen, stateStore]);
|
|
3435
|
-
|
|
3648
|
+
useEffect15(() => {
|
|
3436
3649
|
if (!storageKey || loadedKey !== storageKey) return;
|
|
3437
3650
|
try {
|
|
3438
3651
|
window.localStorage.setItem(storageKey, JSON.stringify({ open: desktopOpen, width }));
|
|
3439
3652
|
} catch {
|
|
3440
3653
|
}
|
|
3441
3654
|
}, [storageKey, loadedKey, desktopOpen, width]);
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
};
|
|
3448
|
-
update();
|
|
3449
|
-
query.addEventListener("change", update);
|
|
3450
|
-
return () => query.removeEventListener("change", update);
|
|
3451
|
-
}, [mobileBreakpoint, stateStore]);
|
|
3655
|
+
useEffect15(() => {
|
|
3656
|
+
if (stateStore.getSnapshot().isMobile !== isMobile) {
|
|
3657
|
+
stateStore.setState(isMobile ? { isMobile, mobileOpen: false, isPeeking: false } : { isMobile, isPeeking: false });
|
|
3658
|
+
}
|
|
3659
|
+
}, [isMobile, stateStore]);
|
|
3452
3660
|
const open = isMobile ? mobileOpen : desktopOpen;
|
|
3453
3661
|
const setOpen = useCallback8((next) => {
|
|
3454
|
-
stateStore.setState(
|
|
3455
|
-
}, [stateStore]);
|
|
3662
|
+
stateStore.setState(isMobile ? { mobileOpen: next } : { desktopOpen: next });
|
|
3663
|
+
}, [stateStore, isMobile]);
|
|
3456
3664
|
const close = useCallback8(() => setOpen(false), [setOpen]);
|
|
3457
|
-
const toggle = useCallback8(() => stateStore.setState((state) =>
|
|
3665
|
+
const toggle = useCallback8(() => stateStore.setState((state) => isMobile ? { mobileOpen: !state.mobileOpen } : { desktopOpen: !state.desktopOpen }), [stateStore, isMobile]);
|
|
3458
3666
|
const setWidth = useCallback8((next) => {
|
|
3459
3667
|
if (Number.isFinite(next)) stateStore.setState({ width: next });
|
|
3460
3668
|
}, [stateStore]);
|
|
3461
|
-
|
|
3669
|
+
useEffect15(() => {
|
|
3462
3670
|
if (!isMobile || !open) return void 0;
|
|
3463
3671
|
const onKeyDown = (event) => {
|
|
3464
3672
|
if (event.key === "Escape") close();
|
|
@@ -3507,8 +3715,8 @@ import { createPortal as createPortal3 } from "react-dom";
|
|
|
3507
3715
|
import { useCallback as useCallback15 } from "react";
|
|
3508
3716
|
|
|
3509
3717
|
// src/NavCollapsible.tsx
|
|
3510
|
-
import { cloneElement as cloneElement4, createContext as createContext5, useContext as useContext4, useId as useId2, useState as
|
|
3511
|
-
import { Fragment as
|
|
3718
|
+
import { cloneElement as cloneElement4, createContext as createContext5, useContext as useContext4, useId as useId2, useState as useState14 } from "react";
|
|
3719
|
+
import { Fragment as Fragment6, jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
3512
3720
|
var CollapsibleContext = createContext5(null);
|
|
3513
3721
|
function useCollapsible() {
|
|
3514
3722
|
const context = useContext4(CollapsibleContext);
|
|
@@ -3516,7 +3724,7 @@ function useCollapsible() {
|
|
|
3516
3724
|
return context;
|
|
3517
3725
|
}
|
|
3518
3726
|
function NavCollapsible({ children, defaultOpen = false }) {
|
|
3519
|
-
const [open, setOpen] =
|
|
3727
|
+
const [open, setOpen] = useState14(defaultOpen);
|
|
3520
3728
|
const contentId = useId2();
|
|
3521
3729
|
return /* @__PURE__ */ jsx9(CollapsibleContext.Provider, { value: { open, setOpen, contentId }, children });
|
|
3522
3730
|
}
|
|
@@ -3531,7 +3739,7 @@ function NavCollapsibleTrigger({ render, children, className, ...props }) {
|
|
|
3531
3739
|
if (!event.defaultPrevented) setOpen(!open);
|
|
3532
3740
|
}
|
|
3533
3741
|
};
|
|
3534
|
-
if (render) return /* @__PURE__ */ jsx9(
|
|
3742
|
+
if (render) return /* @__PURE__ */ jsx9(Fragment6, { children: cloneElement4(render, triggerProps) });
|
|
3535
3743
|
return /* @__PURE__ */ jsx9("button", { type: "button", className: cx("agentsam-nav__menu-button", className), ...props, ...triggerProps, children });
|
|
3536
3744
|
}
|
|
3537
3745
|
function NavCollapsibleContent({ className, ...props }) {
|
|
@@ -3630,7 +3838,7 @@ function NavTrigger({ className, onClick, "aria-label": ariaLabel = "Toggle navi
|
|
|
3630
3838
|
}
|
|
3631
3839
|
|
|
3632
3840
|
// src/Surfaces.tsx
|
|
3633
|
-
import { Fragment as
|
|
3841
|
+
import { Fragment as Fragment8, useEffect as useEffect22, useId as useId3, useRef as useRef18, useState as useState22 } from "react";
|
|
3634
3842
|
import { createPortal as createPortal2 } from "react-dom";
|
|
3635
3843
|
|
|
3636
3844
|
// ../../apps/local-studio/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
|
|
@@ -7614,11 +7822,19 @@ var SubTrigger2 = DropdownMenuSubTrigger;
|
|
|
7614
7822
|
var SubContent2 = DropdownMenuSubContent;
|
|
7615
7823
|
|
|
7616
7824
|
// src/Surfaces.tsx
|
|
7617
|
-
import { Fragment as
|
|
7825
|
+
import { Fragment as Fragment9, jsx as jsx23, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
7618
7826
|
function useNavStyle() {
|
|
7619
7827
|
const { accentColor, tokens, width, resizable } = useNav();
|
|
7620
7828
|
return { ...resizable ? { "--nav-width": width + "px" } : {}, ...Object.fromEntries(Object.entries(tokens).map(([key, value]) => [`--nav-${key}`, value])), "--nav-accent": accentColor };
|
|
7621
7829
|
}
|
|
7830
|
+
function NavMoreGlyph() {
|
|
7831
|
+
return /* @__PURE__ */ jsxs5("svg", { viewBox: "0 0 24 24", width: "24", height: "24", fill: "none", stroke: "currentColor", strokeWidth: "1.9", "aria-hidden": "true", children: [
|
|
7832
|
+
/* @__PURE__ */ jsx23("circle", { cx: "7", cy: "7", r: "3.1" }),
|
|
7833
|
+
/* @__PURE__ */ jsx23("circle", { cx: "17", cy: "7", r: "3.1" }),
|
|
7834
|
+
/* @__PURE__ */ jsx23("circle", { cx: "7", cy: "17", r: "3.1" }),
|
|
7835
|
+
/* @__PURE__ */ jsx23("circle", { cx: "17", cy: "17", r: "3.1" })
|
|
7836
|
+
] });
|
|
7837
|
+
}
|
|
7622
7838
|
function NavLaunchDock({ items, coverage = "phone", label = "Quick navigation" }) {
|
|
7623
7839
|
return /* @__PURE__ */ jsx23("nav", { className: "as-nav-launch-dock", "data-nav-dock-coverage": coverage, "aria-label": label, children: items.map((item) => /* @__PURE__ */ jsxs5(
|
|
7624
7840
|
"button",
|
|
@@ -7642,7 +7858,7 @@ function NavScope({ className, style, ...props }) {
|
|
|
7642
7858
|
return /* @__PURE__ */ jsx23("div", { ...props, "data-nav-theme": theme, className: cx("as-nav-scope", className), style: { ...useNavStyle(), ...style } });
|
|
7643
7859
|
}
|
|
7644
7860
|
function MenuActions({ actions }) {
|
|
7645
|
-
return /* @__PURE__ */ jsx23(
|
|
7861
|
+
return /* @__PURE__ */ jsx23(Fragment9, { children: actions.map((action) => /* @__PURE__ */ jsxs5(Fragment8, { children: [
|
|
7646
7862
|
action.separatorBefore ? /* @__PURE__ */ jsx23(Separator2, { className: "as-nav-menu-separator" }) : null,
|
|
7647
7863
|
action.children?.length ? /* @__PURE__ */ jsxs5(Sub2, { children: [
|
|
7648
7864
|
/* @__PURE__ */ jsxs5(SubTrigger2, { className: "as-nav-menu-row", disabled: action.disabled || action.loading, "aria-busy": action.loading || void 0, children: [
|
|
@@ -7672,21 +7888,25 @@ function NavOverflowMenu({ label = "More options", actions = [], children, id: s
|
|
|
7672
7888
|
] });
|
|
7673
7889
|
}
|
|
7674
7890
|
function NavTopbarLogo({ variant = "mark", onClick, toggle = false }) {
|
|
7675
|
-
const { data, open, toggle: toggleNavigation } = useNav();
|
|
7676
|
-
const [logoFailed, setLogoFailed] =
|
|
7891
|
+
const { data, open, isMobile, toggle: toggleNavigation } = useNav();
|
|
7892
|
+
const [logoFailed, setLogoFailed] = useState22(false);
|
|
7677
7893
|
const label = toggle ? open ? "Close sidebar" : "Open sidebar" : data.brand?.name ?? "Home";
|
|
7678
7894
|
if (toggle) return /* @__PURE__ */ jsxs5(
|
|
7679
7895
|
"button",
|
|
7680
7896
|
{
|
|
7681
7897
|
type: "button",
|
|
7682
7898
|
className: "as-nav-work-brand-toggle",
|
|
7899
|
+
"data-mobile": isMobile || void 0,
|
|
7683
7900
|
"aria-label": label,
|
|
7684
7901
|
title: label + " (\u2318\u21E7S)",
|
|
7685
7902
|
"aria-keyshortcuts": "Meta+Shift+S",
|
|
7686
7903
|
"aria-expanded": open,
|
|
7687
|
-
onClick:
|
|
7904
|
+
onClick: () => {
|
|
7905
|
+
if (isMobile && !open) data.onMobileNavigationSectionChange?.("history");
|
|
7906
|
+
toggleNavigation();
|
|
7907
|
+
},
|
|
7688
7908
|
children: [
|
|
7689
|
-
/* @__PURE__ */ jsx23("span", { className: "as-nav-work-brand-toggle__mark as-nav-brand-mark", "aria-hidden": "true", children: data.brand?.icon ? data.brand.icon : data.brand?.logo && !logoFailed ? /* @__PURE__ */ jsxs5(
|
|
7909
|
+
/* @__PURE__ */ jsx23("span", { className: "as-nav-work-brand-toggle__mark as-nav-brand-mark", "aria-hidden": "true", children: data.brand?.icon ? data.brand.icon : data.brand?.logo && !logoFailed ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7690
7910
|
/* @__PURE__ */ jsx23("img", { className: "as-nav-logo-dark", src: data.brand.logo, alt: "", onError: () => setLogoFailed(true) }),
|
|
7691
7911
|
/* @__PURE__ */ jsx23(
|
|
7692
7912
|
"img",
|
|
@@ -7699,12 +7919,15 @@ function NavTopbarLogo({ variant = "mark", onClick, toggle = false }) {
|
|
|
7699
7919
|
}
|
|
7700
7920
|
)
|
|
7701
7921
|
] }) : /* @__PURE__ */ jsx23(PanelLeft, {}) }),
|
|
7702
|
-
/* @__PURE__ */ jsx23("span", { className: "as-nav-work-brand-toggle__control", "aria-hidden": "true", children: open ? /* @__PURE__ */ jsx23(X, { size: 20 }) : /* @__PURE__ */
|
|
7922
|
+
/* @__PURE__ */ jsx23("span", { className: "as-nav-work-brand-toggle__control", "aria-hidden": "true", children: open ? /* @__PURE__ */ jsx23(X, { size: 20 }) : /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7923
|
+
/* @__PURE__ */ jsx23("svg", { className: "as-nav-mobile-menu-glyph", viewBox: "0 0 24 24", width: "24", height: "24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx23("path", { d: "M4 8h10M4 16h14" }) }),
|
|
7924
|
+
/* @__PURE__ */ jsx23("span", { className: "as-nav-desktop-menu-glyph", children: /* @__PURE__ */ jsx23(PanelLeft, { size: 20 }) })
|
|
7925
|
+
] }) })
|
|
7703
7926
|
]
|
|
7704
7927
|
}
|
|
7705
7928
|
);
|
|
7706
7929
|
return /* @__PURE__ */ jsxs5("button", { type: "button", className: "as-nav-button as-nav-brand", "aria-label": label, title: label, onClick: onClick ?? (() => data.brand?.home && data.onNavigate?.(data.brand.home)), children: [
|
|
7707
|
-
/* @__PURE__ */ jsx23("span", { className: "as-nav-brand-mark", children: data.brand?.logo && !logoFailed ? /* @__PURE__ */ jsxs5(
|
|
7930
|
+
/* @__PURE__ */ jsx23("span", { className: "as-nav-brand-mark", children: data.brand?.logo && !logoFailed ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7708
7931
|
/* @__PURE__ */ jsx23("img", { className: "as-nav-logo-dark", src: data.brand.logo, alt: "", onError: () => setLogoFailed(true) }),
|
|
7709
7932
|
/* @__PURE__ */ jsx23("img", { className: "as-nav-logo-light", "data-fallback": !data.brand.lightLogo || void 0, src: data.brand.lightLogo ?? data.brand.logo, alt: "", onError: () => setLogoFailed(true) })
|
|
7710
7933
|
] }) : /* @__PURE__ */ jsx23(PanelLeft, {}) }),
|
|
@@ -7730,7 +7953,7 @@ function NavProjectContext() {
|
|
|
7730
7953
|
const conversation = data.conversation;
|
|
7731
7954
|
if (!data.project && !conversation && data.breadcrumbs?.length) return /* @__PURE__ */ jsx23(NavBreadcrumbs, {});
|
|
7732
7955
|
return /* @__PURE__ */ jsxs5("div", { className: "as-nav-context", children: [
|
|
7733
|
-
data.project ? /* @__PURE__ */ jsxs5(
|
|
7956
|
+
data.project ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7734
7957
|
/* @__PURE__ */ jsxs5(NavOverflowMenu, { label: data.project.name, actions: data.projectActions, children: [
|
|
7735
7958
|
/* @__PURE__ */ jsx23(Folder, {}),
|
|
7736
7959
|
/* @__PURE__ */ jsx23("span", { className: "as-nav-project-name", children: data.project.name }),
|
|
@@ -7754,10 +7977,10 @@ function NavFilesResources() {
|
|
|
7754
7977
|
}
|
|
7755
7978
|
function NavPinnedSummary() {
|
|
7756
7979
|
const { data } = useNav();
|
|
7757
|
-
const [open, setOpen] =
|
|
7758
|
-
const [expandedGroups, setExpandedGroups] =
|
|
7759
|
-
const [activeAdd, setActiveAdd] =
|
|
7760
|
-
|
|
7980
|
+
const [open, setOpen] = useState22(false);
|
|
7981
|
+
const [expandedGroups, setExpandedGroups] = useState22({});
|
|
7982
|
+
const [activeAdd, setActiveAdd] = useState22(null);
|
|
7983
|
+
useEffect22(() => {
|
|
7761
7984
|
setOpen(false);
|
|
7762
7985
|
setExpandedGroups({});
|
|
7763
7986
|
setActiveAdd(null);
|
|
@@ -7768,7 +7991,7 @@ function NavPinnedSummary() {
|
|
|
7768
7991
|
const item = (value, index2, group) => {
|
|
7769
7992
|
const entry = typeof value === "string" ? { id: group + index2, label: value, kind: group, onSelect: void 0 } : value;
|
|
7770
7993
|
const Icon2 = group === "sources" ? FileText : FileCode2;
|
|
7771
|
-
const contents = /* @__PURE__ */ jsxs5(
|
|
7994
|
+
const contents = /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7772
7995
|
/* @__PURE__ */ jsx23(Icon2, { size: 16, "aria-hidden": "true" }),
|
|
7773
7996
|
/* @__PURE__ */ jsx23("span", { className: "as-nav-activity-item__title", children: entry.label }),
|
|
7774
7997
|
entry.kind ? /* @__PURE__ */ jsx23("small", { children: entry.kind }) : null
|
|
@@ -7847,7 +8070,7 @@ function NavPinnedSummary() {
|
|
|
7847
8070
|
) }),
|
|
7848
8071
|
/* @__PURE__ */ jsx23(Portal22, { children: /* @__PURE__ */ jsx23(Content22, { align: "end", sideOffset: 8, collisionPadding: 12, children: /* @__PURE__ */ jsxs5(NavScope, { className: "as-nav-popover as-nav-summary-popover as-nav-activity-popover", children: [
|
|
7849
8072
|
/* @__PURE__ */ jsx23(Label2, { className: "as-nav-activity-title", children: "Sources & outputs" }),
|
|
7850
|
-
subagents.length ? /* @__PURE__ */ jsxs5(
|
|
8073
|
+
subagents.length ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7851
8074
|
/* @__PURE__ */ jsxs5("section", { className: "as-nav-activity-section", "aria-label": "Subagents", children: [
|
|
7852
8075
|
/* @__PURE__ */ jsxs5("div", { className: "as-nav-activity-section-head", children: [
|
|
7853
8076
|
/* @__PURE__ */ jsx23("span", { children: "Subagents" }),
|
|
@@ -7890,10 +8113,10 @@ function NavShareIcon() {
|
|
|
7890
8113
|
}
|
|
7891
8114
|
function NavConversationActions({ additionalActions = [], mobile = false } = {}) {
|
|
7892
8115
|
const { data } = useNav();
|
|
7893
|
-
const [renaming, setRenaming] =
|
|
7894
|
-
const [deleting, setDeleting] =
|
|
8116
|
+
const [renaming, setRenaming] = useState22(false);
|
|
8117
|
+
const [deleting, setDeleting] = useState22(false);
|
|
7895
8118
|
const conversation = data.conversation;
|
|
7896
|
-
|
|
8119
|
+
useEffect22(() => {
|
|
7897
8120
|
setRenaming(false);
|
|
7898
8121
|
setDeleting(false);
|
|
7899
8122
|
}, [conversation?.id]);
|
|
@@ -7929,7 +8152,7 @@ function NavConversationActions({ additionalActions = [], mobile = false } = {})
|
|
|
7929
8152
|
separatorBefore: false,
|
|
7930
8153
|
label: action.id === "project" ? "Add to project" : action.id === "share-chat" ? "Share" : action.label
|
|
7931
8154
|
})) : actions;
|
|
7932
|
-
return /* @__PURE__ */ jsxs5(
|
|
8155
|
+
return /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7933
8156
|
/* @__PURE__ */ jsx23(NavOverflowMenu, { id: "active-conversation-actions", label: "Conversation options", heading: mobile ? conversation.title : void 0, conversationMobile: mobile, actions: displayedActions }),
|
|
7934
8157
|
data.onRenameConversation ? /* @__PURE__ */ jsx23(RenameDialog, { open: renaming, onOpenChange: setRenaming, title: "Rename conversation", value: conversation.title, onSave: (title) => data.onRenameConversation?.(conversation.id, title) }) : null,
|
|
7935
8158
|
data.onDeleteConversation ? /* @__PURE__ */ jsx23(ConfirmDeleteDialog, { open: deleting, onOpenChange: setDeleting, title: conversation.title, onConfirm: () => data.onDeleteConversation?.(conversation.id) }) : null
|
|
@@ -7953,7 +8176,14 @@ function NavAccountSwitcher({ accounts, activeAccountId, onAccountChange, expand
|
|
|
7953
8176
|
...data.accountActions ?? []
|
|
7954
8177
|
];
|
|
7955
8178
|
return /* @__PURE__ */ jsx23("div", { className: cx("as-nav-account", expanded && "as-nav-account--expanded"), children: /* @__PURE__ */ jsxs5(NavOverflowMenu, { label: account?.name ?? "Account", actions, align: "start", children: [
|
|
7956
|
-
/* @__PURE__ */
|
|
8179
|
+
/* @__PURE__ */ jsxs5("span", { className: "as-nav-avatar", "data-avatar-kind": account?.avatarKind, children: [
|
|
8180
|
+
account?.avatar ? /* @__PURE__ */ jsx23("img", { src: account.avatar, alt: "", referrerPolicy: "no-referrer", onError: (event) => {
|
|
8181
|
+
event.currentTarget.hidden = true;
|
|
8182
|
+
}, onLoad: (event) => {
|
|
8183
|
+
event.currentTarget.hidden = false;
|
|
8184
|
+
} }, account.avatar) : null,
|
|
8185
|
+
/* @__PURE__ */ jsx23("span", { className: "as-nav-avatar-initials", "aria-hidden": "true", children: account?.name?.trim().split(/\s+/).slice(0, 2).map((word) => word[0]?.toUpperCase()).join("") || /* @__PURE__ */ jsx23(User, {}) })
|
|
8186
|
+
] }),
|
|
7957
8187
|
expanded ? /* @__PURE__ */ jsxs5("span", { className: "as-nav-account-copy", children: [
|
|
7958
8188
|
/* @__PURE__ */ jsx23("strong", { children: account?.name ?? "Account" }),
|
|
7959
8189
|
account?.plan ? /* @__PURE__ */ jsx23("small", { children: account.plan }) : null
|
|
@@ -7975,7 +8205,7 @@ function NavTopbar({
|
|
|
7975
8205
|
showNavigationTrigger = true,
|
|
7976
8206
|
showAccount = false
|
|
7977
8207
|
}) {
|
|
7978
|
-
return /* @__PURE__ */ jsx23(NavScope, { className: cx("as-nav-topbar", startup && "as-nav-topbar--startup", className), children: children ?? /* @__PURE__ */ jsxs5(
|
|
8208
|
+
return /* @__PURE__ */ jsx23(NavScope, { className: cx("as-nav-topbar", startup && "as-nav-topbar--startup", className), children: children ?? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7979
8209
|
/* @__PURE__ */ jsxs5("div", { className: "as-nav-topbar-leading", children: [
|
|
7980
8210
|
showNavigationTrigger ? /* @__PURE__ */ jsx23(NavTrigger, { "aria-label": "Toggle sidebar" }) : null,
|
|
7981
8211
|
!startup ? contextSlot ?? /* @__PURE__ */ jsx23(NavProjectContext, {}) : null
|
|
@@ -7983,7 +8213,7 @@ function NavTopbar({
|
|
|
7983
8213
|
startup ? /* @__PURE__ */ jsx23("div", { className: "as-nav-topbar-center", children: modeSlot ?? /* @__PURE__ */ jsx23(NavModeSwitcher, {}) }) : modeSlot,
|
|
7984
8214
|
/* @__PURE__ */ jsx23(NavTopbarSpacer, {}),
|
|
7985
8215
|
/* @__PURE__ */ jsxs5("div", { className: "as-nav-topbar-actions", children: [
|
|
7986
|
-
!startup ? /* @__PURE__ */ jsxs5(
|
|
8216
|
+
!startup ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7987
8217
|
/* @__PURE__ */ jsx23(NavConversationActions, {}),
|
|
7988
8218
|
/* @__PURE__ */ jsx23(NavShareButton, {}),
|
|
7989
8219
|
/* @__PURE__ */ jsx23(NavPinnedSummary, {})
|
|
@@ -7995,8 +8225,8 @@ function NavTopbar({
|
|
|
7995
8225
|
}
|
|
7996
8226
|
function RenameDialog({ open, onOpenChange, title, value, onSave }) {
|
|
7997
8227
|
const { theme } = useNav();
|
|
7998
|
-
const [draft, setDraft] =
|
|
7999
|
-
|
|
8228
|
+
const [draft, setDraft] = useState22(value);
|
|
8229
|
+
useEffect22(() => {
|
|
8000
8230
|
if (open) setDraft(value);
|
|
8001
8231
|
}, [open, value]);
|
|
8002
8232
|
const style = useNavStyle();
|
|
@@ -8048,7 +8278,7 @@ function ConfirmDeleteDialog({ open, onOpenChange, title, onConfirm }) {
|
|
|
8048
8278
|
}
|
|
8049
8279
|
function ConversationRow({ item }) {
|
|
8050
8280
|
const { data, close, isMobile } = useNav();
|
|
8051
|
-
const [rename, setRename] =
|
|
8281
|
+
const [rename, setRename] = useState22(false);
|
|
8052
8282
|
const selected = item.id === data.conversation?.id;
|
|
8053
8283
|
const actions = data.getConversationActions?.(item) ?? [
|
|
8054
8284
|
...data.onPinConversation ? [{ id: "pin", label: item.pinned ? "Unpin chat" : "Pin chat", icon: /* @__PURE__ */ jsx23(Pin, {}), onSelect: () => data.onPinConversation?.(item.id) }] : [],
|
|
@@ -8094,10 +8324,10 @@ function PinnedResourceRow({ item }) {
|
|
|
8094
8324
|
}
|
|
8095
8325
|
function ProjectRow({ item, threads = [] }) {
|
|
8096
8326
|
const { data, close, isMobile } = useNav();
|
|
8097
|
-
const [rename, setRename] =
|
|
8327
|
+
const [rename, setRename] = useState22(false);
|
|
8098
8328
|
const selected = item.id === data.project?.id;
|
|
8099
|
-
const [expanded, setExpanded] =
|
|
8100
|
-
|
|
8329
|
+
const [expanded, setExpanded] = useState22(item.id === data.conversation?.projectId);
|
|
8330
|
+
useEffect22(() => {
|
|
8101
8331
|
if (item.id === data.conversation?.projectId) setExpanded(true);
|
|
8102
8332
|
}, [item.id, data.conversation?.projectId]);
|
|
8103
8333
|
const actions = data.getProjectActions?.(item) ?? [
|
|
@@ -8153,8 +8383,8 @@ function NavIconAction({ label, children, ...props }) {
|
|
|
8153
8383
|
function DestinationRow({ item, depth = 0 }) {
|
|
8154
8384
|
const { data, close, isMobile, open, setOpen, storageKey } = useNav();
|
|
8155
8385
|
const active = navDestinationActive(item);
|
|
8156
|
-
const [expanded, setExpanded] =
|
|
8157
|
-
|
|
8386
|
+
const [expanded, setExpanded] = useState22(active);
|
|
8387
|
+
useEffect22(() => {
|
|
8158
8388
|
if (active) {
|
|
8159
8389
|
setExpanded(true);
|
|
8160
8390
|
return;
|
|
@@ -8236,9 +8466,9 @@ function DestinationRow({ item, depth = 0 }) {
|
|
|
8236
8466
|
}
|
|
8237
8467
|
function HistoryCollection({ id, title, items, empty, searching = false, onOpen }) {
|
|
8238
8468
|
const { storageKey } = useNav();
|
|
8239
|
-
const [expanded, setExpanded] =
|
|
8240
|
-
const [more, setMore] =
|
|
8241
|
-
|
|
8469
|
+
const [expanded, setExpanded] = useState22(id === "projects");
|
|
8470
|
+
const [more, setMore] = useState22(false);
|
|
8471
|
+
useEffect22(() => {
|
|
8242
8472
|
if (!storageKey) return;
|
|
8243
8473
|
try {
|
|
8244
8474
|
setExpanded(JSON.parse(localStorage.getItem(storageKey + ":collections-v2") || "{}")[id] ?? id === "projects");
|
|
@@ -8263,18 +8493,46 @@ function HistoryCollection({ id, title, items, empty, searching = false, onOpen
|
|
|
8263
8493
|
] }),
|
|
8264
8494
|
onOpen ? /* @__PURE__ */ jsx23("button", { type: "button", className: "as-nav-collection-open", "aria-label": "Open " + title, title: "Open " + title, onClick: onOpen, children: /* @__PURE__ */ jsx23(FolderOpen, { "aria-hidden": "true" }) }) : null
|
|
8265
8495
|
] }),
|
|
8266
|
-
shown ? /* @__PURE__ */ jsxs5(
|
|
8496
|
+
shown ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
8267
8497
|
items.length ? more || searching ? items : items.slice(0, id === "recent" ? 20 : 6) : /* @__PURE__ */ jsx23("p", { className: "as-nav-empty", children: empty }),
|
|
8268
8498
|
items.length > (id === "recent" ? 20 : 6) && !searching ? /* @__PURE__ */ jsx23("button", { type: "button", className: "as-nav-collection-more", onClick: () => setMore((value) => !value), children: more ? "Show less" : "Show more" }) : null
|
|
8269
8499
|
] }) : null
|
|
8270
8500
|
] });
|
|
8271
8501
|
}
|
|
8502
|
+
function NavProductSwitcher() {
|
|
8503
|
+
const { data, isMobile, close, theme } = useNav();
|
|
8504
|
+
const style = useNavStyle();
|
|
8505
|
+
const switcher = data.productSwitcher;
|
|
8506
|
+
if (!switcher) return null;
|
|
8507
|
+
const active = switcher.options.find((option) => option.id === switcher.active);
|
|
8508
|
+
const label = active?.label ?? data.brand?.name ?? "Application";
|
|
8509
|
+
return /* @__PURE__ */ jsxs5(Root22, { modal: false, children: [
|
|
8510
|
+
/* @__PURE__ */ jsx23(Trigger, { asChild: true, children: /* @__PURE__ */ jsxs5("button", { type: "button", className: "as-nav-product-switcher-trigger", "aria-label": "Switch app. Current app: " + label, children: [
|
|
8511
|
+
/* @__PURE__ */ jsx23("span", { children: label }),
|
|
8512
|
+
/* @__PURE__ */ jsx23(ChevronDown, { "aria-hidden": "true" })
|
|
8513
|
+
] }) }),
|
|
8514
|
+
/* @__PURE__ */ jsx23(Portal22, { children: /* @__PURE__ */ jsxs5(Content22, { "data-nav-theme": theme, style, className: "as-nav-scope as-nav-popover as-nav-product-menu", side: "bottom", align: "start", sideOffset: 6, collisionPadding: 12, children: [
|
|
8515
|
+
/* @__PURE__ */ jsx23(Label2, { className: "as-nav-menu-heading", children: "Switch app" }),
|
|
8516
|
+
switcher.options.map((option) => /* @__PURE__ */ jsxs5(Item22, { disabled: option.disabled, className: "as-nav-menu-row as-nav-product-option", onSelect: () => {
|
|
8517
|
+
if (isMobile) close();
|
|
8518
|
+
switcher.onSelect(option.id);
|
|
8519
|
+
}, children: [
|
|
8520
|
+
option.logo ? /* @__PURE__ */ jsx23("span", { className: "as-nav-product-option-mark", children: /* @__PURE__ */ jsx23("img", { src: theme === "light" && option.lightLogo ? option.lightLogo : option.logo, className: theme === "light" && !option.lightLogo ? "as-nav-product-option-invert" : void 0, alt: "" }) }) : null,
|
|
8521
|
+
/* @__PURE__ */ jsxs5("span", { className: "as-nav-product-option-copy", children: [
|
|
8522
|
+
/* @__PURE__ */ jsx23("strong", { children: option.label }),
|
|
8523
|
+
option.description ? /* @__PURE__ */ jsx23("small", { children: option.description }) : null
|
|
8524
|
+
] }),
|
|
8525
|
+
option.id === switcher.active ? /* @__PURE__ */ jsx23(Check, { "aria-label": "Selected", size: 16 }) : null
|
|
8526
|
+
] }, option.id))
|
|
8527
|
+
] }) })
|
|
8528
|
+
] });
|
|
8529
|
+
}
|
|
8272
8530
|
function SidenavContents() {
|
|
8273
8531
|
const { data, close, isMobile, open, setOpen } = useNav();
|
|
8274
|
-
const [query, setQuery] =
|
|
8275
|
-
const [searchOpen, setSearchOpen] =
|
|
8532
|
+
const [query, setQuery] = useState22("");
|
|
8533
|
+
const [searchOpen, setSearchOpen] = useState22(false);
|
|
8276
8534
|
const searchRef = useRef18(null);
|
|
8277
|
-
|
|
8535
|
+
useEffect22(() => {
|
|
8278
8536
|
if (searchOpen) searchRef.current?.focus();
|
|
8279
8537
|
}, [searchOpen]);
|
|
8280
8538
|
const normalized = query.trim().toLowerCase();
|
|
@@ -8293,10 +8551,10 @@ function SidenavContents() {
|
|
|
8293
8551
|
/* @__PURE__ */ jsx23("span", { children: "New chat" })
|
|
8294
8552
|
] }) : null;
|
|
8295
8553
|
const insertAfter = data.destinations?.some((item) => item.id === data.newConversationAfter) ? data.newConversationAfter : void 0;
|
|
8296
|
-
return /* @__PURE__ */ jsxs5(
|
|
8554
|
+
return /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
8297
8555
|
data.showSidebarHeader !== false || isMobile ? /* @__PURE__ */ jsxs5("div", { className: "as-nav-sidenav-head", children: [
|
|
8298
8556
|
/* @__PURE__ */ jsx23(NavTopbarLogo, { toggle: true }),
|
|
8299
|
-
/* @__PURE__ */ jsx23("span", { className: "as-nav-current-app", title: data.brand?.name, children: data.brand?.name ?? "InnerAnimalMedia" }),
|
|
8557
|
+
data.productSwitcher ? /* @__PURE__ */ jsx23(NavProductSwitcher, {}) : data.sidebarBrandSlot ?? /* @__PURE__ */ jsx23("span", { className: "as-nav-current-app", title: data.brand?.name, children: data.brand?.name ?? "InnerAnimalMedia" }),
|
|
8300
8558
|
data.showHistory !== false ? /* @__PURE__ */ jsx23(
|
|
8301
8559
|
"button",
|
|
8302
8560
|
{
|
|
@@ -8336,7 +8594,7 @@ function SidenavContents() {
|
|
|
8336
8594
|
] }) }) : null,
|
|
8337
8595
|
/* @__PURE__ */ jsxs5("div", { className: "as-nav-destinations", children: [
|
|
8338
8596
|
!insertAfter ? newConversation : null,
|
|
8339
|
-
(data.destinations ?? []).map((item) => /* @__PURE__ */ jsxs5(
|
|
8597
|
+
(data.destinations ?? []).map((item) => /* @__PURE__ */ jsxs5(Fragment8, { children: [
|
|
8340
8598
|
/* @__PURE__ */ jsx23(DestinationRow, { item }),
|
|
8341
8599
|
item.id === insertAfter ? newConversation : null
|
|
8342
8600
|
] }, item.id))
|
|
@@ -8386,11 +8644,157 @@ function SidenavContents() {
|
|
|
8386
8644
|
/* @__PURE__ */ jsx23("div", { className: "as-nav-sidenav-foot", children: /* @__PURE__ */ jsx23(NavAccountSwitcher, { expanded: true }) })
|
|
8387
8645
|
] });
|
|
8388
8646
|
}
|
|
8647
|
+
function GlassMobileContents() {
|
|
8648
|
+
const { data, close, theme } = useNav();
|
|
8649
|
+
const agentProduct = data.productSwitcher?.options.find((item) => item.id === "agentsam");
|
|
8650
|
+
const agentLogo = theme === "light" ? agentProduct?.lightLogo ?? agentProduct?.logo : agentProduct?.logo;
|
|
8651
|
+
const agentIcon = agentLogo ? /* @__PURE__ */ jsx23("img", { src: agentLogo, alt: "" }) : /* @__PURE__ */ jsx23(MessageSquare, {});
|
|
8652
|
+
const section = data.mobileNavigationSection ?? "history";
|
|
8653
|
+
const setSection = (next) => data.onMobileNavigationSectionChange?.(next);
|
|
8654
|
+
const [query, setQuery] = useState22("");
|
|
8655
|
+
const [searchOpen, setSearchOpen] = useState22(false);
|
|
8656
|
+
const [showAll, setShowAll] = useState22(false);
|
|
8657
|
+
const [group, setGroup] = useState22(null);
|
|
8658
|
+
const searchRef = useRef18(null);
|
|
8659
|
+
useEffect22(() => {
|
|
8660
|
+
if (searchOpen) searchRef.current?.focus();
|
|
8661
|
+
}, [searchOpen]);
|
|
8662
|
+
const go = (href) => {
|
|
8663
|
+
close();
|
|
8664
|
+
data.onNavigate?.(href);
|
|
8665
|
+
};
|
|
8666
|
+
const agent = () => {
|
|
8667
|
+
close();
|
|
8668
|
+
if (data.productSwitcher) data.productSwitcher.onSelect("agentsam");
|
|
8669
|
+
else data.onNavigate?.("/admin/agentsam");
|
|
8670
|
+
};
|
|
8671
|
+
const settings = () => {
|
|
8672
|
+
close();
|
|
8673
|
+
data.accountActions?.find((action) => action.id === "settings")?.onSelect?.();
|
|
8674
|
+
};
|
|
8675
|
+
const show = (next) => {
|
|
8676
|
+
setGroup(null);
|
|
8677
|
+
setQuery("");
|
|
8678
|
+
setSearchOpen(false);
|
|
8679
|
+
setSection(next);
|
|
8680
|
+
};
|
|
8681
|
+
const matches = (label) => label.toLowerCase().includes(query.trim().toLowerCase());
|
|
8682
|
+
const projects = (data.projects ?? []).filter((item) => matches(item.name));
|
|
8683
|
+
const chats = (data.conversations ?? []).filter((item) => matches(item.title)).sort((a, b) => (b.updatedAt ?? 0) - (a.updatedAt ?? 0));
|
|
8684
|
+
const pinned = [...projects.filter((item) => item.pinned).map((item) => /* @__PURE__ */ jsx23(ProjectRow, { item, threads: chats.filter((chat) => chat.projectId === item.id && !chat.pinned) }, item.id)), ...chats.filter((item) => item.pinned).map((item) => /* @__PURE__ */ jsx23(ConversationRow, { item }, item.id)), ...(data.pinnedResources ?? []).map((item) => /* @__PURE__ */ jsx23(PinnedResourceRow, { item }, item.id))];
|
|
8685
|
+
const allDestinations = data.destinations ?? [];
|
|
8686
|
+
const tileMatches = (item) => matches(item.label) || Boolean(item.children?.some(tileMatches));
|
|
8687
|
+
const findDestination = (items, id) => {
|
|
8688
|
+
for (const item of items) {
|
|
8689
|
+
if (item.id === id) return item;
|
|
8690
|
+
const child = item.children && findDestination(item.children, id);
|
|
8691
|
+
if (child) return child;
|
|
8692
|
+
}
|
|
8693
|
+
};
|
|
8694
|
+
const featured = ["projects", "images", "files", "code", "primetech"].map((id) => findDestination(allDestinations, id)).filter((item) => Boolean(item));
|
|
8695
|
+
const shortcuts = [...featured, ...data.mobileMoreDestinations ?? []];
|
|
8696
|
+
const rootTiles = [...shortcuts, ...allDestinations.filter((item) => !shortcuts.some((feature) => feature.id === item.id))];
|
|
8697
|
+
const tiles = (group?.children ?? rootTiles).filter((item) => !["home", "agentsam", "navigation-retry"].includes(item.id) && tileMatches(item));
|
|
8698
|
+
const selectTile = (item) => {
|
|
8699
|
+
if (item.children?.length) {
|
|
8700
|
+
setGroup(item);
|
|
8701
|
+
setQuery("");
|
|
8702
|
+
return;
|
|
8703
|
+
}
|
|
8704
|
+
if (item.onSelect) {
|
|
8705
|
+
close();
|
|
8706
|
+
item.onSelect();
|
|
8707
|
+
} else if (item.href) go(item.href);
|
|
8708
|
+
};
|
|
8709
|
+
return /* @__PURE__ */ jsxs5("div", { className: "as-nav-glass-mobile", children: [
|
|
8710
|
+
/* @__PURE__ */ jsxs5("header", { className: "as-nav-glass-header", children: [
|
|
8711
|
+
/* @__PURE__ */ jsx23("button", { className: "as-nav-glass-icon", type: "button", "aria-label": group ? "Back to More" : "Close navigation", onClick: () => group ? setGroup(null) : close(), children: group ? /* @__PURE__ */ jsx23(ChevronRight, { className: "as-nav-glass-back" }) : /* @__PURE__ */ jsx23(X, {}) }),
|
|
8712
|
+
/* @__PURE__ */ jsx23("strong", { children: section === "more" ? group?.label ?? "More" : "" }),
|
|
8713
|
+
section === "more" ? /* @__PURE__ */ jsx23("button", { className: "as-nav-glass-icon", type: "button", "aria-label": "Settings", onClick: settings, children: /* @__PURE__ */ jsx23(Settings, {}) }) : /* @__PURE__ */ jsx23("span", { className: "as-nav-glass-header-spacer" })
|
|
8714
|
+
] }),
|
|
8715
|
+
/* @__PURE__ */ jsx23("div", { className: "as-nav-glass-scroll", children: section === "history" ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
8716
|
+
/* @__PURE__ */ jsxs5("div", { className: "as-nav-glass-primary", children: [
|
|
8717
|
+
/* @__PURE__ */ jsxs5("button", { type: "button", onClick: () => go("/admin/home"), children: [
|
|
8718
|
+
/* @__PURE__ */ jsx23(House, {}),
|
|
8719
|
+
"Home"
|
|
8720
|
+
] }),
|
|
8721
|
+
/* @__PURE__ */ jsxs5("button", { type: "button", onClick: agent, children: [
|
|
8722
|
+
agentIcon,
|
|
8723
|
+
"AgentSam"
|
|
8724
|
+
] }),
|
|
8725
|
+
/* @__PURE__ */ jsxs5("button", { type: "button", onClick: () => show("more"), children: [
|
|
8726
|
+
/* @__PURE__ */ jsx23(NavMoreGlyph, {}),
|
|
8727
|
+
"More"
|
|
8728
|
+
] })
|
|
8729
|
+
] }),
|
|
8730
|
+
data.historyStatus === "error" && data.onRetryHistory ? /* @__PURE__ */ jsx23("button", { className: "as-nav-collection-more", onClick: data.onRetryHistory, children: "Retry history" }) : null,
|
|
8731
|
+
/* @__PURE__ */ jsxs5("section", { className: "as-nav-glass-history", children: [
|
|
8732
|
+
/* @__PURE__ */ jsx23("h2", { children: "Pinned" }),
|
|
8733
|
+
pinned.length ? pinned : /* @__PURE__ */ jsx23("p", { className: "as-nav-empty", children: "Pin projects and chats to keep them here." }),
|
|
8734
|
+
showAll ? projects.filter((item) => !item.pinned).map((item) => /* @__PURE__ */ jsx23(ProjectRow, { item, threads: chats.filter((chat) => chat.projectId === item.id) }, item.id)) : null,
|
|
8735
|
+
/* @__PURE__ */ jsxs5("button", { type: "button", className: "as-nav-glass-see-all", onClick: () => setShowAll((v) => !v), "aria-expanded": showAll, children: [
|
|
8736
|
+
/* @__PURE__ */ jsx23(ChevronDown, {}),
|
|
8737
|
+
showAll ? "See less" : "See all"
|
|
8738
|
+
] })
|
|
8739
|
+
] }),
|
|
8740
|
+
/* @__PURE__ */ jsxs5("section", { className: "as-nav-glass-history", children: [
|
|
8741
|
+
/* @__PURE__ */ jsx23("h2", { children: "Chats" }),
|
|
8742
|
+
chats.filter((item) => !item.pinned).slice(0, query ? void 0 : 30).map((item) => /* @__PURE__ */ jsx23(ConversationRow, { item }, item.id)),
|
|
8743
|
+
data.onNavigate ? /* @__PURE__ */ jsx23("button", { className: "as-nav-glass-see-all", type: "button", onClick: () => go("/chats"), children: "All chats" }) : null
|
|
8744
|
+
] })
|
|
8745
|
+
] }) : /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
8746
|
+
group?.href || group?.onSelect ? /* @__PURE__ */ jsxs5("button", { className: "as-nav-glass-see-all", type: "button", onClick: () => {
|
|
8747
|
+
if (group.onSelect) {
|
|
8748
|
+
close();
|
|
8749
|
+
group.onSelect();
|
|
8750
|
+
} else if (group.href) go(group.href);
|
|
8751
|
+
}, children: [
|
|
8752
|
+
"Open ",
|
|
8753
|
+
group.label
|
|
8754
|
+
] }) : null,
|
|
8755
|
+
group?.action ? /* @__PURE__ */ jsx23("button", { className: "as-nav-glass-see-all", type: "button", disabled: group.action.disabled, onClick: () => {
|
|
8756
|
+
close();
|
|
8757
|
+
group.action?.onSelect();
|
|
8758
|
+
}, children: group.action.label }) : null,
|
|
8759
|
+
/* @__PURE__ */ jsx23("div", { className: "as-nav-glass-grid", children: tiles.map((item) => /* @__PURE__ */ jsxs5("button", { type: "button", onClick: () => selectTile(item), children: [
|
|
8760
|
+
/* @__PURE__ */ jsx23("strong", { children: item.label }),
|
|
8761
|
+
/* @__PURE__ */ jsx23("span", { children: item.icon ?? /* @__PURE__ */ jsx23(Folder, {}) })
|
|
8762
|
+
] }, item.id)) }),
|
|
8763
|
+
!group ? /* @__PURE__ */ jsx23("div", { className: "as-nav-glass-account", children: /* @__PURE__ */ jsx23(NavAccountSwitcher, { expanded: true }) }) : null
|
|
8764
|
+
] }) }),
|
|
8765
|
+
/* @__PURE__ */ jsxs5("div", { className: "as-nav-glass-bottom", children: [
|
|
8766
|
+
searchOpen || section === "more" ? /* @__PURE__ */ jsxs5("label", { className: "as-nav-glass-search", children: [
|
|
8767
|
+
/* @__PURE__ */ jsx23(Search, {}),
|
|
8768
|
+
/* @__PURE__ */ jsx23("input", { ref: searchRef, "aria-label": "Search navigation", placeholder: section === "more" ? "Search apps" : "Search chats and projects", value: query, onChange: (e) => setQuery(e.target.value) })
|
|
8769
|
+
] }) : null,
|
|
8770
|
+
section === "history" ? /* @__PURE__ */ jsxs5("div", { className: "as-nav-glass-actions", children: [
|
|
8771
|
+
/* @__PURE__ */ jsxs5("button", { type: "button", className: "as-nav-glass-new", onClick: () => {
|
|
8772
|
+
close();
|
|
8773
|
+
data.onCreateConversation?.();
|
|
8774
|
+
}, children: [
|
|
8775
|
+
/* @__PURE__ */ jsx23(Pencil, {}),
|
|
8776
|
+
"New"
|
|
8777
|
+
] }),
|
|
8778
|
+
/* @__PURE__ */ jsxs5("div", { className: "as-nav-glass-tools", children: [
|
|
8779
|
+
/* @__PURE__ */ jsx23("button", { type: "button", "aria-label": "Search", onClick: () => {
|
|
8780
|
+
setSearchOpen((v) => !v);
|
|
8781
|
+
setQuery("");
|
|
8782
|
+
}, children: /* @__PURE__ */ jsx23(Search, {}) }),
|
|
8783
|
+
/* @__PURE__ */ jsx23("button", { type: "button", "aria-label": "Settings", onClick: settings, children: /* @__PURE__ */ jsx23(Settings, {}) })
|
|
8784
|
+
] })
|
|
8785
|
+
] }) : /* @__PURE__ */ jsx23(NavLaunchDock, { label: "Primary mobile navigation", items: [
|
|
8786
|
+
{ id: "home", label: "Home", icon: /* @__PURE__ */ jsx23(House, {}), onSelect: () => go("/admin/home") },
|
|
8787
|
+
{ id: "agentsam", label: "AgentSam", icon: agentIcon, onSelect: agent },
|
|
8788
|
+
{ id: "more", label: "More", icon: /* @__PURE__ */ jsx23(NavMoreGlyph, {}), active: true, onSelect: () => show("more") }
|
|
8789
|
+
] })
|
|
8790
|
+
] })
|
|
8791
|
+
] });
|
|
8792
|
+
}
|
|
8389
8793
|
function NavSidenav() {
|
|
8390
8794
|
const { data, open, isMobile, isPeeking, peekable, setPeeking, setOpen, toggle, menu, resizable, width, setWidth } = useNav();
|
|
8391
8795
|
const mobileDrawerRef = useRef18(null);
|
|
8392
8796
|
const wasMobileOpen = useRef18(false);
|
|
8393
|
-
const [hint, setHint] =
|
|
8797
|
+
const [hint, setHint] = useState22(null);
|
|
8394
8798
|
const hintTimer = useRef18(void 0);
|
|
8395
8799
|
const hintRow = useRef18(null);
|
|
8396
8800
|
const hideHint = () => {
|
|
@@ -8430,11 +8834,11 @@ function NavSidenav() {
|
|
|
8430
8834
|
setHint({ label, top: Math.max(8, Math.min(window.innerHeight - 44, rect.top + (rect.height - 32) / 2)), left: rect.right + 10 });
|
|
8431
8835
|
}, 160);
|
|
8432
8836
|
};
|
|
8433
|
-
|
|
8837
|
+
useEffect22(() => {
|
|
8434
8838
|
hideHint();
|
|
8435
8839
|
return () => clearTimeout(hintTimer.current);
|
|
8436
8840
|
}, [open, isMobile, menu]);
|
|
8437
|
-
|
|
8841
|
+
useEffect22(() => {
|
|
8438
8842
|
const handleNavigationShortcut = (event) => {
|
|
8439
8843
|
if ((event.metaKey || event.ctrlKey) && event.shiftKey && !event.altKey && event.key.toLowerCase() === "s") {
|
|
8440
8844
|
event.preventDefault();
|
|
@@ -8444,7 +8848,7 @@ function NavSidenav() {
|
|
|
8444
8848
|
window.addEventListener("keydown", handleNavigationShortcut);
|
|
8445
8849
|
return () => window.removeEventListener("keydown", handleNavigationShortcut);
|
|
8446
8850
|
}, [toggle]);
|
|
8447
|
-
|
|
8851
|
+
useEffect22(() => {
|
|
8448
8852
|
const dismiss = () => hideHint();
|
|
8449
8853
|
window.addEventListener("agentsam:navigate", dismiss);
|
|
8450
8854
|
window.addEventListener("popstate", dismiss);
|
|
@@ -8461,7 +8865,7 @@ function NavSidenav() {
|
|
|
8461
8865
|
document.removeEventListener("visibilitychange", dismiss);
|
|
8462
8866
|
};
|
|
8463
8867
|
}, []);
|
|
8464
|
-
|
|
8868
|
+
useEffect22(() => {
|
|
8465
8869
|
if (!isMobile) {
|
|
8466
8870
|
wasMobileOpen.current = false;
|
|
8467
8871
|
return;
|
|
@@ -8476,13 +8880,13 @@ function NavSidenav() {
|
|
|
8476
8880
|
document.querySelector("[data-shared-nav-toggle]")?.focus();
|
|
8477
8881
|
}
|
|
8478
8882
|
}, [isMobile, open]);
|
|
8479
|
-
if (isMobile && data.mobileNavigationPresentation === "immersive") return /* @__PURE__ */ jsx23(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsx23(DialogPortal, { children: /* @__PURE__ */ jsxs5(NavScope, { className: "as-nav-mobile-immersive-portal", children: [
|
|
8883
|
+
if (isMobile && (data.mobileNavigationPresentation === "immersive" || data.mobileNavigationPresentation === "glass")) return /* @__PURE__ */ jsx23(Dialog, { open, onOpenChange: setOpen, children: /* @__PURE__ */ jsx23(DialogPortal, { children: /* @__PURE__ */ jsxs5(NavScope, { className: "as-nav-mobile-immersive-portal", children: [
|
|
8480
8884
|
/* @__PURE__ */ jsx23(DialogOverlay, { className: "as-nav-mobile-immersive-overlay" }),
|
|
8481
8885
|
/* @__PURE__ */ jsxs5(DialogContent, { ref: (element) => {
|
|
8482
8886
|
mobileDrawerRef.current = element;
|
|
8483
|
-
}, className: "as-nav-mobile-immersive-drawer", children: [
|
|
8887
|
+
}, "aria-describedby": void 0, className: cx("as-nav-mobile-immersive-drawer", data.mobileNavigationPresentation === "glass" && "as-nav-glass-drawer"), children: [
|
|
8484
8888
|
/* @__PURE__ */ jsx23(DialogTitle, { className: "as-nav-sr-only", children: "Application navigation" }),
|
|
8485
|
-
/* @__PURE__ */ jsx23(SidenavContents, {})
|
|
8889
|
+
data.mobileNavigationPresentation === "glass" ? /* @__PURE__ */ jsx23(GlassMobileContents, {}) : /* @__PURE__ */ jsx23(SidenavContents, {})
|
|
8486
8890
|
] })
|
|
8487
8891
|
] }) }) });
|
|
8488
8892
|
if (isMobile) return /* @__PURE__ */ jsx23(NavScope, { className: "as-nav-mobile-push-shell", "data-open": open, children: /* @__PURE__ */ jsx23(
|
|
@@ -8561,7 +8965,7 @@ function NavSidenav() {
|
|
|
8561
8965
|
}
|
|
8562
8966
|
|
|
8563
8967
|
// src/Nav.tsx
|
|
8564
|
-
import { Fragment as
|
|
8968
|
+
import { Fragment as Fragment10, jsx as jsx24, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
8565
8969
|
function NavRoot({ className, children, ...props }) {
|
|
8566
8970
|
const { close, isMobile, isPeeking, open, peekable, resizable, setPeeking, setWidth, width } = useNav();
|
|
8567
8971
|
const startResize = useCallback15((event) => {
|
|
@@ -8577,7 +8981,7 @@ function NavRoot({ className, children, ...props }) {
|
|
|
8577
8981
|
window.addEventListener("pointermove", onPointerMove);
|
|
8578
8982
|
window.addEventListener("pointerup", stop, { once: true });
|
|
8579
8983
|
}, [isMobile, setWidth, width]);
|
|
8580
|
-
return /* @__PURE__ */ jsxs6(
|
|
8984
|
+
return /* @__PURE__ */ jsxs6(Fragment10, { children: [
|
|
8581
8985
|
isMobile && open ? /* @__PURE__ */ jsx24("button", { type: "button", className: "agentsam-nav__backdrop", "aria-label": "Close navigation", onClick: close }) : null,
|
|
8582
8986
|
/* @__PURE__ */ jsxs6(
|
|
8583
8987
|
"aside",
|
|
@@ -8638,7 +9042,7 @@ var Nav = Object.assign(NavRoot, {
|
|
|
8638
9042
|
// src/browser.tsx
|
|
8639
9043
|
import { jsx as jsx25, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
8640
9044
|
function navIcon(name) {
|
|
8641
|
-
const icons = { home: House, orders: ShoppingBag, products: Package, customers: Users, growth: TrendingUp, discounts: Tag, content: FileText, analytics: ChartNoAxesCombined, store: Store, "online-store": Store, audience: Mail, mail: Mail, projects: Folder, library: Library, tickets: Ticket, agentsam: Bot, chat: Bot, cad: Box, "cad-creator": Box, moviemode: Clapperboard, settings: Settings, database: Database, terminal: Terminal, cli: Terminal, browser: Globe, browse: Globe, apps: Puzzle, integrations: Link, search: Search, appearance: Palette, help: LifeBuoy, logout: LogOut, dashboard: LayoutDashboard, notifications: Bell, files: Code, media: Image, billing: CreditCard };
|
|
9045
|
+
const icons = { home: House, orders: ShoppingBag, products: Package, customers: Users, growth: TrendingUp, discounts: Tag, content: FileText, analytics: ChartNoAxesCombined, store: Store, "online-store": Store, audience: Mail, mail: Mail, projects: Folder, library: Library, tickets: Ticket, agentsam: Bot, chat: Bot, cad: Box, "cad-creator": Box, moviemode: Clapperboard, settings: Settings, database: Database, terminal: Terminal, cli: Terminal, browser: Globe, browse: Globe, apps: Puzzle, integrations: Link, search: Search, appearance: Palette, help: LifeBuoy, logout: LogOut, dashboard: LayoutDashboard, notifications: Bell, files: Code, media: Image, billing: CreditCard, user: User, check: Check };
|
|
8642
9046
|
return createElement8(icons[name] ?? Puzzle, { "aria-hidden": true });
|
|
8643
9047
|
}
|
|
8644
9048
|
function mountNav(options2) {
|
|
@@ -8655,7 +9059,7 @@ function mountNav(options2) {
|
|
|
8655
9059
|
let controls;
|
|
8656
9060
|
function StateBridge() {
|
|
8657
9061
|
const nav = useNav();
|
|
8658
|
-
|
|
9062
|
+
useEffect23(() => {
|
|
8659
9063
|
controls = { toggle: nav.toggle, setOpen: nav.setOpen };
|
|
8660
9064
|
current.onStateChange?.({ open: nav.open, isMobile: nav.isMobile, width: nav.width });
|
|
8661
9065
|
}, [nav.toggle, nav.setOpen, nav.open, nav.isMobile, nav.width]);
|
|
@@ -8765,6 +9169,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
|
8765
9169
|
lucide-react/dist/esm/Icon.js:
|
|
8766
9170
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
8767
9171
|
lucide-react/dist/esm/icons/archive.js:
|
|
9172
|
+
lucide-react/dist/esm/icons/arrow-left.js:
|
|
8768
9173
|
lucide-react/dist/esm/icons/bell.js:
|
|
8769
9174
|
lucide-react/dist/esm/icons/bot.js:
|
|
8770
9175
|
lucide-react/dist/esm/icons/box.js:
|
|
@@ -8778,6 +9183,7 @@ lucide-react/dist/esm/icons/code.js:
|
|
|
8778
9183
|
lucide-react/dist/esm/icons/credit-card.js:
|
|
8779
9184
|
lucide-react/dist/esm/icons/database.js:
|
|
8780
9185
|
lucide-react/dist/esm/icons/ellipsis.js:
|
|
9186
|
+
lucide-react/dist/esm/icons/external-link.js:
|
|
8781
9187
|
lucide-react/dist/esm/icons/file-code-2.js:
|
|
8782
9188
|
lucide-react/dist/esm/icons/file-image.js:
|
|
8783
9189
|
lucide-react/dist/esm/icons/file-text.js:
|
|
@@ -8797,6 +9203,7 @@ lucide-react/dist/esm/icons/link.js:
|
|
|
8797
9203
|
lucide-react/dist/esm/icons/loader-circle.js:
|
|
8798
9204
|
lucide-react/dist/esm/icons/log-out.js:
|
|
8799
9205
|
lucide-react/dist/esm/icons/mail.js:
|
|
9206
|
+
lucide-react/dist/esm/icons/message-square.js:
|
|
8800
9207
|
lucide-react/dist/esm/icons/package.js:
|
|
8801
9208
|
lucide-react/dist/esm/icons/palette.js:
|
|
8802
9209
|
lucide-react/dist/esm/icons/panel-left.js:
|
|
@@ -8805,6 +9212,7 @@ lucide-react/dist/esm/icons/pencil.js:
|
|
|
8805
9212
|
lucide-react/dist/esm/icons/pin.js:
|
|
8806
9213
|
lucide-react/dist/esm/icons/plus.js:
|
|
8807
9214
|
lucide-react/dist/esm/icons/puzzle.js:
|
|
9215
|
+
lucide-react/dist/esm/icons/refresh-cw.js:
|
|
8808
9216
|
lucide-react/dist/esm/icons/search.js:
|
|
8809
9217
|
lucide-react/dist/esm/icons/settings.js:
|
|
8810
9218
|
lucide-react/dist/esm/icons/shopping-bag.js:
|