@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,1746 @@
1
+ // AUTO-GENERATED from accepted v1.1 tool pack; deterministic.
2
+ export const OPERATION_CATALOG = Object.freeze([
3
+ {
4
+ "id": "tool_sam_superbash",
5
+ "name": "sam.superbash",
6
+ "description": "sam.superbash: use the authorized authorized_execution_lane domain service; validate source versions, resource ownership and results.",
7
+ "input_schema": {
8
+ "type": "object",
9
+ "properties": {
10
+ "script": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "maxLength": 200000
14
+ },
15
+ "scriptArtifactRef": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "relativeCwd": {
20
+ "type": "string"
21
+ },
22
+ "idempotencyKey": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "required": [],
27
+ "additionalProperties": false,
28
+ "oneOf": [
29
+ {
30
+ "required": [
31
+ "script"
32
+ ],
33
+ "not": {
34
+ "required": [
35
+ "scriptArtifactRef"
36
+ ]
37
+ }
38
+ },
39
+ {
40
+ "required": [
41
+ "scriptArtifactRef"
42
+ ],
43
+ "not": {
44
+ "required": [
45
+ "script"
46
+ ]
47
+ }
48
+ }
49
+ ]
50
+ },
51
+ "output_schema": null,
52
+ "capability_key": "terminal.shell.execute",
53
+ "handler_ref": "sam.superbash",
54
+ "policy": {
55
+ "name": "sam.superbash",
56
+ "pack": "sam",
57
+ "effect": "shell_execution",
58
+ "target_scope": "authorized_execution_lane",
59
+ "authorization": "execution_grant",
60
+ "recovery_requirement": "process_receipt",
61
+ "actor_identity": "host_authenticated_context_only"
62
+ }
63
+ },
64
+ {
65
+ "id": "tool_sam_script_save",
66
+ "name": "sam.script.save",
67
+ "description": "sam.script.save: use the authorized owned_script_library domain service; validate source versions, resource ownership and results.",
68
+ "input_schema": {
69
+ "type": "object",
70
+ "properties": {
71
+ "script": {
72
+ "type": "string"
73
+ },
74
+ "scriptId": {
75
+ "type": "string"
76
+ },
77
+ "expectedVersion": {
78
+ "type": "integer",
79
+ "minimum": 1
80
+ },
81
+ "description": {
82
+ "type": "string"
83
+ }
84
+ },
85
+ "required": [
86
+ "script"
87
+ ],
88
+ "additionalProperties": false
89
+ },
90
+ "output_schema": null,
91
+ "capability_key": "terminal.script.write",
92
+ "handler_ref": "sam.script.save",
93
+ "policy": {
94
+ "name": "sam.script.save",
95
+ "pack": "sam",
96
+ "effect": "script_artifact_write",
97
+ "target_scope": "owned_script_library",
98
+ "authorization": "script_write_permission",
99
+ "recovery_requirement": "versioned_artifact",
100
+ "actor_identity": "host_authenticated_context_only"
101
+ }
102
+ },
103
+ {
104
+ "id": "tool_sam_script_get",
105
+ "name": "sam.script.get",
106
+ "description": "sam.script.get: use the authorized owned_script_library domain service; validate source versions, resource ownership and results.",
107
+ "input_schema": {
108
+ "type": "object",
109
+ "properties": {
110
+ "scriptId": {
111
+ "type": "string"
112
+ },
113
+ "version": {
114
+ "type": "integer",
115
+ "minimum": 1
116
+ }
117
+ },
118
+ "required": [
119
+ "scriptId"
120
+ ],
121
+ "additionalProperties": false
122
+ },
123
+ "output_schema": null,
124
+ "capability_key": "terminal.script.read",
125
+ "handler_ref": "sam.script.get",
126
+ "policy": {
127
+ "name": "sam.script.get",
128
+ "pack": "sam",
129
+ "effect": "read",
130
+ "target_scope": "owned_script_library",
131
+ "authorization": "script_read_permission",
132
+ "recovery_requirement": "none",
133
+ "actor_identity": "host_authenticated_context_only"
134
+ }
135
+ },
136
+ {
137
+ "id": "tool_cms_definition_list",
138
+ "name": "cms.definition.list",
139
+ "description": "cms.definition.list: use the authorized merchant_catalog domain service; validate source versions, resource ownership and results.",
140
+ "input_schema": {
141
+ "type": "object",
142
+ "properties": {
143
+ "kind": {
144
+ "type": "string"
145
+ },
146
+ "status": {
147
+ "type": "string"
148
+ }
149
+ },
150
+ "required": [],
151
+ "additionalProperties": false
152
+ },
153
+ "output_schema": null,
154
+ "capability_key": "cms.definition.read",
155
+ "handler_ref": "cms.definition.list",
156
+ "policy": {
157
+ "name": "cms.definition.list",
158
+ "pack": "cms",
159
+ "effect": "read",
160
+ "target_scope": "merchant_catalog",
161
+ "authorization": "resource_read_permission",
162
+ "recovery_requirement": "none",
163
+ "actor_identity": "host_authenticated_context_only"
164
+ }
165
+ },
166
+ {
167
+ "id": "tool_cms_page_inspect",
168
+ "name": "cms.page.inspect",
169
+ "description": "cms.page.inspect: use the authorized merchant_page domain service; validate source versions, resource ownership and results.",
170
+ "input_schema": {
171
+ "type": "object",
172
+ "properties": {
173
+ "pageId": {
174
+ "type": "string"
175
+ }
176
+ },
177
+ "required": [
178
+ "pageId"
179
+ ],
180
+ "additionalProperties": false
181
+ },
182
+ "output_schema": null,
183
+ "capability_key": "cms.page.read",
184
+ "handler_ref": "cms.page.inspect",
185
+ "policy": {
186
+ "name": "cms.page.inspect",
187
+ "pack": "cms",
188
+ "effect": "read",
189
+ "target_scope": "merchant_page",
190
+ "authorization": "resource_read_permission",
191
+ "recovery_requirement": "none",
192
+ "actor_identity": "host_authenticated_context_only"
193
+ }
194
+ },
195
+ {
196
+ "id": "tool_cms_page_createDraft",
197
+ "name": "cms.page.createDraft",
198
+ "description": "cms.page.createDraft: use the authorized merchant_page domain service; validate source versions, resource ownership and results.",
199
+ "input_schema": {
200
+ "type": "object",
201
+ "properties": {
202
+ "templateKey": {
203
+ "type": "string"
204
+ },
205
+ "title": {
206
+ "type": "string"
207
+ },
208
+ "path": {
209
+ "type": "string"
210
+ }
211
+ },
212
+ "required": [
213
+ "templateKey",
214
+ "title",
215
+ "path"
216
+ ],
217
+ "additionalProperties": false
218
+ },
219
+ "output_schema": null,
220
+ "capability_key": "cms.page.write",
221
+ "handler_ref": "cms.page.createDraft",
222
+ "policy": {
223
+ "name": "cms.page.createDraft",
224
+ "pack": "cms",
225
+ "effect": "draft_create",
226
+ "target_scope": "merchant_page",
227
+ "authorization": "draft_write_permission",
228
+ "recovery_requirement": "revision",
229
+ "actor_identity": "host_authenticated_context_only"
230
+ }
231
+ },
232
+ {
233
+ "id": "tool_cms_section_inspect",
234
+ "name": "cms.section.inspect",
235
+ "description": "cms.section.inspect: use the authorized merchant_section domain service; validate source versions, resource ownership and results.",
236
+ "input_schema": {
237
+ "type": "object",
238
+ "properties": {
239
+ "pageId": {
240
+ "type": "string"
241
+ },
242
+ "sectionId": {
243
+ "type": "string"
244
+ }
245
+ },
246
+ "required": [
247
+ "pageId",
248
+ "sectionId"
249
+ ],
250
+ "additionalProperties": false
251
+ },
252
+ "output_schema": null,
253
+ "capability_key": "cms.section.read",
254
+ "handler_ref": "cms.section.inspect",
255
+ "policy": {
256
+ "name": "cms.section.inspect",
257
+ "pack": "cms",
258
+ "effect": "read",
259
+ "target_scope": "merchant_section",
260
+ "authorization": "resource_read_permission",
261
+ "recovery_requirement": "none",
262
+ "actor_identity": "host_authenticated_context_only"
263
+ }
264
+ },
265
+ {
266
+ "id": "tool_cms_section_create",
267
+ "name": "cms.section.create",
268
+ "description": "cms.section.create: use the authorized merchant_section domain service; validate source versions, resource ownership and results.",
269
+ "input_schema": {
270
+ "type": "object",
271
+ "properties": {
272
+ "pageId": {
273
+ "type": "string"
274
+ },
275
+ "definitionKey": {
276
+ "type": "string"
277
+ },
278
+ "expectedVersion": {
279
+ "type": "integer",
280
+ "minimum": 1
281
+ }
282
+ },
283
+ "required": [
284
+ "pageId",
285
+ "definitionKey",
286
+ "expectedVersion"
287
+ ],
288
+ "additionalProperties": false
289
+ },
290
+ "output_schema": null,
291
+ "capability_key": "cms.section.write",
292
+ "handler_ref": "cms.section.create",
293
+ "policy": {
294
+ "name": "cms.section.create",
295
+ "pack": "cms",
296
+ "effect": "draft_create",
297
+ "target_scope": "merchant_section",
298
+ "authorization": "draft_write_permission",
299
+ "recovery_requirement": "revision",
300
+ "actor_identity": "host_authenticated_context_only"
301
+ }
302
+ },
303
+ {
304
+ "id": "tool_cms_section_updateDraft",
305
+ "name": "cms.section.updateDraft",
306
+ "description": "cms.section.updateDraft: use the authorized merchant_section domain service; validate source versions, resource ownership and results.",
307
+ "input_schema": {
308
+ "type": "object",
309
+ "properties": {
310
+ "sectionId": {
311
+ "type": "string"
312
+ },
313
+ "settings": {
314
+ "type": "object"
315
+ },
316
+ "expectedVersion": {
317
+ "type": "integer",
318
+ "minimum": 1
319
+ }
320
+ },
321
+ "required": [
322
+ "sectionId",
323
+ "settings",
324
+ "expectedVersion"
325
+ ],
326
+ "additionalProperties": false
327
+ },
328
+ "output_schema": null,
329
+ "capability_key": "cms.section.write",
330
+ "handler_ref": "cms.section.updateDraft",
331
+ "policy": {
332
+ "name": "cms.section.updateDraft",
333
+ "pack": "cms",
334
+ "effect": "draft_update",
335
+ "target_scope": "merchant_section",
336
+ "authorization": "draft_write_permission",
337
+ "recovery_requirement": "revision",
338
+ "actor_identity": "host_authenticated_context_only"
339
+ }
340
+ },
341
+ {
342
+ "id": "tool_cms_section_duplicate",
343
+ "name": "cms.section.duplicate",
344
+ "description": "cms.section.duplicate: use the authorized merchant_section domain service; validate source versions, resource ownership and results.",
345
+ "input_schema": {
346
+ "type": "object",
347
+ "properties": {
348
+ "sectionId": {
349
+ "type": "string"
350
+ },
351
+ "expectedVersion": {
352
+ "type": "integer",
353
+ "minimum": 1
354
+ }
355
+ },
356
+ "required": [
357
+ "sectionId",
358
+ "expectedVersion"
359
+ ],
360
+ "additionalProperties": false
361
+ },
362
+ "output_schema": null,
363
+ "capability_key": "cms.section.write",
364
+ "handler_ref": "cms.section.duplicate",
365
+ "policy": {
366
+ "name": "cms.section.duplicate",
367
+ "pack": "cms",
368
+ "effect": "draft_create",
369
+ "target_scope": "merchant_section",
370
+ "authorization": "draft_write_permission",
371
+ "recovery_requirement": "revision",
372
+ "actor_identity": "host_authenticated_context_only"
373
+ }
374
+ },
375
+ {
376
+ "id": "tool_cms_section_move",
377
+ "name": "cms.section.move",
378
+ "description": "cms.section.move: use the authorized merchant_section domain service; validate source versions, resource ownership and results.",
379
+ "input_schema": {
380
+ "type": "object",
381
+ "properties": {
382
+ "sectionId": {
383
+ "type": "string"
384
+ },
385
+ "targetIndex": {
386
+ "type": "integer",
387
+ "minimum": 0
388
+ },
389
+ "expectedVersion": {
390
+ "type": "integer",
391
+ "minimum": 1
392
+ }
393
+ },
394
+ "required": [
395
+ "sectionId",
396
+ "targetIndex",
397
+ "expectedVersion"
398
+ ],
399
+ "additionalProperties": false
400
+ },
401
+ "output_schema": null,
402
+ "capability_key": "cms.section.write",
403
+ "handler_ref": "cms.section.move",
404
+ "policy": {
405
+ "name": "cms.section.move",
406
+ "pack": "cms",
407
+ "effect": "draft_reorder",
408
+ "target_scope": "merchant_section",
409
+ "authorization": "draft_write_permission",
410
+ "recovery_requirement": "revision",
411
+ "actor_identity": "host_authenticated_context_only"
412
+ }
413
+ },
414
+ {
415
+ "id": "tool_cms_section_visibility",
416
+ "name": "cms.section.visibility",
417
+ "description": "cms.section.visibility: use the authorized merchant_section domain service; validate source versions, resource ownership and results.",
418
+ "input_schema": {
419
+ "type": "object",
420
+ "properties": {
421
+ "sectionId": {
422
+ "type": "string"
423
+ },
424
+ "visible": {
425
+ "type": "boolean"
426
+ },
427
+ "expectedVersion": {
428
+ "type": "integer",
429
+ "minimum": 1
430
+ }
431
+ },
432
+ "required": [
433
+ "sectionId",
434
+ "visible",
435
+ "expectedVersion"
436
+ ],
437
+ "additionalProperties": false
438
+ },
439
+ "output_schema": null,
440
+ "capability_key": "cms.section.write",
441
+ "handler_ref": "cms.section.visibility",
442
+ "policy": {
443
+ "name": "cms.section.visibility",
444
+ "pack": "cms",
445
+ "effect": "draft_visibility",
446
+ "target_scope": "merchant_section",
447
+ "authorization": "draft_write_permission",
448
+ "recovery_requirement": "revision",
449
+ "actor_identity": "host_authenticated_context_only"
450
+ }
451
+ },
452
+ {
453
+ "id": "tool_cms_section_remove",
454
+ "name": "cms.section.remove",
455
+ "description": "cms.section.remove: use the authorized merchant_section domain service; validate source versions, resource ownership and results.",
456
+ "input_schema": {
457
+ "type": "object",
458
+ "properties": {
459
+ "sectionId": {
460
+ "type": "string"
461
+ },
462
+ "expectedVersion": {
463
+ "type": "integer",
464
+ "minimum": 1
465
+ }
466
+ },
467
+ "required": [
468
+ "sectionId",
469
+ "expectedVersion"
470
+ ],
471
+ "additionalProperties": false
472
+ },
473
+ "output_schema": null,
474
+ "capability_key": "cms.section.write",
475
+ "handler_ref": "cms.section.remove",
476
+ "policy": {
477
+ "name": "cms.section.remove",
478
+ "pack": "cms",
479
+ "effect": "draft_soft_remove",
480
+ "target_scope": "merchant_section",
481
+ "authorization": "draft_write_permission",
482
+ "recovery_requirement": "recovery_required",
483
+ "actor_identity": "host_authenticated_context_only"
484
+ }
485
+ },
486
+ {
487
+ "id": "tool_cms_block_add",
488
+ "name": "cms.block.add",
489
+ "description": "cms.block.add: use the authorized merchant_block domain service; validate source versions, resource ownership and results.",
490
+ "input_schema": {
491
+ "type": "object",
492
+ "properties": {
493
+ "sectionId": {
494
+ "type": "string"
495
+ },
496
+ "definitionKey": {
497
+ "type": "string"
498
+ },
499
+ "parentBlockId": {
500
+ "type": "string"
501
+ },
502
+ "expectedVersion": {
503
+ "type": "integer",
504
+ "minimum": 1
505
+ }
506
+ },
507
+ "required": [
508
+ "sectionId",
509
+ "definitionKey",
510
+ "expectedVersion"
511
+ ],
512
+ "additionalProperties": false
513
+ },
514
+ "output_schema": null,
515
+ "capability_key": "cms.block.write",
516
+ "handler_ref": "cms.block.add",
517
+ "policy": {
518
+ "name": "cms.block.add",
519
+ "pack": "cms",
520
+ "effect": "draft_create",
521
+ "target_scope": "merchant_block",
522
+ "authorization": "draft_write_permission",
523
+ "recovery_requirement": "revision",
524
+ "actor_identity": "host_authenticated_context_only"
525
+ }
526
+ },
527
+ {
528
+ "id": "tool_cms_block_update",
529
+ "name": "cms.block.update",
530
+ "description": "cms.block.update: use the authorized merchant_block domain service; validate source versions, resource ownership and results.",
531
+ "input_schema": {
532
+ "type": "object",
533
+ "properties": {
534
+ "blockId": {
535
+ "type": "string"
536
+ },
537
+ "settings": {
538
+ "type": "object"
539
+ },
540
+ "expectedVersion": {
541
+ "type": "integer",
542
+ "minimum": 1
543
+ }
544
+ },
545
+ "required": [
546
+ "blockId",
547
+ "settings",
548
+ "expectedVersion"
549
+ ],
550
+ "additionalProperties": false
551
+ },
552
+ "output_schema": null,
553
+ "capability_key": "cms.block.write",
554
+ "handler_ref": "cms.block.update",
555
+ "policy": {
556
+ "name": "cms.block.update",
557
+ "pack": "cms",
558
+ "effect": "draft_update",
559
+ "target_scope": "merchant_block",
560
+ "authorization": "draft_write_permission",
561
+ "recovery_requirement": "revision",
562
+ "actor_identity": "host_authenticated_context_only"
563
+ }
564
+ },
565
+ {
566
+ "id": "tool_cms_block_move",
567
+ "name": "cms.block.move",
568
+ "description": "cms.block.move: use the authorized merchant_block domain service; validate source versions, resource ownership and results.",
569
+ "input_schema": {
570
+ "type": "object",
571
+ "properties": {
572
+ "blockId": {
573
+ "type": "string"
574
+ },
575
+ "targetIndex": {
576
+ "type": "integer",
577
+ "minimum": 0
578
+ },
579
+ "expectedVersion": {
580
+ "type": "integer",
581
+ "minimum": 1
582
+ }
583
+ },
584
+ "required": [
585
+ "blockId",
586
+ "targetIndex",
587
+ "expectedVersion"
588
+ ],
589
+ "additionalProperties": false
590
+ },
591
+ "output_schema": null,
592
+ "capability_key": "cms.block.write",
593
+ "handler_ref": "cms.block.move",
594
+ "policy": {
595
+ "name": "cms.block.move",
596
+ "pack": "cms",
597
+ "effect": "draft_reorder",
598
+ "target_scope": "merchant_block",
599
+ "authorization": "draft_write_permission",
600
+ "recovery_requirement": "revision",
601
+ "actor_identity": "host_authenticated_context_only"
602
+ }
603
+ },
604
+ {
605
+ "id": "tool_cms_block_remove",
606
+ "name": "cms.block.remove",
607
+ "description": "cms.block.remove: use the authorized merchant_block domain service; validate source versions, resource ownership and results.",
608
+ "input_schema": {
609
+ "type": "object",
610
+ "properties": {
611
+ "blockId": {
612
+ "type": "string"
613
+ },
614
+ "expectedVersion": {
615
+ "type": "integer",
616
+ "minimum": 1
617
+ }
618
+ },
619
+ "required": [
620
+ "blockId",
621
+ "expectedVersion"
622
+ ],
623
+ "additionalProperties": false
624
+ },
625
+ "output_schema": null,
626
+ "capability_key": "cms.block.write",
627
+ "handler_ref": "cms.block.remove",
628
+ "policy": {
629
+ "name": "cms.block.remove",
630
+ "pack": "cms",
631
+ "effect": "draft_destructive_remove",
632
+ "target_scope": "merchant_block",
633
+ "authorization": "draft_remove_permission_and_recovery_check",
634
+ "recovery_requirement": "revision_restore_must_be_proven",
635
+ "actor_identity": "host_authenticated_context_only"
636
+ }
637
+ },
638
+ {
639
+ "id": "tool_cms_page_publish",
640
+ "name": "cms.page.publish",
641
+ "description": "cms.page.publish: use the authorized merchant_page domain service; validate source versions, resource ownership and results.",
642
+ "input_schema": {
643
+ "type": "object",
644
+ "properties": {
645
+ "pageId": {
646
+ "type": "string"
647
+ },
648
+ "expectedVersion": {
649
+ "type": "integer",
650
+ "minimum": 1
651
+ }
652
+ },
653
+ "required": [
654
+ "pageId",
655
+ "expectedVersion"
656
+ ],
657
+ "additionalProperties": false
658
+ },
659
+ "output_schema": null,
660
+ "capability_key": "cms.page.publish",
661
+ "handler_ref": "cms.page.publish",
662
+ "policy": {
663
+ "name": "cms.page.publish",
664
+ "pack": "cms",
665
+ "effect": "live_publish",
666
+ "target_scope": "merchant_page",
667
+ "authorization": "publish_permission_and_explicit_intent",
668
+ "recovery_requirement": "published_revision",
669
+ "actor_identity": "host_authenticated_context_only"
670
+ }
671
+ },
672
+ {
673
+ "id": "tool_media_asset_inspect",
674
+ "name": "media.asset.inspect",
675
+ "description": "media.asset.inspect: use the authorized merchant_media domain service; validate source versions, resource ownership and results.",
676
+ "input_schema": {
677
+ "type": "object",
678
+ "properties": {
679
+ "assetId": {
680
+ "type": "string"
681
+ }
682
+ },
683
+ "required": [
684
+ "assetId"
685
+ ],
686
+ "additionalProperties": false
687
+ },
688
+ "output_schema": null,
689
+ "capability_key": "media.asset.read",
690
+ "handler_ref": "media.asset.inspect",
691
+ "policy": {
692
+ "name": "media.asset.inspect",
693
+ "pack": "media",
694
+ "effect": "read",
695
+ "target_scope": "merchant_media",
696
+ "authorization": "resource_read_permission",
697
+ "recovery_requirement": "none",
698
+ "actor_identity": "host_authenticated_context_only"
699
+ }
700
+ },
701
+ {
702
+ "id": "tool_media_asset_upload",
703
+ "name": "media.asset.upload",
704
+ "description": "media.asset.upload: use the authorized merchant_media domain service; validate source versions, resource ownership and results.",
705
+ "input_schema": {
706
+ "type": "object",
707
+ "properties": {
708
+ "sourceArtifactRef": {
709
+ "type": "string"
710
+ },
711
+ "filename": {
712
+ "type": "string"
713
+ },
714
+ "contentType": {
715
+ "type": "string"
716
+ }
717
+ },
718
+ "required": [
719
+ "sourceArtifactRef",
720
+ "filename"
721
+ ],
722
+ "additionalProperties": false
723
+ },
724
+ "output_schema": null,
725
+ "capability_key": "media.asset.write",
726
+ "handler_ref": "media.asset.upload",
727
+ "policy": {
728
+ "name": "media.asset.upload",
729
+ "pack": "media",
730
+ "effect": "media_asset_create",
731
+ "target_scope": "merchant_media",
732
+ "authorization": "media_write_permission",
733
+ "recovery_requirement": "original_asset_retained",
734
+ "actor_identity": "host_authenticated_context_only"
735
+ }
736
+ },
737
+ {
738
+ "id": "tool_media_asset_prepare",
739
+ "name": "media.asset.prepare",
740
+ "description": "media.asset.prepare: use the authorized merchant_media domain service; validate source versions, resource ownership and results.",
741
+ "input_schema": {
742
+ "type": "object",
743
+ "properties": {
744
+ "assetId": {
745
+ "type": "string",
746
+ "minLength": 1
747
+ },
748
+ "operations": {
749
+ "type": "array",
750
+ "items": {
751
+ "type": "object",
752
+ "properties": {
753
+ "kind": {
754
+ "type": "string",
755
+ "enum": [
756
+ "optimize",
757
+ "resize",
758
+ "crop",
759
+ "convert",
760
+ "trim_alpha",
761
+ "normalize_color"
762
+ ]
763
+ },
764
+ "width": {
765
+ "type": "integer",
766
+ "minimum": 1,
767
+ "maximum": 20000
768
+ },
769
+ "height": {
770
+ "type": "integer",
771
+ "minimum": 1,
772
+ "maximum": 20000
773
+ },
774
+ "left": {
775
+ "type": "integer",
776
+ "minimum": 0
777
+ },
778
+ "top": {
779
+ "type": "integer",
780
+ "minimum": 0
781
+ },
782
+ "format": {
783
+ "type": "string",
784
+ "enum": [
785
+ "png",
786
+ "jpeg",
787
+ "webp"
788
+ ]
789
+ },
790
+ "quality": {
791
+ "type": "integer",
792
+ "minimum": 1,
793
+ "maximum": 100
794
+ },
795
+ "fit": {
796
+ "type": "string",
797
+ "enum": [
798
+ "inside",
799
+ "cover",
800
+ "contain",
801
+ "fill"
802
+ ]
803
+ },
804
+ "allowUpscale": {
805
+ "type": "boolean"
806
+ }
807
+ },
808
+ "required": [
809
+ "kind"
810
+ ],
811
+ "additionalProperties": false
812
+ },
813
+ "minItems": 1
814
+ },
815
+ "expectedVersion": {
816
+ "type": "integer",
817
+ "minimum": 1
818
+ },
819
+ "idempotencyKey": {
820
+ "type": "string"
821
+ }
822
+ },
823
+ "required": [
824
+ "assetId",
825
+ "operations",
826
+ "expectedVersion"
827
+ ],
828
+ "additionalProperties": false
829
+ },
830
+ "output_schema": null,
831
+ "capability_key": "media.asset.write",
832
+ "handler_ref": "media.asset.prepare",
833
+ "policy": {
834
+ "name": "media.asset.prepare",
835
+ "pack": "media",
836
+ "effect": "media_derivative_create",
837
+ "target_scope": "merchant_media",
838
+ "authorization": "media_write_permission",
839
+ "recovery_requirement": "original_asset_retained",
840
+ "actor_identity": "host_authenticated_context_only"
841
+ }
842
+ },
843
+ {
844
+ "id": "tool_media_asset_job_status",
845
+ "name": "media.asset.job.status",
846
+ "description": "media.asset.job.status: use the authorized merchant_media_job domain service; validate source versions, resource ownership and results.",
847
+ "input_schema": {
848
+ "type": "object",
849
+ "properties": {
850
+ "jobId": {
851
+ "type": "string"
852
+ }
853
+ },
854
+ "required": [
855
+ "jobId"
856
+ ],
857
+ "additionalProperties": false
858
+ },
859
+ "output_schema": null,
860
+ "capability_key": "media.asset.read",
861
+ "handler_ref": "media.asset.job.status",
862
+ "policy": {
863
+ "name": "media.asset.job.status",
864
+ "pack": "media",
865
+ "effect": "read",
866
+ "target_scope": "merchant_media_job",
867
+ "authorization": "resource_read_permission",
868
+ "recovery_requirement": "none",
869
+ "actor_identity": "host_authenticated_context_only"
870
+ }
871
+ },
872
+ {
873
+ "id": "tool_media_asset_background_remove",
874
+ "name": "media.asset.background.remove",
875
+ "description": "Deprecated alias of media.image.background.remove; do not advertise as a separate model tool.",
876
+ "input_schema": {
877
+ "type": "object",
878
+ "properties": {
879
+ "assetId": {
880
+ "type": "string"
881
+ },
882
+ "method": {
883
+ "type": "string"
884
+ }
885
+ },
886
+ "required": [
887
+ "assetId"
888
+ ],
889
+ "additionalProperties": false
890
+ },
891
+ "output_schema": null,
892
+ "capability_key": "media.asset.write",
893
+ "handler_ref": "media.asset.background.remove",
894
+ "policy": {
895
+ "name": "media.asset.background.remove",
896
+ "pack": "media",
897
+ "effect": "media_derivative_create",
898
+ "target_scope": "merchant_media",
899
+ "authorization": "media_write_permission",
900
+ "recovery_requirement": "original_asset_retained",
901
+ "actor_identity": "host_authenticated_context_only"
902
+ },
903
+ "aliasFor": "media.image.background.remove"
904
+ },
905
+ {
906
+ "id": "tool_media_asset_versions_list",
907
+ "name": "media.asset.versions.list",
908
+ "description": "media.asset.versions.list: use the authorized merchant_media domain service; validate source versions, resource ownership and results.",
909
+ "input_schema": {
910
+ "type": "object",
911
+ "properties": {
912
+ "assetId": {
913
+ "type": "string"
914
+ }
915
+ },
916
+ "required": [
917
+ "assetId"
918
+ ],
919
+ "additionalProperties": false
920
+ },
921
+ "output_schema": null,
922
+ "capability_key": "media.asset.read",
923
+ "handler_ref": "media.asset.versions.list",
924
+ "policy": {
925
+ "name": "media.asset.versions.list",
926
+ "pack": "media",
927
+ "effect": "read",
928
+ "target_scope": "merchant_media",
929
+ "authorization": "resource_read_permission",
930
+ "recovery_requirement": "none",
931
+ "actor_identity": "host_authenticated_context_only"
932
+ }
933
+ },
934
+ {
935
+ "id": "tool_media_model_inspect",
936
+ "name": "media.model.inspect",
937
+ "description": "media.model.inspect: use the authorized merchant_model domain service; validate source versions, resource ownership and results.",
938
+ "input_schema": {
939
+ "type": "object",
940
+ "properties": {
941
+ "assetId": {
942
+ "type": "string"
943
+ }
944
+ },
945
+ "required": [
946
+ "assetId"
947
+ ],
948
+ "additionalProperties": false
949
+ },
950
+ "output_schema": null,
951
+ "capability_key": "media.model.read",
952
+ "handler_ref": "media.model.inspect",
953
+ "policy": {
954
+ "name": "media.model.inspect",
955
+ "pack": "media",
956
+ "effect": "read",
957
+ "target_scope": "merchant_model",
958
+ "authorization": "resource_read_permission",
959
+ "recovery_requirement": "none",
960
+ "actor_identity": "host_authenticated_context_only"
961
+ }
962
+ },
963
+ {
964
+ "id": "tool_media_model_validate",
965
+ "name": "media.model.validate",
966
+ "description": "media.model.validate: use the authorized merchant_model domain service; validate source versions, resource ownership and results.",
967
+ "input_schema": {
968
+ "type": "object",
969
+ "properties": {
970
+ "assetId": {
971
+ "type": "string"
972
+ }
973
+ },
974
+ "required": [
975
+ "assetId"
976
+ ],
977
+ "additionalProperties": false
978
+ },
979
+ "output_schema": null,
980
+ "capability_key": "media.model.read",
981
+ "handler_ref": "media.model.validate",
982
+ "policy": {
983
+ "name": "media.model.validate",
984
+ "pack": "media",
985
+ "effect": "read",
986
+ "target_scope": "merchant_model",
987
+ "authorization": "resource_read_permission",
988
+ "recovery_requirement": "none",
989
+ "actor_identity": "host_authenticated_context_only"
990
+ }
991
+ },
992
+ {
993
+ "id": "tool_media_model_optimize",
994
+ "name": "media.model.optimize",
995
+ "description": "media.model.optimize: use the authorized merchant_model domain service; validate source versions, resource ownership and results.",
996
+ "input_schema": {
997
+ "type": "object",
998
+ "properties": {
999
+ "assetId": {
1000
+ "type": "string"
1001
+ },
1002
+ "profile": {
1003
+ "type": "string",
1004
+ "enum": [
1005
+ "web",
1006
+ "mobile",
1007
+ "original_preserving"
1008
+ ]
1009
+ },
1010
+ "expectedVersion": {
1011
+ "type": "integer",
1012
+ "minimum": 1
1013
+ }
1014
+ },
1015
+ "required": [
1016
+ "assetId",
1017
+ "profile"
1018
+ ],
1019
+ "additionalProperties": false
1020
+ },
1021
+ "output_schema": null,
1022
+ "capability_key": "media.model.write",
1023
+ "handler_ref": "media.model.optimize",
1024
+ "policy": {
1025
+ "name": "media.model.optimize",
1026
+ "pack": "media",
1027
+ "effect": "media_derivative_create",
1028
+ "target_scope": "merchant_model",
1029
+ "authorization": "media_write_permission",
1030
+ "recovery_requirement": "original_asset_retained",
1031
+ "actor_identity": "host_authenticated_context_only"
1032
+ }
1033
+ },
1034
+ {
1035
+ "id": "tool_product_artwork_preflight",
1036
+ "name": "product.artwork.preflight",
1037
+ "description": "product.artwork.preflight: use the authorized merchant_product_artwork domain service; validate source versions, resource ownership and results.",
1038
+ "input_schema": {
1039
+ "type": "object",
1040
+ "properties": {
1041
+ "assetId": {
1042
+ "type": "string"
1043
+ },
1044
+ "productId": {
1045
+ "type": "string"
1046
+ },
1047
+ "placement": {
1048
+ "type": "string"
1049
+ }
1050
+ },
1051
+ "required": [
1052
+ "assetId",
1053
+ "productId"
1054
+ ],
1055
+ "additionalProperties": false
1056
+ },
1057
+ "output_schema": null,
1058
+ "capability_key": "commerce.product.read",
1059
+ "handler_ref": "product.artwork.preflight",
1060
+ "policy": {
1061
+ "name": "product.artwork.preflight",
1062
+ "pack": "product",
1063
+ "effect": "read",
1064
+ "target_scope": "merchant_product_artwork",
1065
+ "authorization": "resource_read_permission",
1066
+ "recovery_requirement": "none",
1067
+ "actor_identity": "host_authenticated_context_only"
1068
+ }
1069
+ },
1070
+ {
1071
+ "id": "tool_cloudflare_r2_buckets_list",
1072
+ "name": "cloudflare.r2.buckets.list",
1073
+ "description": "cloudflare.r2.buckets.list: use the authorized authorized_cloudflare_connection domain service; validate source versions, resource ownership and results.",
1074
+ "input_schema": {
1075
+ "type": "object",
1076
+ "properties": {
1077
+ "connectionRef": {
1078
+ "type": "string"
1079
+ }
1080
+ },
1081
+ "required": [],
1082
+ "additionalProperties": false
1083
+ },
1084
+ "output_schema": null,
1085
+ "capability_key": "cloudflare.resources.read",
1086
+ "handler_ref": "cloudflare.r2.buckets.list",
1087
+ "policy": {
1088
+ "name": "cloudflare.r2.buckets.list",
1089
+ "pack": "cloudflare",
1090
+ "effect": "platform_read",
1091
+ "target_scope": "authorized_cloudflare_connection",
1092
+ "authorization": "operator_platform_read",
1093
+ "recovery_requirement": "none",
1094
+ "actor_identity": "host_authenticated_context_only"
1095
+ }
1096
+ },
1097
+ {
1098
+ "id": "tool_cloudflare_r2_objects_inventory",
1099
+ "name": "cloudflare.r2.objects.inventory",
1100
+ "description": "cloudflare.r2.objects.inventory: use the authorized authorized_r2_bucket domain service; validate source versions, resource ownership and results.",
1101
+ "input_schema": {
1102
+ "type": "object",
1103
+ "properties": {
1104
+ "bucketRef": {
1105
+ "type": "string"
1106
+ },
1107
+ "prefix": {
1108
+ "type": "string"
1109
+ },
1110
+ "cursor": {
1111
+ "type": "string"
1112
+ },
1113
+ "pageSize": {
1114
+ "type": "integer",
1115
+ "minimum": 1,
1116
+ "maximum": 1000
1117
+ }
1118
+ },
1119
+ "required": [
1120
+ "bucketRef"
1121
+ ],
1122
+ "additionalProperties": false
1123
+ },
1124
+ "output_schema": null,
1125
+ "capability_key": "cloudflare.r2.objects.read",
1126
+ "handler_ref": "cloudflare.r2.objects.inventory",
1127
+ "policy": {
1128
+ "name": "cloudflare.r2.objects.inventory",
1129
+ "pack": "cloudflare",
1130
+ "effect": "platform_read",
1131
+ "target_scope": "authorized_r2_bucket",
1132
+ "authorization": "operator_or_delegated_bucket_read",
1133
+ "recovery_requirement": "none",
1134
+ "actor_identity": "host_authenticated_context_only"
1135
+ }
1136
+ },
1137
+ {
1138
+ "id": "tool_media_image_background_remove",
1139
+ "name": "media.image.background.remove",
1140
+ "description": "Remove a connected flat background or use an installed subject segmenter; preserve original pixels and create a PNG derivative.",
1141
+ "input_schema": {
1142
+ "type": "object",
1143
+ "properties": {
1144
+ "assetId": {
1145
+ "type": "string",
1146
+ "minLength": 1
1147
+ },
1148
+ "method": {
1149
+ "type": "string",
1150
+ "enum": [
1151
+ "flat_connected",
1152
+ "subject_ai"
1153
+ ]
1154
+ },
1155
+ "tolerance": {
1156
+ "type": "integer",
1157
+ "minimum": 0,
1158
+ "maximum": 255
1159
+ },
1160
+ "idempotencyKey": {
1161
+ "type": "string"
1162
+ }
1163
+ },
1164
+ "required": [
1165
+ "assetId"
1166
+ ],
1167
+ "additionalProperties": false
1168
+ },
1169
+ "output_schema": null,
1170
+ "capability_key": "media.image.write",
1171
+ "handler_ref": "media.image.background.remove",
1172
+ "policy": {
1173
+ "name": "media.image.background.remove",
1174
+ "pack": "media",
1175
+ "effect": "media_derivative_create",
1176
+ "target_scope": "merchant_media",
1177
+ "authorization": "media_write_permission",
1178
+ "recovery_requirement": "original_and_derivative",
1179
+ "actor_identity": "host_authenticated_context_only"
1180
+ }
1181
+ },
1182
+ {
1183
+ "id": "tool_media_image_generate",
1184
+ "name": "media.image.generate",
1185
+ "description": "Generate reviewable image drafts via installed authorized image provider; do not auto-promote generated output.",
1186
+ "input_schema": {
1187
+ "type": "object",
1188
+ "properties": {
1189
+ "prompt": {
1190
+ "type": "string",
1191
+ "minLength": 1
1192
+ },
1193
+ "model": {
1194
+ "type": "string"
1195
+ },
1196
+ "size": {
1197
+ "type": "string"
1198
+ },
1199
+ "variations": {
1200
+ "type": "integer",
1201
+ "minimum": 1,
1202
+ "maximum": 8
1203
+ }
1204
+ },
1205
+ "required": [
1206
+ "prompt"
1207
+ ],
1208
+ "additionalProperties": false
1209
+ },
1210
+ "output_schema": null,
1211
+ "capability_key": "media.image.generate",
1212
+ "handler_ref": "media.image.generate",
1213
+ "policy": {
1214
+ "name": "media.image.generate",
1215
+ "pack": "media",
1216
+ "effect": "media_draft_create",
1217
+ "target_scope": "merchant_media",
1218
+ "authorization": "image_generation_permission",
1219
+ "recovery_requirement": "receipt",
1220
+ "actor_identity": "host_authenticated_context_only"
1221
+ }
1222
+ },
1223
+ {
1224
+ "id": "tool_media_image_edit",
1225
+ "name": "media.image.edit",
1226
+ "description": "Edit a previously owned image reference via the authorized provider, returning a draft and source lineage.",
1227
+ "input_schema": {
1228
+ "type": "object",
1229
+ "properties": {
1230
+ "prompt": {
1231
+ "type": "string",
1232
+ "minLength": 1
1233
+ },
1234
+ "sourceArtifactRef": {
1235
+ "type": "string",
1236
+ "minLength": 1
1237
+ },
1238
+ "model": {
1239
+ "type": "string"
1240
+ },
1241
+ "size": {
1242
+ "type": "string"
1243
+ }
1244
+ },
1245
+ "required": [
1246
+ "prompt",
1247
+ "sourceArtifactRef"
1248
+ ],
1249
+ "additionalProperties": false
1250
+ },
1251
+ "output_schema": null,
1252
+ "capability_key": "media.image.edit",
1253
+ "handler_ref": "media.image.edit",
1254
+ "policy": {
1255
+ "name": "media.image.edit",
1256
+ "pack": "media",
1257
+ "effect": "media_draft_create",
1258
+ "target_scope": "merchant_media",
1259
+ "authorization": "image_generation_permission",
1260
+ "recovery_requirement": "receipt",
1261
+ "actor_identity": "host_authenticated_context_only"
1262
+ }
1263
+ },
1264
+ {
1265
+ "id": "tool_media_image_inspect",
1266
+ "name": "media.image.inspect",
1267
+ "description": "Inspect owned raster image dimensions, format and alpha properties.",
1268
+ "input_schema": {
1269
+ "type": "object",
1270
+ "properties": {
1271
+ "assetId": {
1272
+ "type": "string",
1273
+ "minLength": 1
1274
+ }
1275
+ },
1276
+ "required": [
1277
+ "assetId"
1278
+ ],
1279
+ "additionalProperties": false
1280
+ },
1281
+ "output_schema": null,
1282
+ "capability_key": "media.image.read",
1283
+ "handler_ref": "media.image.inspect",
1284
+ "policy": {
1285
+ "name": "media.image.inspect",
1286
+ "pack": "media",
1287
+ "effect": "read",
1288
+ "target_scope": "merchant_media",
1289
+ "authorization": "resource_read_permission",
1290
+ "recovery_requirement": "receipt",
1291
+ "actor_identity": "host_authenticated_context_only"
1292
+ }
1293
+ },
1294
+ {
1295
+ "id": "tool_media_image_optimize",
1296
+ "name": "media.image.optimize",
1297
+ "description": "Create an immutable optimize image derivative using the installed image processor, retaining the original and provenance.",
1298
+ "input_schema": {
1299
+ "type": "object",
1300
+ "properties": {
1301
+ "assetId": {
1302
+ "type": "string",
1303
+ "minLength": 1
1304
+ },
1305
+ "idempotencyKey": {
1306
+ "type": "string"
1307
+ },
1308
+ "format": {
1309
+ "type": "string",
1310
+ "enum": [
1311
+ "png",
1312
+ "webp",
1313
+ "jpeg"
1314
+ ]
1315
+ },
1316
+ "quality": {
1317
+ "type": "integer",
1318
+ "minimum": 1,
1319
+ "maximum": 100
1320
+ }
1321
+ },
1322
+ "required": [
1323
+ "assetId"
1324
+ ],
1325
+ "additionalProperties": false
1326
+ },
1327
+ "output_schema": null,
1328
+ "capability_key": "media.image.write",
1329
+ "handler_ref": "media.image.optimize",
1330
+ "policy": {
1331
+ "name": "media.image.optimize",
1332
+ "pack": "media",
1333
+ "effect": "media_derivative_create",
1334
+ "target_scope": "merchant_media",
1335
+ "authorization": "media_write_permission",
1336
+ "recovery_requirement": "original_and_derivative",
1337
+ "actor_identity": "host_authenticated_context_only"
1338
+ }
1339
+ },
1340
+ {
1341
+ "id": "tool_media_image_resize",
1342
+ "name": "media.image.resize",
1343
+ "description": "Create an immutable resize image derivative using the installed image processor, retaining the original and provenance.",
1344
+ "input_schema": {
1345
+ "type": "object",
1346
+ "properties": {
1347
+ "assetId": {
1348
+ "type": "string",
1349
+ "minLength": 1
1350
+ },
1351
+ "idempotencyKey": {
1352
+ "type": "string"
1353
+ },
1354
+ "format": {
1355
+ "type": "string",
1356
+ "enum": [
1357
+ "png",
1358
+ "webp",
1359
+ "jpeg"
1360
+ ]
1361
+ },
1362
+ "quality": {
1363
+ "type": "integer",
1364
+ "minimum": 1,
1365
+ "maximum": 100
1366
+ },
1367
+ "width": {
1368
+ "type": "integer",
1369
+ "minimum": 1,
1370
+ "maximum": 20000
1371
+ },
1372
+ "height": {
1373
+ "type": "integer",
1374
+ "minimum": 1,
1375
+ "maximum": 20000
1376
+ },
1377
+ "fit": {
1378
+ "type": "string",
1379
+ "enum": [
1380
+ "inside",
1381
+ "cover",
1382
+ "contain",
1383
+ "fill"
1384
+ ]
1385
+ },
1386
+ "allowUpscale": {
1387
+ "type": "boolean"
1388
+ }
1389
+ },
1390
+ "required": [
1391
+ "assetId"
1392
+ ],
1393
+ "additionalProperties": false
1394
+ },
1395
+ "output_schema": null,
1396
+ "capability_key": "media.image.write",
1397
+ "handler_ref": "media.image.resize",
1398
+ "policy": {
1399
+ "name": "media.image.resize",
1400
+ "pack": "media",
1401
+ "effect": "media_derivative_create",
1402
+ "target_scope": "merchant_media",
1403
+ "authorization": "media_write_permission",
1404
+ "recovery_requirement": "original_and_derivative",
1405
+ "actor_identity": "host_authenticated_context_only"
1406
+ }
1407
+ },
1408
+ {
1409
+ "id": "tool_media_image_crop",
1410
+ "name": "media.image.crop",
1411
+ "description": "Create an immutable crop image derivative using the installed image processor, retaining the original and provenance.",
1412
+ "input_schema": {
1413
+ "type": "object",
1414
+ "properties": {
1415
+ "assetId": {
1416
+ "type": "string",
1417
+ "minLength": 1
1418
+ },
1419
+ "idempotencyKey": {
1420
+ "type": "string"
1421
+ },
1422
+ "format": {
1423
+ "type": "string",
1424
+ "enum": [
1425
+ "png",
1426
+ "webp",
1427
+ "jpeg"
1428
+ ]
1429
+ },
1430
+ "quality": {
1431
+ "type": "integer",
1432
+ "minimum": 1,
1433
+ "maximum": 100
1434
+ },
1435
+ "left": {
1436
+ "type": "integer",
1437
+ "minimum": 0
1438
+ },
1439
+ "top": {
1440
+ "type": "integer",
1441
+ "minimum": 0
1442
+ },
1443
+ "width": {
1444
+ "type": "integer",
1445
+ "minimum": 1,
1446
+ "maximum": 20000
1447
+ },
1448
+ "height": {
1449
+ "type": "integer",
1450
+ "minimum": 1,
1451
+ "maximum": 20000
1452
+ }
1453
+ },
1454
+ "required": [
1455
+ "assetId",
1456
+ "left",
1457
+ "top",
1458
+ "width",
1459
+ "height"
1460
+ ],
1461
+ "additionalProperties": false
1462
+ },
1463
+ "output_schema": null,
1464
+ "capability_key": "media.image.write",
1465
+ "handler_ref": "media.image.crop",
1466
+ "policy": {
1467
+ "name": "media.image.crop",
1468
+ "pack": "media",
1469
+ "effect": "media_derivative_create",
1470
+ "target_scope": "merchant_media",
1471
+ "authorization": "media_write_permission",
1472
+ "recovery_requirement": "original_and_derivative",
1473
+ "actor_identity": "host_authenticated_context_only"
1474
+ }
1475
+ },
1476
+ {
1477
+ "id": "tool_media_image_convert",
1478
+ "name": "media.image.convert",
1479
+ "description": "Create an immutable convert image derivative using the installed image processor, retaining the original and provenance.",
1480
+ "input_schema": {
1481
+ "type": "object",
1482
+ "properties": {
1483
+ "assetId": {
1484
+ "type": "string",
1485
+ "minLength": 1
1486
+ },
1487
+ "idempotencyKey": {
1488
+ "type": "string"
1489
+ },
1490
+ "format": {
1491
+ "type": "string",
1492
+ "enum": [
1493
+ "png",
1494
+ "webp",
1495
+ "jpeg"
1496
+ ]
1497
+ },
1498
+ "quality": {
1499
+ "type": "integer",
1500
+ "minimum": 1,
1501
+ "maximum": 100
1502
+ }
1503
+ },
1504
+ "required": [
1505
+ "assetId"
1506
+ ],
1507
+ "additionalProperties": false
1508
+ },
1509
+ "output_schema": null,
1510
+ "capability_key": "media.image.write",
1511
+ "handler_ref": "media.image.convert",
1512
+ "policy": {
1513
+ "name": "media.image.convert",
1514
+ "pack": "media",
1515
+ "effect": "media_derivative_create",
1516
+ "target_scope": "merchant_media",
1517
+ "authorization": "media_write_permission",
1518
+ "recovery_requirement": "original_and_derivative",
1519
+ "actor_identity": "host_authenticated_context_only"
1520
+ }
1521
+ },
1522
+ {
1523
+ "id": "tool_media_image_trim_alpha",
1524
+ "name": "media.image.trim_alpha",
1525
+ "description": "Create an immutable trim_alpha image derivative using the installed image processor, retaining the original and provenance.",
1526
+ "input_schema": {
1527
+ "type": "object",
1528
+ "properties": {
1529
+ "assetId": {
1530
+ "type": "string",
1531
+ "minLength": 1
1532
+ },
1533
+ "idempotencyKey": {
1534
+ "type": "string"
1535
+ },
1536
+ "format": {
1537
+ "type": "string",
1538
+ "enum": [
1539
+ "png",
1540
+ "webp",
1541
+ "jpeg"
1542
+ ]
1543
+ },
1544
+ "quality": {
1545
+ "type": "integer",
1546
+ "minimum": 1,
1547
+ "maximum": 100
1548
+ }
1549
+ },
1550
+ "required": [
1551
+ "assetId"
1552
+ ],
1553
+ "additionalProperties": false
1554
+ },
1555
+ "output_schema": null,
1556
+ "capability_key": "media.image.write",
1557
+ "handler_ref": "media.image.trim_alpha",
1558
+ "policy": {
1559
+ "name": "media.image.trim_alpha",
1560
+ "pack": "media",
1561
+ "effect": "media_derivative_create",
1562
+ "target_scope": "merchant_media",
1563
+ "authorization": "media_write_permission",
1564
+ "recovery_requirement": "original_and_derivative",
1565
+ "actor_identity": "host_authenticated_context_only"
1566
+ }
1567
+ },
1568
+ {
1569
+ "id": "tool_media_image_normalize_color",
1570
+ "name": "media.image.normalize_color",
1571
+ "description": "Create an immutable normalize_color image derivative using the installed image processor, retaining the original and provenance.",
1572
+ "input_schema": {
1573
+ "type": "object",
1574
+ "properties": {
1575
+ "assetId": {
1576
+ "type": "string",
1577
+ "minLength": 1
1578
+ },
1579
+ "idempotencyKey": {
1580
+ "type": "string"
1581
+ },
1582
+ "format": {
1583
+ "type": "string",
1584
+ "enum": [
1585
+ "png",
1586
+ "webp",
1587
+ "jpeg"
1588
+ ]
1589
+ },
1590
+ "quality": {
1591
+ "type": "integer",
1592
+ "minimum": 1,
1593
+ "maximum": 100
1594
+ }
1595
+ },
1596
+ "required": [
1597
+ "assetId"
1598
+ ],
1599
+ "additionalProperties": false
1600
+ },
1601
+ "output_schema": null,
1602
+ "capability_key": "media.image.write",
1603
+ "handler_ref": "media.image.normalize_color",
1604
+ "policy": {
1605
+ "name": "media.image.normalize_color",
1606
+ "pack": "media",
1607
+ "effect": "media_derivative_create",
1608
+ "target_scope": "merchant_media",
1609
+ "authorization": "media_write_permission",
1610
+ "recovery_requirement": "original_and_derivative",
1611
+ "actor_identity": "host_authenticated_context_only"
1612
+ }
1613
+ },
1614
+ {
1615
+ "id": "tool_media_model_validateStructural",
1616
+ "name": "media.model.validateStructural",
1617
+ "description": "Inspect a GLB container header, embedded JSON and basic structural counts; not a Khronos conformance check.",
1618
+ "input_schema": {
1619
+ "type": "object",
1620
+ "properties": {
1621
+ "assetId": {
1622
+ "type": "string",
1623
+ "minLength": 1
1624
+ }
1625
+ },
1626
+ "required": [
1627
+ "assetId"
1628
+ ],
1629
+ "additionalProperties": false
1630
+ },
1631
+ "output_schema": null,
1632
+ "capability_key": "media.model.read",
1633
+ "handler_ref": "media.model.validateStructural",
1634
+ "policy": {
1635
+ "name": "media.model.validateStructural",
1636
+ "pack": "media",
1637
+ "effect": "read",
1638
+ "target_scope": "merchant_model",
1639
+ "authorization": "resource_read_permission",
1640
+ "recovery_requirement": "receipt",
1641
+ "actor_identity": "host_authenticated_context_only"
1642
+ }
1643
+ },
1644
+ {
1645
+ "id": "tool_media_artwork_normalize",
1646
+ "name": "media.artwork.normalize",
1647
+ "description": "Use an authorized agentsam-merch raster normalization implementation to prepare artwork as a versioned derivative.",
1648
+ "input_schema": {
1649
+ "type": "object",
1650
+ "properties": {
1651
+ "assetId": {
1652
+ "type": "string",
1653
+ "minLength": 1
1654
+ },
1655
+ "profile": {
1656
+ "type": "string",
1657
+ "minLength": 1
1658
+ },
1659
+ "idempotencyKey": {
1660
+ "type": "string"
1661
+ }
1662
+ },
1663
+ "required": [
1664
+ "assetId",
1665
+ "profile"
1666
+ ],
1667
+ "additionalProperties": false
1668
+ },
1669
+ "output_schema": null,
1670
+ "capability_key": "media.artwork.write",
1671
+ "handler_ref": "media.artwork.normalize",
1672
+ "policy": {
1673
+ "name": "media.artwork.normalize",
1674
+ "pack": "media",
1675
+ "effect": "media_derivative_create",
1676
+ "target_scope": "merchant_artwork",
1677
+ "authorization": "media_write_permission",
1678
+ "recovery_requirement": "original_and_derivative",
1679
+ "actor_identity": "host_authenticated_context_only"
1680
+ }
1681
+ },
1682
+ {
1683
+ "id": "tool_media_artwork_vector_trace",
1684
+ "name": "media.artwork.vector.trace",
1685
+ "description": "Trace raster artwork to SVG using a verified tracing runtime; preserve original and evaluate quality.",
1686
+ "input_schema": {
1687
+ "type": "object",
1688
+ "properties": {
1689
+ "assetId": {
1690
+ "type": "string",
1691
+ "minLength": 1
1692
+ },
1693
+ "profile": {
1694
+ "type": "string",
1695
+ "minLength": 1
1696
+ }
1697
+ },
1698
+ "required": [
1699
+ "assetId"
1700
+ ],
1701
+ "additionalProperties": false
1702
+ },
1703
+ "output_schema": null,
1704
+ "capability_key": "media.artwork.write",
1705
+ "handler_ref": "media.artwork.vector.trace",
1706
+ "policy": {
1707
+ "name": "media.artwork.vector.trace",
1708
+ "pack": "media",
1709
+ "effect": "media_derivative_create",
1710
+ "target_scope": "merchant_artwork",
1711
+ "authorization": "media_write_permission",
1712
+ "recovery_requirement": "original_and_derivative",
1713
+ "actor_identity": "host_authenticated_context_only"
1714
+ }
1715
+ },
1716
+ {
1717
+ "id": "tool_media_artwork_svg_normalize",
1718
+ "name": "media.artwork.svg.normalize",
1719
+ "description": "Normalize authored SVG via an installed vetted SVG implementation; store a derivative.",
1720
+ "input_schema": {
1721
+ "type": "object",
1722
+ "properties": {
1723
+ "assetId": {
1724
+ "type": "string",
1725
+ "minLength": 1
1726
+ }
1727
+ },
1728
+ "required": [
1729
+ "assetId"
1730
+ ],
1731
+ "additionalProperties": false
1732
+ },
1733
+ "output_schema": null,
1734
+ "capability_key": "media.artwork.write",
1735
+ "handler_ref": "media.artwork.svg.normalize",
1736
+ "policy": {
1737
+ "name": "media.artwork.svg.normalize",
1738
+ "pack": "media",
1739
+ "effect": "media_derivative_create",
1740
+ "target_scope": "merchant_artwork",
1741
+ "authorization": "media_write_permission",
1742
+ "recovery_requirement": "original_and_derivative",
1743
+ "actor_identity": "host_authenticated_context_only"
1744
+ }
1745
+ }
1746
+ ]);