@inneranimalmedia/agentsam-sdk 2.6.10 → 2.6.11

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 (261) hide show
  1. package/README.md +3 -0
  2. package/TRADEMARKS.md +22 -0
  3. package/apps/README.md +3 -0
  4. package/apps/cad-creator/LICENSE +21 -0
  5. package/apps/cad-creator/README.md +4 -1
  6. package/apps/cad-creator/shared/cad/package.json +1 -1
  7. package/apps/client-cms-editor/LICENSE +21 -0
  8. package/apps/client-cms-editor/README.md +3 -0
  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/package-lock.json +43 -43
  12. package/apps/client-cms-editor/package.json +3 -3
  13. package/apps/client-cms-editor/reference/harvest/HARVEST_RECEIPT.json +1 -1
  14. package/apps/client-cms-editor/reference/harvest/README.md +1 -1
  15. package/apps/client-cms-editor/reference/harvest/plans/ARCHIVE-INTAKE.md +1 -1
  16. package/apps/client-cms-editor/reference/harvest/plans/HARVEST-INDEX.md +1 -1
  17. package/apps/client-cms-editor/reference/harvest/plans/TOOLING-LAB.md +1 -1
  18. package/apps/client-cms-editor/shared/cms/package.json +1 -1
  19. package/docs/MINI.md +4 -2
  20. package/docs/REPO_FILE_MAP.txt +0 -1
  21. package/docs/SOURCE_ARCHITECTURE.md +1 -1
  22. package/docs/architecture/DUAL_ANALYTICS_PRODUCT.md +140 -0
  23. package/docs/content-studio/REVISION_GATE_2026-09-27.md +1 -1
  24. package/docs/engineering/go-portability/01-product-project-deployment-authority.md +69 -0
  25. package/docs/engineering/provider-internal-renames/01-lane-initialization.md +20 -0
  26. package/docs/engineering/provider-internal-renames/01a-runtime-environment-contract.md +115 -0
  27. package/docs/engineering/provider-internal-renames/02-cfoa.md +57 -0
  28. package/docs/engineering/provider-internal-renames/03-gclioa.md +32 -0
  29. package/docs/engineering/provider-internal-renames/04-goaude.md +50 -0
  30. package/docs/engineering/provider-internal-renames/05-gdrv.md +33 -0
  31. package/docs/engineering/provider-internal-renames/06-verification.md +103 -0
  32. package/docs/engineering/provider-internal-renames/README.md +77 -0
  33. package/docs/engineering/provider-internal-renames/runtime-environment-contract.json +220 -0
  34. package/docs/engineering/test-diagnostics/go-cli-test-hang-20261003.md +49 -0
  35. package/docs/engineering/test-diagnostics/go-skip-deploy-docker-fix.md +90 -0
  36. package/docs/knowledge-service-verification.md +3 -3
  37. package/docs/plans/AGENTSAM-SUSPEND-QUEUE-KNOWLEDGE-RDP-2026-10-03.md +870 -0
  38. package/docs/plans/LOCAL-STUDIO-GRADUATION-2026-09-26.md +9 -9
  39. package/docs/plans/MACHINE-FIRST-APPS-TUI-2026-09-24.md +11 -11
  40. package/docs/plans/RECONCILIATION-2026-09-19.md +6 -6
  41. package/docs/plans/SAM_WORK_PROTOCOL.md +667 -0
  42. package/docs/plans/TOMORROW-EXTENSIVE-TODO-2026-09-26.md +2 -2
  43. package/docs/plans/UNIVERSAL-INGEST-MACHINE-FIRST-2026-09-24.md +3 -3
  44. package/examples/hyperspace-demo/src/main.tsx +227 -110
  45. package/migrations/d1/0020_agentsam_receipt_catalog.sql +35 -0
  46. package/migrations/runtime/0006_agent_run_suspend_activity.sql +53 -0
  47. package/migrations/runtime/0007_queue_control.sql +40 -0
  48. package/migrations/runtime/0008_agent_run_dependencies.sql +24 -0
  49. package/migrations/runtime/0008_analytics_legacy_bootstrap.sql +43 -0
  50. package/migrations/runtime/0009_analytics_authority.sql +108 -0
  51. package/package.json +26 -11
  52. package/packages/agentsam-brand/README.md +3 -0
  53. package/packages/agentsam-brand/package.json +2 -2
  54. package/packages/agentsam-contracts/dist/adapter.d.ts +22 -0
  55. package/packages/agentsam-contracts/dist/adapter.js +0 -0
  56. package/packages/agentsam-contracts/dist/agent.d.ts +66 -0
  57. package/packages/agentsam-contracts/dist/agent.js +15 -0
  58. package/packages/agentsam-contracts/dist/artifacts.d.ts +70 -0
  59. package/packages/agentsam-contracts/dist/artifacts.js +0 -0
  60. package/packages/agentsam-contracts/dist/authority.d.ts +21 -0
  61. package/packages/agentsam-contracts/dist/authority.js +0 -0
  62. package/packages/agentsam-contracts/dist/context.d.ts +14 -0
  63. package/packages/agentsam-contracts/dist/context.js +0 -0
  64. package/packages/agentsam-contracts/dist/errors.d.ts +121 -0
  65. package/packages/agentsam-contracts/dist/errors.js +5 -0
  66. package/packages/agentsam-contracts/dist/events.d.ts +53 -0
  67. package/packages/agentsam-contracts/dist/events.js +0 -0
  68. package/packages/agentsam-contracts/dist/execution.d.ts +38 -0
  69. package/packages/agentsam-contracts/dist/execution.js +0 -0
  70. package/packages/agentsam-contracts/dist/hooks.d.ts +31 -0
  71. package/packages/agentsam-contracts/dist/hooks.js +0 -0
  72. package/packages/agentsam-contracts/dist/identity.d.ts +15 -0
  73. package/packages/agentsam-contracts/dist/identity.js +0 -0
  74. package/packages/agentsam-contracts/dist/index.d.ts +16 -0
  75. package/packages/agentsam-contracts/dist/index.js +164 -0
  76. package/packages/agentsam-contracts/dist/models.d.ts +9 -0
  77. package/packages/agentsam-contracts/dist/models.js +0 -0
  78. package/packages/agentsam-contracts/dist/providers.d.ts +27 -0
  79. package/packages/agentsam-contracts/dist/providers.js +0 -0
  80. package/packages/agentsam-contracts/dist/repository.d.ts +56 -0
  81. package/packages/agentsam-contracts/dist/repository.js +15 -0
  82. package/packages/agentsam-contracts/dist/run.d.ts +113 -0
  83. package/packages/agentsam-contracts/dist/run.js +132 -0
  84. package/packages/agentsam-contracts/dist/tools.d.ts +82 -0
  85. package/packages/agentsam-contracts/dist/tools.js +0 -0
  86. package/packages/agentsam-contracts/dist/widgets.d.ts +38 -0
  87. package/packages/agentsam-contracts/dist/widgets.js +0 -0
  88. package/packages/agentsam-contracts/package.json +9 -1
  89. package/packages/agentsam-contracts/scripts/build.mjs +1 -1
  90. package/packages/agentsam-contracts/src/agent.ts +78 -3
  91. package/packages/agentsam-contracts/src/index.ts +2 -0
  92. package/packages/agentsam-contracts/src/run.ts +320 -0
  93. package/packages/agentsam-contracts/src/widgets.ts +58 -0
  94. package/packages/agentsam-contracts/test/contracts.test.mjs +1 -1
  95. package/packages/agentsam-contracts/test/run-contract.test.mjs +94 -0
  96. package/packages/agentsam-errors/package.json +1 -1
  97. package/packages/agentsam-goap/README.md +3 -0
  98. package/packages/agentsam-goap/package.json +2 -2
  99. package/packages/agentsam-hooks/package.json +2 -2
  100. package/packages/agentsam-hooks/src/adapters/agents.js +48 -22
  101. package/packages/agentsam-hooks/src/index.d.ts +16 -0
  102. package/packages/agentsam-knowledge/package.json +1 -1
  103. package/packages/agentsam-knowledge/src/backends/index.js +1 -1
  104. package/packages/agentsam-merch/README.md +62 -0
  105. package/packages/agentsam-merch/bin/agentsam-merch.mjs +16 -0
  106. package/packages/agentsam-merch/package.json +65 -0
  107. package/packages/agentsam-merch/profiles/completeful/dtg-back-large.json +42 -0
  108. package/packages/agentsam-merch/profiles/completeful/laser-engraving.json +39 -0
  109. package/packages/agentsam-merch/profiles/generic/embroidery-digitization.json +22 -0
  110. package/packages/agentsam-merch/schemas/collection-candidate.schema.json +66 -0
  111. package/packages/agentsam-merch/schemas/manufacturing-profile.schema.json +221 -0
  112. package/packages/agentsam-merch/src/adapters-completeful.js +50 -0
  113. package/packages/agentsam-merch/src/cli.js +93 -0
  114. package/packages/agentsam-merch/src/collection-lab.js +60 -0
  115. package/packages/agentsam-merch/src/compatibility.js +501 -0
  116. package/packages/agentsam-merch/src/derivatives.js +112 -0
  117. package/packages/agentsam-merch/src/index.d.ts +316 -0
  118. package/packages/agentsam-merch/src/index.js +46 -0
  119. package/packages/agentsam-merch/src/node/index.d.ts +58 -0
  120. package/packages/agentsam-merch/src/node/index.js +6 -0
  121. package/packages/agentsam-merch/src/node/raster.js +142 -0
  122. package/packages/agentsam-merch/src/node/vector.js +239 -0
  123. package/packages/agentsam-merch/src/product-concepts.js +118 -0
  124. package/packages/agentsam-merch/src/profile-registry.js +104 -0
  125. package/packages/agentsam-merch/src/profile.js +158 -0
  126. package/packages/agentsam-merch/src/transforms.js +215 -0
  127. package/packages/agentsam-merch/test/merch.test.mjs +332 -0
  128. package/packages/agentsam-merch/test/node-transforms.test.mjs +149 -0
  129. package/packages/agentsam-nav/dist/browser.global.js +71 -34
  130. package/packages/agentsam-nav/dist/browser.js +3179 -781
  131. package/packages/agentsam-nav/dist/index.js +3171 -773
  132. package/packages/agentsam-nav/package.json +1 -1
  133. package/packages/agentsam-queue-control/README.md +4 -1
  134. package/packages/agentsam-queue-control/package.json +4 -3
  135. package/packages/agentsam-queue-control/schemas/job-envelope.schema.json +111 -11
  136. package/packages/agentsam-queue-control/src/adapters/cloudflare.js +34 -6
  137. package/packages/agentsam-queue-control/src/adapters/memory.js +11 -2
  138. package/packages/agentsam-queue-control/src/adapters/sqlite.js +259 -0
  139. package/packages/agentsam-queue-control/src/contracts.js +207 -3
  140. package/packages/agentsam-queue-control/src/control-plane.js +62 -2
  141. package/packages/agentsam-queue-control/src/index.js +1 -0
  142. package/packages/agentsam-queue-control/test/queue-control.test.mjs +310 -0
  143. package/packages/agentsam-queue-control/test/sqlite-adapter.test.mjs +91 -0
  144. package/packages/agentsam-rapid-rust/README.md +3 -0
  145. package/packages/agentsam-repository/README.md +3 -0
  146. package/packages/agentsam-repository/package.json +1 -1
  147. package/packages/agentsam-vault/package.json +1 -1
  148. package/packages/agentsam-workbench/README.md +43 -0
  149. package/packages/agentsam-workbench/package.json +13 -3
  150. package/packages/agentsam-workbench/src/agent/AgentConversationSurface.tsx +108 -0
  151. package/packages/agentsam-workbench/src/agent/AgentPanel.tsx +25 -8
  152. package/packages/agentsam-workbench/src/agent/AgentRuntimeField.tsx +152 -0
  153. package/packages/agentsam-workbench/src/agent/Composer.tsx +10 -1
  154. package/packages/agentsam-workbench/src/agent/RunMode.ts +26 -0
  155. package/packages/agentsam-workbench/src/agent/Thread.tsx +18 -3
  156. package/packages/agentsam-workbench/src/agent/index.ts +3 -0
  157. package/packages/agentsam-workbench/src/index.ts +4 -0
  158. package/packages/agentsam-workbench/src/manufacturing/PreflightIndicator.tsx +203 -0
  159. package/packages/agentsam-workbench/src/manufacturing/index.ts +2 -0
  160. package/packages/agentsam-workbench/src/manufacturing/loading.ts +147 -0
  161. package/packages/agentsam-workbench/src/widgets/BuiltinWidget.tsx +22 -0
  162. package/packages/agentsam-workbench/src/widgets/CountdownWidget.tsx +68 -0
  163. package/packages/agentsam-workbench/src/widgets/WidgetFrame.tsx +56 -0
  164. package/packages/agentsam-workbench/src/widgets/countdown.ts +25 -0
  165. package/packages/agentsam-workbench/src/widgets/index.ts +6 -0
  166. package/packages/agentsam-workbench/src/widgets/registry.ts +13 -0
  167. package/packages/agentsam-workbench/src/widgets/useCountdown.ts +128 -0
  168. package/packages/agentsam-workbench/src/widgets/widgets.css +102 -0
  169. package/packages/connectors/{cloudflare → cfoa}/package.json +3 -3
  170. package/packages/heuristic-theme/package.json +1 -1
  171. package/packages/identity/README.md +3 -0
  172. package/packages/identity/backend/README.md +3 -0
  173. package/packages/identity/package.json +1 -1
  174. package/packages/identity/src/frontend/auth-portal/README.md +3 -0
  175. package/packages/identity/src/index.js +1 -1
  176. package/packages/identity/src/oauth/README.md +4 -1
  177. package/packages/identity/src/oauth/credentials.js +1 -1
  178. package/packages/identity/src/server/worker-router.js +1 -1
  179. package/packages/identity/tests/google-desktop-identity-login.test.mjs +1 -1
  180. package/packages/identity/tests/lane1-packed-consumer.test.mjs +1 -1
  181. package/packages/identity/tests/oauth-presets-accounts-ssot.test.mjs +1 -1
  182. package/packages/providers/completeful/package.json +1 -1
  183. package/packages/theme-church-site/package.json +1 -1
  184. package/packages/theme-companions-site/package.json +1 -1
  185. package/packages/theme-floors-site/package.json +1 -1
  186. package/packages/theme-fuelnfree-site/package.json +1 -1
  187. package/packages/theme-handyman-site/package.json +1 -1
  188. package/packages/theme-insurance-site/package.json +1 -1
  189. package/packages/theme-scenes/package.json +1 -1
  190. package/packages/theme-shinshu-site/package.json +1 -1
  191. package/packages/work-graph/package.json +1 -1
  192. package/protocol/models/README.md +3 -0
  193. package/protocol/receipts/agentsam.receipt.v1.json +95 -0
  194. package/protocol/theme-refinery/receipts/products-registry-batch-20260924.json +6 -6
  195. package/protocol/theme-refinery/receipts/theme-harvest-20260924.json +6 -6
  196. package/skills/README.md +3 -0
  197. package/src/acp/agent-executor.js +106 -0
  198. package/src/acp/client.js +316 -0
  199. package/src/acp/dependencies.js +426 -0
  200. package/src/acp/http.js +207 -0
  201. package/src/acp/index.js +22 -0
  202. package/src/acp/runs.js +125 -0
  203. package/src/acp/runtime-selection.js +180 -0
  204. package/src/cli/command-catalog.js +3 -0
  205. package/src/cli.js +24 -0
  206. package/src/commands/cloudflare-login.js +1 -1
  207. package/src/commands/cloudflare.js +2 -2
  208. package/src/commands/connections.js +1 -1
  209. package/src/commands/go.js +76 -6
  210. package/src/commands/merch.js +5 -0
  211. package/src/commands/mini.js +1 -1
  212. package/src/commands/receipts.js +140 -0
  213. package/src/commands/run.js +253 -0
  214. package/src/go/container.js +1 -1
  215. package/src/go/contract.js +61 -18
  216. package/src/go/discover.js +0 -4
  217. package/src/go/index.js +13 -1
  218. package/src/go/probe.js +109 -0
  219. package/src/go/{cloudflare.js → providers/cloudflare.js} +36 -136
  220. package/src/go/verify.js +1 -1
  221. package/src/indexing/ingest/inventory.js +1 -1
  222. package/src/lib/deploy/local-studio.js +2 -2
  223. package/src/lib/mini/scaffold.js +1 -1
  224. package/src/lib/whoami-capabilities.js +1 -1
  225. package/src/local/runtime-store.js +8 -0
  226. package/src/mcp/cloudflare-bundles.js +1 -1
  227. package/src/plugins/index.js +1 -0
  228. package/src/plugins/registry.js +59 -6
  229. package/src/receipts/contract.js +68 -0
  230. package/src/receipts/index.js +20 -0
  231. package/src/receipts/prune.js +64 -0
  232. package/src/receipts/sinks.js +285 -0
  233. package/templates/mini/gadget/app.js +15 -40
  234. package/templates/mini/gadget/index.html +7 -7
  235. package/templates/mini/shared/style.css +1 -1
  236. package/packages/agentsam-repository/src/goap.js.bak-20260922011251 +0 -670
  237. /package/packages/connectors/{cloudflare → cfoa}/OAUTH_STORAGE_AUDIT.md +0 -0
  238. /package/packages/connectors/{cloudflare → cfoa}/src/api-client.js +0 -0
  239. /package/packages/connectors/{cloudflare → cfoa}/src/capabilities.js +0 -0
  240. /package/packages/connectors/{cloudflare → cfoa}/src/credential.js +0 -0
  241. /package/packages/connectors/{cloudflare → cfoa}/src/families/brand-protection.js +0 -0
  242. /package/packages/connectors/{cloudflare → cfoa}/src/families/keyless.js +0 -0
  243. /package/packages/connectors/{cloudflare → cfoa}/src/families/pages.js +0 -0
  244. /package/packages/connectors/{cloudflare → cfoa}/src/families/scanner.js +0 -0
  245. /package/packages/connectors/{cloudflare → cfoa}/src/families/snippets.js +0 -0
  246. /package/packages/connectors/{cloudflare → cfoa}/src/families/tag-gateway.js +0 -0
  247. /package/packages/connectors/{cloudflare → cfoa}/src/families/tags.js +0 -0
  248. /package/packages/connectors/{cloudflare → cfoa}/src/families/token-validation.js +0 -0
  249. /package/packages/connectors/{cloudflare → cfoa}/src/families/vectorize.js +0 -0
  250. /package/packages/connectors/{cloudflare → cfoa}/src/families/workflows.js +0 -0
  251. /package/packages/connectors/{cloudflare → cfoa}/src/index.js +0 -0
  252. /package/packages/connectors/{cloudflare → cfoa}/src/oauth-persist.js +0 -0
  253. /package/packages/connectors/{cloudflare → cfoa}/src/owner.js +0 -0
  254. /package/packages/connectors/{cloudflare → cfoa}/src/permission-options.js +0 -0
  255. /package/packages/connectors/{cloudflare → cfoa}/src/routes.js +0 -0
  256. /package/packages/connectors/{cloudflare → cfoa}/src/scope-catalog.js +0 -0
  257. /package/packages/connectors/{cloudflare → cfoa}/src/vault.js +0 -0
  258. /package/packages/connectors/{cloudflare → cfoa}/tests/capabilities.test.mjs +0 -0
  259. /package/packages/connectors/{cloudflare → cfoa}/tests/connector.test.mjs +0 -0
  260. /package/packages/connectors/{cloudflare → cfoa}/tests/oauth-persist.test.mjs +0 -0
  261. /package/packages/identity/src/oauth/{google-desktop-exchange.js → goaude.js} +0 -0
@@ -0,0 +1,69 @@
1
+ # AgentSam Go Product / Project / Deployment Authority
2
+
3
+ ## Product
4
+
5
+ `@inneranimalmedia/agentsam-go-worker` is a distributable AgentSam product.
6
+
7
+ The portable package owns source code and the generic Cloudflare Worker +
8
+ Container configuration.
9
+
10
+ It does not own a customer's Cloudflare account, domain, or mutable project
11
+ state.
12
+
13
+ ## Project instance
14
+
15
+ Mutable AgentSam Go state belongs to the caller repository:
16
+
17
+ `<project>/.agentsam/go/`
18
+
19
+ This rule applies equally to maintainers and third-party users.
20
+
21
+ Product source must not become state authority merely because it was discovered
22
+ from the SDK repository.
23
+
24
+ ## Deployment
25
+
26
+ A deployment belongs to the Cloudflare account selected by the current user.
27
+
28
+ The published portable config:
29
+
30
+ `apps/agentsam-go-worker/wrangler.jsonc`
31
+
32
+ must not contain InnerAnimalMedia's production hostname.
33
+
34
+ InnerAnimalMedia production deployment is a separate explicit maintainer path:
35
+
36
+ `apps/agentsam-go-worker/wrangler.inneranimalmedia.jsonc`
37
+
38
+ That file is intentionally excluded from the npm package `files` contract.
39
+
40
+ ## Invariants
41
+
42
+ - `runtime.inneranimalmedia.com` is Sam's deployment, not the AgentSam Go product.
43
+ - self-host mode uses `wrangler.jsonc`
44
+ - official release mode uses `wrangler.inneranimalmedia.jsonc`
45
+ - self-host state belongs to the caller project
46
+ - maintainer state follows the same caller-project rule
47
+ - no live deployment is performed by portability tests
48
+
49
+
50
+ ## Receipt location
51
+
52
+ Interactive `agentsam go` asks the operator where run receipts/state should live.
53
+
54
+ Supported choices:
55
+
56
+ - project-local
57
+ - central `~/.agentsam/receipts/<project>`
58
+ - custom directory
59
+
60
+ Non-interactive callers may use:
61
+
62
+ `--receipt-root <path>`
63
+
64
+ Distribution verification remains offline by default. Ambient Cloudflare
65
+ credentials do not enable remote/container verification. Explicit opt-in is:
66
+
67
+ `AGENTSAM_VERIFY_GO_CLOUDFLARE=1`
68
+
69
+ Dry-run and skip-deploy lanes must never execute Docker.
@@ -0,0 +1,20 @@
1
+ # Stage 01 — Lane Initialization
2
+
3
+ ## Change
4
+
5
+ Created a clean worktree from `origin/main` for the Work Suite
6
+ graduation and provider-internal rename pass.
7
+
8
+ ## Reason
9
+
10
+ The ordinary SDK checkout may contain unrelated work. Mechanical
11
+ provider renames need an isolated ancestry so later functional work
12
+ has a trustworthy base.
13
+
14
+ ## Acceptance
15
+
16
+ - clean dedicated worktree
17
+ - dedicated feature branch
18
+ - rename policy documented before code mutation
19
+ - auth/provider authority explicitly documented
20
+ - no production/runtime provider contracts changed
@@ -0,0 +1,115 @@
1
+ # Runtime Environment Contract
2
+
3
+ Schema: `agentsam.runtime-environment-contract.v1`
4
+
5
+ Status: **APPROVED / PROTECTED**
6
+
7
+ ## Meaning of "safe"
8
+
9
+ These runtime bindings are known-good parts of the existing
10
+ AgentSam / Local Studio environment contract.
11
+
12
+ "Safe" means:
13
+
14
+ - preserve the binding name
15
+ - preserve its existing environment value
16
+ - preserve Variable vs Secret classification
17
+ - allow existing Production / Previews / Base wiring to continue
18
+ - do not reinterpret the name during internal provider refactors
19
+
20
+ It does **not** mean secret values are public.
21
+
22
+ Secret values must remain encrypted and must never be written into
23
+ this repository, logs, frontend state, query parameters, generated
24
+ documentation, test snapshots, or Git diffs.
25
+
26
+ ## Approved runtime variables
27
+
28
+ - `CLOUDFLARE_ACCOUNT_ID`
29
+ - `GITHUB_APP_ID`
30
+ - `GITHUB_CLIENT_ID`
31
+ - `GOOGLE_CLIENT_ID`
32
+ - `GOOGLE_DESKTOP_CLIENT_ID`
33
+ - `IAM_CLIENT_ID`
34
+ - `IAM_OAUTH_ISSUER`
35
+
36
+ ## Approved runtime secrets
37
+
38
+ - `AGENTSAM_API_KEY`
39
+ - `AGENTSAM_BRIDGE_KEY`
40
+ - `CLOUDFLARE_API_TOKEN`
41
+ - `CLOUDFLARE_BREAK_GLASS_ADMIN_TOKEN`
42
+ - `CLOUDFLARE_OAUTH_CLIENT_ID`
43
+ - `CURSOR_API_KEY`
44
+ - `GEMINI_API_KEY`
45
+ - `GITHUB_APP_PRIVATE_KEY`
46
+ - `GITHUB_CLIENT_SECRET`
47
+ - `GITHUB_WEBHOOK_SECRET`
48
+ - `GOOGLE_CLIENT_SECRET`
49
+ - `GOOGLE_DESKTOP_CLIENT_SECRET`
50
+ - `IAM_CLIENT_SECRET`
51
+ - `OPENAI_API_KEY`
52
+ - `VAULT_MASTER_KEY`
53
+
54
+ ## Refactor protection
55
+
56
+ Internal provider abbreviations are implementation-path vocabulary:
57
+
58
+ - `cfoa`
59
+ - `gclioa`
60
+ - `goaude`
61
+ - `gdrv`
62
+
63
+ They MUST NOT cause environment variables such as:
64
+
65
+ - `CLOUDFLARE_ACCOUNT_ID`
66
+ - `CLOUDFLARE_API_TOKEN`
67
+ - `CLOUDFLARE_OAUTH_CLIENT_ID`
68
+ - `GOOGLE_CLIENT_ID`
69
+ - `GOOGLE_CLIENT_SECRET`
70
+ - `GOOGLE_DESKTOP_CLIENT_ID`
71
+ - `GOOGLE_DESKTOP_CLIENT_SECRET`
72
+
73
+ to be renamed.
74
+
75
+ Environment-variable names are runtime contracts, not implementation
76
+ filenames.
77
+
78
+ ## Existing `.env` / deployment behavior
79
+
80
+ Preserve the working runtime environment pattern.
81
+
82
+ This lane does not require moving, deleting, rotating, renaming, or
83
+ changing the values of these bindings.
84
+
85
+ Environment-specific values remain managed by their existing runtime
86
+ environment / secret-management authority.
87
+
88
+ ## OAuth boundary
89
+
90
+ Provider implementation-file cleanup does not redesign authentication.
91
+
92
+ Existing Google, Google Desktop, Cloudflare, IAM, GitHub, AgentSam,
93
+ bridge, Vault, and model-provider credentials retain their current
94
+ runtime authority.
95
+
96
+ Portable UI packages must consume server/native capability adapters.
97
+ They must not ingest these secrets directly.
98
+
99
+ ## Environments
100
+
101
+ Approved contract scopes:
102
+
103
+ - Production
104
+ - Previews
105
+ - Base
106
+
107
+ A later deployment hardening pass may intentionally vary whether a
108
+ particular credential is populated in each environment, but that is
109
+ separate from this mechanical rename lane.
110
+
111
+ ## Values
112
+
113
+ Actual runtime values are intentionally omitted from this document.
114
+
115
+ The repository records the contract, not the credentials.
@@ -0,0 +1,57 @@
1
+ # Stage 02 — Cloudflare OAuth Internal Directory
2
+
3
+ ## Change
4
+
5
+ Renamed:
6
+
7
+ `packages/connectors/cloudflare/`
8
+ → `packages/connectors/cfoa/`
9
+
10
+ `cfoa` means **Cloudflare OAuth**.
11
+
12
+ ## Scope
13
+
14
+ This stage changes implementation filesystem naming only.
15
+
16
+ It does **not** rename:
17
+
18
+ - runtime provider ID `cloudflare`
19
+ - Cloudflare OAuth routes
20
+ - Cloudflare API URLs
21
+ - environment variables
22
+ - D1/R2 scope strings
23
+ - D1/R2 provider IDs
24
+ - persisted connection/provider values
25
+ - public package names
26
+
27
+ ## Rewritten tracked references
28
+
29
+ - `apps/agentsamd/agentsam.package.json`
30
+ - `apps/local-studio/backend/worker/cloudflare-code-mode.js`
31
+ - `apps/local-studio/backend/worker/connections-registry.js`
32
+ - `apps/local-studio/backend/worker/database-service.js`
33
+ - `apps/local-studio/backend/worker/index.js`
34
+ - `apps/local-studio/backend/worker/plugin-registry.js`
35
+ - `apps/local-studio/package-lock.json`
36
+ - `docs/SOURCE_ARCHITECTURE.md`
37
+ - `docs/engineering/provider-internal-renames/README.md`
38
+ - `package-lock.json`
39
+ - `package.json`
40
+ - `packages/agentsam-knowledge/src/backends/index.js`
41
+ - `packages/connectors/cfoa/package.json`
42
+ - `packages/identity/src/oauth/credentials.js`
43
+ - `scripts/verify-package.mjs`
44
+ - `src/commands/cloudflare-login.js`
45
+ - `src/commands/cloudflare.js`
46
+ - `src/commands/connections.js`
47
+ - `src/lib/deploy/local-studio.js`
48
+ - `src/lib/whoami-capabilities.js`
49
+ - `src/mcp/cloudflare-bundles.js`
50
+ - `test/cloudflare-connector.test.mjs`
51
+ - `test/local-studio-deploy.test.mjs`
52
+
53
+ ## Architecture
54
+
55
+ Cloudflare authentication remains a host/provider authority.
56
+ Portable Work/content UI packages consume capability-bearing
57
+ adapters and must not own OAuth tokens themselves.
@@ -0,0 +1,32 @@
1
+ # Stage 03 — Google CLI OAuth Internal Filename
2
+
3
+ ## Change
4
+
5
+ Renamed:
6
+
7
+ `apps/local-studio/backend/worker/google-cli-cloud.js`
8
+ → `apps/local-studio/backend/worker/gclioa.js`
9
+
10
+ `gclioa` means **Google CLI OAuth**.
11
+
12
+ ## Important boundary
13
+
14
+ This stage intentionally does not globally replace the string
15
+ `google-cli-cloud`.
16
+
17
+ Any external OAuth route, callback identifier, protocol value,
18
+ persisted value, or API contract retains its existing name.
19
+
20
+ Only the implementation filename and module references were
21
+ mechanically revised.
22
+
23
+ ## Tracked files rewritten
24
+
25
+ - `apps/local-studio/backend/worker/index.js`
26
+ - `docs/engineering/provider-internal-renames/README.md`
27
+
28
+ ## Auth authority
29
+
30
+ This remains the existing Google CLI/cloud OAuth lane. No new
31
+ credential store, identity system, or frontend token transport
32
+ is introduced.
@@ -0,0 +1,50 @@
1
+ # Stage 04 — Google Desktop OAuth Exchange Internals
2
+
3
+ ## Change
4
+
5
+ Renamed the two implementation files representing the desktop
6
+ Google OAuth/native handoff lane:
7
+
8
+ `apps/local-studio/backend/worker/google-desktop-exchange.js`
9
+ → `apps/local-studio/backend/worker/goaude.js`
10
+
11
+ `packages/identity/src/oauth/google-desktop-exchange.js`
12
+ → `packages/identity/src/oauth/goaude.js`
13
+
14
+ `goaude` is the compact internal name for the Google OAuth
15
+ desktop/dashboard exchange implementation.
16
+
17
+ ## Preserved behavior
18
+
19
+ The existing desktop PKCE/native OAuth architecture remains
20
+ unchanged.
21
+
22
+ This stage does not rename or redesign:
23
+
24
+ - OAuth callback URLs
25
+ - native deep-link protocols
26
+ - PKCE semantics
27
+ - native handoff records
28
+ - IAM session semantics
29
+ - Google provider identity
30
+ - browser-to-native exchange behavior
31
+
32
+ ## Tracked references revised
33
+
34
+ - `apps/local-studio/backend/worker/goaude.js`
35
+ - `apps/local-studio/backend/worker/index.js`
36
+ - `apps/local-studio/scripts/google-desktop-exchange.test.mjs`
37
+ - `apps/local-studio/scripts/smoke-desktop-auth.mjs`
38
+ - `docs/engineering/provider-internal-renames/README.md`
39
+ - `package.json`
40
+ - `packages/identity/src/index.js`
41
+ - `packages/identity/src/oauth/README.md`
42
+ - `packages/identity/src/server/worker-router.js`
43
+ - `packages/identity/tests/google-desktop-identity-login.test.mjs`
44
+ - `packages/identity/tests/oauth-presets-accounts-ssot.test.mjs`
45
+
46
+ ## SDK law
47
+
48
+ Installed Local Studio remains independently usable. Desktop
49
+ Google OAuth must continue through its existing native/PKCE
50
+ authority rather than depending on a hosted-only Work UI flow.
@@ -0,0 +1,33 @@
1
+ # Stage 05 — Google Drive Provider Internal Filename
2
+
3
+ ## Change
4
+
5
+ Renamed:
6
+
7
+ `packages/agentsam-content/src/providers/google-drive.ts`
8
+ → `packages/agentsam-content/src/providers/gdrv.ts`
9
+
10
+ `gdrv` is only the implementation filename.
11
+
12
+ ## Runtime identity remains unchanged
13
+
14
+ The provider/source identifier remains:
15
+
16
+ `google-drive`
17
+
18
+ This matters because Work routing, library metadata, provider
19
+ registries, persisted records, capability resolution, analytics,
20
+ and external integrations may depend on that stable semantic ID.
21
+
22
+ ## Tracked module/path references revised
23
+
24
+ - `docs/engineering/provider-internal-renames/README.md`
25
+ - `packages/agentsam-content/src/providers/index.ts`
26
+
27
+ ## Future Work integration
28
+
29
+ The Work product should consume this provider through the
30
+ `agentsam-content` contract.
31
+
32
+ Work must not directly acquire Google OAuth credentials or keep
33
+ provider tokens in React/frontend state.
@@ -0,0 +1,103 @@
1
+ # Stage 06 — Provider Internal Rename Verification
2
+
3
+ Verified: `2026-10-04T04:04:40.116058+00:00`
4
+
5
+ Branch: `feat/work-suite-graduation-20261003`
6
+
7
+ Verified implementation HEAD before this documentation commit:
8
+
9
+ `eae86e57`
10
+
11
+ Status: **PASS**
12
+
13
+ ## Scope
14
+
15
+ This verification closes the provider-internal filesystem/module
16
+ rename lane.
17
+
18
+ The following are internal implementation abbreviations only:
19
+
20
+ - `cfoa` — Cloudflare OAuth internals
21
+ - `gclioa` — Google CLI OAuth internals
22
+ - `goaude` — Google desktop/native OAuth exchange internals
23
+ - `gdrv` — Google Drive provider implementation internals
24
+
25
+ They do not replace public provider names, persisted provider IDs,
26
+ OAuth route semantics, API URLs, capability names, environment
27
+ variables, or user-facing provider vocabulary.
28
+
29
+ ## Verified paths
30
+
31
+ Present:
32
+
33
+ - `packages/connectors/cfoa/`
34
+ - `apps/local-studio/backend/worker/gclioa.js`
35
+ - `apps/local-studio/backend/worker/goaude.js`
36
+ - `packages/identity/src/oauth/goaude.js`
37
+ - `packages/agentsam-content/src/providers/gdrv.ts`
38
+
39
+ Retired physical implementation paths are absent.
40
+
41
+ Historical migration documentation may intentionally mention old
42
+ paths in order to preserve old → new provenance.
43
+
44
+ Active source/config/test/package references may not use them.
45
+
46
+ ## Runtime environment contract
47
+
48
+ Protected runtime entries:
49
+
50
+ - variables: **7**
51
+ - secrets: **15**
52
+ - total: **22**
53
+
54
+ Runtime names and current value authority are preserved.
55
+
56
+ Internal abbreviations are prohibited from becoming environment
57
+ prefixes such as:
58
+
59
+ - `CFOA_*`
60
+ - `GCLIOA_*`
61
+ - `GOAUDE_*`
62
+ - `GDRV_*`
63
+
64
+ Secret values were not read, printed, serialized, or committed by
65
+ this verification.
66
+
67
+ ## GO lifecycle regression
68
+
69
+ The lane also contains the bounded lifecycle correction discovered
70
+ while running the verification suite:
71
+
72
+ `fix(go): honor skip-deploy toolchain boundary`
73
+
74
+ `--skip-deploy` now avoids Docker execution when Docker is not
75
+ required, including the preflight path.
76
+
77
+ Regression tests enforce that boundary.
78
+
79
+ ## Test gate
80
+
81
+ Immediately prior to this closeout, the repository's standard gate
82
+ completed successfully:
83
+
84
+ `npm run test:standard`
85
+
86
+ Result:
87
+
88
+ - standard smoke/unit/CLI/integration/terminal sequence completed
89
+ - integration/mock summary: 296 tests, 294 pass, 0 fail, 2 skipped
90
+ - terminal/mock summary: 3 tests, 3 pass, 0 fail
91
+ - overall command returned successfully to the shell
92
+
93
+ Skipped tests are not failures.
94
+
95
+ ## Acceptance
96
+
97
+ Provider-internal rename work is complete and verified.
98
+
99
+ This closes the mechanical rename lane.
100
+
101
+ Subsequent work—AgentSam Go deployment portability, Work Suite
102
+ graduation, browser/public Explore work, and other feature lanes—
103
+ should be performed as separate chronological changes.
@@ -0,0 +1,77 @@
1
+ # Provider Internal Rename Lane
2
+
3
+ Branch: `feat/work-suite-graduation-20261003`
4
+
5
+ ## Purpose
6
+
7
+ This lane performs mechanical internal path cleanup before the
8
+ Work Suite graduation begins.
9
+
10
+ It intentionally separates internal implementation names from
11
+ externally meaningful provider identities.
12
+
13
+ ## Planned internal names
14
+
15
+ | Existing path | Internal path |
16
+ | --- | --- |
17
+ | `packages/connectors/cfoa/` | `packages/connectors/cfoa/` |
18
+ | `apps/local-studio/backend/worker/gclioa.js` | `apps/local-studio/backend/worker/gclioa.js` |
19
+ | `apps/local-studio/backend/worker/goaude.js` | `apps/local-studio/backend/worker/goaude.js` |
20
+ | `packages/identity/src/oauth/goaude.js` | `packages/identity/src/oauth/goaude.js` |
21
+ | `packages/agentsam-content/src/providers/gdrv.ts` | `packages/agentsam-content/src/providers/gdrv.ts` |
22
+
23
+ Mnemonics:
24
+
25
+ - `cfoa` = Cloudflare OAuth
26
+ - `gclioa` = Google CLI OAuth
27
+ - `goaude` = Google OAuth desktop/dashboard exchange
28
+ - `gdrv` = Google Drive provider implementation
29
+
30
+ ## Hard boundaries
31
+
32
+ These changes MUST NOT rename external/runtime contracts merely
33
+ because their names contain Google or Cloudflare.
34
+
35
+ Preserve:
36
+
37
+ - provider IDs such as `cloudflare`
38
+ - provider IDs such as `google`
39
+ - source IDs such as `google-drive`
40
+ - R2 / D1 capability identifiers
41
+ - OAuth callback URLs
42
+ - API route URLs
43
+ - Google API URLs
44
+ - Cloudflare API URLs
45
+ - environment-variable names
46
+ - persisted provider/database values
47
+ - public SDK package names and APIs unless separately approved
48
+
49
+ ## Authentication authority
50
+
51
+ This rename is not an authentication redesign.
52
+
53
+ Existing authorities remain authoritative:
54
+
55
+ - hosted Google OAuth
56
+ - Google desktop / installed-app PKCE
57
+ - Google CLI/cloud OAuth
58
+ - Cloudflare OAuth
59
+ - Local Studio hosted identity/session infrastructure
60
+ - Local Studio desktop native identity/session infrastructure
61
+ - provider capability grants and persisted connection records
62
+
63
+ UI packages must never become credential stores.
64
+
65
+ `@inneranimalmedia/agentsam-work` consumes capability-bearing host
66
+ adapters. It does not own Google or Cloudflare authentication.
67
+
68
+ ## Change sequence
69
+
70
+ 01. Establish clean worktree and trace documentation.
71
+ 02. Rename Cloudflare connector implementation directory.
72
+ 03. Rename Google CLI OAuth implementation file.
73
+ 04. Rename Google desktop OAuth exchange implementation files.
74
+ 05. Rename Google Drive provider implementation file.
75
+ 06. Run contract/reference verification and tests.
76
+
77
+ Feature work begins only after this mechanical lane is green.