@inneranimalmedia/agentsam-sdk 2.6.17 → 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/AGENTSAM.md +19 -0
- package/README.md +24 -1
- package/apps/README.md +7 -3
- package/apps/agentsam-browser-site/README.md +30 -0
- package/apps/agentsam-copro-studio/README.md +113 -0
- package/apps/agentsam-copro-studio/agentsam.app.json +125 -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/README.md +9 -9
- package/apps/cad-creator/agentsam.app.json +230 -0
- package/apps/cad-creator/shared/cad/package.json +1 -1
- package/apps/cad-creator/shared/cad/src/index.ts +1 -0
- package/apps/cad-creator/shared/cad/src/lighting.test.ts +32 -0
- package/apps/cad-creator/shared/cad/src/lighting.ts +79 -0
- package/apps/cad-creator/shared/cad/src/types.ts +106 -4
- package/apps/design-canvas/README.md +101 -0
- package/apps/design-canvas/agentsam.app.json +155 -0
- package/apps/ecommerce-cms-agentsam/README.md +24 -0
- package/apps/ecommerce-cms-agentsam/agentsam.app.json +531 -0
- package/apps/local-studio/LICENSE +110 -0
- package/apps/local-studio/README.md +61 -0
- package/apps/local-studio/agentsam.app.json +316 -0
- package/apps/samsketch/README.md +21 -0
- package/apps/samsketch/agentsam.app.json +135 -0
- package/apps/samspeaks/README.md +49 -0
- package/apps/theme-gallery-preview/README.md +49 -0
- package/contracts/source-types.v2.json +86 -1
- package/docs/AUTH_IDENTITY_CONTRACT.md +70 -37
- package/docs/CAPABILITIES.md +56 -0
- package/docs/CLI_SHELL.md +19 -8
- package/docs/PRODUCT_LIFECYCLE.md +2 -0
- package/docs/REPOSITORY_KNOWLEDGE.md +24 -0
- package/docs/adr/ADR-0010-widget-contributions-registry-persistence.md +60 -0
- 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 +113 -0
- package/docs/architecture/AGENTSAM-PRODUCT-CATALOG-RELEASES-20261028.md +3 -1
- package/docs/architecture/AGENTSAM_APPLICATION_CONTRACT.md +6 -2
- package/docs/architecture/AGENTSAM_APPLICATION_INVENTORY.md +135 -0
- package/docs/architecture/AGENTSAM_DISTRIBUTION_OWNERSHIP.md +1 -1
- package/docs/architecture/AGENTSAM_GO_RUNTIME.md +1 -1
- 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/APP_PRODUCT_DATA_MODEL.md +121 -0
- package/docs/architecture/BRAND_WORKSPACE_V1.md +71 -0
- package/docs/architecture/CANONICAL_CAD_FORMAT_SPINE.md +79 -0
- package/docs/architecture/DESIGN_PROJECT_READS.md +35 -0
- package/docs/architecture/ECOMMERCE_THEME_START_FLOW.md +31 -0
- package/docs/architecture/FS_E2E_CLOSURE_RECEIPT.md +2 -0
- package/docs/architecture/LIVE_AST_AND_CREATIVE_RESOURCE_GRAPH.md +129 -0
- package/docs/architecture/LOCAL_FS_AUTHORITY.md +31 -29
- package/docs/architecture/LOCAL_STUDIO_CLOUDFLARE_OAUTH.md +115 -23
- package/docs/architecture/PRIMETECH_SCENE_V2_READINESS.md +89 -0
- package/docs/architecture/PROVIDER_NEUTRAL_COMPUTE.md +89 -0
- package/docs/architecture/PYTHON_CAD_SERVICE_TRANSPORT.md +116 -0
- package/docs/architecture/SAM_RUNTIME_EXECUTION_PLAN.md +88 -0
- package/docs/architecture/SCHEMA_AUTHORITIES.md +83 -0
- package/docs/architecture/app-module-plugin-classification.md +71 -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/BARNDOMINIUM_BIM_BUILDOUT_RUNBOOK_20261123.md +139 -0
- package/docs/architecture/primetech/BARNDOMINIUM_SPACE_DELIVERY_20261123.md +58 -0
- package/docs/architecture/primetech/CAPABILITY_AND_ACCEPTANCE_MATRIX.md +176 -0
- package/docs/architecture/primetech/IMPLEMENTATION_WAVES.md +207 -0
- package/docs/architecture/primetech/PORTABLE_EDITOR_CONTRACTS.md +192 -0
- package/docs/architecture/primetech/README.md +65 -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/architecture/universal-registry-recovery.md +62 -0
- package/docs/audits/2026-11-22-sdk-d1-registry-parity.md +116 -0
- package/docs/brand/BRAND_CAPABILITY_INVENTORY.md +160 -0
- package/docs/cad/FORMAT_SUPPORT.md +46 -0
- package/docs/cad/LIB_CAD_REMASTER_AUDIT.md +49 -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/engineering/CMS_DATA_AUTHORITY_2026-11-03.md +4 -2
- package/docs/generated/SDK_CAPABILITY_INVENTORY.md +44 -41
- package/docs/intake/product-capabilities.proposed.ts +6 -6
- package/docs/local-studio/WORKMODE_DONOR_NOTES.md +2 -0
- package/docs/operations/CLOUDFLARE-QUEUE-OBSERVABILITY.md +1 -1
- 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/AGENTSAM_PRODUCT_EXPERIENCE_STANDARD.md +1 -1
- package/docs/product/COPRO-EXECUTION-PLAN.md +1 -1
- package/docs/product/PLUGIN-GALLERY-DISCOVERY-AND-INSTALL.md +44 -97
- package/docs/reference/AGENTSAM-CLI-WORKFLOWS.md +1 -1
- package/docs/reference/AGENTSAM-REGISTRY.generated.md +41 -29
- package/docs/reference/MCP-DEVELOPMENT.md +32 -0
- package/docs/sam/opencv-media.md +97 -0
- package/docs/standards/DESKTOP_WEB_PARITY_ACCEPTANCE.md +42 -0
- package/migrations/d1/0001_agentsam_plugin_runtime.sql +0 -2
- package/migrations/d1/0011c_agentsam_skill_v2_backfill.sql +23 -1
- package/migrations/d1/0028_drop_unused_tool_handler_families.sql +4 -0
- package/migrations/d1/0029_agentsam_tools_account_plugin_key_unique.sql +26 -0
- package/migrations/d1/0030_cad_engine_plugins_contract_agnostic.sql +21 -0
- package/migrations/d1/0031_ops_trail_single_tool_call_source.sql +13 -0
- package/migrations/d1/0033_service_registry_model_discovery.sql +50 -0
- package/migrations/d1/20261123_skill_package_staging.sql +64 -0
- package/migrations/d1/20261123_universal_registry_stage.sql +58 -0
- package/migrations/d1/20261126_agentsam_tool_legacy_metadata_compact.sql +6 -0
- package/migrations/d1/20261126_agentsam_tools_archive_legacy_metadata.sql +20 -0
- package/migrations/d1/20261126_agentsam_tools_normalize_intent_tags.sql +49 -0
- package/migrations/d1/20261126_agentsam_tools_normalize_policy_health.sql +89 -0
- package/migrations/d1/20261126_agentsam_tools_remove_legacy_scope_keys.sql +29 -0
- package/migrations/d1/20261126_agentsam_tools_runtime_view_compat.sql +65 -0
- 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 +102 -0
- package/migrations/d1/generated/20261123_source_skill_seed.sql +4329 -0
- package/migrations/runtime/0012_agent_run_event_sequence.sql +27 -0
- 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 +77 -23
- package/packages/agentsam-3d-viewer/README.md +5 -0
- package/packages/agentsam-3d-viewer/package.json +1 -1
- package/packages/agentsam-3d-viewer/src/atmosphere.js +90 -0
- package/packages/agentsam-3d-viewer/src/gltf-loader.js +42 -0
- package/packages/agentsam-3d-viewer/src/index.d.ts +53 -1
- package/packages/agentsam-3d-viewer/src/index.js +18 -3
- package/packages/agentsam-3d-viewer/src/pbr-materials.js +330 -0
- package/packages/agentsam-3d-viewer/src/procedural-material.js +96 -0
- package/packages/agentsam-3d-viewer/src/procedural-textures.js +334 -0
- package/packages/agentsam-3d-viewer/src/renderer-capabilities.js +12 -0
- package/packages/agentsam-3d-viewer/src/stroke-geometry.js +4 -0
- package/packages/agentsam-3d-viewer/src/studio-finishes.js +67 -0
- package/packages/agentsam-3d-viewer/test/atmosphere.test.mjs +17 -0
- package/packages/agentsam-3d-viewer/test/gltf-loader.test.mjs +49 -0
- package/packages/agentsam-3d-viewer/test/pbr-mined-presets.test.mjs +44 -0
- package/packages/agentsam-3d-viewer/test/procedural-material.test.mjs +56 -0
- package/packages/agentsam-3d-viewer/test/renderer-capabilities.test.mjs +18 -0
- package/packages/agentsam-3d-viewer/test/studio-shared.test.mjs +23 -0
- 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-architectural-intelligence/package.json +1 -1
- package/packages/agentsam-assets-core/LICENSE +110 -0
- package/packages/agentsam-brand/README.md +12 -0
- package/packages/agentsam-brand/package.json +9 -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 +108 -48
- package/packages/agentsam-brand/src/core/iconography/family.js +569 -0
- package/packages/agentsam-brand/src/extract.js +6 -1
- package/packages/agentsam-brand/src/index.js +16 -1
- package/packages/agentsam-brand/src/public.js +15 -1
- package/packages/agentsam-brand/src/scan.js +47 -0
- package/packages/agentsam-brand/src/workspace.d.ts +45 -0
- package/packages/agentsam-brand/src/workspace.js +191 -0
- 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/README.md +11 -0
- package/packages/agentsam-cms/package.json +4 -3
- package/packages/agentsam-cms/src/chat-storage.js +33 -9
- package/packages/agentsam-cms/src/contracts.js +16 -0
- package/packages/agentsam-cms/src/studio-bridge-protocol.js +113 -0
- package/packages/agentsam-cms/test/chat-storage.test.mjs +37 -0
- package/packages/agentsam-cms/test/standalone.test.mjs +7 -3
- package/packages/agentsam-cms/test/studio-bridge-protocol.test.mjs +26 -0
- package/packages/agentsam-communications/README.md +5 -4
- package/packages/agentsam-communications/package.json +6 -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/src/samspeaks-runtime.js +126 -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 +72 -0
- package/packages/agentsam-contracts/agentsam.package.json +54 -12
- package/packages/agentsam-contracts/dist/agent.d.ts +6 -5
- package/packages/agentsam-contracts/dist/agent.js +20 -0
- package/packages/agentsam-contracts/dist/bim-model.d.ts +95 -0
- package/packages/agentsam-contracts/dist/bim-model.js +57 -0
- package/packages/agentsam-contracts/dist/cad-source-formats.d.ts +55 -0
- package/packages/agentsam-contracts/dist/cad-source-formats.js +9617 -0
- package/packages/agentsam-contracts/dist/design-workspace.d.ts +13 -1
- package/packages/agentsam-contracts/dist/index.d.ts +6 -0
- package/packages/agentsam-contracts/dist/index.js +17832 -354
- package/packages/agentsam-contracts/dist/json-schema.d.ts +8 -0
- package/packages/agentsam-contracts/dist/json-schema.js +7787 -0
- package/packages/agentsam-contracts/dist/operations.d.ts +6 -1
- package/packages/agentsam-contracts/dist/operations.js +7795 -5
- package/packages/agentsam-contracts/dist/resource-ref.d.ts +21 -0
- package/packages/agentsam-contracts/dist/resource-ref.js +23 -0
- package/packages/agentsam-contracts/dist/run.d.ts +151 -38
- package/packages/agentsam-contracts/dist/run.js +41 -22
- package/packages/agentsam-contracts/dist/scene-document.d.ts +32 -0
- package/packages/agentsam-contracts/dist/scene-document.js +30 -0
- package/packages/agentsam-contracts/dist/scene-format.d.ts +44 -0
- package/packages/agentsam-contracts/dist/scene-format.js +35 -0
- package/packages/agentsam-contracts/dist/source-types-registry.d.ts +9 -0
- package/packages/agentsam-contracts/dist/source-types-registry.js +9512 -0
- package/packages/agentsam-contracts/dist/tools.d.ts +2 -1
- package/packages/agentsam-contracts/dist/tools.js +7794 -9
- package/packages/agentsam-contracts/dist/widgets.d.ts +20 -0
- package/packages/agentsam-contracts/package.json +46 -4
- package/packages/agentsam-contracts/schemas/activity.v1.schema.json +142 -0
- 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/bim-model.v1.schema.json +76 -0
- package/packages/agentsam-contracts/schemas/resource-ref.v1.schema.json +18 -0
- package/packages/agentsam-contracts/schemas/run-receipt.v1.schema.json +322 -0
- package/packages/agentsam-contracts/schemas/run-spawn.v1.schema.json +74 -0
- package/packages/agentsam-contracts/schemas/run-start.v1.schema.json +40 -0
- package/packages/agentsam-contracts/schemas/run.v1.schema.json +161 -0
- package/packages/agentsam-contracts/schemas/sam-operation.v1.schema.json +8 -0
- package/packages/agentsam-contracts/schemas/scene-document.v2.schema.json +212 -0
- package/packages/agentsam-contracts/schemas/scene-format.v1.schema.json +173 -0
- package/packages/agentsam-contracts/schemas/source-types.v2.json +86 -1
- package/packages/agentsam-contracts/scripts/build.mjs +2 -1
- package/packages/agentsam-contracts/src/agent.ts +10 -20
- package/packages/agentsam-contracts/src/bim-model.ts +143 -0
- package/packages/agentsam-contracts/src/cad-source-formats.ts +195 -0
- package/packages/agentsam-contracts/src/design-workspace.ts +9 -0
- package/packages/agentsam-contracts/src/index.ts +6 -0
- package/packages/agentsam-contracts/src/json-schema.ts +37 -0
- package/packages/agentsam-contracts/src/operations.ts +12 -1
- package/packages/agentsam-contracts/src/resource-ref.ts +36 -0
- package/packages/agentsam-contracts/src/run.ts +155 -92
- package/packages/agentsam-contracts/src/scene-document.ts +58 -0
- package/packages/agentsam-contracts/src/scene-format.ts +91 -0
- package/packages/agentsam-contracts/src/source-types-registry.ts +65 -0
- package/packages/agentsam-contracts/src/tools.ts +4 -1
- package/packages/agentsam-contracts/src/widgets.ts +24 -0
- package/packages/agentsam-contracts/test/bim-model.test.mjs +66 -0
- package/packages/agentsam-contracts/test/cad-source-formats.test.mjs +103 -0
- package/packages/agentsam-contracts/test/contracts.test.mjs +23 -1
- package/packages/agentsam-contracts/test/resource-ref.test.mjs +29 -0
- package/packages/agentsam-contracts/test/run-contract.test.mjs +58 -46
- package/packages/agentsam-contracts/test/scene-document.test.mjs +30 -0
- package/packages/agentsam-contracts/test/scene-format.test.mjs +40 -0
- package/packages/agentsam-contracts/test/source-types.test.mjs +29 -0
- package/packages/agentsam-database-editor/LICENSE +110 -0
- package/packages/agentsam-database-editor/README.md +105 -0
- package/packages/agentsam-desktop-shell/scripts/app-discovery.mjs +36 -25
- 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-goalguru/agentsam.app.json +97 -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/README.md +2 -3
- 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/dist/AdminAppsDialog.d.ts +1 -1
- package/packages/agentsam-nav/dist/NavProvider.d.ts +2 -0
- package/packages/agentsam-nav/dist/Surfaces.d.ts +15 -4
- package/packages/agentsam-nav/dist/browser.global.js +20 -16
- package/packages/agentsam-nav/dist/browser.js +659 -208
- package/packages/agentsam-nav/dist/contracts.d.ts +23 -0
- package/packages/agentsam-nav/dist/index.d.ts +2 -2
- package/packages/agentsam-nav/dist/index.js +587 -108
- package/packages/agentsam-nav/dist/legacy.css +8 -0
- package/packages/agentsam-nav/dist/shell.css +417 -6
- package/packages/agentsam-nav/dist/theme.css +417 -6
- package/packages/agentsam-nav/dist/useAdminApps.d.ts +22 -2
- 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/dist/native-provider.d.mts +1 -1
- package/packages/agentsam-occt/dist/native-provider.mjs +1 -1
- 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/src/native-provider.mjs +1 -1
- package/packages/agentsam-occt/test/native-engine.test.mjs +2 -2
- package/packages/agentsam-queue-control/package.json +1 -1
- package/packages/agentsam-queue-control/src/adapters/sqlite.js +8 -6
- 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/README.md +16 -8
- package/packages/agentsam-vault/package.json +9 -2
- package/packages/agentsam-vault/src/crypto/aes-gcm.d.ts +25 -0
- package/packages/agentsam-vault/src/crypto/aes-gcm.js +149 -0
- package/packages/agentsam-vault/src/crypto/classify.d.ts +22 -0
- package/packages/agentsam-vault/src/crypto/classify.js +83 -0
- package/packages/agentsam-vault/src/crypto/oauth-envelope.d.ts +7 -0
- 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 +14 -0
- package/packages/agentsam-vault/src/providers/registry.js +16 -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/README.md +27 -3
- package/packages/agentsam-workbench/package.json +31 -4
- 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/AskAgentSamPill.tsx +17 -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/MiniAgentSam.tsx +144 -20
- 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 +19 -0
- package/packages/agentsam-workbench/src/agent/index.ts +1 -0
- package/packages/agentsam-workbench/src/agent/mini-agentsam.css +72 -2
- package/packages/agentsam-workbench/src/agent/thread.css +20 -0
- package/packages/agentsam-workbench/src/design/DesignWorkspaceFrame.tsx +292 -84
- package/packages/agentsam-workbench/src/design/design-workspace.css +222 -107
- package/packages/agentsam-workbench/src/index.ts +1 -0
- package/packages/agentsam-workbench/src/shell/InspectorPicker.tsx +38 -0
- package/packages/agentsam-workbench/src/shell/ResizableStage.tsx +26 -5
- package/packages/agentsam-workbench/src/shell/SidePanel.tsx +3 -3
- package/packages/agentsam-workbench/src/shell/StudioCommands.tsx +32 -0
- package/packages/agentsam-workbench/src/shell/appearance.d.mts +28 -0
- package/packages/agentsam-workbench/src/shell/appearance.mjs +290 -0
- package/packages/agentsam-workbench/src/shell/index.ts +2 -0
- package/packages/agentsam-workbench/src/shell/inspector-picker.css +48 -0
- package/packages/agentsam-workbench/src/shell/studio-icons.ts +104 -0
- package/packages/agentsam-workbench/src/shell/studio-panels.ts +21 -0
- 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 +68 -40
- 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 +1205 -0
- package/packages/agentsam-workbench/src/workflows/index.ts +5 -0
- package/packages/agentsam-workbench/src/workflows/model.ts +213 -0
- package/packages/agentsam-workbench/src/workflows/step-choices.ts +46 -0
- package/packages/agentsam-workbench/src/workflows/types.ts +239 -0
- package/packages/agentsam-workbench/src/workflows/workflow-studio.css +591 -0
- package/packages/analytics-ui/LICENSE +110 -0
- package/packages/analytics-ui/README.md +22 -0
- package/packages/catalog/generated/packages.json +201 -51
- package/packages/connectors/cfoa/OAUTH_STORAGE_AUDIT.md +11 -55
- package/packages/connectors/cfoa/package.json +11 -3
- package/packages/connectors/cfoa/src/PERMISSION_REGISTRY.md +45 -0
- package/packages/connectors/cfoa/src/api-client.js +22 -1
- package/packages/connectors/cfoa/src/capabilities.js +123 -285
- package/packages/connectors/cfoa/src/credential.js +139 -23
- package/packages/connectors/cfoa/src/families/media.js +41 -15
- package/packages/connectors/cfoa/src/index.js +33 -39
- package/packages/connectors/cfoa/src/oauth-persist.js +195 -63
- package/packages/connectors/cfoa/src/owner.js +20 -32
- package/packages/connectors/cfoa/src/permission-options.js +147 -1038
- package/packages/connectors/cfoa/src/routes.js +246 -71
- package/packages/connectors/cfoa/src/scope-catalog.js +16 -351
- package/packages/connectors/cfoa/src/scope-registry.js +263 -0
- package/packages/connectors/cfoa/test/scope-registry.test.mjs +191 -0
- package/packages/connectors/cfoa/tests/api-client-fetch.test.mjs +34 -0
- package/packages/connectors/cfoa/tests/capabilities.test.mjs +86 -45
- package/packages/connectors/cfoa/tests/connection-records.test.mjs +74 -0
- package/packages/connectors/cfoa/tests/connector.test.mjs +266 -1
- package/packages/connectors/cfoa/tests/cross-host-recovery.test.mjs +19 -4
- package/packages/connectors/cfoa/tests/media-discovery.test.mjs +82 -12
- 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/.agentsam/features/oauth-login-portal/agentsam.feature.json +1 -1
- package/packages/identity/README.md +1 -1
- package/packages/identity/agentsam.package.json +4 -4
- package/packages/identity/migrations/D1_SCHEMA_MAPPING.md +3 -3
- package/packages/identity/migrations/apply-portable.js +11 -4
- package/packages/identity/migrations/sqlite/007_identity_session_revoke_reason.sql +3 -0
- package/packages/identity/migrations/sqlite/008_identity_accounts.sql +41 -0
- package/packages/identity/migrations/sqlite/009_identity_scope.sql +30 -0
- package/packages/identity/package.json +15 -7
- package/packages/identity/schema/agentsam.identity/manifest.json +21 -4
- package/packages/identity/src/adapters/account-security-store.js +126 -28
- package/packages/identity/src/adapters/column-support.js +39 -0
- package/packages/identity/src/adapters/iam-compat/index.js +119 -44
- package/packages/identity/src/adapters/portable-d1/index.js +3 -1
- package/packages/identity/src/adapters/portable-store.js +80 -51
- package/packages/identity/src/app/verify-app.js +27 -0
- package/packages/identity/src/contracts/auth-config.js +2 -0
- package/packages/identity/src/contracts/identity-store.js +2 -2
- 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/password-gate.js +116 -0
- 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/frontend/auth-portal/pages/login.html +1 -1
- package/packages/identity/src/frontend/auth-portal/pages/reset.html +1 -1
- package/packages/identity/src/frontend/auth-portal/pages/signup.html +1 -1
- package/packages/identity/src/frontend/auth-portal/shared/company-branding.js +18 -7
- package/packages/identity/src/frontend/auth-portal/shared/default-auth-logo.svg +4 -0
- package/packages/identity/src/frontend/auth-portal/store-access.js +97 -0
- package/packages/identity/src/migrations/0005_session_audit_columns.sql +6 -0
- package/packages/identity/src/migrations/README.md +2 -0
- package/packages/identity/src/oauth/goaude.js +38 -32
- package/packages/identity/src/oauth/native-handoff.js +2 -2
- package/packages/identity/src/recovery/d1-password-reset.js +238 -0
- package/packages/identity/src/server/identity-service.js +15 -3
- package/packages/identity/src/server/mcp-workspace-policy.js +61 -0
- package/packages/identity/src/server/worker-router.js +129 -51
- 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-portal-e2e.test.mjs +166 -0
- package/packages/identity/tests/identity-service.test.mjs +32 -0
- package/packages/identity/tests/lane1-identity-store-parity.test.mjs +94 -16
- 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/password-gate.test.mjs +66 -0
- package/packages/identity/tests/portable-identity-scope.test.mjs +59 -0
- package/packages/identity/tests/service-api-key.test.mjs +70 -0
- package/packages/identity/tests/session-audit.test.mjs +135 -0
- package/packages/identity/tests/user-oauth-token-owner-migration.test.mjs +72 -0
- package/packages/identity/tests/worker-portal-assets.test.mjs +47 -0
- package/packages/primetech-procedures/LICENSE +110 -0
- package/packages/primetech-procedures/README.md +188 -6
- 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/README.md +18 -0
- package/protocol/capabilities/capability-manifest.schema.json +111 -19
- package/protocol/capabilities/manifest.json +12 -1
- package/protocol/capabilities/terminal-exec-input.schema.json +2 -2
- package/protocol/contracts/source-types.v2.json +86 -1
- 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/product-releases/README.md +15 -12
- package/protocol/registry/universal-catalog.v1.json +3092 -0
- package/protocol/runtime/agentsam.runtime.v1.schema.json +1 -0
- package/protocol/sam/activity.v1.schema.json +111 -17
- package/protocol/sam/operation.schema.json +8 -0
- package/protocol/sam/run-receipt.v1.schema.json +322 -0
- package/protocol/sam/run-start.v1.schema.json +40 -0
- package/protocol/sam/run.v1.schema.json +161 -0
- package/protocol/theme-refinery/d1-reconciliation.md +66 -32
- package/protocol/theme-refinery/product-metadata.schema.json +1 -1
- package/python/README.md +121 -18
- package/python/agentsam_sdk/cad/__init__.py +26 -3
- package/python/agentsam_sdk/cad/adapters/__init__.py +6 -0
- package/python/agentsam_sdk/cad/adapters/freecad.py +200 -0
- package/python/agentsam_sdk/cad/building.py +42 -0
- package/python/agentsam_sdk/cad/jobs.py +174 -0
- package/python/agentsam_sdk/cad/native.py +68 -9
- package/python/agentsam_sdk/cad/service.py +570 -0
- package/python/agentsam_sdk/cli.py +32 -1
- package/python/agentsam_sdk/client.py +165 -31
- package/python/agentsam_sdk/data/d1_bloat.py +0 -1
- 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/__init__.py +8 -0
- package/python/agentsam_sdk/media/opencv.py +254 -0
- package/python/agentsam_sdk/procedures/client.py +1 -1
- package/python/agentsam_sdk/registry_cli.py +88 -0
- package/python/agentsam_sdk/runtime/native.py +3 -3
- package/python/agentsam_sdk/terminal_art.py +5 -6
- package/python/docs/gaps.md +24 -4
- package/python/docs/tooling.md +4 -4
- package/python/pyproject.toml +5 -1
- package/python/requirements-tui.txt +1 -1
- package/python/scripts/check-dist.py +2 -2
- package/python/tests/fixtures/freecad_host_cases.json +30 -0
- package/python/tests/test_bridge_policy.py +42 -0
- package/python/tests/test_cad_building_client.py +47 -0
- package/python/tests/test_cad_jobs_client.py +102 -0
- package/python/tests/test_cad_native.py +104 -1
- package/python/tests/test_cad_service_client.py +288 -0
- 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 +87 -0
- package/python/tests/test_packaging.py +5 -0
- package/python/tests/test_procedure_client.py +6 -0
- package/python/tests/test_public_client.py +97 -2
- package/services/cad/blender/adapter.py +49 -0
- package/services/cad/ifc/__pycache__/adapter.cpython-311.pyc +0 -0
- package/services/cad/ifc/adapter.py +836 -0
- package/services/cad/server.py +435 -132
- package/skills/README.md +12 -2
- package/skills/agentsam-app-fundamentals/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-bim/SKILL.md +166 -6
- package/skills/agentsam-arch-bim/agentsam.skill.json +2 -2
- package/skills/agentsam-cad/SKILL.md +122 -36
- package/skills/agentsam-cad/agentsam.skill.json +20 -0
- package/skills/agentsam-cad/evals/README.md +56 -0
- package/skills/agentsam-cad/references/engines-and-lanes.md +70 -0
- package/skills/agentsam-cad/references/projects-and-operations.md +112 -0
- package/skills/agentsam-cad/references/proof-and-triage.md +89 -0
- package/skills/agentsam-cad/references/python-service-and-jobs.md +102 -0
- package/skills/agentsam-cad/references/scene-geometry-bim.md +113 -0
- package/skills/agentsam-canvas-creation/agentsam.skill.json +20 -0
- package/skills/agentsam-cloudflare-workers/agentsam.skill.json +20 -0
- package/skills/agentsam-cms-ready-creation/agentsam.skill.json +20 -0
- package/skills/agentsam-codebaseindex/agentsam.skill.json +20 -0
- package/skills/agentsam-jr-dev/agentsam.skill.json +20 -0
- package/skills/agentsam-plan-and-goap/agentsam.skill.json +20 -0
- package/skills/agentsam-progression-guard/agentsam.skill.json +20 -0
- package/skills/agentsam-repo-recon/agentsam.skill.json +20 -0
- package/skills/agentsam-sam-operations/SKILL.md +76 -36
- package/skills/agentsam-sam-operations/agentsam.skill.json +20 -0
- package/skills/agentsam-sdk-orientation/agentsam.skill.json +20 -0
- package/skills/catalog.json +171 -5
- package/src/acp/agent-executor.js +52 -4
- package/src/acp/client.js +80 -242
- package/src/acp/database-client.js +348 -0
- package/src/acp/dependencies.js +899 -270
- package/src/acp/http.js +47 -0
- package/src/acp/index.js +12 -0
- package/src/acp/queue-executor.js +79 -0
- package/src/acp/runs.js +10 -4
- 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/agent/capability-adapter.js +21 -23
- package/src/capabilities/terminal-exec.js +3 -2
- package/src/capabilities/test-run.js +2 -1
- package/src/cli/command-catalog.js +41 -17
- package/src/cli/desktop-launch.js +68 -19
- package/src/cli/dispatch.js +1 -0
- package/src/cli/update-check.js +131 -0
- package/src/cli.js +45 -11
- package/src/commands/account-auth.js +40 -27
- package/src/commands/account-model-inventory.js +84 -0
- package/src/commands/api-key.js +172 -120
- package/src/commands/app-inventory.js +343 -0
- package/src/commands/app.js +174 -34
- package/src/commands/ast.js +80 -0
- package/src/commands/cad.js +2 -0
- package/src/commands/cheat-sheet.js +13 -8
- package/src/commands/cloudflare-login.js +247 -94
- package/src/commands/cloudflare-status.js +38 -0
- package/src/commands/cloudflare.js +76 -54
- package/src/commands/codebaseindex.js +189 -63
- 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/go.js +1 -1
- package/src/commands/google-cloud.js +5 -9
- package/src/commands/interactive.js +5 -0
- package/src/commands/knowledge.js +4 -2
- package/src/commands/mcp.js +91 -5
- package/src/commands/models.js +49 -5
- package/src/commands/plugins.js +18 -8
- package/src/commands/preferences.js +48 -6
- package/src/commands/product.js +4 -4
- 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 +39 -18
- 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 +266 -45
- 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/go/contract.js +1 -1
- package/src/go/official-registry.js +41 -36
- package/src/go/product-catalog.test.mjs +52 -0
- package/src/go/receipts.js +19 -6
- package/src/index.js +3 -1
- package/src/indexing/index.js +10 -0
- package/src/indexing/live-ast.js +200 -0
- package/src/indexing/live-cad-graph.js +107 -0
- package/src/indexing/live-resource-graph.js +95 -0
- package/src/knowledge/config.js +8 -4
- package/src/knowledge/store-discovery.js +104 -5
- package/src/knowledge/stores/d1.js +206 -0
- package/src/lib/account-session.js +2 -0
- package/src/lib/auth.js +100 -5
- package/src/lib/cad/bim-bridge.d.ts +6 -0
- package/src/lib/cad/bim-bridge.js +96 -0
- package/src/lib/cad/d1-project-store.js +1 -1
- package/src/lib/cad/delivery-profiles.d.ts +1 -1
- package/src/lib/cad/delivery-profiles.js +82 -6
- package/src/lib/cad/format-policy.d.ts +11 -0
- package/src/lib/cad/format-policy.js +14 -0
- package/src/lib/cad/freecad-host.d.ts +19 -0
- package/src/lib/cad/freecad-host.js +171 -0
- package/src/lib/cad/freecad.js +38 -65
- package/src/lib/cad/ifc-cli.js +82 -0
- package/src/lib/cad/ifc.js +152 -0
- package/src/lib/cad/index.js +3 -0
- package/src/lib/cad/production-operations.d.ts +1 -1
- package/src/lib/cad/production-operations.js +21 -19
- package/src/lib/cad/project-runtime.js +10 -4
- package/src/lib/cad/project-v2.js +13 -25
- package/src/lib/cad-docker.js +35 -17
- 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/lib/whoami-capabilities.js +8 -14
- package/src/local-fs/index.js +29 -2
- package/src/mcp/client.js +18 -10
- package/src/mcp/cloudflare-bundles.js +39 -41
- 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 +42 -1
- package/src/models/inventory-core.js +120 -38
- package/src/models/media-runtime.d.ts +53 -0
- package/src/models/media-runtime.js +221 -0
- package/src/plugins/cloudflare.js +65 -15
- package/src/plugins/completeful.js +2 -4
- package/src/plugins/contracts.js +60 -6
- package/src/plugins/creative.js +2 -2
- package/src/plugins/index.js +4 -1
- package/src/plugins/primetech-hosted.js +13 -0
- package/src/plugins/registry.js +127 -54
- package/src/plugins/runtime.js +70 -15
- 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 +432 -96
- package/src/registry/universal-reconcile.js +120 -0
- package/src/registry/universal-source.js +282 -0
- 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 +293 -0
- package/src/sam/adapters/pdf-document.js +210 -0
- package/src/sam/adapters/tesseract-ocr.js +276 -0
- package/src/sam/adapters/workspace-media.js +15 -2
- package/src/sam/bridge/policy.mjs +50 -0
- package/src/sam/bridge/stdio.mjs +116 -38
- 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/architectural-knowledge.js +1 -0
- package/src/sam/operations/artifact-render.js +2 -1
- package/src/sam/operations/cad-bim-ifc.js +89 -0
- package/src/sam/operations/cad-blender-inspect.js +1 -1
- package/src/sam/operations/decision-evaluate.js +1 -0
- package/src/sam/operations/planning-goap.js +1 -0
- package/src/sam/operations/repository-inspect.js +1 -0
- package/src/sam/operations/robotics.js +1 -1
- package/src/sam/os.js +269 -11
- package/src/sam/packs/cad/index.js +18 -12
- package/src/sam/packs/core.js +2 -0
- package/src/sam/packs/evidence/endpoint.js +39 -0
- package/src/sam/packs/evidence/media.js +3 -2
- package/src/sam/packs/evidence/store-hosted.js +5 -3
- package/src/sam/packs/primetech-creative.js +250 -0
- package/src/sam/shell-host.js +141 -18
- package/src/sam/validation.js +3 -0
- package/src/skills/catalog.js +43 -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 +25 -20
- package/src/tunnel/providers.js +133 -0
- package/src/tunnel/session.js +100 -0
- package/src/ui/boot.js +19 -16
- package/src/ui/brand/agentsam-mark.generated.js +49 -0
- 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 +199 -0
- package/src/ui/home-screen.js +82 -0
- 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 -22
- 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/repo.asset.inventory/__pycache__/run.cpython-312.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/profiles/PRIMETECH_PROCEDURE_ENGINEER.md +0 -25
- package/packages/primetech-procedures/src/index.js +0 -547
- package/packages/primetech-procedures/test/__pycache__/test_inventory.cpython-312.pyc +0 -0
- package/packages/primetech-procedures/test/procedure.test.mjs +0 -207
- 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
- package/src/ui/art/geaux_boot.json +0 -25
- package/src/ui/companion-art.js +0 -40
|
@@ -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,50 +3099,66 @@ 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";
|
|
3149
|
+
function accountAppsErrorMessage(error) {
|
|
3150
|
+
const code = error instanceof Error ? error.message : String(error ?? "");
|
|
3151
|
+
if (/unsupported_studio_service_operation|studio_service_apps_(?:path|method)_invalid|studio_service_bridge_unavailable/.test(code)) {
|
|
3152
|
+
return "This AgentSam Desktop build cannot load account Apps. Update the desktop app; no installations were changed.";
|
|
3153
|
+
}
|
|
3154
|
+
if (code.includes("apps_account_sign_in_required")) {
|
|
3155
|
+
return "AgentSam Desktop needs a valid account session. Sign in again to verify your Apps; no installations were changed.";
|
|
3156
|
+
}
|
|
3157
|
+
if (code.includes("apps_account_service_unavailable")) {
|
|
3158
|
+
return "The account Apps service is temporarily unavailable. Retry; no installations were changed.";
|
|
3159
|
+
}
|
|
3160
|
+
return "Could not verify account Apps. Retry; no installations were changed.";
|
|
3161
|
+
}
|
|
3116
3162
|
function useAdminApps({ loadApps, installApp, removeApp, updateApp, onInstalled, initialView = "installed" }) {
|
|
3117
3163
|
const [apps, setApps] = useState11([]);
|
|
3118
3164
|
const [view, setView] = useState11(initialView);
|
|
@@ -3128,8 +3174,8 @@ function useAdminApps({ loadApps, installApp, removeApp, updateApp, onInstalled,
|
|
|
3128
3174
|
setError("");
|
|
3129
3175
|
void loadApps().then((next) => {
|
|
3130
3176
|
if (!cancelled) setApps(next);
|
|
3131
|
-
}).catch(() => {
|
|
3132
|
-
if (!cancelled) setError(
|
|
3177
|
+
}).catch((error2) => {
|
|
3178
|
+
if (!cancelled) setError(accountAppsErrorMessage(error2));
|
|
3133
3179
|
}).finally(() => {
|
|
3134
3180
|
if (!cancelled) setLoading(false);
|
|
3135
3181
|
});
|
|
@@ -3145,7 +3191,7 @@ function useAdminApps({ loadApps, installApp, removeApp, updateApp, onInstalled,
|
|
|
3145
3191
|
setError("");
|
|
3146
3192
|
setActive(app.key);
|
|
3147
3193
|
try {
|
|
3148
|
-
if (kind === "install") await installApp(app.key);
|
|
3194
|
+
if (kind === "install") await installApp(app.key, app);
|
|
3149
3195
|
if (kind === "remove") await removeApp?.(app.key);
|
|
3150
3196
|
if (kind === "enable") await updateApp?.(app.key, true);
|
|
3151
3197
|
if (kind === "disable") await updateApp?.(app.key, false);
|
|
@@ -3154,8 +3200,9 @@ function useAdminApps({ loadApps, installApp, removeApp, updateApp, onInstalled,
|
|
|
3154
3200
|
setConfirmRemove(null);
|
|
3155
3201
|
onInstalled?.();
|
|
3156
3202
|
if (kind === "install" && view !== "all") setView("installed");
|
|
3157
|
-
} catch {
|
|
3158
|
-
|
|
3203
|
+
} catch (failure) {
|
|
3204
|
+
const code = String(failure);
|
|
3205
|
+
setError(/app_package_|desktop_app_package|Device package/.test(code) ? `Device installation could not be verified: ${code}. No account installation success has been assumed.` : "Account App change failed. No success has been assumed; refresh to verify its current state.");
|
|
3159
3206
|
} finally {
|
|
3160
3207
|
setActive(null);
|
|
3161
3208
|
}
|
|
@@ -3181,7 +3228,7 @@ function useAdminApps({ loadApps, installApp, removeApp, updateApp, onInstalled,
|
|
|
3181
3228
|
}
|
|
3182
3229
|
|
|
3183
3230
|
// src/AdminAppsDialog.tsx
|
|
3184
|
-
import { jsx as jsx7, jsxs } from "react/jsx-runtime";
|
|
3231
|
+
import { Fragment as Fragment5, jsx as jsx7, jsxs } from "react/jsx-runtime";
|
|
3185
3232
|
function AdminAppMark({ app, size: size4 = 20 }) {
|
|
3186
3233
|
if (app.icon_url && (app.icon_url.startsWith("/") || /^https:\/\//.test(app.icon_url)))
|
|
3187
3234
|
return /* @__PURE__ */ jsx7("img", { src: app.icon_url, alt: "", loading: "lazy" });
|
|
@@ -3197,19 +3244,179 @@ function AdminAppMark({ app, size: size4 = 20 }) {
|
|
|
3197
3244
|
if (icon === "canvas" || icon === "design-canvas") return /* @__PURE__ */ jsx7(PenTool, { size: size4 });
|
|
3198
3245
|
return /* @__PURE__ */ jsx7(LayoutPanelTop, { size: size4 });
|
|
3199
3246
|
}
|
|
3200
|
-
function AdminAppsDirectory({ loadApps, installApp, removeApp, updateApp, onOpenApp, onInstalled }) {
|
|
3247
|
+
function AdminAppsDirectory({ loadApps, installApp, removeApp, updateApp, onOpenApp, onInstalled, variant = "compact" }) {
|
|
3201
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]);
|
|
3254
|
+
const installedCount = !apps.length && (loading || Boolean(error)) ? "\u2014" : String(apps.filter((a) => a.installed).length);
|
|
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
|
+
] }) });
|
|
3202
3409
|
return /* @__PURE__ */ jsxs("div", { className: "as-apps-directory", children: [
|
|
3203
3410
|
/* @__PURE__ */ jsxs("div", { className: "as-apps-picker-controls", children: [
|
|
3204
3411
|
/* @__PURE__ */ jsxs("div", { className: "as-apps-picker-tabs", role: "tablist", "aria-label": "Apps view", children: [
|
|
3205
3412
|
/* @__PURE__ */ jsxs("button", { role: "tab", "aria-selected": view === "installed", type: "button", onClick: () => setView("installed"), children: [
|
|
3206
3413
|
"Installed (",
|
|
3207
|
-
|
|
3414
|
+
installedCount,
|
|
3208
3415
|
")"
|
|
3209
3416
|
] }),
|
|
3210
3417
|
/* @__PURE__ */ jsxs("button", { role: "tab", "aria-selected": view === "browse", type: "button", onClick: () => setView("browse"), children: [
|
|
3211
3418
|
"Browse (",
|
|
3212
|
-
|
|
3419
|
+
browseCount,
|
|
3213
3420
|
")"
|
|
3214
3421
|
] }),
|
|
3215
3422
|
/* @__PURE__ */ jsx7("button", { type: "button", className: "as-apps-picker-refresh", onClick: () => refresh(), disabled: loading || Boolean(active), children: "Refresh" })
|
|
@@ -3229,7 +3436,7 @@ function AdminAppsDirectory({ loadApps, installApp, removeApp, updateApp, onOpen
|
|
|
3229
3436
|
/* @__PURE__ */ jsxs("small", { children: [
|
|
3230
3437
|
app.description || "Admin application",
|
|
3231
3438
|
" \xB7 ",
|
|
3232
|
-
app.installed ? app.enabled ? "Installed" : "Disabled" : "Not installed"
|
|
3439
|
+
app.installed ? app.enabled ? app.delivery ? "Account enabled" : "Installed" : "Disabled" : "Not installed"
|
|
3233
3440
|
] })
|
|
3234
3441
|
] }),
|
|
3235
3442
|
confirmRemove === app.key ? /* @__PURE__ */ jsxs("span", { className: "as-apps-picker-actions", children: [
|
|
@@ -3237,7 +3444,7 @@ function AdminAppsDirectory({ loadApps, installApp, removeApp, updateApp, onOpen
|
|
|
3237
3444
|
/* @__PURE__ */ jsx7("button", { type: "button", onClick: () => setConfirmRemove(null), children: "Cancel" }),
|
|
3238
3445
|
/* @__PURE__ */ jsx7("button", { type: "button", disabled: Boolean(active), onClick: () => void perform(app, "remove"), children: "Remove" })
|
|
3239
3446
|
] }) : app.installed ? /* @__PURE__ */ jsxs("span", { className: "as-apps-picker-actions", children: [
|
|
3240
|
-
app.enabled && app.href ? /* @__PURE__ */ jsx7("button", { type: "button", className: "as-apps-picker-primary", onClick: () => onOpenApp?.(app.href), children: "Open" }) : null,
|
|
3447
|
+
app.enabled && app.href ? /* @__PURE__ */ jsx7("button", { type: "button", className: "as-apps-picker-primary", onClick: () => onOpenApp?.(app.href, app), children: "Open" }) : null,
|
|
3241
3448
|
updateApp ? /* @__PURE__ */ jsx7("button", { type: "button", disabled: Boolean(active), onClick: () => void perform(app, app.enabled ? "disable" : "enable"), children: app.enabled ? "Disable" : "Enable" }) : null,
|
|
3242
3449
|
removeApp ? /* @__PURE__ */ jsx7("button", { type: "button", disabled: Boolean(active), onClick: () => setConfirmRemove(app.key), children: "Remove" }) : null,
|
|
3243
3450
|
!updateApp && !removeApp ? /* @__PURE__ */ jsxs("span", { className: "as-apps-picker-status", children: [
|
|
@@ -3263,19 +3470,19 @@ function AdminAppsDialog({ onClose, theme = "system", ...directory }) {
|
|
|
3263
3470
|
] }),
|
|
3264
3471
|
/* @__PURE__ */ jsx7(DialogClose, { className: "as-apps-picker-close", "aria-label": "Close Apps", children: /* @__PURE__ */ jsx7(X, { size: 18 }) })
|
|
3265
3472
|
] }),
|
|
3266
|
-
/* @__PURE__ */ jsx7(AdminAppsDirectory, { ...directory, onOpenApp: (href) => {
|
|
3473
|
+
/* @__PURE__ */ jsx7(AdminAppsDirectory, { ...directory, variant: "compact", onOpenApp: (href, app) => {
|
|
3267
3474
|
onClose();
|
|
3268
|
-
directory.onOpenApp?.(href);
|
|
3475
|
+
directory.onOpenApp?.(href, app);
|
|
3269
3476
|
} })
|
|
3270
3477
|
] })
|
|
3271
3478
|
] }) });
|
|
3272
3479
|
}
|
|
3273
3480
|
|
|
3274
3481
|
// src/browser.tsx
|
|
3275
|
-
import { createElement as createElement8, useEffect as
|
|
3482
|
+
import { createElement as createElement8, useEffect as useEffect23 } from "react";
|
|
3276
3483
|
|
|
3277
3484
|
// src/NavProvider.tsx
|
|
3278
|
-
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";
|
|
3279
3486
|
|
|
3280
3487
|
// src/utils.ts
|
|
3281
3488
|
function cx(...values) {
|
|
@@ -3334,9 +3541,12 @@ function stabilizeNavStateStore(host) {
|
|
|
3334
3541
|
return {
|
|
3335
3542
|
getSnapshot,
|
|
3336
3543
|
subscribe(listener) {
|
|
3544
|
+
let seen = getSnapshot();
|
|
3337
3545
|
return host.subscribe(() => {
|
|
3338
|
-
const
|
|
3339
|
-
if (
|
|
3546
|
+
const next = getSnapshot();
|
|
3547
|
+
if (next === seen) return;
|
|
3548
|
+
seen = next;
|
|
3549
|
+
listener();
|
|
3340
3550
|
});
|
|
3341
3551
|
},
|
|
3342
3552
|
setState(update) {
|
|
@@ -3375,6 +3585,23 @@ function createNavState(initial = {}) {
|
|
|
3375
3585
|
// src/NavProvider.tsx
|
|
3376
3586
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
3377
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
|
+
}
|
|
3378
3605
|
function NavProvider({
|
|
3379
3606
|
children,
|
|
3380
3607
|
value: input = {},
|
|
@@ -3392,15 +3619,18 @@ function NavProvider({
|
|
|
3392
3619
|
const destinations = resolveNavDestinations(input.destinations ?? [], input.pathname);
|
|
3393
3620
|
return { ...input, destinations, breadcrumbs: input.breadcrumbs ?? navBreadcrumbs(destinations) };
|
|
3394
3621
|
}, [input]);
|
|
3395
|
-
const [ownedStore] =
|
|
3396
|
-
desktopOpen: defaultOpen && (typeof window === "undefined" || window.innerWidth >= 1024)
|
|
3622
|
+
const [ownedStore] = useState13(() => createNavState({
|
|
3623
|
+
desktopOpen: defaultOpen && (typeof window === "undefined" || window.innerWidth >= 1024),
|
|
3624
|
+
isMobile: typeof window !== "undefined" && window.innerWidth < mobileBreakpoint
|
|
3397
3625
|
}));
|
|
3398
3626
|
const stateStore = useMemo6(() => suppliedStore ? stabilizeNavStateStore(suppliedStore) : ownedStore, [suppliedStore, ownedStore]);
|
|
3399
|
-
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);
|
|
3400
3630
|
const setMenu = useCallback8((menu2) => stateStore.setState({ menu: menu2 }), [stateStore]);
|
|
3401
3631
|
const setPeeking = useCallback8((isPeeking2) => stateStore.setState({ isPeeking: isPeeking2 }), [stateStore]);
|
|
3402
|
-
const [loadedKey, setLoadedKey] =
|
|
3403
|
-
|
|
3632
|
+
const [loadedKey, setLoadedKey] = useState13();
|
|
3633
|
+
useEffect15(() => {
|
|
3404
3634
|
if (!storageKey) {
|
|
3405
3635
|
setLoadedKey(void 0);
|
|
3406
3636
|
return;
|
|
@@ -3415,33 +3645,28 @@ function NavProvider({
|
|
|
3415
3645
|
stateStore.setState(initial);
|
|
3416
3646
|
setLoadedKey(storageKey);
|
|
3417
3647
|
}, [storageKey, defaultOpen, stateStore]);
|
|
3418
|
-
|
|
3648
|
+
useEffect15(() => {
|
|
3419
3649
|
if (!storageKey || loadedKey !== storageKey) return;
|
|
3420
3650
|
try {
|
|
3421
3651
|
window.localStorage.setItem(storageKey, JSON.stringify({ open: desktopOpen, width }));
|
|
3422
3652
|
} catch {
|
|
3423
3653
|
}
|
|
3424
3654
|
}, [storageKey, loadedKey, desktopOpen, width]);
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
};
|
|
3431
|
-
update();
|
|
3432
|
-
query.addEventListener("change", update);
|
|
3433
|
-
return () => query.removeEventListener("change", update);
|
|
3434
|
-
}, [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]);
|
|
3435
3660
|
const open = isMobile ? mobileOpen : desktopOpen;
|
|
3436
3661
|
const setOpen = useCallback8((next) => {
|
|
3437
|
-
stateStore.setState(
|
|
3438
|
-
}, [stateStore]);
|
|
3662
|
+
stateStore.setState(isMobile ? { mobileOpen: next } : { desktopOpen: next });
|
|
3663
|
+
}, [stateStore, isMobile]);
|
|
3439
3664
|
const close = useCallback8(() => setOpen(false), [setOpen]);
|
|
3440
|
-
const toggle = useCallback8(() => stateStore.setState((state) =>
|
|
3665
|
+
const toggle = useCallback8(() => stateStore.setState((state) => isMobile ? { mobileOpen: !state.mobileOpen } : { desktopOpen: !state.desktopOpen }), [stateStore, isMobile]);
|
|
3441
3666
|
const setWidth = useCallback8((next) => {
|
|
3442
3667
|
if (Number.isFinite(next)) stateStore.setState({ width: next });
|
|
3443
3668
|
}, [stateStore]);
|
|
3444
|
-
|
|
3669
|
+
useEffect15(() => {
|
|
3445
3670
|
if (!isMobile || !open) return void 0;
|
|
3446
3671
|
const onKeyDown = (event) => {
|
|
3447
3672
|
if (event.key === "Escape") close();
|
|
@@ -3490,8 +3715,8 @@ import { createPortal as createPortal3 } from "react-dom";
|
|
|
3490
3715
|
import { useCallback as useCallback15 } from "react";
|
|
3491
3716
|
|
|
3492
3717
|
// src/NavCollapsible.tsx
|
|
3493
|
-
import { cloneElement as cloneElement4, createContext as createContext5, useContext as useContext4, useId as useId2, useState as
|
|
3494
|
-
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";
|
|
3495
3720
|
var CollapsibleContext = createContext5(null);
|
|
3496
3721
|
function useCollapsible() {
|
|
3497
3722
|
const context = useContext4(CollapsibleContext);
|
|
@@ -3499,7 +3724,7 @@ function useCollapsible() {
|
|
|
3499
3724
|
return context;
|
|
3500
3725
|
}
|
|
3501
3726
|
function NavCollapsible({ children, defaultOpen = false }) {
|
|
3502
|
-
const [open, setOpen] =
|
|
3727
|
+
const [open, setOpen] = useState14(defaultOpen);
|
|
3503
3728
|
const contentId = useId2();
|
|
3504
3729
|
return /* @__PURE__ */ jsx9(CollapsibleContext.Provider, { value: { open, setOpen, contentId }, children });
|
|
3505
3730
|
}
|
|
@@ -3514,7 +3739,7 @@ function NavCollapsibleTrigger({ render, children, className, ...props }) {
|
|
|
3514
3739
|
if (!event.defaultPrevented) setOpen(!open);
|
|
3515
3740
|
}
|
|
3516
3741
|
};
|
|
3517
|
-
if (render) return /* @__PURE__ */ jsx9(
|
|
3742
|
+
if (render) return /* @__PURE__ */ jsx9(Fragment6, { children: cloneElement4(render, triggerProps) });
|
|
3518
3743
|
return /* @__PURE__ */ jsx9("button", { type: "button", className: cx("agentsam-nav__menu-button", className), ...props, ...triggerProps, children });
|
|
3519
3744
|
}
|
|
3520
3745
|
function NavCollapsibleContent({ className, ...props }) {
|
|
@@ -3603,13 +3828,17 @@ function NavTrigger({ className, onClick, "aria-label": ariaLabel = "Toggle navi
|
|
|
3603
3828
|
toggle();
|
|
3604
3829
|
onClick?.(event);
|
|
3605
3830
|
}, children: [
|
|
3606
|
-
/* @__PURE__ */
|
|
3831
|
+
/* @__PURE__ */ jsxs4("span", { className: "agentsam-nav__trigger-morph", "aria-hidden": "true", children: [
|
|
3832
|
+
/* @__PURE__ */ jsx15("span", {}),
|
|
3833
|
+
/* @__PURE__ */ jsx15("span", {}),
|
|
3834
|
+
/* @__PURE__ */ jsx15("span", {})
|
|
3835
|
+
] }),
|
|
3607
3836
|
/* @__PURE__ */ jsx15("span", { className: "agentsam-nav__trigger-help", "aria-hidden": "true", children: "Navigation" })
|
|
3608
3837
|
] });
|
|
3609
3838
|
}
|
|
3610
3839
|
|
|
3611
3840
|
// src/Surfaces.tsx
|
|
3612
|
-
import { Fragment as
|
|
3841
|
+
import { Fragment as Fragment8, useEffect as useEffect22, useId as useId3, useRef as useRef18, useState as useState22 } from "react";
|
|
3613
3842
|
import { createPortal as createPortal2 } from "react-dom";
|
|
3614
3843
|
|
|
3615
3844
|
// ../../apps/local-studio/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
|
|
@@ -7593,13 +7822,21 @@ var SubTrigger2 = DropdownMenuSubTrigger;
|
|
|
7593
7822
|
var SubContent2 = DropdownMenuSubContent;
|
|
7594
7823
|
|
|
7595
7824
|
// src/Surfaces.tsx
|
|
7596
|
-
import { Fragment as
|
|
7825
|
+
import { Fragment as Fragment9, jsx as jsx23, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
7597
7826
|
function useNavStyle() {
|
|
7598
7827
|
const { accentColor, tokens, width, resizable } = useNav();
|
|
7599
7828
|
return { ...resizable ? { "--nav-width": width + "px" } : {}, ...Object.fromEntries(Object.entries(tokens).map(([key, value]) => [`--nav-${key}`, value])), "--nav-accent": accentColor };
|
|
7600
7829
|
}
|
|
7601
|
-
function
|
|
7602
|
-
return /* @__PURE__ */
|
|
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
|
+
}
|
|
7838
|
+
function NavLaunchDock({ items, coverage = "phone", label = "Quick navigation" }) {
|
|
7839
|
+
return /* @__PURE__ */ jsx23("nav", { className: "as-nav-launch-dock", "data-nav-dock-coverage": coverage, "aria-label": label, children: items.map((item) => /* @__PURE__ */ jsxs5(
|
|
7603
7840
|
"button",
|
|
7604
7841
|
{
|
|
7605
7842
|
type: "button",
|
|
@@ -7621,7 +7858,7 @@ function NavScope({ className, style, ...props }) {
|
|
|
7621
7858
|
return /* @__PURE__ */ jsx23("div", { ...props, "data-nav-theme": theme, className: cx("as-nav-scope", className), style: { ...useNavStyle(), ...style } });
|
|
7622
7859
|
}
|
|
7623
7860
|
function MenuActions({ actions }) {
|
|
7624
|
-
return /* @__PURE__ */ jsx23(
|
|
7861
|
+
return /* @__PURE__ */ jsx23(Fragment9, { children: actions.map((action) => /* @__PURE__ */ jsxs5(Fragment8, { children: [
|
|
7625
7862
|
action.separatorBefore ? /* @__PURE__ */ jsx23(Separator2, { className: "as-nav-menu-separator" }) : null,
|
|
7626
7863
|
action.children?.length ? /* @__PURE__ */ jsxs5(Sub2, { children: [
|
|
7627
7864
|
/* @__PURE__ */ jsxs5(SubTrigger2, { className: "as-nav-menu-row", disabled: action.disabled || action.loading, "aria-busy": action.loading || void 0, children: [
|
|
@@ -7637,35 +7874,39 @@ function MenuActions({ actions }) {
|
|
|
7637
7874
|
] })
|
|
7638
7875
|
] }, action.id)) });
|
|
7639
7876
|
}
|
|
7640
|
-
function NavOverflowMenu({ label = "More options", actions = [], children, id: suppliedId, align = "end" }) {
|
|
7877
|
+
function NavOverflowMenu({ label = "More options", actions = [], children, id: suppliedId, align = "end", heading, conversationMobile = false }) {
|
|
7641
7878
|
const { menu, setMenu, theme } = useNav();
|
|
7642
7879
|
const generatedId = useId3();
|
|
7643
7880
|
const id = suppliedId ?? generatedId;
|
|
7644
7881
|
const style = useNavStyle();
|
|
7645
7882
|
return /* @__PURE__ */ jsxs5(Root22, { open: menu === id, onOpenChange: (open) => setMenu(open ? id : null), children: [
|
|
7646
7883
|
/* @__PURE__ */ jsx23(Trigger, { asChild: true, children: /* @__PURE__ */ jsx23("button", { type: "button", className: "as-nav-button", "aria-label": label, title: label, children: children ?? /* @__PURE__ */ jsx23(Ellipsis, {}) }) }),
|
|
7647
|
-
/* @__PURE__ */ jsx23(Portal22, { children: /* @__PURE__ */ jsxs5(Content22, { "data-nav-theme": theme, style, className: "as-nav-scope as-nav-popover", align, sideOffset: 8, collisionPadding: 12, children: [
|
|
7648
|
-
/* @__PURE__ */ jsx23(Label2, { className: "as-nav-menu-heading", children: label }),
|
|
7884
|
+
/* @__PURE__ */ jsx23(Portal22, { children: /* @__PURE__ */ jsxs5(Content22, { "data-nav-theme": theme, style, className: cx("as-nav-scope as-nav-popover", conversationMobile && "as-nav-conversation-mobile-menu"), align, sideOffset: conversationMobile ? -40 : 8, collisionPadding: 12, children: [
|
|
7885
|
+
/* @__PURE__ */ jsx23(Label2, { className: "as-nav-menu-heading", children: heading ?? label }),
|
|
7649
7886
|
actions.length ? /* @__PURE__ */ jsx23(MenuActions, { actions }) : /* @__PURE__ */ jsx23("div", { className: "as-nav-empty", children: "No actions available" })
|
|
7650
7887
|
] }) })
|
|
7651
7888
|
] });
|
|
7652
7889
|
}
|
|
7653
7890
|
function NavTopbarLogo({ variant = "mark", onClick, toggle = false }) {
|
|
7654
|
-
const { data, open, toggle: toggleNavigation } = useNav();
|
|
7655
|
-
const [logoFailed, setLogoFailed] =
|
|
7891
|
+
const { data, open, isMobile, toggle: toggleNavigation } = useNav();
|
|
7892
|
+
const [logoFailed, setLogoFailed] = useState22(false);
|
|
7656
7893
|
const label = toggle ? open ? "Close sidebar" : "Open sidebar" : data.brand?.name ?? "Home";
|
|
7657
7894
|
if (toggle) return /* @__PURE__ */ jsxs5(
|
|
7658
7895
|
"button",
|
|
7659
7896
|
{
|
|
7660
7897
|
type: "button",
|
|
7661
7898
|
className: "as-nav-work-brand-toggle",
|
|
7899
|
+
"data-mobile": isMobile || void 0,
|
|
7662
7900
|
"aria-label": label,
|
|
7663
7901
|
title: label + " (\u2318\u21E7S)",
|
|
7664
7902
|
"aria-keyshortcuts": "Meta+Shift+S",
|
|
7665
7903
|
"aria-expanded": open,
|
|
7666
|
-
onClick:
|
|
7904
|
+
onClick: () => {
|
|
7905
|
+
if (isMobile && !open) data.onMobileNavigationSectionChange?.("history");
|
|
7906
|
+
toggleNavigation();
|
|
7907
|
+
},
|
|
7667
7908
|
children: [
|
|
7668
|
-
/* @__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: [
|
|
7669
7910
|
/* @__PURE__ */ jsx23("img", { className: "as-nav-logo-dark", src: data.brand.logo, alt: "", onError: () => setLogoFailed(true) }),
|
|
7670
7911
|
/* @__PURE__ */ jsx23(
|
|
7671
7912
|
"img",
|
|
@@ -7678,12 +7919,15 @@ function NavTopbarLogo({ variant = "mark", onClick, toggle = false }) {
|
|
|
7678
7919
|
}
|
|
7679
7920
|
)
|
|
7680
7921
|
] }) : /* @__PURE__ */ jsx23(PanelLeft, {}) }),
|
|
7681
|
-
/* @__PURE__ */ jsx23("span", { className: "as-nav-work-brand-toggle__control", "aria-hidden": "true", children: /* @__PURE__ */ jsx23(
|
|
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
|
+
] }) })
|
|
7682
7926
|
]
|
|
7683
7927
|
}
|
|
7684
7928
|
);
|
|
7685
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: [
|
|
7686
|
-
/* @__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: [
|
|
7687
7931
|
/* @__PURE__ */ jsx23("img", { className: "as-nav-logo-dark", src: data.brand.logo, alt: "", onError: () => setLogoFailed(true) }),
|
|
7688
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) })
|
|
7689
7933
|
] }) : /* @__PURE__ */ jsx23(PanelLeft, {}) }),
|
|
@@ -7709,7 +7953,7 @@ function NavProjectContext() {
|
|
|
7709
7953
|
const conversation = data.conversation;
|
|
7710
7954
|
if (!data.project && !conversation && data.breadcrumbs?.length) return /* @__PURE__ */ jsx23(NavBreadcrumbs, {});
|
|
7711
7955
|
return /* @__PURE__ */ jsxs5("div", { className: "as-nav-context", children: [
|
|
7712
|
-
data.project ? /* @__PURE__ */ jsxs5(
|
|
7956
|
+
data.project ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7713
7957
|
/* @__PURE__ */ jsxs5(NavOverflowMenu, { label: data.project.name, actions: data.projectActions, children: [
|
|
7714
7958
|
/* @__PURE__ */ jsx23(Folder, {}),
|
|
7715
7959
|
/* @__PURE__ */ jsx23("span", { className: "as-nav-project-name", children: data.project.name }),
|
|
@@ -7733,10 +7977,10 @@ function NavFilesResources() {
|
|
|
7733
7977
|
}
|
|
7734
7978
|
function NavPinnedSummary() {
|
|
7735
7979
|
const { data } = useNav();
|
|
7736
|
-
const [open, setOpen] =
|
|
7737
|
-
const [expandedGroups, setExpandedGroups] =
|
|
7738
|
-
const [activeAdd, setActiveAdd] =
|
|
7739
|
-
|
|
7980
|
+
const [open, setOpen] = useState22(false);
|
|
7981
|
+
const [expandedGroups, setExpandedGroups] = useState22({});
|
|
7982
|
+
const [activeAdd, setActiveAdd] = useState22(null);
|
|
7983
|
+
useEffect22(() => {
|
|
7740
7984
|
setOpen(false);
|
|
7741
7985
|
setExpandedGroups({});
|
|
7742
7986
|
setActiveAdd(null);
|
|
@@ -7747,7 +7991,7 @@ function NavPinnedSummary() {
|
|
|
7747
7991
|
const item = (value, index2, group) => {
|
|
7748
7992
|
const entry = typeof value === "string" ? { id: group + index2, label: value, kind: group, onSelect: void 0 } : value;
|
|
7749
7993
|
const Icon2 = group === "sources" ? FileText : FileCode2;
|
|
7750
|
-
const contents = /* @__PURE__ */ jsxs5(
|
|
7994
|
+
const contents = /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7751
7995
|
/* @__PURE__ */ jsx23(Icon2, { size: 16, "aria-hidden": "true" }),
|
|
7752
7996
|
/* @__PURE__ */ jsx23("span", { className: "as-nav-activity-item__title", children: entry.label }),
|
|
7753
7997
|
entry.kind ? /* @__PURE__ */ jsx23("small", { children: entry.kind }) : null
|
|
@@ -7826,7 +8070,7 @@ function NavPinnedSummary() {
|
|
|
7826
8070
|
) }),
|
|
7827
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: [
|
|
7828
8072
|
/* @__PURE__ */ jsx23(Label2, { className: "as-nav-activity-title", children: "Sources & outputs" }),
|
|
7829
|
-
subagents.length ? /* @__PURE__ */ jsxs5(
|
|
8073
|
+
subagents.length ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7830
8074
|
/* @__PURE__ */ jsxs5("section", { className: "as-nav-activity-section", "aria-label": "Subagents", children: [
|
|
7831
8075
|
/* @__PURE__ */ jsxs5("div", { className: "as-nav-activity-section-head", children: [
|
|
7832
8076
|
/* @__PURE__ */ jsx23("span", { children: "Subagents" }),
|
|
@@ -7867,12 +8111,12 @@ function NavShareIcon() {
|
|
|
7867
8111
|
/* @__PURE__ */ jsx23("path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" })
|
|
7868
8112
|
] });
|
|
7869
8113
|
}
|
|
7870
|
-
function NavConversationActions() {
|
|
8114
|
+
function NavConversationActions({ additionalActions = [], mobile = false } = {}) {
|
|
7871
8115
|
const { data } = useNav();
|
|
7872
|
-
const [renaming, setRenaming] =
|
|
7873
|
-
const [deleting, setDeleting] =
|
|
8116
|
+
const [renaming, setRenaming] = useState22(false);
|
|
8117
|
+
const [deleting, setDeleting] = useState22(false);
|
|
7874
8118
|
const conversation = data.conversation;
|
|
7875
|
-
|
|
8119
|
+
useEffect22(() => {
|
|
7876
8120
|
setRenaming(false);
|
|
7877
8121
|
setDeleting(false);
|
|
7878
8122
|
}, [conversation?.id]);
|
|
@@ -7885,8 +8129,8 @@ function NavConversationActions() {
|
|
|
7885
8129
|
if (data.onRenameConversation) add({ id: "rename", label: "Rename", icon: /* @__PURE__ */ jsx23(Pencil, {}), onSelect: () => setRenaming(true) });
|
|
7886
8130
|
if (data.onPinConversation) add({ id: "pin", label: conversation.pinned ? "Unpin" : "Pin", icon: /* @__PURE__ */ jsx23(Pin, {}), onSelect: () => data.onPinConversation?.(conversation.id) });
|
|
7887
8131
|
extras.forEach((action, index2) => add({ ...action, separatorBefore: action.separatorBefore || index2 === 0 && actions.length > 0 }));
|
|
8132
|
+
additionalActions.forEach((action, index2) => add({ ...action, separatorBefore: action.separatorBefore || index2 === 0 && actions.length > 0 }));
|
|
7888
8133
|
if (data.onArchiveConversation) add({ id: "archive", label: "Archive", icon: /* @__PURE__ */ jsx23(Archive, {}), separatorBefore: true, onSelect: () => data.onArchiveConversation?.(conversation.id) });
|
|
7889
|
-
else if (data.onDeleteConversation) add({ id: "archive", label: "Archive (save to account first)", icon: /* @__PURE__ */ jsx23(Archive, {}), separatorBefore: true, disabled: true });
|
|
7890
8134
|
if (data.onDeleteConversation) add({ id: "delete", label: "Delete", icon: /* @__PURE__ */ jsx23(Trash2, {}), destructive: true, separatorBefore: !data.onArchiveConversation && !actions.some((item) => item.id === "archive"), onSelect: () => setDeleting(true) });
|
|
7891
8135
|
if (data.onAssignConversationToProject && data.projects?.length) add({
|
|
7892
8136
|
id: "project",
|
|
@@ -7898,8 +8142,18 @@ function NavConversationActions() {
|
|
|
7898
8142
|
...conversation.projectId ? [{ id: "project-clear", label: "Remove from project", separatorBefore: true, onSelect: () => data.onAssignConversationToProject?.(conversation.id, null) }] : []
|
|
7899
8143
|
]
|
|
7900
8144
|
});
|
|
7901
|
-
|
|
7902
|
-
|
|
8145
|
+
const mobileOrder = ["share-chat", "pin", "project", "plugins", "lock-chat", "uploaded-files", "find-chat", "rename", "workspace-actions", "copy", "archive", "delete"];
|
|
8146
|
+
if (mobile && data.onShare) add({ id: "share-chat", label: "Share", icon: /* @__PURE__ */ jsx23(NavShareIcon, {}), onSelect: data.onShare });
|
|
8147
|
+
const displayedActions = mobile ? [...actions].sort((a, b) => {
|
|
8148
|
+
const rank = (id) => mobileOrder.includes(id) ? mobileOrder.indexOf(id) : 9;
|
|
8149
|
+
return rank(a.id) - rank(b.id);
|
|
8150
|
+
}).map((action) => ({
|
|
8151
|
+
...action,
|
|
8152
|
+
separatorBefore: false,
|
|
8153
|
+
label: action.id === "project" ? "Add to project" : action.id === "share-chat" ? "Share" : action.label
|
|
8154
|
+
})) : actions;
|
|
8155
|
+
return /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
8156
|
+
/* @__PURE__ */ jsx23(NavOverflowMenu, { id: "active-conversation-actions", label: "Conversation options", heading: mobile ? conversation.title : void 0, conversationMobile: mobile, actions: displayedActions }),
|
|
7903
8157
|
data.onRenameConversation ? /* @__PURE__ */ jsx23(RenameDialog, { open: renaming, onOpenChange: setRenaming, title: "Rename conversation", value: conversation.title, onSave: (title) => data.onRenameConversation?.(conversation.id, title) }) : null,
|
|
7904
8158
|
data.onDeleteConversation ? /* @__PURE__ */ jsx23(ConfirmDeleteDialog, { open: deleting, onOpenChange: setDeleting, title: conversation.title, onConfirm: () => data.onDeleteConversation?.(conversation.id) }) : null
|
|
7905
8159
|
] });
|
|
@@ -7922,7 +8176,14 @@ function NavAccountSwitcher({ accounts, activeAccountId, onAccountChange, expand
|
|
|
7922
8176
|
...data.accountActions ?? []
|
|
7923
8177
|
];
|
|
7924
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: [
|
|
7925
|
-
/* @__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
|
+
] }),
|
|
7926
8187
|
expanded ? /* @__PURE__ */ jsxs5("span", { className: "as-nav-account-copy", children: [
|
|
7927
8188
|
/* @__PURE__ */ jsx23("strong", { children: account?.name ?? "Account" }),
|
|
7928
8189
|
account?.plan ? /* @__PURE__ */ jsx23("small", { children: account.plan }) : null
|
|
@@ -7944,7 +8205,7 @@ function NavTopbar({
|
|
|
7944
8205
|
showNavigationTrigger = true,
|
|
7945
8206
|
showAccount = false
|
|
7946
8207
|
}) {
|
|
7947
|
-
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: [
|
|
7948
8209
|
/* @__PURE__ */ jsxs5("div", { className: "as-nav-topbar-leading", children: [
|
|
7949
8210
|
showNavigationTrigger ? /* @__PURE__ */ jsx23(NavTrigger, { "aria-label": "Toggle sidebar" }) : null,
|
|
7950
8211
|
!startup ? contextSlot ?? /* @__PURE__ */ jsx23(NavProjectContext, {}) : null
|
|
@@ -7952,7 +8213,7 @@ function NavTopbar({
|
|
|
7952
8213
|
startup ? /* @__PURE__ */ jsx23("div", { className: "as-nav-topbar-center", children: modeSlot ?? /* @__PURE__ */ jsx23(NavModeSwitcher, {}) }) : modeSlot,
|
|
7953
8214
|
/* @__PURE__ */ jsx23(NavTopbarSpacer, {}),
|
|
7954
8215
|
/* @__PURE__ */ jsxs5("div", { className: "as-nav-topbar-actions", children: [
|
|
7955
|
-
!startup ? /* @__PURE__ */ jsxs5(
|
|
8216
|
+
!startup ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
7956
8217
|
/* @__PURE__ */ jsx23(NavConversationActions, {}),
|
|
7957
8218
|
/* @__PURE__ */ jsx23(NavShareButton, {}),
|
|
7958
8219
|
/* @__PURE__ */ jsx23(NavPinnedSummary, {})
|
|
@@ -7964,8 +8225,8 @@ function NavTopbar({
|
|
|
7964
8225
|
}
|
|
7965
8226
|
function RenameDialog({ open, onOpenChange, title, value, onSave }) {
|
|
7966
8227
|
const { theme } = useNav();
|
|
7967
|
-
const [draft, setDraft] =
|
|
7968
|
-
|
|
8228
|
+
const [draft, setDraft] = useState22(value);
|
|
8229
|
+
useEffect22(() => {
|
|
7969
8230
|
if (open) setDraft(value);
|
|
7970
8231
|
}, [open, value]);
|
|
7971
8232
|
const style = useNavStyle();
|
|
@@ -8017,7 +8278,7 @@ function ConfirmDeleteDialog({ open, onOpenChange, title, onConfirm }) {
|
|
|
8017
8278
|
}
|
|
8018
8279
|
function ConversationRow({ item }) {
|
|
8019
8280
|
const { data, close, isMobile } = useNav();
|
|
8020
|
-
const [rename, setRename] =
|
|
8281
|
+
const [rename, setRename] = useState22(false);
|
|
8021
8282
|
const selected = item.id === data.conversation?.id;
|
|
8022
8283
|
const actions = data.getConversationActions?.(item) ?? [
|
|
8023
8284
|
...data.onPinConversation ? [{ id: "pin", label: item.pinned ? "Unpin chat" : "Pin chat", icon: /* @__PURE__ */ jsx23(Pin, {}), onSelect: () => data.onPinConversation?.(item.id) }] : [],
|
|
@@ -8063,10 +8324,10 @@ function PinnedResourceRow({ item }) {
|
|
|
8063
8324
|
}
|
|
8064
8325
|
function ProjectRow({ item, threads = [] }) {
|
|
8065
8326
|
const { data, close, isMobile } = useNav();
|
|
8066
|
-
const [rename, setRename] =
|
|
8327
|
+
const [rename, setRename] = useState22(false);
|
|
8067
8328
|
const selected = item.id === data.project?.id;
|
|
8068
|
-
const [expanded, setExpanded] =
|
|
8069
|
-
|
|
8329
|
+
const [expanded, setExpanded] = useState22(item.id === data.conversation?.projectId);
|
|
8330
|
+
useEffect22(() => {
|
|
8070
8331
|
if (item.id === data.conversation?.projectId) setExpanded(true);
|
|
8071
8332
|
}, [item.id, data.conversation?.projectId]);
|
|
8072
8333
|
const actions = data.getProjectActions?.(item) ?? [
|
|
@@ -8122,8 +8383,8 @@ function NavIconAction({ label, children, ...props }) {
|
|
|
8122
8383
|
function DestinationRow({ item, depth = 0 }) {
|
|
8123
8384
|
const { data, close, isMobile, open, setOpen, storageKey } = useNav();
|
|
8124
8385
|
const active = navDestinationActive(item);
|
|
8125
|
-
const [expanded, setExpanded] =
|
|
8126
|
-
|
|
8386
|
+
const [expanded, setExpanded] = useState22(active);
|
|
8387
|
+
useEffect22(() => {
|
|
8127
8388
|
if (active) {
|
|
8128
8389
|
setExpanded(true);
|
|
8129
8390
|
return;
|
|
@@ -8205,9 +8466,9 @@ function DestinationRow({ item, depth = 0 }) {
|
|
|
8205
8466
|
}
|
|
8206
8467
|
function HistoryCollection({ id, title, items, empty, searching = false, onOpen }) {
|
|
8207
8468
|
const { storageKey } = useNav();
|
|
8208
|
-
const [expanded, setExpanded] =
|
|
8209
|
-
const [more, setMore] =
|
|
8210
|
-
|
|
8469
|
+
const [expanded, setExpanded] = useState22(id === "projects");
|
|
8470
|
+
const [more, setMore] = useState22(false);
|
|
8471
|
+
useEffect22(() => {
|
|
8211
8472
|
if (!storageKey) return;
|
|
8212
8473
|
try {
|
|
8213
8474
|
setExpanded(JSON.parse(localStorage.getItem(storageKey + ":collections-v2") || "{}")[id] ?? id === "projects");
|
|
@@ -8232,18 +8493,46 @@ function HistoryCollection({ id, title, items, empty, searching = false, onOpen
|
|
|
8232
8493
|
] }),
|
|
8233
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
|
|
8234
8495
|
] }),
|
|
8235
|
-
shown ? /* @__PURE__ */ jsxs5(
|
|
8496
|
+
shown ? /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
8236
8497
|
items.length ? more || searching ? items : items.slice(0, id === "recent" ? 20 : 6) : /* @__PURE__ */ jsx23("p", { className: "as-nav-empty", children: empty }),
|
|
8237
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
|
|
8238
8499
|
] }) : null
|
|
8239
8500
|
] });
|
|
8240
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
|
+
}
|
|
8241
8530
|
function SidenavContents() {
|
|
8242
8531
|
const { data, close, isMobile, open, setOpen } = useNav();
|
|
8243
|
-
const [query, setQuery] =
|
|
8244
|
-
const [searchOpen, setSearchOpen] =
|
|
8532
|
+
const [query, setQuery] = useState22("");
|
|
8533
|
+
const [searchOpen, setSearchOpen] = useState22(false);
|
|
8245
8534
|
const searchRef = useRef18(null);
|
|
8246
|
-
|
|
8535
|
+
useEffect22(() => {
|
|
8247
8536
|
if (searchOpen) searchRef.current?.focus();
|
|
8248
8537
|
}, [searchOpen]);
|
|
8249
8538
|
const normalized = query.trim().toLowerCase();
|
|
@@ -8262,10 +8551,10 @@ function SidenavContents() {
|
|
|
8262
8551
|
/* @__PURE__ */ jsx23("span", { children: "New chat" })
|
|
8263
8552
|
] }) : null;
|
|
8264
8553
|
const insertAfter = data.destinations?.some((item) => item.id === data.newConversationAfter) ? data.newConversationAfter : void 0;
|
|
8265
|
-
return /* @__PURE__ */ jsxs5(
|
|
8554
|
+
return /* @__PURE__ */ jsxs5(Fragment9, { children: [
|
|
8266
8555
|
data.showSidebarHeader !== false || isMobile ? /* @__PURE__ */ jsxs5("div", { className: "as-nav-sidenav-head", children: [
|
|
8267
8556
|
/* @__PURE__ */ jsx23(NavTopbarLogo, { toggle: true }),
|
|
8268
|
-
/* @__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" }),
|
|
8269
8558
|
data.showHistory !== false ? /* @__PURE__ */ jsx23(
|
|
8270
8559
|
"button",
|
|
8271
8560
|
{
|
|
@@ -8305,7 +8594,7 @@ function SidenavContents() {
|
|
|
8305
8594
|
] }) }) : null,
|
|
8306
8595
|
/* @__PURE__ */ jsxs5("div", { className: "as-nav-destinations", children: [
|
|
8307
8596
|
!insertAfter ? newConversation : null,
|
|
8308
|
-
(data.destinations ?? []).map((item) => /* @__PURE__ */ jsxs5(
|
|
8597
|
+
(data.destinations ?? []).map((item) => /* @__PURE__ */ jsxs5(Fragment8, { children: [
|
|
8309
8598
|
/* @__PURE__ */ jsx23(DestinationRow, { item }),
|
|
8310
8599
|
item.id === insertAfter ? newConversation : null
|
|
8311
8600
|
] }, item.id))
|
|
@@ -8355,11 +8644,157 @@ function SidenavContents() {
|
|
|
8355
8644
|
/* @__PURE__ */ jsx23("div", { className: "as-nav-sidenav-foot", children: /* @__PURE__ */ jsx23(NavAccountSwitcher, { expanded: true }) })
|
|
8356
8645
|
] });
|
|
8357
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
|
+
}
|
|
8358
8793
|
function NavSidenav() {
|
|
8359
|
-
const { open, isMobile, isPeeking, peekable, setPeeking, toggle, menu, resizable, width, setWidth } = useNav();
|
|
8794
|
+
const { data, open, isMobile, isPeeking, peekable, setPeeking, setOpen, toggle, menu, resizable, width, setWidth } = useNav();
|
|
8360
8795
|
const mobileDrawerRef = useRef18(null);
|
|
8361
8796
|
const wasMobileOpen = useRef18(false);
|
|
8362
|
-
const [hint, setHint] =
|
|
8797
|
+
const [hint, setHint] = useState22(null);
|
|
8363
8798
|
const hintTimer = useRef18(void 0);
|
|
8364
8799
|
const hintRow = useRef18(null);
|
|
8365
8800
|
const hideHint = () => {
|
|
@@ -8399,11 +8834,11 @@ function NavSidenav() {
|
|
|
8399
8834
|
setHint({ label, top: Math.max(8, Math.min(window.innerHeight - 44, rect.top + (rect.height - 32) / 2)), left: rect.right + 10 });
|
|
8400
8835
|
}, 160);
|
|
8401
8836
|
};
|
|
8402
|
-
|
|
8837
|
+
useEffect22(() => {
|
|
8403
8838
|
hideHint();
|
|
8404
8839
|
return () => clearTimeout(hintTimer.current);
|
|
8405
8840
|
}, [open, isMobile, menu]);
|
|
8406
|
-
|
|
8841
|
+
useEffect22(() => {
|
|
8407
8842
|
const handleNavigationShortcut = (event) => {
|
|
8408
8843
|
if ((event.metaKey || event.ctrlKey) && event.shiftKey && !event.altKey && event.key.toLowerCase() === "s") {
|
|
8409
8844
|
event.preventDefault();
|
|
@@ -8413,7 +8848,7 @@ function NavSidenav() {
|
|
|
8413
8848
|
window.addEventListener("keydown", handleNavigationShortcut);
|
|
8414
8849
|
return () => window.removeEventListener("keydown", handleNavigationShortcut);
|
|
8415
8850
|
}, [toggle]);
|
|
8416
|
-
|
|
8851
|
+
useEffect22(() => {
|
|
8417
8852
|
const dismiss = () => hideHint();
|
|
8418
8853
|
window.addEventListener("agentsam:navigate", dismiss);
|
|
8419
8854
|
window.addEventListener("popstate", dismiss);
|
|
@@ -8430,7 +8865,7 @@ function NavSidenav() {
|
|
|
8430
8865
|
document.removeEventListener("visibilitychange", dismiss);
|
|
8431
8866
|
};
|
|
8432
8867
|
}, []);
|
|
8433
|
-
|
|
8868
|
+
useEffect22(() => {
|
|
8434
8869
|
if (!isMobile) {
|
|
8435
8870
|
wasMobileOpen.current = false;
|
|
8436
8871
|
return;
|
|
@@ -8445,6 +8880,15 @@ function NavSidenav() {
|
|
|
8445
8880
|
document.querySelector("[data-shared-nav-toggle]")?.focus();
|
|
8446
8881
|
}
|
|
8447
8882
|
}, [isMobile, open]);
|
|
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: [
|
|
8884
|
+
/* @__PURE__ */ jsx23(DialogOverlay, { className: "as-nav-mobile-immersive-overlay" }),
|
|
8885
|
+
/* @__PURE__ */ jsxs5(DialogContent, { ref: (element) => {
|
|
8886
|
+
mobileDrawerRef.current = element;
|
|
8887
|
+
}, "aria-describedby": void 0, className: cx("as-nav-mobile-immersive-drawer", data.mobileNavigationPresentation === "glass" && "as-nav-glass-drawer"), children: [
|
|
8888
|
+
/* @__PURE__ */ jsx23(DialogTitle, { className: "as-nav-sr-only", children: "Application navigation" }),
|
|
8889
|
+
data.mobileNavigationPresentation === "glass" ? /* @__PURE__ */ jsx23(GlassMobileContents, {}) : /* @__PURE__ */ jsx23(SidenavContents, {})
|
|
8890
|
+
] })
|
|
8891
|
+
] }) }) });
|
|
8448
8892
|
if (isMobile) return /* @__PURE__ */ jsx23(NavScope, { className: "as-nav-mobile-push-shell", "data-open": open, children: /* @__PURE__ */ jsx23(
|
|
8449
8893
|
"aside",
|
|
8450
8894
|
{
|
|
@@ -8521,7 +8965,7 @@ function NavSidenav() {
|
|
|
8521
8965
|
}
|
|
8522
8966
|
|
|
8523
8967
|
// src/Nav.tsx
|
|
8524
|
-
import { Fragment as
|
|
8968
|
+
import { Fragment as Fragment10, jsx as jsx24, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
8525
8969
|
function NavRoot({ className, children, ...props }) {
|
|
8526
8970
|
const { close, isMobile, isPeeking, open, peekable, resizable, setPeeking, setWidth, width } = useNav();
|
|
8527
8971
|
const startResize = useCallback15((event) => {
|
|
@@ -8537,7 +8981,7 @@ function NavRoot({ className, children, ...props }) {
|
|
|
8537
8981
|
window.addEventListener("pointermove", onPointerMove);
|
|
8538
8982
|
window.addEventListener("pointerup", stop, { once: true });
|
|
8539
8983
|
}, [isMobile, setWidth, width]);
|
|
8540
|
-
return /* @__PURE__ */ jsxs6(
|
|
8984
|
+
return /* @__PURE__ */ jsxs6(Fragment10, { children: [
|
|
8541
8985
|
isMobile && open ? /* @__PURE__ */ jsx24("button", { type: "button", className: "agentsam-nav__backdrop", "aria-label": "Close navigation", onClick: close }) : null,
|
|
8542
8986
|
/* @__PURE__ */ jsxs6(
|
|
8543
8987
|
"aside",
|
|
@@ -8598,7 +9042,7 @@ var Nav = Object.assign(NavRoot, {
|
|
|
8598
9042
|
// src/browser.tsx
|
|
8599
9043
|
import { jsx as jsx25, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
8600
9044
|
function navIcon(name) {
|
|
8601
|
-
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 };
|
|
8602
9046
|
return createElement8(icons[name] ?? Puzzle, { "aria-hidden": true });
|
|
8603
9047
|
}
|
|
8604
9048
|
function mountNav(options2) {
|
|
@@ -8607,12 +9051,15 @@ function mountNav(options2) {
|
|
|
8607
9051
|
anchor.style.display = "contents";
|
|
8608
9052
|
(options2.sidenav ?? options2.topbar ?? options2.breadcrumbs).parentElement.appendChild(anchor);
|
|
8609
9053
|
const root = createRoot(anchor, { identifierPrefix: "agentsam-host-nav-" + crypto.randomUUID() + "-" });
|
|
8610
|
-
const stateStore = options2.stateStore ?? createNavState({
|
|
9054
|
+
const stateStore = options2.stateStore ?? createNavState({
|
|
9055
|
+
desktopOpen: (options2.defaultOpen ?? true) && window.innerWidth >= 1024,
|
|
9056
|
+
isMobile: window.innerWidth < (options2.mobileBreakpoint ?? 768)
|
|
9057
|
+
});
|
|
8611
9058
|
let current = { ...options2, stateStore };
|
|
8612
9059
|
let controls;
|
|
8613
9060
|
function StateBridge() {
|
|
8614
9061
|
const nav = useNav();
|
|
8615
|
-
|
|
9062
|
+
useEffect23(() => {
|
|
8616
9063
|
controls = { toggle: nav.toggle, setOpen: nav.setOpen };
|
|
8617
9064
|
current.onStateChange?.({ open: nav.open, isMobile: nav.isMobile, width: nav.width });
|
|
8618
9065
|
}, [nav.toggle, nav.setOpen, nav.open, nav.isMobile, nav.width]);
|
|
@@ -8722,6 +9169,7 @@ lucide-react/dist/esm/defaultAttributes.js:
|
|
|
8722
9169
|
lucide-react/dist/esm/Icon.js:
|
|
8723
9170
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
8724
9171
|
lucide-react/dist/esm/icons/archive.js:
|
|
9172
|
+
lucide-react/dist/esm/icons/arrow-left.js:
|
|
8725
9173
|
lucide-react/dist/esm/icons/bell.js:
|
|
8726
9174
|
lucide-react/dist/esm/icons/bot.js:
|
|
8727
9175
|
lucide-react/dist/esm/icons/box.js:
|
|
@@ -8735,6 +9183,7 @@ lucide-react/dist/esm/icons/code.js:
|
|
|
8735
9183
|
lucide-react/dist/esm/icons/credit-card.js:
|
|
8736
9184
|
lucide-react/dist/esm/icons/database.js:
|
|
8737
9185
|
lucide-react/dist/esm/icons/ellipsis.js:
|
|
9186
|
+
lucide-react/dist/esm/icons/external-link.js:
|
|
8738
9187
|
lucide-react/dist/esm/icons/file-code-2.js:
|
|
8739
9188
|
lucide-react/dist/esm/icons/file-image.js:
|
|
8740
9189
|
lucide-react/dist/esm/icons/file-text.js:
|
|
@@ -8754,6 +9203,7 @@ lucide-react/dist/esm/icons/link.js:
|
|
|
8754
9203
|
lucide-react/dist/esm/icons/loader-circle.js:
|
|
8755
9204
|
lucide-react/dist/esm/icons/log-out.js:
|
|
8756
9205
|
lucide-react/dist/esm/icons/mail.js:
|
|
9206
|
+
lucide-react/dist/esm/icons/message-square.js:
|
|
8757
9207
|
lucide-react/dist/esm/icons/package.js:
|
|
8758
9208
|
lucide-react/dist/esm/icons/palette.js:
|
|
8759
9209
|
lucide-react/dist/esm/icons/panel-left.js:
|
|
@@ -8762,6 +9212,7 @@ lucide-react/dist/esm/icons/pencil.js:
|
|
|
8762
9212
|
lucide-react/dist/esm/icons/pin.js:
|
|
8763
9213
|
lucide-react/dist/esm/icons/plus.js:
|
|
8764
9214
|
lucide-react/dist/esm/icons/puzzle.js:
|
|
9215
|
+
lucide-react/dist/esm/icons/refresh-cw.js:
|
|
8765
9216
|
lucide-react/dist/esm/icons/search.js:
|
|
8766
9217
|
lucide-react/dist/esm/icons/settings.js:
|
|
8767
9218
|
lucide-react/dist/esm/icons/shopping-bag.js:
|