@inneranimalmedia/agentsam-sdk 2.6.13 → 2.6.17

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.
Files changed (1182) hide show
  1. package/AGENTSAM.md +1 -1
  2. package/LICENSE +97 -8
  3. package/LICENSING.md +30 -0
  4. package/README.md +33 -7
  5. package/apps/README.md +1 -1
  6. package/apps/cad-creator/LICENSE +97 -8
  7. package/apps/cad-creator/README.md +1 -1
  8. package/apps/cad-creator/shared/cad/package.json +1 -1
  9. package/apps/cad-creator/shared/cad/src/index.ts +2 -0
  10. package/apps/cad-creator/shared/cad/src/native-plan.ts +16 -0
  11. package/apps/cad-creator/shared/cad/src/types.ts +50 -1
  12. package/contracts/source-types.v2.json +9381 -0
  13. package/contracts/source-types.v2.schema.json +571 -0
  14. package/docs/2026-11-12-chat-work-whitelabel-scaffold.md +42 -0
  15. package/docs/DATABASE_EDITOR_REMASTER_ACCEPTANCE_20261103.md +41 -0
  16. package/docs/DOCKERIZE.md +2 -2
  17. package/docs/PRODUCT_LIFECYCLE.md +2 -2
  18. package/docs/REPO_FILE_MAP.txt +1 -1
  19. package/docs/THEME_REFINERY.md +4 -117
  20. package/docs/acceptance/AGENTSAM_DOCS_CMS_2026-11-10.md +62 -0
  21. package/docs/acceptance/AGENTSAM_SDK_LOCAL_LAUNCH_2026-11-06.md +42 -0
  22. package/docs/acceptance/AGENTSAM_SDK_PUBLIC_CMS_2026-11-10.md +35 -0
  23. package/docs/acceptance/AGENTSAM_WIDGET_UTILITIES_2026-11-06.md +34 -0
  24. package/docs/acceptance/CREATIVE_DEPARTMENT_BATCH1_2026-11-01.md +47 -0
  25. package/docs/acceptance/FINANCE_SETTINGS_CMS_WIP_2026-11-07.md +42 -0
  26. package/docs/adr/ADR-0009-widget-platform-authority.md +130 -0
  27. package/docs/adr/ADR-0010-widget-contributions-registry-persistence.md +265 -0
  28. package/docs/adr/README.md +5 -0
  29. package/docs/agent-briefs/2026-10-28-agent1-ui-product-foundation.md +132 -0
  30. package/docs/agent-briefs/2026-10-28-agent2-cms-audit.md +144 -0
  31. package/docs/agent-briefs/2026-10-28-sites-next-wave-acceptance.md +67 -0
  32. package/docs/architecture/AGENTSAM-PRODUCT-CATALOG-RELEASES-20261028.md +80 -0
  33. package/docs/architecture/AGENTSAM_ACCOUNT_FIRST_METRICS_V2_2026-10-28.md +38 -0
  34. package/docs/architecture/AGENTSAM_APPLICATION_CONTRACT.md +37 -0
  35. package/docs/architecture/AGENTSAM_WORK_IDE_LANES_2026-10-28.md +51 -0
  36. package/docs/architecture/DESIGN_WORKSPACE_BOUNDARY.md +69 -0
  37. package/docs/architecture/PLATFORM_R2_SOURCE_OF_TRUTH.md +134 -0
  38. package/docs/architecture/PROJECTS_DREAMHOUSE_METRICS_SPRINT_2026-10-28.md +34 -0
  39. package/docs/architecture/SAM_KERNEL.md +8 -2
  40. package/docs/architecture/SCHEMA_AUTHORITIES.md +87 -0
  41. package/docs/architecture/brand-presentation-context-discovery-2026-11-01.md +41 -0
  42. package/docs/architecture/studio-templates-audit-2026-11-01.md +59 -0
  43. package/docs/audits/2026-10-28-cms-platform-seam-baseline.md +86 -0
  44. package/docs/audits/2026-10-28-cms-v1-v2-side-by-side.md +53 -0
  45. package/docs/authoring/agentsam-sdk-docs-portal.json +175 -0
  46. package/docs/brand/ICONOGRAPHY-WIP-HANDOFF-20261022.md +36 -0
  47. package/docs/brand/ICONOGRAPHY_INTEGRATION_AUDIT_2026-10-28.md +39 -0
  48. package/docs/engineering/CMS_DATA_AUTHORITY_2026-11-03.md +45 -0
  49. package/docs/engineering/LOCAL_STUDIO_CMS_INSTALL_2026-11-02.md +23 -0
  50. package/docs/evidence/COPRO_CREATIVE_V1_20261030.md +22 -0
  51. package/docs/evidence/media-library-20261031/README.md +39 -0
  52. package/docs/generated/SDK_CAPABILITY_INVENTORY.md +29 -30
  53. package/docs/handoffs/COPRO_CREATIVE_V1_AGENT2.md +69 -0
  54. package/docs/media/local-intake-r2-backup.md +47 -0
  55. package/docs/operations/CLOUDFLARE-QUEUE-OBSERVABILITY.md +64 -0
  56. package/docs/operations/WIP_RECONCILIATION_2026-11-02.md +89 -0
  57. package/docs/plans/AGENTSAM_MEDIA_LIBRARY_AGENT1_MAP_20261031.md +62 -0
  58. package/docs/plans/AGENTSAM_SDK_RELEASE_PROGRAM.md +145 -0
  59. package/docs/plans/LOCAL_STUDIO_DESKTOP_RELEASE_2026-09-29.md +5 -3
  60. package/docs/plans/TOMORROW-EXTENSIVE-TODO-2026-09-26.md +1 -1
  61. package/docs/plugins.md +54 -0
  62. package/docs/primetech/CREATIVE_ENGINEERING.md +125 -0
  63. package/docs/product/PACKAGE-TAXONOMY.md +3 -12
  64. package/docs/reference/AGENTSAM-REGISTRY.generated.md +26 -25
  65. package/docs/release/NPM-TRUSTED-PUBLISHING.md +13 -0
  66. package/docs/releases/INDEPENDENT_PACKAGE_PUBLISHING.md +30 -0
  67. package/docs/roadmaps/2026-10-28-product-platform-stabilization.md +149 -0
  68. package/docs/sprints/2026-11-14-companion-media-product-preview.md +42 -0
  69. package/docs/standards/DELIVERY_CLOSURE.md +9 -1
  70. package/docs/studio/oauth-ddl-media-completion-2026-11-01.md +22 -0
  71. package/docs/studio/pwa-build-meta-agentsam-note.md +9 -0
  72. package/examples/widget-consumer/package.json +12 -0
  73. package/examples/widget-consumer/src/smoke.mjs +18 -0
  74. package/migrations/d1/0021_agentsam_product_releases.sql +94 -0
  75. package/migrations/d1/0022_agentsam_plugin_registry.sql +182 -0
  76. package/migrations/d1/0023_agentsam_plugin_install_health.sql +33 -0
  77. package/migrations/d1/0024_user_oauth_tokens_account_spine.sql +61 -0
  78. package/migrations/d1/0025_meta_model_api_service.sql +7 -0
  79. package/migrations/d1/0026_identity_github_signin_product.sql +34 -0
  80. package/migrations/d1/0027_unified_digital_products_collections.sql +72 -0
  81. package/migrations/d1/README_PORTABLE_CONTROL_PLANE.md +2 -0
  82. package/migrations/runtime/0010_agentsam_notifications.sql +86 -0
  83. package/migrations/runtime/0011_agentsam_product_releases.sql +94 -0
  84. package/native/agentsam-machine/cli/Cargo.toml +1 -1
  85. package/native/agentsam-machine/cli/LICENSE +110 -0
  86. package/native/agentsam-machine/core/Cargo.toml +1 -1
  87. package/native/agentsam-machine/core/LICENSE +110 -0
  88. package/native/agentsam-machine/core/src/lib.rs +3 -3
  89. package/package.json +73 -75
  90. package/packages/agentsam-3d-viewer/LICENSE +110 -0
  91. package/packages/agentsam-3d-viewer/README.md +58 -0
  92. package/packages/agentsam-3d-viewer/agentsam.package.json +63 -0
  93. package/packages/agentsam-3d-viewer/package.json +41 -0
  94. package/packages/agentsam-3d-viewer/src/format.d.ts +3 -0
  95. package/packages/agentsam-3d-viewer/src/format.js +24 -0
  96. package/packages/agentsam-3d-viewer/src/index.d.ts +104 -0
  97. package/packages/agentsam-3d-viewer/src/index.js +303 -0
  98. package/packages/agentsam-3d-viewer/src/occt.d.ts +12 -0
  99. package/packages/agentsam-3d-viewer/src/occt.js +54 -0
  100. package/packages/agentsam-3d-viewer/test/format.test.mjs +24 -0
  101. package/packages/agentsam-3d-viewer/test/occt.test.mjs +37 -0
  102. package/packages/agentsam-3d-viewer/test/viewport.test.mjs +128 -0
  103. package/packages/agentsam-architectural-intelligence/README.md +8 -0
  104. package/packages/agentsam-architectural-intelligence/data/materials.json +9 -0
  105. package/packages/agentsam-architectural-intelligence/data/sources.json +15 -0
  106. package/packages/agentsam-architectural-intelligence/mcp/server.mjs +80 -0
  107. package/packages/agentsam-architectural-intelligence/package.json +23 -0
  108. package/packages/agentsam-architectural-intelligence/test/reference.test.mjs +30 -0
  109. package/packages/agentsam-architectural-intelligence/test/sam-integration.test.mjs +20 -0
  110. package/packages/agentsam-brand/LICENSE +110 -0
  111. package/packages/agentsam-brand/README.md +6 -0
  112. package/packages/agentsam-brand/package.json +7 -4
  113. package/packages/agentsam-brand/src/cli/controller.js +28 -1
  114. package/packages/agentsam-brand/src/core/iconography/build.js +617 -0
  115. package/packages/agentsam-brand/src/core/iconography/render_clay.py +409 -0
  116. package/packages/agentsam-brand/src/core/preview.js +4 -0
  117. package/packages/agentsam-brand/src/core/processors/sharp.js +5 -3
  118. package/packages/agentsam-brand/src/index.js +2 -0
  119. package/packages/agentsam-cms/LICENSE +110 -0
  120. package/packages/agentsam-cms/README.md +71 -56
  121. package/packages/agentsam-cms/agentsam.package.json +23 -8
  122. package/packages/agentsam-cms/package.json +14 -3
  123. package/packages/agentsam-cms/src/account-context.js +135 -0
  124. package/packages/agentsam-cms/src/aliases.js +1 -1
  125. package/packages/agentsam-cms/src/application.js +252 -0
  126. package/packages/agentsam-cms/src/chat-storage.js +300 -0
  127. package/packages/agentsam-cms/src/contracts.js +105 -63
  128. package/packages/agentsam-cms/src/index.d.ts +84 -29
  129. package/packages/agentsam-cms/src/index.js +1 -0
  130. package/packages/agentsam-cms/src/machine.js +121 -119
  131. package/packages/agentsam-cms/src/node.d.ts +3 -7
  132. package/packages/agentsam-cms/src/node.js +8 -1
  133. package/packages/agentsam-cms/src/site-nav-defaults.js +16 -0
  134. package/packages/agentsam-cms/src/site-settings-contract.js +37 -0
  135. package/packages/agentsam-cms/test/application.test.mjs +134 -0
  136. package/packages/agentsam-cms/test/chat-storage.test.mjs +212 -0
  137. package/packages/agentsam-cms/test/standalone.test.mjs +69 -8
  138. package/packages/agentsam-cms/test/support/memory-repository.mjs +78 -0
  139. package/packages/agentsam-communications/README.md +52 -0
  140. package/packages/agentsam-communications/package.json +30 -0
  141. package/packages/agentsam-communications/src/adapters.js +78 -0
  142. package/packages/agentsam-communications/src/index.js +3 -0
  143. package/packages/agentsam-communications/src/outbox.js +56 -0
  144. package/packages/agentsam-communications/src/service.js +126 -0
  145. package/packages/agentsam-communications/test/communications.test.mjs +188 -0
  146. package/packages/agentsam-contracts/README.md +23 -0
  147. package/packages/agentsam-contracts/agentsam.package.json +2 -2
  148. package/packages/agentsam-contracts/dist/authority.d.ts +2 -1
  149. package/packages/agentsam-contracts/dist/authority.js +12 -0
  150. package/packages/agentsam-contracts/dist/design-workspace-bridge.d.ts +20 -0
  151. package/packages/agentsam-contracts/dist/design-workspace-registry.d.ts +12 -0
  152. package/packages/agentsam-contracts/dist/design-workspace-registry.js +133 -0
  153. package/packages/agentsam-contracts/dist/design-workspace.d.ts +115 -0
  154. package/packages/agentsam-contracts/dist/design-workspace.js +64 -0
  155. package/packages/agentsam-contracts/dist/index.d.ts +7 -0
  156. package/packages/agentsam-contracts/dist/index.js +580 -0
  157. package/packages/agentsam-contracts/dist/operations.d.ts +138 -0
  158. package/packages/agentsam-contracts/dist/operations.js +117 -0
  159. package/packages/agentsam-contracts/dist/resource-scope.d.ts +24 -0
  160. package/packages/agentsam-contracts/dist/resource-scope.js +25 -0
  161. package/packages/agentsam-contracts/dist/source-types.d.ts +92 -0
  162. package/packages/agentsam-contracts/dist/source-types.js +13 -0
  163. package/packages/agentsam-contracts/dist/spawn-policy.d.ts +32 -0
  164. package/packages/agentsam-contracts/dist/spawn-policy.js +27 -0
  165. package/packages/agentsam-contracts/dist/tools.d.ts +12 -5
  166. package/packages/agentsam-contracts/dist/tools.js +164 -0
  167. package/packages/agentsam-contracts/package.json +34 -4
  168. package/packages/agentsam-contracts/schemas/agent-tool-definition.v1.schema.json +78 -0
  169. package/packages/agentsam-contracts/schemas/sam-operation.v1.schema.json +159 -0
  170. package/packages/agentsam-contracts/schemas/sam-result.v1.schema.json +76 -0
  171. package/packages/agentsam-contracts/schemas/source-types.v2.json +9381 -0
  172. package/packages/agentsam-contracts/schemas/source-types.v2.schema.json +571 -0
  173. package/packages/agentsam-contracts/scripts/build.mjs +21 -5
  174. package/packages/agentsam-contracts/src/authority.ts +9 -7
  175. package/packages/agentsam-contracts/src/design-workspace-bridge.ts +99 -0
  176. package/packages/agentsam-contracts/src/design-workspace-registry.ts +130 -0
  177. package/packages/agentsam-contracts/src/design-workspace.ts +256 -0
  178. package/packages/agentsam-contracts/src/index.ts +7 -0
  179. package/packages/agentsam-contracts/src/operations.ts +229 -0
  180. package/packages/agentsam-contracts/src/resource-scope.ts +39 -0
  181. package/packages/agentsam-contracts/src/source-types.ts +92 -0
  182. package/packages/agentsam-contracts/src/spawn-policy.ts +43 -0
  183. package/packages/agentsam-contracts/src/tools.ts +145 -25
  184. package/packages/agentsam-contracts/test/contracts.test.mjs +112 -2
  185. package/packages/agentsam-contracts/test/design-workspace.test.mjs +238 -0
  186. package/packages/agentsam-contracts/test/resource-scope.test.mjs +22 -0
  187. package/packages/agentsam-contracts/test/source-types.test.mjs +31 -0
  188. package/packages/agentsam-contracts/test/spawn-policy.test.mjs +20 -0
  189. package/packages/agentsam-desktop-shell/LICENSE +110 -0
  190. package/packages/agentsam-desktop-shell/README.md +48 -13
  191. package/packages/agentsam-errors/agentsam.package.json +1 -1
  192. package/packages/agentsam-errors/package.json +2 -2
  193. package/packages/agentsam-errors/protocol/agentsam.error.v2.schema.json +1 -1
  194. package/packages/agentsam-goap/LICENSE +110 -0
  195. package/packages/agentsam-goap/package.json +4 -4
  196. package/packages/agentsam-hooks/agentsam.package.json +1 -1
  197. package/packages/agentsam-hooks/package.json +2 -2
  198. package/packages/agentsam-hooks/schema/manifest.json +1 -1
  199. package/packages/agentsam-ide/LICENSE +110 -0
  200. package/packages/agentsam-ide/README.md +88 -0
  201. package/packages/agentsam-knowledge/LICENSE +110 -0
  202. package/packages/agentsam-knowledge/package.json +3 -3
  203. package/packages/agentsam-merch/LICENSE +110 -0
  204. package/packages/agentsam-merch/README.md +59 -39
  205. package/packages/agentsam-merch/agentsam.package.json +1 -1
  206. package/packages/agentsam-merch/package.json +18 -3
  207. package/packages/agentsam-merch/profiles/completeful/dtg-back-large.json +1 -1
  208. package/packages/agentsam-merch/profiles/completeful/laser-engraving.json +1 -1
  209. package/packages/agentsam-merch/profiles/generic/embroidery-digitization.json +1 -1
  210. package/packages/agentsam-merch/schemas/collection-candidate.schema.json +1 -1
  211. package/packages/agentsam-merch/schemas/manufacturing-profile.schema.json +1 -1
  212. package/packages/agentsam-merch/src/adapters-printify.js +66 -0
  213. package/packages/agentsam-merch/src/collection-planning.d.ts +46 -0
  214. package/packages/agentsam-merch/src/collection-planning.js +135 -0
  215. package/packages/agentsam-merch/src/collection-showcase.css +34 -0
  216. package/packages/agentsam-merch/src/collection-showcase.d.ts +2 -0
  217. package/packages/agentsam-merch/src/collection-showcase.js +62 -0
  218. package/packages/agentsam-merch/src/compatibility.js +18 -1
  219. package/packages/agentsam-merch/src/geometry.js +82 -0
  220. package/packages/agentsam-merch/src/index.d.ts +33 -0
  221. package/packages/agentsam-merch/src/index.js +2 -0
  222. package/packages/agentsam-merch/src/merch-hero.css +32 -0
  223. package/packages/agentsam-merch/src/merch-hero.d.ts +5 -0
  224. package/packages/agentsam-merch/src/merch-hero.js +123 -0
  225. package/packages/agentsam-merch/src/node/index.js +1 -0
  226. package/packages/agentsam-merch/src/node/vector.js +83 -0
  227. package/packages/agentsam-merch/test/collection-planning.test.mjs +17 -0
  228. package/packages/agentsam-merch/test/collection-showcase.test.mjs +12 -0
  229. package/packages/agentsam-merch/test/geometry.test.mjs +32 -0
  230. package/packages/agentsam-merch/test/printify-adapter.test.mjs +42 -0
  231. package/packages/agentsam-merch/test/svg-normalization.test.mjs +33 -0
  232. package/packages/agentsam-nav/LICENSE +110 -0
  233. package/packages/agentsam-nav/README.md +21 -1
  234. package/packages/agentsam-nav/dist/AdminAppsDialog.d.ts +15 -0
  235. package/packages/agentsam-nav/dist/Nav.d.ts +3 -1
  236. package/packages/agentsam-nav/dist/NavProvider.d.ts +8 -1
  237. package/packages/agentsam-nav/dist/NavTrigger.d.ts +1 -1
  238. package/packages/agentsam-nav/dist/Surfaces.d.ts +16 -1
  239. package/packages/agentsam-nav/dist/browser.d.ts +18 -0
  240. package/packages/agentsam-nav/dist/browser.global.js +62 -22
  241. package/packages/agentsam-nav/dist/browser.js +7589 -6095
  242. package/packages/agentsam-nav/dist/contracts.d.ts +71 -2
  243. package/packages/agentsam-nav/dist/index.d.ts +4 -0
  244. package/packages/agentsam-nav/dist/index.js +1353 -190
  245. package/packages/agentsam-nav/dist/legacy.css +7 -4
  246. package/packages/agentsam-nav/dist/shell.css +380 -11
  247. package/packages/agentsam-nav/dist/state.d.ts +25 -0
  248. package/packages/agentsam-nav/dist/theme.css +380 -11
  249. package/packages/agentsam-nav/dist/useAdminApps.d.ts +55 -0
  250. package/packages/agentsam-nav/dist/utils.d.ts +4 -0
  251. package/packages/agentsam-nav/package.json +7 -3
  252. package/packages/agentsam-occt/.native-build/CMakeCache.txt +433 -0
  253. package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CMakeCXXCompiler.cmake +103 -0
  254. package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CMakeDetermineCompilerABI_CXX.bin +0 -0
  255. package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CMakeSystem.cmake +15 -0
  256. package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CompilerIdCXX/CMakeCXXCompilerId.cpp +954 -0
  257. package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CompilerIdCXX/a.out +0 -0
  258. package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CompilerIdCXX/apple-sdk.cpp +1 -0
  259. package/packages/agentsam-occt/.native-build/CMakeFiles/CMakeConfigureLog.yaml +2968 -0
  260. package/packages/agentsam-occt/.native-build/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  261. package/packages/agentsam-occt/.native-build/CMakeFiles/InstallScripts.json +7 -0
  262. package/packages/agentsam-occt/.native-build/CMakeFiles/Makefile.cmake +53 -0
  263. package/packages/agentsam-occt/.native-build/CMakeFiles/Makefile2 +157 -0
  264. package/packages/agentsam-occt/.native-build/CMakeFiles/TargetDirectories.txt +4 -0
  265. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/DependInfo.cmake +24 -0
  266. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/build.make +146 -0
  267. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/cmake_clean.cmake +13 -0
  268. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/compiler_depend.internal +3152 -0
  269. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/compiler_depend.make +6886 -0
  270. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/compiler_depend.ts +2 -0
  271. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/depend.make +2 -0
  272. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/engine.cpp.o +0 -0
  273. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/engine.cpp.o.d +1868 -0
  274. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/flags.make +12 -0
  275. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/link.txt +1 -0
  276. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/main.cpp.o +0 -0
  277. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/main.cpp.o.d +1279 -0
  278. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/progress.make +4 -0
  279. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/DependInfo.cmake +23 -0
  280. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/build.make +114 -0
  281. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/cmake_clean.cmake +11 -0
  282. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/cmake_clean_target.cmake +3 -0
  283. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/compiler_depend.internal +1256 -0
  284. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/compiler_depend.make +3757 -0
  285. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/compiler_depend.ts +2 -0
  286. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/depend.make +2 -0
  287. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/flags.make +12 -0
  288. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/link.txt +2 -0
  289. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/progress.make +3 -0
  290. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/sketch_solver.cpp.o +0 -0
  291. package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/sketch_solver.cpp.o.d +1252 -0
  292. package/packages/agentsam-occt/.native-build/CMakeFiles/cmake.check_cache +1 -0
  293. package/packages/agentsam-occt/.native-build/CMakeFiles/progress.marks +1 -0
  294. package/packages/agentsam-occt/.native-build/Makefile +249 -0
  295. package/packages/agentsam-occt/.native-build/agentsam-occt +0 -0
  296. package/packages/agentsam-occt/.native-build/cmake_install.cmake +61 -0
  297. package/packages/agentsam-occt/.native-build/libagentsam-sketch-solver.a +0 -0
  298. package/packages/agentsam-occt/LICENSE +110 -0
  299. package/packages/agentsam-occt/README.md +100 -0
  300. package/packages/agentsam-occt/agentsam.package.json +60 -0
  301. package/packages/agentsam-occt/dist/browser.d.ts +32 -0
  302. package/packages/agentsam-occt/dist/browser.js +71 -0
  303. package/packages/agentsam-occt/dist/browser.js.map +1 -0
  304. package/packages/agentsam-occt/dist/index.d.ts +8 -0
  305. package/packages/agentsam-occt/dist/index.js +25 -0
  306. package/packages/agentsam-occt/dist/index.js.map +1 -0
  307. package/packages/agentsam-occt/dist/native-provider.d.mts +107 -0
  308. package/packages/agentsam-occt/dist/native-provider.mjs +177 -0
  309. package/packages/agentsam-occt/dist/native-provider.mjs.map +1 -0
  310. package/packages/agentsam-occt/dist/native-session.d.mts +8 -0
  311. package/packages/agentsam-occt/dist/native-session.mjs +64 -0
  312. package/packages/agentsam-occt/dist/native-session.mjs.map +1 -0
  313. package/packages/agentsam-occt/native/CMakeLists.txt +47 -0
  314. package/packages/agentsam-occt/native/engine.cpp +864 -0
  315. package/packages/agentsam-occt/native/engine.hpp +2 -0
  316. package/packages/agentsam-occt/native/main.cpp +123 -0
  317. package/packages/agentsam-occt/native/sketch_solver.cpp +198 -0
  318. package/packages/agentsam-occt/native/sketch_solver.hpp +5 -0
  319. package/packages/agentsam-occt/package.json +46 -0
  320. package/packages/agentsam-occt/src/browser.ts +92 -0
  321. package/packages/agentsam-occt/src/index.js +24 -0
  322. package/packages/agentsam-occt/src/native-provider.mjs +156 -0
  323. package/packages/agentsam-occt/src/native-session.d.mts +5 -0
  324. package/packages/agentsam-occt/src/native-session.mjs +35 -0
  325. package/packages/agentsam-occt/test/browser-provider.test.mjs +90 -0
  326. package/packages/agentsam-occt/test/contracts.test.mjs +32 -0
  327. package/packages/agentsam-occt/test/native-engine.test.mjs +49 -0
  328. package/packages/agentsam-occt/tsconfig.json +18 -0
  329. package/packages/agentsam-queue-control/LICENSE +110 -0
  330. package/packages/agentsam-queue-control/agentsam.package.json +1 -1
  331. package/packages/agentsam-queue-control/package.json +3 -3
  332. package/packages/agentsam-queue-control/schemas/job-envelope.schema.json +1 -1
  333. package/packages/agentsam-queue-control/src/adapters/cloudflare.js +39 -3
  334. package/packages/agentsam-queue-control/test/cloudflare-observability.test.mjs +54 -0
  335. package/packages/agentsam-rapid-rust/Cargo.toml +1 -1
  336. package/packages/agentsam-rapid-rust/LICENSE +110 -0
  337. package/packages/agentsam-repository/LICENSE +110 -0
  338. package/packages/agentsam-repository/package.json +3 -3
  339. package/packages/agentsam-site-scrape/README.md +1 -1
  340. package/packages/agentsam-site-scrape/tests/test_contract.py +1 -1
  341. package/packages/agentsam-vault/LICENSE +110 -0
  342. package/packages/agentsam-vault/package.json +3 -3
  343. package/packages/agentsam-workbench/LICENSE +110 -0
  344. package/packages/agentsam-workbench/package.json +20 -5
  345. package/packages/agentsam-workbench/src/agent/AgentRuntimeField.tsx +12 -7
  346. package/packages/agentsam-workbench/src/agent/Composer.tsx +10 -3
  347. package/packages/agentsam-workbench/src/agent/MiniAgentSam.tsx +129 -16
  348. package/packages/agentsam-workbench/src/agent/SelectionToolbar.tsx +161 -0
  349. package/packages/agentsam-workbench/src/agent/capability-catalog.ts +15 -8
  350. package/packages/agentsam-workbench/src/agent/index.ts +2 -0
  351. package/packages/agentsam-workbench/src/agent/mini-agentsam.css +18 -6
  352. package/packages/agentsam-workbench/src/agent/selection-toolbar.css +84 -0
  353. package/packages/agentsam-workbench/src/design/DesignWorkspaceFrame.tsx +209 -0
  354. package/packages/agentsam-workbench/src/design/canvas-handoff.ts +44 -0
  355. package/packages/agentsam-workbench/src/design/design-workspace.css +267 -0
  356. package/packages/agentsam-workbench/src/design/index.ts +7 -0
  357. package/packages/agentsam-workbench/src/index.ts +1 -0
  358. package/packages/agentsam-workbench/src/resources/ResourceCard.tsx +90 -0
  359. package/packages/agentsam-workbench/src/resources/index.ts +6 -0
  360. package/packages/agentsam-workbench/src/resources/resource-card.css +174 -0
  361. package/packages/agentsam-workbench/src/widgets/BuiltinWidget.tsx +6 -0
  362. package/packages/agentsam-workbench/src/widgets/CalculatorWidget.tsx +81 -0
  363. package/packages/agentsam-workbench/src/widgets/ClockWidget.tsx +66 -0
  364. package/packages/agentsam-workbench/src/widgets/QueueDepthWidget.tsx +122 -0
  365. package/packages/agentsam-workbench/src/widgets/calculator.ts +57 -0
  366. package/packages/agentsam-workbench/src/widgets/clock.ts +54 -0
  367. package/packages/agentsam-workbench/src/widgets/index.ts +5 -0
  368. package/packages/agentsam-workbench/src/widgets/registry.ts +27 -24
  369. package/packages/agentsam-workbench/src/widgets/widgets.css +31 -0
  370. package/packages/catalog/evidence/theme-scenes.json +5 -14
  371. package/packages/catalog/generated/packages.json +369 -522
  372. package/packages/catalog/src/theme-products.mjs +64 -0
  373. package/packages/connectors/cfoa/LICENSE +110 -0
  374. package/packages/connectors/cfoa/OAUTH_STORAGE_AUDIT.md +5 -0
  375. package/packages/connectors/cfoa/package.json +2 -2
  376. package/packages/connectors/cfoa/src/api-client.js +54 -8
  377. package/packages/connectors/cfoa/src/capabilities.js +41 -1
  378. package/packages/connectors/cfoa/src/credential.js +381 -48
  379. package/packages/connectors/cfoa/src/families/media.js +622 -0
  380. package/packages/connectors/cfoa/src/index.js +36 -2
  381. package/packages/connectors/cfoa/src/oauth-persist.js +231 -95
  382. package/packages/connectors/cfoa/src/routes.js +270 -34
  383. package/packages/connectors/cfoa/src/scope-catalog.js +14 -1
  384. package/packages/connectors/cfoa/tests/api-client-fetch.test.mjs +71 -0
  385. package/packages/connectors/cfoa/tests/capabilities.test.mjs +28 -3
  386. package/packages/connectors/cfoa/tests/connector.test.mjs +5 -5
  387. package/packages/connectors/cfoa/tests/cross-host-recovery.test.mjs +125 -0
  388. package/packages/connectors/cfoa/tests/media-discovery.test.mjs +260 -0
  389. package/packages/connectors/cfoa/tests/oauth-persist.test.mjs +114 -14
  390. package/packages/identity/.agentsam/features/oauth-login-portal/agentsam.feature.json +1 -1
  391. package/packages/identity/LICENSE +110 -0
  392. package/packages/identity/README.md +25 -0
  393. package/packages/identity/agentsam.package.json +1 -1
  394. package/packages/identity/migrations/apply-portable.js +1 -0
  395. package/packages/identity/migrations/sqlite/006_identity_account_security.sql +31 -0
  396. package/packages/identity/package.json +4 -2
  397. package/packages/identity/schema/agentsam.identity/manifest.json +31 -9
  398. package/packages/identity/src/adapters/account-security-store.js +236 -0
  399. package/packages/identity/src/adapters/iam-compat/index.js +13 -0
  400. package/packages/identity/src/adapters/portable-store.js +15 -0
  401. package/packages/identity/src/contracts/sign-in-options.js +10 -0
  402. package/packages/identity/src/core/account-security.js +149 -0
  403. package/packages/identity/src/frontend/auth-portal/pages/login.html +14 -2
  404. package/packages/identity/src/frontend/auth-portal/pages/signup.html +10 -4
  405. package/packages/identity/src/frontend/merchant-onboarding/store-start.css +9 -0
  406. package/packages/identity/src/frontend/merchant-onboarding/store-start.html +73 -0
  407. package/packages/identity/src/frontend/merchant-onboarding/store-start.js +166 -0
  408. package/packages/identity/src/migrations/0004_account_security.sql +24 -0
  409. package/packages/identity/src/server/merchant-onboarding.js +103 -0
  410. package/packages/identity/src/server/worker-router.js +192 -5
  411. package/packages/identity/tests/account-security.test.mjs +341 -0
  412. package/packages/identity/tests/chatgpt-provider.test.mjs +4 -2
  413. package/packages/identity/tests/lane1-packed-consumer.test.mjs +18 -4
  414. package/packages/identity/tests/merchant-onboarding-portability.test.mjs +77 -0
  415. package/packages/identity/tests/portable-identity-architecture.test.mjs +3 -3
  416. package/packages/identity/tests/preview-auth-portal.test.mjs +2 -0
  417. package/packages/identity/tests/stock-product-provenance.test.mjs +22 -0
  418. package/packages/primetech-procedures/README.md +61 -0
  419. package/packages/primetech-procedures/agentsam.package.json +63 -0
  420. package/packages/primetech-procedures/package.json +22 -0
  421. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/README.md +21 -0
  422. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/__pycache__/test_generate_toolpaths.cpython-314.pyc +0 -0
  423. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/build_freecad.py +514 -0
  424. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/finalize_bundle.py +26 -0
  425. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/generate_assets.py +284 -0
  426. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/generate_toolpaths.py +715 -0
  427. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/package_artifacts.py +154 -0
  428. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/parameters.json +51 -0
  429. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/procedure.json +101 -0
  430. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/render_preview.py +98 -0
  431. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/run.py +214 -0
  432. package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/test_generate_toolpaths.py +50 -0
  433. package/packages/primetech-procedures/procedures/repo.asset.inventory/__pycache__/run.cpython-312.pyc +0 -0
  434. package/packages/primetech-procedures/procedures/repo.asset.inventory/procedure.json +65 -0
  435. package/packages/primetech-procedures/procedures/repo.asset.inventory/run.py +116 -0
  436. package/packages/primetech-procedures/procedures/repo.asset.inventory/run.sh +11 -0
  437. package/packages/primetech-procedures/profiles/PRIMETECH_PROCEDURE_ENGINEER.md +25 -0
  438. package/packages/primetech-procedures/src/index.js +547 -0
  439. package/packages/primetech-procedures/test/__pycache__/test_inventory.cpython-312.pyc +0 -0
  440. package/packages/primetech-procedures/test/procedure.test.mjs +207 -0
  441. package/packages/primetech-procedures/test/test_inventory.py +57 -0
  442. package/packages/providers/completeful/LICENSE +110 -0
  443. package/packages/providers/completeful/README.md +67 -27
  444. package/packages/providers/completeful/dist/client.d.ts +118 -0
  445. package/packages/providers/completeful/dist/client.js +221 -0
  446. package/packages/providers/completeful/dist/generated/operations.generated.d.ts +760 -0
  447. package/packages/providers/completeful/dist/generated/operations.generated.js +931 -0
  448. package/packages/providers/completeful/dist/generated/types.generated.d.ts +1173 -0
  449. package/packages/providers/completeful/dist/generated/types.generated.js +1 -0
  450. package/packages/providers/completeful/openapi/openapi.json +5320 -0
  451. package/packages/providers/completeful/package.json +34 -8
  452. package/packages/providers/completeful/scripts/generate.mjs +156 -0
  453. package/packages/providers/completeful/src/client.js +12 -162
  454. package/packages/providers/completeful/src/core/client.ts +248 -0
  455. package/packages/providers/completeful/src/core/generated/operations.generated.ts +931 -0
  456. package/packages/providers/completeful/src/core/generated/types.generated.ts +94 -0
  457. package/packages/providers/completeful/src/index.d.ts +24 -0
  458. package/packages/providers/completeful/src/index.js +3 -0
  459. package/packages/providers/completeful/test/openapi.test.mjs +70 -0
  460. package/packages/providers/completeful/test/types/consumer.ts +30 -0
  461. package/packages/providers/completeful/test/types/tsconfig.json +12 -0
  462. package/packages/providers/completeful/tsconfig.json +15 -0
  463. package/packages/theme-scenes/LICENSE +110 -0
  464. package/packages/theme-scenes/README.md +57 -2
  465. package/packages/theme-scenes/agentsam.package.json +42 -19
  466. package/packages/theme-scenes/package.json +11 -12
  467. package/packages/theme-scenes/src/cms/adapter.js +232 -0
  468. package/packages/theme-scenes/src/cms/browser.js +5 -0
  469. package/packages/theme-scenes/src/cms/index.js +22 -0
  470. package/packages/theme-scenes/src/cms/runtime.js +524 -0
  471. package/packages/theme-scenes/src/contracts/index.js +40 -0
  472. package/packages/theme-scenes/src/index.js +1 -0
  473. package/packages/theme-scenes/src/runtime/compile.js +24 -0
  474. package/packages/theme-scenes/src/scenes/index.js +3 -1
  475. package/packages/theme-scenes/src/visuals/index.js +7 -0
  476. package/packages/theme-scenes/test/cms.test.mjs +118 -0
  477. package/packages/theme-scenes/test/theme-scenes.test.mjs +52 -0
  478. package/packages/work-graph/LICENSE +110 -0
  479. package/packages/work-graph/package.json +2 -2
  480. package/protocol/README.md +2 -2
  481. package/protocol/apps/agentsam.app.v1.schema.json +1 -1
  482. package/protocol/apps/agentsam.host-install.v1.schema.json +1 -1
  483. package/protocol/assets/asset-record.v1.schema.json +1 -1
  484. package/protocol/brand/brandpack.v1.schema.json +1 -1
  485. package/protocol/cad/README.md +8 -0
  486. package/protocol/cad/blender-recipe.schema.json +1 -1
  487. package/protocol/cad/cad.project.v2.schema.json +107 -4
  488. package/protocol/canvas/knowledge-core.mjs +35 -0
  489. package/protocol/capabilities/capability-manifest.schema.json +1 -1
  490. package/protocol/capabilities/cloudflare-cpu-audit-input.schema.json +1 -1
  491. package/protocol/capabilities/cloudflare-cpu-profile-input.schema.json +1 -1
  492. package/protocol/capabilities/cloudflare-wrangler-native-input.schema.json +1 -1
  493. package/protocol/capabilities/evidence-manifest.schema.json +1 -1
  494. package/protocol/capabilities/knowledge-search-input.schema.json +1 -1
  495. package/protocol/capabilities/manifest.json +36 -1
  496. package/protocol/capabilities/repository-audit-input.schema.json +1 -1
  497. package/protocol/capabilities/repository-audit.schema.json +1 -1
  498. package/protocol/capabilities/repository-crawl-input.schema.json +1 -0
  499. package/protocol/capabilities/repository-crawl-result.schema.json +1 -0
  500. package/protocol/capabilities/repository-mine-input.schema.json +1 -0
  501. package/protocol/capabilities/repository-mine-result.schema.json +1 -0
  502. package/protocol/capabilities/repository-snapshot-input.schema.json +1 -1
  503. package/protocol/capabilities/repository-snapshot.schema.json +1 -1
  504. package/protocol/capabilities/site-index.schema.json +1 -1
  505. package/protocol/capabilities/site-scrape-evidence-manifest.schema.json +1 -1
  506. package/protocol/capabilities/site-scrape-input.schema.json +1 -1
  507. package/protocol/capabilities/site-scrape-project-authority.schema.json +1 -1
  508. package/protocol/capabilities/site-scrape-result.schema.json +1 -1
  509. package/protocol/capabilities/site-scrape-worker-job.schema.json +1 -1
  510. package/protocol/capabilities/terminal-exec-input.schema.json +1 -1
  511. package/protocol/context/context-budget.schema.json +1 -1
  512. package/protocol/context/context-item.schema.json +1 -1
  513. package/protocol/context/resolved-context-pack.schema.json +3 -3
  514. package/protocol/context/result-policy.schema.json +1 -1
  515. package/protocol/contracts/source-types.v2.json +9381 -0
  516. package/protocol/contracts/source-types.v2.schema.json +571 -0
  517. package/protocol/credentials/issue.v1.schema.json +2 -2
  518. package/protocol/database/agentsam.schema-pack.v1.schema.json +1 -1
  519. package/protocol/database/connection.v1.schema.json +1 -1
  520. package/protocol/embeddings/embedding-profile.v1.schema.json +1 -1
  521. package/protocol/errors/agentsam.error.v2.schema.json +1 -1
  522. package/protocol/errors/error-envelope.schema.json +1 -1
  523. package/protocol/errors/recovery.v1.schema.json +1 -1
  524. package/protocol/features/agentsam.feature.v1.schema.json +1 -1
  525. package/protocol/hooks/README.md +2 -0
  526. package/protocol/hooks/agentsam.hook.output.v1.schema.json +1 -1
  527. package/protocol/hooks/agentsam.hook.receipt.v1.schema.json +1 -1
  528. package/protocol/hooks/agentsam.hook.v1.schema.json +1 -1
  529. package/protocol/hooks/agentsam.hooks.config.v1.schema.json +1 -1
  530. package/protocol/knowledge/chunk.schema.json +1 -1
  531. package/protocol/knowledge/context-pack.schema.json +3 -3
  532. package/protocol/knowledge/document.schema.json +1 -1
  533. package/protocol/knowledge/index-config.schema.json +1 -1
  534. package/protocol/knowledge/ingest-receipt.schema.json +1 -1
  535. package/protocol/knowledge/repository.schema.json +1 -1
  536. package/protocol/knowledge/retrieval-hit.schema.json +1 -1
  537. package/protocol/knowledge/retrieval-query.schema.json +2 -2
  538. package/protocol/knowledge/source.schema.json +1 -1
  539. package/protocol/local-engine/benchmark.v1.schema.json +1 -1
  540. package/protocol/local-engine/engine.v1.schema.json +1 -1
  541. package/protocol/models/discovery.mjs +409 -0
  542. package/protocol/models/model-inventory-v2.schema.json +1 -1
  543. package/protocol/models/provider-model-snapshot.v1.schema.json +1 -1
  544. package/protocol/notifications/README.md +45 -0
  545. package/protocol/packages/agentsam.package-schema-registry.v1.schema.json +108 -0
  546. package/protocol/plugins/agentsam.plugin-evidence-bundle.v1.schema.json +1 -1
  547. package/protocol/plugins/agentsam.plugin-product.v1.schema.json +1 -1
  548. package/protocol/plugins/agentsam.plugin-quality-evidence.v1.schema.json +1 -1
  549. package/protocol/plugins/agentsam.plugin-quality-receipt.v1.schema.json +1 -1
  550. package/protocol/presets/catalog.json +4 -4
  551. package/protocol/product-releases/README.md +132 -0
  552. package/protocol/receipts/agentsam.receipt.v1.json +2 -2
  553. package/protocol/recon/finding-report.schema.json +1 -1
  554. package/protocol/recon/task-packet.schema.json +1 -1
  555. package/protocol/repository/repository-contract.schema.json +1 -1
  556. package/protocol/repository/repository-dependency.schema.json +1 -1
  557. package/protocol/repository/repository-identity.schema.json +1 -1
  558. package/protocol/runtime/agentsam.runtime.v1.schema.json +1 -1
  559. package/protocol/runtime/primetech-procedure.v1.schema.json +125 -0
  560. package/protocol/runtime/terminal-exec.conformance.v1.json +88 -0
  561. package/protocol/runtime/workspace-fs.conformance.v1.json +96 -0
  562. package/protocol/runtime/workspace-fs.v1.schema.json +2 -1
  563. package/protocol/sam/activity.v1.schema.json +1 -1
  564. package/protocol/sam/answer.v1.schema.json +1 -1
  565. package/protocol/sam/calibration.v1.schema.json +1 -1
  566. package/protocol/sam/decision-receipt.v1.schema.json +1 -1
  567. package/protocol/sam/evaluation.v1.schema.json +1 -1
  568. package/protocol/sam/operation.schema.json +103 -10
  569. package/protocol/sam/outcome.v1.schema.json +1 -1
  570. package/protocol/sam/question.v1.schema.json +1 -1
  571. package/protocol/sam/result.schema.json +33 -10
  572. package/protocol/sam/state.v1.schema.json +1 -1
  573. package/protocol/scoring/scorecard.v1.schema.json +1 -1
  574. package/protocol/skills/agentsam.interaction.v1.schema.json +1 -1
  575. package/protocol/skills/agentsam.skill.v1.schema.json +1 -1
  576. package/protocol/theme-refinery/product-metadata.schema.json +1 -1
  577. package/protocol/theme-refinery/reconciliation-receipt.schema.json +1 -1
  578. package/protocol/tools/agent-tool-definition.v1.schema.json +78 -0
  579. package/protocol/ui/agentsam.ui-quality.v1.schema.json +1 -1
  580. package/protocol/ui/icon.v1.schema.json +1 -1
  581. package/python/README.md +97 -21
  582. package/python/agentsam_sdk/__init__.py +5 -2
  583. package/python/agentsam_sdk/assets/__init__.py +4 -0
  584. package/python/agentsam_sdk/assets/geaux_boot.json +25 -0
  585. package/python/agentsam_sdk/assets/procedures.py +40 -0
  586. package/python/agentsam_sdk/cad/__init__.py +5 -0
  587. package/python/agentsam_sdk/cad/native.py +189 -0
  588. package/python/agentsam_sdk/cad/occt.py +96 -0
  589. package/python/agentsam_sdk/cli.py +57 -12
  590. package/python/agentsam_sdk/client.py +226 -26
  591. package/python/agentsam_sdk/data/d1_adapter.py +71 -2
  592. package/python/agentsam_sdk/diagnostics.py +44 -0
  593. package/python/agentsam_sdk/procedures/__init__.py +4 -0
  594. package/python/agentsam_sdk/procedures/client.py +75 -0
  595. package/python/agentsam_sdk/py.typed +0 -0
  596. package/python/agentsam_sdk/runtime/native.py +918 -0
  597. package/python/agentsam_sdk/terminal_art.py +85 -0
  598. package/python/agentsam_sdk/terminal_ui.py +187 -0
  599. package/python/agentsam_sdk/tui/README.md +3 -3
  600. package/python/agentsam_sdk/tui/__init__.py +1 -1
  601. package/python/agentsam_sdk/tui/bootstrap.py +2 -2
  602. package/python/agentsam_sdk/tui/demo.py +2 -2
  603. package/python/docs/gaps.md +12 -3
  604. package/python/docs/release.md +55 -0
  605. package/python/pyproject.toml +33 -6
  606. package/python/scripts/check-dist.py +65 -0
  607. package/python/tests/test_asset_procedure_api.py +66 -0
  608. package/python/tests/test_cad_native.py +73 -0
  609. package/python/tests/test_cad_occt.py +52 -0
  610. package/python/tests/test_cli_distribution.py +82 -0
  611. package/python/tests/test_d1_write_adapter.py +66 -0
  612. package/python/tests/test_native_runtime.py +298 -0
  613. package/python/tests/test_packaging.py +43 -0
  614. package/python/tests/test_procedure_client.py +80 -0
  615. package/python/tests/test_public_client.py +8 -5
  616. package/python/tests/test_terminal_art.py +36 -0
  617. package/services/cad/occt/CMakeLists.txt +7 -41
  618. package/services/cad/occt/README.md +4 -28
  619. package/services/cad/server.py +228 -9
  620. package/skills/README.md +14 -6
  621. package/skills/agentsam-arch-accessibility/SKILL.md +19 -0
  622. package/skills/agentsam-arch-accessibility/agentsam.skill.json +20 -0
  623. package/skills/agentsam-arch-assemblies/SKILL.md +20 -0
  624. package/skills/agentsam-arch-assemblies/agentsam.skill.json +20 -0
  625. package/skills/agentsam-arch-bim/SKILL.md +20 -0
  626. package/skills/agentsam-arch-bim/agentsam.skill.json +20 -0
  627. package/skills/agentsam-arch-cad/SKILL.md +19 -0
  628. package/skills/agentsam-arch-cad/agentsam.skill.json +20 -0
  629. package/skills/agentsam-arch-codes/SKILL.md +19 -0
  630. package/skills/agentsam-arch-codes/agentsam.skill.json +20 -0
  631. package/skills/agentsam-arch-coordination/SKILL.md +19 -0
  632. package/skills/agentsam-arch-coordination/agentsam.skill.json +20 -0
  633. package/skills/agentsam-arch-documents/SKILL.md +19 -0
  634. package/skills/agentsam-arch-documents/agentsam.skill.json +20 -0
  635. package/skills/agentsam-arch-geometry/SKILL.md +19 -0
  636. package/skills/agentsam-arch-geometry/agentsam.skill.json +20 -0
  637. package/skills/agentsam-arch-materials/SKILL.md +19 -0
  638. package/skills/agentsam-arch-materials/agentsam.skill.json +20 -0
  639. package/skills/agentsam-arch-orchestrate/SKILL.md +21 -0
  640. package/skills/agentsam-arch-orchestrate/agentsam.skill.json +20 -0
  641. package/skills/agentsam-arch-specifications/SKILL.md +19 -0
  642. package/skills/agentsam-arch-specifications/agentsam.skill.json +20 -0
  643. package/skills/agentsam-arch-verify/SKILL.md +20 -0
  644. package/skills/agentsam-arch-verify/agentsam.skill.json +20 -0
  645. package/skills/agentsam-canvas-creation/SKILL.md +79 -0
  646. package/skills/agentsam-canvas-creation/references/creation-journey.md +55 -0
  647. package/skills/agentsam-canvas-creation/references/fullstack-creation-checklist.md +28 -0
  648. package/skills/agentsam-canvas-creation/references/quality-and-consistency.md +39 -0
  649. package/skills/agentsam-cms-ready-creation/SKILL.md +68 -0
  650. package/skills/agentsam-cms-ready-creation/references/cms-handoff-map.md +50 -0
  651. package/skills/agentsam-cms-ready-creation/references/web-fullstack-readiness.md +38 -0
  652. package/skills/agentsam-plan-and-goap/SKILL.md +14 -1
  653. package/skills/agentsam-sdk-orientation/SKILL.md +10 -7
  654. package/skills/catalog.json +331 -0
  655. package/src/agent/capability-adapter.js +5 -2
  656. package/src/capabilities/index.js +2 -0
  657. package/src/capabilities/terminal-exec.js +16 -4
  658. package/src/capabilities/workspace-files.js +58 -2
  659. package/src/cli/command-catalog.js +24 -1
  660. package/src/cli/desktop-launch.js +107 -0
  661. package/src/cli.js +47 -12
  662. package/src/commands/app.js +2 -2
  663. package/src/commands/dockerize.js +11 -2
  664. package/src/commands/goals.js +59 -0
  665. package/src/commands/goap.js +48 -1
  666. package/src/commands/mcp.js +80 -16
  667. package/src/commands/memory.js +102 -0
  668. package/src/commands/package.js +1 -1
  669. package/src/commands/plugins.js +47 -7
  670. package/src/commands/sam.js +20 -5
  671. package/src/commands/shell.js +17 -0
  672. package/src/commands/skill.js +1 -1
  673. package/src/commands/start-local.js +29 -1
  674. package/src/indexing/ingest/style-evidence.js +10 -6
  675. package/src/lib/cad/discovery.js +6 -1
  676. package/src/lib/cad/editable-project-contract.js +6 -0
  677. package/src/lib/cad/occt-native-provider.mjs +3 -138
  678. package/src/lib/cad/project-runtime.js +17 -1
  679. package/src/lib/cad/project-tools.js +4 -4
  680. package/src/lib/cad/project-v2.d.ts +32 -4
  681. package/src/lib/cad/project-v2.js +37 -0
  682. package/src/lib/cad-docker.js +54 -18
  683. package/src/lib/deploy/local-studio.js +9 -1
  684. package/src/lib/dockerize.js +2 -2
  685. package/src/lib/scaffold/wizards/cms.js +0 -79
  686. package/src/lib/terminal-scopes.js +5 -2
  687. package/src/mcp/authority.js +26 -2
  688. package/src/mcp/browsermcp.js +28 -0
  689. package/src/mcp/client-adapters.js +22 -5
  690. package/src/mcp/client.js +33 -6
  691. package/src/models/discovery.js +1 -373
  692. package/src/models/inventory-core.d.ts +21 -0
  693. package/src/models/inventory-core.js +44 -1
  694. package/src/plugins/browsermcp.js +47 -0
  695. package/src/plugins/contracts.js +8 -0
  696. package/src/plugins/creative.js +38 -0
  697. package/src/plugins/index.js +3 -0
  698. package/src/plugins/registry.js +90 -75
  699. package/src/plugins/runtime.js +12 -3
  700. package/src/providers/factory.js +13 -0
  701. package/src/registry/generated/inventory.json +422 -536
  702. package/src/sam/client.js +1 -1
  703. package/src/sam/define.js +11 -2
  704. package/src/sam/index.js +1 -0
  705. package/src/sam/operation-packs/generated-v2/operation-pack.js +1 -1
  706. package/src/sam/operations/architectural-knowledge.js +30 -0
  707. package/src/sam/operations/artifact-render.js +1 -1
  708. package/src/sam/operations/brand-scan.js +1 -1
  709. package/src/sam/operations/codebaseindex-ingest.js +1 -1
  710. package/src/sam/operations/decision-evaluate.js +1 -1
  711. package/src/sam/operations/package-audit.js +1 -1
  712. package/src/sam/operations/planning-astar.js +1 -1
  713. package/src/sam/operations/planning-goap.js +1 -1
  714. package/src/sam/operations/repository-inspect.js +1 -1
  715. package/src/sam/operations/robotics.js +1 -1
  716. package/src/sam/packs/authoring/index.js +1 -1
  717. package/src/sam/packs/cad/http-ports.js +59 -0
  718. package/src/sam/packs/cms/node.js +1 -1
  719. package/src/sam/packs/core.js +2 -0
  720. package/src/sam/packs/evidence/store-hosted.js +89 -0
  721. package/src/sam/robotics/chess-adapter.js +8 -2
  722. package/src/sam/types.js +17 -98
  723. package/src/security/inventory.js +11 -9
  724. package/src/skills/canvas-knowledge-core.js +1 -0
  725. package/src/skills/canvas-knowledge.js +8 -0
  726. package/src/skills/index.js +2 -0
  727. package/src/tools/registry.js +9 -11
  728. package/src/ui/art/geaux_boot.json +25 -0
  729. package/src/ui/boot.js +21 -20
  730. package/src/ui/companion-art.js +40 -0
  731. package/apps/client-cms-editor/AGENTS.md +0 -17
  732. package/apps/client-cms-editor/IMPORT_PROVENANCE.json +0 -8
  733. package/apps/client-cms-editor/README.md +0 -103
  734. package/apps/client-cms-editor/agentsam.app.json +0 -74
  735. package/apps/client-cms-editor/backend/README.md +0 -5
  736. package/apps/client-cms-editor/backend/package.json +0 -37
  737. package/apps/client-cms-editor/backend/src/api/client.ts +0 -233
  738. package/apps/client-cms-editor/backend/src/index.ts +0 -6
  739. package/apps/client-cms-editor/backend/src/model.ts +0 -11
  740. package/apps/client-cms-editor/backend/src/preview/bridge.ts +0 -79
  741. package/apps/client-cms-editor/backend/src/preview/urls.ts +0 -55
  742. package/apps/client-cms-editor/backend/src/routing/cms-route.js +0 -293
  743. package/apps/client-cms-editor/backend/src/routing/index.js +0 -10
  744. package/apps/client-cms-editor/backend/src/storefront.ts +0 -52
  745. package/apps/client-cms-editor/backend/tsconfig.json +0 -20
  746. package/apps/client-cms-editor/backend/worker/index.js +0 -34
  747. package/apps/client-cms-editor/backend/wrangler.jsonc +0 -11
  748. package/apps/client-cms-editor/bin/agentsam-cms.js +0 -262
  749. package/apps/client-cms-editor/bin/agentsam-cms.mjs +0 -3
  750. package/apps/client-cms-editor/frontend/index.html +0 -12
  751. package/apps/client-cms-editor/frontend/package.json +0 -40
  752. package/apps/client-cms-editor/frontend/src/AgentSamDrawer.tsx +0 -156
  753. package/apps/client-cms-editor/frontend/src/CmsAgentSurface.tsx +0 -36
  754. package/apps/client-cms-editor/frontend/src/adapters/heuristic.ts +0 -29
  755. package/apps/client-cms-editor/frontend/src/adapters/http-authoring.test.ts +0 -161
  756. package/apps/client-cms-editor/frontend/src/adapters/http.ts +0 -871
  757. package/apps/client-cms-editor/frontend/src/adapters/memory.ts +0 -510
  758. package/apps/client-cms-editor/frontend/src/editor/CmsEditor.tsx +0 -247
  759. package/apps/client-cms-editor/frontend/src/editor/CmsEditorProvider.tsx +0 -20
  760. package/apps/client-cms-editor/frontend/src/editor/canvas/PreviewCanvas.tsx +0 -81
  761. package/apps/client-cms-editor/frontend/src/editor/composition-groups.test.ts +0 -40
  762. package/apps/client-cms-editor/frontend/src/editor/host-preview.test.tsx +0 -104
  763. package/apps/client-cms-editor/frontend/src/editor/legacy/CmsEditorPrototype.tsx +0 -1374
  764. package/apps/client-cms-editor/frontend/src/editor/useCmsEditorController.ts +0 -218
  765. package/apps/client-cms-editor/frontend/src/env.d.ts +0 -14
  766. package/apps/client-cms-editor/frontend/src/index.ts +0 -22
  767. package/apps/client-cms-editor/frontend/src/lib/agent-host.ts +0 -24
  768. package/apps/client-cms-editor/frontend/src/lib/content-safety.ts +0 -63
  769. package/apps/client-cms-editor/frontend/src/main.tsx +0 -91
  770. package/apps/client-cms-editor/frontend/src/mount.tsx +0 -113
  771. package/apps/client-cms-editor/frontend/src/styles/agentsam-drawer.css +0 -215
  772. package/apps/client-cms-editor/frontend/src/styles/cmsShell.css +0 -1739
  773. package/apps/client-cms-editor/frontend/src/styles/studio.css +0 -159
  774. package/apps/client-cms-editor/frontend/src/surfaces/CmsDashboard.tsx +0 -313
  775. package/apps/client-cms-editor/frontend/src/surfaces/CmsGuidedChatHero.tsx +0 -121
  776. package/apps/client-cms-editor/frontend/src/surfaces/CmsHubPage.tsx +0 -132
  777. package/apps/client-cms-editor/frontend/src/surfaces/CmsSiteSwitcher.tsx +0 -176
  778. package/apps/client-cms-editor/frontend/src/surfaces/index.ts +0 -5
  779. package/apps/client-cms-editor/frontend/src/surfaces/types.ts +0 -48
  780. package/apps/client-cms-editor/frontend/tsconfig.json +0 -55
  781. package/apps/client-cms-editor/frontend/vite.config.ts +0 -25
  782. package/apps/client-cms-editor/package-lock.json +0 -4671
  783. package/apps/client-cms-editor/package.json +0 -136
  784. package/apps/client-cms-editor/reference/DONOR_README.md +0 -52
  785. package/apps/client-cms-editor/reference/DONOR_package-lock.json +0 -1253
  786. package/apps/client-cms-editor/reference/DONOR_tsconfig.json +0 -15
  787. package/apps/client-cms-editor/reference/harvest/HARVEST_RECEIPT.json +0 -201
  788. package/apps/client-cms-editor/reference/harvest/PROVENANCE_HISTORY.txt +0 -10
  789. package/apps/client-cms-editor/reference/harvest/README.md +0 -8
  790. package/apps/client-cms-editor/reference/harvest/plans/ARCHIVE-INTAKE.md +0 -135
  791. package/apps/client-cms-editor/reference/harvest/plans/CHATGPT-IDENTITY-HARVEST.md +0 -83
  792. package/apps/client-cms-editor/reference/harvest/plans/CMS-EDITOR-HARVEST.md +0 -166
  793. package/apps/client-cms-editor/reference/harvest/plans/HARVEST-INDEX.md +0 -196
  794. package/apps/client-cms-editor/reference/harvest/plans/INNERANIMALS-CONTENT-001.md +0 -137
  795. package/apps/client-cms-editor/reference/harvest/plans/NO-IMPLICIT-SIDE-EFFECTS.md +0 -87
  796. package/apps/client-cms-editor/reference/harvest/plans/STOREFRONT-SURFACE-MAP.md +0 -140
  797. package/apps/client-cms-editor/reference/harvest/plans/THEME-INNERANIMALS-HARVEST.md +0 -137
  798. package/apps/client-cms-editor/reference/harvest/plans/TOOLING-LAB.md +0 -63
  799. package/apps/client-cms-editor/reference/harvest/plans/harvest-manifest.json +0 -97
  800. package/apps/client-cms-editor/reference/harvest/plans/local-cms-harvest-schema.sql +0 -328
  801. package/apps/client-cms-editor/shared/cms/package.json +0 -29
  802. package/apps/client-cms-editor/shared/cms/src/adapter.ts +0 -204
  803. package/apps/client-cms-editor/shared/cms/src/agent-context.ts +0 -37
  804. package/apps/client-cms-editor/shared/cms/src/cloudflare-bindings.ts +0 -51
  805. package/apps/client-cms-editor/shared/cms/src/editor-types.ts +0 -131
  806. package/apps/client-cms-editor/shared/cms/src/host.ts +0 -82
  807. package/apps/client-cms-editor/shared/cms/src/index.ts +0 -9
  808. package/apps/client-cms-editor/shared/cms/src/map.ts +0 -115
  809. package/apps/client-cms-editor/shared/cms/src/publication.ts +0 -24
  810. package/apps/client-cms-editor/shared/cms/src/routes.ts +0 -11
  811. package/apps/client-cms-editor/shared/cms/src/starter-pack.ts +0 -158
  812. package/apps/client-cms-editor/shared/cms/tsconfig.json +0 -12
  813. package/docs/client-cms-editor.md +0 -15
  814. package/packages/agentsam-cms/src/node-sqlite-repository.js +0 -148
  815. package/packages/agentsam-cms/src/schema/cms-local-runtime.v1.sql +0 -365
  816. package/packages/catalog/evidence/cms-runtime.json +0 -49
  817. package/packages/catalog/evidence/fnf-theme.json +0 -34
  818. package/packages/catalog/evidence/theme-cypress.json +0 -41
  819. package/packages/catalog/evidence/theme-ember.json +0 -41
  820. package/packages/catalog/evidence/theme-forge.json +0 -41
  821. package/packages/catalog/evidence/theme-grove.json +0 -41
  822. package/packages/catalog/evidence/theme-harbor.json +0 -41
  823. package/packages/catalog/evidence/theme-heuristic.json +0 -50
  824. package/packages/catalog/evidence/theme-iasf.json +0 -48
  825. package/packages/catalog/evidence/theme-resolve.json +0 -41
  826. package/packages/catalog/evidence/theme-summit.json +0 -41
  827. package/packages/catalog/evidence/theme-violet.json +0 -41
  828. package/packages/heuristic-theme/README.md +0 -25
  829. package/packages/heuristic-theme/agentsam.package.json +0 -42
  830. package/packages/heuristic-theme/contracts/README.md +0 -15
  831. package/packages/heuristic-theme/contracts/block.schema.json +0 -33
  832. package/packages/heuristic-theme/contracts/header-presets.json +0 -20
  833. package/packages/heuristic-theme/contracts/page.schema.json +0 -18
  834. package/packages/heuristic-theme/contracts/preset.schema.json +0 -18
  835. package/packages/heuristic-theme/contracts/section.schema.json +0 -83
  836. package/packages/heuristic-theme/package.json +0 -40
  837. package/packages/heuristic-theme/presets/fuel-free-time/assets.json +0 -8
  838. package/packages/heuristic-theme/presets/fuel-free-time/globals/shell.json +0 -30
  839. package/packages/heuristic-theme/presets/fuel-free-time/pages/about.json +0 -4
  840. package/packages/heuristic-theme/presets/fuel-free-time/pages/cart.json +0 -4
  841. package/packages/heuristic-theme/presets/fuel-free-time/pages/collection.json +0 -4
  842. package/packages/heuristic-theme/presets/fuel-free-time/pages/collections.json +0 -4
  843. package/packages/heuristic-theme/presets/fuel-free-time/pages/community.json +0 -4
  844. package/packages/heuristic-theme/presets/fuel-free-time/pages/home.json +0 -92
  845. package/packages/heuristic-theme/presets/fuel-free-time/pages/order-confirmation.json +0 -39
  846. package/packages/heuristic-theme/presets/fuel-free-time/pages/product.json +0 -4
  847. package/packages/heuristic-theme/presets/fuel-free-time/pages/shop.json +0 -9
  848. package/packages/heuristic-theme/presets/fuel-free-time/preset.json +0 -23
  849. package/packages/heuristic-theme/presets/fuel-free-time/tokens.json +0 -23
  850. package/packages/heuristic-theme/src/index.js +0 -2
  851. package/packages/heuristic-theme/src/registry.js +0 -36
  852. package/packages/heuristic-theme/src/theme.js +0 -41
  853. package/packages/heuristic-theme/storefront/about.html +0 -1103
  854. package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/GENERATED-ASSETS.md +0 -15
  855. package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/earned-hours-hero.webp +0 -0
  856. package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/essentials.webp +0 -0
  857. package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/masters.webp +0 -0
  858. package/packages/heuristic-theme/storefront/cart.html +0 -64
  859. package/packages/heuristic-theme/storefront/collaborate.html +0 -58
  860. package/packages/heuristic-theme/storefront/collection.html +0 -10
  861. package/packages/heuristic-theme/storefront/collections.html +0 -10
  862. package/packages/heuristic-theme/storefront/community.html +0 -921
  863. package/packages/heuristic-theme/storefront/css/content-page.css +0 -199
  864. package/packages/heuristic-theme/storefront/css/global-footer.css +0 -401
  865. package/packages/heuristic-theme/storefront/css/heuristic-theme.css +0 -81
  866. package/packages/heuristic-theme/storefront/css/page-composer.css +0 -76
  867. package/packages/heuristic-theme/storefront/css/shop-hero.css +0 -230
  868. package/packages/heuristic-theme/storefront/css/store-cart.css +0 -422
  869. package/packages/heuristic-theme/storefront/css/store-collections.css +0 -36
  870. package/packages/heuristic-theme/storefront/css/store-pdp.css +0 -459
  871. package/packages/heuristic-theme/storefront/css/store-shell.css +0 -474
  872. package/packages/heuristic-theme/storefront/css/store-shop.css +0 -117
  873. package/packages/heuristic-theme/storefront/home.html +0 -25
  874. package/packages/heuristic-theme/storefront/js/cms-hydrate.js +0 -395
  875. package/packages/heuristic-theme/storefront/js/cms-structure.js +0 -85
  876. package/packages/heuristic-theme/storefront/js/fnf-attribution.js +0 -98
  877. package/packages/heuristic-theme/storefront/js/fnf-head.js +0 -47
  878. package/packages/heuristic-theme/storefront/js/fnf-newsletter.js +0 -64
  879. package/packages/heuristic-theme/storefront/js/global-footer.js +0 -277
  880. package/packages/heuristic-theme/storefront/js/heuristic-runtime.js +0 -78
  881. package/packages/heuristic-theme/storefront/js/order-confirmation.js +0 -109
  882. package/packages/heuristic-theme/storefront/js/page-composer.js +0 -310
  883. package/packages/heuristic-theme/storefront/js/shop-hero.js +0 -85
  884. package/packages/heuristic-theme/storefront/js/store-cart.js +0 -276
  885. package/packages/heuristic-theme/storefront/js/store-catalog.js +0 -140
  886. package/packages/heuristic-theme/storefront/js/store-collections.js +0 -45
  887. package/packages/heuristic-theme/storefront/js/store-product.js +0 -287
  888. package/packages/heuristic-theme/storefront/js/store-shell.js +0 -449
  889. package/packages/heuristic-theme/storefront/order-confirmation.html +0 -30
  890. package/packages/heuristic-theme/storefront/policies.html +0 -43
  891. package/packages/heuristic-theme/storefront/product.html +0 -27
  892. package/packages/heuristic-theme/storefront/shop.html +0 -113
  893. package/packages/heuristic-theme/storefront/terms.html +0 -45
  894. package/packages/heuristic-theme/test/commerce-portability.test.mjs +0 -16
  895. package/packages/heuristic-theme/test/theme.test.mjs +0 -26
  896. package/packages/heuristic-theme/theme.json +0 -55
  897. package/packages/heuristic-theme/theme.schema.json +0 -32
  898. package/packages/theme-cypress/README.md +0 -11
  899. package/packages/theme-cypress/agentsam.package.json +0 -42
  900. package/packages/theme-cypress/package.json +0 -44
  901. package/packages/theme-cypress/prebuild.json +0 -23
  902. package/packages/theme-cypress/site/assets/generated/favicon.svg +0 -7
  903. package/packages/theme-cypress/site/assets/generated/media-044ba16613.webp +0 -0
  904. package/packages/theme-cypress/site/assets/generated/media-0a1ea6f6d9.webp +0 -0
  905. package/packages/theme-cypress/site/assets/generated/media-0c06778307.webp +0 -0
  906. package/packages/theme-cypress/site/assets/generated/media-1539ed373a.webp +0 -0
  907. package/packages/theme-cypress/site/assets/generated/media-2df479fd2d.webp +0 -0
  908. package/packages/theme-cypress/site/assets/generated/media-2e8bd0d9bc.webp +0 -0
  909. package/packages/theme-cypress/site/assets/generated/media-41d4e2643c.webp +0 -0
  910. package/packages/theme-cypress/site/assets/generated/media-46205bfde8.webp +0 -0
  911. package/packages/theme-cypress/site/assets/generated/media-50c5f3e279.webp +0 -0
  912. package/packages/theme-cypress/site/assets/generated/media-5f1467778c.webp +0 -0
  913. package/packages/theme-cypress/site/assets/generated/media-6703642b22.webp +0 -0
  914. package/packages/theme-cypress/site/assets/generated/media-87a490bc8e.webp +0 -0
  915. package/packages/theme-cypress/site/assets/generated/media-997c10ef39.webp +0 -0
  916. package/packages/theme-cypress/site/assets/generated/media-a423735c21.webp +0 -0
  917. package/packages/theme-cypress/site/assets/generated/media-c9cea5245b.webp +0 -0
  918. package/packages/theme-cypress/site/assets/generated/media-cab3c84c60.webp +0 -0
  919. package/packages/theme-cypress/site/assets/generated/media-ce06595d59.webp +0 -0
  920. package/packages/theme-cypress/site/assets/generated/media-d268905e7e.webp +0 -0
  921. package/packages/theme-cypress/site/assets/generated/media-f6711b5053.webp +0 -0
  922. package/packages/theme-cypress/site/assets/generated/media-manifest.json +0 -226
  923. package/packages/theme-cypress/site/assets/generated/social-card.webp +0 -0
  924. package/packages/theme-cypress/site/assets/generated/theme-mark-192.png +0 -0
  925. package/packages/theme-cypress/site/assets/generated/theme-mark-512.png +0 -0
  926. package/packages/theme-cypress/site/assets/generated/theme-mark.svg +0 -7
  927. package/packages/theme-cypress/site/beliefs.html +0 -175
  928. package/packages/theme-cypress/site/community.html +0 -175
  929. package/packages/theme-cypress/site/connect.html +0 -319
  930. package/packages/theme-cypress/site/donate.html +0 -106
  931. package/packages/theme-cypress/site/groups.html +0 -1352
  932. package/packages/theme-cypress/site/help.html +0 -1
  933. package/packages/theme-cypress/site/icons/clock.svg +0 -4
  934. package/packages/theme-cypress/site/icons/email.svg +0 -4
  935. package/packages/theme-cypress/site/icons/giving.svg +0 -4
  936. package/packages/theme-cypress/site/icons/home.svg +0 -4
  937. package/packages/theme-cypress/site/icons/location.svg +0 -4
  938. package/packages/theme-cypress/site/icons/media.svg +0 -4
  939. package/packages/theme-cypress/site/icons/ministries.svg +0 -6
  940. package/packages/theme-cypress/site/icons/prayer.svg +0 -5
  941. package/packages/theme-cypress/site/icons/visit.svg +0 -6
  942. package/packages/theme-cypress/site/index.html +0 -1013
  943. package/packages/theme-cypress/site/mensgroup.html +0 -477
  944. package/packages/theme-cypress/site/mission.html +0 -512
  945. package/packages/theme-cypress/site/unified-footer.css +0 -172
  946. package/packages/theme-cypress/site/unified-footer.js +0 -175
  947. package/packages/theme-cypress/site/unified-header.css +0 -226
  948. package/packages/theme-cypress/site/unified-header.js +0 -111
  949. package/packages/theme-cypress/site/womansgroup.html +0 -452
  950. package/packages/theme-cypress/src/index.js +0 -76
  951. package/packages/theme-cypress/src/node.js +0 -69
  952. package/packages/theme-cypress/test/theme.test.mjs +0 -47
  953. package/packages/theme-ember/README.md +0 -11
  954. package/packages/theme-ember/agentsam.package.json +0 -42
  955. package/packages/theme-ember/package.json +0 -44
  956. package/packages/theme-ember/prebuild.json +0 -23
  957. package/packages/theme-ember/site/about.html +0 -1840
  958. package/packages/theme-ember/site/assets/generated/favicon.svg +0 -7
  959. package/packages/theme-ember/site/assets/generated/media-1e0b1e6ee6.webp +0 -0
  960. package/packages/theme-ember/site/assets/generated/media-2371dcb426.webp +0 -0
  961. package/packages/theme-ember/site/assets/generated/media-2db4f5ff9e.webp +0 -0
  962. package/packages/theme-ember/site/assets/generated/media-4ed07a756e.webp +0 -0
  963. package/packages/theme-ember/site/assets/generated/media-58182cf167.webp +0 -0
  964. package/packages/theme-ember/site/assets/generated/media-5b8b8472ae.webp +0 -0
  965. package/packages/theme-ember/site/assets/generated/media-71f4bd16a1.webp +0 -0
  966. package/packages/theme-ember/site/assets/generated/media-7c1c8120bc.webp +0 -0
  967. package/packages/theme-ember/site/assets/generated/media-832b176433.webp +0 -0
  968. package/packages/theme-ember/site/assets/generated/media-931439701c.webp +0 -0
  969. package/packages/theme-ember/site/assets/generated/media-c2860d40d1.webp +0 -0
  970. package/packages/theme-ember/site/assets/generated/media-c56974d198.webp +0 -0
  971. package/packages/theme-ember/site/assets/generated/media-cb83a44ff4.webp +0 -0
  972. package/packages/theme-ember/site/assets/generated/media-df02ccdfcf.webp +0 -0
  973. package/packages/theme-ember/site/assets/generated/media-fab72cd344.webp +0 -0
  974. package/packages/theme-ember/site/assets/generated/media-manifest.json +0 -190
  975. package/packages/theme-ember/site/assets/generated/social-card.webp +0 -0
  976. package/packages/theme-ember/site/assets/generated/theme-mark-192.png +0 -0
  977. package/packages/theme-ember/site/assets/generated/theme-mark-512.png +0 -0
  978. package/packages/theme-ember/site/assets/generated/theme-mark.svg +0 -7
  979. package/packages/theme-ember/site/community.html +0 -1664
  980. package/packages/theme-ember/site/index.html +0 -2044
  981. package/packages/theme-ember/site/shop.html +0 -2104
  982. package/packages/theme-ember/src/index.js +0 -76
  983. package/packages/theme-ember/src/node.js +0 -69
  984. package/packages/theme-ember/test/theme.test.mjs +0 -47
  985. package/packages/theme-forge/README.md +0 -11
  986. package/packages/theme-forge/agentsam.package.json +0 -42
  987. package/packages/theme-forge/package.json +0 -44
  988. package/packages/theme-forge/prebuild.json +0 -23
  989. package/packages/theme-forge/site/apple-touch-icon.png +0 -0
  990. package/packages/theme-forge/site/assets/generated/favicon.svg +0 -7
  991. package/packages/theme-forge/site/assets/generated/media-manifest.json +0 -17
  992. package/packages/theme-forge/site/assets/generated/social-card.webp +0 -0
  993. package/packages/theme-forge/site/assets/generated/theme-mark-192.png +0 -0
  994. package/packages/theme-forge/site/assets/generated/theme-mark-512.png +0 -0
  995. package/packages/theme-forge/site/assets/generated/theme-mark.svg +0 -7
  996. package/packages/theme-forge/site/assets/index-DBOqQVsA.css +0 -1
  997. package/packages/theme-forge/site/assets/index-pXC0o9jp.js +0 -241
  998. package/packages/theme-forge/site/assets/workbox-window.prod.es5-Bd17z0YL.js +0 -2
  999. package/packages/theme-forge/site/index.html +0 -5
  1000. package/packages/theme-forge/site/manifest.webmanifest +0 -1
  1001. package/packages/theme-forge/site/pwa-192x192.png +0 -0
  1002. package/packages/theme-forge/site/pwa-512x512.png +0 -0
  1003. package/packages/theme-forge/site/sw.js +0 -107
  1004. package/packages/theme-forge/site/workbox-7e5eb42b.js +0 -3395
  1005. package/packages/theme-forge/src/index.js +0 -76
  1006. package/packages/theme-forge/src/node.js +0 -69
  1007. package/packages/theme-forge/test/theme.test.mjs +0 -47
  1008. package/packages/theme-grove/README.md +0 -11
  1009. package/packages/theme-grove/agentsam.package.json +0 -42
  1010. package/packages/theme-grove/package.json +0 -44
  1011. package/packages/theme-grove/prebuild.json +0 -23
  1012. package/packages/theme-grove/site/assets/generated/favicon.svg +0 -7
  1013. package/packages/theme-grove/site/assets/generated/media-098b13d75a.webp +0 -0
  1014. package/packages/theme-grove/site/assets/generated/media-0c064db1aa.webp +0 -0
  1015. package/packages/theme-grove/site/assets/generated/media-0fbfef655e.webp +0 -0
  1016. package/packages/theme-grove/site/assets/generated/media-14759c7460.webp +0 -0
  1017. package/packages/theme-grove/site/assets/generated/media-19b23d2a8f.webp +0 -0
  1018. package/packages/theme-grove/site/assets/generated/media-2012f04243.webp +0 -0
  1019. package/packages/theme-grove/site/assets/generated/media-23b8c5e2bb.webp +0 -0
  1020. package/packages/theme-grove/site/assets/generated/media-2bffb1a6ef.webp +0 -0
  1021. package/packages/theme-grove/site/assets/generated/media-2e1523a5b0.webp +0 -0
  1022. package/packages/theme-grove/site/assets/generated/media-31107c21f2.webp +0 -0
  1023. package/packages/theme-grove/site/assets/generated/media-31373ec865.webp +0 -0
  1024. package/packages/theme-grove/site/assets/generated/media-45e8e27542.webp +0 -0
  1025. package/packages/theme-grove/site/assets/generated/media-4aa9846fe7.webp +0 -0
  1026. package/packages/theme-grove/site/assets/generated/media-5476b24219.webp +0 -0
  1027. package/packages/theme-grove/site/assets/generated/media-7a227d3e4b.webp +0 -0
  1028. package/packages/theme-grove/site/assets/generated/media-b183eed550.webp +0 -0
  1029. package/packages/theme-grove/site/assets/generated/media-b2c650f9ab.webp +0 -0
  1030. package/packages/theme-grove/site/assets/generated/media-b5d7471694.webp +0 -0
  1031. package/packages/theme-grove/site/assets/generated/media-c86498fdb4.webp +0 -0
  1032. package/packages/theme-grove/site/assets/generated/media-ce2cfff9a1.webp +0 -0
  1033. package/packages/theme-grove/site/assets/generated/media-cf41a5f324.webp +0 -0
  1034. package/packages/theme-grove/site/assets/generated/media-ec6c01bf8d.webp +0 -0
  1035. package/packages/theme-grove/site/assets/generated/media-manifest.json +0 -267
  1036. package/packages/theme-grove/site/assets/generated/social-card.webp +0 -0
  1037. package/packages/theme-grove/site/assets/generated/theme-mark-192.png +0 -0
  1038. package/packages/theme-grove/site/assets/generated/theme-mark-512.png +0 -0
  1039. package/packages/theme-grove/site/assets/generated/theme-mark.svg +0 -7
  1040. package/packages/theme-grove/site/index.html +0 -1429
  1041. package/packages/theme-grove/site/pages/contact.html +0 -664
  1042. package/packages/theme-grove/site/pages/gallery.html +0 -216
  1043. package/packages/theme-grove/site/pages/privacy.html +0 -180
  1044. package/packages/theme-grove/site/pages/process.html +0 -592
  1045. package/packages/theme-grove/site/pages/services.html +0 -567
  1046. package/packages/theme-grove/site/pages/terms.html +0 -189
  1047. package/packages/theme-grove/site/shared/footer.css +0 -140
  1048. package/packages/theme-grove/site/shared/footer.html +0 -41
  1049. package/packages/theme-grove/src/index.js +0 -76
  1050. package/packages/theme-grove/src/node.js +0 -69
  1051. package/packages/theme-grove/test/theme.test.mjs +0 -47
  1052. package/packages/theme-harbor/README.md +0 -11
  1053. package/packages/theme-harbor/agentsam.package.json +0 -42
  1054. package/packages/theme-harbor/package.json +0 -44
  1055. package/packages/theme-harbor/prebuild.json +0 -23
  1056. package/packages/theme-harbor/site/assets/generated/favicon.svg +0 -7
  1057. package/packages/theme-harbor/site/assets/generated/media-manifest.json +0 -17
  1058. package/packages/theme-harbor/site/assets/generated/social-card.webp +0 -0
  1059. package/packages/theme-harbor/site/assets/generated/theme-mark-192.png +0 -0
  1060. package/packages/theme-harbor/site/assets/generated/theme-mark-512.png +0 -0
  1061. package/packages/theme-harbor/site/assets/generated/theme-mark.svg +0 -7
  1062. package/packages/theme-harbor/site/assets/index-D58RKkr-.js +0 -239
  1063. package/packages/theme-harbor/site/assets/index-Dd3YN9Mf.css +0 -1
  1064. package/packages/theme-harbor/site/index.html +0 -15
  1065. package/packages/theme-harbor/src/index.js +0 -76
  1066. package/packages/theme-harbor/src/node.js +0 -69
  1067. package/packages/theme-harbor/test/theme.test.mjs +0 -47
  1068. package/packages/theme-resolve/README.md +0 -11
  1069. package/packages/theme-resolve/agentsam.package.json +0 -42
  1070. package/packages/theme-resolve/package.json +0 -44
  1071. package/packages/theme-resolve/prebuild.json +0 -23
  1072. package/packages/theme-resolve/site/assets/generated/favicon.svg +0 -7
  1073. package/packages/theme-resolve/site/assets/generated/media-216610d365.webp +0 -0
  1074. package/packages/theme-resolve/site/assets/generated/media-2a9e0f623f.webp +0 -0
  1075. package/packages/theme-resolve/site/assets/generated/media-a70660bfa9.webp +0 -0
  1076. package/packages/theme-resolve/site/assets/generated/media-bc1322e813.webp +0 -0
  1077. package/packages/theme-resolve/site/assets/generated/media-ced60fcecc.webp +0 -0
  1078. package/packages/theme-resolve/site/assets/generated/media-manifest.json +0 -72
  1079. package/packages/theme-resolve/site/assets/generated/social-card.webp +0 -0
  1080. package/packages/theme-resolve/site/assets/generated/theme-mark-192.png +0 -0
  1081. package/packages/theme-resolve/site/assets/generated/theme-mark-512.png +0 -0
  1082. package/packages/theme-resolve/site/assets/generated/theme-mark.svg +0 -7
  1083. package/packages/theme-resolve/site/assets/index-BSaLpPG1.css +0 -2
  1084. package/packages/theme-resolve/site/assets/index-D8au46Z5.js +0 -17
  1085. package/packages/theme-resolve/site/index.html +0 -22
  1086. package/packages/theme-resolve/src/index.js +0 -69
  1087. package/packages/theme-resolve/src/node.js +0 -69
  1088. package/packages/theme-resolve/test/theme.test.mjs +0 -47
  1089. package/packages/theme-scenes/src/registry.js +0 -170
  1090. package/packages/theme-summit/README.md +0 -11
  1091. package/packages/theme-summit/agentsam.package.json +0 -42
  1092. package/packages/theme-summit/package.json +0 -44
  1093. package/packages/theme-summit/prebuild.json +0 -23
  1094. package/packages/theme-summit/site/adventures.html +0 -450
  1095. package/packages/theme-summit/site/assets/generated/favicon.svg +0 -7
  1096. package/packages/theme-summit/site/assets/generated/media-1e958ea679.webp +0 -0
  1097. package/packages/theme-summit/site/assets/generated/media-9d4521abba.webp +0 -0
  1098. package/packages/theme-summit/site/assets/generated/media-manifest.json +0 -39
  1099. package/packages/theme-summit/site/assets/generated/social-card.webp +0 -0
  1100. package/packages/theme-summit/site/assets/generated/theme-mark-192.png +0 -0
  1101. package/packages/theme-summit/site/assets/generated/theme-mark-512.png +0 -0
  1102. package/packages/theme-summit/site/assets/generated/theme-mark.svg +0 -7
  1103. package/packages/theme-summit/site/business-card.html +0 -315
  1104. package/packages/theme-summit/site/chatbot.js +0 -312
  1105. package/packages/theme-summit/site/gallery.html +0 -524
  1106. package/packages/theme-summit/site/i18n.js +0 -947
  1107. package/packages/theme-summit/site/icons.svg +0 -87
  1108. package/packages/theme-summit/site/index.html +0 -2415
  1109. package/packages/theme-summit/site/pages/about.html +0 -100
  1110. package/packages/theme-summit/site/pages/contact.html +0 -117
  1111. package/packages/theme-summit/site/pages/dashboard.html +0 -111
  1112. package/packages/theme-summit/site/pages/index.html +0 -129
  1113. package/packages/theme-summit/site/pages/services.html +0 -125
  1114. package/packages/theme-summit/site/shared/footer.html +0 -41
  1115. package/packages/theme-summit/site/shared/layout.js +0 -315
  1116. package/packages/theme-summit/site/shared/nav.html +0 -19
  1117. package/packages/theme-summit/site/shared/styles.css +0 -696
  1118. package/packages/theme-summit/site/theme-styles.css +0 -131
  1119. package/packages/theme-summit/site/themes.js +0 -442
  1120. package/packages/theme-summit/src/index.js +0 -76
  1121. package/packages/theme-summit/src/node.js +0 -69
  1122. package/packages/theme-summit/test/theme.test.mjs +0 -47
  1123. package/packages/theme-violet/README.md +0 -11
  1124. package/packages/theme-violet/agentsam.package.json +0 -42
  1125. package/packages/theme-violet/package.json +0 -44
  1126. package/packages/theme-violet/prebuild.json +0 -23
  1127. package/packages/theme-violet/site/assets/generated/favicon.svg +0 -7
  1128. package/packages/theme-violet/site/assets/generated/media-07b46d6457.webp +0 -0
  1129. package/packages/theme-violet/site/assets/generated/media-09d38ddffc.webp +0 -0
  1130. package/packages/theme-violet/site/assets/generated/media-254b0e2ad3.webp +0 -0
  1131. package/packages/theme-violet/site/assets/generated/media-3a1b5c0a8d.webp +0 -0
  1132. package/packages/theme-violet/site/assets/generated/media-3a78eb7d9d.webp +0 -0
  1133. package/packages/theme-violet/site/assets/generated/media-49076977d8.webp +0 -0
  1134. package/packages/theme-violet/site/assets/generated/media-6342d50dbd.webp +0 -0
  1135. package/packages/theme-violet/site/assets/generated/media-646c65381e.webp +0 -0
  1136. package/packages/theme-violet/site/assets/generated/media-7a5fb7c91a.webp +0 -0
  1137. package/packages/theme-violet/site/assets/generated/media-9bbd133220.webp +0 -0
  1138. package/packages/theme-violet/site/assets/generated/media-9e73307c2a.webp +0 -0
  1139. package/packages/theme-violet/site/assets/generated/media-af382146a0.webp +0 -0
  1140. package/packages/theme-violet/site/assets/generated/media-b2ae348b43.webp +0 -0
  1141. package/packages/theme-violet/site/assets/generated/media-b8f43a3887.webp +0 -0
  1142. package/packages/theme-violet/site/assets/generated/media-c96a3e1979.webp +0 -0
  1143. package/packages/theme-violet/site/assets/generated/media-cd07daa54a.webp +0 -0
  1144. package/packages/theme-violet/site/assets/generated/media-e03ab6b5fe.webp +0 -0
  1145. package/packages/theme-violet/site/assets/generated/media-eae4917d25.webp +0 -0
  1146. package/packages/theme-violet/site/assets/generated/media-f227ec5690.webp +0 -0
  1147. package/packages/theme-violet/site/assets/generated/media-fb57ffd474.webp +0 -0
  1148. package/packages/theme-violet/site/assets/generated/media-manifest.json +0 -245
  1149. package/packages/theme-violet/site/assets/generated/social-card.webp +0 -0
  1150. package/packages/theme-violet/site/assets/generated/theme-mark-192.png +0 -0
  1151. package/packages/theme-violet/site/assets/generated/theme-mark-512.png +0 -0
  1152. package/packages/theme-violet/site/assets/generated/theme-mark.svg +0 -7
  1153. package/packages/theme-violet/site/global/cpas-contact.css +0 -405
  1154. package/packages/theme-violet/site/global/cpas-donate-v2.css +0 -931
  1155. package/packages/theme-violet/site/global/cpas-drawer-override.css +0 -1
  1156. package/packages/theme-violet/site/global/cpas-footer.html +0 -38
  1157. package/packages/theme-violet/site/global/cpas-header.html +0 -30
  1158. package/packages/theme-violet/site/global/cpas-hero-watercolor.css +0 -275
  1159. package/packages/theme-violet/site/global/cpas-modals.js +0 -802
  1160. package/packages/theme-violet/site/global/cpas-public-surface.css +0 -982
  1161. package/packages/theme-violet/site/global/cpas-shell.css +0 -3980
  1162. package/packages/theme-violet/site/global/cpas-shell.js +0 -107
  1163. package/packages/theme-violet/site/global/cpas-shelter-hub.css +0 -326
  1164. package/packages/theme-violet/site/index.html +0 -141
  1165. package/packages/theme-violet/site/pages/about/campaigns.html +0 -28
  1166. package/packages/theme-violet/site/pages/about/cta.html +0 -25
  1167. package/packages/theme-violet/site/pages/about/hero.html +0 -46
  1168. package/packages/theme-violet/site/pages/about/paths.html +0 -24
  1169. package/packages/theme-violet/site/pages/about/why_we_exist.html +0 -28
  1170. package/packages/theme-violet/site/pages/home/campaigns.html +0 -67
  1171. package/packages/theme-violet/site/pages/home/hero.html +0 -42
  1172. package/packages/theme-violet/site/pages/home/how-it-helps.html +0 -32
  1173. package/packages/theme-violet/site/pages/home/impact-stats.html +0 -31
  1174. package/packages/theme-violet/site/pages/home/mission.html +0 -36
  1175. package/packages/theme-violet/site/pages/home/newsletter.html +0 -29
  1176. package/packages/theme-violet/site/pages/home/transport-win.html +0 -22
  1177. package/packages/theme-violet/site/pages/index.html +0 -141
  1178. package/packages/theme-violet/src/index.js +0 -76
  1179. package/packages/theme-violet/src/node.js +0 -69
  1180. package/packages/theme-violet/test/theme.test.mjs +0 -47
  1181. package/services/cad/occt/main.cpp +0 -95
  1182. /package/{apps/client-cms-editor → python}/LICENSE +0 -0
@@ -0,0 +1,80 @@
1
+ # AgentSam — reusable themes, templates and apps
2
+
3
+ > **Contract SSOT (2026-10-31):** `protocol/product-releases/README.md` +
4
+ > `migrations/runtime/0011_agentsam_product_releases.sql`.
5
+ > Product identity = live `agentsam_products`. Versioned artifacts =
6
+ > `agentsam_product_releases`. Use this canonical release table; do **not** introduce a desktop-only registry.
7
+
8
+ ## Product lifecycle decision
9
+
10
+ Separate authored source Git repos, immutable built artifacts, catalog metadata
11
+ and per-customer installations. Do not copy a theme per customer or put ZIPs
12
+ in D1. A read-only preview is not proof of a production CMS installer.
13
+
14
+ The working first product is theme-plain-jane-starter v0.1.0. Its original
15
+ source is SamPrimeaux/inneranimalmedia-blog-template, pinned in
16
+ packages/theme-plain-jane/provenance.json. The SDK compiles the real source
17
+ and exports its manifest. Resolve and Violet retain their existing packages.
18
+
19
+ 1. Author in GitHub and pin the source SHA.
20
+ 2. Build package and typed CMS manifest; keep original visual components.
21
+ 3. Prove TypeScript, deep links, metadata/SEO, accessibility, install schema,
22
+ tenant ownership, rollback, asset integrity, CSP and license.
23
+ 4. Review in local Theme Studio and produce a staged candidate, not an install.
24
+ 5. Release immutable SHA-256-named ZIP/TAR assets and preview imagery to R2.
25
+ 6. Store SKU/version, compatibility, release state, entitlement, artifact hash,
26
+ preview URI and category in the existing D1 catalog structures.
27
+ 7. Install through an authenticated backend with schema compatibility checks,
28
+ staging, idempotency keys, tenant isolation and an install receipt.
29
+ 8. Publish in a separate explicitly authorized transaction; retain rollback
30
+ and customer-specific customization history.
31
+
32
+ The shared catalog product contract should include sku, kind, package,
33
+ version, source_sha, preview_url, cms_manifest_url, artifact_url, sha256,
34
+ runtime_requirements, compatible_schema_version, entitlement policy,
35
+ review_status, release_status and install_status. Only the backend can assign
36
+ installed, purchased or published from authoritative records.
37
+
38
+ ### Canonical storage roles
39
+
40
+ GitHub: authored source, review and release tags.
41
+ AgentSam SDK: package manifests, component contracts, build/test commands.
42
+ Cloudflare R2: immutable compiled storefronts, source media and archives.
43
+ D1: products, releases, entitlements, per-site installs, install jobs/receipts.
44
+ Workers/app API: auth, catalog, safe download grants and install orchestration.
45
+ Customer CMS: actual owned pages, sections, blocks, media and overrides.
46
+
47
+ ### UI integration
48
+
49
+ Local SDK: /admin/store browses original packaged previews and links to Studio.
50
+ It offers a preview-only ZIP and cannot publish, install or charge a customer.
51
+
52
+ Fuel N Free Time: its authenticated online store and CMS page picker should use
53
+ the same catalog API; publishing remains separate and versioned. The localhost
54
+ preview endpoint must NOT become its production backend by simple copying.
55
+
56
+ AgentSam /sites: repair empty/loading/error active-theme previews, offer Retry,
57
+ and add Browse Templates beside site management. Show source-backed gallery
58
+ cards, real live demos, compatibility and install status. Preview themes are
59
+ never displayed as the active site theme.
60
+
61
+ Apps: reuse catalog, releases, entitlements, installation logs and receipts.
62
+ Apps additionally require explicit permissions and connection setup. Do not
63
+ build a second marketplace for apps.
64
+
65
+ ### Next guarded implementation wave
66
+
67
+ - Reconcile the Journal seed's 11 tables with canonical D1 migrations; keep
68
+ existing site-specific CMS rows as authority and avoid parallel legacy tables.
69
+ - Implement authenticated product/release catalog readers and licensed assets.
70
+ - Implement staging install/upgrade/uninstall with validation, rollback receipts,
71
+ conflict detection, idempotency and per-tenant authorization.
72
+ - Run browser-level visual, route and SEO verification. Chrome headless exited
73
+ before render during this local build, so visual acceptance is not claimed.
74
+ - Confirm commercial license, source provenance, accessibility and customer
75
+ entitlement before setting a product publicly available for sale.
76
+ - Consolidate the upstream Journal's two SEO implementations (cms.ts and
77
+ useSEO.ts) into one tested hook before a public release.
78
+
79
+ This local archive proves packing and static materialization, not checkout,
80
+ authenticated content CRUD, or a live customer installation.
@@ -0,0 +1,38 @@
1
+ # AgentSam Account-First Authority and Real Metrics V2
2
+
3
+ ## Authority — one account, optional contexts
4
+ - Authenticate user, then resolve the canonical `account_id`/`auth_user_id` from the identity/session provider. Never take ownership from URL/body/workspace.
5
+ - A project is an optional grouping of resources (`project_id`) that must pass an account-owned resource lookup.
6
+ - A workspace is optional **execution/collaboration context**, not an ownership requirement or provisioning prerequisite. Use ephemeral isolation for separate agent lanes.
7
+ - Account-first contract: `packages/agentsam-contracts/src/resource-scope.ts` (`agentsam.resource-scope.v2`).
8
+ - Spawn policy is a separate, host-enforced authority in `agentsam.spawn-policy.v2`. Production host must resolve account budgets explicitly and validate any optional workspace override. No fallback from another user's workspace, profile default, or arbitrary caller string.
9
+
10
+ ## Actual D1 tables, not invented aggregates
11
+ - `agentsam_tool_call_log`: canonical per-tool execution receipts. Indexed by `(account_id, created_at_unix)` via `idx_tool_call_account_time`. `tool_key`, `status`, `duration_ms`, `cache_hit`, `cost_usd`, `agent_run_id`, `conversation_id` provide truthful measurements.
12
+ - `agentsam_tool_stats_compacted`: intended derived per-tool/day read model, **empty during the 2026-10-28 audit**; do not drive charts from it until the compactor is implemented and reconciled.
13
+ - `agentsam_analytics`: separate normalized event stream, one row in audit; cannot be substituted for the canonical tool execution ledger.
14
+ - `agentsam_usage_rollups_daily`: 259 populated rows at audit, source coverage must be documented before merging with tool logs; prevent double counting.
15
+ - `agentsam_agent_run`: three runs at audit; separately recorded usage; do not infer that three runs equals all account activity.
16
+ - `projects`: existing project authority currently populated (39 records at audit); scope access by owner, not a requested workspace.
17
+ - `agentsam_projects`: 0 rows at audit. Treat as an optional projection requiring explicit reconciliation, not an empty authoritative replacement.
18
+ - D1 stores indexed structured measurements, revision links and job state; R2 stores binaries and immutable artifacts. Local SQLite caches are never the hosted authority.
19
+
20
+ ## Implemented API & UI
21
+ - `GET /api/analytics/tool-usage?range=24h|7d|30d|90d|YTD|All` authenticates the account session, binds `account_id` to SQL, and returns `agentsam.tool-usage.v2`.
22
+ - No `account_id`, `workspace_id`, or owner override accepted from query/body. Bridge-only clients without verified account identity are denied on this endpoint.
23
+ - The packaged `agentsam-analytics` Tools tab defaults to canonical event metrics. Missing coverage/cost is not imputed.
24
+ - Compatibility tests verify tool aggregation input contract, account binding, read-model coverage and null-safe zero rates.
25
+
26
+ ## Release blockers and follow-on migration
27
+ 1. Existing legacy `/api/analytics/overview|usage|performance|health|scores` queries still read `agentsam_analytics` without account filters. They must be migrated and tested before production exposure across multiple accounts. Do not regard them as account-safe merely because the new tool endpoint is scoped.
28
+ 2. Integrate actual hosted spawn policy with the account-first contract and authenticated optional workspace membership; account-default policy has null spending caps and spawning disabled while the `ws_inneranimalmedia` policy has $5/$2 caps and spawning enabled. Do not change account-wide authorization implicitly.
29
+ 3. Implement event-to-rollup reconciliation and measured cost attribution, with daily/account/tool grain and duplicate prevention. Compare compacted statistics against canonical log counts.
30
+ 4. Reconcile `projects` and `agentsam_projects` identities without creating duplicate project rows. Add project/job/artifact outcome KPIs from their actual D1 sources and versioned R2 receipts.
31
+ 5. Verify login, account isolation, metrics UI and per-surface parity in a real browser. No hosted merge/deploy yet.
32
+
33
+ ## Current local package revisions
34
+ - `@inneranimalmedia/agentsam-contracts` 2.6.15 — resource-scope.v2 and spawn-policy.v2 contracts.
35
+ - `@inneranimalmedia/agentsam-analytics` 2.6.14 — account-scoped Tools read model and UI.
36
+ - `@inneranimalmedia/agentsam-local-studio` 2.6.14 — account-authenticated Tools API host and packaged shell.
37
+
38
+ The source worktree contains unrelated staged work. Commit only reviewed scoped files after UI/host acceptance. Never bulk-stage.
@@ -192,3 +192,40 @@ app Studio APP / host
192
192
  ```
193
193
 
194
194
  Goal is **not** one identifier everywhere. Goal is **one canonical identifier per namespace**, with explicit relationships between namespaces.
195
+
196
+ ## Product-family and navigation boundaries
197
+
198
+ These boundaries are binding for Local Studio, the public CAD experience, and future desktop app distribution.
199
+
200
+ ### Product identities
201
+
202
+ - **Local Studio is the host shell.** It owns identity/session presentation, global navigation, app discovery, installed-app state, projects, search, settings, and the shared AgentSam assistant surface. It does not absorb every product's specialist UI.
203
+ - **CAD Creator and SamSketch are separate APPs.** Their canonical identities remain `cad-creator` and `samsketch`, each with its own `agentsam.app.json`, route, release, and user experience. CAD Creator remains the engineering-oriented CAD workspace. SamSketch remains the visual, Spline-inspired scene-authoring experience. They may share host services, project references, selection/context contracts, and AgentSam assistance; they must not redirect into one another or be presented as one interchangeable editor.
204
+ - **DreamHouse is an owner project, not an APP.** It belongs in the project registry and is opened from the CAD Creator project workflow. It must not acquire a product manifest, installed-app entry, or standalone top-level route. Owner-project loading must fail visibly if the local project authority is unavailable; it must not silently substitute a public example.
205
+ - **A product family is a catalog grouping, not a route merge.** CAD Creator and SamSketch may be discoverable together under a CAD & 3D family, while remaining separately launchable/installable APPs.
206
+ - **Do not create a separate APP identity for a capability just because it has a tool, tab, or workspace name.** A capability becomes an installable APP only when it has an owned manifest, package/release, runtime contract, and installation behavior.
207
+
208
+ ### Navigation responsibilities
209
+
210
+ - Global shell navigation exposes host-level destinations and the separately installed apps.
211
+ - Each app owns its specialist toolbar, layouts, panels, tools, and contextual menus. Shared design-system components may be reused; product interaction models must not be homogenized.
212
+ - The **Apps +** affordance opens the app catalog/discovery flow. The installed-app list is derived from host installation state, not a hard-coded list pretending every catalog product is installed.
213
+ - Dropdowns organize contextual layouts and actions. They should progressively reveal tools when relevant rather than add every command as a permanent global navigation item.
214
+ - Projects are data entities, not installed apps. Project records point to the owning product/runtime and its authoritative files/revisions; the project name does not become a new route or product identity.
215
+
216
+ ### Catalog, install, and native-runtime boundaries
217
+
218
+ - `agentsam_products` is the official product/catalog authority. `agentsam.app.json` defines a portable APP's identity and distribution contract. `agentsam_plugins` is for installable integrations/providers, not a duplicate APP catalog.
219
+ - The existing desktop manifest's `included_apps` is an explicit **build-time bootstrap bundle**. It is not proof of runtime installation and must not be treated as the long-term app marketplace.
220
+ - Runtime app installation requires a real flow: discover a verified release; check host/OS compatibility and permissions; download and verify the versioned artifact; record the installation; mount/launch its declared routes; and expose uninstall/update/rollback state. Until that flow exists, UI must not claim that an app was installed merely because its manifest contains an npm command.
221
+ - A web-first APP must not require a Rust rebuild just to be installed or updated. Rust commands, native sidecars, filesystem access, and other privileged host capabilities are opt-in host capabilities with explicit contracts and permissions. Only a product that genuinely requires a new native capability should trigger host-runtime work.
222
+ - The base desktop host and its included bootstrap apps are released independently from later app artifacts wherever their runtime contracts permit it. A product release must declare whether it is a web bundle, a native capability, or both.
223
+
224
+ ### Required integration and release gates
225
+
226
+ 1. Validate the APP manifests and official product identities; reject duplicate IDs and missing release/runtime metadata.
227
+ 2. Run the changed app's tests and typecheck, the Local Studio shell/route contract tests, and relevant native/provider tests.
228
+ 3. Build the actual app bundles. Launch the Local Studio preview and verify that CAD Creator and SamSketch open independently, their assistant/context bridges work, and the Apps navigation does not claim unavailable installation functionality.
229
+ 4. Verify the DreamHouse owner-project path through the local project authority and project registry. Verify that public CAD preview remains isolated from owner-only project data and does not redirect users to the AgentSam dashboard to perform the advertised work.
230
+ 5. Commit and push the finished integration; merge to `main` only after the gates pass. Publish/deploy the relevant web artifact and/or desktop package from the merged source, then verify the actual destination URL/build.
231
+ 6. After verification, prune completed remote branches and worktrees. Do not leave a completed implementation living only in an agent branch, local tree, chat, or screenshot.
@@ -0,0 +1,51 @@
1
+ # AgentSam Work / IDE / storage lanes — 2026-10-28
2
+
3
+ ## One existing product, not competing IDEs
4
+
5
+ - packages/agentsam-work owns portable Work navigation, Artifacts and Project Detail.
6
+ - apps/local-studio/backend/worker/work-service.js supplies account-scoped Work snapshots.
7
+ - packages/agentsam-ide owns Monaco document models, LSP contracts, save-queue conflict detection and filetree.
8
+ - apps/local-studio/frontend/src/components/workbench/files.tsx embeds the existing Monaco editor in the AgentSam side-stage.
9
+ - Legacy /files endpoints redirect into /admin/agentsam with the Files side tab; no duplicate full-page IDE.
10
+ - Work Project Gallery filters only explicit media_assets.project_id === projects.id, authorized by the project's owner_user_id. A local filesystem workspace is linked only when exactly one explicit Work-project assignment exists in Studio trails.
11
+ - Storage source choices: R2, local, Google Drive, shared drives and registered artifacts. Live hosted Work currently lists selected R2 prefixes and owner-authorized registered media. Local workspace metadata comes from mounted authorized workspaces in browser state; Google Drive/shared drives provider listing are NOT implemented in Work host. OAuth alone does not prove file-listing capability.
12
+ - Public preview URLs are restricted to the known public R2 prefix. No arbitrary private R2 key or local path becomes an unauthenticated URL.
13
+
14
+ ## Multiple agent work lanes
15
+
16
+ Monaco document URIs are keyed by Studio workspace/project ID plus file path. Separate scratch workspaces have independent editor models and undo stacks but no independent on-disk Git branch.
17
+
18
+ For real filesystem lane isolation, use separate authorized Git worktrees, one loopback AgentSam PTY/FS service per root. The UI attaches to these services by loopback URL; the runtime reports the authorized root and temporary capability. Two services reporting the same root cannot both register as independent Studio lanes.
19
+
20
+ Example (inspect Git status and branches first; never discard unrelated work):
21
+
22
+ cd ~/agentsam-sdk
23
+ git status --short --branch
24
+ git worktree list
25
+ git -C ~/dreamhouse worktree list
26
+
27
+ # When the requested branches/worktrees do not already exist:
28
+ git -C ~/agentsam-sdk worktree add -b lane/site ~/agentsam-lanes/site HEAD
29
+ git -C ~/dreamhouse worktree add -b lane/architecture ~/agentsam-lanes/architecture HEAD
30
+ git -C ~/agentsam-sdk worktree add -b lane/platform ~/agentsam-lanes/platform HEAD
31
+
32
+ # Run each in a separate Mac terminal:
33
+ cd ~/agentsam-sdk
34
+ ./bin/agentsam start-local --cwd ~/agentsam-lanes/site --port 3101
35
+ ./bin/agentsam start-local --cwd ~/agentsam-lanes/architecture --port 3102
36
+ ./bin/agentsam start-local --cwd ~/agentsam-lanes/platform --port 3103
37
+
38
+ In AgentSam -> Files side-stage -> Host, attach http://127.0.0.1:3101, :3102 and :3103 to the appropriate lane. The local capability is never an unrestricted public Worker token.
39
+
40
+ ## Remaining full orchestration gates
41
+
42
+ - Agent-to-worktree job assignment and task-scoped permissions.
43
+ - Per-lane agent/terminal lifecycle, LSP sessions and cancellation.
44
+ - Cross-agent merge/review queue, optimistic concurrency, separate branch ownership.
45
+ - GitHub provider browsing and Google Drive/shared drive listing in the Work artifact host.
46
+ - Accessible project-file linking UI, authorized private preview/download and durable file provenance.
47
+ - Hosted Artifacts/mobile and multi-agent end-to-end visual acceptance.
48
+
49
+ ## Verification
50
+
51
+ Two temporary local PTY/FS runtimes on distinct roots/ports reported different workspace IDs, and both capability bootstraps passed; both servers and test roots were cleaned up. IDE package 16 tests; Work package 13; Local Studio frontend 81; local Gallery/CLI 4 integration tests; all pass. TypeScript checks pass. Hosted deployment and full multi-agent orchestration are NOT claimed. Unrelated CAD/3D repository changes were not modified by this work.
@@ -0,0 +1,69 @@
1
+ # Design workspace boundary (Dynamic Design Canvas)
2
+
3
+ **Status:** Implemented portable boundary; specialist editor adoption is incremental. This is not a claim that every creation journey is production-ready.
4
+
5
+ The reusable product is **one creation workspace contract**, not a universal Canvas renderer. A Figma-style artboard, a CAD/OCCT viewport, a garment stage and a MovieMode timeline use different document models, tools, coordinates and rendering engines.
6
+
7
+ ## Canonical ownership
8
+
9
+ | Concern | Authority |
10
+ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------- |
11
+ | Authenticated principal, account and optional project/execution scope | Existing AgentSam identity and \`agentsam.resource-scope.v2\` |
12
+ | Create/open/select/inspect/modify/save/preview capabilities and typed receipts | \`@inneranimalmedia/agentsam-contracts/design-workspace\` |
13
+ | In-process adapter composition (not a persisted registry) | \`DesignWorkspaceRegistry\` |
14
+ | Adaptive command bar, resizable panes, assistant and specialist stage slot | \`@inneranimalmedia/agentsam-workbench/design\` |
15
+ | Workspace entry/routing/deep links | Each existing application host; document ID is stable, auth is always rechecked |
16
+ | Website/theme documents, sections, source renderers, draft/publication | Ecommerce CMS site-scoped authority |
17
+ | CAD geometry, 2D/3D selection, revisions, native engineering exports | CAD Creator geometry/document/project authority |
18
+ | Garment, print placement, variants, supplier/manufacturing state | Product Studio/commerce authority |
19
+ | Timeline, clips, playback, media source and render | CoPro/MovieMode authority |
20
+ | Source code, repo/files, build/deploy | Existing authorized file, runtime and app adapters |
21
+ | Media bytes, attribution and derivatives | Shared asset/media authority |
22
+
23
+ **Never:** store a second product document in the workbench, generalize geometry into web blocks, create a second CMS/asset/permission database, or silently fabricate an edit receipt.
24
+
25
+ ## Framework-neutral operation flow
26
+
27
+ 1. An existing host resolves the real authenticated \`AgentPrincipal\` and derives \`AgentResourceScopeV2\`. A project/workspace is optional and never becomes account ownership.
28
+ 2. The host selects a _capability adapter_ based on the resource's kind. The in-process registry only routes calls to an injected existing engine.
29
+ 3. \`open(scope, id)\` returns a resource address, canonical route, actual status, current/saved revision, selection and **only supported** capabilities. Do not advertise capabilities from a global list.
30
+ 4. The host renders the owning product's editor/viewport/timeline inside \`DesignWorkspaceFrame.children\`. The frame **does not render or serialize** domain data.
31
+ 5. Selection is a list of stable, opaque typed IDs; the domain inspector resolves real properties. The host may display selection while the specialist remains authoritative.
32
+ 6. \`execute\` requires the real resource, declared capability and matching revision before the adapter is called. The adapter must enforce these again at its server authority.
33
+ 7. Mutating operations return actual receipts naming operation, resource, prior and new revision. Progress/events are tied to operations, never made up by the shell.
34
+ 8. Create requires an idempotency key and returns a **private draft** from the domain's existing create API. Atomic retry deduplication is the **domain backend's** job, not a local UI map.
35
+ 9. Publish is a separate authorized operation with explicit user approval. Save and create are never publish.
36
+ 10. Chat/Work, Side Stage and each specialist route may open the same resource, but must not fork a second independently editable revision.
37
+
38
+ ## Existing CAD host integration
39
+
40
+ \`apps/cad-creator/frontend/src/app/CadCreatorApp.tsx\` already sends real \`cad.selection\` events through the checked guest bridge. \`apps/local-studio/frontend/src/lib/cad-host-bridge.ts\` validates the iframe source and origin, then projects those selections into \`DesignWorkspaceEvent\` (no invented object model). The host's App Preview Stage renders the actual CAD iframe and displays the selected native object kind. A deselection propagates an empty selection.
41
+
42
+ This is **selection-context integration**, not generic CAD editing or a new geometry API. Geometry operations still use the existing CAD services. The current explicit proposal-approval/revision guard remains in force. Read-only hosted projects do not become writable because a user can see a selection.
43
+
44
+ ## Consumer rules
45
+
46
+ - An embedded editor owns its own interaction grammar, pointer controls, keyboard shortcuts, selection geometry, inspector fields, zoom and document serialization.
47
+ - The workbench owns adaptive pane arrangement; product-specific rail content and toolbar actions are **injected**, not implemented in shared code.
48
+ - A host can adopt the shared frame without moving its engine to the SDK or depending on another application checkout. The pinned distributable must contain all required packages.
49
+ - Consumers should import \`@inneranimalmedia/agentsam-workbench/design/design-workspace.css\` for the frame styles. The component does not import CSS so Node/SSR consumers can render safely.
50
+ - Loss of authorization, unavailable providers, failed writes and stale revisions fail visibly; never load a different customer's or fallback fixture document.
51
+
52
+ ## Implemented vs remaining
53
+
54
+ **Implemented in this change:** typed common contract, authority/receipt preflight, injected registry, shared responsive frame, CAD selection-to-workspace event bridge, cross-origin checks and focused tests.
55
+
56
+ **Not implemented by this change:** domain-backed \`+ New\` routing across CMS/CAD/product/media, idempotent server-side create for every domain, progressive generated pages, production-ready design-tool artboard editing, site publication, CAD parametric edits through the new adapter, Product Studio / MovieMode frame adoption, live integrated responsive browser acceptance.
57
+
58
+ The existing Fortune500 merchant first-paint worktree is separate and must be reconciled before a shared UI rollout. Future specialist adoption must pass a real create → edit → save → reopen journey _on its authenticated hosted route_ before it is called shipped.
59
+
60
+ ## Acceptance gates
61
+
62
+ - Account A cannot open or mutate account B's resource. No fixture fallback.
63
+ - A stale revision fails without applying a mutation.
64
+ - Save does not publish; publish requires explicit authorization and approval.
65
+ - The CAD selection event matches the actual selected geometry ID, including deselection. CAD remains CAD.
66
+ - A MovieMode timeline inside the frame remains a timeline, not generic artboard tiles.
67
+ - On a narrow workspace, only one bounded pane is visible, and closing the assistant restores available stage space.
68
+ - Every installed adapter reports actual declared capabilities; unavailable features remain unavailable.
69
+ - End-to-end browser/mobile/deployed verification is still required for shipment.
@@ -0,0 +1,134 @@
1
+ # Platform R2 source-of-truth alignment
2
+
3
+ ## Core rule
4
+
5
+ **Local workspaces author and build. Platform R2 stores approved source assets and released packages. D1 indexes identity, ownership, versions and routing.**
6
+
7
+ `agentsam-3d-studio` is an authoring/development workspace, not the canonical location for stock presets. It may contain editable working copies, generated outputs and temporary caches. Those files are not considered safely published until the corresponding R2 objects and manifest have been uploaded and verified.
8
+
9
+ ## First-party bucket responsibilities
10
+
11
+ | R2 bucket | Responsibility | Access posture |
12
+ |---|---|---|
13
+ | `cad` | Platform-owned CAD stock presets, model source parts, compositions, project-template payloads and approved derivatives | Private; use the existing `CAD_PROJECT_ASSETS` binding for first-party runtime access and Wrangler for controlled publishing |
14
+ | `inneranimalmedia-schemas` | Versioned schemas organized by app and package | Public schema distribution through `schemas.inneranimalmedia.com`; writes through authorized platform access |
15
+ | `theme-store` | Installable themes, style packs, design systems and prebuild packages | Private; authorized installer/download route |
16
+ | `cms` | Published CMS media and public site assets | Public custom domain `cms.inneranimalmedia.com`; private drafts must not be placed in publicly readable paths |
17
+ | `agentsam-os-blueprint-content` (`WEBSITE_ASSETS` on the `agentsam-sdk` worker) | Website/blueprint content **and** durable D1 resource-rebuild backups under `backups/d1/...` | Bound on the Cloudflare Builds worker for `apps/local-studio` |
18
+ | `agent-sam` | Legacy private desktop-update artifacts; canonical Local Studio releases now use `agentsam-os-blueprint-content` via `inneranimalmedia-pwa-services` | Private; not the rebuild backup target |
19
+
20
+ Do not create a bucket for every app or every asset family. Use app/resource/version prefixes inside the appropriate existing bucket. The existing `cad-assets` and `3d-assets` resources are not merged or deleted by this plan; they remain separate until a distinct purpose is established.
21
+
22
+ ## Canonical paths
23
+
24
+ Existing CAD Creator payload keys are retained unchanged:
25
+
26
+ ```text
27
+ cad/
28
+ studio-templates/
29
+ cad-creator/
30
+ platform/
31
+ modern_villa/v1/project.json
32
+ scandinavian_loft/v1/project.json
33
+ minimalist_studio/v1/project.json
34
+ tech_coworking/v1/project.json
35
+ presentation_pavilion/v1/project.json
36
+ brand_showroom/v1/project.json
37
+ creator_studio/v1/project.json
38
+ ```
39
+
40
+ New stock-library releases use immutable app/resource/version prefixes:
41
+
42
+ ```text
43
+ cad/
44
+ library/
45
+ stock/
46
+ samsketch/
47
+ v1/
48
+ manifest.json
49
+ payload/
50
+ stl/
51
+ previews/
52
+ cad-creator/
53
+ <resource-kind>/
54
+ <slug>/
55
+ v1/
56
+ manifest.json
57
+ source/
58
+ derived/
59
+ previews/
60
+ ```
61
+
62
+ A release is never silently overwritten. Publish `v2`, `v3`, etc. D1 catalog records select the active version. The manifest contains object keys, content types, sizes, SHA-256 checksums, entry definitions and source-repository provenance.
63
+
64
+ For the schema bucket, keep the current app/package organization rather than a universal `agentsam/` dump:
65
+
66
+ ```text
67
+ inneranimalmedia-schemas/
68
+ apps/<app-id>/schemas/<schema-name>/v<major>/schema.json
69
+ packages/<package-name>/schemas/<schema-name>/v<major>/schema.json
70
+ platform/<capability>/schemas/<schema-name>/v<major>/schema.json
71
+ ```
72
+
73
+ For `theme-store`:
74
+
75
+ ```text
76
+ theme-store/
77
+ themes/<theme-slug>/<version>/manifest.json
78
+ themes/<theme-slug>/<version>/tokens.json
79
+ themes/<theme-slug>/<version>/assets/...
80
+ styles/<style-pack>/<version>/manifest.json
81
+ prebuilds/<app-id>/<prebuild-slug>/<version>/manifest.json
82
+ prebuilds/<app-id>/<prebuild-slug>/<version>/package.zip
83
+ ```
84
+
85
+ D1 is the searchable catalog and compatibility index. R2 contains the package bytes. A catalog row is not proof that an object exists; publication must verify the R2 object and checksum before the row is activated.
86
+
87
+ ## `agentsam-3d-studio` workflow
88
+
89
+ 1. Pull or check out the required version from R2 before editing a released stock asset.
90
+ 2. Work locally in `agentsam-3d-studio`; keep source code and build scripts in Git.
91
+ 3. Build source parts, compositions and previews locally.
92
+ 4. Run the stock-library plan and ensure every referenced file exists.
93
+ 5. Publish to a new versioned `cad/library/stock/...` prefix.
94
+ 6. Upload payloads first and the manifest last.
95
+ 7. Read every published object back and compare SHA-256 with the manifest.
96
+ 8. Register verified objects and template definitions in D1 using the separate registrar.
97
+ 9. Applications resolve the catalog entry and R2 resource through `agentsam-content`; they do not depend on local filesystem paths.
98
+
99
+ The local cache defaults to `~/.cache/agentsam/r2-stock`, outside the busy working repository. It is disposable and reconstructable from R2.
100
+
101
+ ## Provider and customer ownership boundaries
102
+
103
+ - R2 buckets are identified by `(Cloudflare account ID, bucket name)`, not bucket name alone.
104
+ - `user_oauth_tokens` remains the authorization/token source. Never copy OAuth access or refresh tokens into `r2_buckets`, `r2_objects`, or media records.
105
+ - `r2_buckets` identifies the bucket resource and its owner/account/connection metadata.
106
+ - `r2_storage_routes` selects a destination by principal, app and purpose.
107
+ - Platform stock remains in platform-owned R2. It is not silently copied into a customer's account.
108
+ - A customer may connect their own Cloudflare account through OAuth, select one of their discovered buckets for a specific app/purpose, and use that route at runtime.
109
+ - If a user has not selected an authorized destination, fail closed and ask for configuration. Never silently fall back to Sam's platform bucket.
110
+ - Fixed Worker bindings are reserved for deliberate first-party platform resources. Customer-specific bucket selection is resolved dynamically; do not add one environment variable or binding per customer/bucket.
111
+ - Cloudflare Stream is a separate provider. A Stream UID is a provider resource ID; it is never an R2 bucket or object key. A downloaded copy stored in an actual R2 bucket is a separate R2 asset with Stream origin provenance.
112
+
113
+ ## D1 responsibilities
114
+
115
+ - `r2_buckets`: account-aware bucket identity, ownership, connection reference, access mode and inventory status. No credentials.
116
+ - `r2_objects`: cached object metadata. It is not the authoritative listing of R2 contents.
117
+ - `media_assets`: provider-neutral asset identity with provider-specific resource IDs; no tenant/workspace/project columns.
118
+ - `studio_templates`: reusable creative definitions, app of origin, resource kind, compatible apps and R2 payload/preview references.
119
+ - `r2_storage_routes`: explicit platform/user/tenant app-purpose routing.
120
+ - `asset_relationships`: links templates, media assets and stored objects without stuffing every relationship into one table.
121
+ - `moviemode_templates`: retained during the MovieMode domain migration; its three starter clips link to Cloudflare Stream media assets. MovieMode's compositions, transitions, animations, overlays and timelines remain separate resource kinds, not merely video records.
122
+ - `cms_3d_assets`: remains the CMS-specific 3D extension; it is not the universal 3D asset registry.
123
+
124
+ ## Known reconciliation facts
125
+
126
+ - All seven existing CAD Creator template payloads under `cad/studio-templates/cad-creator/platform/.../v1/project.json` were fetched successfully during the planning pass.
127
+ - The legacy D1 bucket counter for `cad` reported four objects, while seven catalog payloads were independently retrievable. Treat the counter as stale until a full R2 inventory scan is performed.
128
+ - The pre-rebuild `r2_objects` cache does not currently enumerate those seven catalog payloads. The rebuild backfill registers the seven catalog-referenced objects without claiming it has performed a complete bucket scan.
129
+ - The first-party buckets `cms`, `theme-store` and `inneranimalmedia-schemas` exist in Cloudflare but were absent from the pre-rebuild D1 `r2_buckets` registry. The backfill registers them with inventory status `unverified`; it does not invent object counts.
130
+ - The existing Samsketch inventory dry-run resolves 68 entries (20 compositions, 48 source parts), 162 payload/source/preview objects, approximately 153 MiB, with no missing local source files. Those objects have not been uploaded by this plan.
131
+
132
+ ## Migration safety
133
+
134
+ The D1 rebuild parks live tables as `*_legacy`, creates the new schema under the final canonical names, and backfills while preserving existing IDs. There is no `_v2` stage — `_v2` must never become a permanent table name. Parked `*_legacy` tables remain for rollback until deliberately dropped after consumers are confirmed. Full rollback is restore-from-backup.
@@ -0,0 +1,34 @@
1
+ # DreamHouse / Projects + measurements sprint — 2026-10-28
2
+
3
+ Canonical project: projects.id (TEXT); DreamHouse: proj_mrb5shkc_3kos2c.
4
+
5
+ ## Source contracts
6
+ - Identity: accounts.id / auth_users. This sprint does not rewrite identity.
7
+ - OAuth: user_oauth_tokens is the account-owned provider grant authority. Other Cloudflare connection registries are compatibility metadata, not an alternate login path. The Work project inspector exposes only metadata and never tokens.
8
+ - Projects: projects.id. No duplicate agentsam_projects or workspace-scoped substitute.
9
+ - Registered resources: project_storage rows owned by canonical project. DreamHouse has four active records (local DreamHouse repo, GitHub, R2 CAD and external drive). A configured record is not automatically an API-verified connection.
10
+ - Drawings: project_draws, keyed by project_id; existing 77 DreamHouse drawings are linked to the cad R2 storage record. In Work Gallery they are metadata-backed entries, and authenticated GET /api/work/projects/:id/draws/:drawingId/file serves their private R2 objects. No public R2 URL or bucket key is returned.
11
+ - Measured time: time_entries, not chat messages or git commit counts. POST /api/work/projects/:id/timer/start and /stop persist account-owned elapsed sessions, one active session per account and project.
12
+ - Costs / token usage: existing project_costs ledger, not estimates or a fake total. Only USD recorded costs are summed. This does not include unattributed Cloudflare or provider costs.
13
+ - project_metrics: cached derived project totals for quick access, with real TEXT project_id; the previous 8 legacy rows are preserved in project_metrics_legacy_20261028 and copied only as explicitly unverified legacy estimates. Migration 1349 must precede deploying the new timer API.
14
+
15
+ ## Quality of measurement
16
+
17
+ A session is counted as measured if it has completed start/end timestamps, reasonable elapsed duration (at most 24 hours per entry) and an allowed manual / work_timer source. Imported/auto entries and long-duration entries are excluded and counted as unverified instead.
18
+
19
+ Live D1 read-only audit: DreamHouse has 0 linked time entries, 6 cost entries totaling $0.55, 77 project drawings, and 4 storage registrations. The existing time_entries dataset has 1,317 entries with 177 auto entries longer than 24h; summing those as actual human time would inflate results.
20
+
21
+ The project inspector shows recorded measured hours, recorded attributed USD costs, API tokens from project_costs, timer controls, and project resource connection registration/authorization states.
22
+
23
+ ## Release order
24
+
25
+ 1. Keep current CAD/source trees unchanged, make a DB backup and inspect the 8 legacy project_metrics rows.
26
+ 2. Apply apps/local-studio/backend/migrations/1349_projects_metrics_time_ssot.sql as an explicitly coordinated migration. It rebuilds project_metrics while preserving all legacy rows, and creates a unique active-timer index. Test on a D1 backup before production.
27
+ 3. Deploy the compatible Work Worker and frontend together; do not deploy half the API. Ensure CAD_PROJECT_ASSETS binding points to bucket cad.
28
+ 4. Open /admin/projects/proj_mrb5shkc_3kos2c and check Gallery (registered drawings), inspector (4 resources and recorded $0.55), start/stop timer, reload measured hours, try a forbidden project/drawing request.
29
+ 5. Verify any Cloudflare OAuth reauthorization from existing connections UI, not via copying credentials out of agentsam_cloudflare_connections. The R2 service binding does not require a personal OAuth row.
30
+ 6. Future: connect verified agent-run durations, collaborator time and rate/cost classifications with deduplication. No fabricated historical metrics or Supabase column deletion in this sprint.
31
+
32
+ ## Verification
33
+
34
+ Local SQLite migration, data ownership, duplicate-timer prevention, ledger aggregates, excluded spurious records, 77-drawing-capable list and private R2 proxy tests. Backend suite and Work package pass. No live D1 mutations or production deploy were performed while the broader CAD working tree has unrelated changes.
@@ -101,6 +101,8 @@ Every externally callable AgentSam capability:
101
101
 
102
102
  Alias ≠ authority. Human CLI aliases (`agentsam inspect`, `agentsam sca`) remain; internal ID stays `repository.inspect` / `security.scan`.
103
103
 
104
+ **Contract ownership:** `@inneranimalmedia/agentsam-contracts` owns the portable `AgentOperationContract`, `AgentToolDefinition`, operation result/receipt types, and their source JSON Schemas. `src/sam/types.js` aliases the shared types for SAM; `defineSamOperation()` calls `assertAgentOperationContract()` before binding a host handler and does not create a second portable schema. `src/tools/registry.js` validates tool definitions through the package's `assertAgentToolDefinition()`. Public `protocol/sam/*.schema.json` and `protocol/tools/*.schema.json` files are tested mirrors of package-owned schemas. Domain packages add their own semantics as extensions; CMS does this in `@inneranimalmedia/agentsam-cms`.
105
+
104
106
  ### Session vs operations
105
107
 
106
108
  `login`, `logout`, `whoami`, shell preferences, and help are **client/session/runtime** controls. Do not force them through `sam.invoke('auth.login')`.
@@ -199,8 +201,12 @@ See: Go Worker product lane already live; expand carefully.
199
201
 
200
202
  | Path | Role |
201
203
  |------|------|
202
- | `protocol/sam/operation.schema.json` | Operation metadata schema |
203
- | `protocol/sam/result.schema.json` | SamResult envelope |
204
+ | `packages/agentsam-contracts/src/operations.ts` | Portable operation contract and SAM result/receipt types |
205
+ | `packages/agentsam-contracts/src/tools.ts` | Portable tool definition and runtime contract guard |
206
+ | `packages/agentsam-contracts/schemas/` | Canonical operation, tool and result JSON Schemas |
207
+ | `protocol/sam/operation.schema.json` | Public mirror of the package-owned operation schema |
208
+ | `protocol/sam/result.schema.json` | Public mirror of the package-owned operation result schema |
209
+ | `protocol/tools/agent-tool-definition.v1.schema.json` | Public mirror of the package-owned tool schema |
204
210
  | `protocol/sam/registry.seed.json` | Seed operation registry |
205
211
  | `src/sam/` | Kernel registry + `AgentSamClient` / `invoke` / `describe` / `discover` |
206
212
  | `protocol/capabilities/manifest.json` | Existing capability cards (migrate into ops over time) |
@@ -0,0 +1,87 @@
1
+ # Schema authorities — AgentSam apps, CAD, scenes and production
2
+
3
+ **Status:** Source/R2 reconciliation audit, November 18, 2026. This document describes authorities and observed drift, not a claim that every published endpoint has been repaired.
4
+
5
+ ## The critical distinction
6
+
7
+ The question "what is the schema for an app?" has more than one answer because an installable product, its settings, its user-created documents and its schema pack are **different artifacts**.
8
+
9
+ | Artifact | Authority | Scope |
10
+ | --- | --- | --- |
11
+ | Installable APP definition | `protocol/apps/agentsam.app.v1.schema.json` and each app's `agentsam.app.json` | Immutable APP identity, version, capabilities, runtime, entrypoints and mounts |
12
+ | Host installation | Existing `agentsam.host-install.v1` and installed-app database | Tenant/account-specific installation, permissions, bindings and enabled state |
13
+ | App settings | App-owned `settings.schema.json` (as applicable) | Configurable parameters; not APP identity |
14
+ | App save-state/document | App-owned `save-state.schema.json` or other domain document | User/project state, ownership and revision |
15
+ | Schema pack | App- or package-owned manifest (as applicable) | Versioned URLs, integrity of schema modules, compatibility |
16
+ | 3D scene | `packages/iamscene/schema/iamscene.v1.schema.json` | Portable `.iamscene.json` content and runtime-facing scene graph |
17
+ | CAD project | Existing `cad.project.v2.schema.json` | Native project/revision, geometry and engineering authority |
18
+ | 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
+ | CoPro project | Existing CoPro project/timeline contracts | Media timeline, edit history and synchronized assets |
20
+ | Merch profiles | Existing `agentsam.manufacturing-profile.v1` contract | Verified process constraints, provider selection, preflight and derivatives |
21
+
22
+ 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
+
24
+ ## IAMScene — observed publication drift
25
+
26
+ Current SDK source:
27
+ `packages/iamscene/schema/iamscene.v1.schema.json`
28
+
29
+ Package export:
30
+ `@inneranimalmedia/iamscene/schema`
31
+
32
+ Source-declared `$id` and README reference:
33
+ `https://schemas.inneranimalmedia.com/packages/iamscene/v1/scene.canonical.schema.json`
34
+
35
+ Observed immutable legacy R2 object (retained byte-for-byte):
36
+ `inneranimalmedia-schemas/packages/iamscene/v1/scene.schema.json`
37
+
38
+ New package-scoped canonical target:
39
+ `inneranimalmedia-schemas/packages/iamscene/v1/scene.canonical.schema.json`
40
+
41
+ On November 19, 2026, the existing `packages/iamscene/v1/scene.schema.json` object was read back from R2 (19,998 bytes, SHA-256 `0a231b4d2121058ee9f6b3ce6ccc93a281834ecb4e188c562fc7b5d685a3c997`). Its `$id` is the earlier `https://schemas.inneranimalmedia.com/iamscene/v1/scene.schema.json`. The proposed source changes the `$id`, so it must be published at the distinct `scene.canonical.schema.json` key. The registry records the old key and checksum explicitly, and the publisher must refuse to proceed if that legacy object changes.
42
+
43
+ **Correct release rule:** The npm package schema is the source of truth. Publish its exact bytes, with a verified SHA-256 receipt, under the canonical `$id` key. If the `packages/...` legacy URL is still referenced, preserve it as an exact-byte mirror or an explicit redirect—not as a second independently maintained schema. Validate representative old and new scene fixtures before replacing any same-version public schema. Do not overwrite a breaking schema at the same semantic version; publish a migrated version instead. Verify HTTP content type, cache, publicly retrievable response and SHA after uploading.
44
+
45
+ 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
+
47
+ ## CAD v2 — two layers, not necessarily two competing project models
48
+
49
+ Observed old root:
50
+ `apps/cad-creator/schemas/cad.project.v2.schema.json`
51
+
52
+ Observed additive module snapshot:
53
+ `apps/cad-creator/schemas/v2/schema-pack.manifest.json`
54
+
55
+ Source authority for the modular strict pack:
56
+ `protocol/cad/v2/`, with 22 modules at the inspected revision.
57
+
58
+ The current `scripts/cad/schema_pack_release.py` is already designed to publish **immutable release paths** with a mutable `registry.v1.json` pointer. That is materially different from changing the older unversioned `/v2/` snapshot in place. Source script release declaration is `2.6.13-modules.2` while the inspected unversioned R2 module manifest reports `2.6.13-modules.1`.
59
+
60
+ The root `cad.project.v2` is the project envelope and source identity. Modules add strict validation for capabilities such as architecture, parametrics, geometry relationships, revision evidence and presentation. **Do not replace the root project with a pack manifest.** Instead, formally bind module version/digest to a project revision, validate cross-references and avoid silently accepting unknown modules.
61
+
62
+ Before any registry pointer is updated: verify 22 module bytes/hash/$id/$ref, strict JSON Schema compilation, representative native project fixtures, immutable release publication, then the public registry and downstream consumer acceptance. An absent release pointer must be reported as absent; never pretend an old `/v2/` snapshot is the new release.
63
+
64
+ ## Scene interoperability without destroying native sources
65
+
66
+ All spatial products should be **compatible with** IAMScene, not forcibly serialized into it as their only durable source.
67
+
68
+ - CAD, BIM, OCCT feature histories, STEP/BREP/IFC and parametric constraints remain under engineering project authority.
69
+ - SamScene, SamSketch, SamSculpt and authored world assets may export/consume `.iamscene.json` with provenance and documented supported extensions.
70
+ - MovieMode and CoPro timelines remain domain-owned; use scene references, render requests, camera paths and source revision links.
71
+ - CMS page/section scrolling belongs to `theme-scenes`; IAMScene owns time-addressable animation but not an arbitrary site's scroll behavior.
72
+ - Provider-neutral merch preflight references master artwork; it does not use scene or storefront derivatives as manufacturing masters.
73
+
74
+ When connecting documents, record `sourceUri`, `sourceRevision`, `format`, `sha256`, `units`/coordinate transform when needed, `scope` and `rendererKey`/consumer capability. Missing adapters must fail visibly, not silently down-convert or render a different scene.
75
+
76
+ ## Schema publication acceptance tests
77
+
78
+ 1. **Identity:** Every `$id` resolves to exact intended published bytes; no two conflicting bodies share one `$id`.
79
+ 2. **Integrity:** Source hashes match manifest hashes, R2 object bytes and public HTTP bytes.
80
+ 3. **Compatibility:** Representative fixtures pass; breaking changes require an explicit migration and version.
81
+ 4. **Validation:** Draft 2020-12 schemas compile with all local and cross-file `$ref` targets resolved; source-specific semantic checks run separately.
82
+ 5. **Runtime:** A validating document can load, render or be rejected with an intelligible unsupported-capability error.
83
+ 6. **Authority:** Account-owned save-state, assets and projects remain tenant-isolated; published schema documents contain no customer identity or secrets.
84
+ 7. **Distribution:** PyPI/npm/app releases and deployed R2 schema versions align through recorded package/source revisions.
85
+ 8. **Evidence:** Publish receipt records Git SHA, schema URI, object key, version, SHA-256, timestamp, response status and consumer smoke results.
86
+
87
+ 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.
@@ -0,0 +1,41 @@
1
+ # Discovery — Brand Presentation Context (2026-11-01)
2
+
3
+ During shell / creative revisions, SamSketch showed a working **brand-aware 3D scene presentation** capability that must not be mistaken for application chrome theming.
4
+
5
+ ## Observed behavior
6
+
7
+ SamSketch `Product identity` currently hardcodes two choices (`AgentSam`, `InnerAnimalMedia`). Switching them restyles the **same composition**:
8
+
9
+ - Brand names and screen labels
10
+ - Monitor / frame colors
11
+ - Chart accents and object materials
12
+ - Overall presentation identity of authored output
13
+
14
+ The editing environment and geometry authoring path stay shared. That split is correct and valuable.
15
+
16
+ ## Ownership boundaries (do not collapse)
17
+
18
+ | Concern | Owner |
19
+ |---|---|
20
+ | Global AgentSam application appearance | AgentSam Settings |
21
+ | Approved brand identity + registered assets | Brand Studio / authorized `BrandContract` |
22
+ | Which brand a project is presenting | Project / document reference |
23
+ | Applying that brand to authored output | Creative apps (SamSketch first) |
24
+
25
+ AgentSam chrome ≠ brand of the thing being created.
26
+
27
+ Example: work inside AgentSam → use SamSketch → author a presentation for InnerAnimalMedia (or a client brand) → scene carries that brand → shell remains Settings-owned.
28
+
29
+ ## Required generalization (not a rewrite)
30
+
31
+ Do **not** keep AgentSam / InnerAnimalMedia as the permanent product-identity architecture.
32
+
33
+ 1. Trace SamSketch (`apps/samsketch/src/main.ts` brand map + `brand-choice`) — separate data-driven presentation bindings from hardcoded branches.
34
+ 2. Preserve scene-presentation, material refinement, and editable object properties.
35
+ 3. Replace the fixed two-brand selector with a dynamic brand reference.
36
+ 4. Bind presentation tokens (identity, materials, semantic colors, typography, logo/imagery) to Brand Studio / `BrandContract` — no duplicate brand tables, parallel asset libraries, or independent theme systems.
37
+ 5. Eventually reuse one Brand Presentation Context across SamSketch, CAD viz, MovieMode, CMS previews, mockups, and export presentation.
38
+
39
+ ## Shell revision constraint
40
+
41
+ Incorporate this as an architectural discovery only. **Do not derail active shell revision WIP** and **do not replace SamSketch**. Preserve the editor; generalize the identity source when that lane is ready.