@m2-ai/lattice-cli 0.0.0-stage → 0.8.7

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 (743) hide show
  1. package/DISCLOSURE +1 -0
  2. package/README.md +118 -2
  3. package/bundles/expo-mobile/.agents/skills/lattice-feature-handoff/SKILL.md +31 -0
  4. package/bundles/expo-mobile/.agents/skills/lattice-release-manager/SKILL.md +29 -0
  5. package/bundles/expo-mobile/.agents/skills/lattice-verify/SKILL.md +27 -0
  6. package/bundles/expo-mobile/.claude/agents/lattice-feature-agent.md +10 -0
  7. package/bundles/expo-mobile/.claude/agents/lattice-release-manager.md +9 -0
  8. package/bundles/expo-mobile/.claude/hooks/README.md +9 -0
  9. package/bundles/expo-mobile/.claude/hooks/pre-commit-verify.mjs +10 -0
  10. package/bundles/expo-mobile/.claude/hooks/pre-tool-use.mjs +51 -0
  11. package/bundles/expo-mobile/.claude/rules/lattice-core.md +20 -0
  12. package/bundles/expo-mobile/.claude/settings.json +38 -0
  13. package/bundles/expo-mobile/.claude/skills/lattice-verify/SKILL.md +27 -0
  14. package/bundles/expo-mobile/.codex/agents/lattice-feature-agent.toml +9 -0
  15. package/bundles/expo-mobile/.codex/agents/lattice-release-manager.toml +9 -0
  16. package/bundles/expo-mobile/.cursor/mcp.json +34 -0
  17. package/bundles/expo-mobile/.cursor/rules/lattice-core.mdc +35 -0
  18. package/bundles/expo-mobile/.cursor/rules.md +94 -0
  19. package/bundles/expo-mobile/.env.example +19 -0
  20. package/bundles/expo-mobile/.github/PULL_REQUEST_TEMPLATE.md +42 -0
  21. package/bundles/expo-mobile/.github/agents/lattice-feature-agent.agent.md +7 -0
  22. package/bundles/expo-mobile/.github/agents/lattice-release-manager.agent.md +7 -0
  23. package/bundles/expo-mobile/.github/copilot-instructions.md +37 -0
  24. package/bundles/expo-mobile/.github/instructions/lattice-core.instructions.md +11 -0
  25. package/bundles/expo-mobile/.github/workflows/ci.yml +26 -0
  26. package/bundles/expo-mobile/.gitmessage +24 -0
  27. package/bundles/expo-mobile/.lattice/config.json +9 -0
  28. package/bundles/expo-mobile/.lattice/dependency-security.json +91 -0
  29. package/bundles/expo-mobile/.lattice/prompts/01-feature.md +36 -0
  30. package/bundles/expo-mobile/.lattice/prompts/02-bugfix.md +32 -0
  31. package/bundles/expo-mobile/.lattice/prompts/03-refactor.md +30 -0
  32. package/bundles/expo-mobile/.lattice/prompts/04-test.md +31 -0
  33. package/bundles/expo-mobile/.lattice/prompts/05-polish.md +38 -0
  34. package/bundles/expo-mobile/.lattice/prompts/06-security.md +32 -0
  35. package/bundles/expo-mobile/.lattice/release-workflow.json +55 -0
  36. package/bundles/expo-mobile/.lattice/schemas/feature-handoff.schema.json +264 -0
  37. package/bundles/expo-mobile/.lattice/templates/feature-handoff.json +52 -0
  38. package/bundles/expo-mobile/.mcp.json +35 -0
  39. package/bundles/expo-mobile/AGENTS.md +58 -0
  40. package/bundles/expo-mobile/CLAUDE.md +75 -0
  41. package/bundles/expo-mobile/PROJECT_GUIDE.md +299 -0
  42. package/bundles/expo-mobile/README.md +39 -0
  43. package/bundles/expo-mobile/__tests__/home.test.tsx +22 -0
  44. package/bundles/expo-mobile/app/_layout.tsx +20 -0
  45. package/bundles/expo-mobile/app/index.tsx +72 -0
  46. package/bundles/expo-mobile/app.json +33 -0
  47. package/bundles/expo-mobile/components/ui/Button.tsx +75 -0
  48. package/bundles/expo-mobile/components/ui/Input.tsx +50 -0
  49. package/bundles/expo-mobile/components/ui/index.ts +2 -0
  50. package/bundles/expo-mobile/docs/LATTICE_RELEASE_WORKFLOW.md +53 -0
  51. package/bundles/expo-mobile/docs/rules/codex.md +62 -0
  52. package/bundles/expo-mobile/eslint.config.js +7 -0
  53. package/bundles/expo-mobile/lib/supabase/client.ts +22 -0
  54. package/bundles/expo-mobile/lib/supabase/realtime.ts +10 -0
  55. package/bundles/expo-mobile/lib/supabase/storage.ts +6 -0
  56. package/bundles/expo-mobile/package.json +65 -0
  57. package/bundles/expo-mobile/plugins/with-lattice-commons-io.cjs +42 -0
  58. package/bundles/expo-mobile/prompts/01-feature-implementation.md +48 -0
  59. package/bundles/expo-mobile/prompts/02-bug-fix.md +43 -0
  60. package/bundles/expo-mobile/prompts/03-safe-refactor.md +38 -0
  61. package/bundles/expo-mobile/prompts/04-test-first.md +41 -0
  62. package/bundles/expo-mobile/prompts/05-ui-polish.md +44 -0
  63. package/bundles/expo-mobile/prompts/06-security-review.md +39 -0
  64. package/bundles/expo-mobile/prompts/quality.md +143 -0
  65. package/bundles/expo-mobile/supabase/migrations/001_initial_schema.sql +66 -0
  66. package/bundles/expo-mobile/tsconfig.json +21 -0
  67. package/bundles/expo-mobile/types/database.types.ts +76 -0
  68. package/bundles/expo-mobile/vendor/m2ai-braces-3.0.3-m2ai.1.tar +0 -0
  69. package/bundles/expo-supabase/.agents/skills/lattice-feature-handoff/SKILL.md +31 -0
  70. package/bundles/expo-supabase/.agents/skills/lattice-release-manager/SKILL.md +29 -0
  71. package/bundles/expo-supabase/.agents/skills/lattice-verify/SKILL.md +27 -0
  72. package/bundles/expo-supabase/.claude/agents/lattice-feature-agent.md +10 -0
  73. package/bundles/expo-supabase/.claude/agents/lattice-release-manager.md +9 -0
  74. package/bundles/expo-supabase/.claude/hooks/README.md +9 -0
  75. package/bundles/expo-supabase/.claude/hooks/pre-commit-verify.mjs +10 -0
  76. package/bundles/expo-supabase/.claude/hooks/pre-tool-use.mjs +51 -0
  77. package/bundles/expo-supabase/.claude/rules/lattice-core.md +20 -0
  78. package/bundles/expo-supabase/.claude/settings.json +38 -0
  79. package/bundles/expo-supabase/.claude/skills/lattice-verify/SKILL.md +27 -0
  80. package/bundles/expo-supabase/.codex/agents/lattice-feature-agent.toml +9 -0
  81. package/bundles/expo-supabase/.codex/agents/lattice-release-manager.toml +9 -0
  82. package/bundles/expo-supabase/.cursor/mcp.json +34 -0
  83. package/bundles/expo-supabase/.cursor/rules/lattice-core.mdc +35 -0
  84. package/bundles/expo-supabase/.cursor/rules.md +94 -0
  85. package/bundles/expo-supabase/.env.example +12 -0
  86. package/bundles/expo-supabase/.github/PULL_REQUEST_TEMPLATE.md +42 -0
  87. package/bundles/expo-supabase/.github/agents/lattice-feature-agent.agent.md +7 -0
  88. package/bundles/expo-supabase/.github/agents/lattice-release-manager.agent.md +7 -0
  89. package/bundles/expo-supabase/.github/copilot-instructions.md +37 -0
  90. package/bundles/expo-supabase/.github/instructions/lattice-core.instructions.md +11 -0
  91. package/bundles/expo-supabase/.github/workflows/ci.yml +26 -0
  92. package/bundles/expo-supabase/.gitmessage +24 -0
  93. package/bundles/expo-supabase/.lattice/config.json +9 -0
  94. package/bundles/expo-supabase/.lattice/dependency-security.json +91 -0
  95. package/bundles/expo-supabase/.lattice/prompts/01-feature.md +36 -0
  96. package/bundles/expo-supabase/.lattice/prompts/02-bugfix.md +32 -0
  97. package/bundles/expo-supabase/.lattice/prompts/03-refactor.md +30 -0
  98. package/bundles/expo-supabase/.lattice/prompts/04-test.md +31 -0
  99. package/bundles/expo-supabase/.lattice/prompts/05-polish.md +38 -0
  100. package/bundles/expo-supabase/.lattice/prompts/06-security.md +32 -0
  101. package/bundles/expo-supabase/.lattice/release-workflow.json +55 -0
  102. package/bundles/expo-supabase/.lattice/schemas/feature-handoff.schema.json +264 -0
  103. package/bundles/expo-supabase/.lattice/templates/feature-handoff.json +52 -0
  104. package/bundles/expo-supabase/.mcp.json +35 -0
  105. package/bundles/expo-supabase/AGENTS.md +58 -0
  106. package/bundles/expo-supabase/CLAUDE.md +75 -0
  107. package/bundles/expo-supabase/PROJECT_GUIDE.md +201 -0
  108. package/bundles/expo-supabase/README.md +38 -0
  109. package/bundles/expo-supabase/__tests__/home.test.tsx +22 -0
  110. package/bundles/expo-supabase/app/_layout.tsx +14 -0
  111. package/bundles/expo-supabase/app/index.tsx +72 -0
  112. package/bundles/expo-supabase/app.json +33 -0
  113. package/bundles/expo-supabase/components/ui/Button.tsx +75 -0
  114. package/bundles/expo-supabase/components/ui/Input.tsx +50 -0
  115. package/bundles/expo-supabase/components/ui/index.ts +2 -0
  116. package/bundles/expo-supabase/docs/LATTICE_RELEASE_WORKFLOW.md +53 -0
  117. package/bundles/expo-supabase/docs/rules/codex.md +62 -0
  118. package/bundles/expo-supabase/eslint.config.js +7 -0
  119. package/bundles/expo-supabase/lib/supabase/client.ts +22 -0
  120. package/bundles/expo-supabase/lib/supabase/realtime.ts +10 -0
  121. package/bundles/expo-supabase/lib/supabase/storage.ts +6 -0
  122. package/bundles/expo-supabase/package.json +60 -0
  123. package/bundles/expo-supabase/plugins/with-lattice-commons-io.cjs +42 -0
  124. package/bundles/expo-supabase/prompts/01-feature-implementation.md +8 -0
  125. package/bundles/expo-supabase/prompts/02-bug-fix.md +9 -0
  126. package/bundles/expo-supabase/prompts/03-safe-refactor.md +8 -0
  127. package/bundles/expo-supabase/prompts/04-test-first.md +7 -0
  128. package/bundles/expo-supabase/prompts/05-ui-polish.md +7 -0
  129. package/bundles/expo-supabase/prompts/06-security-review.md +7 -0
  130. package/bundles/expo-supabase/prompts/quality.md +143 -0
  131. package/bundles/expo-supabase/supabase/migrations/001_initial_schema.sql +66 -0
  132. package/bundles/expo-supabase/tsconfig.json +21 -0
  133. package/bundles/expo-supabase/types/database.types.ts +76 -0
  134. package/bundles/expo-supabase/vendor/m2ai-braces-3.0.3-m2ai.1.tar +0 -0
  135. package/bundles/nextjs-landing/.agents/skills/lattice-feature-handoff/SKILL.md +31 -0
  136. package/bundles/nextjs-landing/.agents/skills/lattice-release-manager/SKILL.md +29 -0
  137. package/bundles/nextjs-landing/.agents/skills/lattice-verify/SKILL.md +27 -0
  138. package/bundles/nextjs-landing/.claude/agents/lattice-feature-agent.md +10 -0
  139. package/bundles/nextjs-landing/.claude/agents/lattice-release-manager.md +9 -0
  140. package/bundles/nextjs-landing/.claude/hooks/README.md +9 -0
  141. package/bundles/nextjs-landing/.claude/hooks/pre-commit-verify.mjs +10 -0
  142. package/bundles/nextjs-landing/.claude/hooks/pre-tool-use.mjs +51 -0
  143. package/bundles/nextjs-landing/.claude/rules/lattice-core.md +20 -0
  144. package/bundles/nextjs-landing/.claude/settings.json +38 -0
  145. package/bundles/nextjs-landing/.claude/skills/lattice-verify/SKILL.md +27 -0
  146. package/bundles/nextjs-landing/.codex/agents/lattice-feature-agent.toml +9 -0
  147. package/bundles/nextjs-landing/.codex/agents/lattice-release-manager.toml +9 -0
  148. package/bundles/nextjs-landing/.cursor/mcp.json +34 -0
  149. package/bundles/nextjs-landing/.cursor/rules/lattice-core.mdc +35 -0
  150. package/bundles/nextjs-landing/.cursor/rules.md +95 -0
  151. package/bundles/nextjs-landing/.env.example +24 -0
  152. package/bundles/nextjs-landing/.github/PULL_REQUEST_TEMPLATE.md +42 -0
  153. package/bundles/nextjs-landing/.github/agents/lattice-feature-agent.agent.md +7 -0
  154. package/bundles/nextjs-landing/.github/agents/lattice-release-manager.agent.md +7 -0
  155. package/bundles/nextjs-landing/.github/copilot-instructions.md +37 -0
  156. package/bundles/nextjs-landing/.github/instructions/lattice-core.instructions.md +11 -0
  157. package/bundles/nextjs-landing/.github/workflows/ci.yml +26 -0
  158. package/bundles/nextjs-landing/.gitmessage +24 -0
  159. package/bundles/nextjs-landing/.lattice/config.json +9 -0
  160. package/bundles/nextjs-landing/.lattice/dependency-security.json +46 -0
  161. package/bundles/nextjs-landing/.lattice/prompts/01-feature.md +36 -0
  162. package/bundles/nextjs-landing/.lattice/prompts/02-bugfix.md +32 -0
  163. package/bundles/nextjs-landing/.lattice/prompts/03-refactor.md +30 -0
  164. package/bundles/nextjs-landing/.lattice/prompts/04-test.md +31 -0
  165. package/bundles/nextjs-landing/.lattice/prompts/05-polish.md +38 -0
  166. package/bundles/nextjs-landing/.lattice/prompts/06-security.md +32 -0
  167. package/bundles/nextjs-landing/.lattice/release-workflow.json +55 -0
  168. package/bundles/nextjs-landing/.lattice/schemas/feature-handoff.schema.json +264 -0
  169. package/bundles/nextjs-landing/.lattice/templates/feature-handoff.json +52 -0
  170. package/bundles/nextjs-landing/.mcp.json +35 -0
  171. package/bundles/nextjs-landing/AGENTS.md +58 -0
  172. package/bundles/nextjs-landing/CLAUDE.md +76 -0
  173. package/bundles/nextjs-landing/PROJECT_GUIDE.md +216 -0
  174. package/bundles/nextjs-landing/README.md +39 -0
  175. package/bundles/nextjs-landing/app/api/example/[id]/route.ts +34 -0
  176. package/bundles/nextjs-landing/app/api/example/route.ts +24 -0
  177. package/bundles/nextjs-landing/app/api/health/route.ts +8 -0
  178. package/bundles/nextjs-landing/app/global-error.tsx +17 -0
  179. package/bundles/nextjs-landing/app/globals.css +55 -0
  180. package/bundles/nextjs-landing/app/layout.tsx +22 -0
  181. package/bundles/nextjs-landing/app/page.tsx +42 -0
  182. package/bundles/nextjs-landing/components/ui/button.tsx +39 -0
  183. package/bundles/nextjs-landing/components/ui/card.tsx +53 -0
  184. package/bundles/nextjs-landing/components/ui/index.ts +4 -0
  185. package/bundles/nextjs-landing/components/ui/input.tsx +23 -0
  186. package/bundles/nextjs-landing/components/ui/spinner.tsx +22 -0
  187. package/bundles/nextjs-landing/docs/LATTICE_RELEASE_WORKFLOW.md +53 -0
  188. package/bundles/nextjs-landing/docs/rules/codex.md +62 -0
  189. package/bundles/nextjs-landing/eslint.config.mjs +16 -0
  190. package/bundles/nextjs-landing/instrumentation-client.ts +30 -0
  191. package/bundles/nextjs-landing/instrumentation.ts +12 -0
  192. package/bundles/nextjs-landing/jest.config.mjs +16 -0
  193. package/bundles/nextjs-landing/jest.setup.js +1 -0
  194. package/bundles/nextjs-landing/lib/utils.ts +6 -0
  195. package/bundles/nextjs-landing/next-env.d.ts +5 -0
  196. package/bundles/nextjs-landing/next.config.ts +15 -0
  197. package/bundles/nextjs-landing/package.json +48 -0
  198. package/bundles/nextjs-landing/postcss.config.mjs +7 -0
  199. package/bundles/nextjs-landing/prompts/01-feature-implementation.md +9 -0
  200. package/bundles/nextjs-landing/prompts/02-bug-fix.md +10 -0
  201. package/bundles/nextjs-landing/prompts/03-safe-refactor.md +8 -0
  202. package/bundles/nextjs-landing/prompts/04-test-first.md +8 -0
  203. package/bundles/nextjs-landing/prompts/05-ui-polish.md +8 -0
  204. package/bundles/nextjs-landing/prompts/06-security-review.md +7 -0
  205. package/bundles/nextjs-landing/prompts/quality.md +269 -0
  206. package/bundles/nextjs-landing/sentry.edge.config.ts +15 -0
  207. package/bundles/nextjs-landing/sentry.server.config.ts +15 -0
  208. package/bundles/nextjs-landing/tsconfig.json +42 -0
  209. package/bundles/nextjs-landing/vendor/m2ai-braces-3.0.3-m2ai.1.tar +0 -0
  210. package/bundles/nextjs-saas/.agents/skills/lattice-feature-handoff/SKILL.md +31 -0
  211. package/bundles/nextjs-saas/.agents/skills/lattice-release-manager/SKILL.md +29 -0
  212. package/bundles/nextjs-saas/.agents/skills/lattice-verify/SKILL.md +27 -0
  213. package/bundles/nextjs-saas/.claude/agents/lattice-feature-agent.md +10 -0
  214. package/bundles/nextjs-saas/.claude/agents/lattice-release-manager.md +9 -0
  215. package/bundles/nextjs-saas/.claude/hooks/README.md +9 -0
  216. package/bundles/nextjs-saas/.claude/hooks/pre-commit-verify.mjs +10 -0
  217. package/bundles/nextjs-saas/.claude/hooks/pre-tool-use.mjs +51 -0
  218. package/bundles/nextjs-saas/.claude/rules/lattice-core.md +20 -0
  219. package/bundles/nextjs-saas/.claude/settings.json +38 -0
  220. package/bundles/nextjs-saas/.claude/skills/lattice-verify/SKILL.md +27 -0
  221. package/bundles/nextjs-saas/.codex/agents/lattice-feature-agent.toml +9 -0
  222. package/bundles/nextjs-saas/.codex/agents/lattice-release-manager.toml +9 -0
  223. package/bundles/nextjs-saas/.cursor/mcp.json +34 -0
  224. package/bundles/nextjs-saas/.cursor/rules/lattice-core.mdc +35 -0
  225. package/bundles/nextjs-saas/.cursor/rules.md +95 -0
  226. package/bundles/nextjs-saas/.env.example +48 -0
  227. package/bundles/nextjs-saas/.github/PULL_REQUEST_TEMPLATE.md +42 -0
  228. package/bundles/nextjs-saas/.github/agents/lattice-feature-agent.agent.md +7 -0
  229. package/bundles/nextjs-saas/.github/agents/lattice-release-manager.agent.md +7 -0
  230. package/bundles/nextjs-saas/.github/copilot-instructions.md +37 -0
  231. package/bundles/nextjs-saas/.github/instructions/lattice-core.instructions.md +11 -0
  232. package/bundles/nextjs-saas/.github/workflows/ci.yml +26 -0
  233. package/bundles/nextjs-saas/.gitmessage +24 -0
  234. package/bundles/nextjs-saas/.lattice/config.json +9 -0
  235. package/bundles/nextjs-saas/.lattice/dependency-security.json +46 -0
  236. package/bundles/nextjs-saas/.lattice/prompts/01-feature.md +36 -0
  237. package/bundles/nextjs-saas/.lattice/prompts/02-bugfix.md +32 -0
  238. package/bundles/nextjs-saas/.lattice/prompts/03-refactor.md +30 -0
  239. package/bundles/nextjs-saas/.lattice/prompts/04-test.md +31 -0
  240. package/bundles/nextjs-saas/.lattice/prompts/05-polish.md +38 -0
  241. package/bundles/nextjs-saas/.lattice/prompts/06-security.md +32 -0
  242. package/bundles/nextjs-saas/.lattice/prompts/quality.md +269 -0
  243. package/bundles/nextjs-saas/.lattice/release-workflow.json +55 -0
  244. package/bundles/nextjs-saas/.lattice/schemas/feature-handoff.schema.json +264 -0
  245. package/bundles/nextjs-saas/.lattice/templates/feature-handoff.json +52 -0
  246. package/bundles/nextjs-saas/.mcp.json +35 -0
  247. package/bundles/nextjs-saas/AGENTS.md +58 -0
  248. package/bundles/nextjs-saas/CLAUDE.md +76 -0
  249. package/bundles/nextjs-saas/PROJECT_GUIDE.md +279 -0
  250. package/bundles/nextjs-saas/README.md +42 -0
  251. package/bundles/nextjs-saas/app/(auth)/forgot-password/page.tsx +101 -0
  252. package/bundles/nextjs-saas/app/(auth)/layout.tsx +7 -0
  253. package/bundles/nextjs-saas/app/(auth)/login/page.tsx +108 -0
  254. package/bundles/nextjs-saas/app/(auth)/reset-password/page.tsx +135 -0
  255. package/bundles/nextjs-saas/app/(auth)/signup/page.tsx +144 -0
  256. package/bundles/nextjs-saas/app/(dashboard)/dashboard/page.tsx +80 -0
  257. package/bundles/nextjs-saas/app/(dashboard)/layout.tsx +49 -0
  258. package/bundles/nextjs-saas/app/api/billing/checkout/route.ts +47 -0
  259. package/bundles/nextjs-saas/app/api/billing/portal/route.ts +29 -0
  260. package/bundles/nextjs-saas/app/api/example/[id]/route.ts +93 -0
  261. package/bundles/nextjs-saas/app/api/example/route.ts +61 -0
  262. package/bundles/nextjs-saas/app/api/health/route.ts +8 -0
  263. package/bundles/nextjs-saas/app/api/stripe/webhook/route.ts +57 -0
  264. package/bundles/nextjs-saas/app/api/user/route.ts +49 -0
  265. package/bundles/nextjs-saas/app/auth/callback/route.ts +16 -0
  266. package/bundles/nextjs-saas/app/auth/signout/route.ts +10 -0
  267. package/bundles/nextjs-saas/app/global-error.tsx +17 -0
  268. package/bundles/nextjs-saas/app/globals.css +55 -0
  269. package/bundles/nextjs-saas/app/layout.tsx +22 -0
  270. package/bundles/nextjs-saas/app/page.tsx +84 -0
  271. package/bundles/nextjs-saas/components/ui/button.tsx +39 -0
  272. package/bundles/nextjs-saas/components/ui/card.tsx +53 -0
  273. package/bundles/nextjs-saas/components/ui/index.ts +4 -0
  274. package/bundles/nextjs-saas/components/ui/input.tsx +23 -0
  275. package/bundles/nextjs-saas/components/ui/spinner.tsx +22 -0
  276. package/bundles/nextjs-saas/docs/LATTICE_RELEASE_WORKFLOW.md +53 -0
  277. package/bundles/nextjs-saas/docs/rules/codex.md +62 -0
  278. package/bundles/nextjs-saas/eslint.config.mjs +16 -0
  279. package/bundles/nextjs-saas/instrumentation-client.ts +30 -0
  280. package/bundles/nextjs-saas/instrumentation.ts +12 -0
  281. package/bundles/nextjs-saas/jest.config.mjs +16 -0
  282. package/bundles/nextjs-saas/jest.setup.js +1 -0
  283. package/bundles/nextjs-saas/lib/auth/password-recovery.ts +94 -0
  284. package/bundles/nextjs-saas/lib/stripe.ts +10 -0
  285. package/bundles/nextjs-saas/lib/supabase/admin.ts +14 -0
  286. package/bundles/nextjs-saas/lib/supabase/client.ts +8 -0
  287. package/bundles/nextjs-saas/lib/supabase/server.ts +27 -0
  288. package/bundles/nextjs-saas/lib/utils.ts +6 -0
  289. package/bundles/nextjs-saas/next-env.d.ts +5 -0
  290. package/bundles/nextjs-saas/next.config.ts +15 -0
  291. package/bundles/nextjs-saas/package.json +50 -0
  292. package/bundles/nextjs-saas/postcss.config.mjs +7 -0
  293. package/bundles/nextjs-saas/prompts/01-feature-implementation.md +92 -0
  294. package/bundles/nextjs-saas/prompts/02-bug-fix.md +78 -0
  295. package/bundles/nextjs-saas/prompts/03-safe-refactor.md +82 -0
  296. package/bundles/nextjs-saas/prompts/04-test-first.md +80 -0
  297. package/bundles/nextjs-saas/prompts/05-ui-polish.md +82 -0
  298. package/bundles/nextjs-saas/prompts/06-security-review.md +74 -0
  299. package/bundles/nextjs-saas/proxy.ts +61 -0
  300. package/bundles/nextjs-saas/sentry.edge.config.ts +15 -0
  301. package/bundles/nextjs-saas/sentry.server.config.ts +15 -0
  302. package/bundles/nextjs-saas/supabase/migrations/001_initial_schema.sql +66 -0
  303. package/bundles/nextjs-saas/supabase/migrations/002_billing.sql +17 -0
  304. package/bundles/nextjs-saas/tsconfig.json +42 -0
  305. package/bundles/nextjs-saas/types/database.types.ts +76 -0
  306. package/bundles/nextjs-saas/vendor/m2ai-braces-3.0.3-m2ai.1.tar +0 -0
  307. package/bundles/nextjs-trpc/.agents/skills/lattice-feature-handoff/SKILL.md +31 -0
  308. package/bundles/nextjs-trpc/.agents/skills/lattice-release-manager/SKILL.md +29 -0
  309. package/bundles/nextjs-trpc/.agents/skills/lattice-verify/SKILL.md +27 -0
  310. package/bundles/nextjs-trpc/.claude/agents/lattice-feature-agent.md +10 -0
  311. package/bundles/nextjs-trpc/.claude/agents/lattice-release-manager.md +9 -0
  312. package/bundles/nextjs-trpc/.claude/hooks/README.md +9 -0
  313. package/bundles/nextjs-trpc/.claude/hooks/pre-commit-verify.mjs +10 -0
  314. package/bundles/nextjs-trpc/.claude/hooks/pre-tool-use.mjs +51 -0
  315. package/bundles/nextjs-trpc/.claude/rules/lattice-core.md +20 -0
  316. package/bundles/nextjs-trpc/.claude/settings.json +38 -0
  317. package/bundles/nextjs-trpc/.claude/skills/lattice-verify/SKILL.md +27 -0
  318. package/bundles/nextjs-trpc/.codex/agents/lattice-feature-agent.toml +9 -0
  319. package/bundles/nextjs-trpc/.codex/agents/lattice-release-manager.toml +9 -0
  320. package/bundles/nextjs-trpc/.cursor/mcp.json +34 -0
  321. package/bundles/nextjs-trpc/.cursor/rules/lattice-core.mdc +35 -0
  322. package/bundles/nextjs-trpc/.cursor/rules.md +95 -0
  323. package/bundles/nextjs-trpc/.env.example +21 -0
  324. package/bundles/nextjs-trpc/.github/PULL_REQUEST_TEMPLATE.md +42 -0
  325. package/bundles/nextjs-trpc/.github/agents/lattice-feature-agent.agent.md +7 -0
  326. package/bundles/nextjs-trpc/.github/agents/lattice-release-manager.agent.md +7 -0
  327. package/bundles/nextjs-trpc/.github/copilot-instructions.md +37 -0
  328. package/bundles/nextjs-trpc/.github/instructions/lattice-core.instructions.md +11 -0
  329. package/bundles/nextjs-trpc/.github/workflows/ci.yml +26 -0
  330. package/bundles/nextjs-trpc/.gitmessage +24 -0
  331. package/bundles/nextjs-trpc/.lattice/config.json +9 -0
  332. package/bundles/nextjs-trpc/.lattice/dependency-security.json +46 -0
  333. package/bundles/nextjs-trpc/.lattice/prompts/01-feature.md +36 -0
  334. package/bundles/nextjs-trpc/.lattice/prompts/02-bugfix.md +32 -0
  335. package/bundles/nextjs-trpc/.lattice/prompts/03-refactor.md +30 -0
  336. package/bundles/nextjs-trpc/.lattice/prompts/04-test.md +31 -0
  337. package/bundles/nextjs-trpc/.lattice/prompts/05-polish.md +38 -0
  338. package/bundles/nextjs-trpc/.lattice/prompts/06-security.md +32 -0
  339. package/bundles/nextjs-trpc/.lattice/release-workflow.json +55 -0
  340. package/bundles/nextjs-trpc/.lattice/schemas/feature-handoff.schema.json +264 -0
  341. package/bundles/nextjs-trpc/.lattice/templates/feature-handoff.json +52 -0
  342. package/bundles/nextjs-trpc/.mcp.json +35 -0
  343. package/bundles/nextjs-trpc/AGENTS.md +58 -0
  344. package/bundles/nextjs-trpc/CLAUDE.md +76 -0
  345. package/bundles/nextjs-trpc/PROJECT_GUIDE.md +187 -0
  346. package/bundles/nextjs-trpc/README.md +49 -0
  347. package/bundles/nextjs-trpc/app/api/trpc/[trpc]/route.ts +12 -0
  348. package/bundles/nextjs-trpc/app/global-error.tsx +17 -0
  349. package/bundles/nextjs-trpc/app/globals.css +55 -0
  350. package/bundles/nextjs-trpc/app/layout.tsx +19 -0
  351. package/bundles/nextjs-trpc/app/page.tsx +16 -0
  352. package/bundles/nextjs-trpc/app/providers.tsx +24 -0
  353. package/bundles/nextjs-trpc/components/ui/button.tsx +39 -0
  354. package/bundles/nextjs-trpc/components/ui/card.tsx +53 -0
  355. package/bundles/nextjs-trpc/components/ui/index.ts +4 -0
  356. package/bundles/nextjs-trpc/components/ui/input.tsx +23 -0
  357. package/bundles/nextjs-trpc/components/ui/spinner.tsx +22 -0
  358. package/bundles/nextjs-trpc/components/user-list.tsx +17 -0
  359. package/bundles/nextjs-trpc/docs/LATTICE_RELEASE_WORKFLOW.md +53 -0
  360. package/bundles/nextjs-trpc/docs/rules/codex.md +62 -0
  361. package/bundles/nextjs-trpc/eslint.config.mjs +16 -0
  362. package/bundles/nextjs-trpc/instrumentation-client.ts +20 -0
  363. package/bundles/nextjs-trpc/instrumentation.ts +12 -0
  364. package/bundles/nextjs-trpc/jest.config.mjs +16 -0
  365. package/bundles/nextjs-trpc/jest.setup.js +1 -0
  366. package/bundles/nextjs-trpc/lib/db.ts +17 -0
  367. package/bundles/nextjs-trpc/lib/trpc/react.tsx +7 -0
  368. package/bundles/nextjs-trpc/lib/utils.ts +6 -0
  369. package/bundles/nextjs-trpc/next-env.d.ts +5 -0
  370. package/bundles/nextjs-trpc/next.config.ts +15 -0
  371. package/bundles/nextjs-trpc/package.json +62 -0
  372. package/bundles/nextjs-trpc/postcss.config.mjs +7 -0
  373. package/bundles/nextjs-trpc/prisma/schema.prisma +41 -0
  374. package/bundles/nextjs-trpc/prisma.config.ts +10 -0
  375. package/bundles/nextjs-trpc/prompts/01-feature-implementation.md +9 -0
  376. package/bundles/nextjs-trpc/prompts/02-bug-fix.md +9 -0
  377. package/bundles/nextjs-trpc/prompts/03-safe-refactor.md +8 -0
  378. package/bundles/nextjs-trpc/prompts/04-test-first.md +8 -0
  379. package/bundles/nextjs-trpc/prompts/05-ui-polish.md +7 -0
  380. package/bundles/nextjs-trpc/prompts/06-security-review.md +7 -0
  381. package/bundles/nextjs-trpc/prompts/quality.md +269 -0
  382. package/bundles/nextjs-trpc/sentry.edge.config.ts +15 -0
  383. package/bundles/nextjs-trpc/sentry.server.config.ts +15 -0
  384. package/bundles/nextjs-trpc/server/routers/_app.test.ts +60 -0
  385. package/bundles/nextjs-trpc/server/routers/_app.ts +25 -0
  386. package/bundles/nextjs-trpc/server/trpc.ts +12 -0
  387. package/bundles/nextjs-trpc/tsconfig.json +42 -0
  388. package/bundles/nextjs-trpc/vendor/m2ai-braces-3.0.3-m2ai.1.tar +0 -0
  389. package/dist/agent-install-session.d.ts +17 -0
  390. package/dist/agent-install-session.d.ts.map +1 -0
  391. package/dist/agent-install-session.js +106 -0
  392. package/dist/agent-install-session.js.map +1 -0
  393. package/dist/agent-install-session.test.d.ts +2 -0
  394. package/dist/agent-install-session.test.d.ts.map +1 -0
  395. package/dist/agent-install-session.test.js +62 -0
  396. package/dist/agent-install-session.test.js.map +1 -0
  397. package/dist/agent-install.d.ts +41 -0
  398. package/dist/agent-install.d.ts.map +1 -0
  399. package/dist/agent-install.js +42 -0
  400. package/dist/agent-install.js.map +1 -0
  401. package/dist/agent-install.test.d.ts +2 -0
  402. package/dist/agent-install.test.d.ts.map +1 -0
  403. package/dist/agent-install.test.js +58 -0
  404. package/dist/agent-install.test.js.map +1 -0
  405. package/dist/apply-merge.test.d.ts +2 -0
  406. package/dist/apply-merge.test.d.ts.map +1 -0
  407. package/dist/apply-merge.test.js +123 -0
  408. package/dist/apply-merge.test.js.map +1 -0
  409. package/dist/bundle-download.d.ts +23 -0
  410. package/dist/bundle-download.d.ts.map +1 -0
  411. package/dist/bundle-download.js +180 -0
  412. package/dist/bundle-download.js.map +1 -0
  413. package/dist/bundle-download.test.d.ts +2 -0
  414. package/dist/bundle-download.test.d.ts.map +1 -0
  415. package/dist/bundle-download.test.js +200 -0
  416. package/dist/bundle-download.test.js.map +1 -0
  417. package/dist/bundle-rollback.test.d.ts +2 -0
  418. package/dist/bundle-rollback.test.d.ts.map +1 -0
  419. package/dist/bundle-rollback.test.js +127 -0
  420. package/dist/bundle-rollback.test.js.map +1 -0
  421. package/dist/bundle-scaffold.test.d.ts +2 -0
  422. package/dist/bundle-scaffold.test.d.ts.map +1 -0
  423. package/dist/bundle-scaffold.test.js +105 -0
  424. package/dist/bundle-scaffold.test.js.map +1 -0
  425. package/dist/commands.d.ts +132 -0
  426. package/dist/commands.d.ts.map +1 -0
  427. package/dist/commands.js +2012 -0
  428. package/dist/commands.js.map +1 -0
  429. package/dist/credential-store.d.ts +27 -0
  430. package/dist/credential-store.d.ts.map +1 -0
  431. package/dist/credential-store.js +48 -0
  432. package/dist/credential-store.js.map +1 -0
  433. package/dist/credential-store.test.d.ts +2 -0
  434. package/dist/credential-store.test.d.ts.map +1 -0
  435. package/dist/credential-store.test.js +80 -0
  436. package/dist/credential-store.test.js.map +1 -0
  437. package/dist/delivered-project-files.d.ts +31 -0
  438. package/dist/delivered-project-files.d.ts.map +1 -0
  439. package/dist/delivered-project-files.js +158 -0
  440. package/dist/delivered-project-files.js.map +1 -0
  441. package/dist/delivered-project-files.test.d.ts +2 -0
  442. package/dist/delivered-project-files.test.d.ts.map +1 -0
  443. package/dist/delivered-project-files.test.js +107 -0
  444. package/dist/delivered-project-files.test.js.map +1 -0
  445. package/dist/doctor-agents.test.d.ts +2 -0
  446. package/dist/doctor-agents.test.d.ts.map +1 -0
  447. package/dist/doctor-agents.test.js +65 -0
  448. package/dist/doctor-agents.test.js.map +1 -0
  449. package/dist/hermes-install.d.ts +102 -0
  450. package/dist/hermes-install.d.ts.map +1 -0
  451. package/dist/hermes-install.js +641 -0
  452. package/dist/hermes-install.js.map +1 -0
  453. package/dist/hermes-install.test.d.ts +2 -0
  454. package/dist/hermes-install.test.d.ts.map +1 -0
  455. package/dist/hermes-install.test.js +866 -0
  456. package/dist/hermes-install.test.js.map +1 -0
  457. package/dist/index.d.ts +115 -0
  458. package/dist/index.d.ts.map +1 -0
  459. package/dist/index.js +5311 -0
  460. package/dist/index.js.map +1 -0
  461. package/dist/openclaw-install.d.ts +67 -0
  462. package/dist/openclaw-install.d.ts.map +1 -0
  463. package/dist/openclaw-install.js +358 -0
  464. package/dist/openclaw-install.js.map +1 -0
  465. package/dist/openclaw-install.test.d.ts +2 -0
  466. package/dist/openclaw-install.test.d.ts.map +1 -0
  467. package/dist/openclaw-install.test.js +296 -0
  468. package/dist/openclaw-install.test.js.map +1 -0
  469. package/dist/password-recovery-bundle.test.d.ts +2 -0
  470. package/dist/password-recovery-bundle.test.d.ts.map +1 -0
  471. package/dist/password-recovery-bundle.test.js +132 -0
  472. package/dist/password-recovery-bundle.test.js.map +1 -0
  473. package/dist/project-bundle-env.d.ts +19 -0
  474. package/dist/project-bundle-env.d.ts.map +1 -0
  475. package/dist/project-bundle-env.js +111 -0
  476. package/dist/project-bundle-env.js.map +1 -0
  477. package/dist/project-bundle-env.test.d.ts +2 -0
  478. package/dist/project-bundle-env.test.d.ts.map +1 -0
  479. package/dist/project-bundle-env.test.js +93 -0
  480. package/dist/project-bundle-env.test.js.map +1 -0
  481. package/dist/project-path-confinement.test.d.ts +2 -0
  482. package/dist/project-path-confinement.test.d.ts.map +1 -0
  483. package/dist/project-path-confinement.test.js +222 -0
  484. package/dist/project-path-confinement.test.js.map +1 -0
  485. package/dist/security/api.d.ts +18 -0
  486. package/dist/security/api.d.ts.map +1 -0
  487. package/dist/security/api.js +238 -0
  488. package/dist/security/api.js.map +1 -0
  489. package/dist/security/api.test.d.ts +2 -0
  490. package/dist/security/api.test.d.ts.map +1 -0
  491. package/dist/security/api.test.js +220 -0
  492. package/dist/security/api.test.js.map +1 -0
  493. package/dist/security/artifact.d.ts +10 -0
  494. package/dist/security/artifact.d.ts.map +1 -0
  495. package/dist/security/artifact.js +283 -0
  496. package/dist/security/artifact.js.map +1 -0
  497. package/dist/security/artifact.test.d.ts +2 -0
  498. package/dist/security/artifact.test.d.ts.map +1 -0
  499. package/dist/security/artifact.test.js +229 -0
  500. package/dist/security/artifact.test.js.map +1 -0
  501. package/dist/security/commands.d.ts +42 -0
  502. package/dist/security/commands.d.ts.map +1 -0
  503. package/dist/security/commands.js +825 -0
  504. package/dist/security/commands.js.map +1 -0
  505. package/dist/security/commands.test.d.ts +2 -0
  506. package/dist/security/commands.test.d.ts.map +1 -0
  507. package/dist/security/commands.test.js +1051 -0
  508. package/dist/security/commands.test.js.map +1 -0
  509. package/dist/security/connection.d.ts +19 -0
  510. package/dist/security/connection.d.ts.map +1 -0
  511. package/dist/security/connection.js +145 -0
  512. package/dist/security/connection.js.map +1 -0
  513. package/dist/security/connection.test.d.ts +2 -0
  514. package/dist/security/connection.test.d.ts.map +1 -0
  515. package/dist/security/connection.test.js +62 -0
  516. package/dist/security/connection.test.js.map +1 -0
  517. package/dist/security/index-routing.test.d.ts +2 -0
  518. package/dist/security/index-routing.test.d.ts.map +1 -0
  519. package/dist/security/index-routing.test.js +169 -0
  520. package/dist/security/index-routing.test.js.map +1 -0
  521. package/dist/security/journal.d.ts +26 -0
  522. package/dist/security/journal.d.ts.map +1 -0
  523. package/dist/security/journal.js +441 -0
  524. package/dist/security/journal.js.map +1 -0
  525. package/dist/security/journal.test.d.ts +2 -0
  526. package/dist/security/journal.test.d.ts.map +1 -0
  527. package/dist/security/journal.test.js +226 -0
  528. package/dist/security/journal.test.js.map +1 -0
  529. package/dist/security/package-verifier.d.ts +15 -0
  530. package/dist/security/package-verifier.d.ts.map +1 -0
  531. package/dist/security/package-verifier.js +65 -0
  532. package/dist/security/package-verifier.js.map +1 -0
  533. package/dist/security/package-verifier.test.d.ts +2 -0
  534. package/dist/security/package-verifier.test.d.ts.map +1 -0
  535. package/dist/security/package-verifier.test.js +57 -0
  536. package/dist/security/package-verifier.test.js.map +1 -0
  537. package/dist/security/runtime.d.ts +43 -0
  538. package/dist/security/runtime.d.ts.map +1 -0
  539. package/dist/security/runtime.js +81 -0
  540. package/dist/security/runtime.js.map +1 -0
  541. package/dist/security/runtime.test.d.ts +2 -0
  542. package/dist/security/runtime.test.d.ts.map +1 -0
  543. package/dist/security/runtime.test.js +88 -0
  544. package/dist/security/runtime.test.js.map +1 -0
  545. package/dist/security/types.d.ts +169 -0
  546. package/dist/security/types.d.ts.map +1 -0
  547. package/dist/security/types.js +3 -0
  548. package/dist/security/types.js.map +1 -0
  549. package/dist/security-runtime/LICENSE +202 -0
  550. package/dist/security-runtime/NOTICE +16 -0
  551. package/dist/security-runtime/artifact-manifest.json +960 -0
  552. package/dist/security-runtime/bin/vsg.mjs +5 -0
  553. package/dist/security-runtime/lattice-catalog.json +176585 -0
  554. package/dist/security-runtime/lattice-runtime.mjs +90 -0
  555. package/dist/security-runtime/licensing/candidates/apache-source-license-evidence.json +478 -0
  556. package/dist/security-runtime/licensing/candidates/betterleaks-generic-api-key.json +76 -0
  557. package/dist/security-runtime/licensing/candidates/betterleaks-jwt.json +74 -0
  558. package/dist/security-runtime/licensing/candidates/blackberry-additional-source-declaration-evidence.json +276 -0
  559. package/dist/security-runtime/licensing/candidates/blackberry-source-declaration-evidence.json +369 -0
  560. package/dist/security-runtime/licensing/candidates/cado-source-declaration-evidence.json +283 -0
  561. package/dist/security-runtime/licensing/candidates/commercial-rule-candidate.json +280 -0
  562. package/dist/security-runtime/licensing/candidates/commercial-runtime-release.json +389 -0
  563. package/dist/security-runtime/licensing/candidates/data-feed-evidence.json +259 -0
  564. package/dist/security-runtime/licensing/candidates/gitlab-sast-rule-identities.json +178 -0
  565. package/dist/security-runtime/licensing/candidates/gitlab-sast-source-evidence.json +1824 -0
  566. package/dist/security-runtime/licensing/candidates/gitlab-sast-source-notice-bundle.json +45 -0
  567. package/dist/security-runtime/licensing/candidates/malpedia-source-license-evidence.json +41 -0
  568. package/dist/security-runtime/licensing/candidates/rule-license-evidence.json +376 -0
  569. package/dist/security-runtime/licensing/candidates/runner-image-composition.json +1500 -0
  570. package/dist/security-runtime/licensing/candidates/selected-runtime-coverage.json +91 -0
  571. package/dist/security-runtime/licensing/candidates/yara-forge-20260927.json +58502 -0
  572. package/dist/security-runtime/licensing/commercial-components.json +379 -0
  573. package/dist/security-runtime/licensing/notices/betterleaks-1.9.0-MIT.txt +21 -0
  574. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/28a9529c7d0bb4dc51f4bf5c116a3d16ef247a052f7591466768ddf563fd1cf5.txt +428 -0
  575. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/33acf42afdd03163d75fe856cb431e70710e0b5deede3362e6d1c4697cfe1c6a.txt +28 -0
  576. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986.txt +674 -0
  577. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/4fecb8fcaf80fd9a6315bca5225ee43377015b46a0459c2925495be885cab19a.txt +21 -0
  578. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/811515f8723aa4007de2fbb75a364127fdec51cda534b87a7ea8f2fef2f96dd7.txt +24 -0
  579. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/814442c3987a2c0411171ad8ad43118e8c08f85c9c5d1dcdecc9787c7ca8689b.txt +664 -0
  580. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/8a959b2413d0c83ca1b3ce9153076c649abf2e4bbfebbb493fb24c2074a1eb8a.txt +38 -0
  581. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/995182e185856186fbbe49f150409ae026aa4cda7e94f83c6ed737cbb77fa9c7.txt +23 -0
  582. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/9b8e1305e46d1dd4011b6ed933c9f6223e08c9c4625001c5fd75a34fa930f616.txt +202 -0
  583. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/a01f1a28424bfe7f49a23d339a01847cfa9ace3864d5e7295051772a4bae2271.txt +38 -0
  584. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/a5681bf9b05db14d86776930017c647ad9e6e56ff6bbcfdf21e5848288dfaf1b.txt +165 -0
  585. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/a5b8bd9ae96c630bbf229d61c5c5def20274e00be39abfd2fab4d7879ceab462.txt +24 -0
  586. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/ada32b3747ce108d5e8bab7918af94abbd03f2fe2a46304f74c6333bbfd914ed.txt +8 -0
  587. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4.txt +201 -0
  588. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/c738ae413cf561f174e34f6961f8ca458aae2369a73640dda6234c629b98bcc4.txt +2732 -0
  589. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/ce41c9a2c986277f7f9ab146a2195c1888a5d8da062e22d7c9c88666bb7c38cd.txt +17 -0
  590. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/d5f4c36a0528e01cfdd9e4fc60879201d3af49b41c520200643d321fe53da5f9.txt +17 -0
  591. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/e08c368ccd455f85c7fb9e04830e730f26e9dbb5c0f77bc88e09a5b0cb37df5b.txt +38 -0
  592. package/dist/security-runtime/licensing/notices/candidate-sources/sha256/e9efb2f7daf11bb6379c06c16b870dddcecc4a10f8704bb8aad807529c8b3c97.txt +8 -0
  593. package/dist/security-runtime/licensing/notices/gitleaks-generic-origin-782f3104-MIT.txt +21 -0
  594. package/dist/security-runtime/package.json +17 -0
  595. package/dist/security-runtime/playbook/README.md +76 -0
  596. package/dist/security-runtime/playbook/access-control.md +56 -0
  597. package/dist/security-runtime/playbook/ai-features.md +53 -0
  598. package/dist/security-runtime/playbook/desktop-python.md +59 -0
  599. package/dist/security-runtime/playbook/input-handling.md +59 -0
  600. package/dist/security-runtime/playbook/mobile-expo.md +59 -0
  601. package/dist/security-runtime/playbook/payments.md +53 -0
  602. package/dist/security-runtime/playbook/privacy-account-recovery.md +59 -0
  603. package/dist/security-runtime/playbook/secrets-config.md +47 -0
  604. package/dist/security-runtime/playbook/supabase.md +48 -0
  605. package/dist/security-runtime/playbook/supply-chain.md +62 -0
  606. package/dist/security-runtime/playbook/webhooks-integrations.md +52 -0
  607. package/dist/security-runtime/rules/vsg-ai-key-in-client.yaml +41 -0
  608. package/dist/security-runtime/rules/vsg-ai-output-raw-html.yaml +35 -0
  609. package/dist/security-runtime/rules/vsg-angular-sanitizer-bypass.yaml +23 -0
  610. package/dist/security-runtime/rules/vsg-expo-token-in-asyncstorage.yaml +22 -0
  611. package/dist/security-runtime/rules/vsg-flask-public-bind.yaml +32 -0
  612. package/dist/security-runtime/rules/vsg-nextjs-action-write-no-auth.yaml +144 -0
  613. package/dist/security-runtime/rules/vsg-nextjs-inline-action-write-no-auth.yaml +161 -0
  614. package/dist/security-runtime/rules/vsg-nextjs-route-write-no-auth.yaml +193 -0
  615. package/dist/security-runtime/rules/vsg-nosql-where-injection.yaml +36 -0
  616. package/dist/security-runtime/rules/vsg-python-pickle-load.yaml +26 -0
  617. package/dist/security-runtime/rules/vsg-python-requests-verify-false.yaml +34 -0
  618. package/dist/security-runtime/rules/vsg-python-subprocess-shell.yaml +23 -0
  619. package/dist/security-runtime/rules/vsg-stripe-client-price.yaml +51 -0
  620. package/dist/security-runtime/rules/vsg-stripe-webhook-no-signature.yaml +31 -0
  621. package/dist/security-runtime/rules/vsg-stripe-webhook-pages-no-signature.yaml +51 -0
  622. package/dist/security-runtime/rules/vsg-supabase-service-role-in-client.yaml +27 -0
  623. package/dist/security-runtime/rules/vsg-supabase-service-role-public-env.yaml +24 -0
  624. package/dist/security-runtime/rules/vsg-xml-external-entities.yaml +19 -0
  625. package/dist/security-runtime/src/agent/brief.mjs +95 -0
  626. package/dist/security-runtime/src/agent/discover.mjs +108 -0
  627. package/dist/security-runtime/src/agent/exec.mjs +64 -0
  628. package/dist/security-runtime/src/agent/ingest.mjs +213 -0
  629. package/dist/security-runtime/src/agent/report.mjs +94 -0
  630. package/dist/security-runtime/src/agent/schema.mjs +62 -0
  631. package/dist/security-runtime/src/agent/tokenize.mjs +38 -0
  632. package/dist/security-runtime/src/checks/README.md +8 -0
  633. package/dist/security-runtime/src/checks/_lib/gitfiles.mjs +35 -0
  634. package/dist/security-runtime/src/checks/_lib/lockfiles.mjs +135 -0
  635. package/dist/security-runtime/src/checks/_lib/osv.mjs +6 -0
  636. package/dist/security-runtime/src/checks/_lib/secrets.mjs +381 -0
  637. package/dist/security-runtime/src/checks/_lib/targets.mjs +79 -0
  638. package/dist/security-runtime/src/checks/agent-review/index.mjs +52 -0
  639. package/dist/security-runtime/src/checks/agent-surface/config.mjs +223 -0
  640. package/dist/security-runtime/src/checks/agent-surface/index.mjs +113 -0
  641. package/dist/security-runtime/src/checks/agent-surface/instructions.mjs +87 -0
  642. package/dist/security-runtime/src/checks/agent-surface/patterns.mjs +68 -0
  643. package/dist/security-runtime/src/checks/agent-surface/unicode.mjs +88 -0
  644. package/dist/security-runtime/src/checks/code/auth-helpers.mjs +659 -0
  645. package/dist/security-runtime/src/checks/code/index.mjs +617 -0
  646. package/dist/security-runtime/src/checks/code/opengrep-container.mjs +85 -0
  647. package/dist/security-runtime/src/checks/code/opengrep-runner.mjs +86 -0
  648. package/dist/security-runtime/src/checks/code/selected-opengrep-runner.mjs +112 -0
  649. package/dist/security-runtime/src/checks/dep-change/guarddog.mjs +142 -0
  650. package/dist/security-runtime/src/checks/dep-change/index.mjs +316 -0
  651. package/dist/security-runtime/src/checks/dep-change/registries.mjs +199 -0
  652. package/dist/security-runtime/src/checks/deps-vuln/index.mjs +305 -0
  653. package/dist/security-runtime/src/checks/desktop-config/index.mjs +112 -0
  654. package/dist/security-runtime/src/checks/dns-mail/index.mjs +71 -0
  655. package/dist/security-runtime/src/checks/iac/index.mjs +83 -0
  656. package/dist/security-runtime/src/checks/install-posture/index.mjs +123 -0
  657. package/dist/security-runtime/src/checks/licenses/index.mjs +143 -0
  658. package/dist/security-runtime/src/checks/live-basic/index.mjs +77 -0
  659. package/dist/security-runtime/src/checks/live-js-secrets/index.mjs +100 -0
  660. package/dist/security-runtime/src/checks/malware/clamav.mjs +17 -0
  661. package/dist/security-runtime/src/checks/malware/defender.mjs +43 -0
  662. package/dist/security-runtime/src/checks/malware/index.mjs +186 -0
  663. package/dist/security-runtime/src/checks/malware/targets.mjs +147 -0
  664. package/dist/security-runtime/src/checks/malware/yara-runner.mjs +201 -0
  665. package/dist/security-runtime/src/checks/malware/yara.mjs +124 -0
  666. package/dist/security-runtime/src/checks/mobile-config/index.mjs +173 -0
  667. package/dist/security-runtime/src/checks/mobile-config/mobsf.mjs +105 -0
  668. package/dist/security-runtime/src/checks/posture/index.mjs +133 -0
  669. package/dist/security-runtime/src/checks/project-scripts/index.mjs +187 -0
  670. package/dist/security-runtime/src/checks/sbom/index.mjs +98 -0
  671. package/dist/security-runtime/src/checks/secrets-build/index.mjs +63 -0
  672. package/dist/security-runtime/src/checks/secrets-history/index.mjs +112 -0
  673. package/dist/security-runtime/src/checks/secrets-tree/env.mjs +120 -0
  674. package/dist/security-runtime/src/checks/secrets-tree/index.mjs +73 -0
  675. package/dist/security-runtime/src/checks/supabase-static/index.mjs +240 -0
  676. package/dist/security-runtime/src/checks/supabase-static/sql.mjs +557 -0
  677. package/dist/security-runtime/src/checks/workflows/index.mjs +93 -0
  678. package/dist/security-runtime/src/cli/deep.mjs +13 -0
  679. package/dist/security-runtime/src/cli/doctor.mjs +82 -0
  680. package/dist/security-runtime/src/cli/index.mjs +60 -0
  681. package/dist/security-runtime/src/cli/live-common.mjs +27 -0
  682. package/dist/security-runtime/src/cli/parse.mjs +56 -0
  683. package/dist/security-runtime/src/cli/portfolio.mjs +34 -0
  684. package/dist/security-runtime/src/cli/release.mjs +28 -0
  685. package/dist/security-runtime/src/cli/report.mjs +18 -0
  686. package/dist/security-runtime/src/cli/run-common.mjs +54 -0
  687. package/dist/security-runtime/src/cli/scan.mjs +12 -0
  688. package/dist/security-runtime/src/cli/setup.mjs +59 -0
  689. package/dist/security-runtime/src/cli/url.mjs +38 -0
  690. package/dist/security-runtime/src/core/accept.mjs +141 -0
  691. package/dist/security-runtime/src/core/archive.mjs +114 -0
  692. package/dist/security-runtime/src/core/base-ref.mjs +43 -0
  693. package/dist/security-runtime/src/core/checks.mjs +39 -0
  694. package/dist/security-runtime/src/core/detect.mjs +90 -0
  695. package/dist/security-runtime/src/core/errors.mjs +5 -0
  696. package/dist/security-runtime/src/core/fetch.mjs +139 -0
  697. package/dist/security-runtime/src/core/findings.mjs +177 -0
  698. package/dist/security-runtime/src/core/gate.mjs +131 -0
  699. package/dist/security-runtime/src/core/installer.mjs +255 -0
  700. package/dist/security-runtime/src/core/lock.mjs +38 -0
  701. package/dist/security-runtime/src/core/nested.mjs +107 -0
  702. package/dist/security-runtime/src/core/paths.mjs +20 -0
  703. package/dist/security-runtime/src/core/pipeline.mjs +196 -0
  704. package/dist/security-runtime/src/core/registry.mjs +81 -0
  705. package/dist/security-runtime/src/core/report.mjs +128 -0
  706. package/dist/security-runtime/src/core/runner.mjs +86 -0
  707. package/dist/security-runtime/src/core/sarif.mjs +141 -0
  708. package/dist/security-runtime/src/lattice/artifact.mjs +1201 -0
  709. package/dist/security-runtime/src/lattice/execution.mjs +45 -0
  710. package/dist/security-runtime/src/lattice/export.mjs +215 -0
  711. package/dist/security-runtime/src/lattice/provenance.mjs +70 -0
  712. package/dist/security-runtime/src/lattice/runtime.mjs +158 -0
  713. package/dist/security-runtime/src/lattice/selected-runtime.mjs +189 -0
  714. package/dist/security-runtime/src/lattice/source-acquirer.mjs +51 -0
  715. package/dist/security-runtime/src/lattice/source-fetcher.mjs +88 -0
  716. package/dist/security-runtime/src/lattice/transport.mjs +232 -0
  717. package/dist/security-runtime/src/live/analyze.mjs +101 -0
  718. package/dist/security-runtime/src/live/exposure.mjs +79 -0
  719. package/dist/security-runtime/src/live/secrets.mjs +31 -0
  720. package/dist/security-runtime/src/live/session.mjs +98 -0
  721. package/dist/security-runtime/src/live/targets.mjs +81 -0
  722. package/dist/security-runtime/src/portfolio/index.mjs +116 -0
  723. package/dist/security-runtime/tools/registry/betterleaks.json +29 -0
  724. package/dist/security-runtime/tools/registry/guarddog.json +9 -0
  725. package/dist/security-runtime/tools/registry/mobsf.json +10 -0
  726. package/dist/security-runtime/tools/registry/opengrep.json +28 -0
  727. package/dist/security-runtime/tools/registry/osv-scanner.json +14 -0
  728. package/dist/security-runtime/tools/registry/semgrep-rules.json +21 -0
  729. package/dist/security-runtime/tools/registry/trivy.json +30 -0
  730. package/dist/security-runtime/tools/registry/yara-forge-exclusions.json +14 -0
  731. package/dist/security-runtime/tools/registry/yara-forge.json +22 -0
  732. package/dist/security-runtime/tools/registry/yara-runner.json +10 -0
  733. package/dist/security-runtime/tools/registry/yara-x.json +24 -0
  734. package/dist/security-runtime/tools/registry/zizmor.json +30 -0
  735. package/dist/spinner.d.ts +16 -0
  736. package/dist/spinner.d.ts.map +1 -0
  737. package/dist/spinner.js +72 -0
  738. package/dist/spinner.js.map +1 -0
  739. package/dist/verify.test.d.ts +2 -0
  740. package/dist/verify.test.d.ts.map +1 -0
  741. package/dist/verify.test.js +98 -0
  742. package/dist/verify.test.js.map +1 -0
  743. package/package.json +73 -4
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=api.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.test.d.ts","sourceRoot":"","sources":["../../src/security/api.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,220 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const strict_1 = __importDefault(require("node:assert/strict"));
7
+ const node_test_1 = __importDefault(require("node:test"));
8
+ const api_js_1 = require("./api.js");
9
+ const APP_ID = '11111111-1111-4111-8111-111111111111';
10
+ const RUN_ID = '22222222-2222-4222-8222-222222222222';
11
+ const TOKEN = 'synthetic_security_token_123456789012345';
12
+ const connection = {
13
+ apiUrl: 'https://latticeai.app',
14
+ appId: APP_ID,
15
+ token: TOKEN,
16
+ connectedAt: '2026-10-20T00:00:00.000Z',
17
+ };
18
+ function json(body, status = 200) {
19
+ return new Response(JSON.stringify(body), { status, headers: { 'Content-Type': 'application/json' } });
20
+ }
21
+ function statusBody() {
22
+ return {
23
+ app: {
24
+ id: APP_ID, name: 'Fixture', repositoryIdentity: 'github.com/example/fixture', origin: null,
25
+ repositoryLockedAt: null, createdAt: '2026-10-20T00:00:00.000Z',
26
+ },
27
+ entitledModes: ['scan'],
28
+ entitlements: [],
29
+ checkoutEnabled: false,
30
+ publicationEnabled: false,
31
+ releaseBlockers: ['commercial_artifact_unavailable'],
32
+ };
33
+ }
34
+ function fullStatusBody() {
35
+ return {
36
+ ...statusBody(),
37
+ entitledModes: ['scan', 'deep'],
38
+ entitlements: [{
39
+ id: '22222222-2222-4222-8222-222222222222',
40
+ kind: 'security_subscription',
41
+ providerStatus: 'active',
42
+ artifactStatus: 'rights_cleared',
43
+ unitLimit: 50,
44
+ consumedUnits: 1,
45
+ reservedUnits: 0,
46
+ remainingUnits: 49,
47
+ periodStart: '2026-10-01T00:00:00.000Z',
48
+ periodEnd: '2026-11-01T00:00:00.000Z',
49
+ cancelAtPeriodEnd: false,
50
+ requiredRuntime: {
51
+ vsgVersion: '1.0.2',
52
+ profileId: 'lattice-candidate-blocked',
53
+ profileVersion: '1.0.0',
54
+ rulesDigest: '1'.repeat(64),
55
+ registryDigest: '2'.repeat(64),
56
+ commercialManifestDigest: '3'.repeat(64),
57
+ evaluatorDigest: '4'.repeat(64),
58
+ catalogDigest: '5'.repeat(64),
59
+ },
60
+ }],
61
+ };
62
+ }
63
+ (0, node_test_1.default)('status sends the token only in the Authorization header and rejects redirects', async () => {
64
+ const calls = [];
65
+ const fetcher = async (input, init) => {
66
+ calls.push({
67
+ url: String(input),
68
+ authorization: new Headers(init?.headers).get('authorization'),
69
+ redirect: init?.redirect,
70
+ });
71
+ return json(statusBody());
72
+ };
73
+ await (0, api_js_1.getSecurityStatus)(connection, { fetcher: fetcher });
74
+ strict_1.default.deepEqual(calls, [{
75
+ url: `https://latticeai.app/api/security/apps/${APP_ID}/status`,
76
+ authorization: `Bearer ${TOKEN}`,
77
+ redirect: 'error',
78
+ }]);
79
+ strict_1.default.ok(!calls[0].url.includes(TOKEN));
80
+ });
81
+ (0, node_test_1.default)('accepts the exact frozen status DTO including required runtime identity', async () => {
82
+ const expected = fullStatusBody();
83
+ const fetcher = async () => json(expected);
84
+ strict_1.default.deepEqual(await (0, api_js_1.getSecurityStatus)(connection, { fetcher: fetcher }), expected);
85
+ });
86
+ (0, node_test_1.default)('server error text cannot reflect the bearer token', async () => {
87
+ const fetcher = async () => json({ error: { code: 'unauthorized', message: `bad ${TOKEN}`, retryable: false } }, 401);
88
+ await strict_1.default.rejects((0, api_js_1.getSecurityStatus)(connection, { fetcher: fetcher }), (error) => error instanceof api_js_1.SecurityApiRequestError
89
+ && error.status === 401
90
+ && !error.message.includes(TOKEN)
91
+ && error.message.includes('[REDACTED]'));
92
+ });
93
+ (0, node_test_1.default)('finish retries identical bytes at most twice for network and 5xx failures', async () => {
94
+ const bodies = [];
95
+ let calls = 0;
96
+ const fetcher = async (_input, init) => {
97
+ calls += 1;
98
+ bodies.push(String(init?.body));
99
+ if (calls === 1)
100
+ throw new Error('synthetic network failure');
101
+ if (calls === 2)
102
+ return json({ error: { code: 'report_rejected', message: 'temporary', retryable: true } }, 503);
103
+ return json({
104
+ result: 'finished', runId: RUN_ID, state: 'finished', verdict: 'PASS',
105
+ completedAt: '2026-10-20T00:00:00.000Z', contentExpiresAt: null, consumedUnit: true,
106
+ });
107
+ };
108
+ const body = '{"outcome":"completed","report":{"transportVersion":"3.0"}}';
109
+ const response = await (0, api_js_1.finishSecurityRun)(connection, RUN_ID, body, { fetcher: fetcher });
110
+ strict_1.default.equal(response.result, 'finished');
111
+ strict_1.default.equal(calls, 3);
112
+ strict_1.default.deepEqual(bodies, [body, body, body]);
113
+ });
114
+ (0, node_test_1.default)('finish does not retry a 4xx response', async () => {
115
+ let calls = 0;
116
+ const fetcher = async () => {
117
+ calls += 1;
118
+ return json({ error: { code: 'idempotency_conflict', message: 'conflict', retryable: false } }, 409);
119
+ };
120
+ await strict_1.default.rejects((0, api_js_1.finishSecurityRun)(connection, RUN_ID, '{}', { fetcher: fetcher }), (error) => error instanceof api_js_1.SecurityApiRequestError && error.status === 409);
121
+ strict_1.default.equal(calls, 1);
122
+ });
123
+ (0, node_test_1.default)('rejects inconsistent successful finish result and terminal state pairs', async () => {
124
+ const invalid = [
125
+ { result: 'finished', state: 'reserved', verdict: 'PASS', consumedUnit: true },
126
+ { result: 'aborted', state: 'finished', verdict: null, consumedUnit: false },
127
+ { result: 'replay', state: 'aborted', verdict: 'BLOCKED', consumedUnit: false },
128
+ { result: 'aborted', state: 'aborted', verdict: null, consumedUnit: true },
129
+ ];
130
+ for (const fields of invalid) {
131
+ const fetcher = async () => json({
132
+ ...fields,
133
+ runId: RUN_ID,
134
+ completedAt: '2026-10-20T00:00:00.000Z',
135
+ contentExpiresAt: null,
136
+ });
137
+ await strict_1.default.rejects((0, api_js_1.finishSecurityRun)(connection, RUN_ID, '{}', { fetcher: fetcher }), (error) => error instanceof api_js_1.SecurityApiRequestError && error.code === 'invalid_response');
138
+ }
139
+ });
140
+ (0, node_test_1.default)('rejects an oversized declared response, cancels it, and never reads its stream', async () => {
141
+ let opened = false;
142
+ let cancelled = false;
143
+ const fetcher = async () => ({
144
+ status: 200,
145
+ ok: true,
146
+ headers: new Headers({ 'Content-Type': 'application/json', 'Content-Length': '262145' }),
147
+ body: {
148
+ cancel: async () => { cancelled = true; },
149
+ getReader: () => { opened = true; throw new Error('must not open'); },
150
+ },
151
+ });
152
+ await strict_1.default.rejects((0, api_js_1.getSecurityStatus)(connection, { fetcher: fetcher }), /exceeded the allowed size/);
153
+ strict_1.default.equal(opened, false);
154
+ strict_1.default.equal(cancelled, true);
155
+ });
156
+ (0, node_test_1.default)('rejects and cancels non-JSON responses before reading any bytes', async () => {
157
+ let opened = false;
158
+ let cancelled = false;
159
+ const fetcher = async () => ({
160
+ status: 200,
161
+ ok: true,
162
+ headers: new Headers({ 'Content-Type': 'text/plain' }),
163
+ body: {
164
+ cancel: async () => { cancelled = true; },
165
+ getReader: () => { opened = true; throw new Error('must not open'); },
166
+ },
167
+ });
168
+ await strict_1.default.rejects((0, api_js_1.getSecurityStatus)(connection, { fetcher: fetcher }), /non-JSON response/);
169
+ strict_1.default.equal(opened, false);
170
+ strict_1.default.equal(cancelled, true);
171
+ });
172
+ (0, node_test_1.default)('rejects and cancels an invalid declared length before reading any bytes', async () => {
173
+ let opened = false;
174
+ let cancelled = false;
175
+ const fetcher = async () => ({
176
+ status: 200,
177
+ ok: true,
178
+ headers: new Headers({ 'Content-Type': 'application/json', 'Content-Length': 'not-a-number' }),
179
+ body: {
180
+ cancel: async () => { cancelled = true; },
181
+ getReader: () => { opened = true; throw new Error('must not open'); },
182
+ },
183
+ });
184
+ await strict_1.default.rejects((0, api_js_1.getSecurityStatus)(connection, { fetcher: fetcher }), /invalid Content-Length/);
185
+ strict_1.default.equal(opened, false);
186
+ strict_1.default.equal(cancelled, true);
187
+ });
188
+ (0, node_test_1.default)('rejects unknown status fields without reflecting sensitive values', async () => {
189
+ const secret = 'synthetic_nested_billing_secret';
190
+ const full = fullStatusBody();
191
+ for (const body of [
192
+ { ...statusBody(), token: secret },
193
+ { ...statusBody(), app: { ...statusBody().app, billingSecret: secret } },
194
+ { ...full, entitlements: [{ ...full.entitlements[0], accountToken: secret }] },
195
+ {
196
+ ...full,
197
+ entitlements: [{
198
+ ...full.entitlements[0],
199
+ requiredRuntime: { ...full.entitlements[0].requiredRuntime, secret },
200
+ }],
201
+ },
202
+ ]) {
203
+ const fetcher = async () => json(body);
204
+ await strict_1.default.rejects((0, api_js_1.getSecurityStatus)(connection, { fetcher: fetcher }), (error) => error instanceof api_js_1.SecurityApiRequestError
205
+ && error.code === 'invalid_response'
206
+ && !error.message.includes(secret));
207
+ }
208
+ });
209
+ (0, node_test_1.default)('stops a chunked response as soon as the streaming cap is exceeded', async () => {
210
+ const chunk = new Uint8Array(140_000);
211
+ const fetcher = async () => new Response(new ReadableStream({
212
+ start(controller) {
213
+ controller.enqueue(chunk);
214
+ controller.enqueue(chunk);
215
+ controller.close();
216
+ },
217
+ }), { status: 200, headers: { 'Content-Type': 'application/json' } });
218
+ await strict_1.default.rejects((0, api_js_1.getSecurityStatus)(connection, { fetcher: fetcher }), /exceeded the allowed size/);
219
+ });
220
+ //# sourceMappingURL=api.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.test.js","sourceRoot":"","sources":["../../src/security/api.test.ts"],"names":[],"mappings":";;;;;AAAA,gEAAwC;AACxC,0DAA6B;AAC7B,qCAAyF;AAGzF,MAAM,MAAM,GAAG,sCAAsC,CAAC;AACtD,MAAM,MAAM,GAAG,sCAAsC,CAAC;AACtD,MAAM,KAAK,GAAG,0CAA0C,CAAC;AACzD,MAAM,UAAU,GAAuB;IACrC,MAAM,EAAE,uBAAuB;IAC/B,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEF,SAAS,IAAI,CAAC,IAAa,EAAE,MAAM,GAAG,GAAG;IACvC,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAA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AAI,cAAc,CAAC;QAC1D,KAAK,CAAC,UAAU;YACd,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC1B,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC1B,UAAU,CAAC,KAAK,EAAE,CAAC;QACrB,CAAC;KACF,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,gBAAM,CAAC,OAAO,CAAC,IAAA,0BAAiB,EAAC,UAAU,EAAE,EAAE,OAAO,EAAE,OAAuB,EAAE,CAAC,EAAE,2BAA2B,CAAC,CAAC;AACzH,CAAC,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { SecurityArtifactManifest } from './types.js';
2
+ export interface SecurityArtifactInspection {
3
+ artifactRoot: string;
4
+ manifest: SecurityArtifactManifest;
5
+ manifestSha256: string;
6
+ }
7
+ export declare function inspectSecurityArtifact(artifactRoot: string): Promise<SecurityArtifactInspection>;
8
+ export declare function assertCommercialArtifactEligible(inspection: SecurityArtifactInspection): void;
9
+ export declare function stageSecurityArtifact(sourceRoot: string, outDir: string): Promise<SecurityArtifactInspection>;
10
+ //# sourceMappingURL=artifact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../src/security/artifact.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAwB,wBAAwB,EAAE,MAAM,YAAY,CAAC;AA2CjF,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,wBAAwB,CAAC;IACnC,cAAc,EAAE,MAAM,CAAC;CACxB;AA0JD,wBAAsB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,CA4BvG;AAED,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,0BAA0B,GAAG,IAAI,CAS7F;AAED,wBAAsB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,CA0BnH"}
@@ -0,0 +1,283 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.inspectSecurityArtifact = inspectSecurityArtifact;
4
+ exports.assertCommercialArtifactEligible = assertCommercialArtifactEligible;
5
+ exports.stageSecurityArtifact = stageSecurityArtifact;
6
+ const node_crypto_1 = require("node:crypto");
7
+ const node_fs_1 = require("node:fs");
8
+ const node_path_1 = require("node:path");
9
+ const SHA256 = /^[0-9a-f]{64}$/;
10
+ const COMMIT = /^[0-9a-f]{40}$/;
11
+ const QUALIFICATION_RECORDS = new Map([
12
+ ['licensing/candidates/commercial-rule-candidate.json', '2b305facf86c308dee3131dbc9854abf5291e29546d4fd641bace4bb1b920a9c'],
13
+ ['licensing/candidates/gitlab-sast-source-notice-bundle.json', '95494e6442be48932743220de45124fb51dc578eddb8d72174f1038c6a2e4011'],
14
+ ]);
15
+ const FORBIDDEN_PARTS = new Set(['.git', '.vsg', 'node_modules', '.cache', 'cache', 'reports', 'raw', 'bin-cache']);
16
+ const ALLOWED_FILES = new Set([
17
+ 'LICENSE', 'NOTICE', 'package.json', 'licensing/commercial-components.json',
18
+ 'licensing/candidates/betterleaks-generic-api-key.json',
19
+ 'licensing/candidates/betterleaks-jwt.json',
20
+ 'licensing/candidates/commercial-rule-candidate.json',
21
+ 'licensing/candidates/commercial-runtime-release.json',
22
+ 'licensing/candidates/gitlab-sast-source-evidence.json',
23
+ 'licensing/candidates/gitlab-sast-rule-identities.json',
24
+ 'licensing/candidates/gitlab-sast-source-notice-bundle.json',
25
+ 'licensing/candidates/yara-forge-20260927.json',
26
+ 'licensing/candidates/selected-runtime-coverage.json',
27
+ 'licensing/candidates/malpedia-source-license-evidence.json',
28
+ 'licensing/candidates/apache-source-license-evidence.json',
29
+ 'licensing/candidates/cado-source-declaration-evidence.json',
30
+ 'licensing/candidates/blackberry-source-declaration-evidence.json',
31
+ 'licensing/candidates/blackberry-additional-source-declaration-evidence.json',
32
+ 'licensing/candidates/rule-license-evidence.json',
33
+ 'licensing/candidates/runner-image-composition.json',
34
+ 'licensing/candidates/data-feed-evidence.json',
35
+ 'licensing/notices/betterleaks-1.9.0-MIT.txt',
36
+ 'licensing/notices/gitleaks-generic-origin-782f3104-MIT.txt',
37
+ 'lattice-runtime.mjs', 'lattice-catalog.json',
38
+ ]);
39
+ const ALLOWED_PREFIXES = ['bin/', 'src/', 'rules/', 'playbook/', 'tools/registry/', 'licensing/notices/candidate-sources/sha256/'];
40
+ const MANIFEST_KEYS = [
41
+ 'format', 'sourceCommit', 'identity', 'entryPoint', 'exporterPath', 'transportPath',
42
+ 'evaluatorPath', 'releaseEligibility', 'files',
43
+ ];
44
+ const APPROVED_COMMERCIAL_MANIFEST_SHA256 = new Set([
45
+ '8b72ef4bf3dd3c14110e9a7988d0806f33ea2185dfd6215f22636e8b52a3f6e9',
46
+ '4b2b5cc3c99cd7bd8e47e11debf3d4de89980b8d41d61dd18875466834b471ab',
47
+ '29838a64b10e779ccaa8e20f9fb1e692859c8b1865c89b9b8b3be10e36982e1f',
48
+ ]);
49
+ function sha256(bytes) {
50
+ return (0, node_crypto_1.createHash)('sha256').update(bytes).digest('hex');
51
+ }
52
+ function safeRelativePath(value) {
53
+ return typeof value === 'string' && value.length > 0 && !value.includes('\\') && !value.startsWith('/')
54
+ && !/^[A-Za-z]:/.test(value)
55
+ && value.split('/').every((part) => part && part !== '.' && part !== '..' && !FORBIDDEN_PARTS.has(part.toLowerCase()));
56
+ }
57
+ function parseFile(value) {
58
+ if (!value || typeof value !== 'object' || Array.isArray(value))
59
+ throw new Error('Security artifact file entry is invalid.');
60
+ const item = value;
61
+ const path = item.path;
62
+ if (Object.keys(item).some((key) => !['path', 'sha256', 'bytes'].includes(key))
63
+ || !safeRelativePath(path)
64
+ || (!ALLOWED_FILES.has(path) && !ALLOWED_PREFIXES.some((prefix) => path.startsWith(prefix)))
65
+ || typeof item.sha256 !== 'string' || !SHA256.test(item.sha256)
66
+ || !Number.isSafeInteger(item.bytes) || item.bytes < 0) {
67
+ throw new Error('Security artifact file metadata is invalid.');
68
+ }
69
+ return { path, sha256: item.sha256, bytes: item.bytes };
70
+ }
71
+ function parseManifest(value) {
72
+ if (!value || typeof value !== 'object' || Array.isArray(value))
73
+ throw new Error('Security artifact manifest is invalid.');
74
+ const item = value;
75
+ const keys = Object.keys(item);
76
+ if (keys.some((key) => !MANIFEST_KEYS.includes(key)) || MANIFEST_KEYS.some((key) => !keys.includes(key))) {
77
+ throw new Error('Security artifact manifest fields do not match the frozen interface.');
78
+ }
79
+ if (item.format !== 'lattice-security-artifact-v1' || typeof item.sourceCommit !== 'string' || !COMMIT.test(item.sourceCommit)
80
+ || item.entryPoint !== 'bin/vsg.mjs' || item.exporterPath !== 'src/lattice/export.mjs'
81
+ || item.transportPath !== 'src/lattice/transport.mjs' || item.evaluatorPath !== 'lattice-runtime.mjs') {
82
+ throw new Error('Security artifact manifest identity or runtime paths are invalid.');
83
+ }
84
+ if (!item.identity || typeof item.identity !== 'object' || Array.isArray(item.identity))
85
+ throw new Error('Security artifact runtime identity is invalid.');
86
+ const identity = item.identity;
87
+ const identityKeys = [
88
+ 'vsgVersion', 'profileId', 'profileVersion', 'rulesDigest', 'registryDigest',
89
+ 'commercialManifestDigest', 'evaluatorDigest', 'catalogDigest',
90
+ ];
91
+ if (Object.keys(identity).some((key) => !identityKeys.includes(key)) || identityKeys.some((key) => !Object.hasOwn(identity, key))) {
92
+ throw new Error('Security artifact runtime identity fields do not match the frozen interface.');
93
+ }
94
+ for (const key of ['vsgVersion', 'profileId', 'profileVersion']) {
95
+ if (typeof identity[key] !== 'string' || identity[key].length === 0)
96
+ throw new Error(`Security artifact ${key} is invalid.`);
97
+ }
98
+ for (const key of ['rulesDigest', 'registryDigest', 'commercialManifestDigest', 'evaluatorDigest', 'catalogDigest']) {
99
+ if (typeof identity[key] !== 'string' || !SHA256.test(identity[key]))
100
+ throw new Error(`Security artifact ${key} is invalid.`);
101
+ }
102
+ if (!item.releaseEligibility || typeof item.releaseEligibility !== 'object' || Array.isArray(item.releaseEligibility)) {
103
+ throw new Error('Security artifact release eligibility is invalid.');
104
+ }
105
+ const release = item.releaseEligibility;
106
+ if (typeof release.status !== 'string'
107
+ || !['blocked', 'approved'].includes(release.status)
108
+ || !Array.isArray(release.blockers) || release.blockers.some((blocker) => typeof blocker !== 'string' || !blocker)) {
109
+ throw new Error('Security artifact release eligibility is invalid.');
110
+ }
111
+ let approvedRelease = {
112
+ status: release.status,
113
+ blockers: [...release.blockers],
114
+ };
115
+ if (release.status === 'blocked') {
116
+ if (Object.keys(release).some((key) => !['status', 'blockers'].includes(key)) || release.blockers.length === 0) {
117
+ throw new Error('Security artifact blocked eligibility is invalid.');
118
+ }
119
+ }
120
+ else {
121
+ const approval = release.approval;
122
+ if (Object.keys(release).some((key) => !['status', 'blockers', 'approval', 'checkoutEnabled', 'paidPublicationEnabled'].includes(key))
123
+ || release.blockers.length !== 0 || release.checkoutEnabled !== false || release.paidPublicationEnabled !== false
124
+ || !approval || typeof approval !== 'object' || Array.isArray(approval)) {
125
+ throw new Error('Security artifact approved eligibility is invalid.');
126
+ }
127
+ const approvalRecord = approval;
128
+ const record = approvalRecord.record;
129
+ if (Object.keys(approvalRecord).some((key) => !['owner', 'decidedOn', 'record'].includes(key))
130
+ || approvalRecord.owner !== 'M2 AI, LLC' || typeof approvalRecord.decidedOn !== 'string'
131
+ || !/^\d{4}-\d{2}-\d{2}$/.test(approvalRecord.decidedOn)
132
+ || !record || typeof record !== 'object' || Array.isArray(record)) {
133
+ throw new Error('Security artifact approval record is invalid.');
134
+ }
135
+ const recordRef = record;
136
+ if (Object.keys(recordRef).some((key) => !['path', 'sha256', 'bytes'].includes(key))
137
+ || recordRef.path !== 'licensing/candidates/commercial-runtime-release.json'
138
+ || typeof recordRef.sha256 !== 'string' || !SHA256.test(recordRef.sha256)
139
+ || !Number.isSafeInteger(recordRef.bytes) || recordRef.bytes <= 0) {
140
+ throw new Error('Security artifact approval record reference is invalid.');
141
+ }
142
+ approvedRelease = {
143
+ status: 'approved', blockers: [], checkoutEnabled: false, paidPublicationEnabled: false,
144
+ approval: {
145
+ owner: 'M2 AI, LLC', decidedOn: approvalRecord.decidedOn,
146
+ record: { path: recordRef.path, sha256: recordRef.sha256, bytes: recordRef.bytes },
147
+ },
148
+ };
149
+ }
150
+ if (!Array.isArray(item.files) || item.files.length === 0)
151
+ throw new Error('Security artifact file allowlist is empty.');
152
+ const files = item.files.map(parseFile);
153
+ const qualification = files.filter((file) => QUALIFICATION_RECORDS.has(file.path));
154
+ if (qualification.length > 0 && qualification.length !== QUALIFICATION_RECORDS.size) {
155
+ throw new Error('Security qualification evidence records must be packaged together.');
156
+ }
157
+ if (qualification.some((file) => file.sha256 !== QUALIFICATION_RECORDS.get(file.path))) {
158
+ throw new Error('Security qualification evidence does not match its reviewed bytes.');
159
+ }
160
+ const names = new Set();
161
+ const lowerNames = new Set();
162
+ for (const file of files) {
163
+ const lower = file.path.toLowerCase();
164
+ if (names.has(file.path) || lowerNames.has(lower))
165
+ throw new Error(`Security artifact path ${file.path} is duplicate or case-colliding.`);
166
+ names.add(file.path);
167
+ lowerNames.add(lower);
168
+ }
169
+ for (const required of ['bin/vsg.mjs', 'src/lattice/export.mjs', 'src/lattice/transport.mjs', 'lattice-runtime.mjs']) {
170
+ if (!names.has(required))
171
+ throw new Error(`Security artifact is missing ${required}.`);
172
+ }
173
+ if (approvedRelease.status === 'approved') {
174
+ const ref = approvedRelease.approval?.record;
175
+ const declared = files.find((file) => file.path === ref?.path);
176
+ if (!declared || declared.sha256 !== ref?.sha256 || declared.bytes !== ref?.bytes) {
177
+ throw new Error('Security artifact approval record is not bound to its declared bytes.');
178
+ }
179
+ }
180
+ return {
181
+ format: 'lattice-security-artifact-v1',
182
+ sourceCommit: item.sourceCommit,
183
+ identity: identity,
184
+ entryPoint: 'bin/vsg.mjs',
185
+ exporterPath: 'src/lattice/export.mjs',
186
+ transportPath: 'src/lattice/transport.mjs',
187
+ evaluatorPath: 'lattice-runtime.mjs',
188
+ releaseEligibility: approvedRelease,
189
+ files,
190
+ };
191
+ }
192
+ async function walkFiles(root, current = root, prefix = '') {
193
+ const output = [];
194
+ for (const entry of (await node_fs_1.promises.readdir(current, { withFileTypes: true })).sort((a, b) => a.name.localeCompare(b.name))) {
195
+ const relative = prefix ? `${prefix}/${entry.name}` : entry.name;
196
+ const target = (0, node_path_1.join)(current, entry.name);
197
+ const stat = await node_fs_1.promises.lstat(target);
198
+ if (stat.isSymbolicLink())
199
+ throw new Error(`Security artifact linked path ${relative} is forbidden.`);
200
+ if (stat.isDirectory())
201
+ output.push(...await walkFiles(root, target, relative));
202
+ else if (stat.isFile())
203
+ output.push(relative);
204
+ else
205
+ throw new Error(`Security artifact non-file path ${relative} is forbidden.`);
206
+ }
207
+ return output;
208
+ }
209
+ async function inspectSecurityArtifact(artifactRoot) {
210
+ const root = await node_fs_1.promises.realpath((0, node_path_1.resolve)(artifactRoot));
211
+ const manifestPath = (0, node_path_1.join)(root, 'artifact-manifest.json');
212
+ const manifestStat = await node_fs_1.promises.lstat(manifestPath);
213
+ if (!manifestStat.isFile() || manifestStat.isSymbolicLink())
214
+ throw new Error('Security artifact manifest must be a regular file.');
215
+ const manifestBytes = await node_fs_1.promises.readFile(manifestPath);
216
+ let value;
217
+ try {
218
+ value = JSON.parse(new TextDecoder('utf-8', { fatal: true }).decode(manifestBytes));
219
+ }
220
+ catch {
221
+ throw new Error('Security artifact manifest is not valid UTF-8 JSON.');
222
+ }
223
+ const manifest = parseManifest(value);
224
+ const declared = new Set(manifest.files.map((item) => item.path));
225
+ for (const file of manifest.files) {
226
+ const target = (0, node_path_1.join)(root, ...file.path.split('/'));
227
+ const relative = target.slice(root.length + 1);
228
+ if (relative.startsWith(`..${node_path_1.sep}`) || (0, node_path_1.resolve)(target) !== target)
229
+ throw new Error(`Security artifact path ${file.path} escapes its root.`);
230
+ const stat = await node_fs_1.promises.lstat(target);
231
+ if (!stat.isFile() || stat.isSymbolicLink())
232
+ throw new Error(`Security artifact path ${file.path} is not a regular file.`);
233
+ const bytes = await node_fs_1.promises.readFile(target);
234
+ if (bytes.byteLength !== file.bytes || sha256(bytes) !== file.sha256)
235
+ throw new Error(`Security artifact file ${file.path} failed integrity verification.`);
236
+ }
237
+ const actual = (await walkFiles(root)).filter((file) => file !== 'artifact-manifest.json');
238
+ if (actual.length !== declared.size || actual.some((file) => !declared.has(file))) {
239
+ throw new Error('Security artifact contains an undeclared file.');
240
+ }
241
+ return { artifactRoot: root, manifest, manifestSha256: sha256(manifestBytes) };
242
+ }
243
+ function assertCommercialArtifactEligible(inspection) {
244
+ const { manifest, manifestSha256 } = inspection;
245
+ if (manifest.releaseEligibility.status !== 'approved' || manifest.releaseEligibility.blockers.length > 0) {
246
+ const blockers = manifest.releaseEligibility.blockers.join(', ') || manifest.releaseEligibility.status;
247
+ throw new Error(`Commercial Security runtime is unavailable: ${blockers}.`);
248
+ }
249
+ if (!APPROVED_COMMERCIAL_MANIFEST_SHA256.has(manifestSha256)) {
250
+ throw new Error('Commercial Security runtime is unavailable: this exact artifact has no CLI release approval.');
251
+ }
252
+ }
253
+ async function stageSecurityArtifact(sourceRoot, outDir) {
254
+ const source = await inspectSecurityArtifact(sourceRoot);
255
+ const target = (0, node_path_1.resolve)(outDir);
256
+ try {
257
+ await node_fs_1.promises.lstat(target);
258
+ throw new Error('Security artifact output directory already exists.');
259
+ }
260
+ catch (error) {
261
+ if (!(error && typeof error === 'object' && 'code' in error && error.code === 'ENOENT'))
262
+ throw error;
263
+ }
264
+ await node_fs_1.promises.mkdir((0, node_path_1.dirname)(target), { recursive: true });
265
+ const staging = `${target}-staging-${process.pid}-${Date.now()}`;
266
+ await node_fs_1.promises.mkdir(staging, { recursive: false, mode: 0o700 });
267
+ try {
268
+ for (const file of source.manifest.files) {
269
+ const destination = (0, node_path_1.join)(staging, ...file.path.split('/'));
270
+ await node_fs_1.promises.mkdir((0, node_path_1.dirname)(destination), { recursive: true });
271
+ await node_fs_1.promises.copyFile((0, node_path_1.join)(source.artifactRoot, ...file.path.split('/')), destination, node_fs_1.constants.COPYFILE_EXCL);
272
+ }
273
+ await node_fs_1.promises.copyFile((0, node_path_1.join)(source.artifactRoot, 'artifact-manifest.json'), (0, node_path_1.join)(staging, 'artifact-manifest.json'), node_fs_1.constants.COPYFILE_EXCL);
274
+ await inspectSecurityArtifact(staging);
275
+ await node_fs_1.promises.rename(staging, target);
276
+ return inspectSecurityArtifact(target);
277
+ }
278
+ catch (error) {
279
+ await node_fs_1.promises.rm(staging, { recursive: true, force: true });
280
+ throw error;
281
+ }
282
+ }
283
+ //# sourceMappingURL=artifact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact.js","sourceRoot":"","sources":["../../src/security/artifact.ts"],"names":[],"mappings":";;AA4MA,0DA4BC;AAED,4EASC;AAED,sDA0BC;AA/QD,6CAAyC;AACzC,qCAAmE;AACnE,yCAAwD;AAGxD,MAAM,MAAM,GAAG,gBAAgB,CAAC;AAChC,MAAM,MAAM,GAAG,gBAAgB,CAAC;AAChC,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC;IACpC,CAAC,qDAAqD,EAAE,kEAAkE,CAAC;IAC3H,CAAC,4DAA4D,EAAE,kEAAkE,CAAC;CACnI,CAAC,CAAC;AACH,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;AACpH,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC;IAC5B,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,sCAAsC;IAC3E,uDAAuD;IACvD,2CAA2C;IAC3C,qDAAqD;IACrD,sDAAsD;IACtD,uDAAuD;IACvD,uD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AC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=artifact.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artifact.test.d.ts","sourceRoot":"","sources":["../../src/security/artifact.test.ts"],"names":[],"mappings":""}