@allstak/wizard 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/CHANGELOG.md +42 -3
  2. package/LICENSE +191 -0
  3. package/README.md +35 -32
  4. package/dist/api/http.d.ts +2 -0
  5. package/dist/api/http.d.ts.map +1 -1
  6. package/dist/api/http.js +6 -0
  7. package/dist/api/http.js.map +1 -1
  8. package/dist/api/index.d.ts +1 -0
  9. package/dist/api/index.d.ts.map +1 -1
  10. package/dist/api/index.js +1 -0
  11. package/dist/api/index.js.map +1 -1
  12. package/dist/certification/fixtures.d.ts +4 -0
  13. package/dist/certification/fixtures.d.ts.map +1 -0
  14. package/dist/certification/fixtures.js +109 -0
  15. package/dist/certification/fixtures.js.map +1 -0
  16. package/dist/certification/gates.d.ts +10 -0
  17. package/dist/certification/gates.d.ts.map +1 -0
  18. package/dist/certification/gates.js +20 -0
  19. package/dist/certification/gates.js.map +1 -0
  20. package/dist/certification/index.d.ts +6 -0
  21. package/dist/certification/index.d.ts.map +1 -0
  22. package/dist/certification/index.js +5 -0
  23. package/dist/certification/index.js.map +1 -0
  24. package/dist/certification/live-backend.d.ts +50 -0
  25. package/dist/certification/live-backend.d.ts.map +1 -0
  26. package/dist/certification/live-backend.js +422 -0
  27. package/dist/certification/live-backend.js.map +1 -0
  28. package/dist/certification/packages.d.ts +3 -0
  29. package/dist/certification/packages.d.ts.map +1 -0
  30. package/dist/certification/packages.js +49 -0
  31. package/dist/certification/packages.js.map +1 -0
  32. package/dist/certification/process.d.ts +8 -0
  33. package/dist/certification/process.d.ts.map +1 -0
  34. package/dist/certification/process.js +77 -0
  35. package/dist/certification/process.js.map +1 -0
  36. package/dist/certification/report.d.ts +3 -0
  37. package/dist/certification/report.d.ts.map +1 -0
  38. package/dist/certification/report.js +38 -0
  39. package/dist/certification/report.js.map +1 -0
  40. package/dist/certification/runner.d.ts +3 -0
  41. package/dist/certification/runner.d.ts.map +1 -0
  42. package/dist/certification/runner.js +299 -0
  43. package/dist/certification/runner.js.map +1 -0
  44. package/dist/certification/runtime.d.ts +11 -0
  45. package/dist/certification/runtime.d.ts.map +1 -0
  46. package/dist/certification/runtime.js +60 -0
  47. package/dist/certification/runtime.js.map +1 -0
  48. package/dist/certification/types.d.ts +73 -0
  49. package/dist/certification/types.d.ts.map +1 -0
  50. package/dist/certification/types.js +2 -0
  51. package/dist/certification/types.js.map +1 -0
  52. package/dist/cli.js +70 -3
  53. package/dist/cli.js.map +1 -1
  54. package/dist/commands/certify.d.ts +18 -0
  55. package/dist/commands/certify.d.ts.map +1 -0
  56. package/dist/commands/certify.js +27 -0
  57. package/dist/commands/certify.js.map +1 -0
  58. package/dist/commands/init.d.ts.map +1 -1
  59. package/dist/commands/init.js +13 -0
  60. package/dist/commands/init.js.map +1 -1
  61. package/dist/commands/list.d.ts +5 -1
  62. package/dist/commands/list.d.ts.map +1 -1
  63. package/dist/commands/list.js +9 -3
  64. package/dist/commands/list.js.map +1 -1
  65. package/dist/commands/security-snapshot.d.ts +24 -0
  66. package/dist/commands/security-snapshot.d.ts.map +1 -0
  67. package/dist/commands/security-snapshot.js +113 -0
  68. package/dist/commands/security-snapshot.js.map +1 -0
  69. package/dist/index.d.ts +3 -1
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +3 -1
  72. package/dist/index.js.map +1 -1
  73. package/dist/integrations/_scaffold.d.ts +2 -1
  74. package/dist/integrations/_scaffold.d.ts.map +1 -1
  75. package/dist/integrations/_scaffold.js +36 -13
  76. package/dist/integrations/_scaffold.js.map +1 -1
  77. package/dist/integrations/_simple-scaffold.d.ts +5 -2
  78. package/dist/integrations/_simple-scaffold.d.ts.map +1 -1
  79. package/dist/integrations/_simple-scaffold.js +3 -0
  80. package/dist/integrations/_simple-scaffold.js.map +1 -1
  81. package/dist/integrations/dotnet.d.ts.map +1 -1
  82. package/dist/integrations/dotnet.js +3 -0
  83. package/dist/integrations/dotnet.js.map +1 -1
  84. package/dist/integrations/expo/detect.d.ts +13 -0
  85. package/dist/integrations/expo/detect.d.ts.map +1 -0
  86. package/dist/integrations/expo/detect.js +38 -0
  87. package/dist/integrations/expo/detect.js.map +1 -0
  88. package/dist/integrations/expo/doctor.d.ts +6 -0
  89. package/dist/integrations/expo/doctor.d.ts.map +1 -0
  90. package/dist/integrations/expo/doctor.js +136 -0
  91. package/dist/integrations/expo/doctor.js.map +1 -0
  92. package/dist/integrations/expo/files.d.ts +15 -0
  93. package/dist/integrations/expo/files.d.ts.map +1 -0
  94. package/dist/integrations/expo/files.js +62 -0
  95. package/dist/integrations/expo/files.js.map +1 -0
  96. package/dist/integrations/expo/index.d.ts +24 -0
  97. package/dist/integrations/expo/index.d.ts.map +1 -0
  98. package/dist/integrations/expo/index.js +68 -0
  99. package/dist/integrations/expo/index.js.map +1 -0
  100. package/dist/integrations/expo/manifest.d.ts +3 -0
  101. package/dist/integrations/expo/manifest.d.ts.map +1 -0
  102. package/dist/integrations/expo/manifest.js +39 -0
  103. package/dist/integrations/expo/manifest.js.map +1 -0
  104. package/dist/integrations/expo/patch.d.ts +13 -0
  105. package/dist/integrations/expo/patch.d.ts.map +1 -0
  106. package/dist/integrations/expo/patch.js +215 -0
  107. package/dist/integrations/expo/patch.js.map +1 -0
  108. package/dist/integrations/expo/uninstall.d.ts +4 -0
  109. package/dist/integrations/expo/uninstall.d.ts.map +1 -0
  110. package/dist/integrations/expo/uninstall.js +77 -0
  111. package/dist/integrations/expo/uninstall.js.map +1 -0
  112. package/dist/integrations/expo.d.ts +8 -1
  113. package/dist/integrations/expo.d.ts.map +1 -1
  114. package/dist/integrations/expo.js +8 -11
  115. package/dist/integrations/expo.js.map +1 -1
  116. package/dist/integrations/fastify/detect.d.ts +3 -0
  117. package/dist/integrations/fastify/detect.d.ts.map +1 -0
  118. package/dist/integrations/fastify/detect.js +12 -0
  119. package/dist/integrations/fastify/detect.js.map +1 -0
  120. package/dist/integrations/fastify/doctor.d.ts +3 -0
  121. package/dist/integrations/fastify/doctor.d.ts.map +1 -0
  122. package/dist/integrations/fastify/doctor.js +81 -0
  123. package/dist/integrations/fastify/doctor.js.map +1 -0
  124. package/dist/integrations/fastify/files.d.ts +17 -0
  125. package/dist/integrations/fastify/files.d.ts.map +1 -0
  126. package/dist/integrations/fastify/files.js +51 -0
  127. package/dist/integrations/fastify/files.js.map +1 -0
  128. package/dist/integrations/fastify/index.d.ts +3 -0
  129. package/dist/integrations/fastify/index.d.ts.map +1 -0
  130. package/dist/integrations/fastify/index.js +47 -0
  131. package/dist/integrations/fastify/index.js.map +1 -0
  132. package/dist/integrations/fastify/manifest.d.ts +3 -0
  133. package/dist/integrations/fastify/manifest.d.ts.map +1 -0
  134. package/dist/integrations/fastify/manifest.js +34 -0
  135. package/dist/integrations/fastify/manifest.js.map +1 -0
  136. package/dist/integrations/fastify/patch.d.ts +27 -0
  137. package/dist/integrations/fastify/patch.d.ts.map +1 -0
  138. package/dist/integrations/fastify/patch.js +91 -0
  139. package/dist/integrations/fastify/patch.js.map +1 -0
  140. package/dist/integrations/fastify/uninstall.d.ts +4 -0
  141. package/dist/integrations/fastify/uninstall.d.ts.map +1 -0
  142. package/dist/integrations/fastify/uninstall.js +18 -0
  143. package/dist/integrations/fastify/uninstall.js.map +1 -0
  144. package/dist/integrations/fastify.d.ts +5 -1
  145. package/dist/integrations/fastify.d.ts.map +1 -1
  146. package/dist/integrations/fastify.js +5 -9
  147. package/dist/integrations/fastify.js.map +1 -1
  148. package/dist/integrations/flutter.d.ts.map +1 -1
  149. package/dist/integrations/flutter.js +3 -0
  150. package/dist/integrations/flutter.js.map +1 -1
  151. package/dist/integrations/go/index.d.ts +3 -0
  152. package/dist/integrations/go/index.d.ts.map +1 -0
  153. package/dist/integrations/go/index.js +199 -0
  154. package/dist/integrations/go/index.js.map +1 -0
  155. package/dist/integrations/go.d.ts.map +1 -1
  156. package/dist/integrations/go.js +5 -2
  157. package/dist/integrations/go.js.map +1 -1
  158. package/dist/integrations/java/index.d.ts +3 -0
  159. package/dist/integrations/java/index.d.ts.map +1 -0
  160. package/dist/integrations/java/index.js +472 -0
  161. package/dist/integrations/java/index.js.map +1 -0
  162. package/dist/integrations/java.d.ts.map +1 -1
  163. package/dist/integrations/java.js +5 -2
  164. package/dist/integrations/java.js.map +1 -1
  165. package/dist/integrations/js/manifest.d.ts.map +1 -1
  166. package/dist/integrations/js/manifest.js +3 -0
  167. package/dist/integrations/js/manifest.js.map +1 -1
  168. package/dist/integrations/nestjs/detect.d.ts +3 -0
  169. package/dist/integrations/nestjs/detect.d.ts.map +1 -0
  170. package/dist/integrations/nestjs/detect.js +12 -0
  171. package/dist/integrations/nestjs/detect.js.map +1 -0
  172. package/dist/integrations/nestjs/doctor.d.ts +3 -0
  173. package/dist/integrations/nestjs/doctor.d.ts.map +1 -0
  174. package/dist/integrations/nestjs/doctor.js +76 -0
  175. package/dist/integrations/nestjs/doctor.js.map +1 -0
  176. package/dist/integrations/nestjs/files.d.ts +18 -0
  177. package/dist/integrations/nestjs/files.d.ts.map +1 -0
  178. package/dist/integrations/nestjs/files.js +39 -0
  179. package/dist/integrations/nestjs/files.js.map +1 -0
  180. package/dist/integrations/nestjs/index.d.ts +3 -0
  181. package/dist/integrations/nestjs/index.d.ts.map +1 -0
  182. package/dist/integrations/nestjs/index.js +43 -0
  183. package/dist/integrations/nestjs/index.js.map +1 -0
  184. package/dist/integrations/nestjs/manifest.d.ts +3 -0
  185. package/dist/integrations/nestjs/manifest.d.ts.map +1 -0
  186. package/dist/integrations/nestjs/manifest.js +32 -0
  187. package/dist/integrations/nestjs/manifest.js.map +1 -0
  188. package/dist/integrations/nestjs/patch.d.ts +25 -0
  189. package/dist/integrations/nestjs/patch.d.ts.map +1 -0
  190. package/dist/integrations/nestjs/patch.js +66 -0
  191. package/dist/integrations/nestjs/patch.js.map +1 -0
  192. package/dist/integrations/nestjs/uninstall.d.ts +4 -0
  193. package/dist/integrations/nestjs/uninstall.d.ts.map +1 -0
  194. package/dist/integrations/nestjs/uninstall.js +18 -0
  195. package/dist/integrations/nestjs/uninstall.js.map +1 -0
  196. package/dist/integrations/nestjs.d.ts +5 -1
  197. package/dist/integrations/nestjs.d.ts.map +1 -1
  198. package/dist/integrations/nestjs.js +5 -9
  199. package/dist/integrations/nestjs.js.map +1 -1
  200. package/dist/integrations/next/index.js +2 -2
  201. package/dist/integrations/next/index.js.map +1 -1
  202. package/dist/integrations/next/manifest.d.ts.map +1 -1
  203. package/dist/integrations/next/manifest.js +4 -1
  204. package/dist/integrations/next/manifest.js.map +1 -1
  205. package/dist/integrations/next/patch.js +8 -3
  206. package/dist/integrations/next/patch.js.map +1 -1
  207. package/dist/integrations/next/uninstall.d.ts.map +1 -1
  208. package/dist/integrations/next/uninstall.js +10 -1
  209. package/dist/integrations/next/uninstall.js.map +1 -1
  210. package/dist/integrations/otel.d.ts.map +1 -1
  211. package/dist/integrations/otel.js +4 -1
  212. package/dist/integrations/otel.js.map +1 -1
  213. package/dist/integrations/php.d.ts.map +1 -1
  214. package/dist/integrations/php.js +16 -3
  215. package/dist/integrations/php.js.map +1 -1
  216. package/dist/integrations/python/index.d.ts +3 -0
  217. package/dist/integrations/python/index.d.ts.map +1 -0
  218. package/dist/integrations/python/index.js +222 -0
  219. package/dist/integrations/python/index.js.map +1 -0
  220. package/dist/integrations/python.d.ts.map +1 -1
  221. package/dist/integrations/python.js +5 -2
  222. package/dist/integrations/python.js.map +1 -1
  223. package/dist/integrations/react/doctor.d.ts.map +1 -1
  224. package/dist/integrations/react/doctor.js +41 -8
  225. package/dist/integrations/react/doctor.js.map +1 -1
  226. package/dist/integrations/react/index.d.ts.map +1 -1
  227. package/dist/integrations/react/index.js +1 -4
  228. package/dist/integrations/react/index.js.map +1 -1
  229. package/dist/integrations/react/manifest.d.ts.map +1 -1
  230. package/dist/integrations/react/manifest.js +4 -1
  231. package/dist/integrations/react/manifest.js.map +1 -1
  232. package/dist/integrations/react/patch.d.ts.map +1 -1
  233. package/dist/integrations/react/patch.js +120 -8
  234. package/dist/integrations/react/patch.js.map +1 -1
  235. package/dist/integrations/react/uninstall.d.ts.map +1 -1
  236. package/dist/integrations/react/uninstall.js +20 -1
  237. package/dist/integrations/react/uninstall.js.map +1 -1
  238. package/dist/integrations/react-native.d.ts.map +1 -1
  239. package/dist/integrations/react-native.js +3 -0
  240. package/dist/integrations/react-native.js.map +1 -1
  241. package/dist/integrations/ruby.d.ts.map +1 -1
  242. package/dist/integrations/ruby.js +3 -0
  243. package/dist/integrations/ruby.js.map +1 -1
  244. package/dist/output/human.d.ts.map +1 -1
  245. package/dist/output/human.js +38 -7
  246. package/dist/output/human.js.map +1 -1
  247. package/dist/registry/index.d.ts.map +1 -1
  248. package/dist/registry/index.js +9 -23
  249. package/dist/registry/index.js.map +1 -1
  250. package/dist/registry/manifest.d.ts +8 -0
  251. package/dist/registry/manifest.d.ts.map +1 -1
  252. package/dist/security-snapshot/builder.d.ts +3 -0
  253. package/dist/security-snapshot/builder.d.ts.map +1 -0
  254. package/dist/security-snapshot/builder.js +343 -0
  255. package/dist/security-snapshot/builder.js.map +1 -0
  256. package/dist/security-snapshot/client.d.ts +3 -0
  257. package/dist/security-snapshot/client.d.ts.map +1 -0
  258. package/dist/security-snapshot/client.js +38 -0
  259. package/dist/security-snapshot/client.js.map +1 -0
  260. package/dist/security-snapshot/index.d.ts +4 -0
  261. package/dist/security-snapshot/index.d.ts.map +1 -0
  262. package/dist/security-snapshot/index.js +3 -0
  263. package/dist/security-snapshot/index.js.map +1 -0
  264. package/dist/security-snapshot/types.d.ts +57 -0
  265. package/dist/security-snapshot/types.d.ts.map +1 -0
  266. package/dist/security-snapshot/types.js +2 -0
  267. package/dist/security-snapshot/types.js.map +1 -0
  268. package/dist/sourcemaps/next.js +3 -3
  269. package/dist/sourcemaps/next.js.map +1 -1
  270. package/dist/sourcemaps/vite.d.ts.map +1 -1
  271. package/dist/sourcemaps/vite.js +92 -9
  272. package/dist/sourcemaps/vite.js.map +1 -1
  273. package/docs/architecture/v02-sourcemaps-e2e-spec.md +1 -1
  274. package/docs/beta/expo.md +69 -0
  275. package/docs/beta/fastify.md +62 -0
  276. package/docs/beta/known-limitations.md +14 -14
  277. package/docs/beta/nestjs.md +69 -0
  278. package/docs/beta/next.md +7 -8
  279. package/docs/beta/react.md +23 -15
  280. package/docs/beta/reliability.md +33 -0
  281. package/package.json +11 -3
package/CHANGELOG.md CHANGED
@@ -4,12 +4,51 @@ All notable changes to `@allstak/wizard` will be documented here. The format
4
4
  follows [Keep a Changelog](https://keepachangelog.com/) and this project
5
5
  adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
- ## [Unreleased] — 0.1.4
7
+ ## [Unreleased] — 0.1.4-beta.0
8
+
9
+ ### Added
10
+ - **Expo (managed workflow) → beta.** New `expo` integration patches
11
+ `app.json:expo.plugins[]` (idempotent), AST-injects `AllStakProvider`
12
+ import in `App.tsx`, and appends a managed-block hint. Refuses on
13
+ prebuilt projects (`ios/` or `android/` present) with a clear error.
14
+ See `docs/beta/expo.md`.
15
+ - **NestJS → beta.** New `nestjs` integration AST-injects
16
+ `AllStakNestExceptionFilter` / `AllStakNestInterceptor` imports and
17
+ appends a managed-block hint demonstrating `useGlobalFilters` /
18
+ `useGlobalInterceptors` registration. Wizard does NOT auto-mutate
19
+ `bootstrap()`. Compat: `@nestjs/core >= 9`. See `docs/beta/nestjs.md`.
20
+ - **Fastify → beta.** New `fastify` integration; ESM entries get an
21
+ AST-injected `allstakFastify` import, CJS entries get a hint-only
22
+ patch. Both branches append a managed-block hint demonstrating
23
+ `app.register(allstakFastify, ...)`. Compat: `fastify >= 4`. See
24
+ `docs/beta/fastify.md`.
25
+ - Next 15 fixture (`fixtures/next-app-router-15`) added to the
26
+ integration test matrix; `next` integration now exercised against
27
+ Next 13/14/15 in unit tests + CI.
28
+ - Three new fixtures (`fixtures/expo-managed`, `fixtures/nestjs-app`,
29
+ `fixtures/fastify-server`) drive ~30 new integration tests covering
30
+ detect (incl. version refusal), patch shape, idempotency (byte-equal
31
+ re-run), uninstall reversal, and `doctor` warn→pass transitions.
32
+ - CI matrix expanded to 8 fixtures × 3 Node versions (18/20/22) =
33
+ **24 install/uninstall/repair/restore/idempotency cycles per push**.
8
34
 
9
35
  ### Changed
36
+ - Test count: **157 / 157** passing (was 123/123).
37
+ - Next.js uninstall ordering fixed: `removeManagedSourceBlock` now runs
38
+ BEFORE `patchJsModule(removeImport)`, so wizard-created
39
+ `instrumentation.ts` files (whose entire content lives inside the
40
+ managed markers) are correctly deleted on uninstall instead of being
41
+ orphaned.
42
+ - Next.js `ensureInstrumentationFile` now wraps wizard-generated
43
+ `register()` content inside managed-block markers when creating the
44
+ file from scratch — required for clean uninstall round-trip.
45
+ - `next` stability **explicitly held at `beta`** until source-map upload
46
+ + symbolication roundtrip is validated end-to-end (tracked by an
47
+ assertion in the unit tests so we cannot accidentally promote it).
10
48
  - README rewritten to reflect the v0.1.3 beta surface (real auth, full
11
- command list, 123 tests, telemetry contract, error catalog, current v0.2
12
- roadmap).
49
+ command list, telemetry contract, error catalog, current v0.2
50
+ roadmap), and the integration matrix updated to show Expo / NestJS /
51
+ Fastify at `beta`.
13
52
  - Package metadata polished for npm: tighter description, `sdk-install`
14
53
  keyword consolidated to `sdk`, exports map gains `./config` and
15
54
  `./errors` subpaths, `files` whitelist gains `docs/errors.md` and
package/LICENSE ADDED
@@ -0,0 +1,191 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2024-2026 AllStak
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
package/README.md CHANGED
@@ -1,44 +1,42 @@
1
1
  # @allstak/wizard
2
2
 
3
- > **v0.1.3 beta** — Unified installation and configuration wizard for AllStak SDKs.
3
+ > **v0.1.4** — Unified installation and configuration wizard for AllStak SDKs.
4
4
 
5
5
  A Sentry-Wizard-style CLI that installs and configures AllStak SDKs in
6
- your project with one command. Designed to be **honest by default**:
7
- integrations only graduate to `stable` after end-to-end fixture validation;
8
- `experimental` integrations refuse to run without an explicit opt-in;
9
- `unsupported` integrations refuse outright with a pointer to manual setup.
10
-
11
- ## Status: public beta
12
-
13
- This release is **beta-ready, not stable**. Sit on it, dogfood it, file
14
- issues — but expect the surface to wobble in patch releases until 1.0.
15
-
16
- | Integration | Stability | Notes |
17
- |-------------|-----------|-------|
18
- | `react` (Vite or CRA) | stable | Validated end-to-end; dogfooded |
19
- | `next` (13+, app + pages router) | 🟡 beta | Implementation complete; production-build matrix in progress |
20
- | `js` (vanilla Node) | stable | Validated end-to-end |
21
- | `expo`, `nestjs`, `fastify`, `otel`, `python`, `go`, `java`, `php`, `ruby`, `dotnet`, `flutter` | 🟠 experimental | Install + env-var writing only; framework wiring deferred. Refuses without `--experimental`. |
22
- | `react-native` (bare) | ❌ unsupported | Refused outright — Podfile/Gradle patching not validated. Use Expo or follow manual setup. |
23
-
24
- `allstak-wizard list` prints this matrix at runtime. See
25
- [`docs/beta/known-limitations.md`](./docs/beta/known-limitations.md) for
26
- the full honest list.
6
+ your project with one command where automation is complete, and shows
7
+ Manual/light setup guidance where the runtime is Stable but automation is not
8
+ finished. Designed to be **honest by default**: runtime stability and wizard
9
+ automation maturity are separate claims.
10
+
11
+ ## Public SDK Status
12
+
13
+ | Integration | Runtime status | Wizard status | Notes |
14
+ |-------------|----------------|-------------------|-------|
15
+ | `js` (JavaScript / TypeScript) | Stable | Stable | Validated end-to-end; wizard can install and wire init. |
16
+ | `react` (Vite or CRA) | Stable | Stable | Validated end-to-end; wizard can install and wire common app entry patterns. |
17
+ | `react-native` (Expo + bare RN) | Stable | Manual/light | Runtime is Stable; wizard provides setup guidance. |
18
+ | `next` (13+, app + pages router) | Beta | Beta | Runtime is Beta (certification score 32); wizard provides App Router and pages-router onboarding. Edge Runtime and Server Actions are not certified. |
19
+ | `java` (Java / Spring Boot) | Beta | Manual/light | Runtime is Beta (certification score 34); wizard provides setup guidance. |
20
+ | `python` | Beta | Manual/light | Runtime is Beta (certification score 34); wizard provides setup guidance. |
21
+ | `go` | Beta | Manual/light | Runtime is Beta (certification score 33); wizard provides setup guidance. |
22
+
23
+ `allstak-wizard list` prints public runtime SDKs and makes wizard maturity
24
+ explicit. Manual/light entries are setup guidance, not full automation.
27
25
 
28
26
  ## Install + run
29
27
 
30
28
  ```bash
31
29
  # Show help (also fetches and runs the package via npx).
32
- npx @allstak/wizard@beta --help
30
+ npx @allstak/wizard --help
33
31
 
34
32
  # Authenticate against AllStak (email OTP, optional 2FA).
35
- npx @allstak/wizard@beta login
33
+ npx @allstak/wizard login
36
34
 
37
35
  # Configure your project (auto-detects React / Next / Node).
38
- npx @allstak/wizard@beta -i react
36
+ npx @allstak/wizard -i react
39
37
 
40
38
  # Verify with a real test event roundtrip.
41
- npx @allstak/wizard@beta doctor --live-probe \
39
+ npx @allstak/wizard doctor --live-probe \
42
40
  --api-key ask_live_... \
43
41
  --project-id <project-uuid>
44
42
  ```
@@ -113,15 +111,15 @@ to wire in once a backend telemetry endpoint is decided on.
113
111
  Three independent ways to opt out, any one suffices:
114
112
 
115
113
  ```bash
116
- npx @allstak/wizard@beta --no-telemetry ...
117
- ALLSTAK_WIZARD_TELEMETRY=0 npx @allstak/wizard@beta ...
114
+ npx @allstak/wizard --no-telemetry ...
115
+ ALLSTAK_WIZARD_TELEMETRY=0 npx @allstak/wizard ...
118
116
  # Or: leave the default noop provider in place (no operator config).
119
117
  ```
120
118
 
121
119
  Inspect what _would_ be sent:
122
120
 
123
121
  ```bash
124
- npx @allstak/wizard@beta --telemetry-debug -i react --dry-run
122
+ npx @allstak/wizard --telemetry-debug -i react --dry-run
125
123
  ```
126
124
 
127
125
  The wizard's payload type is the entire on-the-wire contract. We do **NOT**
@@ -199,6 +197,11 @@ of the captured event.
199
197
 
200
198
  Full reference: [`docs/beta/doctor.md`](./docs/beta/doctor.md).
201
199
 
200
+ SDK reliability and outage behavior are documented in
201
+ [`docs/beta/reliability.md`](./docs/beta/reliability.md). Wizard-generated
202
+ runtime integrations must be fail-open: AllStak ingest outages should drop or
203
+ delay telemetry, not break the host application.
204
+
202
205
  ## Restore (persistent snapshots)
203
206
 
204
207
  Every wizard mutation is captured under
@@ -279,7 +282,7 @@ Full design docs: [`docs/architecture/`](./docs/architecture/).
279
282
  cd /path/to/sdks/allstak-wizard
280
283
  npm install
281
284
  npm run type-check # tsc --noEmit (clean)
282
- npm test # 123 tests, ~3s
285
+ npm test # 157 tests, ~5s
283
286
  npm run build # emits dist/ with .d.ts + source maps
284
287
  npx tsx src/cli.ts --help # run from source
285
288
 
@@ -294,14 +297,14 @@ ALLSTAK_API_KEY=ask_test \
294
297
  | Status | Count |
295
298
  |--------|-------|
296
299
  | Type-check | clean |
297
- | Unit + integration tests | **123 / 123** passing |
300
+ | Unit + integration tests | **157 / 157** passing |
298
301
  | Build | clean (.js + .d.ts + source maps) |
299
302
 
300
303
  Tests run on temp-dir fixtures (no network, no real SDK install) and
301
304
  validate idempotency, rollback, dry-run, restore round-trip, error catalog
302
305
  coverage, telemetry payload contract, and config migration plumbing.
303
306
 
304
- ## Roadmap (post-beta)
307
+ ## Roadmap
305
308
 
306
309
  Beta is shipping intentionally narrow. v0.2 priorities:
307
310
 
@@ -33,6 +33,8 @@ export interface RequestInit {
33
33
  signal?: AbortSignal;
34
34
  /** Override Content-Type — used by source-map upload (still JSON in body but custom MIME). */
35
35
  contentType?: string;
36
+ /** Extra non-auth headers. Callers must not pass secrets except purpose-scoped control-plane headers. */
37
+ headers?: Record<string, string | undefined>;
36
38
  }
37
39
  export interface ApiResponse<T> {
38
40
  status: number;
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/api/http.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,QAAQ,GAChB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpC,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GA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,8FAA8F;IAC9F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yGAAyG;IACzG,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,CAAC,CAAC;IACR,oBAAoB;IACpB,EAAE,EAAE,OAAO,CAAC;CACb;AAID,wBAAsB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CA2E5F"}
package/dist/api/http.js CHANGED
@@ -13,6 +13,12 @@ export async function apiRequest(host, init) {
13
13
  else if (init.auth.kind === 'apiKey') {
14
14
  headers['X-AllStak-Key'] = init.auth.key;
15
15
  }
16
+ if (init.headers) {
17
+ for (const [key, value] of Object.entries(init.headers)) {
18
+ if (value !== undefined && value !== '')
19
+ headers[key] = value;
20
+ }
21
+ }
16
22
  const controller = new AbortController();
17
23
  const externalSignal = init.signal;
18
24
  const timeout = setTimeout(() => controller.abort(new Error('timeout')), init.timeoutMs ?? DEFAULT_TIMEOUT);
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/api/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA4ChD,MAAM,eAAe,GAAG,MAAM,CAAC;AAE/B,MAAM,CAAC,KAAK,UAAU,UAAU,CAAI,IAAY,EAAE,IAAiB;IACjE,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,OAAO,GAA2B;QACtC,MAAM,EAAE,kBAAkB;QAC1B,cAAc,EAAE,IAAI,CAAC,WAAW,IAAI,kBAAkB;QACtD,YAAY,EAAE,gBAAg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AAC,EAAE,CAAC;AAClD,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,oFAAoF;IACpF,OAAO,GAAG,CAAC,OAAO,CAAC,6BAA6B,EAAE,QAAQ,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,OAAO,CAAC,IAAY,EAAE,MAAc;IAC3C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,iBAAiB;YACpB,OAAO,qFAAqF,CAAC;QAC/F,KAAK,aAAa;YAChB,OAAO,0EAA0E,CAAC;QACpF,KAAK,kBAAkB;YACrB,OAAO,iEAAiE,CAAC;QAC3E,KAAK,eAAe;YAClB,OAAO,sDAAsD,CAAC;QAChE;YACE,IAAI,MAAM,KAAK,GAAG;gBAAE,OAAO,oEAAoE,CAAC;YAChG,IAAI,MAAM,KAAK,GAAG;gBAAE,OAAO,0CAA0C,CAAC;YACtE,IAAI,MAAM,KAAK,GAAG;gBAAE,OAAO,+CAA+C,CAAC;YAC3E,IAAI,MAAM,IAAI,GAAG;gBAAE,OAAO,2DAA2D,CAAC;YACtF,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"}
@@ -8,5 +8,6 @@ export { requestOtp, verifyOtp, verify2faLogin, refreshTokens, logout as logoutS
8
8
  export { listOrgs, createOrg, getOrg } from './orgs-client.js';
9
9
  export { listProjects, createProject, getProject, createApiKey, listApiKeys, } from './projects-client.js';
10
10
  export { setupDoctor, sendTestEvent, pollForProbeEvent, } from './setup-doctor-client.js';
11
+ export { uploadSecuritySnapshot, } from '../security-snapshot/client.js';
11
12
  export * from './types.js';
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EACL,UAAU,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,MAAM,IAAI,aAAa,EACvB,MAAM,GACP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,aAAa,EACb,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAClC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EACL,UAAU,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,MAAM,IAAI,aAAa,EACvB,MAAM,GACP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,aAAa,EACb,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,cAAc,YAAY,CAAC"}
package/dist/api/index.js CHANGED
@@ -8,5 +8,6 @@ export { requestOtp, verifyOtp, verify2faLogin, refreshTokens, logout as logoutS
8
8
  export { listOrgs, createOrg, getOrg } from './orgs-client.js';
9
9
  export { listProjects, createProject, getProject, createApiKey, listApiKeys, } from './projects-client.js';
10
10
  export { setupDoctor, sendTestEvent, pollForProbeEvent, } from './setup-doctor-client.js';
11
+ export { uploadSecuritySnapshot, } from '../security-snapshot/client.js';
11
12
  export * from './types.js';
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAmC,MAAM,WAAW,CAAC;AACxE,OAAO,EACL,UAAU,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,MAAM,IAAI,aAAa,EACvB,MAAM,GACP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,aAAa,EACb,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAClC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAmC,MAAM,WAAW,CAAC;AACxE,OAAO,EACL,UAAU,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,MAAM,IAAI,aAAa,EACvB,MAAM,GACP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,WAAW,EACX,aAAa,EACb,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CertificationFixture } from './types.js';
2
+ export declare const certificationFixtures: readonly CertificationFixture[];
3
+ export declare function findCertificationFixtures(framework?: string, fixture?: string): CertificationFixture[];
4
+ //# sourceMappingURL=fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../src/certification/fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAmCvD,eAAO,MAAM,qBAAqB,EAAE,SAAS,oBAAoB,EAkEhE,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,oBAAoB,EAAE,CAMtG"}
@@ -0,0 +1,109 @@
1
+ import { dirname, resolve } from 'node:path';
2
+ import { fileURLToPath } from 'node:url';
3
+ const __dirname = dirname(fileURLToPath(import.meta.url));
4
+ const WIZARD_ROOT = resolve(__dirname, '..', '..');
5
+ const FIXTURES_ROOT = resolve(WIZARD_ROOT, 'fixtures');
6
+ const LIVE_REQUIRED = [
7
+ 'event-ingestion',
8
+ 'release-linkage',
9
+ 'source-map-upload',
10
+ 'source-map-symbolication',
11
+ 'security-snapshot-upload',
12
+ ];
13
+ const COMMON_STABLE_REQUIRED = [
14
+ 'clean-fixture',
15
+ 'framework-detection',
16
+ 'fixture-dependency-install',
17
+ 'wizard-onboarding',
18
+ 'sdk-package-install',
19
+ 'build-after-onboarding',
20
+ 'runtime-start',
21
+ 'runtime-smoke',
22
+ 'event-ingestion',
23
+ 'release-linkage',
24
+ 'source-map-upload',
25
+ 'source-map-symbolication',
26
+ 'security-snapshot-extraction',
27
+ 'security-snapshot-upload',
28
+ 'wizard-uninstall',
29
+ 'build-after-uninstall',
30
+ 'orphan-import-scan',
31
+ 'rollback-cleanliness',
32
+ ];
33
+ export const certificationFixtures = [
34
+ {
35
+ id: 'react-vite',
36
+ framework: 'react',
37
+ title: 'React Vite',
38
+ fixtureDir: resolve(FIXTURES_ROOT, 'react-vite'),
39
+ tier: 1,
40
+ buildCommand: ['npm', 'run', 'build'],
41
+ startCommand: ['npm', 'exec', 'vite', '--', 'preview', '--host', '127.0.0.1', '--port', '4173'],
42
+ healthUrl: 'http://127.0.0.1:4173',
43
+ runtimeTimeoutMs: 15_000,
44
+ localSdkPackages: ['@allstak/react', '@allstak/js'],
45
+ requiresLiveBackend: LIVE_REQUIRED,
46
+ stableRequiredChecks: COMMON_STABLE_REQUIRED,
47
+ },
48
+ {
49
+ id: 'next-app-router-15',
50
+ framework: 'next',
51
+ title: 'Next.js 15 App Router',
52
+ fixtureDir: resolve(FIXTURES_ROOT, 'next-app-router-15'),
53
+ tier: 1,
54
+ buildCommand: ['npm', 'run', 'build'],
55
+ startCommand: ['npm', 'run', 'start', '--', '--hostname', '127.0.0.1', '--port', '4315'],
56
+ healthUrl: 'http://127.0.0.1:4315',
57
+ runtimeTimeoutMs: 20_000,
58
+ localSdkPackages: ['@allstak/next', '@allstak/js'],
59
+ requiresLiveBackend: LIVE_REQUIRED,
60
+ stableRequiredChecks: COMMON_STABLE_REQUIRED,
61
+ },
62
+ {
63
+ id: 'expo-managed',
64
+ framework: 'expo',
65
+ title: 'React Native Expo Managed',
66
+ fixtureDir: resolve(FIXTURES_ROOT, 'expo-managed'),
67
+ tier: 1,
68
+ localSdkPackages: [],
69
+ requiresLiveBackend: LIVE_REQUIRED,
70
+ stableRequiredChecks: [...COMMON_STABLE_REQUIRED, 'trace-request-context'],
71
+ },
72
+ {
73
+ id: 'nestjs-app',
74
+ framework: 'nestjs',
75
+ title: 'NestJS',
76
+ fixtureDir: resolve(FIXTURES_ROOT, 'nestjs-app'),
77
+ tier: 1,
78
+ buildCommand: ['npm', 'run', 'build'],
79
+ startCommand: ['npm', 'run', 'start:prod'],
80
+ healthUrl: 'http://127.0.0.1:3000/health',
81
+ runtimeTimeoutMs: 15_000,
82
+ localSdkPackages: [],
83
+ requiresLiveBackend: LIVE_REQUIRED,
84
+ stableRequiredChecks: [...COMMON_STABLE_REQUIRED, 'trace-request-context'],
85
+ },
86
+ {
87
+ id: 'fastify-server',
88
+ framework: 'fastify',
89
+ title: 'Fastify',
90
+ fixtureDir: resolve(FIXTURES_ROOT, 'fastify-server'),
91
+ tier: 1,
92
+ startCommand: ['npm', 'run', 'start'],
93
+ healthUrl: 'http://127.0.0.1:3000/health',
94
+ runtimeTimeoutMs: 15_000,
95
+ localSdkPackages: [],
96
+ requiresLiveBackend: LIVE_REQUIRED,
97
+ stableRequiredChecks: [...COMMON_STABLE_REQUIRED, 'trace-request-context'],
98
+ },
99
+ ];
100
+ export function findCertificationFixtures(framework, fixture) {
101
+ return certificationFixtures.filter((item) => {
102
+ if (framework && item.framework !== framework)
103
+ return false;
104
+ if (fixture && item.id !== fixture)
105
+ return false;
106
+ return true;
107
+ });
108
+ }
109
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../src/certification/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACnD,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;AAEvD,MAAM,aAAa,GAAG;IACpB,iBAAiB;IACjB,iBAAiB;IACjB,mBAAmB;IACnB,0BAA0B;IAC1B,0BAA0B;CAClB,CAAC;AAEX,MAAM,sBAAsB,GAAG;IAC7B,eAAe;IACf,qBAAqB;IACrB,4BAA4B;IAC5B,mBAAmB;IACnB,qBAAqB;IACrB,wBAAwB;IACxB,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,iBAAiB;IACjB,mBAAmB;IACn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AAS,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QAC5D,IAAI,OAAO,IAAI,IAAI,CAAC,EAAE,KAAK,OAAO;YAAE,OAAO,KAAK,CAAC;QACjD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { StabilityLevel } from '../registry/manifest.js';
2
+ import type { CertificationCheckName, CertificationCheckResult, CertificationFixture } from './types.js';
3
+ export interface StabilityGateResult {
4
+ certifiedStable: boolean;
5
+ recommendedStability: StabilityLevel;
6
+ failedRequiredChecks: CertificationCheckName[];
7
+ skippedRequiredChecks: CertificationCheckName[];
8
+ }
9
+ export declare function evaluateStabilityGate(fixture: CertificationFixture, checks: readonly CertificationCheckResult[]): StabilityGateResult;
10
+ //# sourceMappingURL=gates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gates.d.ts","sourceRoot":"","sources":["../../src/certification/gates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,mBAAmB;IAClC,eAAe,EAAE,OAAO,CAAC;IACzB,oBAAoB,EAAE,cAAc,CAAC;IACrC,oBAAoB,EAAE,sBAAsB,EAAE,CAAC;IAC/C,qBAAqB,EAAE,sBAAsB,EAAE,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,oBAAoB,EAC7B,MAAM,EAAE,SAAS,wBAAwB,EAAE,GAC1C,mBAAmB,CAkBrB"}
@@ -0,0 +1,20 @@
1
+ export function evaluateStabilityGate(fixture, checks) {
2
+ const byName = new Map(checks.map((check) => [check.name, check]));
3
+ const failedRequiredChecks = [];
4
+ const skippedRequiredChecks = [];
5
+ for (const name of fixture.stableRequiredChecks) {
6
+ const check = byName.get(name);
7
+ if (!check || check.status === 'fail')
8
+ failedRequiredChecks.push(name);
9
+ if (check?.status === 'skip')
10
+ skippedRequiredChecks.push(name);
11
+ }
12
+ const certifiedStable = failedRequiredChecks.length === 0 && skippedRequiredChecks.length === 0;
13
+ return {
14
+ certifiedStable,
15
+ recommendedStability: certifiedStable ? 'stable' : 'beta',
16
+ failedRequiredChecks,
17
+ skippedRequiredChecks,
18
+ };
19
+ }
20
+ //# sourceMappingURL=gates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gates.js","sourceRoot":"","sources":["../../src/certification/gates.ts"],"names":[],"mappings":"AAcA,MAAM,UAAU,qBAAqB,CACnC,OAA6B,EAC7B,MAA2C;IAE3C,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACnE,MAAM,oBAAoB,GAA6B,EAAE,CAAC;IAC1D,MAAM,qBAAqB,GAA6B,EAAE,CAAC;IAE3D,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;QAChD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,MAAM;YAAE,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvE,IAAI,KAAK,EAAE,MAAM,KAAK,MAAM;YAAE,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,eAAe,GAAG,oBAAoB,CAAC,MAAM,KAAK,CAAC,IAAI,qBAAqB,CAAC,MAAM,KAAK,CAAC,CAAC;IAChG,OAAO;QACL,eAAe;QACf,oBAAoB,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM;QACzD,oBAAoB;QACpB,qBAAqB;KACtB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { certificationFixtures, findCertificationFixtures } from './fixtures.js';
2
+ export { evaluateStabilityGate } from './gates.js';
3
+ export { runCertification } from './runner.js';
4
+ export { renderCertificationMarkdown } from './report.js';
5
+ export type * from './types.js';
6
+ //# sourceMappingURL=index.d.ts.map