@inneranimalmedia/agentsam-sdk 2.6.4 → 2.6.5

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 (418) hide show
  1. package/AGENTSAM.md +11 -0
  2. package/README.md +15 -9
  3. package/apps/client-cms-editor/AGENTS.md +12 -0
  4. package/apps/client-cms-editor/IMPORT_PROVENANCE.json +8 -0
  5. package/apps/client-cms-editor/README.md +72 -0
  6. package/apps/client-cms-editor/agentsam.app.json +57 -0
  7. package/apps/client-cms-editor/backend/README.md +5 -0
  8. package/apps/client-cms-editor/backend/package.json +22 -0
  9. package/apps/client-cms-editor/backend/src/api/client.ts +200 -0
  10. package/apps/client-cms-editor/backend/src/demo-bootstrap.ts +145 -0
  11. package/apps/client-cms-editor/backend/src/index.ts +6 -0
  12. package/apps/client-cms-editor/backend/src/model.ts +115 -0
  13. package/apps/client-cms-editor/backend/src/preview/bridge.ts +79 -0
  14. package/apps/client-cms-editor/backend/src/preview/urls.ts +55 -0
  15. package/apps/client-cms-editor/backend/src/routing/cms-route.js +293 -0
  16. package/apps/client-cms-editor/backend/src/routing/index.js +10 -0
  17. package/apps/client-cms-editor/backend/src/storefront.ts +52 -0
  18. package/apps/client-cms-editor/backend/tsconfig.json +15 -0
  19. package/apps/client-cms-editor/backend/worker/index.js +34 -0
  20. package/apps/client-cms-editor/backend/wrangler.jsonc +11 -0
  21. package/apps/client-cms-editor/bin/agentsam-cms.mjs +229 -0
  22. package/apps/client-cms-editor/frontend/index.html +12 -0
  23. package/apps/client-cms-editor/frontend/package.json +33 -0
  24. package/apps/client-cms-editor/frontend/src/AgentSamDrawer.tsx +188 -0
  25. package/apps/client-cms-editor/frontend/src/CmsAgentSurface.tsx +191 -0
  26. package/apps/client-cms-editor/frontend/src/CmsEditor.tsx +1345 -0
  27. package/apps/client-cms-editor/frontend/src/env.d.ts +14 -0
  28. package/apps/client-cms-editor/frontend/src/index.ts +8 -0
  29. package/apps/client-cms-editor/frontend/src/lib/content-safety.ts +63 -0
  30. package/apps/client-cms-editor/frontend/src/main.tsx +17 -0
  31. package/apps/client-cms-editor/frontend/src/mount.tsx +51 -0
  32. package/apps/client-cms-editor/frontend/src/styles/agentsam-drawer.css +214 -0
  33. package/apps/client-cms-editor/frontend/src/styles/cmsShell.css +1739 -0
  34. package/apps/client-cms-editor/frontend/src/styles/studio.css +106 -0
  35. package/apps/client-cms-editor/frontend/src/surfaces/CmsDashboard.tsx +313 -0
  36. package/apps/client-cms-editor/frontend/src/surfaces/CmsGuidedChatHero.tsx +121 -0
  37. package/apps/client-cms-editor/frontend/src/surfaces/CmsHubPage.tsx +132 -0
  38. package/apps/client-cms-editor/frontend/src/surfaces/CmsSiteSwitcher.tsx +176 -0
  39. package/apps/client-cms-editor/frontend/src/surfaces/index.ts +5 -0
  40. package/apps/client-cms-editor/frontend/src/surfaces/types.ts +48 -0
  41. package/apps/client-cms-editor/frontend/tsconfig.json +25 -0
  42. package/apps/client-cms-editor/frontend/vite.config.ts +13 -0
  43. package/apps/client-cms-editor/package-lock.json +3832 -0
  44. package/apps/client-cms-editor/package.json +23 -0
  45. package/apps/client-cms-editor/reference/DONOR_README.md +52 -0
  46. package/apps/client-cms-editor/reference/DONOR_package-lock.json +1253 -0
  47. package/apps/client-cms-editor/reference/DONOR_tsconfig.json +15 -0
  48. package/apps/client-cms-editor/shared/cms/package.json +21 -0
  49. package/apps/client-cms-editor/shared/cms/src/agent-context.ts +35 -0
  50. package/apps/client-cms-editor/shared/cms/src/cloudflare-bindings.ts +51 -0
  51. package/apps/client-cms-editor/shared/cms/src/editor-types.ts +58 -0
  52. package/apps/client-cms-editor/shared/cms/src/index.ts +5 -0
  53. package/apps/client-cms-editor/shared/cms/src/publication.ts +24 -0
  54. package/apps/client-cms-editor/shared/cms/src/routes.ts +11 -0
  55. package/apps/client-cms-editor/shared/cms/tsconfig.json +12 -0
  56. package/bin/agentsam-rapid-rust +36 -0
  57. package/docs/AUTH_IDENTITY_CONTRACT.md +2 -0
  58. package/docs/MACHINE_INTELLIGENCE.md +120 -0
  59. package/docs/WINDOWS_RUNTIME_INSTALL.md +30 -0
  60. package/docs/architecture/AGENTSAM_APPLICATION_CONTRACT.md +188 -0
  61. package/docs/architecture/AGENTSAM_RUNTIME_PROTOCOL.md +151 -0
  62. package/docs/architecture/LOCAL_STUDIO_CLOUDFLARE_OAUTH.md +12 -4
  63. package/docs/architecture/R2_SLUG_NAMESPACE.md +20 -0
  64. package/docs/architecture/WORK_PRODUCT_EXTRACTION.md +97 -0
  65. package/docs/brand/AGENT_SAM_ICON_GRAMMAR.md +70 -0
  66. package/docs/content-studio/HOST_MOUNT_CHECKLIST.md +71 -0
  67. package/docs/content-studio/REVISION_GATE_2026-09-27.md +501 -0
  68. package/docs/contracts/capability-install-planner.md +67 -0
  69. package/docs/contracts/environment-vocabulary.md +195 -0
  70. package/docs/contracts/google-cloud-oauth-setup.md +199 -0
  71. package/docs/local-studio/WORKMODE_DONOR_NOTES.md +1 -1
  72. package/docs/plans/LOCAL-STUDIO-GRADUATION-2026-09-26.md +290 -0
  73. package/docs/plans/LOCAL-STUDIO-REAL-APP-CONTRACT-ADDENDUM-2026-09-27.md +394 -0
  74. package/docs/plans/MACHINE-FIRST-APPS-TUI-2026-09-24.md +227 -0
  75. package/docs/plans/TOMORROW-EXTENSIVE-TODO-2026-09-26.md +221 -0
  76. package/docs/plans/TOMORROW-MACHINE-FIRST-BRIEFING.md +145 -0
  77. package/docs/plans/UNIVERSAL-INGEST-MACHINE-FIRST-2026-09-24.md +215 -0
  78. package/docs/plugins.md +2 -2
  79. package/docs/product/AGENTSAM_PRODUCT_EXPERIENCE_STANDARD.md +280 -0
  80. package/docs/product/LOCAL_STUDIO_DESKTOP_EXPERIENCE.md +139 -0
  81. package/docs/product/README.md +8 -0
  82. package/docs/rapid-rust-wasm.md +35 -0
  83. package/migrations/d1/0016_cloudflare_oauth_user_oauth_tokens_ssot.sql +14 -0
  84. package/package.json +73 -14
  85. package/packages/agentsam-brand/README.md +106 -11
  86. package/packages/agentsam-brand/bin/agentsam-brand.mjs +9 -0
  87. package/packages/agentsam-brand/package.json +39 -7
  88. package/packages/agentsam-brand/src/adapters/cloudflare-images.js +453 -0
  89. package/packages/agentsam-brand/src/adapters/cloudflare-r2.js +74 -0
  90. package/packages/agentsam-brand/src/adapters/d1-registry.js +26 -0
  91. package/packages/agentsam-brand/src/adapters/filesystem.js +59 -0
  92. package/packages/agentsam-brand/src/adapters/memory.js +31 -0
  93. package/packages/agentsam-brand/src/cli/controller.js +503 -0
  94. package/packages/agentsam-brand/src/cli/wizard.js +526 -0
  95. package/packages/agentsam-brand/src/core/capabilities.js +201 -0
  96. package/packages/agentsam-brand/src/core/derivatives.js +211 -0
  97. package/packages/agentsam-brand/src/core/errors.js +12 -0
  98. package/packages/agentsam-brand/src/core/ingest.js +195 -0
  99. package/packages/agentsam-brand/src/core/inspect.js +109 -0
  100. package/packages/agentsam-brand/src/core/keys.js +83 -0
  101. package/packages/agentsam-brand/src/core/naming.js +142 -0
  102. package/packages/agentsam-brand/src/core/optimize.js +316 -0
  103. package/packages/agentsam-brand/src/core/pack.js +305 -0
  104. package/packages/agentsam-brand/src/core/plan.js +276 -0
  105. package/packages/agentsam-brand/src/core/preview.js +159 -0
  106. package/packages/agentsam-brand/src/core/processors/cloudflare.js +68 -0
  107. package/packages/agentsam-brand/src/core/processors/contract.js +203 -0
  108. package/packages/agentsam-brand/src/core/processors/index.js +148 -0
  109. package/packages/agentsam-brand/src/core/processors/native.js +82 -0
  110. package/packages/agentsam-brand/src/core/processors/sharp.js +113 -0
  111. package/packages/agentsam-brand/src/core/processors/squoosh-binary.js +195 -0
  112. package/packages/agentsam-brand/src/core/promote.js +288 -0
  113. package/packages/agentsam-brand/src/core/receipts.js +155 -0
  114. package/packages/agentsam-brand/src/core/v2/compile.js +280 -0
  115. package/packages/agentsam-brand/src/core/v2/derivatives-semantic.js +207 -0
  116. package/packages/agentsam-brand/src/core/v2/ingest-graph.js +387 -0
  117. package/packages/agentsam-brand/src/core/v2/roles.js +180 -0
  118. package/packages/agentsam-brand/src/core/v2/schema.js +209 -0
  119. package/packages/agentsam-brand/src/core/v2/templates.js +114 -0
  120. package/packages/agentsam-brand/src/index.js +193 -36
  121. package/packages/agentsam-brand/src/presets/app-icon.json +16 -0
  122. package/packages/agentsam-brand/src/presets/favicon.json +17 -0
  123. package/packages/agentsam-brand/src/presets/hero.json +12 -0
  124. package/packages/agentsam-brand/src/presets/index.js +40 -0
  125. package/packages/agentsam-brand/src/presets/logo.json +12 -0
  126. package/packages/agentsam-brand/src/presets/model.json +8 -0
  127. package/packages/agentsam-brand/src/presets/og-image.json +10 -0
  128. package/packages/agentsam-brand/src/presets/product-shot.json +11 -0
  129. package/packages/agentsam-brand/src/presets/social-image.json +10 -0
  130. package/packages/agentsam-brand/src/presets/web-image.json +10 -0
  131. package/packages/agentsam-contracts/src/artifacts.ts +41 -0
  132. package/packages/agentsam-knowledge/src/autorag/index.js +1 -1
  133. package/packages/agentsam-knowledge/src/providers/index.js +6 -4
  134. package/packages/agentsam-knowledge/src/providers/ollama-endpoint.js +31 -0
  135. package/packages/agentsam-knowledge/test/autorag.test.mjs +22 -1
  136. package/packages/agentsam-nav/package.json +2 -2
  137. package/packages/agentsam-rapid-rust/Cargo.lock +344 -0
  138. package/packages/agentsam-rapid-rust/Cargo.toml +18 -0
  139. package/packages/agentsam-rapid-rust/README.md +5 -0
  140. package/packages/agentsam-rapid-rust/src/main.rs +718 -0
  141. package/packages/agentsam-rapid-rust/templates/api/Cargo.toml.tmpl +18 -0
  142. package/packages/agentsam-rapid-rust/templates/api/src/lib.rs.tmpl +17 -0
  143. package/packages/agentsam-rapid-rust/templates/common/README.md.tmpl +22 -0
  144. package/packages/agentsam-rapid-rust/templates/common/package.json.tmpl +12 -0
  145. package/packages/agentsam-rapid-rust/templates/common/wrangler.toml.tmpl +6 -0
  146. package/packages/agentsam-rapid-rust/templates/crypto-auth/Cargo.toml.tmpl +21 -0
  147. package/packages/agentsam-rapid-rust/templates/crypto-auth/src/lib.rs.tmpl +32 -0
  148. package/packages/agentsam-rapid-rust/templates/data-processor/Cargo.toml.tmpl +18 -0
  149. package/packages/agentsam-rapid-rust/templates/data-processor/src/lib.rs.tmpl +41 -0
  150. package/packages/agentsam-rapid-rust/templates/shared-core/Cargo.toml.tmpl +9 -0
  151. package/packages/agentsam-rapid-rust/templates/shared-core/core/Cargo.toml.tmpl +7 -0
  152. package/packages/agentsam-rapid-rust/templates/shared-core/core/src/lib.rs.tmpl +23 -0
  153. package/packages/agentsam-rapid-rust/templates/shared-core/worker/Cargo.toml.tmpl +12 -0
  154. package/packages/agentsam-rapid-rust/templates/shared-core/worker/src/lib.rs.tmpl +16 -0
  155. package/packages/agentsam-rapid-rust/templates/shared-core/wrangler.toml.tmpl +6 -0
  156. package/packages/agentsam-repository/src/index.js +1 -0
  157. package/packages/agentsam-repository/src/merkle/semantic.js +3 -10
  158. package/packages/agentsam-repository/src/source-types.js +85 -0
  159. package/packages/agentsam-vault/README.md +96 -0
  160. package/packages/agentsam-vault/package.json +32 -0
  161. package/packages/agentsam-vault/src/contracts/credential.d.ts +78 -0
  162. package/packages/agentsam-vault/src/contracts/credential.js +132 -0
  163. package/packages/agentsam-vault/src/crypto/aes-gcm.d.ts +30 -0
  164. package/packages/agentsam-vault/src/crypto/aes-gcm.js +107 -0
  165. package/packages/agentsam-vault/src/crypto/oauth-envelope.js +150 -0
  166. package/packages/agentsam-vault/src/index.d.ts +9 -0
  167. package/packages/agentsam-vault/src/index.js +27 -0
  168. package/packages/agentsam-vault/src/providers/registry.js +90 -0
  169. package/packages/agentsam-vault/src/runtime/resolver.js +77 -0
  170. package/packages/agentsam-workbench/README.md +24 -0
  171. package/packages/agentsam-workbench/package.json +38 -0
  172. package/packages/agentsam-workbench/src/agent/AgentPanel.tsx +41 -0
  173. package/packages/agentsam-workbench/src/agent/ArtifactCard.tsx +9 -0
  174. package/packages/agentsam-workbench/src/agent/Composer.tsx +102 -0
  175. package/packages/agentsam-workbench/src/agent/ConnectedAgentPanel.tsx +194 -0
  176. package/packages/agentsam-workbench/src/agent/ContextualComposer.tsx +788 -0
  177. package/packages/agentsam-workbench/src/agent/GoalStatusStrip.tsx +38 -0
  178. package/packages/agentsam-workbench/src/agent/MiniAgentSam.tsx +86 -0
  179. package/packages/agentsam-workbench/src/agent/ModelSelect.tsx +19 -0
  180. package/packages/agentsam-workbench/src/agent/Thread.tsx +56 -0
  181. package/packages/agentsam-workbench/src/agent/ToolReceipt.tsx +11 -0
  182. package/packages/agentsam-workbench/src/agent/contextual-composer.css +611 -0
  183. package/packages/agentsam-workbench/src/agent/index.ts +10 -0
  184. package/packages/agentsam-workbench/src/agent/mini-agentsam.css +12 -0
  185. package/packages/agentsam-workbench/src/browser/BrowserFrame.tsx +37 -0
  186. package/packages/agentsam-workbench/src/browser/index.ts +1 -0
  187. package/packages/agentsam-workbench/src/index.ts +6 -0
  188. package/packages/agentsam-workbench/src/project-control.css +160 -0
  189. package/packages/agentsam-workbench/src/projects/ProjectsSurface.tsx +131 -0
  190. package/packages/agentsam-workbench/src/projects/index.ts +1 -0
  191. package/packages/agentsam-workbench/src/shell/Breadcrumb.tsx +35 -0
  192. package/packages/agentsam-workbench/src/shell/ResizableStage.tsx +99 -0
  193. package/packages/agentsam-workbench/src/shell/SidePanel.tsx +5 -0
  194. package/packages/agentsam-workbench/src/shell/index.ts +4 -0
  195. package/packages/agentsam-workbench/src/shell/surfaceRegistry.ts +29 -0
  196. package/packages/agentsam-workbench/src/terminal/TerminalSurface.tsx +5 -0
  197. package/packages/agentsam-workbench/src/terminal/index.ts +1 -0
  198. package/packages/agentsam-workbench/src/timeline/GanttBoard.tsx +258 -0
  199. package/packages/agentsam-workbench/src/timeline/index.ts +1 -0
  200. package/packages/agentsam-workbench/tsconfig.json +13 -0
  201. package/packages/connectors/cloudflare/OAUTH_STORAGE_AUDIT.md +53 -0
  202. package/packages/connectors/cloudflare/package.json +3 -1
  203. package/packages/connectors/cloudflare/src/api-client.js +279 -0
  204. package/packages/connectors/cloudflare/src/capabilities.js +585 -0
  205. package/packages/connectors/cloudflare/src/credential.js +318 -0
  206. package/packages/connectors/cloudflare/src/families/brand-protection.js +123 -0
  207. package/packages/connectors/cloudflare/src/families/keyless.js +114 -0
  208. package/packages/connectors/cloudflare/src/families/pages.js +151 -0
  209. package/packages/connectors/cloudflare/src/families/scanner.js +123 -0
  210. package/packages/connectors/cloudflare/src/families/snippets.js +207 -0
  211. package/packages/connectors/cloudflare/src/families/tag-gateway.js +46 -0
  212. package/packages/connectors/cloudflare/src/families/tags.js +124 -0
  213. package/packages/connectors/cloudflare/src/families/token-validation.js +95 -0
  214. package/packages/connectors/cloudflare/src/families/workflows.js +156 -0
  215. package/packages/connectors/cloudflare/src/index.js +102 -265
  216. package/packages/connectors/cloudflare/src/oauth-persist.js +336 -0
  217. package/packages/connectors/cloudflare/src/owner.js +42 -12
  218. package/packages/connectors/cloudflare/src/permission-options.js +1064 -0
  219. package/packages/connectors/cloudflare/src/routes.js +309 -144
  220. package/packages/connectors/cloudflare/src/scope-catalog.js +345 -0
  221. package/packages/connectors/cloudflare/src/vault.js +2 -2
  222. package/packages/connectors/cloudflare/tests/capabilities.test.mjs +276 -0
  223. package/packages/connectors/cloudflare/tests/connector.test.mjs +26 -30
  224. package/packages/connectors/cloudflare/tests/oauth-persist.test.mjs +125 -0
  225. package/packages/identity/.agentsam/features/oauth-login-portal/providers.json +22 -2
  226. package/packages/identity/.agentsam/features/oauth-login-portal/resources.json +10 -4
  227. package/packages/identity/.agentsam/features/oauth-login-portal/routes.json +20 -0
  228. package/packages/identity/README.md +1 -1
  229. package/packages/identity/backend/README.md +1 -1
  230. package/packages/identity/migrations/D1_SCHEMA_MAPPING.md +3 -2
  231. package/packages/identity/migrations/sqlite/004_identity_oauth_consent_catalog.sql +48 -0
  232. package/packages/identity/package.json +4 -3
  233. package/packages/identity/scripts/local-identity-bridge.mjs +184 -0
  234. package/packages/identity/scripts/preview-auth-portal.mjs +7 -7
  235. package/packages/identity/src/adapters/cloudflare-d1/index.js +31 -2
  236. package/packages/identity/src/adapters/sqlite/index.js +4 -1
  237. package/packages/identity/src/contracts/auth-config.js +28 -8
  238. package/packages/identity/src/contracts/external-identity.js +1 -1
  239. package/packages/identity/src/contracts/provider.js +1 -0
  240. package/packages/identity/src/frontend/auth-portal/README.md +2 -1
  241. package/packages/identity/src/frontend/auth-portal/pages/login.html +6 -5
  242. package/packages/identity/src/frontend/auth-portal/pages/reset.html +6 -5
  243. package/packages/identity/src/frontend/auth-portal/pages/signup.html +6 -5
  244. package/packages/identity/src/frontend/auth-portal/shared/company-branding.js +1 -1
  245. package/packages/identity/src/frontend/auth-portal/shared/desktop-identity-bridge.js +207 -0
  246. package/packages/identity/src/index.js +16 -0
  247. package/packages/identity/src/migrations/0001_identity_core.sql +19 -2
  248. package/packages/identity/src/migrations/0003_accounts_ssot.sql +20 -0
  249. package/packages/identity/src/migrations/README.md +5 -2
  250. package/packages/identity/src/oauth/README.md +10 -5
  251. package/packages/identity/src/oauth/consent-view.js +388 -0
  252. package/packages/identity/src/oauth/credentials.js +31 -11
  253. package/packages/identity/src/oauth/google-desktop-exchange.js +173 -0
  254. package/packages/identity/src/providers/cloudflare/oauth.js +3 -4
  255. package/packages/identity/src/providers/cloudflare/profile.js +49 -14
  256. package/packages/identity/src/providers/iam/index.js +27 -5
  257. package/packages/identity/src/server/identity-service.js +31 -2
  258. package/packages/identity/src/server/worker-router.js +111 -81
  259. package/packages/identity/tests/auth-config.test.mjs +3 -2
  260. package/packages/identity/tests/identity-init-scaffold.test.mjs +3 -0
  261. package/packages/identity/tests/identity-service.test.mjs +16 -0
  262. package/packages/identity/tests/native-session-worker.test.mjs +64 -0
  263. package/packages/identity/tests/oauth-consent-view.test.mjs +106 -0
  264. package/packages/identity/tests/oauth-credentials.test.mjs +17 -4
  265. package/packages/identity/tests/oauth-presets-accounts-ssot.test.mjs +58 -0
  266. package/packages/identity/tests/preview-auth-portal.test.mjs +3 -3
  267. package/packages/runtime-protocol/src/index.js +154 -0
  268. package/packages/theme-scenes/README.md +164 -0
  269. package/packages/theme-scenes/package.json +53 -0
  270. package/packages/theme-scenes/src/blocks/index.js +30 -0
  271. package/packages/theme-scenes/src/contracts/index.js +286 -0
  272. package/packages/theme-scenes/src/demos/index.js +65 -0
  273. package/packages/theme-scenes/src/index.js +75 -0
  274. package/packages/theme-scenes/src/presets/index.js +263 -0
  275. package/packages/theme-scenes/src/runtime/compile.js +119 -0
  276. package/packages/theme-scenes/src/scenes/index.js +146 -0
  277. package/packages/theme-scenes/src/shell/index.js +47 -0
  278. package/packages/theme-scenes/src/themes/index.js +129 -0
  279. package/packages/theme-scenes/src/visuals/index.js +41 -0
  280. package/packages/theme-scenes/test/theme-scenes.test.mjs +179 -0
  281. package/packages/work-graph/src/index.js +34 -1
  282. package/packages/work-graph/src/renderers/gantt-model.js +24 -0
  283. package/packages/work-graph/test/work-graph.test.mjs +27 -7
  284. package/protocol/README.md +15 -7
  285. package/protocol/apps/agentsam.app.v1.schema.json +89 -7
  286. package/protocol/apps/agentsam.host-install.v1.schema.json +36 -0
  287. package/protocol/assets/README.md +9 -0
  288. package/protocol/assets/asset-record.v1.schema.json +64 -0
  289. package/protocol/runtime/agentsam.runtime.v1.schema.json +75 -0
  290. package/protocol/scoring/README.md +10 -0
  291. package/protocol/scoring/scorecard.v1.schema.json +65 -0
  292. package/protocol/ui/icon-registry.mjs +1 -0
  293. package/registry/cms-rust-machine-20260928/installable-products.json +31 -0
  294. package/registry/cms-rust-machine-20260928/manifest.json +22 -0
  295. package/registry/cms-rust-machine-20260928/migration.sql +237 -0
  296. package/registry/cms-rust-machine-20260928/receipt.json +21 -0
  297. package/registry/cms-rust-machine-20260928/receipt.sql +27 -0
  298. package/scripts/build_rapid_rust_cli.py +83 -0
  299. package/src/attachments/index.js +6 -0
  300. package/src/attachments/intake.js +235 -0
  301. package/src/capabilities/repository-snapshot.js +19 -2
  302. package/src/cli/command-catalog.js +8 -0
  303. package/src/cli.js +182 -26
  304. package/src/commands/account-auth.js +94 -8
  305. package/src/commands/app.js +307 -3
  306. package/src/commands/billing.js +127 -0
  307. package/src/commands/brand.js +74 -60
  308. package/src/commands/cheat-sheet.js +154 -0
  309. package/src/commands/cloudflare-login.js +222 -0
  310. package/src/commands/cloudflare.js +453 -23
  311. package/src/commands/codebaseindex.js +6 -1
  312. package/src/commands/compute.js +4 -0
  313. package/src/commands/connections.js +11 -5
  314. package/src/commands/credentials.js +116 -0
  315. package/src/commands/gcloud-auth.js +427 -0
  316. package/src/commands/google-cloud.js +375 -0
  317. package/src/commands/identity-init.js +2 -2
  318. package/src/commands/mcp.js +226 -33
  319. package/src/commands/ollama.js +3 -2
  320. package/src/commands/plugins.js +7 -2
  321. package/src/commands/product.js +36 -0
  322. package/src/commands/runtime-status.js +28 -9
  323. package/src/commands/runtime.js +313 -0
  324. package/src/commands/rust.js +24 -0
  325. package/src/commands/setup.js +279 -0
  326. package/src/commands/shell.js +16 -3
  327. package/src/commands/start-local.js +2 -2
  328. package/src/commands/terminal.js +171 -0
  329. package/src/commands/update.js +140 -0
  330. package/src/commands/whoami.js +329 -65
  331. package/src/features/resolve.js +1 -0
  332. package/src/index.js +4 -0
  333. package/src/indexing/ingest/inventory.js +254 -19
  334. package/src/indexing/ingest/materials.js +3 -9
  335. package/src/indexing/ingest/style-evidence.js +181 -0
  336. package/src/knowledge/source.js +3 -3
  337. package/src/lib/account-session.js +11 -4
  338. package/src/lib/app-authority.js +172 -0
  339. package/src/lib/auth.js +94 -21
  340. package/src/lib/core-client.js +5 -6
  341. package/src/lib/credentials-audit.js +451 -0
  342. package/src/lib/deploy/health.js +24 -6
  343. package/src/lib/detect-context.js +7 -1
  344. package/src/lib/google-cloud-connection.js +270 -0
  345. package/src/lib/google-cloud-inventory.js +385 -0
  346. package/src/lib/google-desktop-oauth.js +372 -0
  347. package/src/lib/google-studio-brokered-oauth.js +158 -0
  348. package/src/lib/identity-scaffold.js +24 -6
  349. package/src/lib/init-options.js +192 -0
  350. package/src/lib/local-scaffold.js +48 -16
  351. package/src/lib/provider-command-remediation.js +308 -0
  352. package/src/lib/provider-credentials.js +8 -0
  353. package/src/lib/scaffold/index.js +8 -2
  354. package/src/lib/scaffold/mcp-server.js +43 -0
  355. package/src/lib/scaffold/templates/mcp-server/index.js +397 -0
  356. package/src/lib/scaffold/templates/mcp-server/presets.js +39 -0
  357. package/src/lib/scaffold/wizards/cms.js +93 -0
  358. package/src/lib/scaffold/wizards/mcp-server.js +61 -0
  359. package/src/lib/setup/contract.js +26 -0
  360. package/src/lib/setup/discover.js +116 -0
  361. package/src/lib/setup/execute.js +205 -0
  362. package/src/lib/setup/planner.js +134 -0
  363. package/src/lib/setup/recipes.js +235 -0
  364. package/src/lib/setup/runtime-persist.js +197 -0
  365. package/src/lib/setup/runtime.js +394 -0
  366. package/src/lib/slash-commands.js +2 -0
  367. package/src/lib/terminal/machine-identity.js +95 -0
  368. package/src/lib/terminal-local.js +164 -0
  369. package/src/lib/terminal-scopes.js +52 -0
  370. package/src/lib/whoami-capabilities.js +184 -0
  371. package/src/local-pty/server.js +34 -5
  372. package/src/mcp/authority.js +58 -108
  373. package/src/mcp/client-adapters.js +68 -144
  374. package/src/mcp/client.js +142 -122
  375. package/src/mcp/cloudflare-bundles.js +225 -0
  376. package/src/mcp/index.js +12 -0
  377. package/src/plugins/cloudflare.js +1 -1
  378. package/src/providers/ollama-chat.js +2 -1
  379. package/src/sam/types.js +27 -2
  380. package/src/security/inventory.js +12 -2
  381. package/src/security/local-vault.js +2 -0
  382. package/src/security/scan.js +1 -1
  383. package/test/account-session.test.mjs +3 -3
  384. package/test/app-authority-context.test.mjs +32 -0
  385. package/test/cli/codebaseindex-plan-ux.test.mjs +1 -1
  386. package/test/cli/mcp-client.test.mjs +21 -10
  387. package/test/cli/runtime-persist.test.mjs +56 -0
  388. package/test/cli/rust-command.test.mjs +21 -0
  389. package/test/credentials-audit.test.mjs +113 -0
  390. package/test/deploy-health-scan.test.mjs +29 -1
  391. package/test/gcloud-auth.test.mjs +111 -0
  392. package/test/google-cloud-connection.test.mjs +83 -0
  393. package/test/google-cloud-inventory.test.mjs +64 -0
  394. package/test/init-options.test.mjs +35 -0
  395. package/test/integration/app-command.test.mjs +30 -0
  396. package/test/integration/cad-project.test.mjs +4 -1
  397. package/test/integration/cms-app-scaffold.test.mjs +71 -0
  398. package/test/integration/cms-site-tenancy-contract.test.mjs +3 -2
  399. package/test/integration/codebaseindex-ingest.test.mjs +48 -0
  400. package/test/integration/features-resolve.test.mjs +30 -11
  401. package/test/integration/inspect-path-cli.test.mjs +46 -0
  402. package/test/integration/inventory-evidence.test.mjs +125 -0
  403. package/test/integration/runtime-status.integration.test.mjs +2 -1
  404. package/test/knowledge.test.mjs +35 -1
  405. package/test/loopback-oauth.test.mjs +53 -0
  406. package/test/ollama.test.mjs +22 -0
  407. package/test/security.test.mjs +23 -0
  408. package/test/setup-planner.test.mjs +74 -0
  409. package/test/setup-runtime.test.mjs +51 -0
  410. package/test/terminal/local-pty.mock.test.mjs +3 -1
  411. package/test/terminal-machine-identity.test.mjs +88 -0
  412. package/test/whoami-resume.test.mjs +27 -6
  413. package/packages/agentsam-brand/test/brand-scan.test.mjs +0 -106
  414. package/packages/work-graph/prototype/README.md +0 -32
  415. package/packages/work-graph/prototype/data/demo-workgraph.js +0 -47
  416. package/packages/work-graph/prototype/renderers/timeline-model.js +0 -21
  417. package/packages/work-graph/prototype/renderers/workgraph-runtime.js +0 -38
  418. package/packages/work-graph/prototype-gnantt.html +0 -655
@@ -20,7 +20,29 @@ export class WorkGraph {
20
20
  }
21
21
 
22
22
  export class WorkItem {
23
- constructor({ id, title, type = 'task', status = 'planned', owner = null, start = null, end = null, dependencies = [], artifacts = [], evidence = [] } = {}) {
23
+ constructor({
24
+ id,
25
+ title,
26
+ type = 'task',
27
+ status = 'planned',
28
+ owner = null,
29
+ start = null,
30
+ end = null,
31
+ baselineStart = null,
32
+ baselineEnd = null,
33
+ progress = null,
34
+ parentId = null,
35
+ dependencies = [],
36
+ blockedReason = null,
37
+ estimateMinutes = null,
38
+ actualMinutes = null,
39
+ executionRef = null,
40
+ goapRef = null,
41
+ version = 1,
42
+ metadata = {},
43
+ artifacts = [],
44
+ evidence = [],
45
+ } = {}) {
24
46
  this.id = id ?? randomUUID();
25
47
  this.title = title;
26
48
  this.type = type;
@@ -28,7 +50,18 @@ export class WorkItem {
28
50
  this.owner = owner;
29
51
  this.start = start;
30
52
  this.end = end;
53
+ this.baselineStart = baselineStart;
54
+ this.baselineEnd = baselineEnd;
55
+ this.progress = progress;
56
+ this.parentId = parentId;
31
57
  this.dependencies = dependencies;
58
+ this.blockedReason = blockedReason;
59
+ this.estimateMinutes = estimateMinutes;
60
+ this.actualMinutes = actualMinutes;
61
+ this.executionRef = executionRef;
62
+ this.goapRef = goapRef;
63
+ this.version = version;
64
+ this.metadata = metadata;
32
65
  this.artifacts = artifacts;
33
66
  this.evidence = evidence;
34
67
  }
@@ -1,11 +1,35 @@
1
+ function projectOwner(owner, actorById) {
2
+ if (!owner) return null;
3
+ if (typeof owner === 'object') return owner;
4
+ const actor = actorById.get(owner);
5
+ return actor ? { id: actor.id, name: actor.name, role: actor.role } : owner;
6
+ }
7
+
1
8
  export function createGanttModel(graph) {
2
9
  const items = graph?.items ?? graph?.workItems ?? [];
10
+ const actorById = new Map((graph?.actors ?? []).map((actor) => [actor.id, actor]));
3
11
 
4
12
  return items.map((item) => ({
5
13
  id: item.id,
6
14
  title: item.title,
15
+ kind: item.type ?? 'task',
7
16
  status: item.status,
17
+ owner: projectOwner(item.owner, actorById),
8
18
  start: item.start ?? null,
9
19
  end: item.end ?? null,
20
+ baselineStart: item.baselineStart ?? null,
21
+ baselineEnd: item.baselineEnd ?? null,
22
+ progress: typeof item.progress === 'number' ? item.progress : null,
23
+ parentId: item.parentId ?? null,
24
+ dependencies: [...(item.dependencies ?? [])],
25
+ blockedReason: item.blockedReason ?? null,
26
+ estimateMinutes: item.estimateMinutes ?? null,
27
+ actualMinutes: item.actualMinutes ?? null,
28
+ executionRef: item.executionRef ?? null,
29
+ goapRef: item.goapRef ?? null,
30
+ version: item.version ?? 1,
31
+ artifactCount: item.artifacts?.length ?? 0,
32
+ evidenceCount: item.evidence?.length ?? 0,
33
+ metadata: { ...(item.metadata ?? {}) },
10
34
  }));
11
35
  }
@@ -7,11 +7,25 @@ import { createProjectsAdapter } from '../src/adapters/business/projects.js';
7
7
  import { createTimelineModel } from '../src/renderers/timeline.js';
8
8
  import { createGanttModel } from '../src/renderers/gantt-model.js';
9
9
 
10
- test('work graph projects one source of truth into timeline and Gantt views', () => {
10
+ test('work graph projects one source of truth into timeline and rich Gantt views', () => {
11
11
  const actor = new Actor({ id: 'agent-1', name: 'Agent One' });
12
- const item = new WorkItem({ id: 'task-1', title: 'Index repository', owner: actor.id });
13
- item.start = '2026-09-18';
14
- item.end = '2026-09-19';
12
+ const item = new WorkItem({
13
+ id: 'task-1',
14
+ title: 'Index repository',
15
+ owner: actor.id,
16
+ start: '2026-09-18',
17
+ end: '2026-09-19',
18
+ baselineStart: '2026-09-17',
19
+ baselineEnd: '2026-09-18',
20
+ progress: 0.5,
21
+ parentId: 'phase-index',
22
+ estimateMinutes: 120,
23
+ actualMinutes: 70,
24
+ dependencies: ['inventory'],
25
+ artifacts: [{ id: 'artifact-1' }],
26
+ evidence: ['receipt-1'],
27
+ metadata: { summary: 'Repository indexing' },
28
+ });
15
29
  const graph = new WorkGraph({ name: 'Release', actors: [actor] });
16
30
  graph.add(item);
17
31
  graph.events.push(new TimelineEvent({ type: 'deploy', at: '2026-09-19T12:00:00Z', workItemId: item.id }));
@@ -21,9 +35,15 @@ test('work graph projects one source of truth into timeline and Gantt views', ()
21
35
  assert.equal(timeline.title, 'Release');
22
36
  assert.equal(timeline.lanes[0].items[0], item);
23
37
  assert.deepEqual(timeline.events.map((event) => event.type), ['test', 'deploy']);
24
- assert.deepEqual(createGanttModel(graph)[0], {
25
- id: 'task-1', title: 'Index repository', status: 'planned', start: '2026-09-18', end: '2026-09-19',
26
- });
38
+
39
+ const gantt = createGanttModel(graph)[0];
40
+ assert.equal(gantt.id, 'task-1');
41
+ assert.equal(gantt.owner.name, 'Agent One');
42
+ assert.equal(gantt.progress, 0.5);
43
+ assert.equal(gantt.parentId, 'phase-index');
44
+ assert.equal(gantt.artifactCount, 1);
45
+ assert.equal(gantt.evidenceCount, 1);
46
+ assert.deepEqual(gantt.dependencies, ['inventory']);
27
47
  });
28
48
 
29
49
  test('adapters map source records without fetching or mutating them', () => {
@@ -20,10 +20,12 @@ Platform repositories may consume the SDK, provide host adapters, or incubate pr
20
20
  agentsam-sdk/
21
21
  ├── src/ # Node SDK + local/deploy CLI
22
22
  ├── python/agentsam_sdk/ # Python portable tools and TUI
23
- ├── packages/ # Optional focused packages/workspaces
24
- ├── apps/ # Runnable + mountable APP compositions
25
- │ └── */.agentsam/app.json # App contract (standalone | embedded)
23
+ ├── packages/ # Reusable PACKAGE / SERVICE / THEME code
24
+ ├── apps/ # Portable product APPs (when agentsam.app.json exists)
25
+ │ └── */agentsam.app.json # Canonical APP product definition (APP.id)
26
+ │ └── */.agentsam/app.json # Host/install state (app_id → APP.id)
26
27
  ├── protocol/ # Shared SDK contracts and ownership rules
28
+ │ ├── apps/ # agentsam.app.v1 + host-install schemas
27
29
  │ └── features/ # agentsam.feature.v1 schema + catalog
28
30
  ├── templates/ # Scaffold templates
29
31
  ├── examples/ # Runnable examples/pointers
@@ -31,12 +33,18 @@ agentsam-sdk/
31
33
  └── test/ + python/tests/ # Node and Python verification
32
34
  ```
33
35
 
34
- ### APP vs FEATURE
36
+ ### Artifact taxonomy
35
37
 
36
- | Unit | Manifest | Role |
38
+ | Type | Manifest | Role |
37
39
  |------|----------|------|
38
- | APP | `.agentsam/app.json` | Runnable/mountable product composition |
39
- | FEATURE | `agentsam.feature.json` | Vertical capability (provider/UI/domain/composer) |
40
+ | **APP** | `agentsam.app.json` | Portable installable product — sole `APP.id` authority |
41
+ | **PACKAGE** | `agentsam.package.json` / package metadata | Reusable code/capability |
42
+ | **SERVICE** | `agentsam.package.json` (`type: "service"`) | Runtime infrastructure |
43
+ | **HOST install** | `.agentsam/app.json` | Installation/mount state; references `app_id` |
44
+ | **THEME** | theme package / theme-site scaffold | Appearance/content kit — not an APP |
45
+ | **FEATURE** | `agentsam.feature.json` | Vertical capability (provider/UI/domain) |
46
+
47
+ SSOT: [`docs/architecture/AGENTSAM_APPLICATION_CONTRACT.md`](../docs/architecture/AGENTSAM_APPLICATION_CONTRACT.md) · `agentsam app validate`
40
48
 
41
49
  `npm install` is inert. AgentSam activates features after validation → plan → operator approval → receipt.
42
50
 
@@ -2,15 +2,63 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://agentsam.inneranimalmedia.com/protocol/apps/agentsam.app.v1.schema.json",
4
4
  "title": "agentsam.app.v1",
5
- "description": "Installable AgentSam product app. Owns its routes/runtime; identity never hardcodes product URLs.",
5
+ "description": "Installable AgentSam product APP. Canonical identity is id (kebab-case). Package, Worker, route, desktop, and service names live in other namespaces.",
6
6
  "type": "object",
7
- "required": ["schema", "id", "name"],
7
+ "required": ["schema", "id", "name", "kind"],
8
8
  "properties": {
9
9
  "schema": { "const": "agentsam.app.v1" },
10
- "id": { "type": "string", "minLength": 1 },
10
+ "id": {
11
+ "type": "string",
12
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
13
+ "minLength": 2,
14
+ "description": "Immutable APP.id — short kebab-case product identity (not Worker/npm/route name)"
15
+ },
11
16
  "name": { "type": "string", "minLength": 1 },
12
- "package": { "type": "string" },
17
+ "kind": { "const": "app" },
18
+ "product_id": {
19
+ "type": "string",
20
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
21
+ "description": "Optional platform PRODUCT registry id when it differs from APP.id"
22
+ },
23
+ "package": {
24
+ "type": "string",
25
+ "description": "npm package name (PACKAGE namespace) — must not be used as APP.id"
26
+ },
13
27
  "version": { "type": "string" },
28
+ "entrypoints": {
29
+ "type": "object",
30
+ "properties": {
31
+ "frontend": { "type": "string" },
32
+ "backend": { "type": "string" },
33
+ "cli": { "type": "string" }
34
+ },
35
+ "additionalProperties": { "type": "string" }
36
+ },
37
+ "capabilities": {
38
+ "description": "Capability tokens this APP provides (array) or legacy boolean map",
39
+ "oneOf": [
40
+ {
41
+ "type": "array",
42
+ "items": { "type": "string", "minLength": 1 }
43
+ },
44
+ {
45
+ "type": "object",
46
+ "additionalProperties": { "type": "boolean" }
47
+ }
48
+ ]
49
+ },
50
+ "provides": {
51
+ "type": "array",
52
+ "items": { "type": "string" }
53
+ },
54
+ "bin": { "type": "string" },
55
+ "commands": { "type": "object", "additionalProperties": { "type": "string" } },
56
+ "surfaces": {
57
+ "oneOf": [
58
+ { "type": "array", "items": { "type": "string" } },
59
+ { "type": "object" }
60
+ ]
61
+ },
14
62
  "routes": {
15
63
  "type": "object",
16
64
  "properties": {
@@ -35,17 +83,51 @@
35
83
  }
36
84
  }
37
85
  }
38
- }
86
+ },
87
+ "additionalProperties": true
39
88
  },
40
89
  "runtime": {
41
90
  "type": "object",
42
91
  "properties": {
43
92
  "type": { "enum": ["spa", "ssr", "static"] },
44
93
  "assetRoot": { "type": "string" },
45
- "shell": { "type": "string" }
94
+ "shell": { "type": "string" },
95
+ "browser": { "type": ["boolean", "string"] },
96
+ "local": { "type": ["boolean", "string"] },
97
+ "cloudflare": { "type": ["boolean", "string"] }
46
98
  },
47
99
  "additionalProperties": true
48
- }
100
+ },
101
+ "preview": { "type": "object", "additionalProperties": true },
102
+ "install": { "type": "object", "additionalProperties": true },
103
+ "auth": { "type": "object", "additionalProperties": true },
104
+ "hosts": {
105
+ "type": "array",
106
+ "description": "HOST namespace — public origins this APP is served from. Separate from APP.id and from PLATFORM IAM_OAUTH_ISSUER.",
107
+ "items": {
108
+ "type": "object",
109
+ "required": ["host_id", "origin"],
110
+ "properties": {
111
+ "host_id": {
112
+ "type": "string",
113
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
114
+ "description": "Canonical HOST.id for this origin"
115
+ },
116
+ "origin": {
117
+ "type": "string",
118
+ "format": "uri",
119
+ "description": "https://… origin (no path)"
120
+ },
121
+ "role": {
122
+ "type": "string",
123
+ "enum": ["production", "development", "preview", "staging"]
124
+ },
125
+ "notes": { "type": "string" }
126
+ },
127
+ "additionalProperties": true
128
+ }
129
+ },
130
+ "secrets": { "type": "object", "additionalProperties": true }
49
131
  },
50
132
  "additionalProperties": true
51
133
  }
@@ -0,0 +1,36 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentsam.inneranimalmedia.com/protocol/apps/agentsam.host-install.v1.schema.json",
4
+ "title": "agentsam.host-install.v1",
5
+ "description": "Host/installation state for an AgentSam APP. Lives under .agentsam/app.json. References APP.id; must not redefine product identity (enforced by agentsam app validate).",
6
+ "type": "object",
7
+ "required": ["schema", "app_id"],
8
+ "properties": {
9
+ "schema": { "const": "agentsam.host-install.v1" },
10
+ "app_id": {
11
+ "type": "string",
12
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$",
13
+ "description": "Must resolve to a known agentsam.app.json id"
14
+ },
15
+ "config": { "type": "object", "additionalProperties": true },
16
+ "mounts": {
17
+ "type": "array",
18
+ "items": {
19
+ "oneOf": [
20
+ { "type": "string" },
21
+ {
22
+ "type": "object",
23
+ "additionalProperties": true
24
+ }
25
+ ]
26
+ }
27
+ },
28
+ "features": {
29
+ "type": "array",
30
+ "items": { "type": "string" },
31
+ "description": "Feature ids enabled for this installation"
32
+ },
33
+ "notes": { "type": "string" }
34
+ },
35
+ "additionalProperties": true
36
+ }
@@ -0,0 +1,9 @@
1
+ # AgentSam Asset Core
2
+
3
+ Canonical `ast_*` identity shared by **BrandPack** and **Content** (peer domains).
4
+
5
+ - Schema: [`asset-record.v1.schema.json`](./asset-record.v1.schema.json)
6
+ - Package: `@inneranimalmedia/agentsam-assets-core`
7
+ - Authority: `docs/content-studio/REVISION_GATE_2026-09-27.md`
8
+
9
+ Providers own representations/transport only. Knowledge indexes are derived.
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentsam.inneranimalmedia.com/protocol/assets/asset-record.v1.schema.json",
4
+ "title": "AgentSamAssetRecord",
5
+ "description": "Shared Asset Core — canonical ast_* identity. BrandPack and Content are peer domains over this record. Providers hold representations only.",
6
+ "type": "object",
7
+ "required": ["schema", "id", "accountId", "kind", "representations", "provenance", "createdAt", "updatedAt"],
8
+ "properties": {
9
+ "schema": { "const": "agentsam.asset-record.v1" },
10
+ "id": {
11
+ "type": "string",
12
+ "pattern": "^ast_"
13
+ },
14
+ "accountId": { "type": "string", "minLength": 1 },
15
+ "kind": {
16
+ "type": "string",
17
+ "enum": ["image", "video", "model", "font", "document", "audio"]
18
+ },
19
+ "originalName": { "type": "string" },
20
+ "mime": { "type": "string" },
21
+ "bytes": { "type": "integer", "minimum": 0 },
22
+ "hashes": {
23
+ "type": "object",
24
+ "properties": {
25
+ "sha256": { "type": "string" },
26
+ "perceptual": { "type": "string" }
27
+ }
28
+ },
29
+ "machineFacts": { "type": "object" },
30
+ "representations": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "object",
34
+ "required": ["provider", "ref", "role"],
35
+ "properties": {
36
+ "provider": { "type": "string" },
37
+ "ref": { "type": "string" },
38
+ "role": {
39
+ "type": "string",
40
+ "enum": ["original", "master", "derivative", "preview", "poster", "backup", "delivery", "source"]
41
+ },
42
+ "scope": { "type": "string" },
43
+ "bytes": { "type": "integer" },
44
+ "mime": { "type": "string" },
45
+ "url": { "type": "string" },
46
+ "verified": { "type": "boolean" },
47
+ "receipt": { "type": "object" }
48
+ }
49
+ }
50
+ },
51
+ "provenance": {
52
+ "type": "object",
53
+ "required": ["history"],
54
+ "properties": {
55
+ "history": { "type": "array" },
56
+ "generation": { "type": "object" },
57
+ "import": { "type": "object" },
58
+ "derivedFrom": { "type": "string" }
59
+ }
60
+ },
61
+ "createdAt": { "type": "string" },
62
+ "updatedAt": { "type": "string" }
63
+ }
64
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentsam.inneranimalmedia.com/protocol/runtime/agentsam.runtime.v1.schema.json",
4
+ "title": "agentsam.runtime.v1",
5
+ "description": "AgentSam Runtime Registry + protocol. Physical D1 tables remain terminal_*; domain nouns are Runtime*. PTY is a capability. transport ≠ adapter.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schema", "provider", "substrate", "lifecycle", "runtime_adapter", "capabilities"],
9
+ "properties": {
10
+ "schema": { "const": "agentsam.runtime.v1" },
11
+ "provider": {
12
+ "type": "string",
13
+ "enum": ["local", "google_cloud", "cloudflare", "aws", "azure", "fly", "custom"]
14
+ },
15
+ "substrate": {
16
+ "type": "string",
17
+ "enum": ["host", "vm", "container", "sandbox", "workstation", "microvm", "kubernetes"]
18
+ },
19
+ "provider_product": {
20
+ "type": ["string", "null"],
21
+ "description": "Optional product within provider/substrate (compute_engine, cloud_run, containers, sandbox, docker, …)"
22
+ },
23
+ "lifecycle": {
24
+ "type": "string",
25
+ "enum": ["persistent", "scale_to_zero", "ephemeral", "job"]
26
+ },
27
+ "runtime_adapter": {
28
+ "type": "string",
29
+ "enum": ["agentsamd", "execos_legacy", "cloudflare_sandbox", "docker_engine", "ssh", "provider_native"]
30
+ },
31
+ "protocol": { "const": "agentsam.runtime.v1" },
32
+ "architecture": { "type": "string", "enum": ["arm64", "x86_64", "unknown"] },
33
+ "os": { "type": "string", "enum": ["darwin", "linux", "windows", "macos", "unknown"] },
34
+ "status": {
35
+ "type": "string",
36
+ "enum": ["online", "ready", "sleeping", "starting", "offline", "error", "provisioning", "stopped", "failed", "deleting"]
37
+ },
38
+ "capabilities": {
39
+ "type": "object",
40
+ "additionalProperties": { "type": "boolean" },
41
+ "properties": {
42
+ "exec": { "type": "boolean" },
43
+ "pty": { "type": "boolean" },
44
+ "filesystem": { "type": "boolean" },
45
+ "persistent_filesystem": { "type": "boolean" },
46
+ "process": { "type": "boolean" },
47
+ "git": { "type": "boolean" },
48
+ "docker": { "type": "boolean" },
49
+ "gpu": { "type": "boolean" },
50
+ "browser": { "type": "boolean" },
51
+ "gui": { "type": "boolean" },
52
+ "ports": { "type": "boolean" },
53
+ "snapshot": { "type": "boolean" }
54
+ }
55
+ },
56
+ "transport": {
57
+ "type": "string",
58
+ "enum": [
59
+ "direct_https",
60
+ "direct_wss",
61
+ "cloudflare_tunnel",
62
+ "vpc_service",
63
+ "vpc_network",
64
+ "service_binding",
65
+ "local_socket",
66
+ "provider_api",
67
+ "ssh"
68
+ ]
69
+ },
70
+ "auth_mode": {
71
+ "type": "string",
72
+ "enum": ["connection_token", "platform_bridge", "bridge_key", "service_binding"]
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,10 @@
1
+ # Scoring protocol
2
+
3
+ `ScoreCard` is a **versioned derived view** over raw evidence.
4
+
5
+ - Raw evidence (hashes, OBSERVED tokens, usage rows, known-asset ids) is SSOT.
6
+ - Scores are recomputable from evidence + `weights/*.vN.json`.
7
+ - Score families stay independent — never collapse into one `similarity_score`.
8
+ - Human accept/reject calibrates recommendations (Beta / outcome receipts); it does **not** mutate deterministic evidence.
9
+
10
+ See `@inneranimalmedia/agentsam-scoring` and `docs/content-studio/REVISION_GATE_2026-09-27.md`.
@@ -0,0 +1,65 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentsam.inneranimalmedia.com/protocol/scoring/scorecard.v1.schema.json",
4
+ "title": "AgentSamScoreCard",
5
+ "description": "Versioned derived score view. Raw evidence remains SSOT; ScoreCards are recomputable. Independent score families — never one grand similarity_score.",
6
+ "type": "object",
7
+ "required": [
8
+ "id",
9
+ "kind",
10
+ "score",
11
+ "confidence",
12
+ "algorithm",
13
+ "weightsVersion",
14
+ "components",
15
+ "penalties",
16
+ "evidenceRefs",
17
+ "computedAt"
18
+ ],
19
+ "properties": {
20
+ "id": { "type": "string", "minLength": 1 },
21
+ "kind": {
22
+ "type": "string",
23
+ "enum": [
24
+ "theme-similarity",
25
+ "brand-affinity",
26
+ "template-similarity",
27
+ "section-reuse",
28
+ "token-consistency",
29
+ "portability",
30
+ "package-readiness",
31
+ "drift",
32
+ "confidence",
33
+ "structural-similarity",
34
+ "reuse"
35
+ ]
36
+ },
37
+ "score": { "type": "number", "minimum": 0, "maximum": 100 },
38
+ "confidence": { "type": "number", "minimum": 0, "maximum": 1 },
39
+ "algorithm": { "type": "string" },
40
+ "weightsVersion": { "type": "string" },
41
+ "components": {
42
+ "type": "object",
43
+ "additionalProperties": {
44
+ "type": "object",
45
+ "required": ["raw", "normalized", "weight", "contribution"],
46
+ "properties": {
47
+ "raw": { "type": "number" },
48
+ "normalized": { "type": "number", "minimum": 0, "maximum": 1 },
49
+ "weight": { "type": "number", "minimum": 0, "maximum": 1 },
50
+ "contribution": { "type": "number" }
51
+ }
52
+ }
53
+ },
54
+ "penalties": {
55
+ "type": "object",
56
+ "additionalProperties": { "type": "number" }
57
+ },
58
+ "evidenceRefs": {
59
+ "type": "array",
60
+ "items": { "type": "string" }
61
+ },
62
+ "computedAt": { "type": "string", "format": "date-time" }
63
+ },
64
+ "additionalProperties": false
65
+ }
@@ -116,6 +116,7 @@ export const ICON_CATALOG = Object.freeze({
116
116
  logs: { category: 'observability', label: 'Logs' },
117
117
  });
118
118
 
119
+ /** @type {Readonly<Record<string, string>>} */
119
120
  export const CLI_ICON_GLYPHS = Object.freeze({
120
121
  generic: '●',
121
122
  inspect: '◇',
@@ -0,0 +1,31 @@
1
+ {
2
+ "schema": "agentsam.installable-products.v1",
3
+ "source": "inneranimalmedia-business.agentsam_products",
4
+ "refreshed_at": "2026-09-28",
5
+ "products": [
6
+ {
7
+ "slug": "cms",
8
+ "kind": "product",
9
+ "status": "wired",
10
+ "label": "CMS",
11
+ "hint": "Guided CMS site or full CMS Editor app",
12
+ "action": { "kind": "scaffold", "id": "cms" }
13
+ },
14
+ {
15
+ "slug": "client-cms-editor",
16
+ "kind": "app",
17
+ "status": "scaffolded",
18
+ "label": "AgentSam CMS Editor",
19
+ "hint": "Reusable full CMS editor app",
20
+ "action": { "kind": "app", "id": "client-cms-editor" }
21
+ },
22
+ {
23
+ "slug": "agentsam-rapid-rust",
24
+ "kind": "sdk-package",
25
+ "status": "prototype",
26
+ "label": "Rust/Wasm Worker",
27
+ "hint": "Scaffold the shared-core Rust/Wasm Worker template",
28
+ "action": { "kind": "rust-template", "template": "shared-core" }
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "schema": "agentsam.registry.migration.v1",
3
+ "id": "cms-rust-machine-20260928",
4
+ "database": "inneranimalmedia-business",
5
+ "database_id": "cf87b717-d4e2-4cf8-bab0-a81268e32d49",
6
+ "products": [
7
+ "cms",
8
+ "client-cms-editor",
9
+ "theme-inneranimals-site",
10
+ "asrust",
11
+ "agentsam-machine",
12
+ "agentsam-rapid-rust"
13
+ ],
14
+ "legacy_aliases": {
15
+ "iam-client-cms-editor": "client-cms-editor"
16
+ },
17
+ "policy": {
18
+ "npm_publish": false,
19
+ "cms_live_swap": false,
20
+ "oauth_reconnect": false
21
+ }
22
+ }