@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.
- package/dist/cli.js +8 -0
- package/dist/commands/_context.js +4 -2
- package/dist/registry/index.js +4 -0
- package/dist/util/wizard-version.d.ts +1 -1
- package/dist/util/wizard-version.js +1 -1
- package/package.json +3 -4
- package/dist/api/auth-client.d.ts.map +0 -1
- package/dist/api/auth-client.js.map +0 -1
- package/dist/api/auth.d.ts.map +0 -1
- package/dist/api/auth.js.map +0 -1
- package/dist/api/client.d.ts.map +0 -1
- package/dist/api/client.js.map +0 -1
- package/dist/api/http.d.ts.map +0 -1
- package/dist/api/http.js.map +0 -1
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js.map +0 -1
- package/dist/api/orgs-client.d.ts.map +0 -1
- package/dist/api/orgs-client.js.map +0 -1
- package/dist/api/projects-client.d.ts.map +0 -1
- package/dist/api/projects-client.js.map +0 -1
- package/dist/api/setup-doctor-client.d.ts.map +0 -1
- package/dist/api/setup-doctor-client.js.map +0 -1
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js.map +0 -1
- package/dist/certification/fixtures.d.ts.map +0 -1
- package/dist/certification/fixtures.js.map +0 -1
- package/dist/certification/gates.d.ts.map +0 -1
- package/dist/certification/gates.js.map +0 -1
- package/dist/certification/index.d.ts.map +0 -1
- package/dist/certification/index.js.map +0 -1
- package/dist/certification/live-backend.d.ts.map +0 -1
- package/dist/certification/live-backend.js.map +0 -1
- package/dist/certification/packages.d.ts.map +0 -1
- package/dist/certification/packages.js.map +0 -1
- package/dist/certification/process.d.ts.map +0 -1
- package/dist/certification/process.js.map +0 -1
- package/dist/certification/report.d.ts.map +0 -1
- package/dist/certification/report.js.map +0 -1
- package/dist/certification/runner.d.ts.map +0 -1
- package/dist/certification/runner.js.map +0 -1
- package/dist/certification/runtime.d.ts.map +0 -1
- package/dist/certification/runtime.js.map +0 -1
- package/dist/certification/types.d.ts.map +0 -1
- package/dist/certification/types.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/_context.d.ts.map +0 -1
- package/dist/commands/_context.js.map +0 -1
- package/dist/commands/certify.d.ts.map +0 -1
- package/dist/commands/certify.js.map +0 -1
- package/dist/commands/config-cmd.d.ts.map +0 -1
- package/dist/commands/config-cmd.js.map +0 -1
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/list.d.ts.map +0 -1
- package/dist/commands/list.js.map +0 -1
- package/dist/commands/login.d.ts.map +0 -1
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/logout.d.ts.map +0 -1
- package/dist/commands/logout.js.map +0 -1
- package/dist/commands/orgs.d.ts.map +0 -1
- package/dist/commands/orgs.js.map +0 -1
- package/dist/commands/projects.d.ts.map +0 -1
- package/dist/commands/projects.js.map +0 -1
- package/dist/commands/repair.d.ts.map +0 -1
- package/dist/commands/repair.js.map +0 -1
- package/dist/commands/restore.d.ts.map +0 -1
- package/dist/commands/restore.js.map +0 -1
- package/dist/commands/security-snapshot.d.ts.map +0 -1
- package/dist/commands/security-snapshot.js.map +0 -1
- package/dist/commands/uninstall.d.ts.map +0 -1
- package/dist/commands/uninstall.js.map +0 -1
- package/dist/commands/whoami.d.ts.map +0 -1
- package/dist/commands/whoami.js.map +0 -1
- package/dist/compat/engine.d.ts.map +0 -1
- package/dist/compat/engine.js.map +0 -1
- package/dist/config/define.d.ts.map +0 -1
- package/dist/config/define.js.map +0 -1
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js.map +0 -1
- package/dist/config/loader.d.ts.map +0 -1
- package/dist/config/loader.js.map +0 -1
- package/dist/config/migrations.d.ts.map +0 -1
- package/dist/config/migrations.js.map +0 -1
- package/dist/config/precedence.d.ts.map +0 -1
- package/dist/config/precedence.js.map +0 -1
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/config/schema.js.map +0 -1
- package/dist/config/types.d.ts.map +0 -1
- package/dist/config/types.js.map +0 -1
- package/dist/credentials/encrypted-file.d.ts.map +0 -1
- package/dist/credentials/encrypted-file.js.map +0 -1
- package/dist/credentials/error.d.ts.map +0 -1
- package/dist/credentials/error.js.map +0 -1
- package/dist/credentials/index.d.ts.map +0 -1
- package/dist/credentials/index.js.map +0 -1
- package/dist/credentials/keychain-darwin.d.ts.map +0 -1
- package/dist/credentials/keychain-darwin.js.map +0 -1
- package/dist/credentials/keychain-linux.d.ts.map +0 -1
- package/dist/credentials/keychain-linux.js.map +0 -1
- package/dist/credentials/keychain-win.d.ts.map +0 -1
- package/dist/credentials/keychain-win.js.map +0 -1
- package/dist/credentials/types.d.ts.map +0 -1
- package/dist/credentials/types.js.map +0 -1
- package/dist/detect/framework.d.ts.map +0 -1
- package/dist/detect/framework.js.map +0 -1
- package/dist/detect/index.d.ts.map +0 -1
- package/dist/detect/index.js.map +0 -1
- package/dist/detect/monorepo.d.ts.map +0 -1
- package/dist/detect/monorepo.js.map +0 -1
- package/dist/detect/package-manager.d.ts.map +0 -1
- package/dist/detect/package-manager.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/integrations/_scaffold.d.ts.map +0 -1
- package/dist/integrations/_scaffold.js.map +0 -1
- package/dist/integrations/_shared.d.ts.map +0 -1
- package/dist/integrations/_shared.js.map +0 -1
- package/dist/integrations/_simple-scaffold.d.ts.map +0 -1
- package/dist/integrations/_simple-scaffold.js.map +0 -1
- package/dist/integrations/dotnet.d.ts.map +0 -1
- package/dist/integrations/dotnet.js.map +0 -1
- package/dist/integrations/expo/detect.d.ts.map +0 -1
- package/dist/integrations/expo/detect.js.map +0 -1
- package/dist/integrations/expo/doctor.d.ts.map +0 -1
- package/dist/integrations/expo/doctor.js.map +0 -1
- package/dist/integrations/expo/files.d.ts.map +0 -1
- package/dist/integrations/expo/files.js.map +0 -1
- package/dist/integrations/expo/index.d.ts.map +0 -1
- package/dist/integrations/expo/index.js.map +0 -1
- package/dist/integrations/expo/manifest.d.ts.map +0 -1
- package/dist/integrations/expo/manifest.js.map +0 -1
- package/dist/integrations/expo/patch.d.ts.map +0 -1
- package/dist/integrations/expo/patch.js.map +0 -1
- package/dist/integrations/expo/uninstall.d.ts.map +0 -1
- package/dist/integrations/expo/uninstall.js.map +0 -1
- package/dist/integrations/expo.d.ts.map +0 -1
- package/dist/integrations/expo.js.map +0 -1
- package/dist/integrations/fastify/detect.d.ts.map +0 -1
- package/dist/integrations/fastify/detect.js.map +0 -1
- package/dist/integrations/fastify/doctor.d.ts.map +0 -1
- package/dist/integrations/fastify/doctor.js.map +0 -1
- package/dist/integrations/fastify/files.d.ts.map +0 -1
- package/dist/integrations/fastify/files.js.map +0 -1
- package/dist/integrations/fastify/index.d.ts.map +0 -1
- package/dist/integrations/fastify/index.js.map +0 -1
- package/dist/integrations/fastify/manifest.d.ts.map +0 -1
- package/dist/integrations/fastify/manifest.js.map +0 -1
- package/dist/integrations/fastify/patch.d.ts.map +0 -1
- package/dist/integrations/fastify/patch.js.map +0 -1
- package/dist/integrations/fastify/uninstall.d.ts.map +0 -1
- package/dist/integrations/fastify/uninstall.js.map +0 -1
- package/dist/integrations/fastify.d.ts.map +0 -1
- package/dist/integrations/fastify.js.map +0 -1
- package/dist/integrations/flutter.d.ts.map +0 -1
- package/dist/integrations/flutter.js.map +0 -1
- package/dist/integrations/go/index.d.ts.map +0 -1
- package/dist/integrations/go/index.js.map +0 -1
- package/dist/integrations/go.d.ts.map +0 -1
- package/dist/integrations/go.js.map +0 -1
- package/dist/integrations/java/index.d.ts.map +0 -1
- package/dist/integrations/java/index.js.map +0 -1
- package/dist/integrations/java.d.ts.map +0 -1
- package/dist/integrations/java.js.map +0 -1
- package/dist/integrations/js/detect.d.ts.map +0 -1
- package/dist/integrations/js/detect.js.map +0 -1
- package/dist/integrations/js/doctor.d.ts.map +0 -1
- package/dist/integrations/js/doctor.js.map +0 -1
- package/dist/integrations/js/files.d.ts.map +0 -1
- package/dist/integrations/js/files.js.map +0 -1
- package/dist/integrations/js/index.d.ts.map +0 -1
- package/dist/integrations/js/index.js.map +0 -1
- package/dist/integrations/js/manifest.d.ts.map +0 -1
- package/dist/integrations/js/manifest.js.map +0 -1
- package/dist/integrations/js/patch.d.ts.map +0 -1
- package/dist/integrations/js/patch.js.map +0 -1
- package/dist/integrations/js/uninstall.d.ts.map +0 -1
- package/dist/integrations/js/uninstall.js.map +0 -1
- package/dist/integrations/nestjs/detect.d.ts.map +0 -1
- package/dist/integrations/nestjs/detect.js.map +0 -1
- package/dist/integrations/nestjs/doctor.d.ts.map +0 -1
- package/dist/integrations/nestjs/doctor.js.map +0 -1
- package/dist/integrations/nestjs/files.d.ts.map +0 -1
- package/dist/integrations/nestjs/files.js.map +0 -1
- package/dist/integrations/nestjs/index.d.ts.map +0 -1
- package/dist/integrations/nestjs/index.js.map +0 -1
- package/dist/integrations/nestjs/manifest.d.ts.map +0 -1
- package/dist/integrations/nestjs/manifest.js.map +0 -1
- package/dist/integrations/nestjs/patch.d.ts.map +0 -1
- package/dist/integrations/nestjs/patch.js.map +0 -1
- package/dist/integrations/nestjs/uninstall.d.ts.map +0 -1
- package/dist/integrations/nestjs/uninstall.js.map +0 -1
- package/dist/integrations/nestjs.d.ts.map +0 -1
- package/dist/integrations/nestjs.js.map +0 -1
- package/dist/integrations/next/detect.d.ts.map +0 -1
- package/dist/integrations/next/detect.js.map +0 -1
- package/dist/integrations/next/doctor.d.ts.map +0 -1
- package/dist/integrations/next/doctor.js.map +0 -1
- package/dist/integrations/next/files.d.ts.map +0 -1
- package/dist/integrations/next/files.js.map +0 -1
- package/dist/integrations/next/index.d.ts.map +0 -1
- package/dist/integrations/next/index.js.map +0 -1
- package/dist/integrations/next/manifest.d.ts.map +0 -1
- package/dist/integrations/next/manifest.js.map +0 -1
- package/dist/integrations/next/patch.d.ts.map +0 -1
- package/dist/integrations/next/patch.js.map +0 -1
- package/dist/integrations/next/uninstall.d.ts.map +0 -1
- package/dist/integrations/next/uninstall.js.map +0 -1
- package/dist/integrations/otel.d.ts.map +0 -1
- package/dist/integrations/otel.js.map +0 -1
- package/dist/integrations/php.d.ts.map +0 -1
- package/dist/integrations/php.js.map +0 -1
- package/dist/integrations/python/index.d.ts.map +0 -1
- package/dist/integrations/python/index.js.map +0 -1
- package/dist/integrations/python.d.ts.map +0 -1
- package/dist/integrations/python.js.map +0 -1
- package/dist/integrations/react/detect.d.ts.map +0 -1
- package/dist/integrations/react/detect.js.map +0 -1
- package/dist/integrations/react/doctor.d.ts.map +0 -1
- package/dist/integrations/react/doctor.js.map +0 -1
- package/dist/integrations/react/files.d.ts.map +0 -1
- package/dist/integrations/react/files.js.map +0 -1
- package/dist/integrations/react/index.d.ts.map +0 -1
- package/dist/integrations/react/index.js.map +0 -1
- package/dist/integrations/react/manifest.d.ts.map +0 -1
- package/dist/integrations/react/manifest.js.map +0 -1
- package/dist/integrations/react/patch.d.ts.map +0 -1
- package/dist/integrations/react/patch.js.map +0 -1
- package/dist/integrations/react/uninstall.d.ts.map +0 -1
- package/dist/integrations/react/uninstall.js.map +0 -1
- package/dist/integrations/react-native.d.ts.map +0 -1
- package/dist/integrations/react-native.js.map +0 -1
- package/dist/integrations/ruby.d.ts.map +0 -1
- package/dist/integrations/ruby.js.map +0 -1
- package/dist/lifecycle/hooks.d.ts.map +0 -1
- package/dist/lifecycle/hooks.js.map +0 -1
- package/dist/migrations/builtin/dsn-to-api-key.d.ts.map +0 -1
- package/dist/migrations/builtin/dsn-to-api-key.js.map +0 -1
- package/dist/migrations/engine.d.ts.map +0 -1
- package/dist/migrations/engine.js.map +0 -1
- package/dist/migrations/index.d.ts.map +0 -1
- package/dist/migrations/index.js.map +0 -1
- package/dist/output/human.d.ts.map +0 -1
- package/dist/output/human.js.map +0 -1
- package/dist/output/index.d.ts.map +0 -1
- package/dist/output/index.js.map +0 -1
- package/dist/output/json.d.ts.map +0 -1
- package/dist/output/json.js.map +0 -1
- package/dist/output/types.d.ts.map +0 -1
- package/dist/output/types.js.map +0 -1
- package/dist/patchers/env-file.d.ts.map +0 -1
- package/dist/patchers/env-file.js.map +0 -1
- package/dist/patchers/js-ast.d.ts.map +0 -1
- package/dist/patchers/js-ast.js.map +0 -1
- package/dist/patchers/json-file.d.ts.map +0 -1
- package/dist/patchers/json-file.js.map +0 -1
- package/dist/patchers/markers.d.ts.map +0 -1
- package/dist/patchers/markers.js.map +0 -1
- package/dist/patchers/source-block.d.ts.map +0 -1
- package/dist/patchers/source-block.js.map +0 -1
- package/dist/registry/index.d.ts.map +0 -1
- package/dist/registry/index.js.map +0 -1
- package/dist/registry/manifest.d.ts.map +0 -1
- package/dist/registry/manifest.js.map +0 -1
- package/dist/registry/registry.d.ts.map +0 -1
- package/dist/registry/registry.js.map +0 -1
- package/dist/registry/types.d.ts.map +0 -1
- package/dist/registry/types.js.map +0 -1
- package/dist/security-snapshot/builder.d.ts.map +0 -1
- package/dist/security-snapshot/builder.js.map +0 -1
- package/dist/security-snapshot/client.d.ts.map +0 -1
- package/dist/security-snapshot/client.js.map +0 -1
- package/dist/security-snapshot/index.d.ts.map +0 -1
- package/dist/security-snapshot/index.js.map +0 -1
- package/dist/security-snapshot/types.d.ts.map +0 -1
- package/dist/security-snapshot/types.js.map +0 -1
- package/dist/snapshot/restore.d.ts.map +0 -1
- package/dist/snapshot/restore.js.map +0 -1
- package/dist/snapshot/store.d.ts.map +0 -1
- package/dist/snapshot/store.js.map +0 -1
- package/dist/sourcemaps/index.d.ts.map +0 -1
- package/dist/sourcemaps/index.js.map +0 -1
- package/dist/sourcemaps/metro.d.ts.map +0 -1
- package/dist/sourcemaps/metro.js.map +0 -1
- package/dist/sourcemaps/next.d.ts.map +0 -1
- package/dist/sourcemaps/next.js.map +0 -1
- package/dist/sourcemaps/provider.d.ts.map +0 -1
- package/dist/sourcemaps/provider.js.map +0 -1
- package/dist/sourcemaps/vite.d.ts.map +0 -1
- package/dist/sourcemaps/vite.js.map +0 -1
- package/dist/sourcemaps/webpack.d.ts.map +0 -1
- package/dist/sourcemaps/webpack.js.map +0 -1
- package/dist/telemetry/cli-wrap.d.ts.map +0 -1
- package/dist/telemetry/cli-wrap.js.map +0 -1
- package/dist/telemetry/http-provider.d.ts.map +0 -1
- package/dist/telemetry/http-provider.js.map +0 -1
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/index.js.map +0 -1
- package/dist/telemetry/install-id.d.ts.map +0 -1
- package/dist/telemetry/install-id.js.map +0 -1
- package/dist/telemetry/payload.d.ts.map +0 -1
- package/dist/telemetry/payload.js.map +0 -1
- package/dist/telemetry/provider.d.ts.map +0 -1
- package/dist/telemetry/provider.js.map +0 -1
- package/dist/telemetry/runtime.d.ts.map +0 -1
- package/dist/telemetry/runtime.js.map +0 -1
- package/dist/transaction/tx.d.ts.map +0 -1
- package/dist/transaction/tx.js.map +0 -1
- package/dist/util/error-codes.d.ts.map +0 -1
- package/dist/util/error-codes.js.map +0 -1
- package/dist/util/errors.d.ts.map +0 -1
- package/dist/util/errors.js.map +0 -1
- package/dist/util/log.d.ts.map +0 -1
- package/dist/util/log.js.map +0 -1
- package/dist/util/paths.d.ts.map +0 -1
- package/dist/util/paths.js.map +0 -1
- package/dist/util/version.d.ts.map +0 -1
- package/dist/util/version.js.map +0 -1
- package/dist/util/wizard-version.d.ts.map +0 -1
- package/dist/util/wizard-version.js.map +0 -1
- package/docs/architecture/README.md +0 -58
- package/docs/architecture/dry-run.md +0 -34
- package/docs/architecture/integration-lifecycle.md +0 -77
- package/docs/architecture/patch-pipeline.md +0 -58
- package/docs/architecture/registry.md +0 -52
- package/docs/architecture/rollback.md +0 -47
- package/docs/architecture/sourcemaps.md +0 -53
- package/docs/architecture/stability-levels.md +0 -35
- package/docs/architecture/transaction.md +0 -51
- package/docs/architecture/v02-bare-react-native-spec.md +0 -92
- package/docs/architecture/v02-java-host-fix-spec.md +0 -121
- package/docs/architecture/v02-sourcemaps-e2e-spec.md +0 -157
- package/docs/beta/README.md +0 -17
- package/docs/beta/ci.md +0 -122
- package/docs/beta/config.md +0 -124
- package/docs/beta/doctor.md +0 -79
- package/docs/beta/expo.md +0 -69
- package/docs/beta/fastify.md +0 -62
- package/docs/beta/known-limitations.md +0 -93
- package/docs/beta/nestjs.md +0 -69
- package/docs/beta/next.md +0 -76
- package/docs/beta/node.md +0 -60
- package/docs/beta/privacy.md +0 -99
- package/docs/beta/quickstart.md +0 -89
- package/docs/beta/react.md +0 -91
- package/docs/beta/reliability.md +0 -33
- package/docs/beta/restore.md +0 -84
- package/docs/beta/troubleshooting.md +0 -133
package/docs/beta/restore.md
DELETED
|
@@ -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`.
|