@allstak/wizard 0.1.4 → 0.1.6
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/CHANGELOG.md +42 -3
- package/LICENSE +191 -0
- package/README.md +35 -32
- package/dist/api/http.d.ts +2 -0
- package/dist/api/http.d.ts.map +1 -1
- package/dist/api/http.js +12 -1
- package/dist/api/http.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/certification/fixtures.d.ts +4 -0
- package/dist/certification/fixtures.d.ts.map +1 -0
- package/dist/certification/fixtures.js +109 -0
- package/dist/certification/fixtures.js.map +1 -0
- package/dist/certification/gates.d.ts +10 -0
- package/dist/certification/gates.d.ts.map +1 -0
- package/dist/certification/gates.js +20 -0
- package/dist/certification/gates.js.map +1 -0
- package/dist/certification/index.d.ts +6 -0
- package/dist/certification/index.d.ts.map +1 -0
- package/dist/certification/index.js +5 -0
- package/dist/certification/index.js.map +1 -0
- package/dist/certification/live-backend.d.ts +50 -0
- package/dist/certification/live-backend.d.ts.map +1 -0
- package/dist/certification/live-backend.js +422 -0
- package/dist/certification/live-backend.js.map +1 -0
- package/dist/certification/packages.d.ts +3 -0
- package/dist/certification/packages.d.ts.map +1 -0
- package/dist/certification/packages.js +49 -0
- package/dist/certification/packages.js.map +1 -0
- package/dist/certification/process.d.ts +8 -0
- package/dist/certification/process.d.ts.map +1 -0
- package/dist/certification/process.js +77 -0
- package/dist/certification/process.js.map +1 -0
- package/dist/certification/report.d.ts +3 -0
- package/dist/certification/report.d.ts.map +1 -0
- package/dist/certification/report.js +38 -0
- package/dist/certification/report.js.map +1 -0
- package/dist/certification/runner.d.ts +3 -0
- package/dist/certification/runner.d.ts.map +1 -0
- package/dist/certification/runner.js +299 -0
- package/dist/certification/runner.js.map +1 -0
- package/dist/certification/runtime.d.ts +11 -0
- package/dist/certification/runtime.d.ts.map +1 -0
- package/dist/certification/runtime.js +60 -0
- package/dist/certification/runtime.js.map +1 -0
- package/dist/certification/types.d.ts +73 -0
- package/dist/certification/types.d.ts.map +1 -0
- package/dist/certification/types.js +2 -0
- package/dist/certification/types.js.map +1 -0
- package/dist/cli.js +70 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/certify.d.ts +18 -0
- package/dist/commands/certify.d.ts.map +1 -0
- package/dist/commands/certify.js +27 -0
- package/dist/commands/certify.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +13 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/list.d.ts +5 -1
- package/dist/commands/list.d.ts.map +1 -1
- package/dist/commands/list.js +9 -3
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/security-snapshot.d.ts +24 -0
- package/dist/commands/security-snapshot.d.ts.map +1 -0
- package/dist/commands/security-snapshot.js +113 -0
- package/dist/commands/security-snapshot.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/_scaffold.d.ts +2 -1
- package/dist/integrations/_scaffold.d.ts.map +1 -1
- package/dist/integrations/_scaffold.js +36 -13
- package/dist/integrations/_scaffold.js.map +1 -1
- package/dist/integrations/_simple-scaffold.d.ts +5 -2
- package/dist/integrations/_simple-scaffold.d.ts.map +1 -1
- package/dist/integrations/_simple-scaffold.js +3 -0
- package/dist/integrations/_simple-scaffold.js.map +1 -1
- package/dist/integrations/dotnet.d.ts.map +1 -1
- package/dist/integrations/dotnet.js +3 -0
- package/dist/integrations/dotnet.js.map +1 -1
- package/dist/integrations/expo/detect.d.ts +13 -0
- package/dist/integrations/expo/detect.d.ts.map +1 -0
- package/dist/integrations/expo/detect.js +38 -0
- package/dist/integrations/expo/detect.js.map +1 -0
- package/dist/integrations/expo/doctor.d.ts +6 -0
- package/dist/integrations/expo/doctor.d.ts.map +1 -0
- package/dist/integrations/expo/doctor.js +136 -0
- package/dist/integrations/expo/doctor.js.map +1 -0
- package/dist/integrations/expo/files.d.ts +15 -0
- package/dist/integrations/expo/files.d.ts.map +1 -0
- package/dist/integrations/expo/files.js +62 -0
- package/dist/integrations/expo/files.js.map +1 -0
- package/dist/integrations/expo/index.d.ts +24 -0
- package/dist/integrations/expo/index.d.ts.map +1 -0
- package/dist/integrations/expo/index.js +68 -0
- package/dist/integrations/expo/index.js.map +1 -0
- package/dist/integrations/expo/manifest.d.ts +3 -0
- package/dist/integrations/expo/manifest.d.ts.map +1 -0
- package/dist/integrations/expo/manifest.js +39 -0
- package/dist/integrations/expo/manifest.js.map +1 -0
- package/dist/integrations/expo/patch.d.ts +13 -0
- package/dist/integrations/expo/patch.d.ts.map +1 -0
- package/dist/integrations/expo/patch.js +215 -0
- package/dist/integrations/expo/patch.js.map +1 -0
- package/dist/integrations/expo/uninstall.d.ts +4 -0
- package/dist/integrations/expo/uninstall.d.ts.map +1 -0
- package/dist/integrations/expo/uninstall.js +77 -0
- package/dist/integrations/expo/uninstall.js.map +1 -0
- package/dist/integrations/expo.d.ts +8 -1
- package/dist/integrations/expo.d.ts.map +1 -1
- package/dist/integrations/expo.js +8 -11
- package/dist/integrations/expo.js.map +1 -1
- package/dist/integrations/fastify/detect.d.ts +3 -0
- package/dist/integrations/fastify/detect.d.ts.map +1 -0
- package/dist/integrations/fastify/detect.js +12 -0
- package/dist/integrations/fastify/detect.js.map +1 -0
- package/dist/integrations/fastify/doctor.d.ts +3 -0
- package/dist/integrations/fastify/doctor.d.ts.map +1 -0
- package/dist/integrations/fastify/doctor.js +81 -0
- package/dist/integrations/fastify/doctor.js.map +1 -0
- package/dist/integrations/fastify/files.d.ts +17 -0
- package/dist/integrations/fastify/files.d.ts.map +1 -0
- package/dist/integrations/fastify/files.js +51 -0
- package/dist/integrations/fastify/files.js.map +1 -0
- package/dist/integrations/fastify/index.d.ts +3 -0
- package/dist/integrations/fastify/index.d.ts.map +1 -0
- package/dist/integrations/fastify/index.js +47 -0
- package/dist/integrations/fastify/index.js.map +1 -0
- package/dist/integrations/fastify/manifest.d.ts +3 -0
- package/dist/integrations/fastify/manifest.d.ts.map +1 -0
- package/dist/integrations/fastify/manifest.js +34 -0
- package/dist/integrations/fastify/manifest.js.map +1 -0
- package/dist/integrations/fastify/patch.d.ts +27 -0
- package/dist/integrations/fastify/patch.d.ts.map +1 -0
- package/dist/integrations/fastify/patch.js +91 -0
- package/dist/integrations/fastify/patch.js.map +1 -0
- package/dist/integrations/fastify/uninstall.d.ts +4 -0
- package/dist/integrations/fastify/uninstall.d.ts.map +1 -0
- package/dist/integrations/fastify/uninstall.js +18 -0
- package/dist/integrations/fastify/uninstall.js.map +1 -0
- package/dist/integrations/fastify.d.ts +5 -1
- package/dist/integrations/fastify.d.ts.map +1 -1
- package/dist/integrations/fastify.js +5 -9
- package/dist/integrations/fastify.js.map +1 -1
- package/dist/integrations/flutter.d.ts.map +1 -1
- package/dist/integrations/flutter.js +3 -0
- package/dist/integrations/flutter.js.map +1 -1
- package/dist/integrations/go/index.d.ts +3 -0
- package/dist/integrations/go/index.d.ts.map +1 -0
- package/dist/integrations/go/index.js +199 -0
- package/dist/integrations/go/index.js.map +1 -0
- package/dist/integrations/go.d.ts.map +1 -1
- package/dist/integrations/go.js +5 -2
- package/dist/integrations/go.js.map +1 -1
- package/dist/integrations/java/index.d.ts +3 -0
- package/dist/integrations/java/index.d.ts.map +1 -0
- package/dist/integrations/java/index.js +472 -0
- package/dist/integrations/java/index.js.map +1 -0
- package/dist/integrations/java.d.ts.map +1 -1
- package/dist/integrations/java.js +5 -2
- package/dist/integrations/java.js.map +1 -1
- package/dist/integrations/js/manifest.d.ts.map +1 -1
- package/dist/integrations/js/manifest.js +3 -0
- package/dist/integrations/js/manifest.js.map +1 -1
- package/dist/integrations/nestjs/detect.d.ts +3 -0
- package/dist/integrations/nestjs/detect.d.ts.map +1 -0
- package/dist/integrations/nestjs/detect.js +12 -0
- package/dist/integrations/nestjs/detect.js.map +1 -0
- package/dist/integrations/nestjs/doctor.d.ts +3 -0
- package/dist/integrations/nestjs/doctor.d.ts.map +1 -0
- package/dist/integrations/nestjs/doctor.js +76 -0
- package/dist/integrations/nestjs/doctor.js.map +1 -0
- package/dist/integrations/nestjs/files.d.ts +18 -0
- package/dist/integrations/nestjs/files.d.ts.map +1 -0
- package/dist/integrations/nestjs/files.js +39 -0
- package/dist/integrations/nestjs/files.js.map +1 -0
- package/dist/integrations/nestjs/index.d.ts +3 -0
- package/dist/integrations/nestjs/index.d.ts.map +1 -0
- package/dist/integrations/nestjs/index.js +43 -0
- package/dist/integrations/nestjs/index.js.map +1 -0
- package/dist/integrations/nestjs/manifest.d.ts +3 -0
- package/dist/integrations/nestjs/manifest.d.ts.map +1 -0
- package/dist/integrations/nestjs/manifest.js +32 -0
- package/dist/integrations/nestjs/manifest.js.map +1 -0
- package/dist/integrations/nestjs/patch.d.ts +25 -0
- package/dist/integrations/nestjs/patch.d.ts.map +1 -0
- package/dist/integrations/nestjs/patch.js +66 -0
- package/dist/integrations/nestjs/patch.js.map +1 -0
- package/dist/integrations/nestjs/uninstall.d.ts +4 -0
- package/dist/integrations/nestjs/uninstall.d.ts.map +1 -0
- package/dist/integrations/nestjs/uninstall.js +18 -0
- package/dist/integrations/nestjs/uninstall.js.map +1 -0
- package/dist/integrations/nestjs.d.ts +5 -1
- package/dist/integrations/nestjs.d.ts.map +1 -1
- package/dist/integrations/nestjs.js +5 -9
- package/dist/integrations/nestjs.js.map +1 -1
- package/dist/integrations/next/index.js +2 -2
- package/dist/integrations/next/index.js.map +1 -1
- package/dist/integrations/next/manifest.d.ts.map +1 -1
- package/dist/integrations/next/manifest.js +4 -1
- package/dist/integrations/next/manifest.js.map +1 -1
- package/dist/integrations/next/patch.js +8 -3
- package/dist/integrations/next/patch.js.map +1 -1
- package/dist/integrations/next/uninstall.d.ts.map +1 -1
- package/dist/integrations/next/uninstall.js +10 -1
- package/dist/integrations/next/uninstall.js.map +1 -1
- package/dist/integrations/otel.d.ts.map +1 -1
- package/dist/integrations/otel.js +4 -1
- package/dist/integrations/otel.js.map +1 -1
- package/dist/integrations/php.d.ts.map +1 -1
- package/dist/integrations/php.js +16 -3
- package/dist/integrations/php.js.map +1 -1
- package/dist/integrations/python/index.d.ts +3 -0
- package/dist/integrations/python/index.d.ts.map +1 -0
- package/dist/integrations/python/index.js +222 -0
- package/dist/integrations/python/index.js.map +1 -0
- package/dist/integrations/python.d.ts.map +1 -1
- package/dist/integrations/python.js +5 -2
- package/dist/integrations/python.js.map +1 -1
- package/dist/integrations/react/doctor.d.ts.map +1 -1
- package/dist/integrations/react/doctor.js +41 -8
- package/dist/integrations/react/doctor.js.map +1 -1
- package/dist/integrations/react/index.d.ts.map +1 -1
- package/dist/integrations/react/index.js +1 -4
- package/dist/integrations/react/index.js.map +1 -1
- package/dist/integrations/react/manifest.d.ts.map +1 -1
- package/dist/integrations/react/manifest.js +4 -1
- package/dist/integrations/react/manifest.js.map +1 -1
- package/dist/integrations/react/patch.d.ts.map +1 -1
- package/dist/integrations/react/patch.js +120 -8
- package/dist/integrations/react/patch.js.map +1 -1
- package/dist/integrations/react/uninstall.d.ts.map +1 -1
- package/dist/integrations/react/uninstall.js +20 -1
- package/dist/integrations/react/uninstall.js.map +1 -1
- package/dist/integrations/react-native.d.ts.map +1 -1
- package/dist/integrations/react-native.js +3 -0
- package/dist/integrations/react-native.js.map +1 -1
- package/dist/integrations/ruby.d.ts.map +1 -1
- package/dist/integrations/ruby.js +3 -0
- package/dist/integrations/ruby.js.map +1 -1
- package/dist/output/human.d.ts.map +1 -1
- package/dist/output/human.js +38 -7
- package/dist/output/human.js.map +1 -1
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +9 -23
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/manifest.d.ts +8 -0
- package/dist/registry/manifest.d.ts.map +1 -1
- package/dist/security-snapshot/builder.d.ts +3 -0
- package/dist/security-snapshot/builder.d.ts.map +1 -0
- package/dist/security-snapshot/builder.js +343 -0
- package/dist/security-snapshot/builder.js.map +1 -0
- package/dist/security-snapshot/client.d.ts +3 -0
- package/dist/security-snapshot/client.d.ts.map +1 -0
- package/dist/security-snapshot/client.js +38 -0
- package/dist/security-snapshot/client.js.map +1 -0
- package/dist/security-snapshot/index.d.ts +4 -0
- package/dist/security-snapshot/index.d.ts.map +1 -0
- package/dist/security-snapshot/index.js +3 -0
- package/dist/security-snapshot/index.js.map +1 -0
- package/dist/security-snapshot/types.d.ts +57 -0
- package/dist/security-snapshot/types.d.ts.map +1 -0
- package/dist/security-snapshot/types.js +2 -0
- package/dist/security-snapshot/types.js.map +1 -0
- package/dist/sourcemaps/next.js +3 -3
- package/dist/sourcemaps/next.js.map +1 -1
- package/dist/sourcemaps/vite.d.ts.map +1 -1
- package/dist/sourcemaps/vite.js +92 -9
- package/dist/sourcemaps/vite.js.map +1 -1
- package/docs/architecture/v02-sourcemaps-e2e-spec.md +1 -1
- package/docs/beta/expo.md +69 -0
- package/docs/beta/fastify.md +62 -0
- package/docs/beta/known-limitations.md +14 -14
- package/docs/beta/nestjs.md +69 -0
- package/docs/beta/next.md +7 -8
- package/docs/beta/react.md +23 -15
- package/docs/beta/reliability.md +33 -0
- 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,
|
|
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
|
+
> **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
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
|
17
|
-
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
21
|
-
| `
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
30
|
+
npx @allstak/wizard --help
|
|
33
31
|
|
|
34
32
|
# Authenticate against AllStak (email OTP, optional 2FA).
|
|
35
|
-
npx @allstak/wizard
|
|
33
|
+
npx @allstak/wizard login
|
|
36
34
|
|
|
37
35
|
# Configure your project (auto-detects React / Next / Node).
|
|
38
|
-
npx @allstak/wizard
|
|
36
|
+
npx @allstak/wizard -i react
|
|
39
37
|
|
|
40
38
|
# Verify with a real test event roundtrip.
|
|
41
|
-
npx @allstak/wizard
|
|
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
|
|
117
|
-
ALLSTAK_WIZARD_TELEMETRY=0 npx @allstak/wizard
|
|
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
|
|
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 #
|
|
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 | **
|
|
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
|
|
307
|
+
## Roadmap
|
|
305
308
|
|
|
306
309
|
Beta is shipping intentionally narrow. v0.2 priorities:
|
|
307
310
|
|
package/dist/api/http.d.ts
CHANGED
|
@@ -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;
|
package/dist/api/http.d.ts.map
CHANGED
|
@@ -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,uBAAu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C,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,CA6E5F"}
|
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);
|
|
@@ -54,7 +60,9 @@ export async function apiRequest(host, init) {
|
|
|
54
60
|
}
|
|
55
61
|
}
|
|
56
62
|
if (res.ok) {
|
|
57
|
-
|
|
63
|
+
// Backend wraps all responses in { success, data, meta }. Unwrap if present.
|
|
64
|
+
const payload = isEnvelope(parsed) ? parsed.data : parsed;
|
|
65
|
+
return { status: res.status, data: payload, ok: true };
|
|
58
66
|
}
|
|
59
67
|
// Normalise backend error envelope.
|
|
60
68
|
const body = parsed;
|
|
@@ -105,6 +113,9 @@ function redactUrl(url) {
|
|
|
105
113
|
// Strip any token/api_key query — defensive even though we don't put secrets there.
|
|
106
114
|
return url.replace(/(token|key|api_key)=[^&]+/gi, '$1=***');
|
|
107
115
|
}
|
|
116
|
+
function isEnvelope(v) {
|
|
117
|
+
return v != null && typeof v === 'object' && 'success' in v && 'data' in v;
|
|
118
|
+
}
|
|
108
119
|
function hintFor(code, status) {
|
|
109
120
|
switch (code) {
|
|
110
121
|
case 'INVALID_API_KEY':
|
package/dist/api/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/api/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/api/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA8ChD,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,gBAAgB;KAC/B,CAAC;IACF,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,CAAC,aAAa,GAAG,UAAU,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACtD,CAAC;SAAM,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QACvC,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IAC3C,CAAC;IACD,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;QACjB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YACxD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE;gBAA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AO,CAAC,KAAK,QAAQ,IAAI,SAAS,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC;AAC7E,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"}
|
package/dist/api/index.d.ts
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.d.ts.map
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -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
|
package/dist/api/index.js.map
CHANGED
|
@@ -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;IACnB,0BAA0B;IAC1B,8BAA8B;IAC9B,0BAA0B;IAC1B,kBAAkB;IAClB,uBAAuB;IACvB,oBAAoB;IACpB,sBAAsB;CACd,CAAC;AAEX,MAAM,CAAC,MAAM,qBAAqB,GAAoC;IACpE;QACE,EAAE,EAAE,YAAY;QAChB,SAAS,EAAE,OAAO;QAClB,KAAK,EAAE,YAAY;QACnB,UAAU,EAAE,OAAO,CAAC,aA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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"}
|