@inneranimalmedia/agentsam-sdk 2.6.12 → 2.6.13

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 (651) hide show
  1. package/AGENTSAM.md +32 -0
  2. package/DEVELOPMENT.md +69 -74
  3. package/README.md +11 -0
  4. package/apps/cad-creator/README.md +12 -0
  5. package/apps/cad-creator/shared/cad/package.json +1 -1
  6. package/apps/cad-creator/shared/cad/src/domain/project-contract.js +2 -75
  7. package/apps/cad-creator/shared/cad/src/domain/project-tools.js +2 -24
  8. package/apps/cad-creator/shared/cad/src/types.ts +2 -2
  9. package/apps/client-cms-editor/backend/package.json +2 -2
  10. package/apps/client-cms-editor/frontend/package.json +3 -3
  11. package/apps/client-cms-editor/frontend/src/adapters/http.ts +25 -13
  12. package/apps/client-cms-editor/frontend/src/editor/CmsEditor.tsx +7 -4
  13. package/apps/client-cms-editor/frontend/src/editor/canvas/PreviewCanvas.tsx +31 -3
  14. package/apps/client-cms-editor/frontend/src/editor/host-preview.test.tsx +104 -0
  15. package/apps/client-cms-editor/package-lock.json +8 -8
  16. package/apps/client-cms-editor/package.json +2 -1
  17. package/apps/client-cms-editor/shared/cms/package.json +1 -1
  18. package/docs/AUTORAG.md +2 -0
  19. package/docs/CAPABILITIES.md +28 -0
  20. package/docs/adr/ADR-0003-copro-clean-room-product-architecture.md +6 -0
  21. package/docs/architecture/AGENTSAM-CANONICAL-DISCOVERY-FIRST-SLICE.md +70 -0
  22. package/docs/architecture/AGENTSAM-REGISTRY-CLI-AGENT-PARITY.md +133 -0
  23. package/docs/architecture/AGENTSAM_APPLICATION_CONTRACT.md +6 -0
  24. package/docs/architecture/CAD_OPERATOR_CAPABILITIES.md +64 -0
  25. package/docs/architecture/CAD_ROBOTICS_RELEASE_LEDGER_20261016.md +43 -0
  26. package/docs/architecture/CAD_RUN_MODES.md +34 -0
  27. package/docs/architecture/CLI-BOOT-REMOTE-DB-READINESS-20261015.md +65 -0
  28. package/docs/architecture/EXISTING-MCP-D1-AGENT-BRIDGE.md +47 -0
  29. package/docs/architecture/PLAN-PORTABILITY-SAM-FIRST-SPRINT-20261015.md +36 -0
  30. package/docs/architecture/PLUGIN-PRODUCTIZATION-SPINE.md +101 -0
  31. package/docs/architecture/SAMOS_PRODUCT_MODEL.md +49 -0
  32. package/docs/architecture/SAM_KERNEL.md +40 -0
  33. package/docs/architecture/SAM_RESOURCE_CRUD_STANDARD.md +96 -0
  34. package/docs/architecture/SAM_SYSTEMATIC_AUTONOMOUS_MACHINERY.md +79 -0
  35. package/docs/architecture/USER_GLOBAL_AGENT_INSTRUCTIONS.md +55 -0
  36. package/docs/autorag-workflow.md +13 -0
  37. package/docs/brand/AGENT_SAM_ICON_GRAMMAR.md +4 -0
  38. package/docs/contracts/capability-install-planner.md +66 -38
  39. package/docs/contracts/environment-vocabulary.md +5 -5
  40. package/docs/engineering/SUPERBASH_LOCAL_RUNTIME.md +100 -0
  41. package/docs/generated/SDK_CAPABILITY_INVENTORY.md +313 -0
  42. package/docs/handoffs/AGENT_HANDOFF_SUPERBASH_AND_MODEL_PERFORMANCE_2026-10-14.md +134 -0
  43. package/docs/intake/product-capabilities.proposed.ts +232 -0
  44. package/docs/knowledge-supabase-node-api.md +51 -0
  45. package/docs/plans/MEDIA_TRUTH_SOURCE_RECOVERY_20261008.md +31 -0
  46. package/docs/plans/OFFLINE_CLI_KNOWLEDGE_AGENT_HANDOFF.md +104 -0
  47. package/docs/plans/OFFLINE_CLI_KNOWLEDGE_RUNBOOK.md +81 -0
  48. package/docs/plans/SAM_EXPERIENCE_AGENT_DISPATCH_2026-10-15.md +107 -0
  49. package/docs/plans/SAM_MACHINERY_TO_EXPERIENCE_2026-10-15.md +172 -0
  50. package/docs/plans/UI_POLISH_DESKTOP_2026-10-16.md +102 -0
  51. package/docs/plans/WORK-UX-REMASTER-2026-10-15.md +48 -0
  52. package/docs/plans/WORK-WORKSPACE-PLAN-2026-10-14.md +212 -0
  53. package/docs/product/AGENTSAM-UI-QUALITY-GATE.md +148 -0
  54. package/docs/product/AGENTSAM_PRODUCT_EXPERIENCE_STANDARD.md +2 -0
  55. package/docs/product/MEDIA-PRODUCTION-FAMILY.md +47 -0
  56. package/docs/product/OFFER-PORTFOLIO.md +14 -0
  57. package/docs/product/PACKAGE-TAXONOMY.md +17 -0
  58. package/docs/product/PLUGIN-GALLERY-DISCOVERY-AND-INSTALL.md +97 -0
  59. package/docs/product/README.md +2 -0
  60. package/docs/product/WIDGET-GALLERY-PHASE-ONE.md +43 -0
  61. package/docs/reference/AGENTSAM-CLI-WORKFLOWS.md +73 -0
  62. package/docs/reference/AGENTSAM-ERROR-REASONS.md +267 -0
  63. package/docs/reference/AGENTSAM-REGISTRY.generated.md +288 -0
  64. package/docs/reference/INNERANIMALMEDIA_EXPERIENCE_ACCEPTANCE_2026-10-15.md +99 -0
  65. package/docs/releases/cad-v2-sdk-2.6.13.md +25 -0
  66. package/docs/roadmaps/ROAD_TO_REAL_DISTRIBUTION.md +97 -0
  67. package/docs/robotics-chess-handoff.md +15 -0
  68. package/docs/standards/DELIVERY_CLOSURE.md +33 -0
  69. package/docs/standards/SAM_MACHINE_BUILD_AND_GAPS.md +91 -0
  70. package/docs/workflows/ISSUE_TO_SAMOS.md +59 -0
  71. package/package.json +60 -8
  72. package/packages/agentsam-brand/package.json +1 -1
  73. package/packages/agentsam-cms/README.md +56 -0
  74. package/packages/agentsam-cms/agentsam.package.json +46 -0
  75. package/packages/agentsam-cms/package.json +36 -0
  76. package/packages/agentsam-cms/src/aliases.js +74 -0
  77. package/packages/agentsam-cms/src/contracts.js +105 -0
  78. package/packages/agentsam-cms/src/index.d.ts +80 -0
  79. package/packages/agentsam-cms/src/index.js +3 -0
  80. package/packages/agentsam-cms/src/machine.js +221 -0
  81. package/packages/agentsam-cms/src/node-sqlite-repository.js +148 -0
  82. package/packages/agentsam-cms/src/node.d.ts +7 -0
  83. package/packages/agentsam-cms/src/node.js +1 -0
  84. package/packages/agentsam-cms/src/schema/cms-local-runtime.v1.sql +365 -0
  85. package/packages/agentsam-cms/test/standalone.test.mjs +28 -0
  86. package/packages/agentsam-contracts/agentsam.package.json +43 -0
  87. package/packages/agentsam-contracts/dist/errors.d.ts +1 -1
  88. package/packages/agentsam-contracts/dist/widgets.d.ts +7 -0
  89. package/packages/agentsam-contracts/package.json +1 -1
  90. package/packages/agentsam-contracts/src/errors.ts +1 -1
  91. package/packages/agentsam-contracts/src/widgets.ts +7 -0
  92. package/packages/agentsam-desktop-shell/README.md +38 -0
  93. package/packages/agentsam-desktop-shell/scripts/app-discovery.mjs +43 -0
  94. package/packages/agentsam-errors/README.md +14 -0
  95. package/packages/agentsam-errors/agentsam.package.json +43 -0
  96. package/packages/agentsam-errors/package.json +1 -1
  97. package/packages/agentsam-errors/protocol/error-catalog.json +12 -0
  98. package/packages/agentsam-errors/src/cli.js +56 -0
  99. package/packages/agentsam-errors/src/index.js +2 -0
  100. package/packages/agentsam-errors/src/vocabulary.js +2 -0
  101. package/packages/agentsam-errors/test/approval-contract.test.mjs +12 -0
  102. package/packages/agentsam-errors/types/index.d.ts +5 -1
  103. package/packages/agentsam-goap/agentsam.package.json +42 -0
  104. package/packages/agentsam-goap/package.json +2 -2
  105. package/packages/agentsam-hooks/agentsam.package.json +45 -0
  106. package/packages/agentsam-hooks/bindings/go/errors_generated.go +1 -0
  107. package/packages/agentsam-hooks/bindings/rust/src/errors_generated.rs +1 -0
  108. package/packages/agentsam-hooks/package.json +1 -1
  109. package/packages/agentsam-hooks/src/errors-generated.js +10 -0
  110. package/packages/agentsam-ide/README.md +59 -0
  111. package/packages/agentsam-ide/src/lsp/host.d.mts +13 -0
  112. package/packages/agentsam-ide/src/lsp/host.mjs +133 -0
  113. package/packages/agentsam-knowledge/agentsam.package.json +42 -0
  114. package/packages/agentsam-knowledge/package.json +1 -1
  115. package/packages/agentsam-knowledge/src/autorag/index.js +25 -4
  116. package/packages/agentsam-knowledge/src/backends/index.js +21 -1
  117. package/packages/agentsam-knowledge/src/backends/supabase-node-api.js +91 -0
  118. package/packages/agentsam-knowledge/test/autorag.test.mjs +13 -0
  119. package/packages/agentsam-knowledge/test/supabase-node-api.test.mjs +59 -0
  120. package/packages/agentsam-merch/agentsam.package.json +43 -0
  121. package/packages/agentsam-merch/package.json +1 -1
  122. package/packages/agentsam-nav/dist/browser.global.js +18 -21
  123. package/packages/agentsam-nav/dist/browser.js +4 -3
  124. package/packages/agentsam-nav/dist/index.js +4 -3
  125. package/packages/agentsam-nav/package.json +1 -1
  126. package/packages/agentsam-queue-control/agentsam.package.json +42 -0
  127. package/packages/agentsam-queue-control/package.json +1 -1
  128. package/packages/agentsam-rapid-rust/Cargo.toml +5 -0
  129. package/packages/agentsam-rapid-rust/agentsam.package.json +42 -0
  130. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/0b22ca9c5f8cddc15e6816df4a2467a28d41aa174361cdfed9019ee4e04dfbb8.json +1 -0
  131. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/0c5064875a5d7645013880f04d71f56c0dfa1bc87ac9fd59adc3e9a93a2745da.json +1 -0
  132. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/11ebd15702c169ee0666656be851cc549f70f84498dbca3c5b72d2ceaa91c851.json +1 -0
  133. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/1d7f2c8ad9588cd2077a1d07fce156e0bd47be686d8c9f26885bab14874c4ab5.json +1 -0
  134. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/1f21ba21e7b631b0d4893cbdd7a6bb7345d34e8b1a0ee9cf644cc30aeb3c8b8d.json +1 -0
  135. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/23f4d4b90def0782de32e7a57558cba24525f12ba3c009728ea4881259a74099.json +1 -0
  136. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/26b60985b6ef62e4f20e06c37e47c6996c1a2f457335fa9eb4a68d1288e18490.json +1 -0
  137. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/2b27d15a1b8c3637a56f631d583cc9ba584bed2b7018dd962a9340d5e1c50a1d.json +1 -0
  138. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/3110a5568a544c4c38de6585dcdabc21fa5f54a5772ecf4e1f4076ee0d49e933.json +1 -0
  139. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/357ce3db8299e01866bf4fc3d8ee1c784ef53c7455cf86bb17c52f3dad20d050.json +1 -0
  140. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/4516c6e03636538cacc7a6e4063d98a7ed2f0090c3a02c5ee817f1c512b1070e.json +1 -0
  141. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/649e02dbaec2edabbd40372e0c5f72f114164fe7704e7825220b1955f6a7c74e.json +1 -0
  142. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/81c266d4c150a4f6c5a73c9c4fef6541577fd0acd8c1f911f02781deb5f0be0f.json +1 -0
  143. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/86b4b8de30eed9902750b3de9fb54276d229244671a8b6035345bbe705463d82.json +1 -0
  144. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/8a877fdc5dbc6a66c344b4ebc4d9b746d47f95153e98872210becd85ca941ddd.json +1 -0
  145. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/96a11200f7b42ddd1281e4f749e88dcb8455ab0e3883f943934e0a9a7935147a.json +1 -0
  146. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/9e2df2335cfc73ec021bdd6b2d34af798f6ed9c52e3061ce16b6ceabae4e275f.json +1 -0
  147. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/a405fe3addeaab2908ed58836997be3b679d990ec9102d06bece3569e4bd4a81.json +1 -0
  148. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/a63915da0a45f86a5938ba9a2b2e87d469e7d07f7ea9cc531136fdc9e055557e.json +1 -0
  149. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/a8452c2dcaa959ced25e3597931b311999c0aa5b257ca8610fe415e8cfa598cc.json +1 -0
  150. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/b35fc2ae65ea07fbbfdd242a3d76489947462399e7a2db91f8545ca50d97d86f.json +1 -0
  151. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/b966932defe9c7b5ec9599c9276d333bd09ad1605adae80300d825d2161ad20c.json +1 -0
  152. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/ca9060e5ccb91f3a2663f57afd47a25099b6b3313c2a7436c4634993ff6e9afc.json +1 -0
  153. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/d0eba82a259be203c68c3ebf6d5b8a376f31a3b84fad418fdb9b5e2715c59869.json +1 -0
  154. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/d8838513009c65079aba67314ab130920484c674c5f0b8a356c8777eb6174eb2.json +1 -0
  155. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/dda01925b7f0a213215b983979ce23625dd0f6cfdb49c483ec1ff73e64def56f.json +1 -0
  156. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/e4956d8f97608f8324607b22cc93635d8183b23021d79cb4c21668c8b8a6ce87.json +1 -0
  157. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/e80c1e517e7173dcbde78869d2bf67a24a11b0bb9df5a87fb12934e39497abc8.json +1 -0
  158. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/eeeaa9394ac979eb4ffa557e97d67ed96dbd61437e09058f7c776bdc0483f050.json +1 -0
  159. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/f9264d8d7d1ccfb415362a28b4a1b4fa0dfbdf828ff970d1aaecfb0ebe208978.json +1 -0
  160. package/packages/agentsam-repository/.agentsam/machine/cache/machine-parser.v1/f957a80b89d32af4f33f9f840b4795af1b5145fc44780ad88a6a3b1b3a7ea3bc.json +1 -0
  161. package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/asset-manifest.json +418 -0
  162. package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/findings.json +308 -0
  163. package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/frontend-manifest.json +70 -0
  164. package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/graph.json +322 -0
  165. package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/inventory.json +932 -0
  166. package/packages/agentsam-repository/.agentsam/machine/runs/run_2b0d196f16961f88/summary.json +21 -0
  167. package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/asset-manifest.json +418 -0
  168. package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/findings.json +308 -0
  169. package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/frontend-manifest.json +70 -0
  170. package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/graph.json +322 -0
  171. package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/inventory.json +932 -0
  172. package/packages/agentsam-repository/.agentsam/machine/runs/run_2d70e3d4fe8290fb/summary.json +21 -0
  173. package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/asset-manifest.json +418 -0
  174. package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/findings.json +308 -0
  175. package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/frontend-manifest.json +70 -0
  176. package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/graph.json +322 -0
  177. package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/inventory.json +932 -0
  178. package/packages/agentsam-repository/.agentsam/machine/runs/run_63fab76b2f18c2f0/summary.json +21 -0
  179. package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/asset-manifest.json +418 -0
  180. package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/findings.json +300 -0
  181. package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/frontend-manifest.json +70 -0
  182. package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/graph.json +322 -0
  183. package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/inventory.json +932 -0
  184. package/packages/agentsam-repository/.agentsam/machine/runs/run_72fe856b80b0c46f/summary.json +21 -0
  185. package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/asset-manifest.json +418 -0
  186. package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/findings.json +308 -0
  187. package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/frontend-manifest.json +70 -0
  188. package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/graph.json +322 -0
  189. package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/inventory.json +932 -0
  190. package/packages/agentsam-repository/.agentsam/machine/runs/run_a5834156504f3050/summary.json +21 -0
  191. package/packages/agentsam-repository/README.md +25 -0
  192. package/packages/agentsam-repository/agentsam.package.json +42 -0
  193. package/packages/agentsam-repository/package.json +6 -3
  194. package/packages/agentsam-repository/src/crawl.js +220 -0
  195. package/packages/agentsam-repository/src/index.js +3 -0
  196. package/packages/agentsam-repository/src/merkle/semantic.js +20 -0
  197. package/packages/agentsam-repository/src/refinery.js +96 -0
  198. package/packages/agentsam-repository/test/crawl-refinery.test.mjs +113 -0
  199. package/packages/agentsam-site-scrape/README.md +357 -0
  200. package/packages/agentsam-site-scrape/agentsam_site_scrape/__init__.py +4 -0
  201. package/packages/agentsam-site-scrape/agentsam_site_scrape/__main__.py +349 -0
  202. package/packages/agentsam-site-scrape/agentsam_site_scrape/classify.py +80 -0
  203. package/packages/agentsam-site-scrape/agentsam_site_scrape/config.py +83 -0
  204. package/packages/agentsam-site-scrape/agentsam_site_scrape/contract.py +108 -0
  205. package/packages/agentsam-site-scrape/agentsam_site_scrape/crawl.py +395 -0
  206. package/packages/agentsam-site-scrape/agentsam_site_scrape/evidence.py +226 -0
  207. package/packages/agentsam-site-scrape/agentsam_site_scrape/htmlparse.py +109 -0
  208. package/packages/agentsam-site-scrape/agentsam_site_scrape/imageops.py +121 -0
  209. package/packages/agentsam-site-scrape/agentsam_site_scrape/jsonrun.py +127 -0
  210. package/packages/agentsam-site-scrape/agentsam_site_scrape/net.py +121 -0
  211. package/packages/agentsam-site-scrape/agentsam_site_scrape/pageextract.py +202 -0
  212. package/packages/agentsam-site-scrape/agentsam_site_scrape/r2_upload.py +140 -0
  213. package/packages/agentsam-site-scrape/agentsam_site_scrape/ssrf.py +57 -0
  214. package/packages/agentsam-site-scrape/agentsam_site_scrape/storage.py +57 -0
  215. package/packages/agentsam-site-scrape/agentsam_site_scrape/wrangler_bucket.py +98 -0
  216. package/packages/agentsam-site-scrape/pyproject.toml +21 -0
  217. package/packages/agentsam-site-scrape/runtime/client.mjs +32 -0
  218. package/packages/agentsam-site-scrape/runtime/core.mjs +211 -0
  219. package/packages/agentsam-site-scrape/runtime/index.mjs +31 -0
  220. package/packages/agentsam-site-scrape/runtime/knowledge.mjs +38 -0
  221. package/packages/agentsam-site-scrape/runtime/node-runner.mjs +231 -0
  222. package/packages/agentsam-site-scrape/runtime/node-storage.mjs +146 -0
  223. package/packages/agentsam-site-scrape/runtime/project-site.mjs +74 -0
  224. package/packages/agentsam-site-scrape/runtime/secure-fetch.mjs +88 -0
  225. package/packages/agentsam-site-scrape/runtime/test/knowledge-handoff.test.mjs +51 -0
  226. package/packages/agentsam-site-scrape/runtime/test/project-index-command.test.mjs +109 -0
  227. package/packages/agentsam-site-scrape/runtime/test/runtime.test.mjs +145 -0
  228. package/packages/agentsam-site-scrape/tests/__init__.py +0 -0
  229. package/packages/agentsam-site-scrape/tests/test_contract.py +83 -0
  230. package/packages/agentsam-site-scrape/tests/test_core.py +119 -0
  231. package/packages/agentsam-site-scrape/tests/test_evidence.py +88 -0
  232. package/packages/agentsam-site-scrape/tests/test_evidence_pipeline.py +112 -0
  233. package/packages/agentsam-site-scrape/tests/test_jsonrun.py +63 -0
  234. package/packages/agentsam-site-scrape/tests/test_redirects.py +68 -0
  235. package/packages/agentsam-site-scrape/tests/test_storage.py +34 -0
  236. package/packages/agentsam-site-scrape/worker/index.mjs +259 -0
  237. package/packages/agentsam-site-scrape/worker/project-config.mjs +57 -0
  238. package/packages/agentsam-site-scrape/worker/test/worker.test.mjs +191 -0
  239. package/packages/agentsam-vault/package.json +1 -1
  240. package/packages/agentsam-workbench/README.md +18 -0
  241. package/packages/agentsam-workbench/package.json +13 -4
  242. package/packages/agentsam-workbench/src/agent/capability-catalog.ts +96 -0
  243. package/packages/agentsam-workbench/src/agent/index.ts +2 -0
  244. package/packages/agentsam-workbench/src/knowledge/AutoRagWorkflowDialog.tsx +166 -0
  245. package/packages/agentsam-workbench/src/knowledge/README.md +14 -0
  246. package/packages/agentsam-workbench/src/knowledge/autorag-workflow.css +6 -0
  247. package/packages/agentsam-workbench/src/knowledge/index.ts +2 -0
  248. package/packages/agentsam-workbench/src/widgets/registry.ts +266 -1
  249. package/packages/catalog/README.md +69 -0
  250. package/packages/catalog/assist/questions.json +205 -0
  251. package/packages/catalog/assist/rules.json +149 -0
  252. package/packages/catalog/doctor/toolchains.json +12 -0
  253. package/packages/catalog/evidence/agentsam-abs.json +76 -0
  254. package/packages/catalog/evidence/agentsam-analytics.json +59 -0
  255. package/packages/catalog/evidence/agentsam-assets-core.json +38 -0
  256. package/packages/catalog/evidence/agentsam-brand.json +73 -0
  257. package/packages/catalog/evidence/agentsam-browser-surface.json +42 -0
  258. package/packages/catalog/evidence/agentsam-campaign.json +48 -0
  259. package/packages/catalog/evidence/agentsam-cloudflare-images.json +38 -0
  260. package/packages/catalog/evidence/agentsam-content-studio.json +42 -0
  261. package/packages/catalog/evidence/agentsam-content.json +70 -0
  262. package/packages/catalog/evidence/agentsam-contracts.json +92 -0
  263. package/packages/catalog/evidence/agentsam-database-editor.json +82 -0
  264. package/packages/catalog/evidence/agentsam-desktop-shell.json +56 -0
  265. package/packages/catalog/evidence/agentsam-docs-theme.json +35 -0
  266. package/packages/catalog/evidence/agentsam-errors.json +42 -0
  267. package/packages/catalog/evidence/agentsam-goap.json +52 -0
  268. package/packages/catalog/evidence/agentsam-hooks.json +100 -0
  269. package/packages/catalog/evidence/agentsam-ide.json +64 -0
  270. package/packages/catalog/evidence/agentsam-identity.json +91 -0
  271. package/packages/catalog/evidence/agentsam-key-manager.json +46 -0
  272. package/packages/catalog/evidence/agentsam-knowledge.json +42 -0
  273. package/packages/catalog/evidence/agentsam-loading-scene.json +54 -0
  274. package/packages/catalog/evidence/agentsam-merch.json +68 -0
  275. package/packages/catalog/evidence/agentsam-nav.json +63 -0
  276. package/packages/catalog/evidence/agentsam-queue-control.json +60 -0
  277. package/packages/catalog/evidence/agentsam-rapid-rust.json +46 -0
  278. package/packages/catalog/evidence/agentsam-repository.json +56 -0
  279. package/packages/catalog/evidence/agentsam-scoring.json +39 -0
  280. package/packages/catalog/evidence/agentsam-sections.json +52 -0
  281. package/packages/catalog/evidence/agentsam-settings.json +58 -0
  282. package/packages/catalog/evidence/agentsam-shell-kit.json +56 -0
  283. package/packages/catalog/evidence/agentsam-vault.json +61 -0
  284. package/packages/catalog/evidence/agentsam-work-graph.json +51 -0
  285. package/packages/catalog/evidence/agentsam-work.json +64 -0
  286. package/packages/catalog/evidence/agentsam-workbench.json +96 -0
  287. package/packages/catalog/evidence/analytics-ui.json +43 -0
  288. package/packages/catalog/evidence/cms-runtime.json +49 -0
  289. package/packages/catalog/evidence/copro-editor.json +42 -0
  290. package/packages/catalog/evidence/copro-media.json +42 -0
  291. package/packages/catalog/evidence/copro-project.json +42 -0
  292. package/packages/catalog/evidence/copro-proof.json +48 -0
  293. package/packages/catalog/evidence/copro-provider-contracts.json +40 -0
  294. package/packages/catalog/evidence/copro-render.json +40 -0
  295. package/packages/catalog/evidence/copro-storage.json +44 -0
  296. package/packages/catalog/evidence/copro-templates.json +42 -0
  297. package/packages/catalog/evidence/copro-timeline.json +44 -0
  298. package/packages/catalog/evidence/copro-ui.json +52 -0
  299. package/packages/catalog/evidence/fnf-theme.json +34 -0
  300. package/packages/catalog/evidence/theme-contract.json +34 -0
  301. package/packages/catalog/evidence/theme-cypress.json +41 -0
  302. package/packages/catalog/evidence/theme-ember.json +41 -0
  303. package/packages/catalog/evidence/theme-forge.json +41 -0
  304. package/packages/catalog/evidence/theme-grove.json +41 -0
  305. package/packages/catalog/evidence/theme-harbor.json +41 -0
  306. package/packages/catalog/evidence/theme-heuristic.json +50 -0
  307. package/packages/catalog/evidence/theme-iasf.json +48 -0
  308. package/packages/catalog/evidence/theme-resolve.json +41 -0
  309. package/packages/catalog/evidence/theme-scenes.json +68 -0
  310. package/packages/catalog/evidence/theme-summit.json +41 -0
  311. package/packages/catalog/evidence/theme-violet.json +41 -0
  312. package/packages/catalog/generated/packages.json +2649 -0
  313. package/packages/catalog/topics/runtime.json +33 -0
  314. package/packages/connectors/cfoa/agentsam.package.json +46 -0
  315. package/packages/connectors/cfoa/package.json +1 -1
  316. package/packages/connectors/cfoa/src/capabilities.js +22 -2
  317. package/packages/connectors/cfoa/src/families/analytics-sql.js +44 -0
  318. package/packages/connectors/cfoa/src/families/basin.js +30 -0
  319. package/packages/connectors/cfoa/src/index.js +3 -0
  320. package/packages/connectors/cfoa/src/routes.js +11 -2
  321. package/packages/connectors/cfoa/test/analytics-sql.test.mjs +27 -0
  322. package/packages/connectors/cfoa/test/basin.test.mjs +30 -0
  323. package/packages/heuristic-theme/README.md +14 -0
  324. package/packages/heuristic-theme/agentsam.package.json +42 -0
  325. package/packages/heuristic-theme/contracts/README.md +15 -0
  326. package/packages/heuristic-theme/contracts/block.schema.json +33 -0
  327. package/packages/heuristic-theme/contracts/header-presets.json +20 -0
  328. package/packages/heuristic-theme/contracts/page.schema.json +18 -0
  329. package/packages/heuristic-theme/contracts/preset.schema.json +18 -0
  330. package/packages/heuristic-theme/contracts/section.schema.json +83 -0
  331. package/packages/heuristic-theme/package.json +13 -3
  332. package/packages/heuristic-theme/presets/fuel-free-time/assets.json +8 -0
  333. package/packages/heuristic-theme/presets/fuel-free-time/globals/shell.json +30 -0
  334. package/packages/heuristic-theme/presets/fuel-free-time/pages/about.json +4 -0
  335. package/packages/heuristic-theme/presets/fuel-free-time/pages/cart.json +4 -0
  336. package/packages/heuristic-theme/presets/fuel-free-time/pages/collection.json +4 -0
  337. package/packages/heuristic-theme/presets/fuel-free-time/pages/collections.json +4 -0
  338. package/packages/heuristic-theme/presets/fuel-free-time/pages/community.json +4 -0
  339. package/packages/heuristic-theme/presets/fuel-free-time/pages/home.json +92 -0
  340. package/packages/heuristic-theme/presets/fuel-free-time/pages/order-confirmation.json +39 -0
  341. package/packages/heuristic-theme/presets/fuel-free-time/pages/product.json +4 -0
  342. package/packages/heuristic-theme/presets/fuel-free-time/pages/shop.json +9 -0
  343. package/packages/heuristic-theme/presets/fuel-free-time/preset.json +23 -0
  344. package/packages/heuristic-theme/presets/fuel-free-time/tokens.json +23 -0
  345. package/packages/heuristic-theme/storefront/about.html +1103 -0
  346. package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/GENERATED-ASSETS.md +15 -0
  347. package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/earned-hours-hero.webp +0 -0
  348. package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/essentials.webp +0 -0
  349. package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/masters.webp +0 -0
  350. package/packages/heuristic-theme/storefront/cart.html +64 -0
  351. package/packages/heuristic-theme/storefront/collaborate.html +58 -0
  352. package/packages/heuristic-theme/storefront/collection.html +10 -0
  353. package/packages/heuristic-theme/storefront/collections.html +10 -0
  354. package/packages/heuristic-theme/storefront/community.html +921 -0
  355. package/packages/heuristic-theme/storefront/css/content-page.css +199 -0
  356. package/packages/heuristic-theme/storefront/css/global-footer.css +401 -0
  357. package/packages/heuristic-theme/storefront/css/heuristic-theme.css +81 -0
  358. package/packages/heuristic-theme/storefront/css/page-composer.css +76 -0
  359. package/packages/heuristic-theme/storefront/css/shop-hero.css +230 -0
  360. package/packages/heuristic-theme/storefront/css/store-cart.css +422 -0
  361. package/packages/heuristic-theme/storefront/css/store-collections.css +36 -0
  362. package/packages/heuristic-theme/storefront/css/store-pdp.css +459 -0
  363. package/packages/heuristic-theme/storefront/css/store-shell.css +474 -0
  364. package/packages/heuristic-theme/storefront/css/store-shop.css +117 -0
  365. package/packages/heuristic-theme/storefront/home.html +25 -0
  366. package/packages/heuristic-theme/storefront/js/cms-hydrate.js +395 -0
  367. package/packages/heuristic-theme/storefront/js/cms-structure.js +85 -0
  368. package/packages/heuristic-theme/storefront/js/fnf-attribution.js +98 -0
  369. package/packages/heuristic-theme/storefront/js/fnf-head.js +47 -0
  370. package/packages/heuristic-theme/storefront/js/fnf-newsletter.js +64 -0
  371. package/packages/heuristic-theme/storefront/js/global-footer.js +277 -0
  372. package/packages/heuristic-theme/storefront/js/heuristic-runtime.js +78 -0
  373. package/packages/heuristic-theme/storefront/js/order-confirmation.js +109 -0
  374. package/packages/heuristic-theme/storefront/js/page-composer.js +310 -0
  375. package/packages/heuristic-theme/storefront/js/shop-hero.js +85 -0
  376. package/packages/heuristic-theme/storefront/js/store-cart.js +276 -0
  377. package/packages/heuristic-theme/storefront/js/store-catalog.js +140 -0
  378. package/packages/heuristic-theme/storefront/js/store-collections.js +45 -0
  379. package/packages/heuristic-theme/storefront/js/store-product.js +287 -0
  380. package/packages/heuristic-theme/storefront/js/store-shell.js +449 -0
  381. package/packages/heuristic-theme/storefront/order-confirmation.html +30 -0
  382. package/packages/heuristic-theme/storefront/policies.html +43 -0
  383. package/packages/heuristic-theme/storefront/product.html +27 -0
  384. package/packages/heuristic-theme/storefront/shop.html +113 -0
  385. package/packages/heuristic-theme/storefront/terms.html +45 -0
  386. package/packages/heuristic-theme/test/commerce-portability.test.mjs +16 -0
  387. package/packages/heuristic-theme/theme.json +55 -0
  388. package/packages/heuristic-theme/theme.schema.json +32 -0
  389. package/packages/identity/agentsam.package.json +42 -0
  390. package/packages/identity/package.json +1 -1
  391. package/packages/identity/src/oauth/iam-platform.js +4 -2
  392. package/packages/identity/src/recovery/password-reset.js +8 -8
  393. package/packages/identity/src/server/worker-router.js +63 -1
  394. package/packages/identity/tests/lane1-packed-consumer.test.mjs +12 -1
  395. package/packages/identity/tests/password-enrollment.test.mjs +82 -0
  396. package/packages/identity/tests/password-reset.test.mjs +43 -0
  397. package/packages/providers/completeful/package.json +1 -1
  398. package/packages/theme-cypress/agentsam.package.json +42 -0
  399. package/packages/theme-cypress/package.json +1 -1
  400. package/packages/theme-ember/agentsam.package.json +42 -0
  401. package/packages/theme-ember/package.json +1 -1
  402. package/packages/theme-forge/agentsam.package.json +42 -0
  403. package/packages/theme-forge/package.json +1 -1
  404. package/packages/theme-grove/agentsam.package.json +42 -0
  405. package/packages/theme-grove/package.json +1 -1
  406. package/packages/theme-harbor/agentsam.package.json +42 -0
  407. package/packages/theme-harbor/package.json +1 -1
  408. package/packages/theme-resolve/agentsam.package.json +42 -0
  409. package/packages/theme-resolve/package.json +1 -1
  410. package/packages/theme-scenes/agentsam.package.json +42 -0
  411. package/packages/theme-scenes/package.json +1 -1
  412. package/packages/theme-summit/agentsam.package.json +42 -0
  413. package/packages/theme-summit/package.json +1 -1
  414. package/packages/theme-violet/agentsam.package.json +42 -0
  415. package/packages/theme-violet/package.json +1 -1
  416. package/packages/work-graph/agentsam.package.json +42 -0
  417. package/packages/work-graph/package.json +1 -1
  418. package/protocol/apps/agentsam.app.v1.schema.json +27 -1
  419. package/protocol/cad/README.md +77 -0
  420. package/protocol/cad/cad.project.v2.schema.json +451 -0
  421. package/protocol/cad/v2/core/artifact-receipt.schema.json +126 -0
  422. package/protocol/cad/v2/core/coordinate-system.schema.json +364 -0
  423. package/protocol/cad/v2/core/geometry-constraint.schema.json +136 -0
  424. package/protocol/cad/v2/core/geometry-entity.schema.json +73 -0
  425. package/protocol/cad/v2/core/geometry-feature.schema.json +115 -0
  426. package/protocol/cad/v2/core/geometry-relationship.schema.json +67 -0
  427. package/protocol/cad/v2/core/project-revision.schema.json +111 -0
  428. package/protocol/cad/v2/core/topology-reference.schema.json +80 -0
  429. package/protocol/cad/v2/intent/design-decision.schema.json +126 -0
  430. package/protocol/cad/v2/intent/design-option.schema.json +88 -0
  431. package/protocol/cad/v2/interchange/ifc-mapping.schema.json +145 -0
  432. package/protocol/cad/v2/interchange/native-document.schema.json +130 -0
  433. package/protocol/cad/v2/interchange/reference-model.schema.json +141 -0
  434. package/protocol/cad/v2/modules/architecture.v1.schema.json +278 -0
  435. package/protocol/cad/v2/modules/landscape.v1.schema.json +157 -0
  436. package/protocol/cad/v2/modules/mechanical.v1.schema.json +325 -0
  437. package/protocol/cad/v2/modules/parametric.v1.schema.json +89 -0
  438. package/protocol/cad/v2/modules/product-design.v1.schema.json +178 -0
  439. package/protocol/cad/v2/modules/robotics.v1.schema.json +246 -0
  440. package/protocol/cad/v2/presentation/camera-path.schema.json +143 -0
  441. package/protocol/cad/v2/presentation/drawing.schema.json +162 -0
  442. package/protocol/cad/v2/presentation/production.schema.json +166 -0
  443. package/protocol/cad/v2/presentation/scene.schema.json +198 -0
  444. package/protocol/cad/v2/presentation/sheet.schema.json +254 -0
  445. package/protocol/cad/v2/presentation/view.schema.json +190 -0
  446. package/protocol/cad/v2/presentation/walkthrough.schema.json +199 -0
  447. package/protocol/cad/v2/schema-pack.manifest.json +189 -0
  448. package/protocol/cad/v2/validation/deliverable-manifest.schema.json +199 -0
  449. package/protocol/cad/v2/validation/result.schema.json +141 -0
  450. package/protocol/capabilities/evidence-manifest.schema.json +404 -0
  451. package/protocol/capabilities/manifest.json +101 -10
  452. package/protocol/capabilities/repository-crawl-input.schema.json +17 -0
  453. package/protocol/capabilities/repository-crawl-result.schema.json +79 -0
  454. package/protocol/capabilities/repository-mine-input.schema.json +27 -0
  455. package/protocol/capabilities/repository-mine-result.schema.json +51 -0
  456. package/protocol/capabilities/site-index.schema.json +15 -0
  457. package/protocol/capabilities/site-scrape-evidence-manifest.schema.json +114 -0
  458. package/protocol/capabilities/site-scrape-input.schema.json +90 -0
  459. package/protocol/capabilities/site-scrape-project-authority.schema.json +15 -0
  460. package/protocol/capabilities/site-scrape-result.schema.json +198 -0
  461. package/protocol/capabilities/site-scrape-worker-job.schema.json +18 -0
  462. package/protocol/errors/error-catalog.json +12 -0
  463. package/protocol/governance/distribution-roadmap.v1.json +335 -0
  464. package/protocol/governance/github-labels.v1.json +232 -0
  465. package/protocol/models/workers-ai-curated.mjs +14 -0
  466. package/protocol/plugins/agentsam.plugin-evidence-bundle.v1.schema.json +55 -0
  467. package/protocol/plugins/agentsam.plugin-product.v1.schema.json +227 -0
  468. package/protocol/plugins/agentsam.plugin-quality-evidence.v1.schema.json +47 -0
  469. package/protocol/plugins/agentsam.plugin-quality-receipt.v1.schema.json +160 -0
  470. package/protocol/ui/agentsam.ui-quality.v1.schema.json +31 -0
  471. package/python/agentsam_sdk/__init__.py +4 -0
  472. package/python/agentsam_sdk/client.py +202 -0
  473. package/python/agentsam_sdk/errors/vocabulary.py +10 -0
  474. package/python/tests/test_public_client.py +82 -0
  475. package/services/cad/blender/adapter.py +0 -0
  476. package/services/cad/occt/CMakeLists.txt +43 -0
  477. package/services/cad/occt/README.md +38 -0
  478. package/services/cad/occt/main.cpp +95 -0
  479. package/services/cad/server.py +103 -21
  480. package/skills/README.md +6 -0
  481. package/skills/agentsam-cad/SKILL.md +59 -0
  482. package/skills/agentsam-plan-and-goap/SKILL.md +77 -0
  483. package/skills/agentsam-repo-recon/SKILL.md +63 -0
  484. package/skills/agentsam-sam-operations/SKILL.md +71 -0
  485. package/skills/agentsam-sdk-orientation/SKILL.md +75 -0
  486. package/skills/catalog.json +85 -0
  487. package/src/AgentSam.js +2 -0
  488. package/src/agent/capability-adapter.js +207 -9
  489. package/src/agent/index.js +1 -0
  490. package/src/agent/intent.js +12 -0
  491. package/src/agent/project-discovery.js +47 -0
  492. package/src/agent/project-resources.js +157 -0
  493. package/src/agent/responses-runner.js +64 -12
  494. package/src/capabilities/cloudflare-d1-provision.js +48 -0
  495. package/src/capabilities/knowledge-operations.js +87 -0
  496. package/src/capabilities/local-sqlite-resources.js +124 -0
  497. package/src/capabilities/machine-inspect.js +28 -0
  498. package/src/capabilities/mcp-d1-bridge.js +98 -0
  499. package/src/capabilities/plan-operation-ids.js +6 -0
  500. package/src/capabilities/plan-operations.js +85 -0
  501. package/src/capabilities/repository-awareness.js +52 -0
  502. package/src/capabilities/test-run.js +10 -0
  503. package/src/capabilities/workspace-files.js +125 -0
  504. package/src/cli/command-catalog.js +16 -3
  505. package/src/cli.js +71 -116
  506. package/src/commands/app.js +43 -44
  507. package/src/commands/autorag-node-api.js +96 -0
  508. package/src/commands/autorag.js +178 -17
  509. package/src/commands/catalog-doctor.js +52 -0
  510. package/src/commands/catalog.js +151 -0
  511. package/src/commands/cheat-sheet.js +92 -63
  512. package/src/commands/cloudflare.js +64 -2
  513. package/src/commands/codebaseindex.js +2 -2
  514. package/src/commands/db.js +17 -0
  515. package/src/commands/goap-world.js +4 -0
  516. package/src/commands/interactive.js +21 -1
  517. package/src/commands/knowledge.js +8 -3
  518. package/src/commands/machine-binary.js +3 -2
  519. package/src/commands/machine.js +66 -15
  520. package/src/commands/mcp.js +98 -8
  521. package/src/commands/plan-ledger.js +60 -22
  522. package/src/commands/plan.js +3 -3
  523. package/src/commands/plugins.js +34 -2
  524. package/src/commands/product.js +21 -0
  525. package/src/commands/rust.js +4 -1
  526. package/src/commands/sam-evidence.js +87 -0
  527. package/src/commands/sam-media.js +78 -0
  528. package/src/commands/sam.js +117 -0
  529. package/src/commands/shell.js +97 -8
  530. package/src/commands/site-scrape.js +9 -0
  531. package/src/context/resolve.js +5 -1
  532. package/src/index.js +13 -0
  533. package/src/knowledge/d1-schema.js +65 -0
  534. package/src/knowledge/engine.js +55 -15
  535. package/src/knowledge/source.js +8 -0
  536. package/src/knowledge/store-discovery.js +9 -3
  537. package/src/knowledge/stores/sqlite.js +8 -0
  538. package/src/knowledge/wrangler-binding-discovery.js +43 -0
  539. package/src/lib/agent-instructions.js +29 -5
  540. package/src/lib/auth.js +46 -7
  541. package/src/lib/cad/delivery-profiles.d.ts +7 -0
  542. package/src/lib/cad/delivery-profiles.js +122 -0
  543. package/src/lib/cad/docker-executor.js +1 -1
  544. package/src/lib/cad/editable-project-contract.js +75 -0
  545. package/src/lib/cad/index.js +6 -0
  546. package/src/lib/cad/occt-native-provider.mjs +138 -0
  547. package/src/lib/cad/openscad.js +13 -1
  548. package/src/lib/cad/production-operations.d.ts +8 -0
  549. package/src/lib/cad/production-operations.js +74 -0
  550. package/src/lib/cad/project-cli.d.ts +1 -1
  551. package/src/lib/cad/project-contract.js +1 -1
  552. package/src/lib/cad/project-runtime.d.ts +1 -1
  553. package/src/lib/cad/project-runtime.js +48 -3
  554. package/src/lib/cad/project-tools.js +24 -0
  555. package/src/lib/cad/project-v2.d.ts +48 -0
  556. package/src/lib/cad/project-v2.js +288 -0
  557. package/src/lib/cad-docker.js +48 -4
  558. package/src/lib/dockerize.js +3 -3
  559. package/src/lib/execution-approvals.js +29 -3
  560. package/src/local-fs/capability.js +5 -0
  561. package/src/local-lsp/host.js +2 -0
  562. package/src/local-pty/server.js +21 -0
  563. package/src/mcp/client.js +2 -1
  564. package/src/mcp/oauth-connection.js +109 -0
  565. package/src/models/inventory-core.js +2 -10
  566. package/src/plugins/index.js +13 -0
  567. package/src/plugins/productization.js +348 -0
  568. package/src/providers/gemini-generate-content.js +18 -0
  569. package/src/registry/generated/inventory.json +4266 -0
  570. package/src/registry/index.js +96 -0
  571. package/src/registry/turn-one.js +45 -0
  572. package/src/sam/adapters/local-media-store.js +71 -0
  573. package/src/sam/adapters/local-script-runtime.js +122 -0
  574. package/src/sam/adapters/local-script-store.js +103 -0
  575. package/src/sam/adapters/object-media-store.js +89 -0
  576. package/src/sam/adapters/workspace-media.js +78 -0
  577. package/src/sam/artifacts/render.js +94 -0
  578. package/src/sam/bridge/stdio.mjs +59 -0
  579. package/src/sam/client.js +269 -22
  580. package/src/sam/index.js +30 -1
  581. package/src/sam/local-execution.js +8 -0
  582. package/src/sam/media/environment.js +96 -0
  583. package/src/sam/model-adapter.js +45 -0
  584. package/src/sam/operation-packs/generated-v2/background.js +54 -0
  585. package/src/sam/operation-packs/generated-v2/catalog.js +1746 -0
  586. package/src/sam/operation-packs/generated-v2/generated-execution-policies.json +401 -0
  587. package/src/sam/operation-packs/generated-v2/generated-tool-descriptors.json +1352 -0
  588. package/src/sam/operation-packs/generated-v2/glb.js +41 -0
  589. package/src/sam/operation-packs/generated-v2/inneranimalmedia-provider.js +24 -0
  590. package/src/sam/operation-packs/generated-v2/operation-pack.js +126 -0
  591. package/src/sam/operation-packs/generated-v2/raster.js +140 -0
  592. package/src/sam/operation-packs/generated-v2/scripts.js +63 -0
  593. package/src/sam/operation-packs/generated-v2/sdk-adapter.js +9 -0
  594. package/src/sam/operation-packs/generated-v2/test/alias-runtime.test.mjs +51 -0
  595. package/src/sam/operation-packs/generated-v2/test/background.test.mjs +19 -0
  596. package/src/sam/operation-packs/generated-v2/test/glb.test.mjs +19 -0
  597. package/src/sam/operation-packs/generated-v2/test/raster.test.mjs +38 -0
  598. package/src/sam/operation-packs/generated-v2/test/real-asset-bindings.test.mjs +74 -0
  599. package/src/sam/operation-packs/generated-v2/test/registration.test.mjs +65 -0
  600. package/src/sam/operation-packs/generated-v2/test/scripts.test.mjs +32 -0
  601. package/src/sam/operation-packs/generated-v2/test/superbash-client-integration.test.mjs +215 -0
  602. package/src/sam/operation-packs/generated-v2/tool-types.d.ts +53 -0
  603. package/src/sam/operations/artifact-render.js +13 -0
  604. package/src/sam/operations/repository-inspect.js +12 -2
  605. package/src/sam/operations/robotics.js +45 -0
  606. package/src/sam/os.js +117 -0
  607. package/src/sam/packs/authoring/README.md +13 -0
  608. package/src/sam/packs/authoring/index.js +108 -0
  609. package/src/sam/packs/cad/http-ports.js +55 -0
  610. package/src/sam/packs/cad/index.js +158 -0
  611. package/src/sam/packs/cad/model-tools.js +22 -0
  612. package/src/sam/packs/cad/modes.js +87 -0
  613. package/src/sam/packs/cms/aliases.js +1 -0
  614. package/src/sam/packs/cms/contracts.js +1 -0
  615. package/src/sam/packs/cms/machine.js +6 -0
  616. package/src/sam/packs/cms/node.js +1 -0
  617. package/src/sam/packs/core.js +27 -0
  618. package/src/sam/packs/evidence/README.md +65 -0
  619. package/src/sam/packs/evidence/compare.js +98 -0
  620. package/src/sam/packs/evidence/contract.js +56 -0
  621. package/src/sam/packs/evidence/derive.js +59 -0
  622. package/src/sam/packs/evidence/driver-blender.js +96 -0
  623. package/src/sam/packs/evidence/driver-playwright.js +91 -0
  624. package/src/sam/packs/evidence/exporter-copro.js +70 -0
  625. package/src/sam/packs/evidence/facts.js +37 -0
  626. package/src/sam/packs/evidence/host-local.js +74 -0
  627. package/src/sam/packs/evidence/index.js +494 -0
  628. package/src/sam/packs/evidence/media.js +44 -0
  629. package/src/sam/packs/evidence/naming.js +67 -0
  630. package/src/sam/packs/evidence/normalize.js +117 -0
  631. package/src/sam/packs/evidence/review-page.js +102 -0
  632. package/src/sam/packs/evidence/screenplay.js +34 -0
  633. package/src/sam/packs/evidence/seal.js +55 -0
  634. package/src/sam/packs/evidence/serve.js +74 -0
  635. package/src/sam/packs/evidence/store.js +93 -0
  636. package/src/sam/packs/evidence/viewports.js +23 -0
  637. package/src/sam/robotics/chess-adapter.js +14 -0
  638. package/src/sam/robotics/franka.js +44 -0
  639. package/src/sam/robotics/index.js +4 -0
  640. package/src/sam/robotics/receipt.js +21 -0
  641. package/src/sam/robotics/world.js +57 -0
  642. package/src/sam/seed.js +10 -40
  643. package/src/sam/shell-host.js +120 -0
  644. package/src/sam/validation.js +40 -0
  645. package/src/security/local-vault.js +6 -1
  646. package/src/ui/cli/help.js +6 -0
  647. package/templates/clay/clay-blueprint-template.html +481 -0
  648. package/templates/clay/clay-case-study-blueprint.html +269 -0
  649. package/templates/clay/conversion-showcase-section.html +534 -0
  650. package/templates/clay/enhancing-conversion-section.html +141 -0
  651. package/templates/clay/nuant-wireframe.html +117 -0
@@ -0,0 +1,81 @@
1
+ # Runbook for the 59-package SDK
2
+
3
+ Assuming:
4
+
5
+ ```bash
6
+ REPO="$(pwd)"
7
+ KIT="$REPO"
8
+ ```
9
+
10
+ ## 1. Learn what your local tooling does
11
+
12
+ ```bash
13
+ python3 "$KIT/scripts/catalog/doctor_remediation.py" --teach
14
+ ```
15
+
16
+ This is the behavior to reproduce in the packaged `agentsam doctor`.
17
+
18
+ ## 2. Inventory packages
19
+
20
+ ```bash
21
+ python3 "$KIT/scripts/catalog/inventory_packages.py" --repo "$REPO"
22
+ ```
23
+
24
+ ## 3. Collect factual evidence for all packages
25
+
26
+ ```bash
27
+ python3 "$KIT/scripts/catalog/collect_package_evidence.py" --repo "$REPO"
28
+ ```
29
+
30
+ This writes evidence JSON under `packages/catalog/evidence/`.
31
+
32
+ ## 4. Preview all 57 manifest drafts
33
+
34
+ ```bash
35
+ python3 "$KIT/scripts/catalog/draft_package_manifests.py" \
36
+ --repo "$REPO" \
37
+ --dry-run
38
+ ```
39
+
40
+ ## 5. On the feature branch, create the missing drafts
41
+
42
+ ```bash
43
+ python3 "$KIT/scripts/catalog/draft_package_manifests.py" \
44
+ --repo "$REPO" \
45
+ --write
46
+ ```
47
+
48
+ Every generated file remains `catalog_status: needs-review`.
49
+ Nothing becomes a polished/public product definition merely because a script ran.
50
+
51
+ ## 6. See the review queue
52
+
53
+ ```bash
54
+ python3 "$KIT/scripts/catalog/review_queue.py" --repo "$REPO"
55
+ ```
56
+
57
+ ## 7. Test the richer software-decision flow
58
+
59
+ After copying `packages/catalog/assist/*.json` into the repo:
60
+
61
+ ```bash
62
+ python3 "$KIT/scripts/catalog/simulate_assist.py" --repo "$REPO"
63
+ ```
64
+
65
+ The real product implementation belongs in the AgentSam JS/TS CLI.
66
+
67
+ ## 8. Build the aggregate after review
68
+
69
+ ```bash
70
+ python3 "$KIT/scripts/catalog/build_catalog.py" --repo "$REPO"
71
+ ```
72
+
73
+ Release/public gate:
74
+
75
+ ```bash
76
+ python3 "$KIT/scripts/catalog/build_catalog.py" \
77
+ --repo "$REPO" \
78
+ --require-classified
79
+ ```
80
+
81
+ Do not expect `--require-classified` to pass until the package review work is actually complete.
@@ -0,0 +1,107 @@
1
+ # SAM + InnerAnimal Experience — swarm dispatch cards
2
+
3
+ **Status:** PROPOSED agent job definitions. **Do not start these tasks solely because this document exists.**
4
+ **Parent workflow:** docs/plans/SAM_MACHINERY_TO_EXPERIENCE_2026-10-15.md
5
+ **Reference fixture:** docs/reference/INNERANIMALMEDIA_EXPERIENCE_ACCEPTANCE_2026-10-15.md
6
+ **Instructions:** AGENTSAM.md + .agentsamrules + docs/architecture/SAM_KERNEL.md + relevant package contract.
7
+
8
+ ## Dispatcher rules
9
+
10
+ - Integration lead first verifies current origin/main, all worktrees/PRs, outstanding intentional changes, and authoritative package/branch owner; do not overwrite parallel agents' work.
11
+ - Every agent gets a separate working tree/branch and base SHA; no direct write on main, no forced branch cleanup, no unstated architecture change, no publish/deploy unless authorized.
12
+ - First round starts **S0 read-only**, **S1 tests/contract audit**, and **S2 knowledge evidence discovery**; actual SAM mutation follows owner review and non-overlap.
13
+ - Only the designated contract owner may edit src/sam types/schemas/registries; other agents document required changes and depend on its accepted PR.
14
+ - The reference brand case is never copied as data into the portable SDK.
15
+ - Every card requires final result: OBSERVED / PROPOSED / IMPLEMENTED / VERIFIED / BLOCKED, named owner, evidence, test command, changed paths, SHA, reason if blocked.
16
+
17
+ ## A0 — Source authority and integration captain
18
+
19
+ **Scope:** docs, plans, inventory, evidence only; no code edits initially.
20
+
21
+ **Brief:** Establish the exact current SDK and site revisions; inspect active worktrees and overlapping PRs, protected creative sources, the founder brand-guide authority, the packaged vs globally installed CLI, and the real work-globe scene origin/preview/deployed relations. Produce an ownership map, artifact manifest and non-overlapping assignment matrix.
22
+
23
+ **Exit:** One source-of-truth path per subsystem; baseline evidence; zero source/asset mutation; gate approval for A1/A2 implementation.
24
+
25
+ ## A1 — SAM kernel correctness owner
26
+
27
+ **Scope:** src/sam/os.js, client.js, define.js, result.js, registry.js, model-adapter.js plus existing SAM schemas/contracts (only this agent changes those).
28
+
29
+ **Brief:** Reproduce the prior kernel audit defects on **current** main: incorrect repository default root, direct privileged invocation without universal policy, missing core runtime schema enforcement, hardcoded lane/model/usage receipt values, non-atomic partial registration, and mismatched schema hydration/discovery. Build a compatibility-first fix through the existing runtime contract, not another kernel or database.
30
+
31
+ **Tests:** negative denial; invalid input/output; remote-only mock must not report local; config cwd vs process cwd; atomic install; valid operation discovery from CLI and model adapter; existing SAM kernel/CMS/GOAP tests.
32
+
33
+ **Exit:** Fail-safe execution and truthful metadata through all supported entrypoints. No unexpected public API break or provider spend.
34
+
35
+ ## A2 — Repository and warm-start evidence owner
36
+
37
+ **Scope:** packages/agentsam-repository, native/agentsam-machine adapters, src/knowledge existing engine; no src/sam registry change without A1 owner integration.
38
+
39
+ **Brief:** Trace real repository identity, Merkle snapshots, native crawl, Knowledge index, existing historian and AutoRAG. Prototype **scoped** source-aware retrieval with content hashes and truthful freshness. Evaluate multiple checkout branches plus a fresh unrelated repo and missing hosted index. Do not create an independent universal data store.
40
+
41
+ **Tests:** cold vs warm scan timing; deterministic repeat hashes; changed-file invalidation; query with bounded context; no cloud dependencies for local structural retrieval; no hallucinated ready status.
42
+
43
+ **Exit:** A previously indexed symbol and decision can be recalled on a second session with evidence; remote index remains optional.
44
+
45
+ ## A3 — GOAP/Plan/Work execution bridge owner
46
+
47
+ **Scope:** agentsam-goap, existing Plan ledger, Work Graph projections, existing SAM public invocation contract; wait for A1's accepted dispatcher contract.
48
+
49
+ **Brief:** With a *real but safe* project task, map grounded state to packaged GOAP action facts, translate to current A* solver, materialize an approved Plan action with dependencies, run an authorized bound operation, record receipt, verify observed result and update blackboard. Avoid any second ticket or GOAP database.
50
+
51
+ **Tests:** failed preconditions, approval denial, stale index, interrupted run, uncertain write not repeated, task reopened from ledger.
52
+
53
+ **Exit:** One end-to-end authorized and recoverable workflow with shared task/goal/repo/run identities.
54
+
55
+ ## B0 — Founder-directed Brand evidence researcher
56
+
57
+ **Scope:** read-only brand guide/source archives, agentsam-brand Scan/BrandPack/contract APIs, Assets Core; **no edits to founder guide or original media**.
58
+
59
+ **Brief:** Trace decisions before prompts. Distinguish approved company identity, active designs, historical identity, experiments, donor research and possible assets. Assess whether Brand can scaffold positioning, story, Atlas journey and visual system without making colors or provider defaults authoritative. Map missing behaviors to existing owners.
60
+
61
+ **Tests:** mixed-archive provenance; source hash protection; same symbol in historical and active media not silently promoted; founder veto preserved; output readable by the user.
62
+
63
+ **Exit:** Reviewable evidence packet and minimal implementation gaps. **Do not generate a replacement brand from scratch.**
64
+
65
+ ## B1 — Original scene and interactive source auditor
66
+
67
+ **Scope:** inneranimalmedia/packages/iam-section-work-globe originals, viewer, embeds; separate experimental branches for derived work. No changed original byte.
68
+
69
+ **Brief:** Inspect source and deployed work-page behavior: globe/halo, five-card sequence, scroll progress, source-fidelity, viewer controls, responsive, typography contrast, focus/keyboard, reduced motion, WebGL lifecycle. Record which UI controls are viewer-only and whether CMS edit/save/preview/publish is truly wired.
70
+
71
+ **Tests:** source SHA preservation, original frame build/check, scene unit tests, browser screenshots/video across meaningful viewports, offscreen/pause behavior.
72
+
73
+ **Exit:** Specific defects and one proposed narrative/interaction refinement tied to a real visitor need. Do not create a new random sculptural object or broad effects gallery.
74
+
75
+ ## B2 — Experience designer + asset/CMS integrator
76
+
77
+ **Start condition:** A1/A2/A3 integration gate accepted; B0 founder direction approved; B1 original audited.
78
+
79
+ **Scope:** authorized creative derivatives, existing CMS/theme sections, Brand/Assets/CoPro/Content hosts.
80
+
81
+ **Brief:** Build one full scene identity (e.g. proposed SCN-003) from the approved Atlas: intent -> page/journey -> wireflow -> composed scene -> actual editable UI -> tests and deployment/preview evidence. Derive SVG/icon/asset variants from approved masters through Assets Core where relevant. Preserve brand voice, non-default tenant storage, actual source lineage and meaningful responsive states.
82
+
83
+ **Tests:** actual CMS install/select -> edit -> save -> preview -> publish -> reopen across clean environment; reduced-motion, keyboard/mobile, assets from authoritative store; no production publish without approval.
84
+
85
+ **Exit:** A source-faithful, art-directed and genuinely functional vertical slice, not just another mockup.
86
+
87
+ ## Q0 — Independent acceptance reviewer
88
+
89
+ **Scope:** tests, visual/behavioral review, source hash verification, packaging/portability. This agent does not supply self-approval for its own implementation.
90
+
91
+ **Brief:** Compare each job against its written acceptance and current source. Evaluate original art integrity, proof of execution, correct rights/identity, no fabricated outcomes, ability to use the tool as a customer, architecture reuse in an unrelated repo, responsive/reduced-motion behavior and correct release state.
92
+
93
+ **Exit:** A signed-off or rejected evidence report, linked to exact commits and reproducible test commands. Issues return to the owning agent; QA must not silently improve visual design by changing brand source.
94
+
95
+ ## Standard handoff format
96
+
97
+ **Task ID / Owner / Base SHA / Branch**
98
+ **Sources consulted / Authority and approvals**
99
+ **Existing subsystem reused / No duplicate authority introduced**
100
+ **Changed paths and commits**
101
+ **Observed results / Gaps / Screenshots or preview**
102
+ **Tests run (exact commands and exit status)**
103
+ **Asset fingerprint / Receipt / Work item evidence**
104
+ **Rollback / Risks / Prerequisites for next task**
105
+ **Status: NOT STARTED | RESEARCHED | PROPOSED | IMPLEMENTED | VERIFIED | ACCEPTED | RELEASED**
106
+
107
+ Do not label a run VERIFIED because a package test passed if the specific requested interactive/customer journey remains untested.
@@ -0,0 +1,172 @@
1
+ # SAM machinery to authored experiences — coordinated agent workflow
2
+
3
+ **Status:** PROPOSED execution program, not shipped functionality or founder-approved public copy
4
+ **Prepared:** 2026-10-15 · **Starting SDK baseline:** main at 803b5839 · **Owner:** SDK integration lead; brand approval stays with the project owner
5
+ **Purpose:** Make existing Systematic Autonomous Machinery dependable before mining creative archives or presenting an unfinished visual demonstration as a complete customer experience.
6
+
7
+ ## Mandate and authority
8
+
9
+ AgentSam is not a generic web-development agency generator. It is a portable product for discovering, coordinating and verifying capabilities. SAM is the deterministic execution and evidence system below it. The LLM proposes interpretations and creative directions; it does not replace runtime truth, brand ownership, storage contracts or observed evidence.
10
+
11
+ Follow AGENTSAM.md, .agentsamrules, docs/architecture/SAM_KERNEL.md, and existing package contracts. For brand-specific work, load the consuming project's founder-controlled brand guide and decision register. This program is **not** a replacement for that guide. InnerAnimalMedia is a reference acceptance project, never an SDK product seed, default tenant, provider configuration or package identity.
12
+
13
+ **Order of operations:** establish execution authority -> retain portable repository knowledge -> connect durable planning -> inventory genuine creative sources -> develop approved experience -> implement through existing products -> verify the result.
14
+
15
+ ## Non-negotiable constraints
16
+
17
+ 1. **Preserve before refining.** Originals, animations, existing interactive scenes, 3D sources, approved copy, historical experiments and source archives are immutable during inventory. Record checksums and source paths; produce explicitly named derivatives. No deletion, replacement or silent reskin.
18
+ 2. **One owner per authority.** Use existing SAM kernel, Repository/Machine, Knowledge/AutoRAG, GOAP/A*, Plan ledger, Work Graph, Brand, Assets Core, Content, Campaign, CMS/theme sections and CoPro. Do not add a rival registry, task ledger, D1 table family, CMS runtime or generic planning package without a demonstrated missing contract and owner approval.
19
+ 3. **Portable first.** No operator paths, IAM account identifiers, Cloudflare defaults, founder artwork, tenant logos or credentials in reusable packages. Host-injected resource-scoped adapters for local filesystem, remote storage, execution and OAuth. Never fall back from missing user authority to platform-owner resources.
20
+ 4. **Observed != proposed != approved != deployed.** Every artifact reports authority and evidence. A successful test is not a successful experience; a screenshot is not a live implementation; a functioning preview is not proof of CMS install/edit/save/publish.
21
+ 5. **One change, one accountable branch.** Use dedicated worktrees and PRs. Do not clean other agents' worktrees, merge draft PRs, or modify shared contract surfaces from multiple lanes simultaneously.
22
+ 6. **Creative leadership isn't a vanity metric.** Do not score aesthetic approval from token counts, churn, mock popularity or a numerical originality heuristic. Founder/authorized reviewer selects the direction; automated tests verify behavior and integrity.
23
+ 7. **No unapproved product writes.** Research, inventory, test fixtures and isolated proposals are permitted under repo policy. Source mutation, publishing, infrastructure migration and runtime write operations require their applicable authorization.
24
+ 8. **Don't confuse models and methods.** Deterministic SAM observes/validates/executes; AI interpretation and specialist critique assist. Specialism does not automatically create a new npm package.
25
+
26
+ ## Dependency graph and dispatch gates
27
+
28
+ ~~~text
29
+ S0 SOURCE + CONTRACT BASELINE
30
+ | \
31
+ v v
32
+ S1 SAM KERNEL + CLIENT S2 REPOSITORY + KNOWLEDGE WARM START
33
+ | |
34
+ +-------------+---------------+
35
+ v
36
+ S3 GOAP / PLAN / WORK / RECEIPTS: END-TO-END VERTICAL SLICE
37
+ |
38
+ v
39
+ S4 BRAND EVIDENCE + FOUNDER REVIEW (not token consolidation)
40
+ |
41
+ +-------+-------+
42
+ v v
43
+ S5A ORIGINAL ASSET S5B SCENE / UX / MOTION
44
+ PRODUCTION PRODUCTION
45
+ +-------+-------+
46
+ v
47
+ S6 CMS / STUDIO INTEGRATION + CAMPAIGN / CONTENT
48
+ |
49
+ v
50
+ S7 CROSS-REPO, CROSS-HOST, CLIENT-EXPERIENCE ACCEPTANCE
51
+ ~~~
52
+
53
+ Only S0 is free of implementation dependencies. S1 and S2 can run concurrently when they don't change the same schema or execution contract. S5A/S5B can run concurrently only after an explicit brand/experience decision. A sprint does not graduate because an agent says it did.
54
+
55
+ ## S0 — Canonical recon, safety and baseline (read-only)
56
+
57
+ **Lead:** integration + QA. **Outputs:** current SHA/worktree list; package/operation ownership map; executable-vs-declared capability inventory; baseline timings and tests; protected-source manifest; prioritized defects; reusable fixture project.
58
+
59
+ - Check active branches, outstanding PRs, untracked assets and existing intent before adding code.
60
+ - Inspect SAM OS/client, manifest/protocol, registry, model-facing adapters, current Run/Work authority, installed CLI artifact, local/remote execution lanes and existing knowledge generations.
61
+ - Inspect original source integrity separately from deployed copy and derivative preview.
62
+ - Establish three test scenarios: a fresh unfamiliar repo, a multi-worktree/80-repo catalog scenario, and a real client brand/experience scenario.
63
+ - Record incomplete/unavailable integrations explicitly. The previous kernel audit on eb804e08 identified incorrect default root resolution, absent core schema enforcement, inaccurate execution receipts, non-atomic installation and registry/projection drift; reverify on the current SHA rather than treating this list as timeless.
64
+
65
+ **Gate G0:** reproducible baseline, protected originals, no unknown authority and a bounded task/owner map. No production writes.
66
+
67
+ ## S1 — SAM kernel and AgentSamClient execution integrity
68
+
69
+ **Owner:** src/sam and existing contracts. **Deliver:** isolated instance-based SAM OS, canonical operation ID, transactional versioned bindings, trusted scoped execution context, validation/policy prior to dispatch, truthful driver-produced receipts, consistent readiness and adapter projections. Preserve supported public AgentSamClient calls through compatibility.
70
+
71
+ - Fix configured-repository vs process.cwd resolution.
72
+ - Validate bound operations and requested/available lane, rather than assuming local.
73
+ - Require host-granted policy for privileged effects; allow explicit offline read-only policy without forced account login.
74
+ - Use existing packages/agentsam-contracts and protocol/sam definitions, not a fourth schema family.
75
+ - Reconcile SDK manifest, SAM operation cards, host tool schema discovery and generated candidates: declared is not executable.
76
+ - Test atomic install/rollback, denial, invalid input/output, timeouts, cancellation, true usage metadata, and multi-tenant scope.
77
+
78
+ **Gate G1:** negative tests reliably deny; all core registrations hydrate valid schemas; CLI and model adapters agree; existing functional handlers still pass.
79
+
80
+ ## S2 — Efficient 80+ repository intelligence
81
+
82
+ **Owner:** agentsam-repository, native/agentsam-machine, existing Knowledge engine. **Deliver:** stable repo/worktree identity, content-hashed source graph, optional incremental local AST/lexical index, scoped Git historian, bounded recall packets and honest freshness.
83
+
84
+ - First resolve repo/ref/checkout/tracked state and check a previous generation.
85
+ - Reuse unchanged file hashes; re-evaluate changed files and affected graph neighbors.
86
+ - Prefer Machine/Repository/Knowledge local evidence before model spend or remote Vectorize.
87
+ - Do not confuse local repository intelligence with a hosted index being missing. Remote providers are additive and explicitly selected.
88
+ - Catalog across repos by capabilities/ownership and reference existing per-repo indexes; do not make one monolithic copied code DB.
89
+ - Preserve source path, commit/dirty evidence, schema, timestamp, source kind and confidence. Never promote a hotspot score to proof of architecture.
90
+
91
+ **Gate G2:** second chat resolves a previously indexed capability without full rediscovery; stale results identified; fresh unrelated repo works without cloud credentials; retrieval budgets and timing measured.
92
+
93
+ ## S3 — Planning-to-execution closure
94
+
95
+ **Owner:** agentsam-goap, existing Plan ledger/Work Graph and SAM runtime. **Deliver:** one real plan, goal, selected operation, approval, execution, receipt, verification and recovery trail.
96
+
97
+ - A* remains a solver; GOAP models feasible actions; Plan owns durable intent; Work Graph is a view/dependency projection; SAM invokes approved operations; Superbash handles approved general scripts when specialized operations cannot.
98
+ - Map packaged GOAP facts to the existing solver through a **tested** adapter; do not reimplement A* or create separate GOAP tables.
99
+ - Persist task dependencies, expected effects and acceptance evidence; verify effects before marking completion.
100
+ - Long-running execution must resume safely after disconnection and report uncertainty rather than blindly retrying external writes.
101
+
102
+ **Gate G3:** restart a mid-flight task, recover its state, inspect events, approve when required, verify the real effect and never duplicate uncertain writes.
103
+
104
+ ## S4 — Meaningful brand research and creative direction
105
+
106
+ **Owner:** agentsam-brand + agentsam-assets-core, consuming project's brand authority. **Deliver:** classified source archive, creative evidence map, reviewed direction, BrandContract decisions and Experience Atlas references.
107
+
108
+ - Distinguish observed colors/fonts/assets, historical inspirations, experimental concepts, live usage and founder-approved identity. Counts alone cannot approve identity.
109
+ - Develop positioning, narrative, visitor needs, five-stage atlas (brand/experience map; sitemap/flows; wireframes; UI/prototype; design-to-development proof).
110
+ - Creative specialist workflows (strategist/researcher/art director/UX writer/motion director) are reusable skill/configured roles, not automatically new packages.
111
+ - Brand owns the approved language/identity; Campaign plans communication; Content manages actual material; editors/CoPro/CMS own their respective mutable representations.
112
+
113
+ **Gate G4:** an authorized reviewer can trace each approved decision to evidence and reject proposals without corrupting previous versions.
114
+
115
+ ## S5A/S5B — Original art and functional experience
116
+
117
+ **S5A owner:** BrandPack, Assets Core, appropriate CAD/SVG/CoPro tools. **Deliver:** protected original masters, approved derivatives, SVG icon family, working favicon/app-icon bundles, image/3D provenance and export tests.
118
+
119
+ **S5B owner:** site experience + scene/CMS owner. **Deliver:** real working responsive scroll choreography, meaningful transitions, keyboard and touch behavior, reduced motion and composable scene contracts tied to the approved narrative.
120
+
121
+ - Mine existing assets only against a defined scene or visual problem; audit material quality and source rights, do not create a giant catalog of decorative effects.
122
+ - Use original interactive sources as source, not flattened screenshots or generative lookalikes.
123
+ - Validate WebGL lifecycle, pause/offscreen behavior, viewport sizing, hierarchy/contrast and performance on actual devices.
124
+ - Do not hardcode consuming brand names/tokens/scenes into a reusable renderer.
125
+
126
+ **Gate G5:** beautiful **and** functional: actual interaction recordings, source-level contracts and visual review, with original checksums intact.
127
+
128
+ ## S6 — Actual ownership and delivery
129
+
130
+ **Owner:** existing CMS, Content Studio, Campaign and Work surfaces. **Deliver:** install/select, edit, save draft, preview, publish and reopen a project without local-build fragility or invented outcomes.
131
+
132
+ - Assets are resolved through configured authoritative storage, not a developer laptop's surviving files.
133
+ - A story-led case study can display research/design intent alongside actual product demo; distinguish proofs from concepts.
134
+ - Avoid a new standalone brand editor if Content Studio/CMS capabilities can be completed through their real owners.
135
+ - Campaigns consume approved narrative/assets and actual metrics, never substitute fictional performance claims.
136
+
137
+ **Gate G6:** independent app user can edit a section/media element, persist it, republish, reopen on another device, and identify source/receipt.
138
+
139
+ ## S7 — Release certification and measured outcome
140
+
141
+ **Owners:** QA + integration. **Deliver:** SDK packaged install, unrelated repo and alternate storage adapter tests, same operation IDs/schemas/receipts across CLI/desktop/MCP, responsive experience acceptance, PR and release evidence.
142
+
143
+ - Compare cold/warm boot time, index reuse, context tokens, provider calls, repeat discovery, interaction correctness, accessibility, render budgets and verified goal completion.
144
+ - Reviewer must experience the finished work, not only read test logs.
145
+ - PRs are accepted separately; do not deploy/publicize until quality, security and operational checks pass.
146
+
147
+ **Gate G7:** another organization's brand and repo can run the same machinery without adopting InnerAnimalMedia's identity, assets, Cloudflare account or appearance.
148
+
149
+ ## Swarm assignment protocol
150
+
151
+ Each agent receives: **task ID, bounded package/file ownership, base SHA, source authority, prerequisites, exact behavior change, forbidden scope, evidence required, verification command, rollback route, output branch/PR, and definition of done**.
152
+
153
+ - **Integration lead:** assigns exclusive contract ownership, adjudicates cross-package dependencies, validates before merge. Does not invent creative direction.
154
+ - **Kernel lane:** S1 only; no UI remodeling.
155
+ - **Knowledge lane:** S2 only; no new index/database unless existing contract demonstrably cannot serve.
156
+ - **Plan/GOAP lane:** S3 only; preserves ledger authority.
157
+ - **Creative lane:** S4 research/proposals, then S5 after explicit direction; no rewriting original assets.
158
+ - **Site/product lane:** S5B/S6 actual host editing and presentation; no speculative CMS table family.
159
+ - **Independent QA:** negative tests, source checksums, accessibility, multi-host smoke tests, failure evidence.
160
+ - No two code-writing agents modify the same owner files in parallel. Parallel research is welcome; concurrent contract mutations are not.
161
+
162
+ ## Handoff artifact from every agent
163
+
164
+ Record: start/end commit SHA; package/operation IDs; current branch/worktree; decision authority; files modified; tests and exact results; source/asset hashes where relevant; changed behavior demonstrated; screenshots/video or runnable preview; known gaps; risks; rollback/compatibility; proposed next task; explicit ready/block status.
165
+
166
+ **Status words:** NOT STARTED, RESEARCHED, PROPOSED, IMPLEMENTED, VERIFIED, ACCEPTED, RELEASED. These are not interchangeable. A check passing does not advance status to ACCEPTED without its authorized decision or to RELEASED without release evidence.
167
+
168
+ ## Reference acceptance case
169
+
170
+ See docs/reference/INNERANIMALMEDIA_EXPERIENCE_ACCEPTANCE_2026-10-15.md. It is a *specific test client and founder-origin narrative*, not a product requirement that all AgentSam users share its identity. The project's own founder guide, decision register and actual work-scene original outrank any description in this sprint plan.
171
+
172
+ **First dispatch:** S0 read-only ownership/integrity packets + S1 root/schema/policy tests + S2 cached source retrieval investigation. Defer new art production, component galleries and public website redesign until their prerequisites are accepted.
@@ -0,0 +1,102 @@
1
+ # Local Studio desktop polish — focused branch handoff
2
+
3
+ **Branch:** `ui-polish-desktop` (cut from the latest `agentsam-sdk/main` on 2026-10-16)
4
+ **Status:** Work intake and acceptance notes only. No runtime or CAD UI changes have been implemented on this branch yet.
5
+
6
+ ## Product intent
7
+
8
+ InnerAnimalMedia Experience Standard: **Craft over spectacle. Substance over promises.**
9
+ Companion principle: **Complex underneath. Effortless above.**
10
+
11
+ Local Studio should be a calm, coherent, highly capable workspace, inspired by the interaction *discipline* of modern desktop/Work applications rather than imitating their branding. Improve and reconnect existing UI/runtime capabilities; avoid adding a second shell, state authority, or design system.
12
+
13
+ ## Desktop polish workstreams
14
+
15
+ ### A. One composable layout contract
16
+ - Trace `apps/local-studio/frontend/agentsam/AgentSamPage.tsx`, `shell.css`, `src/components/shell/trail-workspace.tsx`, and shared `packages/agentsam-workbench` resize/layout components.
17
+ - Replace overlapping hard-coded split maxima with a container-aware policy. Persist preferred pane proportions separately from the effective size allowed by the currently available container.
18
+ - Preserve a readable conversation measure, while allowing browser/CAD/editor/terminal canvases to use all available space.
19
+ - When the primary pane and contextual pane cannot both be usable, use a focused/overlay presentation; never squeeze the composer offscreen.
20
+ - Restore sidebar, tabs, split ratios, project and active conversation after restart. Keep hover/focus, panel swap, drag, reset and keyboard resize functional.
21
+
22
+ ### B. Native-feeling PTY, clipboard, and multimodal input
23
+ - Fix the xterm paste path so Command-V uses a standard paste event rather than triggering an unnecessary clipboard API permission prompt.
24
+ - Correct nested terminal scrolling, flex constraints, fit-addon/ResizeObserver churn, and the fresh-terminal horizontal-scrollbar jitter. Preserve real scrollback.
25
+ - Distinguish ordinary text/path paste from images. Drop or paste a screenshot into an AgentSam terminal workflow via a secure staged-asset/context reference; NEVER inject image binary into PTY stdin.
26
+ - An image staged in Chat must be attached to the *submitted* message, persist through conversation reopen, and reach a provider/model with verified image capability. Do not silently omit the image and then reply that AgentSam cannot analyze it.
27
+ - Maintain platform permissions, audit evidence, attachment lifecycle, and failure/retry states.
28
+
29
+ ### C. Contextual Work and live executions
30
+ - Keep the composer visually quiet, with predictable hover, focus, keyboard and reduced-motion behavior.
31
+ - Surface actual GOAP/Plan/SAM stages, authorized tool commands, verified receipts, pending approval and resume state from existing runtime authority. No invented stages/progress.
32
+ - Make voice input optional, user-authorized, editable before submission, and independent of the terminal's shell stream.
33
+ - Reuse the existing conversation/session contracts. Do not confuse localStorage cache with cloud-authoritative persistence.
34
+
35
+ ### D. Release verification
36
+ - Test compact, standard, and wide installed macOS windows, with navigation expanded and collapsed, one/two panes, multiple terminal tabs, and varied content sizes.
37
+ - Verify with the **bundled desktop SPA in Tauri**, not only the hosted site. Respect `docs/product/LOCAL_STUDIO_DESKTOP_EXPERIENCE.md`; the real Local Studio UI must be packaged in the app.
38
+ - Keep CI focused during implementation; do one consolidated integration and packaged desktop acceptance pass before merge. Preserve unrelated active branches/worktrees.
39
+
40
+ ## CAD integration notes — guardrails for this desktop branch
41
+
42
+ CAD Creator remains its own experimental npm workspace at `apps/cad-creator`, not part of the SDK root workspace graph. It already has 2D/3D, robotics, tool adapters and its own frontend. Local Studio should host CAD as a cohesive **workspace surface**, not duplicate or silently fork its project model or CAD runtime.
43
+
44
+ Key source contracts to inspect:
45
+ - `apps/cad-creator/README.md`: active CAD Creator app, shared CAD types and server.
46
+ - `docs/cad-project-tools.md`: authoritative editable `DesignProject`, inches as canonical document units, revision-aware saves, immutable artifacts, renderer interchange.
47
+ - `src/lib/cad/{discovery,freecad,blender}.js`, `services/cad/freecad/adapter.py`, `services/cad/blender/adapter.py`: local native/CAD adapters.
48
+ - `src/lib/cad-docker.js`: existing OpenSCAD/FreeCAD/Blender Docker lanes.
49
+ - `apps/cad-creator/frontend/src/workspaces/robotics/DiagnosticOverlay.tsx`: tool/telemetry visualization to audit for genuine runtime status.
50
+
51
+ Important distinctions:
52
+ 1. **FreeCAD / OpenCASCADE**: precision/parametric solids and STEP/IGES; inspect actual compatible Python bindings/runtime rather than assuming any bundled application library is a complete developer SDK.
53
+ 2. **OpenSCAD**: deterministic constructive solids. **Blender**: scenes, lighting, animation, mesh assets and GLB exports. These complement, rather than replace, the canonical editable design document.
54
+ 3. GLB is a rendering/preview interchange; do **not** treat it as lossless editable CAD/BIM data or claim IFC roundtrip where unsupported.
55
+ 4. The robotics diagnostic overlay currently has default tool integration statuses, including FreeCAD shown as `connected`; ensure the rendered status is based on a real capability/discovery probe, or explicitly label it a design/demo fallback. Likewise, don't present illustrative telemetry as observed data.
56
+ 5. The robot arm can become a genuinely useful demo **only** when transform gizmos, joint limits, kinematics, collision/telemetry and save/export are backed by real scene/runtime behavior. Do not let a beautiful control panel imply operations that aren't connected.
57
+ 6. CAD needs the same global shell affordances as other surfaces: drag/paste images, fit-to-view, selection-specific inspector, responsive split layouts, autosave/revision visibility, undo/redo and contextual AgentSam help.
58
+ 7. Avoid recreating CAD Creator inside `apps/local-studio`: share cross-product workbench primitives and inject domain adapters. Leave CAD-specific geometry, kernels and source formats in the CAD domain.
59
+ 8. The specific real-machine Blender crash/Metal/sandbox behavior should be discovered and reported by the adapter rather than hidden behind a fictitious `ready` badge.
60
+
61
+ ## Scope / branch discipline
62
+
63
+ This is a desktop polish branch, **not** an authorization for unbounded CAD feature redevelopment. CAD-specific changes should remain on their existing owner branch unless they are small, proven shared UI primitives or necessary integration fixes.
64
+
65
+ Before modifying overlapping source files, fetch and compare currently active WIP branches/PRs, especially earlier terminal, shell, conversation and image-attachment repairs. Reuse completed work. Commit/push completed batches and merge only when actual tests, branch protections and desktop acceptance pass; clean up proven merged worktrees without discarding unique user assets.
66
+
67
+ **Success:** open Local Studio, attach a screenshot and get an image-grounded response; open terminal/browser/CAD side by side without layout jitter; inspect an actual CAD/robotic artifact or live run; switch context and restart without losing progress.
68
+ ## Multi-PTY UI implementation — 2026-10-16
69
+
70
+ The existing PR #235 had already shipped a native paste fix, terminal FitAddon/ResizeObserver stability, and an independently connected TWO-PTY split view. It did NOT yet provide the multi-PTY tiled workspace of the visual reference.
71
+
72
+ In this branch, `TerminalPane` now presents single, two-pane, or five-slot tiled layouts from the EXISTING per-session xterm/PTY authority. Tiled mode displays independent live terminals, has per-tile session selectors, and creates additional terminals on demand. Layout and slot preferences are persisted through the existing Zustand terminal store. Styling responds to the available terminal container width, with a two-column arrangement on sufficiently wide panes and a single column on narrow panes. In-page expansion is available from dock/side panes. No new backend or per-tile PTY transport was created.
73
+
74
+ Acceptance evidence:
75
+ - TypeScript frontend: PASS (`tsc --noEmit -p apps/local-studio/frontend/tsconfig.json`).
76
+ - New session-state tests: 4 PASS (unique PTY IDs, tile replacement, session close, transition back to split/single).
77
+ - Desktop-target Vite build: PASS.
78
+ - Existing desktop SPA smoke: PASS.
79
+ - Playwright Chromium, desktop preview hash-route `#/cli`: 1440x900 and 610x900, no errors, no horizontal page overflow, tiles responsively arranged. Five live tile hosts survived page reload at 1440x950 without duplicate IDs; two-column by three-row layout with full-width last row. Preview-only server used port 4337 and did not replace installed `.app`.
80
+
81
+ Out of scope / NOT finished by this slice:
82
+ - Screenshot and image-to-terminal input needs its own secure attachment pipeline and model-request integration. Current Chat composer keeps a pending File map and sends attachment metadata; `streamChat` currently sends text-only messages to the provider. Merely adding a drag target would be misleading and is NOT evidence of image understanding.
83
+ - Per-tile drag-and-resize ratios, background PTY lifecycle after closing a tab, and final installed Tauri `.app` acceptance remain separate verification tasks.
84
+ - This desktop visual slice does not change CAD/OCCT code or interrupt ongoing local PTY sessions.
85
+
86
+ ## Desktop execution continuation — candidate verification
87
+
88
+ Ownership check: Muse currently has dirty changes on `feat/cad-creator-remaster-20261016` in `apps/cad-creator/`, `apps/local-studio/frontend/src/routes/(apps)/cad.tsx`, `app-preview-stage.tsx`, `side-stage.tsx`, and untracked `cad-host-bridge.ts` / CAD context sources. The desktop branch intentionally did NOT edit these active CAD integration files. The host's CAD assistant request/response approval cycle cannot be declared complete before Muse's bridge contract is handed off and integrated.
89
+
90
+ Terminal work: persistent per-layout column and top-row fractions; drag/keyboard adjustment, focus, double-click reset and bounded ratios; verified 1440px Chrome resize from 692/691px to 832/551px and exact proportion restored after full reload without page overflow.
91
+
92
+ Images: composer paste/select/drop stages actual PNG/JPEG/WebP bytes (<=5 MiB) in the pre-existing account-scoped IndexedDB Content provider; messages persist provider references, not image data URLs. Reopen can rehydrate image bytes and show thumbnails. Each request rehydrates transient inline image content at the provider boundary; OpenAI hosted Chat Completions uses image_url parts, and desktop local OpenAI Responses uses input_image parts through Rust/Tauri/Node. Other providers reject unsupported image requests rather than silently dropping them. Input has a four-image cap. Terminal file drops route into AgentSam Chat's image queue, never shell stdin; browser test confirmed the queued image appeared in the composer after route navigation and local staging. Existing full chat composer still requires packaged app acceptance.
93
+
94
+ Validation:
95
+ - Frontend TypeScript: PASS; frontend suite: 70/70 PASS.
96
+ - Local provider input tests: 4/4 PASS.
97
+ - Desktop SPA build + asset staging + `cargo check --offline`: PASS (generated sidecars/build-brand required).
98
+ - Browser IndexedDB staging: 12 original bytes read back identically, including after reopening; browser title and IDs retained across terminal grid reload.
99
+ - Real provider run: built a synthetic valid red 96x96 PNG and sent it via `packages/agentsam-desktop-shell/scripts/local-provider-bridge.mjs` to the discovered, configured OpenAI `gpt-6-luna` endpoint. Returned `ok:true`, model `gpt-6-luna`, text `Red.` (real image consumption, no personal image sent).
100
+ - Chrome terminal screenshot-drop test: navigated from `#/cli` to `#/agentsam` and displayed the staged image name in Chat; no JS page errors. Vite development mode produced an unrelated local-health CORS diagnostic.
101
+
102
+ Remaining release gates: actual installed Tauri app sign-in/conversation/attachment/UI acceptance; provider/model capability enumeration beyond OpenAI and image types; per-conversation deletion/garbage collection of staged Content blobs; five independent real PTY streams measured in native Tauri; real CAD selection -> host response -> approved project revision with Muse; CAD state restore; production deployment is separate and has NOT occurred.
@@ -0,0 +1,48 @@
1
+ # Work UX Remaster — acceptance checklist
2
+
3
+ Scope: hosted Projects/Tickets, the shared packages/agentsam-work UI, and apps/local-studio desktop. Mobile iOS usability is the primary acceptance criterion. No second theme or independent implementation.
4
+
5
+ ## Implemented on UX branch
6
+
7
+ - [x] Desktop portfolio with a project index, selected timeline and inspector, connected to real Work ticket/project records.
8
+ - [x] Keep the native mobile Projects catalog, shared navigation dock and existing CRUD actions.
9
+ - [x] Planned dates versus observed ticket activity are separate and clearly labeled; no invented deadlines.
10
+ - [x] Actual Fit scaling, 6-week and 2-week zoom, more legible status colors, progress fill, project labels.
11
+ - [x] Three actionable focus tickets replace duplicated long recommendations; dependency chains disclosed on demand.
12
+ - [x] Compact mobile Tickets filtering: search and one Filters control.
13
+ - [x] Project detail: perceived completion, shipped-ticket share with honest labeling, blockers and next actions.
14
+ - [x] Remove nested timeline tabs and nonfunctional right Work rail; default desktop navigation to collapsed.
15
+ - [x] Expanding long ticket titles and compact mobile project actions.
16
+ - [x] Fix Artifacts and virtual shell HTML preview paths to use the existing stylesheet/script assembler.
17
+ - [x] Label unstyled unnamed HTML fragments without altering original file contents.
18
+ - [x] Eight-surface fixture screenshot harness for mobile 390x844 and desktop 1440x900 with overflow checks.
19
+
20
+ ## Must verify before declaring production-grade
21
+
22
+ - [ ] Final rendered screenshot review after the last mobile header changes.
23
+ - [ ] Authenticated iPhone Safari tests: tap, keyboard, scroll, save/reopen and screen reader labels.
24
+ - [ ] Installed desktop app sign-in, edit ticket/project, then confirm same account-owned D1 rows on web.
25
+ - [ ] CI pixel-diff baseline review and performance test with 666 tickets and 39 projects.
26
+ - [ ] Persistent Milestones with acceptance evidence, not inferred ticket completion.
27
+ - [ ] Versioned reusable Templates, saved filters and portfolio-level phases/dependencies.
28
+ - [ ] Canonical legacy project mapping and priority normalization without silently overwriting original data.
29
+
30
+ ## Parallel work, not merged into this UX branch
31
+
32
+ - [ ] Cold-start Keychain read trace, minimal reads, safe migration plan, stable signing for trusted builds.
33
+ - [ ] Validate user-pushed Superbash branch with agentsam doctor, self-service tool discovery, version provenance and cross-repository capability certification.
34
+ - [ ] SDK version parity and release train for IAM, MCP and Local Studio; signed-in desktop uses hosted D1 as authority.
35
+ - [ ] Apple Developer signing/notarization and auto-updater publication.
36
+
37
+ ## Evidence
38
+
39
+ Use apps/local-studio npm run build:desktop and npm run smoke:work-visual, plus packages/agentsam-work tests and worker data tests. The local QA screenshots are in Downloads/agentsam-work-visual-review (fixtures, not customer data). A clean build is not an authenticated production acceptance test.
40
+
41
+ ## Release receipt — 2026-10-15
42
+
43
+ - PR #216 merged to main as 16d3f4a0, from UX remaster commit 6bc0a81a.
44
+ - Production Cloudflare Worker agentsam-sdk deployment succeeded with version c1fbcfe5-d895-4546-841c-bd48aebf187b.
45
+ - Live unauthenticated checks: /projects HTTP 200, /tickets HTTP 200, /api/work/snapshot HTTP 401 as expected without identity.
46
+ - Tauri desktop app bundled on Apple Silicon from the merged source, ad-hoc signed with successful local code-signing verification. ZIP: ~/Downloads/AgentSam-Local-Studio-UX-Remaster-16d3f4a0-macOS-arm64.zip (29 MB). Archive integrity passed; SHA-256 800a84a5652a18e6ccaa4647a5fd4f6164a65e8a98ca1029082f1a0f7c1ae4a8.
47
+ - NOT notarized or published via auto-updater. Authenticated iPhone Safari and installed-desktop cross-host CRUD acceptance not yet completed. Keychain multi-prompt issue remains unchanged.
48
+ - Independent Superbash branch/worktree was inspected but not edited, merged, published or reset by this release.