@allstak/wizard 0.1.7 → 0.1.8

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 (350) hide show
  1. package/dist/cli.js +8 -0
  2. package/dist/commands/_context.js +4 -2
  3. package/dist/registry/index.js +4 -0
  4. package/dist/util/wizard-version.d.ts +1 -1
  5. package/dist/util/wizard-version.js +1 -1
  6. package/package.json +3 -4
  7. package/dist/api/auth-client.d.ts.map +0 -1
  8. package/dist/api/auth-client.js.map +0 -1
  9. package/dist/api/auth.d.ts.map +0 -1
  10. package/dist/api/auth.js.map +0 -1
  11. package/dist/api/client.d.ts.map +0 -1
  12. package/dist/api/client.js.map +0 -1
  13. package/dist/api/http.d.ts.map +0 -1
  14. package/dist/api/http.js.map +0 -1
  15. package/dist/api/index.d.ts.map +0 -1
  16. package/dist/api/index.js.map +0 -1
  17. package/dist/api/orgs-client.d.ts.map +0 -1
  18. package/dist/api/orgs-client.js.map +0 -1
  19. package/dist/api/projects-client.d.ts.map +0 -1
  20. package/dist/api/projects-client.js.map +0 -1
  21. package/dist/api/setup-doctor-client.d.ts.map +0 -1
  22. package/dist/api/setup-doctor-client.js.map +0 -1
  23. package/dist/api/types.d.ts.map +0 -1
  24. package/dist/api/types.js.map +0 -1
  25. package/dist/certification/fixtures.d.ts.map +0 -1
  26. package/dist/certification/fixtures.js.map +0 -1
  27. package/dist/certification/gates.d.ts.map +0 -1
  28. package/dist/certification/gates.js.map +0 -1
  29. package/dist/certification/index.d.ts.map +0 -1
  30. package/dist/certification/index.js.map +0 -1
  31. package/dist/certification/live-backend.d.ts.map +0 -1
  32. package/dist/certification/live-backend.js.map +0 -1
  33. package/dist/certification/packages.d.ts.map +0 -1
  34. package/dist/certification/packages.js.map +0 -1
  35. package/dist/certification/process.d.ts.map +0 -1
  36. package/dist/certification/process.js.map +0 -1
  37. package/dist/certification/report.d.ts.map +0 -1
  38. package/dist/certification/report.js.map +0 -1
  39. package/dist/certification/runner.d.ts.map +0 -1
  40. package/dist/certification/runner.js.map +0 -1
  41. package/dist/certification/runtime.d.ts.map +0 -1
  42. package/dist/certification/runtime.js.map +0 -1
  43. package/dist/certification/types.d.ts.map +0 -1
  44. package/dist/certification/types.js.map +0 -1
  45. package/dist/cli.d.ts.map +0 -1
  46. package/dist/cli.js.map +0 -1
  47. package/dist/commands/_context.d.ts.map +0 -1
  48. package/dist/commands/_context.js.map +0 -1
  49. package/dist/commands/certify.d.ts.map +0 -1
  50. package/dist/commands/certify.js.map +0 -1
  51. package/dist/commands/config-cmd.d.ts.map +0 -1
  52. package/dist/commands/config-cmd.js.map +0 -1
  53. package/dist/commands/doctor.d.ts.map +0 -1
  54. package/dist/commands/doctor.js.map +0 -1
  55. package/dist/commands/init.d.ts.map +0 -1
  56. package/dist/commands/init.js.map +0 -1
  57. package/dist/commands/list.d.ts.map +0 -1
  58. package/dist/commands/list.js.map +0 -1
  59. package/dist/commands/login.d.ts.map +0 -1
  60. package/dist/commands/login.js.map +0 -1
  61. package/dist/commands/logout.d.ts.map +0 -1
  62. package/dist/commands/logout.js.map +0 -1
  63. package/dist/commands/orgs.d.ts.map +0 -1
  64. package/dist/commands/orgs.js.map +0 -1
  65. package/dist/commands/projects.d.ts.map +0 -1
  66. package/dist/commands/projects.js.map +0 -1
  67. package/dist/commands/repair.d.ts.map +0 -1
  68. package/dist/commands/repair.js.map +0 -1
  69. package/dist/commands/restore.d.ts.map +0 -1
  70. package/dist/commands/restore.js.map +0 -1
  71. package/dist/commands/security-snapshot.d.ts.map +0 -1
  72. package/dist/commands/security-snapshot.js.map +0 -1
  73. package/dist/commands/uninstall.d.ts.map +0 -1
  74. package/dist/commands/uninstall.js.map +0 -1
  75. package/dist/commands/whoami.d.ts.map +0 -1
  76. package/dist/commands/whoami.js.map +0 -1
  77. package/dist/compat/engine.d.ts.map +0 -1
  78. package/dist/compat/engine.js.map +0 -1
  79. package/dist/config/define.d.ts.map +0 -1
  80. package/dist/config/define.js.map +0 -1
  81. package/dist/config/index.d.ts.map +0 -1
  82. package/dist/config/index.js.map +0 -1
  83. package/dist/config/loader.d.ts.map +0 -1
  84. package/dist/config/loader.js.map +0 -1
  85. package/dist/config/migrations.d.ts.map +0 -1
  86. package/dist/config/migrations.js.map +0 -1
  87. package/dist/config/precedence.d.ts.map +0 -1
  88. package/dist/config/precedence.js.map +0 -1
  89. package/dist/config/schema.d.ts.map +0 -1
  90. package/dist/config/schema.js.map +0 -1
  91. package/dist/config/types.d.ts.map +0 -1
  92. package/dist/config/types.js.map +0 -1
  93. package/dist/credentials/encrypted-file.d.ts.map +0 -1
  94. package/dist/credentials/encrypted-file.js.map +0 -1
  95. package/dist/credentials/error.d.ts.map +0 -1
  96. package/dist/credentials/error.js.map +0 -1
  97. package/dist/credentials/index.d.ts.map +0 -1
  98. package/dist/credentials/index.js.map +0 -1
  99. package/dist/credentials/keychain-darwin.d.ts.map +0 -1
  100. package/dist/credentials/keychain-darwin.js.map +0 -1
  101. package/dist/credentials/keychain-linux.d.ts.map +0 -1
  102. package/dist/credentials/keychain-linux.js.map +0 -1
  103. package/dist/credentials/keychain-win.d.ts.map +0 -1
  104. package/dist/credentials/keychain-win.js.map +0 -1
  105. package/dist/credentials/types.d.ts.map +0 -1
  106. package/dist/credentials/types.js.map +0 -1
  107. package/dist/detect/framework.d.ts.map +0 -1
  108. package/dist/detect/framework.js.map +0 -1
  109. package/dist/detect/index.d.ts.map +0 -1
  110. package/dist/detect/index.js.map +0 -1
  111. package/dist/detect/monorepo.d.ts.map +0 -1
  112. package/dist/detect/monorepo.js.map +0 -1
  113. package/dist/detect/package-manager.d.ts.map +0 -1
  114. package/dist/detect/package-manager.js.map +0 -1
  115. package/dist/index.d.ts.map +0 -1
  116. package/dist/index.js.map +0 -1
  117. package/dist/integrations/_scaffold.d.ts.map +0 -1
  118. package/dist/integrations/_scaffold.js.map +0 -1
  119. package/dist/integrations/_shared.d.ts.map +0 -1
  120. package/dist/integrations/_shared.js.map +0 -1
  121. package/dist/integrations/_simple-scaffold.d.ts.map +0 -1
  122. package/dist/integrations/_simple-scaffold.js.map +0 -1
  123. package/dist/integrations/dotnet.d.ts.map +0 -1
  124. package/dist/integrations/dotnet.js.map +0 -1
  125. package/dist/integrations/expo/detect.d.ts.map +0 -1
  126. package/dist/integrations/expo/detect.js.map +0 -1
  127. package/dist/integrations/expo/doctor.d.ts.map +0 -1
  128. package/dist/integrations/expo/doctor.js.map +0 -1
  129. package/dist/integrations/expo/files.d.ts.map +0 -1
  130. package/dist/integrations/expo/files.js.map +0 -1
  131. package/dist/integrations/expo/index.d.ts.map +0 -1
  132. package/dist/integrations/expo/index.js.map +0 -1
  133. package/dist/integrations/expo/manifest.d.ts.map +0 -1
  134. package/dist/integrations/expo/manifest.js.map +0 -1
  135. package/dist/integrations/expo/patch.d.ts.map +0 -1
  136. package/dist/integrations/expo/patch.js.map +0 -1
  137. package/dist/integrations/expo/uninstall.d.ts.map +0 -1
  138. package/dist/integrations/expo/uninstall.js.map +0 -1
  139. package/dist/integrations/expo.d.ts.map +0 -1
  140. package/dist/integrations/expo.js.map +0 -1
  141. package/dist/integrations/fastify/detect.d.ts.map +0 -1
  142. package/dist/integrations/fastify/detect.js.map +0 -1
  143. package/dist/integrations/fastify/doctor.d.ts.map +0 -1
  144. package/dist/integrations/fastify/doctor.js.map +0 -1
  145. package/dist/integrations/fastify/files.d.ts.map +0 -1
  146. package/dist/integrations/fastify/files.js.map +0 -1
  147. package/dist/integrations/fastify/index.d.ts.map +0 -1
  148. package/dist/integrations/fastify/index.js.map +0 -1
  149. package/dist/integrations/fastify/manifest.d.ts.map +0 -1
  150. package/dist/integrations/fastify/manifest.js.map +0 -1
  151. package/dist/integrations/fastify/patch.d.ts.map +0 -1
  152. package/dist/integrations/fastify/patch.js.map +0 -1
  153. package/dist/integrations/fastify/uninstall.d.ts.map +0 -1
  154. package/dist/integrations/fastify/uninstall.js.map +0 -1
  155. package/dist/integrations/fastify.d.ts.map +0 -1
  156. package/dist/integrations/fastify.js.map +0 -1
  157. package/dist/integrations/flutter.d.ts.map +0 -1
  158. package/dist/integrations/flutter.js.map +0 -1
  159. package/dist/integrations/go/index.d.ts.map +0 -1
  160. package/dist/integrations/go/index.js.map +0 -1
  161. package/dist/integrations/go.d.ts.map +0 -1
  162. package/dist/integrations/go.js.map +0 -1
  163. package/dist/integrations/java/index.d.ts.map +0 -1
  164. package/dist/integrations/java/index.js.map +0 -1
  165. package/dist/integrations/java.d.ts.map +0 -1
  166. package/dist/integrations/java.js.map +0 -1
  167. package/dist/integrations/js/detect.d.ts.map +0 -1
  168. package/dist/integrations/js/detect.js.map +0 -1
  169. package/dist/integrations/js/doctor.d.ts.map +0 -1
  170. package/dist/integrations/js/doctor.js.map +0 -1
  171. package/dist/integrations/js/files.d.ts.map +0 -1
  172. package/dist/integrations/js/files.js.map +0 -1
  173. package/dist/integrations/js/index.d.ts.map +0 -1
  174. package/dist/integrations/js/index.js.map +0 -1
  175. package/dist/integrations/js/manifest.d.ts.map +0 -1
  176. package/dist/integrations/js/manifest.js.map +0 -1
  177. package/dist/integrations/js/patch.d.ts.map +0 -1
  178. package/dist/integrations/js/patch.js.map +0 -1
  179. package/dist/integrations/js/uninstall.d.ts.map +0 -1
  180. package/dist/integrations/js/uninstall.js.map +0 -1
  181. package/dist/integrations/nestjs/detect.d.ts.map +0 -1
  182. package/dist/integrations/nestjs/detect.js.map +0 -1
  183. package/dist/integrations/nestjs/doctor.d.ts.map +0 -1
  184. package/dist/integrations/nestjs/doctor.js.map +0 -1
  185. package/dist/integrations/nestjs/files.d.ts.map +0 -1
  186. package/dist/integrations/nestjs/files.js.map +0 -1
  187. package/dist/integrations/nestjs/index.d.ts.map +0 -1
  188. package/dist/integrations/nestjs/index.js.map +0 -1
  189. package/dist/integrations/nestjs/manifest.d.ts.map +0 -1
  190. package/dist/integrations/nestjs/manifest.js.map +0 -1
  191. package/dist/integrations/nestjs/patch.d.ts.map +0 -1
  192. package/dist/integrations/nestjs/patch.js.map +0 -1
  193. package/dist/integrations/nestjs/uninstall.d.ts.map +0 -1
  194. package/dist/integrations/nestjs/uninstall.js.map +0 -1
  195. package/dist/integrations/nestjs.d.ts.map +0 -1
  196. package/dist/integrations/nestjs.js.map +0 -1
  197. package/dist/integrations/next/detect.d.ts.map +0 -1
  198. package/dist/integrations/next/detect.js.map +0 -1
  199. package/dist/integrations/next/doctor.d.ts.map +0 -1
  200. package/dist/integrations/next/doctor.js.map +0 -1
  201. package/dist/integrations/next/files.d.ts.map +0 -1
  202. package/dist/integrations/next/files.js.map +0 -1
  203. package/dist/integrations/next/index.d.ts.map +0 -1
  204. package/dist/integrations/next/index.js.map +0 -1
  205. package/dist/integrations/next/manifest.d.ts.map +0 -1
  206. package/dist/integrations/next/manifest.js.map +0 -1
  207. package/dist/integrations/next/patch.d.ts.map +0 -1
  208. package/dist/integrations/next/patch.js.map +0 -1
  209. package/dist/integrations/next/uninstall.d.ts.map +0 -1
  210. package/dist/integrations/next/uninstall.js.map +0 -1
  211. package/dist/integrations/otel.d.ts.map +0 -1
  212. package/dist/integrations/otel.js.map +0 -1
  213. package/dist/integrations/php.d.ts.map +0 -1
  214. package/dist/integrations/php.js.map +0 -1
  215. package/dist/integrations/python/index.d.ts.map +0 -1
  216. package/dist/integrations/python/index.js.map +0 -1
  217. package/dist/integrations/python.d.ts.map +0 -1
  218. package/dist/integrations/python.js.map +0 -1
  219. package/dist/integrations/react/detect.d.ts.map +0 -1
  220. package/dist/integrations/react/detect.js.map +0 -1
  221. package/dist/integrations/react/doctor.d.ts.map +0 -1
  222. package/dist/integrations/react/doctor.js.map +0 -1
  223. package/dist/integrations/react/files.d.ts.map +0 -1
  224. package/dist/integrations/react/files.js.map +0 -1
  225. package/dist/integrations/react/index.d.ts.map +0 -1
  226. package/dist/integrations/react/index.js.map +0 -1
  227. package/dist/integrations/react/manifest.d.ts.map +0 -1
  228. package/dist/integrations/react/manifest.js.map +0 -1
  229. package/dist/integrations/react/patch.d.ts.map +0 -1
  230. package/dist/integrations/react/patch.js.map +0 -1
  231. package/dist/integrations/react/uninstall.d.ts.map +0 -1
  232. package/dist/integrations/react/uninstall.js.map +0 -1
  233. package/dist/integrations/react-native.d.ts.map +0 -1
  234. package/dist/integrations/react-native.js.map +0 -1
  235. package/dist/integrations/ruby.d.ts.map +0 -1
  236. package/dist/integrations/ruby.js.map +0 -1
  237. package/dist/lifecycle/hooks.d.ts.map +0 -1
  238. package/dist/lifecycle/hooks.js.map +0 -1
  239. package/dist/migrations/builtin/dsn-to-api-key.d.ts.map +0 -1
  240. package/dist/migrations/builtin/dsn-to-api-key.js.map +0 -1
  241. package/dist/migrations/engine.d.ts.map +0 -1
  242. package/dist/migrations/engine.js.map +0 -1
  243. package/dist/migrations/index.d.ts.map +0 -1
  244. package/dist/migrations/index.js.map +0 -1
  245. package/dist/output/human.d.ts.map +0 -1
  246. package/dist/output/human.js.map +0 -1
  247. package/dist/output/index.d.ts.map +0 -1
  248. package/dist/output/index.js.map +0 -1
  249. package/dist/output/json.d.ts.map +0 -1
  250. package/dist/output/json.js.map +0 -1
  251. package/dist/output/types.d.ts.map +0 -1
  252. package/dist/output/types.js.map +0 -1
  253. package/dist/patchers/env-file.d.ts.map +0 -1
  254. package/dist/patchers/env-file.js.map +0 -1
  255. package/dist/patchers/js-ast.d.ts.map +0 -1
  256. package/dist/patchers/js-ast.js.map +0 -1
  257. package/dist/patchers/json-file.d.ts.map +0 -1
  258. package/dist/patchers/json-file.js.map +0 -1
  259. package/dist/patchers/markers.d.ts.map +0 -1
  260. package/dist/patchers/markers.js.map +0 -1
  261. package/dist/patchers/source-block.d.ts.map +0 -1
  262. package/dist/patchers/source-block.js.map +0 -1
  263. package/dist/registry/index.d.ts.map +0 -1
  264. package/dist/registry/index.js.map +0 -1
  265. package/dist/registry/manifest.d.ts.map +0 -1
  266. package/dist/registry/manifest.js.map +0 -1
  267. package/dist/registry/registry.d.ts.map +0 -1
  268. package/dist/registry/registry.js.map +0 -1
  269. package/dist/registry/types.d.ts.map +0 -1
  270. package/dist/registry/types.js.map +0 -1
  271. package/dist/security-snapshot/builder.d.ts.map +0 -1
  272. package/dist/security-snapshot/builder.js.map +0 -1
  273. package/dist/security-snapshot/client.d.ts.map +0 -1
  274. package/dist/security-snapshot/client.js.map +0 -1
  275. package/dist/security-snapshot/index.d.ts.map +0 -1
  276. package/dist/security-snapshot/index.js.map +0 -1
  277. package/dist/security-snapshot/types.d.ts.map +0 -1
  278. package/dist/security-snapshot/types.js.map +0 -1
  279. package/dist/snapshot/restore.d.ts.map +0 -1
  280. package/dist/snapshot/restore.js.map +0 -1
  281. package/dist/snapshot/store.d.ts.map +0 -1
  282. package/dist/snapshot/store.js.map +0 -1
  283. package/dist/sourcemaps/index.d.ts.map +0 -1
  284. package/dist/sourcemaps/index.js.map +0 -1
  285. package/dist/sourcemaps/metro.d.ts.map +0 -1
  286. package/dist/sourcemaps/metro.js.map +0 -1
  287. package/dist/sourcemaps/next.d.ts.map +0 -1
  288. package/dist/sourcemaps/next.js.map +0 -1
  289. package/dist/sourcemaps/provider.d.ts.map +0 -1
  290. package/dist/sourcemaps/provider.js.map +0 -1
  291. package/dist/sourcemaps/vite.d.ts.map +0 -1
  292. package/dist/sourcemaps/vite.js.map +0 -1
  293. package/dist/sourcemaps/webpack.d.ts.map +0 -1
  294. package/dist/sourcemaps/webpack.js.map +0 -1
  295. package/dist/telemetry/cli-wrap.d.ts.map +0 -1
  296. package/dist/telemetry/cli-wrap.js.map +0 -1
  297. package/dist/telemetry/http-provider.d.ts.map +0 -1
  298. package/dist/telemetry/http-provider.js.map +0 -1
  299. package/dist/telemetry/index.d.ts.map +0 -1
  300. package/dist/telemetry/index.js.map +0 -1
  301. package/dist/telemetry/install-id.d.ts.map +0 -1
  302. package/dist/telemetry/install-id.js.map +0 -1
  303. package/dist/telemetry/payload.d.ts.map +0 -1
  304. package/dist/telemetry/payload.js.map +0 -1
  305. package/dist/telemetry/provider.d.ts.map +0 -1
  306. package/dist/telemetry/provider.js.map +0 -1
  307. package/dist/telemetry/runtime.d.ts.map +0 -1
  308. package/dist/telemetry/runtime.js.map +0 -1
  309. package/dist/transaction/tx.d.ts.map +0 -1
  310. package/dist/transaction/tx.js.map +0 -1
  311. package/dist/util/error-codes.d.ts.map +0 -1
  312. package/dist/util/error-codes.js.map +0 -1
  313. package/dist/util/errors.d.ts.map +0 -1
  314. package/dist/util/errors.js.map +0 -1
  315. package/dist/util/log.d.ts.map +0 -1
  316. package/dist/util/log.js.map +0 -1
  317. package/dist/util/paths.d.ts.map +0 -1
  318. package/dist/util/paths.js.map +0 -1
  319. package/dist/util/version.d.ts.map +0 -1
  320. package/dist/util/version.js.map +0 -1
  321. package/dist/util/wizard-version.d.ts.map +0 -1
  322. package/dist/util/wizard-version.js.map +0 -1
  323. package/docs/architecture/README.md +0 -58
  324. package/docs/architecture/dry-run.md +0 -34
  325. package/docs/architecture/integration-lifecycle.md +0 -77
  326. package/docs/architecture/patch-pipeline.md +0 -58
  327. package/docs/architecture/registry.md +0 -52
  328. package/docs/architecture/rollback.md +0 -47
  329. package/docs/architecture/sourcemaps.md +0 -53
  330. package/docs/architecture/stability-levels.md +0 -35
  331. package/docs/architecture/transaction.md +0 -51
  332. package/docs/architecture/v02-bare-react-native-spec.md +0 -92
  333. package/docs/architecture/v02-java-host-fix-spec.md +0 -121
  334. package/docs/architecture/v02-sourcemaps-e2e-spec.md +0 -157
  335. package/docs/beta/README.md +0 -17
  336. package/docs/beta/ci.md +0 -122
  337. package/docs/beta/config.md +0 -124
  338. package/docs/beta/doctor.md +0 -79
  339. package/docs/beta/expo.md +0 -69
  340. package/docs/beta/fastify.md +0 -62
  341. package/docs/beta/known-limitations.md +0 -93
  342. package/docs/beta/nestjs.md +0 -69
  343. package/docs/beta/next.md +0 -76
  344. package/docs/beta/node.md +0 -60
  345. package/docs/beta/privacy.md +0 -99
  346. package/docs/beta/quickstart.md +0 -89
  347. package/docs/beta/react.md +0 -91
  348. package/docs/beta/reliability.md +0 -33
  349. package/docs/beta/restore.md +0 -84
  350. package/docs/beta/troubleshooting.md +0 -133
@@ -1,84 +0,0 @@
1
- # `allstak restore`
2
-
3
- Every wizard mutation is captured in a persistent snapshot under
4
- `.allstak-wizard/backups/<timestamp>--<integration>--<random>/`. The
5
- `restore` family lets you inspect and roll back those snapshots.
6
-
7
- ## Subcommands
8
-
9
- ```bash
10
- npx @allstak/wizard@beta restore list
11
- npx @allstak/wizard@beta restore show <id|latest>
12
- npx @allstak/wizard@beta restore diff <id|latest>
13
- npx @allstak/wizard@beta restore apply <id|latest> [--files=a,b,c] [--dry-run]
14
- ```
15
-
16
- `<id>` is the trailing slug of a backup directory. `latest` always
17
- resolves to the most recent snapshot.
18
-
19
- ## What's in a snapshot
20
-
21
- ```
22
- .allstak-wizard/backups/2026-05-07T..--react--abc123/
23
- manifest.json schemaVersion, integration, files[], dryRun, label
24
- files/
25
- src/main.tsx pre-image bytes (UTF-8)
26
- .env.local pre-image bytes
27
- .env.local.allstak-deleted marker (file did not exist before)
28
- ```
29
-
30
- Manifests and pre-images are plain text — they're safe to inspect with `cat`.
31
-
32
- ## Common workflows
33
-
34
- ### "I made a mess, give me my files back"
35
-
36
- ```bash
37
- npx @allstak/wizard@beta restore apply latest
38
- ```
39
-
40
- Confirms before writing. Pass `-y` to skip confirmation.
41
-
42
- ### "What did the wizard change vs my current state?"
43
-
44
- ```bash
45
- npx @allstak/wizard@beta restore diff latest
46
- ```
47
-
48
- Each file shows one of: `identical`, `modified`, `created-since`, or
49
- `deleted-since`.
50
-
51
- ### "Restore one file from a specific run"
52
-
53
- ```bash
54
- npx @allstak/wizard@beta restore apply 2026-05-07T..--react--abc123 \
55
- --files=src/main.tsx,.env.local
56
- ```
57
-
58
- ### "What WOULD restore do?"
59
-
60
- ```bash
61
- npx @allstak/wizard@beta restore apply latest --dry-run
62
- ```
63
-
64
- ## Retention
65
-
66
- `init` prunes old snapshots after a successful run. The default keeps the
67
- 10 most recent — override with `--snapshot-keep <n>` (0 disables pruning).
68
- `repair` and `uninstall` also write snapshots but do NOT prune.
69
-
70
- ## Transactional
71
-
72
- Restoring is itself a transaction — partial failure rolls back to the
73
- pre-restore state. If a file in the snapshot is missing on disk, the
74
- restore reports `skipped` for that file and continues.
75
-
76
- ## Limitations
77
-
78
- - Restoring across wizard major versions is supported but a `manifest.json`
79
- with a `schemaVersion` higher than the running wizard's is refused.
80
- - Snapshots live in your repo by default. Add
81
- `.allstak-wizard/` to `.gitignore` to keep them out of git (the wizard
82
- does not auto-edit your `.gitignore`).
83
- - Snapshots are NOT encrypted. Don't store them in a public artifact bucket
84
- — they contain the original contents of files the wizard touched.
@@ -1,133 +0,0 @@
1
- # Troubleshooting
2
-
3
- Common failure modes mapped to canonical error codes (see [errors.md](../errors.md)).
4
-
5
- ## "I just ran `allstak login` and got `E_AUTH_FAILED`"
6
-
7
- - The OTP code expires after ~10 minutes. Run `login` again to request a new one.
8
- - Codes are 4–8 digits. If you typed an extra space, the wizard rejects with
9
- the same code.
10
- - If you see `OTP_RATE_LIMITED` in the subcode, wait a minute and retry.
11
-
12
- ## "`E_AUTH_REQUIRED` from `orgs list` but I am logged in"
13
-
14
- You were logged in to a different host. The wizard scopes credentials by
15
- host. Check `allstak whoami --verify` and rerun with the matching `--host`,
16
- or re-run `login --host <url>`.
17
-
18
- ## "`E_AUTH_EXPIRED` after a long break"
19
-
20
- The refresh token was probably revoked (server-side logout, password reset,
21
- or it just expired). Run `allstak logout && allstak login`.
22
-
23
- ## "`E_NETWORK_FAILED` everywhere"
24
-
25
- - Verify the configured host with `allstak whoami` (it prints the host).
26
- - Pass `--debug` and re-run; the underlying message includes the URL.
27
- - For self-hosted: confirm DNS + TLS are working from the wizard's host.
28
-
29
- ## "`E_UNSUPPORTED_FRAMEWORK` even though I'm using React"
30
-
31
- - `package.json` may not declare `react` directly. The wizard reads
32
- `dependencies` + `devDependencies`.
33
- - For monorepos, run the wizard from the **package directory**, not the
34
- root.
35
- - Pass `-i react` explicitly if detection is ambiguous.
36
-
37
- ## "`E_UNSUPPORTED_VERSION` but my React/Next is current"
38
-
39
- The compat engine reads the version range from `package.json`. If you have
40
- `"react": "*"` it cannot infer a minimum and reports too-old. Pin a real
41
- version range in `package.json`.
42
-
43
- ## "`E_PACKAGE_MANAGER_CONFLICT`"
44
-
45
- Two lockfiles in the project root (e.g. both `pnpm-lock.yaml` and
46
- `package-lock.json`). The wizard refuses to guess. Delete the stale one.
47
-
48
- ## "`E_PATCH_FAILED` mid-run"
49
-
50
- The transaction layer ALREADY rolled back your files. Re-run with
51
- `--debug` to see which patcher threw. Common causes:
52
-
53
- - A pre-existing syntax error in the file we tried to patch — fix the
54
- syntax first, re-run the wizard.
55
- - File permissions denied on the entry file or `.env.local`.
56
-
57
- If rollback itself failed (`E_PATCH_ROLLBACK_FAILED`):
58
-
59
- ```bash
60
- allstak restore list
61
- allstak restore apply <id>
62
- ```
63
-
64
- ## "`E_RESTORE_FAILED: No snapshot matches "<id>""
65
-
66
- `allstak restore list` shows what's available. Use the trailing slug
67
- (e.g. `2026-05-07T..--react--abc123`) or just `latest`.
68
-
69
- ## "`E_INGEST_VERIFY_FAILED` on `--live-probe`"
70
-
71
- - The probe uses `--api-key` (project-scoped). If the key was issued for
72
- a different project than `--project-id`, verification will never see the
73
- event. Check both match.
74
- - The probe waits 60s by default. Increase via
75
- `--live-probe-timeout 120000` if your backend is slow.
76
- - Open the dashboard URL printed in the probe output and look for the
77
- fingerprint manually. The event id is in the JSON output even when
78
- polling times out.
79
-
80
- ## "`E_CONFIG_INVALID` after editing `allstak.config.ts`"
81
-
82
- ```bash
83
- allstak config validate
84
- ```
85
-
86
- prints the exact path-to-blame (e.g. `selfHosted.apiHost — expected
87
- absolute URL, got "api.acme"`). Fix and rerun.
88
-
89
- ## "`E_CONFIG_MIGRATION_FAILED`"
90
-
91
- The migration runner refuses on:
92
-
93
- - A `schemaVersion` higher than the wizard supports (subcode
94
- `E_CONFIG_FUTURE_VERSION`) — upgrade `@allstak/wizard`.
95
- - A migration that didn't bump the version correctly (subcode
96
- `E_MIGRATION_NO_BUMP`) — file an issue, this is a wizard bug.
97
-
98
- ## "`E_USER_CANCELLED` in CI"
99
-
100
- You forgot `-y`. The wizard refuses to apply changes without it in
101
- non-interactive mode.
102
-
103
- ## "Wizard hung at the login OTP prompt in CI"
104
-
105
- CI has no TTY, so `@clack/prompts` rejects. Pass `--email` AND `--code` (or
106
- use a long-lived API key with `--api-key` instead of logging in).
107
-
108
- ## "Telemetry warning showed up in my CI logs"
109
-
110
- Telemetry is on by default. To silence:
111
-
112
- ```bash
113
- ALLSTAK_WIZARD_TELEMETRY=0
114
- # or
115
- allstak --no-telemetry ...
116
- ```
117
-
118
- ## "I see `// >>> allstak-wizard:v1` in my git diff"
119
-
120
- That's the wizard's idempotency marker. It's intentional — re-runs replace
121
- the block in place; `uninstall` removes it. Commit it; do not hand-edit
122
- inside the markers (your edits will be overwritten on the next run).
123
-
124
- ## Last resort: nuke everything
125
-
126
- ```bash
127
- allstak uninstall -i react -y # remove SDK + patches
128
- allstak logout # clear credentials
129
- rm -rf .allstak-wizard/ # drop persistent snapshots
130
- ```
131
-
132
- The local credential store on macOS may keep the keychain entry until you
133
- explicitly clear it: `security delete-generic-password -s allstak-wizard`.