@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,31 @@
|
|
|
1
|
+
# Ecommerce CMS — site and new-theme entry contract
|
|
2
|
+
|
|
3
|
+
## Separate products; one account-owned site identity
|
|
4
|
+
|
|
5
|
+
- **Sites → Create store** uses the existing account-authorized `/start` workflow. No `studio_templates` row is required to initiate website creation. Site creation is not theme-project creation.
|
|
6
|
+
- **Store → New theme** accepts the real backend-advertised `new_theme_url`, `/admin/sites/:siteId/themes/new/editor`. The Ecommerce CMS Theme Studio creates a *private* `agentsam.theme-project.v1` draft and resolves to `/admin/sites/:siteId/themes/:projectId/editor/home?assistant=theme`. No live publication is implied.
|
|
7
|
+
- **Theme Studio** is the reusable packaged Ecommerce editor (sections/tree, inspector, storefront preview, native AgentSam drawer). It is *not* Design Canvas. Design Canvas may hand off source-backed stock, but must never replace the editor startup surface.
|
|
8
|
+
|
|
9
|
+
## First-run state
|
|
10
|
+
|
|
11
|
+
1. Keep the packaged Theme Studio loading skeleton while the authorized site is checked and the draft is created.
|
|
12
|
+
2. Mount the canonical Theme Studio editor and the existing packaged drawer, not an alternate standalone canvas.
|
|
13
|
+
3. Render a first-run card **inside the editor preview stage**, with directions, authorized-site inspiration, or section-by-section editing. A failed assistant connection must leave section editing available.
|
|
14
|
+
4. Open AgentSam and send a site/project-scoped startup request. The model may inspect *available authorized* pages, brand assets, files and documentation, but must not claim to have inspected unavailable resources. It proposes directions and asks for the intended vibe/purpose/audience; it cannot publish or modify existing pages without approval.
|
|
15
|
+
5. Do not retry automatic startup every time the user reloads the same draft during a session. An in-progress assistant response must not be interrupted by another option request: retain the option in the real composer for user review.
|
|
16
|
+
|
|
17
|
+
## Production source degradation
|
|
18
|
+
|
|
19
|
+
A site-owned page may include a legacy R2 `r2_bucket` identifier without an installed storage adapter. In the `inneranimalmedia` homepage, one source section currently uses a legacy bucket identifier, while other sections use the canonical `cms` bucket. This is **not** permission to fabricate an object or rewrite its R2 pointer.
|
|
20
|
+
|
|
21
|
+
The site-owned page reader should return the other valid sections, mark the unavailable section `read_only`, and expose a visible source-warning in Theme Studio. The section write path continues to reject non-canonical bucket writes. Full editing of an unavailable legacy source still requires a verified authorized storage adapter/reconnection; a degraded read is not a source migration.
|
|
22
|
+
|
|
23
|
+
## Verification
|
|
24
|
+
|
|
25
|
+
- `node --test apps/ecommerce-cms-agentsam/tests/cms-site-owned-r2.test.mjs apps/ecommerce-cms-agentsam/tests/theme-project-bootstrap.test.mjs`
|
|
26
|
+
- `node --test apps/local-studio/scripts/theme-start-flow.test.mjs`
|
|
27
|
+
- `npm run check:theme-contract --prefix apps/ecommerce-cms-agentsam`
|
|
28
|
+
- `npm run build:assets --prefix apps/ecommerce-cms-agentsam`
|
|
29
|
+
- `./node_modules/.bin/tsc -p apps/local-studio/frontend/tsconfig.json --noEmit`
|
|
30
|
+
|
|
31
|
+
These checks do not replace an authenticated production acceptance test for the site editor, generated assistant reply, or source-reconnection workflow.
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# AgentSam live AST and creative resource graph
|
|
2
|
+
|
|
3
|
+
**Scope:** Local SDK initial capability, 2026-11-20. The hosted D1 registry and
|
|
4
|
+
`agentsam_codebase_retrieve` have **not** been migrated by this change.
|
|
5
|
+
|
|
6
|
+
## Why this exists
|
|
7
|
+
|
|
8
|
+
`agentsam init . --yes` adopts an existing source checkout without an index.
|
|
9
|
+
That should be enough to inspect available source with the appropriate parser.
|
|
10
|
+
Historically the hosted `agentsam_codebase_retrieve` resolves an ACTIVE index
|
|
11
|
+
generation before *any* structural D1 lookup. That remains useful for persisted
|
|
12
|
+
history/graph intelligence, but it is not a requirement for live AST work.
|
|
13
|
+
|
|
14
|
+
These are separate, complementary capabilities:
|
|
15
|
+
|
|
16
|
+
1. **Live syntax/structure** — parse the working tree at request time, no
|
|
17
|
+
D1/SQLite/vector/embeddings/GitHub/auth/network prerequisite.
|
|
18
|
+
2. **Repository index** — optional persistent, versioned AST nodes and
|
|
19
|
+
cross-file graph, with generation/revision provenance and incremental refresh.
|
|
20
|
+
3. **Semantic retrieval** — optional embedded concepts and similarity search.
|
|
21
|
+
4. **Creative resource graph** — typed, format-aware object structures, not
|
|
22
|
+
arbitrary text chunks.
|
|
23
|
+
|
|
24
|
+
Do not rename the older indexed tool to pretend it already does live parsing.
|
|
25
|
+
A live AST provider and indexed provider should be separately discoverable, with
|
|
26
|
+
explicit selection and honest capability/result metadata.
|
|
27
|
+
|
|
28
|
+
## Initial SDK implementation
|
|
29
|
+
|
|
30
|
+
`src/indexing/live-ast.js` supplies:
|
|
31
|
+
- `searchLiveAst(root, symbol, opts)`: local JavaScript/TypeScript compiler AST.
|
|
32
|
+
- `matchLiveAst(root, grammarPattern, {language, path})`: installed ast-grep
|
|
33
|
+
real language grammar, including Python/Rust/Go when supported. No silent
|
|
34
|
+
lexical fallback when a grammar or binary is missing.
|
|
35
|
+
- `createLiveAstRepositoryProvider(root)`: satisfies the portable
|
|
36
|
+
`RepositoryKnowledgeProvider` methods; `snapshot()` explicitly declares
|
|
37
|
+
that live evidence is not a persisted immutable snapshot.
|
|
38
|
+
|
|
39
|
+
`src/indexing/live-cad-graph.js` supplies `inspectLiveCadProject` over existing validated `cad.project.v1` and `cad.project.v2` projects, retaining stable entity IDs, relationships, coordinate units and wall assemblies.
|
|
40
|
+
A glTF preview is NOT an editable native CAD authority. This CAD inspector is
|
|
41
|
+
read-only and does not evaluate OCCT BRep, IFC or native FreeCAD objects.
|
|
42
|
+
|
|
43
|
+
`src/indexing/live-resource-graph.js` initially provides
|
|
44
|
+
`inspectLiveGltf(root, relativeFile)`, with individually addressable glTF 2.0
|
|
45
|
+
nodes, scenes, meshes, materials/PBR, textures, cameras, skins, images, and
|
|
46
|
+
references. Each object returns its file-relative JSON Pointer, source hash,
|
|
47
|
+
and optional authored ID. Array positions are **not** persistent identities.
|
|
48
|
+
|
|
49
|
+
Examples:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
agentsam init . --yes
|
|
53
|
+
agentsam ast symbols AgentComposer --cwd .
|
|
54
|
+
agentsam ast match --pattern 'def $NAME($$$ARGS): $$$BODY' --lang python --cwd .
|
|
55
|
+
agentsam ast scene assets/house.gltf --cwd .
|
|
56
|
+
agentsam ast cad .agentsam/cad/projects/house/1.json --cwd .
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Initial source scanning uses an authorized root, a bounded file/entry traversal,
|
|
60
|
+
symlink refusal, content size limits, line references and explicit parse errors.
|
|
61
|
+
This slice does **not** yet implement cross-file symbol resolution or a full
|
|
62
|
+
scene/BIM authoring workflow. It is source inspection only.
|
|
63
|
+
|
|
64
|
+
## Production integration required
|
|
65
|
+
|
|
66
|
+
The hosted tool `agentsam_codebase_retrieve` is generation-scoped. Keep it for
|
|
67
|
+
indexed retrieval. Offer distinct, real live tool keys after runtime handlers
|
|
68
|
+
and tests exist, e.g.:
|
|
69
|
+
|
|
70
|
+
- `agentsam_ast_live`: symbol/query/grammar + workspace_root + source lane.
|
|
71
|
+
- `agentsam_resource_graph_live`: format + path + scope + object query.
|
|
72
|
+
- `agentsam_codebase_retrieve`: explicitly indexed graph and semantic route.
|
|
73
|
+
|
|
74
|
+
Do **not** create active `agentsam_tools` rows for unimplemented handlers.
|
|
75
|
+
A live terminal source must be bound to the authenticated user's authorized
|
|
76
|
+
local device/workspace and must not silently clone GitHub or jump to another
|
|
77
|
+
account. Hosted Workers do not have the user's filesystem.
|
|
78
|
+
|
|
79
|
+
Live response provenance should include `source`, `workspace_root` (internal
|
|
80
|
+
only where required), `path`, `span` or `resource_pointer`, `parser`,
|
|
81
|
+
`source_hash`, `git_revision` when available, `truncated`, and diagnostics.
|
|
82
|
+
Indexes additionally report `repository_id` and `index_generation_id`.
|
|
83
|
+
Explain missing coverage rather than returning empty results as exhaustive.
|
|
84
|
+
|
|
85
|
+
## Multi-domain creative contract
|
|
86
|
+
|
|
87
|
+
For each resource type, ship a **format-specific parser adapter** with:
|
|
88
|
+
|
|
89
|
+
- `detect` (content/version identification)
|
|
90
|
+
- `parse` (typed syntax or object tree, no text flattening)
|
|
91
|
+
- `nodes` (stable authored IDs if available; source-path/version/pointers)
|
|
92
|
+
- `edges` (object references, dependency and ownership relationships)
|
|
93
|
+
- `inspect` (bounded properties with units and schema/version)
|
|
94
|
+
- `validate` (broken refs, unsupported nodes, transforms, units)
|
|
95
|
+
- `patch` / `serialize` (future explicit editor-controlled revisions,
|
|
96
|
+
atomic changes, and round-trip preservation)
|
|
97
|
+
|
|
98
|
+
Priority format families:
|
|
99
|
+
|
|
100
|
+
| Domain | Parser/runtime boundary | Structured units |
|
|
101
|
+
| --- | --- | --- |
|
|
102
|
+
| JS/TS | TypeScript AST; typechecker/project graph next | symbols, imports, calls, types |
|
|
103
|
+
| Python/Rust/Go and other code | ast-grep/Tree-sitter grammar adapters, optional LSP | definitions, references, syntax |
|
|
104
|
+
| glTF/GLB | glTF 2.0 asset graph; binary GLB adapter remains future | scenes, objects, meshes, PBR, animation |
|
|
105
|
+
| AgentSam CAD v1/v2 | existing portable project validators and editable schema | geometry entities, wall assemblies, relationships, scenes, units |
|
|
106
|
+
| IFC/BIM | IFC schema/version-aware native parser (not regex) | entities, relations, placements, property sets, units |
|
|
107
|
+
| STEP/BRep and CAD | OCCT/STEP parser + parametric feature provenance | solids, faces, edges, topology, features |
|
|
108
|
+
| OpenSCAD | language parser + evaluated solid/CSG graph | modules, parameters, CSG operations |
|
|
109
|
+
| USD | USD scene-composition parser/runtime | prims, layers, variants, materials, references |
|
|
110
|
+
| SVG/design | XML/SVG DOM with reversible source mappings | groups, paths, text, transforms, styles |
|
|
111
|
+
| Media/timeline | format-aware compositions/edits | tracks, clips, keyframes, effects |
|
|
112
|
+
| CMS/layout | app-owned schema/section/block parsers | sites, pages, sections, blocks, assets |
|
|
113
|
+
|
|
114
|
+
Do not claim that a file extension or JSON parser alone grants IFC, OCCT,
|
|
115
|
+
OpenSCAD, Blender, or USD AST understanding. A grammar's syntax tree and
|
|
116
|
+
evaluated domain model are also separate: a valid source AST does not establish
|
|
117
|
+
correct geometry or physical units.
|
|
118
|
+
|
|
119
|
+
## Acceptance boundary
|
|
120
|
+
|
|
121
|
+
- Any *supported* local source project can be adopted without indexing.
|
|
122
|
+
- Live JS/TS and optional other installed grammar patterns resolve on the
|
|
123
|
+
current source tree, including uncommitted edits.
|
|
124
|
+
- No unexpected D1, embeddings, clone, storage upload, or index activation.
|
|
125
|
+
- Results cannot silently claim cross-file edges where resolution is absent.
|
|
126
|
+
- Typed scene objects are individually inspectable with source revision
|
|
127
|
+
locators; a material is not flattened into a scene text blob.
|
|
128
|
+
- Further IFC/OCCT/USD/MovieMode/CMS integrations are **not shipped** by this
|
|
129
|
+
first implementation and must be covered by adapter-specific tests.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# PrimeTech / IAMScene v2 — execution/readiness contract
|
|
2
|
+
|
|
3
|
+
Basis: owner-supplied 2026-11-20 Spline extraction (220 control/reference rows, 33 Create object entries plus Templates) and inspected PrimeTech/CAD Creator/IAMScene source, 2026-11-21.
|
|
4
|
+
|
|
5
|
+
This is **not** a claim that Spline internals were implemented or that the captured labels exhaust Spline. Screenshot-confirmed labels, interaction evidence, schema storage, editor commands, renderer/simulator bindings, and production host outcomes require independent verification.
|
|
6
|
+
|
|
7
|
+
## The four separate version authorities
|
|
8
|
+
|
|
9
|
+
- Root SDK release: `@inneranimalmedia/agentsam-sdk` version; unrelated to scene document format.
|
|
10
|
+
- IAMScene npm package release: independent; it can support multiple file versions.
|
|
11
|
+
- `.iamscene` v1: **stable current runtime/document** `formatVersion=1.0.0` / `packages/iamscene/schema/iamscene.v1.schema.json`.
|
|
12
|
+
- `.iamscene` v2: **experimental authoring data** `formatVersion=2.0.0` / `packages/iamscene/schema/iamscene.v2.schema.json`. Parsing/validation/migration and editing are implemented; **v2 rendering, events, simulation and host inspectors are not yet claimed implemented**.
|
|
13
|
+
|
|
14
|
+
Never re-label v1 data as v2 without a real migration. CLI `iamscene migrate-v2 <old> --out <new>` writes a separate file, preserving the source. The public v2 R2 schema URLs are reserved IDs until deployment/readback confirms their content.
|
|
15
|
+
|
|
16
|
+
## Existing engine and data ownership
|
|
17
|
+
|
|
18
|
+
| Concern | Source owner / boundary | Observed today |
|
|
19
|
+
| --- | --- | --- |
|
|
20
|
+
| Scene authoring + v1 runtime | `packages/iamscene` | v1 nodes, camera, environment, animation; glTF/GLB import/export; v2 document/editor is a separate experimental API |
|
|
21
|
+
| Native CAD, feature histories, BIM | `apps/cad-creator/schemas/v2`, `@inneranimalmedia/agentsam-occt` | Real CAD-specific contracts/engine; scene assets reference CAD sources, no duplicated BRep kernel |
|
|
22
|
+
| CAD drawing/stock/template Create UI | `apps/cad-creator/frontend/src/components/EngineeringWorkbench.tsx`, `quick-add/*` | Existing real CAD-specific tool handlers and theme-scoped gallery; **not** a functioning 33-type scene-object Create menu |
|
|
23
|
+
| Studio template resource catalog | Existing `studio_templates` domain | Objects/scenes are reusable resources; do not replace the DB registry with compiled example packs |
|
|
24
|
+
| IAMScene-independent capability/operation contracts | `@inneranimalmedia/agentsam-contracts` | `scene-format.v1` handles import/export/reference/round-trip; `scene-document.v2` declares authoring vs runtime operations |
|
|
25
|
+
| Root SDK discovery | `protocol/capabilities/manifest.json` + generated inventories | v2 APIs are `api_only: true`; declarations are not executable AgentSam tools until a host handler binds and authorizes them |
|
|
26
|
+
|
|
27
|
+
## Spline extraction → 3D authoring domain
|
|
28
|
+
|
|
29
|
+
These are different registries, not 220 node kinds:
|
|
30
|
+
|
|
31
|
+
| Source evidence | Count | V2 persistence owner | Runtime/UI verification |
|
|
32
|
+
| --- | ---: | --- | --- |
|
|
33
|
+
| Create menu: 2D shapes | 5 | `objects.kind`, `resources.geometry` | 33-kind vocabulary; no generic v2 viewport adapter yet |
|
|
34
|
+
| Create menu: Text/vector/UI | 5 | Object text, vector geometry and referenced assets | No complete font, extrusion, curve-point or input editor wiring yet |
|
|
35
|
+
| Create menu: Particle/hair/force | 3 | Object emitter/force references, simulation records | Physics/emitter/hair execution not implemented by this v2 data contract |
|
|
36
|
+
| Create menu: 3D shapes/stock | 15 | Parameterized geometry and/or `.iamgeometry`/GLB/CAD asset | Engine support must be verified per type, not inferred from enum |
|
|
37
|
+
| Create menu: Group/camera/lights | 5 | Objects, cameras, lights, scene references | Camera viewport, play camera and personal viewport remain separate concepts |
|
|
38
|
+
| Templates browser | Separate entry | Existing DB catalog, reusable objects/scenes | An asset being listed is not proof it can be instantiated |
|
|
39
|
+
| UI/control inventory | 220 rows | Multiple editor components, inspectors and runtime operations | **Not** 220 implemented or passing controls |
|
|
40
|
+
|
|
41
|
+
Object serialization includes 33 captured Create types and three legacy/import kinds (`mesh`, `pulse`, `light`). These are allowed data types; `describeSceneV2ObjectSupport()` reports create, inspect, render and serialize separately. The default without an installed adapter is unavailable.
|
|
42
|
+
|
|
43
|
+
### Scene systems
|
|
44
|
+
|
|
45
|
+
- Frames and layout: responsive/custom/preset, dimensions, auto zoom — `systems.frames`, `scenes.frameRef`.
|
|
46
|
+
- Camera: scene play camera `scenes.playCameraRef`, independently identified `systems.cameras`; working personal viewport in `views.personalCamera`. Neither is automatically an editable camera object in the hierarchy.
|
|
47
|
+
- Lighting: `systems.lights`, environment light refs; spot, point, directional, area records; editor settings and lighting outputs remain distinct.
|
|
48
|
+
- Environment: independent `systems.environments`, `skies`, `fogs`, `shadows`, `effects` and `pipelines`, linked by stable ID. No giant opaque scene-settings blob.
|
|
49
|
+
- Physics/particles/hair: `systems.simulations`, object `emitter` and its force refs. **Simulation and hair handlers absent from v2 SDK**.
|
|
50
|
+
- Procedural/model geometry: `resources.geometry` with independent instance `objects.geometryRef`. CAD feature history continues in CAD project / OCCT; geometry assets can be referenced and swapped without changing object identity.
|
|
51
|
+
- Materials/textures: reusable `resources.materials`, `assets`, and `materialTextures` with referenced IDs, not isolated renderer-only state.
|
|
52
|
+
- States/timeline/interactions: `behaviors.states`, `animations`, `events` and typed actions. **Event execution absent from v2 SDK**.
|
|
53
|
+
- Variables/integrations: `behaviors.variables` and `dataSources`; no credentials or executable code stored in scene files. Authorized API/webhook invocations must be host-owned.
|
|
54
|
+
- Selected-object inspectors: contextual fields require v2 property setters and actual specialist panel renderers. Serialization alone does not count as a usable inspector.
|
|
55
|
+
|
|
56
|
+
## Acceptance gates for each captured control
|
|
57
|
+
|
|
58
|
+
For every `PT-001 ... PT-220` evidence row, record:
|
|
59
|
+
1. **Source evidence:** menu/tooltip/selection/control state and screenshot, not inferred implementation.
|
|
60
|
+
2. **Document data:** schema property, scope (scene/object/resource/viewport/behavior), stable ID, edit/undo/save/reload, missing-reference handling.
|
|
61
|
+
3. **Executable handler:** installed engine or host owns the real command; valid input, side effects, permission, disabled state and error receipt verified.
|
|
62
|
+
4. **Editor UI:** relevant visible button/slider/inspector is connected to that handler, with selection-aware fields, keyboard/cancel/undo behavior.
|
|
63
|
+
5. **Real outcome:** inspect the actual viewport/simulation/export result, test persistence and reimport, and report lost/unsupported properties.
|
|
64
|
+
|
|
65
|
+
Do not promote a control to `verified` from a schema entry, a visual screenshot, a fixture, or a stub function.
|
|
66
|
+
|
|
67
|
+
## Concrete acceptance scenarios
|
|
68
|
+
|
|
69
|
+
- **Editable 3D text:** place Text → choose font/weight/alignment/spacing → extrude/bevel → edit source text → save/reopen and verify geometry and independent material IDs; currently **not fully wired**.
|
|
70
|
+
- **Particle scene:** create Emitter and Force separately → link force ID → change gravity/noise/randomness → play/pause/record simulation → undo/edit/save/reopen; currently **schema only, runtime unavailable**.
|
|
71
|
+
- **Primitive scene:** create sphere/cube/torus from the actual object menu → edit dimensions/bevel/extrusion → confirm geometry and instance independently change → verify undo/redo; v2 authoring supports a defined primitive subset, **no generic host v2 viewport renderer yet**.
|
|
72
|
+
- **Scenes vs templates:** create two separate scenes, preserve per-scene environment/camera; instantiate a reusable DB template without copying a static library into the app; **v2 multi-scene authoring exists**, host/template round trip not verified.
|
|
73
|
+
- **Interactive actions:** state → event → typed action → variable data binding → confirm runtime and no duplicate events after reload; **v2 stores definitions, does not execute them**.
|
|
74
|
+
- **Mobile/desktop:** iPhone 13 Pro 390×844 and desktop 2560×1440; inspector, viewport, keyboard and touch routes need actual host testing before accepted.
|
|
75
|
+
|
|
76
|
+
## Verification commands
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
npm --prefix packages/agentsam-contracts test
|
|
80
|
+
npm --prefix packages/iamscene test
|
|
81
|
+
npm run verify:scene-formats
|
|
82
|
+
npm run verify:registry
|
|
83
|
+
iamscene init draft.iamscene.json --format-version 2
|
|
84
|
+
iamscene validate draft.iamscene.json
|
|
85
|
+
iamscene inspect draft.iamscene.json
|
|
86
|
+
iamscene migrate-v2 old.iamscene.json --out new.iamscene.json
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
No v2 runtime, simulation or UI host is shipped just because these operations pass. Record each enabled capability with concrete handler binding and evidence.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Python CAD service transport and durable job boundary
|
|
2
|
+
|
|
3
|
+
## Decision
|
|
4
|
+
|
|
5
|
+
The Python CAD SDK exposes two deliberately separate client surfaces:
|
|
6
|
+
|
|
7
|
+
- **`CadServiceClient`** is an authenticated provider transport for short operations, capability
|
|
8
|
+
discovery, mount-relative files and verified artifact transfer.
|
|
9
|
+
- **`CadJobClient`** delegates long-running project work to the host's existing SAM operations:
|
|
10
|
+
`cad.job.generate`, `cad.job.status` and `cad.job.execute`.
|
|
11
|
+
|
|
12
|
+
`AgentSamClient.cad_jobs` and `AsyncAgentSamClient.cad_jobs` expose that existing job client. The
|
|
13
|
+
host remains the authority for principal resolution, project/workspace authorization, approval,
|
|
14
|
+
runner dispatch and `agentsam_cad_jobs` persistence. The Python SDK creates no queue, local job
|
|
15
|
+
database or alternate job table.
|
|
16
|
+
|
|
17
|
+
## Existing source and result contracts
|
|
18
|
+
|
|
19
|
+
- `cad.project.v2` is the canonical portable project contract and schema. The local Node
|
|
20
|
+
`agentsam cad project` file-store runtime remains a legacy v1 path; this transport PR does not
|
|
21
|
+
claim to make that local runtime a full v2 authoring system.
|
|
22
|
+
- CAD operation intent and authorization remain in the existing SAM CAD pack.
|
|
23
|
+
- Durable job identity and lifecycle remain in the host-owned CAD job port.
|
|
24
|
+
- The general CAD project pipeline uses the canonical artifact receipt and delivery-manifest
|
|
25
|
+
contracts: source/project revision, operation, executor/version, artifact URI, byte count, digest
|
|
26
|
+
and validation evidence. The experimental building proof retains its operation-specific v1
|
|
27
|
+
receipt and is not a replacement for those contracts.
|
|
28
|
+
- File refs are mount-relative aliases. The service resolves them against operator-authorized
|
|
29
|
+
mounts; callers cannot submit arbitrary host paths.
|
|
30
|
+
|
|
31
|
+
## Provider transport: `CadServiceClient`
|
|
32
|
+
|
|
33
|
+
`CadServiceClient` is standard-library-only. It imports no Node runtime or geometry engine. It
|
|
34
|
+
provides:
|
|
35
|
+
|
|
36
|
+
- Authenticated capability discovery with a short cache and explicit refresh.
|
|
37
|
+
- Operation dispatch only when the provider advertises that operation.
|
|
38
|
+
- Typed errors with stable code, HTTP status, retryability, request ID and details.
|
|
39
|
+
- HTTPS by default. Plain HTTP is accepted only for loopback unless an operator explicitly opts in.
|
|
40
|
+
- Mount-relative file listing and strict resource-reference validation.
|
|
41
|
+
- `download_to()` for file-backed output. It streams in bounded chunks, supports HTTP byte-range
|
|
42
|
+
resume, verifies complete byte count and SHA-256, and atomically promotes the verified file.
|
|
43
|
+
- `download()` for small inline artifacts only; larger artifacts must use `download_to()`.
|
|
44
|
+
|
|
45
|
+
POST operations are not automatically retried. A retry must follow the operation's idempotency
|
|
46
|
+
semantics; blindly replaying a build or write can create duplicate work.
|
|
47
|
+
|
|
48
|
+
## Durable jobs: `AgentSamClient.cad_jobs`
|
|
49
|
+
|
|
50
|
+
Bind the facade to a trusted invoker supplied by the authenticated host integration:
|
|
51
|
+
|
|
52
|
+
~~~python
|
|
53
|
+
from agentsam_sdk import AgentSamClient, AsyncAgentSamClient
|
|
54
|
+
|
|
55
|
+
client = AgentSamClient(cad_job_invoker=authorized_host_operation)
|
|
56
|
+
job = client.cad_jobs.submit(
|
|
57
|
+
project_id="project_123",
|
|
58
|
+
workspace_id="workspace_123",
|
|
59
|
+
engine="freecad",
|
|
60
|
+
prompt="Build a parametric enclosure with mounting bosses",
|
|
61
|
+
)
|
|
62
|
+
result = job.wait(timeout=3600)
|
|
63
|
+
|
|
64
|
+
async_client = AsyncAgentSamClient(cad_job_invoker=authorized_host_operation)
|
|
65
|
+
job = await async_client.cad_jobs.submit(
|
|
66
|
+
project_id="project_123",
|
|
67
|
+
workspace_id="workspace_123",
|
|
68
|
+
engine="openscad",
|
|
69
|
+
prompt="Build a validated CSG bracket",
|
|
70
|
+
)
|
|
71
|
+
~~~
|
|
72
|
+
|
|
73
|
+
The invoker dispatches the existing SAM operation IDs; it is not a raw HTTP endpoint, shell
|
|
74
|
+
executor, caller-controlled account ID or stdio bridge. Without an invoker, the facade remains
|
|
75
|
+
available but fails closed with `cad_job_host_not_configured`. The async facade delegates blocking
|
|
76
|
+
host calls off the event loop. There is no client-side cancel operation until the host exposes a
|
|
77
|
+
canonical cancel operation.
|
|
78
|
+
|
|
79
|
+
## Compatibility boundary: `CadBuildingClient`
|
|
80
|
+
|
|
81
|
+
`CadBuildingClient` remains a backwards-compatible wrapper for the experimental
|
|
82
|
+
`agentsam.cad.building-export.v1` rectangular-building proof. Its nine required outputs are a
|
|
83
|
+
profile for that proof, not a universal CAD artifact list.
|
|
84
|
+
|
|
85
|
+
The building endpoint advertises `requires-runtime-proof`. The client reports service reachability
|
|
86
|
+
separately from operation readiness and refuses to claim the building operation is ready until the
|
|
87
|
+
host supplies explicit runtime proof. It binds the receipt to the exact source mount/path/hash/
|
|
88
|
+
revision. An installed handler or binary alone is not proof. The endpoint remains synchronous and
|
|
89
|
+
bounded by the existing 120-second execution limit; it is not the general durable CAD job API.
|
|
90
|
+
|
|
91
|
+
## Artifact transfer limits
|
|
92
|
+
|
|
93
|
+
- Inline JSON/base64 artifacts: 25 MiB maximum.
|
|
94
|
+
- File-backed artifacts: configurable `AGENTSAM_CAD_MAX_ARTIFACT_BYTES`, 2 GiB default and 16 GiB
|
|
95
|
+
hard maximum.
|
|
96
|
+
- File downloads stream from disk, advertise byte ranges, and support HEAD and resumable Range
|
|
97
|
+
requests.
|
|
98
|
+
- Uploads stream to a temporary file, hash incrementally, verify an optional supplied digest and
|
|
99
|
+
atomically replace the destination.
|
|
100
|
+
|
|
101
|
+
The client verifies the digest and byte count from the source receipt after transfer. HTTP success
|
|
102
|
+
is not a substitute for artifact verification.
|
|
103
|
+
|
|
104
|
+
## Acceptance
|
|
105
|
+
|
|
106
|
+
Run:
|
|
107
|
+
|
|
108
|
+
~~~bash
|
|
109
|
+
npm run verify:cad-building
|
|
110
|
+
npm run test:python
|
|
111
|
+
npm run verify:cad-python
|
|
112
|
+
~~~
|
|
113
|
+
|
|
114
|
+
Acceptance covers endpoint and resource-ref security, provider operation readiness, source-linked
|
|
115
|
+
receipt validation, inline-size rejection, resumed artifact downloads, host-owned job
|
|
116
|
+
submit/status/execute, and HTTP HEAD/Range/streamed PUT behavior.
|
|
@@ -14,6 +14,11 @@ The question "what is the schema for an app?" has more than one answer because a
|
|
|
14
14
|
| App save-state/document | App-owned `save-state.schema.json` or other domain document | User/project state, ownership and revision |
|
|
15
15
|
| Schema pack | App- or package-owned manifest (as applicable) | Versioned URLs, integrity of schema modules, compatibility |
|
|
16
16
|
| 3D scene | `packages/iamscene/schema/iamscene.v1.schema.json` | Portable `.iamscene.json` content and runtime-facing scene graph |
|
|
17
|
+
| Reusable scene geometry | `packages/iamscene/schema/iamgeometry.v1.schema.json` | Linked and versioned `.iamgeometry` asset manifest; not a new OCCT kernel |
|
|
18
|
+
| File-format identity | `contracts/source-types.v2.json` + `contracts/source-types.v2.schema.json` | Universal source identification; package copy is generated and protocol copy is a tested compatibility mirror; format naming is not editability |
|
|
19
|
+
| ACP run and activity wire contracts | `packages/agentsam-contracts/src/run.ts` + `schemas/{run,run-start,run-receipt,activity}.v1.schema.json` | `src/acp/client.js` maps persisted runs/events into wire contracts; migrations own storage status and suspension/event persistence |
|
|
20
|
+
| 3D format operations | `packages/iamscene/src/format-registry.ts` | Real import/export/reference/round-trip adapters; checked through portable `agentsam.scene-format.v1` contracts |
|
|
21
|
+
| Scene capability vocabulary | `packages/agentsam-contracts/src/scene-format.ts` and `schemas/scene-format.v1.schema.json` | Portable operation statuses, source integrity and semantic-loss receipts; not an executable converter |
|
|
17
22
|
| CAD project | Existing `cad.project.v2.schema.json` | Native project/revision, geometry and engineering authority |
|
|
18
23
|
| CAD v2 modules | `protocol/cad/v2/schema-pack.manifest.json` and its 22 schema modules | Optional strict validation of domain-specific structures; not a new project root |
|
|
19
24
|
| CoPro project | Existing CoPro project/timeline contracts | Media timeline, edit history and synchronized assets |
|
|
@@ -21,6 +26,14 @@ The question "what is the schema for an app?" has more than one answer because a
|
|
|
21
26
|
|
|
22
27
|
An APP may reference several independently versioned document schemas. A game such as Wizard Chess can therefore have one app manifest plus separately owned settings/save-state schemas without introducing a duplicate APP identity.
|
|
23
28
|
|
|
29
|
+
## Cross-layer contract enforcement
|
|
30
|
+
|
|
31
|
+
- **TypeScript:** `@inneranimalmedia/agentsam-contracts` owns portable wire/domain types; ACP runtime mappers reference them instead of inventing parallel interfaces.
|
|
32
|
+
- **JSON Schema:** package-owned Draft 2020-12 schemas define serialized boundaries; `protocol/` contains exact compatibility mirrors.
|
|
33
|
+
- **Runtime:** tool and operation registration validates embedded JSON Schema objects against Draft 2020-12 or Draft 7 meta-schemas through Ajv. This validates schema structure; external `$ref` resolution remains the owning schema-pack publisher's responsibility.
|
|
34
|
+
- **Persistence:** `AgentRunStorageStatus` mirrors the constrained values in `migrations/runtime/0001_cli_runtime.sql`. The ACP `recordAgentRunTimeout()` helper writes storage status `failed`, clears any suspension and appends an idempotent `run.timed_out` event; the public mapper then exposes lifecycle status `timed_out`. No table rebuild is required.
|
|
35
|
+
- **Regression tests:** package tests validate actual activity projections and schema mirrors; ACP tests validate run/start/receipt responses; CAD tests reject unknown catalog IDs.
|
|
36
|
+
|
|
24
37
|
## IAMScene — observed publication drift
|
|
25
38
|
|
|
26
39
|
Current SDK source:
|
|
@@ -44,6 +57,49 @@ On November 19, 2026, the existing `packages/iamscene/v1/scene.schema.json` obje
|
|
|
44
57
|
|
|
45
58
|
A URL resolving and JSON parsing is **not** sufficient: published bytes must match the source, and the runtime must support all schema-accepted features.
|
|
46
59
|
|
|
60
|
+
## IAMGeometry, source identity and format interoperability
|
|
61
|
+
|
|
62
|
+
The reusable geometry-asset schema is **already defined in this repository** at
|
|
63
|
+
`packages/iamscene/schema/iamgeometry.v1.schema.json` and exported from the
|
|
64
|
+
`@inneranimalmedia/iamscene/geometry-schema` package entrypoint. Its declared
|
|
65
|
+
`$id` is `https://schemas.inneranimalmedia.com/packages/iamscene/v1/iamgeometry.schema.json`.
|
|
66
|
+
That URL is the intended content-addressed publication target, **not evidence
|
|
67
|
+
of an existing deployed R2 or public object**. Use the same immutable-byte,
|
|
68
|
+
checksum, public retrieval, revision and consumer-fixture checks required for
|
|
69
|
+
`.iamscene` before publishing it. Do not overwrite the existing scene schema.
|
|
70
|
+
|
|
71
|
+
The root `contracts/source-types.v2.json` (additive catalog revision `2.0.1`)
|
|
72
|
+
is the source of truth for *identification* of `.iamscene`, `.iamscene.json` and
|
|
73
|
+
`.iamgeometry`; this catalog explicitly does not advertise parsers, engines or
|
|
74
|
+
file export ability. Its package mirror in `packages/agentsam-contracts/schemas`
|
|
75
|
+
is generated by the contracts build.
|
|
76
|
+
|
|
77
|
+
IAMScene descriptors now carry `sourceTypeIds` referencing those root
|
|
78
|
+
identities. The registry links to, but never duplicates, the universal
|
|
79
|
+
identification algorithms. The source-type catalog also includes OpenCascade
|
|
80
|
+
`.brep` and OpenTimelineIO `.otioz` identities; neither is automatically an
|
|
81
|
+
editable import format.
|
|
82
|
+
|
|
83
|
+
The existing `packages/iamscene/src/format-registry.ts` is the authority for
|
|
84
|
+
*actual format operations*: import, export, live reference and round-trip are
|
|
85
|
+
four independent, runtime-adapter-dependent declarations. A live-reference
|
|
86
|
+
receipt confirms only the supplied bytes and digest and is marked
|
|
87
|
+
`identification: extension-hint`; it does not prove format semantics. The portable API
|
|
88
|
+
vocabulary/receipts live in `packages/agentsam-contracts/src/scene-format.ts`. Their
|
|
89
|
+
Draft 2020-12 schema is packaged at `packages/agentsam-contracts/schemas/scene-format.v1.schema.json`; publishing its `$id` URL requires a separate verified release.
|
|
90
|
+
The root `protocol/capabilities/manifest.json` advertises their SDK API
|
|
91
|
+
entrypoints under `iamscene.format.*` and the opt-in `iamscene.native.export`,
|
|
92
|
+
but **does not bind hosted agent handlers or grant authorization**.
|
|
93
|
+
|
|
94
|
+
Regenerate package discovery and team-facing inventory only from their existing
|
|
95
|
+
sources: `packages/iamscene/agentsam.package.json` and
|
|
96
|
+
`packages/agentsam-contracts/agentsam.package.json` via
|
|
97
|
+
`scripts/catalog/build_catalog.py`, then `scripts/registry/generate.mjs`,
|
|
98
|
+
`scripts/registry/generate-docs.mjs` and `scripts/generate-capability-inventory.mjs`.
|
|
99
|
+
Run `npm run verify:scene-formats` to enforce cross-layer drift and execute
|
|
100
|
+
working format adapters. A referenceable `.blend`, `.ifc`, `.usd` or other
|
|
101
|
+
extension is never automatically importable, editable or exportable.
|
|
102
|
+
|
|
47
103
|
## CAD v2 — two layers, not necessarily two competing project models
|
|
48
104
|
|
|
49
105
|
Observed old root:
|
|
@@ -85,3 +141,30 @@ When connecting documents, record `sourceUri`, `sourceRevision`, `format`, `sha2
|
|
|
85
141
|
8. **Evidence:** Publish receipt records Git SHA, schema URI, object key, version, SHA-256, timestamp, response status and consumer smoke results.
|
|
86
142
|
|
|
87
143
|
Keep one source owner per schema, and use redirects/mirrors only for compatibility. New URLs should be created because of meaningful domain distinctions—not merely because another feature needed a schema file.
|
|
144
|
+
|
|
145
|
+
## CAD v2 source-driven building export (bounded execution slice)
|
|
146
|
+
|
|
147
|
+
`src/lib/cad/project-v2.js` and `protocol/cad/v2/` continue to own the
|
|
148
|
+
source-of-truth document. `services/cad/proof/building_source.py` accepts
|
|
149
|
+
only a source-hashed, recognized v2 rectangular building shell with typed
|
|
150
|
+
openings referenced by stable geometry IDs; unsupported geometry is rejected.
|
|
151
|
+
`services/cad/proof/building_proof.py` drives the real FreeCAD/OCCT/IfcOpenShell,
|
|
152
|
+
ezDXF, Blender and FFmpeg tools. `services/cad/server.py` exposes the same
|
|
153
|
+
pipeline through authenticated `/v1/cad/building/export`, retaining the source
|
|
154
|
+
file and returning isolated derived artifacts with integrity receipts.
|
|
155
|
+
|
|
156
|
+
`packages/iamscene/src/cad-host.ts` is an **optional** probeable Node host
|
|
157
|
+
transport, exported from `@inneranimalmedia/iamscene/node`.
|
|
158
|
+
`python/agentsam_sdk/cad/building.py` is the Python-only transport.
|
|
159
|
+
Neither introduces another CAD kernel, source document type, IAMScene format
|
|
160
|
+
registry, blanket agent permission or a mandatory project container.
|
|
161
|
+
The root `cad.building.export` capability is only callable when a host binds a
|
|
162
|
+
verified handler and authorizes the specific resource operation.
|
|
163
|
+
|
|
164
|
+
The current acceptance scope is one rectangular shell and north/south wall
|
|
165
|
+
openings. **Do not claim whole-model DreamHouse BIM coverage, general IFC
|
|
166
|
+
import/export, a hosted Cloudflare deployment or installed native runtime**
|
|
167
|
+
without corresponding independent tests. The existing `inneranimalmedia`
|
|
168
|
+
`iam-cad-worker` image is a separate deployment owner; its current Dockerfile
|
|
169
|
+
lacks OCCT/IfcOpenShell/ezdxf, so it must be updated, tested and deployed
|
|
170
|
+
separately before hosted availability can be claimed.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# AgentSam package identity and installability — Batch 1 design contract
|
|
2
|
+
|
|
3
|
+
Status: **reviewed classification direction; not an active schema migration**. Use alongside `docs/audits/2026-11-22-sdk-d1-registry-parity.md`.
|
|
4
|
+
|
|
5
|
+
## Problem
|
|
6
|
+
|
|
7
|
+
`agentsam.app.json` currently means several incompatible things: an independently launchable surface, an embedded feature, an integration, a host, and a reusable runtime package. Blindly inserting one `apps` row for each manifest would duplicate user-facing products, install infrastructure, and incorrectly expose scoped providers.
|
|
8
|
+
|
|
9
|
+
For AgentSam, *installable application* is a product/catalog identity with authenticated lifecycle and supported launch surfaces. A module or plugin may contain substantial code and/or its own UI without being a separately installable application.
|
|
10
|
+
|
|
11
|
+
## Target taxonomy
|
|
12
|
+
|
|
13
|
+
| Kind | Meaning | User-facing install lifecycle | Examples |
|
|
14
|
+
|---|---|---|---|
|
|
15
|
+
| distribution / host | Installer, shell or platform entry point | Distribution/identity lifecycle, not a merchant app catalog row by default | Local Studio for macOS, platform web shell |
|
|
16
|
+
| application | Cohesive product with supported launch surface | Yes, when product/release eligible | MovieMode, Ecommerce CMS |
|
|
17
|
+
| module | Feature/experience hosted inside an app, optionally independently packaged | No independent install by default | CoPro timeline/editor, SamSpeaks voice/direction, Product Studio, Database Editor |
|
|
18
|
+
| plugin | Explicitly connected provider/extension with grant/config scope | Plugin installation/connection | Completeful, Resend |
|
|
19
|
+
| shared capability | Portable implementation consumed by multiple products | Package dependency, not customer installation | agentsam-workbench, database services, IAMScene |
|
|
20
|
+
| site | Customer-owned rendered website or store | Site/theme publication lifecycle | CMS sites; never conflated with app catalog |
|
|
21
|
+
|
|
22
|
+
**A single product may consume multiple independently versioned packages.** Product identity is not package nesting. Local Studio desktop and web must access the same account-owned authorized capabilities rather than fork their own catalogs.
|
|
23
|
+
|
|
24
|
+
## Decisions for current mismatches
|
|
25
|
+
|
|
26
|
+
- `local-studio` → platform host/distribution. Explicit downloadable, sign-up and sign-in lifecycle. Do not represent it as another ordinary installable *within itself*.
|
|
27
|
+
- `moviemode` → canonical application ID. `agentsam-copro-studio` is its packaged editor/core module; `samspeaks` contributes voice/direction functionality. **Do not register three consumer apps**.
|
|
28
|
+
- `completeful` / `resend` → existing `agentsam_plugins` providers, with account/site-scoped connections and grants.
|
|
29
|
+
- `database-editor` → shared module accessible from relevant application surfaces, not a standalone public marketplace pitch. Production `apps` currently has this as public with an existing installation. Preserve that installation and provide routing/compatibility reconciliation before any catalog demotion.
|
|
30
|
+
- `product-studio` → commerce module owned by the CMS product experience.
|
|
31
|
+
- `agentsam-workbench` → reusable shell/runtime, not an app.
|
|
32
|
+
- `samsketch`, `cad-creator`, `design-canvas`, `goalguru`, `growth`, `agentsamforms` → hold their current installation records; validate independent-product versus feature-module identity in a dedicated acceptance matrix, not by file count.
|
|
33
|
+
- Legacy private `apps` rows → preserve tenant ownership; do not promote to public applications.
|
|
34
|
+
|
|
35
|
+
## Manifest contract direction
|
|
36
|
+
|
|
37
|
+
Retain reading legacy `agentsam.app.v1` manifests. The proposed **versioned common package manifest** must distinguish `kind` and `installability` explicitly and validate:
|
|
38
|
+
|
|
39
|
+
- Canonical ID, package identity, version and lifecycle maturity
|
|
40
|
+
- Product identity vs distribution ID vs module ID, with explicit `part_of` references
|
|
41
|
+
- Eligible surfaces (web, desktop, mobile, embedded), mounts and routing
|
|
42
|
+
- Dependencies/required capabilities and extension points, with portable semver contracts
|
|
43
|
+
- Authentication, tenant/site scoping and permissions/grants
|
|
44
|
+
- Runtime/handler target and release or deployment evidence
|
|
45
|
+
- Registration provenance and catalog eligibility, independent of whether the source file exists
|
|
46
|
+
|
|
47
|
+
Do not silently rename all `agentsam.app.json` files to a new format yet. Implement a validated legacy adapter and an inventory report first; then roll out one authoritative declaration format rather than creating a competing bespoke manifest per package kind.
|
|
48
|
+
|
|
49
|
+
## Skills, scripts and D1 rebuild policy
|
|
50
|
+
|
|
51
|
+
Source manifests for all 39 SDK skills are now required by a test. This is **metadata completion only**, not an automatic production import, activation, npm release or endorsement of old playbooks. Root `SKILL.md` remains the instruction source.
|
|
52
|
+
|
|
53
|
+
The 100 existing D1 skills and 395 scripts require archival/provenance classification. The user has indicated much of that content is outdated. For any future canonical schema rebuild:
|
|
54
|
+
|
|
55
|
+
1. Export a restorable snapshot of current data and record counts, hashes and source pointers.
|
|
56
|
+
2. Validate any live references, installation grants, script/run history, and active consumers before switching schemas.
|
|
57
|
+
3. Reconcile existing table names and necessary DDL. Do not fork into alternative product-specific registries.
|
|
58
|
+
4. Add explicit provenance/lifecycle states (`discovered`, `reviewed`, `active`, `deprecated`, `archived`) to the canonical registration contract, with validated capability and handler references.
|
|
59
|
+
5. Populate the active catalogs **selectively**, only after a candidate has been reviewed. Never mark a skill `is_published` merely because `SKILL.md` exists.
|
|
60
|
+
6. Migrate existing identity/revision/run data without losing referential integrity or audit records.
|
|
61
|
+
7. Apply tenant/site/workspace authorization tests before any production sync.
|
|
62
|
+
|
|
63
|
+
Do not truncate or drop the production `agentsam_skill`, `agentsam_scripts` or `agentsam_commands` tables as part of manifest coverage work.
|
|
64
|
+
|
|
65
|
+
## Acceptance gates
|
|
66
|
+
|
|
67
|
+
- 39/39 root skills have valid adjacent `agentsam.skill.v1` metadata and a non-empty `SKILL.md`.
|
|
68
|
+
- Existing SDK built-in trigger precedence and catalog aliases are not changed by this metadata-only slice.
|
|
69
|
+
- No new production app, plugin, skill or script activation.
|
|
70
|
+
- No extra consumer-facing MovieMode/SamSpeaks/CoPro identities.
|
|
71
|
+
- Migration PRs demonstrate exact live table compatibility, reversible data preservation and scoped execution.
|