@inneranimalmedia/agentsam-sdk 2.6.17 → 2.6.18
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 +15 -0
- package/apps/agentsam-copro-studio/agentsam.app.json +125 -0
- 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/agentsam.app.json +144 -0
- package/apps/ecommerce-cms-agentsam/agentsam.app.json +658 -0
- package/apps/local-studio/agentsam.app.json +271 -0
- package/apps/samsketch/agentsam.app.json +136 -0
- package/contracts/source-types.v2.json +86 -1
- package/docs/CAPABILITIES.md +56 -0
- 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/architecture/ACP_D1_HOSTING.md +67 -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/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/ECOMMERCE_THEME_START_FLOW.md +31 -0
- package/docs/architecture/LIVE_AST_AND_CREATIVE_RESOURCE_GRAPH.md +129 -0
- package/docs/architecture/PRIMETECH_SCENE_V2_READINESS.md +89 -0
- package/docs/architecture/PYTHON_CAD_SERVICE_TRANSPORT.md +116 -0
- package/docs/architecture/SCHEMA_AUTHORITIES.md +83 -0
- package/docs/architecture/app-module-plugin-classification.md +71 -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 +203 -0
- package/docs/architecture/primetech/PORTABLE_EDITOR_CONTRACTS.md +192 -0
- package/docs/architecture/primetech/README.md +65 -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/engineering/CMS_DATA_AUTHORITY_2026-11-03.md +4 -2
- package/docs/generated/SDK_CAPABILITY_INVENTORY.md +10 -10
- package/docs/intake/product-capabilities.proposed.ts +6 -6
- package/docs/operations/CLOUDFLARE-QUEUE-OBSERVABILITY.md +1 -1
- package/docs/product/AGENTSAM_PRODUCT_EXPERIENCE_STANDARD.md +1 -1
- package/docs/reference/AGENTSAM-CLI-WORKFLOWS.md +1 -1
- package/docs/reference/AGENTSAM-REGISTRY.generated.md +25 -16
- package/docs/sam/opencv-media.md +63 -0
- package/docs/standards/DESKTOP_WEB_PARITY_ACCEPTANCE.md +42 -0
- package/migrations/d1/0001_agentsam_plugin_runtime.sql +0 -2
- 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/generated/20261123_portable_cli_seed.sql +97 -0
- package/migrations/d1/generated/20261123_source_skill_seed.sql +3881 -0
- package/migrations/runtime/0012_agent_run_event_sequence.sql +27 -0
- package/package.json +57 -17
- 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-architectural-intelligence/package.json +1 -1
- package/packages/agentsam-brand/package.json +3 -2
- package/packages/agentsam-brand/src/core/capabilities.js +108 -48
- package/packages/agentsam-brand/src/extract.js +6 -1
- package/packages/agentsam-brand/src/index.js +1 -0
- 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 +19 -0
- package/packages/agentsam-brand/src/workspace.js +166 -0
- package/packages/agentsam-cms/README.md +11 -0
- package/packages/agentsam-cms/package.json +4 -3
- 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/standalone.test.mjs +7 -3
- package/packages/agentsam-cms/test/studio-bridge-protocol.test.mjs +26 -0
- package/packages/agentsam-communications/package.json +3 -2
- package/packages/agentsam-communications/src/samspeaks-runtime.js +126 -0
- package/packages/agentsam-contracts/README.md +67 -0
- package/packages/agentsam-contracts/agentsam.package.json +46 -12
- package/packages/agentsam-contracts/dist/agent.d.ts +6 -3
- 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 +17836 -349
- 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 +91 -3
- package/packages/agentsam-contracts/dist/run.js +28 -0
- 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 +2 -0
- package/packages/agentsam-contracts/package.json +42 -3
- package/packages/agentsam-contracts/schemas/activity.v1.schema.json +142 -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 +411 -0
- package/packages/agentsam-contracts/schemas/run-start.v1.schema.json +40 -0
- package/packages/agentsam-contracts/schemas/run.v1.schema.json +243 -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 -18
- 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 +93 -16
- 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 +2 -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 +44 -0
- 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-desktop-shell/scripts/app-discovery.mjs +36 -25
- package/packages/agentsam-errors/package.json +1 -1
- package/packages/agentsam-goalguru/agentsam.app.json +97 -0
- package/packages/agentsam-goap/package.json +2 -2
- package/packages/agentsam-hooks/package.json +1 -1
- package/packages/agentsam-knowledge/package.json +1 -1
- package/packages/agentsam-merch/package.json +1 -1
- package/packages/agentsam-nav/dist/Surfaces.d.ts +14 -4
- package/packages/agentsam-nav/dist/browser.global.js +16 -16
- package/packages/agentsam-nav/dist/browser.js +65 -22
- package/packages/agentsam-nav/dist/contracts.d.ts +2 -0
- package/packages/agentsam-nav/dist/index.d.ts +1 -1
- package/packages/agentsam-nav/dist/index.js +62 -21
- package/packages/agentsam-nav/dist/shell.css +149 -4
- package/packages/agentsam-nav/dist/theme.css +149 -4
- package/packages/agentsam-nav/dist/useAdminApps.d.ts +21 -2
- package/packages/agentsam-nav/package.json +1 -1
- 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/package.json +1 -1
- package/packages/agentsam-occt/src/native-provider.mjs +1 -1
- 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-vault/package.json +5 -1
- 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/index.js +10 -0
- package/packages/agentsam-vault/src/providers/registry.js +8 -0
- package/packages/agentsam-workbench/README.md +27 -3
- package/packages/agentsam-workbench/package.json +26 -4
- package/packages/agentsam-workbench/src/agent/AskAgentSamPill.tsx +17 -0
- package/packages/agentsam-workbench/src/agent/MiniAgentSam.tsx +144 -20
- package/packages/agentsam-workbench/src/agent/contextual-composer.css +7 -0
- package/packages/agentsam-workbench/src/agent/index.ts +1 -0
- package/packages/agentsam-workbench/src/agent/mini-agentsam.css +54 -0
- package/packages/agentsam-workbench/src/design/DesignWorkspaceFrame.tsx +277 -82
- package/packages/agentsam-workbench/src/design/design-workspace.css +173 -109
- 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 +279 -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/widgets/registry.ts +4 -4
- package/packages/agentsam-workbench/src/workflows/WorkflowStudio.tsx +936 -0
- package/packages/agentsam-workbench/src/workflows/index.ts +5 -0
- package/packages/agentsam-workbench/src/workflows/model.ts +207 -0
- package/packages/agentsam-workbench/src/workflows/types.ts +206 -0
- package/packages/agentsam-workbench/src/workflows/workflow-studio.css +290 -0
- package/packages/catalog/generated/packages.json +157 -45
- package/packages/connectors/cfoa/package.json +7 -2
- package/packages/connectors/cfoa/src/PERMISSION_REGISTRY.md +45 -0
- package/packages/connectors/cfoa/src/api-client.js +4 -0
- package/packages/connectors/cfoa/src/capabilities.js +123 -285
- package/packages/connectors/cfoa/src/families/media.js +16 -12
- package/packages/connectors/cfoa/src/index.js +31 -37
- package/packages/connectors/cfoa/src/oauth-persist.js +18 -2
- package/packages/connectors/cfoa/src/permission-options.js +147 -1038
- package/packages/connectors/cfoa/src/routes.js +92 -35
- package/packages/connectors/cfoa/src/scope-catalog.js +16 -351
- package/packages/connectors/cfoa/src/scope-registry.js +248 -0
- package/packages/connectors/cfoa/test/scope-registry.test.mjs +168 -0
- package/packages/connectors/cfoa/tests/capabilities.test.mjs +86 -45
- package/packages/connectors/cfoa/tests/connector.test.mjs +143 -0
- package/packages/connectors/cfoa/tests/media-discovery.test.mjs +34 -10
- package/packages/identity/.agentsam/features/oauth-login-portal/agentsam.feature.json +1 -1
- package/packages/identity/agentsam.package.json +4 -4
- 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 +11 -6
- package/packages/identity/schema/agentsam.identity/manifest.json +21 -4
- package/packages/identity/src/adapters/account-security-store.js +7 -0
- package/packages/identity/src/adapters/column-support.js +39 -0
- package/packages/identity/src/adapters/iam-compat/index.js +19 -4
- 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/identity-store.js +2 -2
- package/packages/identity/src/core/password-gate.js +116 -0
- 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/native-handoff.js +2 -2
- package/packages/identity/src/server/identity-service.js +1 -1
- package/packages/identity/src/server/worker-router.js +16 -5
- package/packages/identity/tests/identity-portal-e2e.test.mjs +166 -0
- package/packages/identity/tests/lane1-identity-store-parity.test.mjs +17 -6
- 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/session-audit.test.mjs +135 -0
- package/packages/identity/tests/worker-portal-assets.test.mjs +47 -0
- package/packages/primetech-procedures/README.md +46 -5
- package/packages/primetech-procedures/agentsam.package.json +6 -6
- package/packages/primetech-procedures/package.json +14 -3
- package/packages/primetech-procedures/procedures/arch.assembly.calculate/procedure.json +83 -0
- package/packages/primetech-procedures/procedures/media.asset.preflight/procedure.json +85 -0
- package/packages/primetech-procedures/procedures/media.image.optimize-asset/procedure.json +102 -0
- package/packages/primetech-procedures/procedures/repo.asset.inventory/__pycache__/run.cpython-314.pyc +0 -0
- package/packages/primetech-procedures/procedures/repo.git.status/procedure.json +58 -0
- package/packages/primetech-procedures/procedures/repo.git.status/run.sh +10 -0
- package/packages/primetech-procedures/src/index.js +140 -41
- package/packages/primetech-procedures/test/__pycache__/test_inventory.cpython-314.pyc +0 -0
- package/packages/primetech-procedures/test/runtime-kinds.test.mjs +210 -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/contracts/source-types.v2.json +86 -1
- package/protocol/product-releases/README.md +15 -12
- package/protocol/registry/universal-catalog.v1.json +2820 -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 +411 -0
- package/protocol/sam/run-start.v1.schema.json +40 -0
- package/protocol/sam/run.v1.schema.json +243 -0
- package/protocol/theme-refinery/d1-reconciliation.md +66 -32
- package/protocol/theme-refinery/product-metadata.schema.json +1 -1
- package/python/README.md +81 -8
- 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 +31 -0
- package/python/agentsam_sdk/client.py +49 -16
- package/python/agentsam_sdk/data/d1_bloat.py +0 -1
- package/python/agentsam_sdk/media/__init__.py +8 -0
- package/python/agentsam_sdk/media/opencv.py +188 -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 +1 -1
- package/python/agentsam_sdk/terminal_art.py +5 -6
- package/python/pyproject.toml +3 -0
- package/python/tests/fixtures/freecad_host_cases.json +30 -0
- package/python/tests/test_bridge_policy.py +40 -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_opencv_media.py +79 -0
- package/python/tests/test_procedure_client.py +6 -0
- package/python/tests/test_public_client.py +13 -0
- 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 +1 -1
- 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 +21 -6
- package/src/acp/agent-executor.js +38 -2
- package/src/acp/client.js +128 -39
- package/src/acp/dependencies.js +159 -19
- package/src/acp/http.js +14 -0
- package/src/acp/index.js +3 -0
- package/src/acp/runs.js +5 -3
- package/src/agent/capability-adapter.js +21 -23
- package/src/cli/command-catalog.js +4 -4
- package/src/cli/desktop-launch.js +2 -2
- package/src/cli/update-check.js +131 -0
- package/src/cli.js +6 -5
- package/src/commands/account-auth.js +36 -26
- package/src/commands/app-inventory.js +343 -0
- package/src/commands/app.js +162 -27
- package/src/commands/ast.js +80 -0
- package/src/commands/cad.js +2 -0
- package/src/commands/cheat-sheet.js +1 -1
- package/src/commands/cloudflare-login.js +170 -65
- package/src/commands/cloudflare-status.js +38 -0
- package/src/commands/cloudflare.js +54 -42
- package/src/commands/codebaseindex.js +34 -13
- package/src/commands/db.js +2 -2
- package/src/commands/go.js +1 -1
- package/src/commands/interactive.js +5 -0
- package/src/commands/knowledge.js +4 -2
- package/src/commands/mcp.js +5 -2
- package/src/commands/preferences.js +48 -6
- package/src/commands/product.js +4 -4
- package/src/commands/run.js +3 -4
- package/src/commands/shell.js +32 -10
- 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/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 +5 -4
- package/src/knowledge/store-discovery.js +22 -5
- package/src/knowledge/stores/d1.js +141 -0
- package/src/lib/auth.js +7 -4
- 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.js +2 -0
- package/src/lib/cad/project-runtime.js +2 -2
- package/src/lib/cad/project-v2.js +13 -25
- package/src/lib/cad-docker.js +35 -17
- package/src/lib/whoami-capabilities.js +8 -14
- package/src/mcp/cloudflare-bundles.js +39 -41
- package/src/models/inventory-core.d.ts +32 -1
- package/src/models/inventory-core.js +118 -36
- package/src/plugins/cloudflare.js +3 -3
- package/src/plugins/completeful.js +2 -4
- package/src/plugins/contracts.js +2 -3
- package/src/plugins/creative.js +2 -2
- package/src/plugins/registry.js +52 -33
- package/src/plugins/runtime.js +64 -13
- package/src/registry/generated/inventory.json +289 -66
- package/src/registry/universal-reconcile.js +120 -0
- package/src/registry/universal-source.js +253 -0
- package/src/sam/adapters/opencv-video.js +206 -0
- package/src/sam/adapters/workspace-media.js +15 -2
- package/src/sam/bridge/policy.mjs +50 -0
- package/src/sam/bridge/stdio.mjs +61 -38
- 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/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/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/shell-host.js +26 -8
- package/src/skills/catalog.js +12 -1
- package/src/skills/registry.js +16 -17
- package/src/ui/boot.js +12 -14
- package/src/ui/brand/agentsam-mark.generated.js +49 -0
- package/src/ui/cli/prompt-box.js +151 -0
- package/src/ui/home-screen.js +49 -0
- package/apps/README.md +0 -67
- package/apps/cad-creator/README.md +0 -743
- package/packages/agentsam-brand/LICENSE +0 -110
- package/packages/agentsam-desktop-shell/LICENSE +0 -110
- package/packages/agentsam-desktop-shell/README.md +0 -73
- package/packages/agentsam-ide/LICENSE +0 -110
- package/packages/agentsam-ide/README.md +0 -147
- package/packages/agentsam-nav/LICENSE +0 -110
- package/packages/agentsam-vault/LICENSE +0 -110
- package/packages/agentsam-workbench/LICENSE +0 -110
- package/src/ui/art/geaux_boot.json +0 -25
- package/src/ui/companion-art.js +0 -40
- /package/{apps/cad-creator → packages/primetech-procedures}/LICENSE +0 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# Portable editor contracts and reusable component locations
|
|
2
|
+
**Status:** Proposed additions to existing packages, not a declaration that these files already exist.
|
|
3
|
+
**Primary rule:** Promote repeatable **interaction presentation and contracts**; leave geometry, persistence, security, simulation, and document-specific commands with their actual owners.
|
|
4
|
+
|
|
5
|
+
## 1. Existing files: retain and evolve
|
|
6
|
+
|
|
7
|
+
| Existing location | Direction | Why |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| `packages/agentsam-contracts/src/design-workspace.ts` | EXTEND compatibly | Existing document scope, selection, capabilities, save/execute receipts and revisions; no parallel document protocol |
|
|
10
|
+
| `packages/agentsam-contracts/src/design-workspace-bridge.ts` | REUSE / AUDIT | Checked host/guest communication; add capability/projection messaging only with explicit schema/versioning |
|
|
11
|
+
| `packages/agentsam-workbench/src/design/DesignWorkspaceFrame.tsx` | EXTEND | Existing adaptive explorer/stage/inspector/assistant slots, persistent widths and mobile panes |
|
|
12
|
+
| `packages/agentsam-workbench/src/design/design-workspace.css` | REFACTOR | Resolve semantic theme aliases from host; current hardcoded colors are a migration target |
|
|
13
|
+
| `packages/agentsam-workbench/src/agent/Composer.tsx` | KEEP | One text-entry primitive with send/stop and slots |
|
|
14
|
+
| `packages/agentsam-workbench/src/agent/AgentConversationSurface.tsx` | KEEP | Persistent thread/composer arrangement |
|
|
15
|
+
| `packages/agentsam-workbench/src/agent/ContextualComposer.tsx` | REFACTOR | Selection type and input are CMS-focused; generalize context using adapters, not a separate CAD composer |
|
|
16
|
+
| `packages/agentsam-workbench/src/agent/capability-catalog.ts` | REUSE PATTERN | Read-only projection of installed/authorized tools, not an editor command runtime |
|
|
17
|
+
| `apps/cad-creator/frontend/src/components/quick-add/QuickAddMenu.tsx` | EXTRACT PRESENTATION | Keep current object/catalog authority, graduate menu rows, focus, hover, keys and popover behavior |
|
|
18
|
+
| `apps/cad-creator/frontend/src/components/quick-add/catalog.ts` | RETAIN ADAPTER | Existing built-in catalog + `/api/work/cad/catalog` source; do not duplicate database |
|
|
19
|
+
| `apps/cad-creator/frontend/src/lib/design-workspace-adapter.ts` | EXTEND | Enforce native vs source-linked edit semantics and real receipt behavior |
|
|
20
|
+
| `apps/samsketch/src/design-adapter.ts` | EXTEND | Real revision/selection/modify/undo/redo/save bridge |
|
|
21
|
+
| `apps/samsketch/src/native-scene-editor.ts` | RETAIN ENGINE | Preserve IAMScene source and real node edit path |
|
|
22
|
+
| `apps/local-studio/frontend/src/routes/(apps)/admin/cad.tsx` | HOST ADAPT | Keep CAD approval and source-revision bridge |
|
|
23
|
+
| `apps/local-studio/frontend/src/routes/(apps)/admin/samsketch.tsx` | HOST ADAPT | Keep scene/context bridge, eliminate duplicate assistant input |
|
|
24
|
+
| `apps/local-studio/frontend/src/components/workbench/SamSketchAssistantPane.tsx` | TOKEN/COMPOSER REPAIR | Replace literal white/purple treatment; one shared composer presentation |
|
|
25
|
+
|
|
26
|
+
## 2. New contract files (TODO)
|
|
27
|
+
Place new framework-neutral definitions under `packages/agentsam-contracts/src/`, export them via the existing package conventions.
|
|
28
|
+
|
|
29
|
+
| Proposed file | Contract responsibility | Consumer |
|
|
30
|
+
| --- | --- | --- |
|
|
31
|
+
| `editor-commands.ts` | Semantic command ID, namespace, tool group, title, icon reference, shortcut, context predicates, payload validation, undo class | All editor adapters and menus |
|
|
32
|
+
| `editor-command-context.ts` | Document/resource identity, editor mode, active tool, selection, pane, viewport, user scope, installed capabilities, source authority | Registry resolution and execution |
|
|
33
|
+
| `editor-capabilities.ts` | Supported/unavailable/source-gated/not-installed with reason and true permission predicate | All UI entry points |
|
|
34
|
+
| `editor-inspector.ts` | Typed section/field descriptors, visibility, units, validation, read-only, reset, commit policy, binding and property errors | Shared inspector + specialist schemas |
|
|
35
|
+
| `editor-viewport.ts` | Viewport ID, 2D/3D/Split view state, projection/orientation, camera identity, plane, snapping, zoom and framing operations | CAD, scene and vector views |
|
|
36
|
+
| `editor-assets.ts` | Asset reference, provenance, type, license/ownership, preview, versions and permitted insertion route | Shared browser and catalog adapters |
|
|
37
|
+
| `editor-interactions.ts` | States/events/variables/data binding descriptors only when a real scene runtime exists | Future interaction-capable engines |
|
|
38
|
+
| `editor-precision.ts` | Unit/coordinate-space descriptors, tolerance/constraint metadata, exact-input result, source/derived model relationship | Every precision-capable editor |
|
|
39
|
+
| `editor-session.ts` | Mode transition, placement transaction, cancel, history/refocus and persistence expectations | Runtime adapters and UI |
|
|
40
|
+
|
|
41
|
+
### Command descriptor (design target, not compiled code)
|
|
42
|
+
```ts
|
|
43
|
+
type Availability =
|
|
44
|
+
| { state: "ready" }
|
|
45
|
+
| { state: "source-gated" | "read-only" | "not-installed" | "unavailable"; reason: string };
|
|
46
|
+
|
|
47
|
+
interface EditorCommandDescriptor<Input = unknown> {
|
|
48
|
+
id: string; // e.g. cad.wall.create; stable and namespaced
|
|
49
|
+
label: string;
|
|
50
|
+
group: string;
|
|
51
|
+
icon: string; // semantic icon key, not arbitrary JSX in contract
|
|
52
|
+
shortcut?: string;
|
|
53
|
+
surface: "create" | "toolbar" | "context" | "palette" | "inspector" | "view";
|
|
54
|
+
supportedModes?: string[];
|
|
55
|
+
supportedSelectionKinds?: string[];
|
|
56
|
+
availability(context: EditorCommandContext): Availability;
|
|
57
|
+
validateInput(input: unknown): Input; // or equivalent schema-key strategy
|
|
58
|
+
undoClass: "document" | "viewport" | "none";
|
|
59
|
+
invoke: string; // symbolic adapter operation ID, not a React callback
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**TODO:** Decide whether serializable manifests carry a schema ID rather than a function for `availability`/`validateInput`. A manifest crossing iframe/network boundaries **must be serializable** and must be revalidated by its domain authority. Do not treat visibility as permission.
|
|
64
|
+
|
|
65
|
+
### Explicit edit authority (TODO)
|
|
66
|
+
```ts
|
|
67
|
+
type EditAuthority =
|
|
68
|
+
| { kind: "native-editable"; resourceId: string; revision: string }
|
|
69
|
+
| { kind: "instance-editable"; instanceId: string; sourceId: string; revision: string }
|
|
70
|
+
| { kind: "source-linked-review"; sourceRef: string; handoffAvailable: boolean }
|
|
71
|
+
| { kind: "read-only-revision"; revision: string; reason: string };
|
|
72
|
+
```
|
|
73
|
+
- Native editable objects can perform only supported native modeling operations.
|
|
74
|
+
- Instance editable objects may change their authorized instance/overrides without mutating source asset bytes.
|
|
75
|
+
- Source-linked review objects expose inspect, frame, visibility, review note, and only genuinely supported overrides. They never claim native BIM editing.
|
|
76
|
+
- Read-only revisions reject mutations even if keyboard shortcuts or toolbars bypass disabled UI.
|
|
77
|
+
- Handoff verifies account, project, document identity, origin, revision and authorization at the receiver. Stale writes reject with a useful conflict path.
|
|
78
|
+
|
|
79
|
+
## 3. New Workbench editor presentation (TODO)
|
|
80
|
+
Proposed new public subpath: `@inneranimalmedia/agentsam-workbench/editor`. Confirm package `exports`, build inputs, CSS loading, type output and independent-install smoke tests before publishing. Do not create a second global shell npm package.
|
|
81
|
+
|
|
82
|
+
```text
|
|
83
|
+
packages/agentsam-workbench/src/editor/
|
|
84
|
+
index.ts TODO exports
|
|
85
|
+
EditorWorkspace.tsx TODO compose existing DesignWorkspaceFrame
|
|
86
|
+
EditorDocumentBar.tsx TODO title, revision, save state, mode, actions
|
|
87
|
+
EditorToolbar.tsx TODO normal vs contextual toolstrip
|
|
88
|
+
EditorMenuPrimitives.tsx TODO rows, groups, shortcuts, search, focus, popover
|
|
89
|
+
EditorCreateMenu.tsx TODO semantic + Create menu
|
|
90
|
+
EditorCommandPalette.tsx TODO search same command registry
|
|
91
|
+
EditorToolState.ts TODO FSM presentation/controller, no geometry
|
|
92
|
+
EditorResourceExplorer.tsx TODO objects/assets/libraries navigation
|
|
93
|
+
EditorObjectTree.tsx TODO virtualized, selection-linked scene hierarchy
|
|
94
|
+
EditorAssetBrowser.tsx TODO catalog, thumbnails, filters, insert
|
|
95
|
+
EditorTemplateBrowser.tsx TODO object/scene template modal, category rail
|
|
96
|
+
EditorInspectorHost.tsx TODO selection-scoped section composition
|
|
97
|
+
EditorInspectorFields.tsx TODO field family renderer
|
|
98
|
+
EditorNumericField.tsx TODO precise scalar, unit display, validation
|
|
99
|
+
EditorAxisTriplet.tsx TODO XYZ transform field with linkage
|
|
100
|
+
EditorMaterialFields.tsx TODO shared editable field chrome, not material engine
|
|
101
|
+
EditorViewportControls.tsx TODO zoom/pan/frame/projection/axes/presets
|
|
102
|
+
EditorStatusBar.tsx TODO mode, snap, unit, source/readonly feedback
|
|
103
|
+
EditorTimelineDock.tsx TODO headless controls, only real runtime tracks
|
|
104
|
+
EditorContextAgent.tsx TODO AgentSam surface placement/adapters
|
|
105
|
+
editor-workspace.css TODO semantic-token-only styling
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
File names are a proposed API surface; audit existing equivalent primitives and reuse them rather than cloning them under new names. Generic keyboard/menu utilities may belong under `src/shell/` if already present.
|
|
109
|
+
|
|
110
|
+
## 4. Shared Create menu
|
|
111
|
+
**Single visual implementation, multiple capability manifests.** Menu entries come from installed and authorized domain adapters, not from copying a 33-item static example into each product.
|
|
112
|
+
|
|
113
|
+
### Standard presentation
|
|
114
|
+
- A compact scrollable categorized popover anchored to its trigger.
|
|
115
|
+
- Optional search, separators, left icon, full accessible name and right-aligned shortcut.
|
|
116
|
+
- Hover, pressed, focus, keyboard arrows, Enter, Escape, typeahead, touch scroll, disabled reason.
|
|
117
|
+
- Menu placement and clipping respect split view and nested scroll containers.
|
|
118
|
+
- Templates opens a separate catalog modal; objects/scenes are distinct domains and assets carry real source metadata.
|
|
119
|
+
- Command invocation either activates a placement tool or executes an immediate action. The contract declares which; menu close is not an implicit create.
|
|
120
|
+
- Successful placement returns a real created object ID; state moves to selected and the inspector binds to the real document.
|
|
121
|
+
|
|
122
|
+
### Target command vocabulary (not implementation claims)
|
|
123
|
+
**Common vector and text:** Rectangle, Ellipse, Triangle, Pentagon, Polygon, Star, Line, Pen, Path, Shape Blend, Text, Group, Duplicate, Import.
|
|
124
|
+
**Architectural:** Wall, Door, Window, Floor/Slab, Roof, Column, Beam, Stair, Opening, Space/Room, Axis, Dimension, Annotation, Terrain, Landscape, Parametric Part, Architectural Asset.
|
|
125
|
+
**3D objects and modeling:** Plane, Box, Sphere, Cylinder, Cone, Torus, Helix, Lathe, Extrude, Revolve, Sweep, Loft, Boolean, Array, Fillet, Chamfer, Edit Mesh.
|
|
126
|
+
**Scene:** Camera, Point Light, Directional Light, Spot Light, Environment, Fog, Material, Animation, Events, Variables.
|
|
127
|
+
**Specialist:** Typeface workspace, video timeline, BIM quantities, robotic/cinematic tools where installed.
|
|
128
|
+
|
|
129
|
+
**TODO:** Audit and tag every command `EXISTS / ADAPT / SOURCE-GATED / TODO / FUTURE` by exact owning file and working operation before enabling it. Commands are **not** categorized by app identity alone; they are enabled by adapter capability.
|
|
130
|
+
|
|
131
|
+
## 5. Context modes, precision and history
|
|
132
|
+
Shared UI state targets:
|
|
133
|
+
```text
|
|
134
|
+
idle → create-menu-open → tool-armed → placing/drawing → commit-requested
|
|
135
|
+
→ domain-receipt → selection-updated → inspector-bound → saved → reloaded
|
|
136
|
+
↘ Escape/cancel → rollback unfinished placement → idle
|
|
137
|
+
```
|
|
138
|
+
- Edit vs Preview vs Source, 2D/3D/Split, Select, Vector/Point Edit, Placement, Pan, Measure and inspector contexts are separate axes of state.
|
|
139
|
+
- Escape cancels placement or node operation without adding a partial object; Escape in a menu closes the menu without mutating the document.
|
|
140
|
+
- Document undo/redo is backed by domain mutation history and real revision receipts. Viewport navigation uses explicit separate history semantics.
|
|
141
|
+
- Numeric inputs must support exact values, units, min/max/step from the engine, validation errors, keyboard increment and drag/scrub where appropriate. No hardcoded numerical limits inferred from mockups.
|
|
142
|
+
- Snapping, constraint solving, node editing, extrusion and parametric operations are real modeling features; shared UI does not implement their kernel.
|
|
143
|
+
- Every domain declares coordinate frames, units, conversion, tolerances, origin, handedness and serialization precision. Avoid screen-pixel rounding of authored geometry.
|
|
144
|
+
- Non-destructive relationships: path → extrusion remains editable at source path and parameters; 2D wall → native BIM element remains associated; font text → converted vector shape preserves editable source or an explicit irreversible warning/duplicate flow.
|
|
145
|
+
- Save/reopen compares canonical document revision and geometry/material values, not just on-screen text fields.
|
|
146
|
+
- Long operations have cancellable/observable status without falsifying a success receipt or blocking rendering.
|
|
147
|
+
|
|
148
|
+
## 6. Inspector architecture
|
|
149
|
+
Single `EditorInspectorHost` rendering specialist-owned schemas:
|
|
150
|
+
- **No selection:** project/scene overview or minimized inspector, respecting user preference.
|
|
151
|
+
- **2D path/shape:** Transform, exact Size, Fill/Stroke, geometry points, corners, optional extrusion/bevel, material, visibility, modifier/interaction when supported.
|
|
152
|
+
- **Text:** Content, exact typography metrics, family/style/weight, alignment, case, material, optional 3D geometry; intentional conversion to vector and link to Typeface Studio.
|
|
153
|
+
- **Native CAD wall/assembly:** Level, baseline, height, thickness, assemblies/materials, hosted openings, snapping, constraints, quantities and native source link.
|
|
154
|
+
- **Imported/source scene part:** Stable ID, provenance, visibility and allowed instance/material overrides, review note, frame and authorized source handoff. No false geometry fields.
|
|
155
|
+
- **3D instance/group:** Transform, hierarchy, visibility, material stack, source overrides, duplication/part operations.
|
|
156
|
+
- **Camera object:** Transform, projection type, FOV, near/far, preview/pin/use-camera, states/events if implemented.
|
|
157
|
+
- **Scene environment:** Background, sky, physical/HDRI, fog, sun/directional/ambient lights, exposure, shadows, material pipeline, effects, terrain and environment presets; true operational controls only.
|
|
158
|
+
- **Video or timeline object:** Actual tracks, clip values, keyframes, timing and media source, supplied by CoPro/domain schema.
|
|
159
|
+
|
|
160
|
+
Shared fields: `NumericField`, `AxisTriplet`, `EnumSelect`, `ToggleField`, `SliderField`, `ColorField`, `AssetReferenceField`, `HierarchyPicker`, `ReadOnlySourceField`, `PropertyBindingField`. Each field has explicit commit, validation, readonly and reset semantics.
|
|
161
|
+
|
|
162
|
+
## 7. Viewport and scene controls
|
|
163
|
+
Separate four distinct meanings:
|
|
164
|
+
1. **Viewport navigation:** zoom presets, pan, orbit, axis gizmo, perspective/orthographic, framing, view presets, grid/snap, units, multi-pane focus.
|
|
165
|
+
2. **Working/personal camera:** user's current view and transient navigation; not a saved scene-camera entity by default.
|
|
166
|
+
3. **Authored camera object:** serialized transform, projection, FOV, clipping, preview, active/play camera.
|
|
167
|
+
4. **Scene settings:** world lighting, sky/HDRI, physical sun, fog, environment, effects, simulation and color pipeline, each backed by the scene renderer.
|
|
168
|
+
|
|
169
|
+
**TODO:** A reusable viewport chrome component must work in each independent split pane and cannot cover the other pane's modeling surface. Camera controls must be meaningful and comprehensive; moving existing tiny toggles into a large generic card is not sufficient.
|
|
170
|
+
|
|
171
|
+
## 8. Projects, object trees, asset catalog and templates
|
|
172
|
+
- Object tree virtualizes large source-backed hierarchies (test 1,881 items), supports search, filter, reveal selection, path breadcrumbs, source/lock badges, multi-selection and keyboard tree navigation.
|
|
173
|
+
- Assets browser is separate from tools and scene nodes. Group by asset type, account/source, use, license and collection; search, preview, reference, instantiate/drag insert, revoke, missing asset states.
|
|
174
|
+
- Template browser: object/scene tabs; category rail; search; preview; authorized open/instantiate; loading/error/no-results states. Templates do not secretly create a new blank project when the chosen document is unavailable.
|
|
175
|
+
- Gallery navigation: meaningful project titles and covers, domain tags, recent/draft/starred, owner/source info; do not create a gigantic list of undifferentiated Untitled scenes.
|
|
176
|
+
- Preserve existing shared media authority, not a new R2/D1 catalog. Inspect font and asset licenses before stock distribution.
|
|
177
|
+
|
|
178
|
+
## 9. Composer and assistant ownership
|
|
179
|
+
- `AgentComposer` remains the single primitive; chat/work/compact/contextual/embedded are **presentation configurations**.
|
|
180
|
+
- Context payload is a typed projection of selected object, source authority, revision, canvas mode and supportable actions. No proprietary CAD instance object sent as an unchecked arbitrary prompt.
|
|
181
|
+
- Small contextual miniAgentSam and global Side Assistant are different surfaces, **not separate conversation databases**. Do not duplicate a global assistant inside an editor iframe.
|
|
182
|
+
- Composer `+` and editor `+` share menu presentation, not their command/data catalogs.
|
|
183
|
+
- Plugin catalog loads independently from built-in/native Side Stage controls. A registry outage never hides native tools.
|
|
184
|
+
- One host-authorized operation path for proposed changes; CAD mutation proposals still require existing approvals.
|
|
185
|
+
|
|
186
|
+
## 10. Theme, responsive, packaging and security
|
|
187
|
+
- Theme authority stays at host settings/CMS theme state. Editor consumes resolved semantic aliases such as `--studio-panel`, `--studio-surface`, `--studio-text`, `--studio-muted`, `--studio-border`, `--studio-accent`, `--studio-hover`, `--studio-focus` and density/radius/spacing.
|
|
188
|
+
- Standalone fallback is established by the theme provider, not per CSS declaration. Actual material color values are unrelated to UI accent tokens.
|
|
189
|
+
- **TODO:** Replace hardcoded Workbench `--dw-*` default literals, SamSketch mini assistant styles, and PR #711 quick-add fallbacks with provider-owned tokens. Check CSS `#hex`, `rgb` and `hsl` exceptions by policy.
|
|
190
|
+
- Mobile: 390×844 CSS viewport is a required acceptance target. Tools remain reachable via drawers and selection-aware tabs, not a permanently overlaid inspector. No double scrollbars, dock overlap, or tiny pointer-only hit targets.
|
|
191
|
+
- Package: subpath exports, type declarations, side effect CSS, accessibility, themes, isolated runtime install. Consumers must never import `../../../packages/*/src` as a release dependency.
|
|
192
|
+
- Security: authenticated account/project scope, consistent bridge origin/channel/version, revision validation, capability gating server-side, no cross-tenant font/asset exposure. Display-only source item is not editable native geometry.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# PrimeTech portable editor program
|
|
2
|
+
**Status:** Architecture and execution instructions; no implementation is claimed by these documents.
|
|
3
|
+
**Baseline:** 2026-11-20, GitHub `main`, screenshot/reference inventory supplied in the project brief.
|
|
4
|
+
**Priority:** Lane 1 = CAD Creator. Lane 2 = SamSketch. Both must reach rigorous precision editing; lane order is not a permanent feature restriction.
|
|
5
|
+
|
|
6
|
+
## North-star outcome
|
|
7
|
+
Any future InnerAnimalMedia editor can install the same mature menus, toolbars, inspector fields, docking, project/asset browsers, viewport controls, keyboard accessibility, theme projection, contextual AgentSam, and workbench behavior **without copying their UI implementation**. Each editor still owns its actual document format, coordinate system, precision engine, edit semantics, permission checks, persistence, and export. Precision is an editor-wide quality standard, not the exclusive domain of CAD Creator.
|
|
8
|
+
|
|
9
|
+
A feature is complete only when a user can perform the actual operation, undo/redo a model mutation, save, reopen, and verify that the source document remains valid. Visual parity and passing unit tests alone are not release acceptance.
|
|
10
|
+
|
|
11
|
+
## Canonical ownership (do not build another global shell)
|
|
12
|
+
|
|
13
|
+
| Layer | Existing authority / planned home | Owns | Must not own |
|
|
14
|
+
| --- | --- | --- | --- |
|
|
15
|
+
| InnerAnimalMedia platform | Existing Local Studio / identity / theme / navigation hosts | Account, installed capabilities, routing, tenant scope, theme authority | Geometry or an independent editor document |
|
|
16
|
+
| Portable contracts | `packages/agentsam-contracts/src/` | Typed commands, context, selection, capability checks, inspector descriptors, operation/receipt interfaces | React UI or modeling implementation |
|
|
17
|
+
| Shared workbench | `packages/agentsam-workbench/src/design/` and proposed `src/editor/` | Adaptive layout, menu renderers, toolbars, docking, inspector host and field primitives, keyboard/focus, assistant placement | Domain persistence, an asset database, generic fake geometry |
|
|
18
|
+
| Domain adapter | Existing CAD and SamSketch design adapters; additional adapters per editor | Maps shared semantic operations into real editor operations, checks capabilities and revisions | Visual duplicate of the shared shell |
|
|
19
|
+
| Specialist engine | CAD Creator, SamSketch, SamScene/IAMScene, CoPro and future editors | True geometry, constraints, scene state, materials, simulation, timelines, native source, save/export | Identity or global conversation storage |
|
|
20
|
+
| Shared media/asset authority | Existing provider-neutral media services / authorized catalogs | Ownership, bytes, licensing, version, previews | A second editor-specific asset database |
|
|
21
|
+
| AgentSam experience | `packages/agentsam-workbench/src/agent/` + host conversation/runtime | Portable composer, mini assistant and contextual conversation display | Independent chat identities and transcripts for each editor |
|
|
22
|
+
|
|
23
|
+
### Key design rules
|
|
24
|
+
1. **Lane 1 CAD Creator is the first proving ground.** Use real native wall editing, source-linked review states, project metadata, 2D/3D/Split, and large object trees. No silent writes to imported meshes.
|
|
25
|
+
2. **Lane 2 SamSketch is the second proving ground.** Preserve real source-mesh instance editing, vector/point editing, text, materials, presentation, and specialist typeface authoring. Do not reduce it to a lightweight icon app.
|
|
26
|
+
3. **Precision belongs in all interfaces.** Every eligible editor needs explicit units and coordinate spaces, exact numeric input, snapping and constraints appropriate to its domain, non-destructive source relationships, repeatable history and validated exports. Domain adapters determine what is actually supported.
|
|
27
|
+
4. **No artificial tool ceiling.** A tool family can be consumed by many editors when their adapters genuinely implement it. Architectural modeling, vector curves, camera creation, 3D primitives, and advanced geometry are not permanently assigned to one product.
|
|
28
|
+
5. **Reuse by installation and composition.** There is one generic Create-menu renderer, not a copied menu in each app; installed capability manifests supply actual entries and handlers.
|
|
29
|
+
6. **Three plus menus remain semantically distinct:** editor Create, AgentSam composer Attach/Tools, and Side Stage Open tools. Reuse common popover primitives and accessibility, not a combined catalog.
|
|
30
|
+
7. **No second editable document.** The existing `DesignWorkspaceAdapter` and domain backend retain the authority for revisions, identity, and receipts.
|
|
31
|
+
8. **No nested double editor shell.** Host and iframe must agree which one renders each toolbar, explorer, inspector and assistant. One visible owner per control.
|
|
32
|
+
9. **No color hardcoding in leaf components.** Platform themes supply semantic tokens, including safe standalone defaults at the provider boundary.
|
|
33
|
+
10. **No decorative TODO buttons.** Future capabilities belong in backlog/docs or an explicit disabled, explained capability discovery experience, never in a working-looking command path.
|
|
34
|
+
|
|
35
|
+
## Verified anchors from the repository
|
|
36
|
+
- `docs/architecture/DESIGN_WORKSPACE_BOUNDARY.md` states the existing portable boundary and preserves specialist authority.
|
|
37
|
+
- `packages/agentsam-contracts/src/design-workspace.ts` defines `DesignWorkspaceAdapter`, `DesignWorkspaceSnapshot` and revision-aware operations.
|
|
38
|
+
- `packages/agentsam-contracts/src/design-workspace-bridge.ts` provides an existing checked host/guest bridge.
|
|
39
|
+
- `packages/agentsam-workbench/src/design/DesignWorkspaceFrame.tsx` supplies explorer/stage/inspector/assistant layout with responsive pane switching.
|
|
40
|
+
- `packages/agentsam-workbench/src/agent/Composer.tsx` is the shared input primitive; `AgentConversationSurface.tsx` is a portable thread/composer arrangement.
|
|
41
|
+
- `apps/cad-creator/frontend/src/components/quick-add/QuickAddMenu.tsx` and `catalog.ts` provide current CAD creation/catalog UI.
|
|
42
|
+
- `apps/cad-creator/frontend/src/lib/design-workspace-adapter.ts` and `apps/samsketch/src/design-adapter.ts` provide existing domain-facing adapters.
|
|
43
|
+
- `apps/samsketch/src/main.ts` still assembles substantial engine/editor UI, while `native-scene-editor.ts` implements a separate native scene editing path.
|
|
44
|
+
- Local Studio CAD and SamSketch routes currently integrate their editors and assistants differently. Unification must preserve their host/guest security boundaries.
|
|
45
|
+
- PR #711 was **open** on 2026-11-20; its `quick-add.css` patch added literal color fallbacks. Treat token repair as unmerged TODO.
|
|
46
|
+
|
|
47
|
+
These are file-level findings, **not proof that deployed click paths, precision operations, or persistence currently pass**.
|
|
48
|
+
|
|
49
|
+
## Source of truth for execution
|
|
50
|
+
- [Portable editor contracts](PORTABLE_EDITOR_CONTRACTS.md): precise component/file ownership, API shapes and reusability rules.
|
|
51
|
+
- [Implementation waves](IMPLEMENTATION_WAVES.md): ordered work instructions, dependencies, merge gates and immediate first PR.
|
|
52
|
+
- [Capability and acceptance matrix](CAPABILITY_AND_ACCEPTANCE_MATRIX.md): exact TODO list with destination and live proof criteria.
|
|
53
|
+
|
|
54
|
+
## Status labels for the program
|
|
55
|
+
**EXISTS** = repository file/control identified; runtime behavior still needs validation.
|
|
56
|
+
**EXTRACT** = current implementation exists in a specialist and is a candidate for shared presentation.
|
|
57
|
+
**ADAPT** = shared contract must be connected to a real specialist engine.
|
|
58
|
+
**TODO** = not implemented or not verified and must not be presented as done.
|
|
59
|
+
**SOURCE-GATED** = a real operation requires native document scope, account authorization and revision checks.
|
|
60
|
+
**FUTURE** = candidate work not included in the current wave.
|
|
61
|
+
|
|
62
|
+
## Release principle
|
|
63
|
+
`Inspect existing source → Bind one real operation → Mount inside hosted app → Human click-through → Undo/redo and save/reload → Permission/source-negative test → Package/export check → Installed build check → Merge`.
|
|
64
|
+
|
|
65
|
+
**Do not merge on test-green alone.** Record the actual file paths, screenshots/video, failing cases, revision receipts and acceptance owner for every wave.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Universal SDK registry — Batch 1 recovery
|
|
2
|
+
|
|
3
|
+
**Status:** source-backed staging in production D1; NOT a new execution authority.
|
|
4
|
+
**Primary sources:** the shipped npm and Python CLI code, SAM operation registry, skill manifests, installed package bin definitions, portable hooks, and the existing versioned D1 workflows.
|
|
5
|
+
|
|
6
|
+
## Registry law
|
|
7
|
+
|
|
8
|
+
A *source declaration*, a *published distribution*, an *installed package*, an *authorized handler*, and a *successful invocation* are different states. A source file can generate a candidate; it cannot set `release_state=verified`, `is_published=1`, or `is_active=1` by itself. Release verification must compare the **exact** npm tarball / PyPI wheel version, entrypoint, artifact digest and command behavior, and record the receipt.
|
|
9
|
+
|
|
10
|
+
`npm:@inneranimalmedia/agentsam-sdk:agentsam doctor` and `pip:agentsam-sdk:agentsam doctor` intentionally have different identities. Other npm console-script executables are root binaries with *no repeated executable subcommand*. This protects users from stale workspace-only slash aliases. The Python source version must not be represented as a released PyPI version until the wheel is actually verified.
|
|
11
|
+
|
|
12
|
+
## D1 provenance and current counts
|
|
13
|
+
|
|
14
|
+
The account-scoped D1 `inneranimalmedia-business` contained 36 legacy workspace/slash commands, 395 scripts, 262 tools, 100 skills, 86 hooks, 42 hook executions, 44 rules, and 6 workflows. The workflow graphs own 32 nodes, 27 edges, 11 trigger kinds and 1 historical workflow run; all remain unchanged.
|
|
15
|
+
|
|
16
|
+
**Phase A, additive only**:
|
|
17
|
+
- `agentsam_commands_legacy_snapshot_20261123`: persistent exact snapshot of all 36 command rows. A true SQLite TEMP table would disappear between Cloudflare D1 sessions.
|
|
18
|
+
- `agentsam_commands_next`: versioned npm/pip source-backed CLI catalog; 93 registered candidates (86 npm + 7 pip), all **inactive and unverified**. `agentsam_commands_published` exposes only verified and active rows.
|
|
19
|
+
- `agentsam_skill_next`: 100 preserved account-owned records plus 39 platform-scoped SDK candidates (139 total). The corrected key is scope + package + version + skill **file**, not a unique package/version per skill. 39 SDK candidates all **unpublished and inactive**.
|
|
20
|
+
- Existing `agentsam_commands`, `agentsam_skill` and every workflow, hook execution, rule, script and tool record remain available to their current consumers.
|
|
21
|
+
|
|
22
|
+
**The first-generation broken source candidate roots were removed from new staging only**: six inactive records where `command_key` repeated the executable. Every previous live `agentsam_commands` row is preserved.
|
|
23
|
+
|
|
24
|
+
## Reproducible source generator
|
|
25
|
+
|
|
26
|
+
Run from the SDK checkout:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm run registry:universal:preview
|
|
30
|
+
npm run registry:universal:check
|
|
31
|
+
npm run test:registry:universal
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`scripts/registry/generate-universal.mjs --write` regenerates these committed receipts:
|
|
35
|
+
|
|
36
|
+
- `protocol/registry/universal-catalog.v1.json`
|
|
37
|
+
- `migrations/d1/generated/20261123_portable_cli_seed.sql`
|
|
38
|
+
- `migrations/d1/generated/20261123_source_skill_seed.sql`
|
|
39
|
+
|
|
40
|
+
The generator reads `src/cli/command-catalog.js`, `package.json#bin`, the Python `argparse` tree under `python/agentsam_sdk/cli.py`, `protocol/sam/registry.seed.json`, `skills/catalog.json` + adjacent `agentsam.skill.json` and `SKILL.md`, local hooks, and instructions. It fingerprints the actual source bytes; `npm pack --json` must remain machine-clean. New candidates are disabled. Its `--check` is part of normal SDK `verify:registry`.
|
|
41
|
+
|
|
42
|
+
The SDK package exposes `./registry/universal-catalog` as **source data**, not a permissioned API or a claim that a particular CLI release is published or runnable.
|
|
43
|
+
|
|
44
|
+
## Remaining families — no blind import
|
|
45
|
+
|
|
46
|
+
- **Tools:** the SDK SAM registry currently declares 9 operations; the 262 D1 rows require handler resolution, capability policy and account/plugin authorization before any source identity is promoted.
|
|
47
|
+
- **Scripts:** the SDK package declares 7 executable bin entries; the 395 D1 rows are not portable merely because they have a `source_stored` path. Inspect package inclusion, command runner, host capabilities, risks and tenant scope before adoption.
|
|
48
|
+
- **Hooks:** portable hook adapters are available, but two hooks in `.agentsam/hooks.json` are explicitly repository-local. They cannot be promoted to platform hooks or run without owner permissions.
|
|
49
|
+
- **Rules:** `AGENTSAM.md` documents this repo; it is not a universal user123 policy grant. The 44 D1 rules must retain author/workspace scope and source provenance.
|
|
50
|
+
- **Workflows:** `agentsam_workflows` (including nodes, edges, revisions, triggers and runs) remains the versioned graph authority. An active definition is immutable. Source scripts are **not** converted into workflow graphs or activated by scanning.
|
|
51
|
+
- **Execution history:** `agentsam_hook_execution` and `agentsam_workflow_runs` are evidence, not definitions; retain their existing identifiers and foreign keys.
|
|
52
|
+
|
|
53
|
+
`src/registry/universal-reconcile.js` is a read-only parity inspector. It needs a caller-supplied verified account/workspace/user and a trusted D1 binding; it is not an end-user bypass around auth.
|
|
54
|
+
|
|
55
|
+
## P0 cutover acceptance
|
|
56
|
+
|
|
57
|
+
1. Verify npm package tarball and pip wheel exact versions and executable flags, independently; document their checksums and update source rows to verified only with separate signed/traceable receipts.
|
|
58
|
+
2. Verify each published SDK skill's SKILL.md is included in the exact npm tarball and that slash triggers do not collide; only the packaged subset qualifies for publication.
|
|
59
|
+
3. Confirm all old runtime command/slash and skill queries have moved to a compatibility-safe, account-scoped resolver; preserve history, run IDs, approvals and role boundaries.
|
|
60
|
+
4. Verify `agentsam_commands_next` command URLs and local CLI paths against actual user123 installs. Only then retire the legacy command table into archival compatibility; never blindly `DROP` or rename while consumers depend on it.
|
|
61
|
+
5. Expand handler-proven tools/scripts/hooks/rules **selectively**, with disabled defaults and per-tenant authorization.
|
|
62
|
+
6. Verify every live workflow's node/edge/entry references and historical runs, plus idempotent production reconciliation and rollback receipts.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Batch 1 — SDK ↔ production D1 registry reconciliation
|
|
2
|
+
|
|
3
|
+
Audit date: 2026-11-22. Read-only inspection of the local AgentSam SDK checkout and Cloudflare D1 **inneranimalmedia-business**. No production rows, schema, access controls or installs were modified.
|
|
4
|
+
|
|
5
|
+
## Provenance and boundaries
|
|
6
|
+
|
|
7
|
+
- SDK inspected on a local macOS checkout of the repository, HEAD `5f4a81154` (`ci/ui-evidence-main-only-20261122`), one commit ahead of local `main` at `4c818a9ed`. This audit PR is independently branched from GitHub `main`; it does **not** merge the user's local branch.
|
|
8
|
+
- Production data read through the connected Cloudflare D1 account, database name `inneranimalmedia-business` (UUID `cf87b717-d4e2-4cf8-bab0-a81268e32d49`).
|
|
9
|
+
- Counts are a point-in-time database snapshot, not a release guarantee. Source inventory counts describe files/manifests; a manifest is not proof of a working deployed route or independent marketplace product.
|
|
10
|
+
|
|
11
|
+
## SDK source inventory
|
|
12
|
+
|
|
13
|
+
| Source | Count | Meaning |
|
|
14
|
+
|---|---:|---|
|
|
15
|
+
| `**/agentsam.app.json` | 15 | App and nested embedded/host manifests; heterogeneous schemas |
|
|
16
|
+
| `skills/*/SKILL.md` | 39 | SDK root skills |
|
|
17
|
+
| `skills/*/agentsam.skill.json` | 26 at audit start; **39 after Batch 1 PR** | All SDK source skill directories now have adjacent metadata; 15 are intentionally excluded from npm packaging until reviewed |
|
|
18
|
+
| `src/cli/command-catalog.js` | 80 | Runtime catalog entries, computed via module import (not text-pattern count) |
|
|
19
|
+
| `scripts/**/*.mjs` | 85 | Source scripts (not all cataloged DB scripts) |
|
|
20
|
+
| `packages/catalog/generated/packages.json` | 55 | Generated canonical package catalog entries |
|
|
21
|
+
| `getCapabilityManifest().capabilities` | 93 | Source capability definitions |
|
|
22
|
+
|
|
23
|
+
Current source registration implementations: `src/cli/command-catalog.js`, `src/skills/registry.js`, `src/tools/registry.js`, `scripts/registry/generate.mjs`, `apps/local-studio/backend/worker/app-registry.js`, and `apps/local-studio/backend/worker/apps-launcher.js`.
|
|
24
|
+
|
|
25
|
+
`scripts/registry/generate.mjs` generates a command/capability/package inventory. It does not synchronize apps, skills, scripts, hooks, tools and their production D1 metadata into a unified catalog. The `apps-launcher.js` path uses `apps` + `agentsam_app_installations` but currently lists only active public applications.
|
|
26
|
+
|
|
27
|
+
## Production D1 inventory
|
|
28
|
+
|
|
29
|
+
| Table | Rows | Notes |
|
|
30
|
+
|---|---:|---|
|
|
31
|
+
| `apps` | 28 | 9 active public applications, 18 private/null-type legacy rows, 1 private site |
|
|
32
|
+
| `agentsam_app_installations` | 8 | 8 enabled installs across 1 account |
|
|
33
|
+
| `agentsam_plugins` | 40 | Separate plugin authority |
|
|
34
|
+
| `agentsam_plugin_installations` | 153 | Account-scoped plugin installations |
|
|
35
|
+
| `agentsam_tools` | 262 | 244 active; 26 CMS-handler tools |
|
|
36
|
+
| `agentsam_skill` | 100 | 0 marked published; 0 with npm package name; 34 empty content bodies |
|
|
37
|
+
| `agentsam_scripts` | 395 | 388 active; 384 empty inline bodies but paths/source pointers populated |
|
|
38
|
+
| `agentsam_commands` | 36 | 34 active; 2 workspace scopes, mostly workspace slash commands |
|
|
39
|
+
| `agentsam_hook` | 86 | Definitions |
|
|
40
|
+
| `agentsam_hook_execution` | 40 | Execution rows |
|
|
41
|
+
| `agentsam_rules_document` | 44 | 43 active; content nonempty |
|
|
42
|
+
| `agentsam_capabilities` | 102 | D1 catalog differs from 93 source capabilities; requires ID-level diff |
|
|
43
|
+
| `agentsam_tool_capabilities` | 187 | Existing tool-capability mapping |
|
|
44
|
+
| `agentsam_service_registry` | 17 | Service entries |
|
|
45
|
+
| `agentsam_widget_catalog` | 23 | Widgets, not automatically Apps |
|
|
46
|
+
|
|
47
|
+
Additional evidence: 1,223 command runs, 60 script runs, and zero `agentsam_skill_invocation` rows in the inspected table. Do not infer that no skills ran anywhere: other execution logs may be authoritative.
|
|
48
|
+
|
|
49
|
+
## Public app catalog and install status
|
|
50
|
+
|
|
51
|
+
| Application ID | D1 installations |
|
|
52
|
+
|---|---:|
|
|
53
|
+
| `agentsamforms` | 1 |
|
|
54
|
+
| `cad-creator` | 1 |
|
|
55
|
+
| `database-editor` | 1 |
|
|
56
|
+
| `design-canvas` | 1 |
|
|
57
|
+
| `ecommerce-cms-agentsam` | 1 |
|
|
58
|
+
| `goalguru` | 1 |
|
|
59
|
+
| `growth` | 0 |
|
|
60
|
+
| `moviemode` | 1 |
|
|
61
|
+
| `samsketch` | 1 |
|
|
62
|
+
|
|
63
|
+
App-manifest IDs without an exact `apps.id` match (7/15):
|
|
64
|
+
|
|
65
|
+
| Manifest | Intended reconciliation |
|
|
66
|
+
|---|---|
|
|
67
|
+
| `samspeaks` | **MovieMode voice/direction module**, reusable elsewhere. Do not register an independently installable application. |
|
|
68
|
+
| `agentsam-copro-studio` | **MovieMode editor/production module**. Canonical product identity remains `moviemode`, alongside SamSpeaks and media capabilities; do not create a duplicate public app. |
|
|
69
|
+
| `product-studio` | Declared `role: embedded-app` under ecommerce; integrate as a CMS/commerce surface, not automatically a separate installable app. |
|
|
70
|
+
| `completeful` | Existing `agentsam_plugins.plugin_key='completeful'` provider. Do not duplicate plugin registration as public application. |
|
|
71
|
+
| `resend` | Existing `agentsam_plugins.plugin_key='resend'` API provider. Do not duplicate. |
|
|
72
|
+
| `local-studio` | Independently installable **platform desktop/web host**, with account sign-up/sign-in and shared hosted authority. Do not register it as an app offered inside itself. |
|
|
73
|
+
| `agentsam-workbench` | Shared UI/runtime infrastructure, not a consumer-facing installable app. |
|
|
74
|
+
|
|
75
|
+
The user has also classified **Database Editor** as a reusable module, rather than a standalone marketed app. Production retains an app row and installation; migrate its routing and user entitlement before changing that row. See `docs/architecture/app-module-plugin-classification.md`.
|
|
76
|
+
|
|
77
|
+
Further app-like surfaces such as `project-control`, `agentsam-browser-site`, `agentsam-go-worker`, frontend routes and native stage plugins require explicit **host/subsystem/embedded app/independent app/plugin** classification before registration. Do not derive marketplace items from every route.
|
|
78
|
+
|
|
79
|
+
Existing 18 legacy private rows with null `app_type` must remain private until ownership, provenance and intended product type are established.
|
|
80
|
+
|
|
81
|
+
## Source versus npm distribution — follow-up finding
|
|
82
|
+
|
|
83
|
+
A local `npm pack --dry-run --ignore-scripts --json` against the current SDK checkout included **24** of the **39** root `SKILL.md` files; at audit start only **12** of those packaged directories had adjacent JSON metadata. The Batch 1 source implementation adds the missing 13 manifests, bringing **39/39 source declarations and 24/24 configured npm-selected declarations**. It does **not** change the package's `files` allowlist to publish the other 15 without review. The skill loaders now avoid advertising unshipped built-in skill documents.
|
|
84
|
+
|
|
85
|
+
## Blocking schema and policy discrepancies
|
|
86
|
+
|
|
87
|
+
1. **Skill package uniqueness:** live `agentsam_skill` uses `UNIQUE(npm_package_name,npm_version)`, preventing 39 distinct skills from declaring the same bundled npm package version. Repair package-to-skill identity/uniqueness before metadata sync; retain uniqueness of account/slash trigger and avoid unsafe cross-account visibility. `account_id` is NOT NULL, so first-party content needs an explicit platform/system catalog ownership strategy, not a personal-account shortcut.
|
|
88
|
+
2. **Command namespace mismatch:** 80 SDK CLI roots versus 36 D1 workspace slash commands; IDs and execution semantics differ. Keep both namespaces and add a typed registry mapping (CLI root, slash trigger, handler kind/reference, provenance), rather than overwriting existing shortcuts. `agentsam_commands.workspace_id` is NOT NULL.
|
|
89
|
+
3. **Migration parity:** production has `agentsam_commands`, `agentsam_scripts`, and `agentsam_rules_document` DDL, but their complete create-table definitions were not found in the inspected SDK migration directories. Restore canonical idempotent migrations with checks/indexes; reconcile with the live schema before applying.
|
|
90
|
+
4. **Tool policy:** all 262 inspected tool rows have `is_global=1`; 28 also have an `account_id`. Nine active `completeful_*__fuelnfreetime` CMS tool rows use `workspace_scope='["*"]'`, `is_global=1`, and have an `account_id`. These are **policy inconsistencies requiring enforcement inspection**, not proof of a data leak. Do not propagate customer-scoped tools into platform/global catalogs by default.
|
|
91
|
+
5. **Source-to-D1 skills:** none of the 39 SDK skill directory names matched live `agentsam_skill` ID, name or slash trigger exactly in the audited snapshot. A semantic equivalence and provenance audit is still required before calling every live row obsolete.
|
|
92
|
+
6. **Script bodies:** 384/395 script records have blank inline `body`, but paths and `source_stored` pointers are populated. Resolve external references before labeling the scripts missing or deprecated.
|
|
93
|
+
7. **App routing:** `apps-launcher.js` filters to `visibility='public'` and does not provide an authorized private-account app listing; finish the identity-backed path without making private apps public.
|
|
94
|
+
|
|
95
|
+
## Batch 1 implementation sequence
|
|
96
|
+
|
|
97
|
+
1. Produce normalized, read-only **source + D1 reconciliation evidence** keyed by `kind`, canonical ID, source manifest path, package/version, handler/routing contract, owner scope and content checksum; include collision/alias reports.
|
|
98
|
+
2. Restore migration DDL for the existing tables and fix skill/package uniqueness with a non-destructive migration and tests. Preserve records and IDs.
|
|
99
|
+
3. Define distinct catalogs: platform capability declarations; platform Apps; integration plugins; site-scoped embedded apps; per-account installations/permissions. A manifestation of a package is not proof of runtime readiness or entitlement.
|
|
100
|
+
4. Build idempotent, diff-first upsert adapters for reviewed SDK apps and skills, then tools/commands/scripts/hooks/rules. Mark `published` and `active` from verifiable state; do not auto-promote staging/legacy content.
|
|
101
|
+
5. Audit runtime authorization for global/account/site/workspace tools, especially the nine client-specific Completeful bindings. Test account A/account B isolation and deny-by-default tool discovery.
|
|
102
|
+
6. Prove end to end: source declaration -> registered catalog -> authorized discovery -> installation -> supported web/desktop launch -> actual handler execution -> audit trace. Include malformed manifests, duplicate IDs and disabled capabilities in negative tests.
|
|
103
|
+
7. Register reviewed missing applications only after deployed-route, identity and ownership acceptance. Do not mass-write into production as a shortcut.
|
|
104
|
+
|
|
105
|
+
### Release gates
|
|
106
|
+
|
|
107
|
+
- `scripts/registry/generate.mjs --check` remains clean.
|
|
108
|
+
- First-party skills receive stable metadata without violating npm/package uniqueness.
|
|
109
|
+
- No accidental promotion of 18 private legacy rows.
|
|
110
|
+
- Existing app installations remain intact; new app registration cannot silently install products for users.
|
|
111
|
+
- No duplicate MovieMode/CoPro or provider-as-app rows.
|
|
112
|
+
- A clean D1 bootstrap yields the same required table contracts as production.
|
|
113
|
+
- Cross-account tests verify that client-specific tools cannot be discovered or executed across tenant boundaries.
|
|
114
|
+
- Production writes are separately reviewed after a read-only diff and migration preflight.
|
|
115
|
+
|
|
116
|
+
> Status: **audit baseline plus source-only skill manifest/loader fixes**. All 39 source skill manifests were validated and the targeted skill regressions passed (27/27). No production D1 migration, selective data cleanup, or application catalog registration has been applied.
|