@allstak/wizard 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +6 -0
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/fastify/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,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,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE;QAClB,MAAM,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,GAAG;QACd,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../src/integrations/fastify/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,eAAO,MAAM,eAAe,EAAE,mBAiC7B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const fastifyManifest = {
|
|
2
|
+
id: 'fastify',
|
|
3
|
+
title: 'Fastify (managed register hint)',
|
|
4
|
+
sdkPackage: '@allstak/fastify',
|
|
5
|
+
additionalPackages: [],
|
|
6
|
+
stability: 'experimental',
|
|
7
|
+
runtimeStatus: 'experimental',
|
|
8
|
+
wizardAutomation: 'experimental',
|
|
9
|
+
public: false,
|
|
10
|
+
stabilityNote: 'Internal experimental only. AST-injects the import and appends a managed-block hint, but does not auto-register the plugin. Runtime SDK fail-open is verified; wizard auto-wiring is not Stable.',
|
|
11
|
+
capabilities: [
|
|
12
|
+
'install-package',
|
|
13
|
+
'write-env',
|
|
14
|
+
'patch-entry',
|
|
15
|
+
],
|
|
16
|
+
unsupportedCapabilities: [
|
|
17
|
+
'wire-source-maps',
|
|
18
|
+
'live-validate-event',
|
|
19
|
+
],
|
|
20
|
+
compatibility: [
|
|
21
|
+
{ name: 'fastify', minVersion: '4', maxMajorExclusive: null, required: true },
|
|
22
|
+
],
|
|
23
|
+
files: [
|
|
24
|
+
{ path: 'src/server.ts', kind: 'optional', description: 'Conventional Fastify entry (managed-block hint appended)' },
|
|
25
|
+
{ path: 'src/server.js', kind: 'optional' },
|
|
26
|
+
{ path: 'src/index.ts', kind: 'optional' },
|
|
27
|
+
{ path: 'server.ts', kind: 'optional' },
|
|
28
|
+
{ path: 'server.js', kind: 'optional' },
|
|
29
|
+
{ path: '.env', kind: 'created' },
|
|
30
|
+
],
|
|
31
|
+
supportedPackageManagers: ['npm', 'pnpm', 'yarn', 'yarn-berry', 'bun'],
|
|
32
|
+
docsUrl: 'https://github.com/allstak-io/sdks/tree/main/allstak-wizard/docs/beta/fastify.md',
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../src/integrations/fastify/manifest.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAwB;IAClD,EAAE,EAAE,SAAS;IACb,KAAK,EAAE,iCAAiC;IACxC,UAAU,EAAE,kBAAkB;IAC9B,kBAAkB,EAAE,EAAE;IACtB,SAAS,EAAE,cAAc;IACzB,aAAa,EAAE,cAAc;IAC7B,gBAAgB,EAAE,cAAc;IAChC,MAAM,EAAE,KAAK;IACb,aAAa,EACX,kMAAkM;IACpM,YAAY,EAAE;QACZ,iBAAiB;QACjB,WAAW;QACX,aAAa;KACd;IACD,uBAAuB,EAAE;QACvB,kBAAkB;QAClB,qBAAqB;KACtB;IACD,aAAa,EAAE;QACb,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC9E;IACD,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,0DAA0D,EAAE;QACpH,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAE;QAC3C,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE;QAC1C,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE;QACvC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE;QACvC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;KAClC;IACD,wBAAwB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,CAAC;IACtE,OAAO,EAAE,kFAAkF;CAC5F,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Transaction } from '../../transaction/tx.js';
|
|
2
|
+
import type { WizardContext } from '../../registry/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Fastify patch.
|
|
5
|
+
*
|
|
6
|
+
* AST mutation:
|
|
7
|
+
* - inject `import { allstakFastify } from '@allstak/fastify'` (ESM) OR
|
|
8
|
+
* leave the user to require it (CJS hint only — see below).
|
|
9
|
+
*
|
|
10
|
+
* Managed-block hint:
|
|
11
|
+
* - guides the user to call `await app.register(allstakFastify, { ... })`
|
|
12
|
+
* in their bootstrap. We pick ESM vs CJS phrasing based on detected
|
|
13
|
+
* module system.
|
|
14
|
+
*
|
|
15
|
+
* Why hint-only: Fastify entry shapes vary too much for safe auto-injection:
|
|
16
|
+
*
|
|
17
|
+
* - Top-level await (Fastify 4 ESM): `const app = Fastify(); await app.register(...)`
|
|
18
|
+
* - IIFE wrapper (CJS): `(async () => { const app = Fastify(); await app.register(...); })()`
|
|
19
|
+
* - Factory: `export async function build() { const app = Fastify(); ... return app; }`
|
|
20
|
+
* - Lambda handler: `export const handler = awsLambdaFastify({ ... })`
|
|
21
|
+
*
|
|
22
|
+
* AST-injecting `register` reliably across these shapes would require a
|
|
23
|
+
* custom analyser. v0.2 may add a Fastify 4-only pattern matcher; until
|
|
24
|
+
* then, beta = AST import + managed hint, validated.
|
|
25
|
+
*/
|
|
26
|
+
export declare function patchFastify(ctx: WizardContext, tx: Transaction): Promise<void>;
|
|
27
|
+
//# sourceMappingURL=patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../../src/integrations/fastify/patch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAS7D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBrF"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { writeStandardEnv } from '../_shared.js';
|
|
2
|
+
import { patchJsModule, ensureImport } from '../../patchers/js-ast.js';
|
|
3
|
+
import { appendManagedBlock } from '../../patchers/source-block.js';
|
|
4
|
+
import { log } from '../../util/log.js';
|
|
5
|
+
import { detectModuleSystem, locateFastifyEntry } from './files.js';
|
|
6
|
+
const PKG = '@allstak/fastify';
|
|
7
|
+
/**
|
|
8
|
+
* Fastify patch.
|
|
9
|
+
*
|
|
10
|
+
* AST mutation:
|
|
11
|
+
* - inject `import { allstakFastify } from '@allstak/fastify'` (ESM) OR
|
|
12
|
+
* leave the user to require it (CJS hint only — see below).
|
|
13
|
+
*
|
|
14
|
+
* Managed-block hint:
|
|
15
|
+
* - guides the user to call `await app.register(allstakFastify, { ... })`
|
|
16
|
+
* in their bootstrap. We pick ESM vs CJS phrasing based on detected
|
|
17
|
+
* module system.
|
|
18
|
+
*
|
|
19
|
+
* Why hint-only: Fastify entry shapes vary too much for safe auto-injection:
|
|
20
|
+
*
|
|
21
|
+
* - Top-level await (Fastify 4 ESM): `const app = Fastify(); await app.register(...)`
|
|
22
|
+
* - IIFE wrapper (CJS): `(async () => { const app = Fastify(); await app.register(...); })()`
|
|
23
|
+
* - Factory: `export async function build() { const app = Fastify(); ... return app; }`
|
|
24
|
+
* - Lambda handler: `export const handler = awsLambdaFastify({ ... })`
|
|
25
|
+
*
|
|
26
|
+
* AST-injecting `register` reliably across these shapes would require a
|
|
27
|
+
* custom analyser. v0.2 may add a Fastify 4-only pattern matcher; until
|
|
28
|
+
* then, beta = AST import + managed hint, validated.
|
|
29
|
+
*/
|
|
30
|
+
export async function patchFastify(ctx, tx) {
|
|
31
|
+
await writeStandardEnv(ctx, tx, '.env');
|
|
32
|
+
const entry = locateFastifyEntry(ctx);
|
|
33
|
+
if (!entry) {
|
|
34
|
+
log.warn('No Fastify entry detected — entry patch skipped. Run repair after creating it.');
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const moduleSystem = detectModuleSystem(ctx, entry);
|
|
38
|
+
// For CJS we don't AST-inject `require` — magicast targets ESM imports.
|
|
39
|
+
// We still emit the managed-block hint with the right require() snippet.
|
|
40
|
+
if (moduleSystem === 'esm') {
|
|
41
|
+
await patchJsModule(tx, entry, (mod) => {
|
|
42
|
+
ensureImport(mod, { from: PKG, named: ['allstakFastify'] });
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const block = moduleSystem === 'esm'
|
|
46
|
+
? esmHint(ctx)
|
|
47
|
+
: cjsHint(ctx);
|
|
48
|
+
await appendManagedBlock(tx, entry, block, { style: 'slash', validateJs: true });
|
|
49
|
+
}
|
|
50
|
+
function esmHint(ctx) {
|
|
51
|
+
return [
|
|
52
|
+
`// allstak-wizard: register the AllStak Fastify plugin once your app instance exists.`,
|
|
53
|
+
`//`,
|
|
54
|
+
`// Fastify 4 ESM example:`,
|
|
55
|
+
`// import Fastify from 'fastify';`,
|
|
56
|
+
`// import { allstakFastify } from '@allstak/fastify';`,
|
|
57
|
+
`// const app = Fastify();`,
|
|
58
|
+
`// await app.register(allstakFastify, {`,
|
|
59
|
+
`// dsn: process.env.ALLSTAK_DSN,`,
|
|
60
|
+
`// endpoint: process.env.ALLSTAK_HOST ?? '${ctx.host}',`,
|
|
61
|
+
`// release: process.env.ALLSTAK_RELEASE,`,
|
|
62
|
+
`// environment: process.env.ALLSTAK_ENVIRONMENT ?? '${ctx.environment}',`,
|
|
63
|
+
`// });`,
|
|
64
|
+
`// await app.listen({ port: 3000 });`,
|
|
65
|
+
`//`,
|
|
66
|
+
`// Why hint-only: Fastify entries use top-level await, IIFE, factory functions,`,
|
|
67
|
+
`// and Lambda handlers — auto-injection cannot pick the correct insertion point`,
|
|
68
|
+
`// across all of those without breaking some.`,
|
|
69
|
+
].join('\n');
|
|
70
|
+
}
|
|
71
|
+
function cjsHint(ctx) {
|
|
72
|
+
return [
|
|
73
|
+
`// allstak-wizard: register the AllStak Fastify plugin once your app instance exists.`,
|
|
74
|
+
`//`,
|
|
75
|
+
`// Fastify 4 CJS example:`,
|
|
76
|
+
`// const Fastify = require('fastify');`,
|
|
77
|
+
`// const { allstakFastify } = require('@allstak/fastify');`,
|
|
78
|
+
`// const app = Fastify();`,
|
|
79
|
+
`// await app.register(allstakFastify, {`,
|
|
80
|
+
`// dsn: process.env.ALLSTAK_DSN,`,
|
|
81
|
+
`// endpoint: process.env.ALLSTAK_HOST ?? '${ctx.host}',`,
|
|
82
|
+
`// release: process.env.ALLSTAK_RELEASE,`,
|
|
83
|
+
`// environment: process.env.ALLSTAK_ENVIRONMENT ?? '${ctx.environment}',`,
|
|
84
|
+
`// });`,
|
|
85
|
+
`// await app.listen({ port: 3000 });`,
|
|
86
|
+
`//`,
|
|
87
|
+
`// CJS note: the wizard does NOT auto-add a require() call — wrap the`,
|
|
88
|
+
`// register() in your existing bootstrap (IIFE / factory / Lambda handler).`,
|
|
89
|
+
].join('\n');
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=patch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch.js","sourceRoot":"","sources":["../../../src/integrations/fastify/patch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAA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BAA2B;QAC3B,qCAAqC;QACrC,yDAAyD;QACzD,6BAA6B;QAC7B,2CAA2C;QAC3C,sCAAsC;QACtC,iDAAiD,GAAG,CAAC,IAAI,IAAI;QAC7D,8CAA8C;QAC9C,2DAA2D,GAAG,CAAC,WAAW,IAAI;QAC9E,UAAU;QACV,wCAAwC;QACxC,IAAI;QACJ,iFAAiF;QACjF,iFAAiF;QACjF,+CAA+C;KAChD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,SAAS,OAAO,CAAC,GAAkB;IACjC,OAAO;QACL,uFAAuF;QACvF,IAAI;QACJ,2BAA2B;QAC3B,0CAA0C;QAC1C,8DAA8D;QAC9D,6BAA6B;QAC7B,2CAA2C;QAC3C,sCAAsC;QACtC,iDAAiD,GAAG,CAAC,IAAI,IAAI;QAC7D,8CAA8C;QAC9C,2DAA2D,GAAG,CAAC,WAAW,IAAI;QAC9E,UAAU;QACV,wCAAwC;QACxC,IAAI;QACJ,uEAAuE;QACvE,6EAA6E;KAC9E,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../src/integrations/fastify/uninstall.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAQ7D,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAYzF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { resolve } from 'node:path';
|
|
2
|
+
import { runPackageUninstall, removeStandardEnv } from '../_shared.js';
|
|
3
|
+
import { patchJsModule, removeImport } from '../../patchers/js-ast.js';
|
|
4
|
+
import { removeManagedSourceBlock } from '../../patchers/source-block.js';
|
|
5
|
+
import { detectModuleSystem, locateFastifyEntry } from './files.js';
|
|
6
|
+
const PKG = '@allstak/fastify';
|
|
7
|
+
export async function uninstallFastify(ctx, tx) {
|
|
8
|
+
await removeStandardEnv(tx, resolve(ctx.projectRoot, '.env'));
|
|
9
|
+
const entry = locateFastifyEntry(ctx);
|
|
10
|
+
if (entry) {
|
|
11
|
+
await removeManagedSourceBlock(tx, entry, 'slash');
|
|
12
|
+
if (detectModuleSystem(ctx, entry) === 'esm') {
|
|
13
|
+
await patchJsModule(tx, entry, (mod) => removeImport(mod, PKG));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
await runPackageUninstall(ctx, [PKG]);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=uninstall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../../src/integrations/fastify/uninstall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEpE,MAAM,GAAG,GAAG,kBAAkB,CAAC;AAE/B,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,GAAkB,EAAE,EAAe;IACxE,MAAM,iBAAiB,CAAC,EAAE,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IAE9D,MAAM,KAAK,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACtC,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,wBAAwB,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QACnD,IAAI,kBAAkB,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,KAAK,EAAE,CAAC;YAC7C,MAAM,aAAa,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QAClE,CAAC;IACH,CAAC;IAED,MAAM,mBAAmB,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Re-export the real Fastify integration. Kept for symmetry with other
|
|
3
|
+
* integration modules.
|
|
4
|
+
*/
|
|
5
|
+
export { fastifyIntegration } from './fastify/index.js';
|
|
2
6
|
//# sourceMappingURL=fastify.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../../src/integrations/fastify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../../src/integrations/fastify.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
stability: 'experimental',
|
|
7
|
-
supportedPackageManagers: ['npm', 'pnpm', 'yarn', 'yarn-berry', 'bun'],
|
|
8
|
-
reason: 'Fastify integration is scaffolded; app.register(allstakFastify) wiring is not auto-applied because Fastify entry shapes vary too much for safe AST patching in v0.1.',
|
|
9
|
-
});
|
|
1
|
+
/**
|
|
2
|
+
* Re-export the real Fastify integration. Kept for symmetry with other
|
|
3
|
+
* integration modules.
|
|
4
|
+
*/
|
|
5
|
+
export { fastifyIntegration } from './fastify/index.js';
|
|
10
6
|
//# sourceMappingURL=fastify.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastify.js","sourceRoot":"","sources":["../../src/integrations/fastify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"fastify.js","sourceRoot":"","sources":["../../src/integrations/fastify.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flutter.d.ts","sourceRoot":"","sources":["../../src/integrations/flutter.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"flutter.d.ts","sourceRoot":"","sources":["../../src/integrations/flutter.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,mCAU7B,CAAC"}
|
|
@@ -4,6 +4,9 @@ export const flutterIntegration = simpleScaffold({
|
|
|
4
4
|
title: 'Flutter / Dart',
|
|
5
5
|
sdkPackage: 'allstak_flutter (pub.dev)',
|
|
6
6
|
stability: 'experimental',
|
|
7
|
+
runtimeStatus: 'experimental',
|
|
8
|
+
wizardAutomation: 'experimental',
|
|
9
|
+
public: false,
|
|
7
10
|
reason: 'Flutter scaffolding writes env vars only; pubspec.yaml mutation, AllStak.runApp wrapping in main.dart, and Gradle/Info.plist edits are not auto-applied in v0.1. Source-map upload tooling is not present in the SDK itself.',
|
|
8
11
|
});
|
|
9
12
|
//# sourceMappingURL=flutter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flutter.js","sourceRoot":"","sources":["../../src/integrations/flutter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAAC;IAC/C,EAAE,EAAE,SAAS;IACb,KAAK,EAAE,gBAAgB;IACvB,UAAU,EAAE,2BAA2B;IACvC,SAAS,EAAE,cAAc;IACzB,MAAM,EACJ,8NAA8N;CACjO,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"flutter.js","sourceRoot":"","sources":["../../src/integrations/flutter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAAC;IAC/C,EAAE,EAAE,SAAS;IACb,KAAK,EAAE,gBAAgB;IACvB,UAAU,EAAE,2BAA2B;IACvC,SAAS,EAAE,cAAc;IACzB,aAAa,EAAE,cAAc;IAC7B,gBAAgB,EAAE,cAAc;IAChC,MAAM,EAAE,KAAK;IACb,MAAM,EACJ,8NAA8N;CACjO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/go/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAA4C,MAAM,yBAAyB,CAAC;AAoDrG,eAAO,MAAM,aAAa,EAAE,WAyE3B,CAAC"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { resolve } from 'node:path';
|
|
3
|
+
import { writeStandardEnv, removeStandardEnv } from '../_shared.js';
|
|
4
|
+
/**
|
|
5
|
+
* AllStak Go integration for the wizard.
|
|
6
|
+
*
|
|
7
|
+
* Go projects are not patched at the source level — too many entry shapes
|
|
8
|
+
* (cmd/server/main.go, internal/server, single-file binaries, custom
|
|
9
|
+
* middleware ordering). The wizard:
|
|
10
|
+
*
|
|
11
|
+
* - confirms it's a Go module (go.mod present),
|
|
12
|
+
* - identifies any popular HTTP framework declared (gin, chi, echo, fiber),
|
|
13
|
+
* - writes the standard ALLSTAK_* env vars,
|
|
14
|
+
* - validates the SDK module is required in go.mod,
|
|
15
|
+
* - on uninstall, cleanly removes the env block.
|
|
16
|
+
*
|
|
17
|
+
* Module install (`go get`) is left to the user; the wizard's package-
|
|
18
|
+
* manager abstraction is JS-only (npm/pnpm/yarn/bun). Mirrors Python and
|
|
19
|
+
* Java integrations.
|
|
20
|
+
*/
|
|
21
|
+
const SDK_MODULE = 'github.com/allstak-io/allstak-go';
|
|
22
|
+
function inspectProject(projectRoot) {
|
|
23
|
+
const goModPath = resolve(projectRoot, 'go.mod');
|
|
24
|
+
const hasGoMod = existsSync(goModPath);
|
|
25
|
+
const evidence = [];
|
|
26
|
+
let hasAllstak = false;
|
|
27
|
+
let framework = 'unknown';
|
|
28
|
+
if (hasGoMod) {
|
|
29
|
+
evidence.push('go.mod');
|
|
30
|
+
try {
|
|
31
|
+
const text = readFileSync(goModPath, 'utf8');
|
|
32
|
+
hasAllstak = text.includes(SDK_MODULE) || /allstak[-/]go/.test(text);
|
|
33
|
+
if (text.includes('github.com/gin-gonic/gin'))
|
|
34
|
+
framework = 'gin';
|
|
35
|
+
else if (text.includes('github.com/go-chi/chi'))
|
|
36
|
+
framework = 'chi';
|
|
37
|
+
else if (text.includes('github.com/labstack/echo'))
|
|
38
|
+
framework = 'echo';
|
|
39
|
+
else if (text.includes('github.com/gofiber/fiber'))
|
|
40
|
+
framework = 'fiber';
|
|
41
|
+
else
|
|
42
|
+
framework = 'net/http';
|
|
43
|
+
evidence.push(`framework: ${framework}`);
|
|
44
|
+
}
|
|
45
|
+
catch { /* ignore */ }
|
|
46
|
+
}
|
|
47
|
+
return { hasGoMod, hasAllstak, framework, evidence };
|
|
48
|
+
}
|
|
49
|
+
export const goIntegration = {
|
|
50
|
+
id: 'go',
|
|
51
|
+
manifest: {
|
|
52
|
+
id: 'go',
|
|
53
|
+
title: 'Go (net/http · Chi · Gin · Echo)',
|
|
54
|
+
sdkPackage: SDK_MODULE,
|
|
55
|
+
additionalPackages: [],
|
|
56
|
+
stability: 'beta',
|
|
57
|
+
runtimeStatus: 'beta',
|
|
58
|
+
wizardAutomation: 'assisted',
|
|
59
|
+
public: true,
|
|
60
|
+
stabilityNote: 'Runtime Beta (certification score 33). Wizard writes ALLSTAK_* env vars, identifies the HTTP framework in go.mod, and verifies the allstak-go module is declared. Module install and middleware wiring are left to the user.',
|
|
61
|
+
capabilities: ['write-env'],
|
|
62
|
+
unsupportedCapabilities: ['install-package', 'patch-entry', 'live-validate-event'],
|
|
63
|
+
compatibility: [],
|
|
64
|
+
files: [
|
|
65
|
+
{ path: 'go.mod', kind: 'required', description: 'Go module file' },
|
|
66
|
+
{ path: '.env', kind: 'created', description: 'AllStak environment variables' },
|
|
67
|
+
],
|
|
68
|
+
supportedPackageManagers: [],
|
|
69
|
+
docsUrl: 'https://docs.allstak.dev/sdks/go',
|
|
70
|
+
},
|
|
71
|
+
async detect(ctx) {
|
|
72
|
+
const project = inspectProject(ctx.projectRoot);
|
|
73
|
+
if (!project.hasGoMod)
|
|
74
|
+
return { ok: false, reason: 'No go.mod at project root' };
|
|
75
|
+
return { ok: true, reason: project.evidence.join(', ') };
|
|
76
|
+
},
|
|
77
|
+
async plan(ctx) {
|
|
78
|
+
const project = inspectProject(ctx.projectRoot);
|
|
79
|
+
const lines = [];
|
|
80
|
+
lines.push(`detect Go module (${project.framework})`);
|
|
81
|
+
lines.push(`write ALLSTAK_* to .env`);
|
|
82
|
+
lines.push(`verify ${SDK_MODULE} is required in go.mod (manual install: go get ${SDK_MODULE})`);
|
|
83
|
+
if (project.framework === 'gin') {
|
|
84
|
+
lines.push('Gin detected — recommend r.Use(allstakgin.Middleware(client))');
|
|
85
|
+
}
|
|
86
|
+
else if (project.framework === 'chi') {
|
|
87
|
+
lines.push('Chi detected — recommend r.Use(allstakchi.Middleware(client))');
|
|
88
|
+
}
|
|
89
|
+
else if (project.framework === 'echo') {
|
|
90
|
+
lines.push('Echo detected — Echo middleware is not yet provided; use the base allstak.Middleware via an http.Handler bridge');
|
|
91
|
+
}
|
|
92
|
+
else if (project.framework === 'fiber') {
|
|
93
|
+
lines.push('Fiber detected — Fiber is not currently supported; only net/http-based frameworks are wired');
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
lines.push('No common framework detected — wire allstak.Middleware(client) into your http.Handler chain');
|
|
97
|
+
}
|
|
98
|
+
return lines;
|
|
99
|
+
},
|
|
100
|
+
// Intentionally a no-op: `go get` is out of scope for the wizard's
|
|
101
|
+
// package-manager abstraction. Doctor verifies the user did it.
|
|
102
|
+
async install() { },
|
|
103
|
+
async patch(ctx, tx) {
|
|
104
|
+
await writeStandardEnv(ctx, tx, '.env');
|
|
105
|
+
},
|
|
106
|
+
async validate(ctx) {
|
|
107
|
+
return doctorGo(ctx);
|
|
108
|
+
},
|
|
109
|
+
async uninstall(ctx, tx) {
|
|
110
|
+
await removeStandardEnv(tx, resolve(ctx.projectRoot, '.env'));
|
|
111
|
+
},
|
|
112
|
+
async repair(ctx, tx) {
|
|
113
|
+
await writeStandardEnv(ctx, tx, '.env');
|
|
114
|
+
},
|
|
115
|
+
async doctor(ctx) {
|
|
116
|
+
return doctorGo(ctx);
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
function doctorGo(ctx) {
|
|
120
|
+
const project = inspectProject(ctx.projectRoot);
|
|
121
|
+
const checks = [];
|
|
122
|
+
checks.push({
|
|
123
|
+
name: 'go-module',
|
|
124
|
+
status: project.hasGoMod ? 'pass' : 'fail',
|
|
125
|
+
detail: project.hasGoMod ? 'go.mod found' : 'no go.mod at project root',
|
|
126
|
+
fix: 'run `go mod init <module-path>` in your project root',
|
|
127
|
+
});
|
|
128
|
+
checks.push({
|
|
129
|
+
name: 'sdk-required',
|
|
130
|
+
status: project.hasAllstak ? 'pass' : 'warn',
|
|
131
|
+
detail: project.hasAllstak
|
|
132
|
+
? `${SDK_MODULE} is required in go.mod`
|
|
133
|
+
: `${SDK_MODULE} is not required in go.mod`,
|
|
134
|
+
fix: `run \`go get ${SDK_MODULE}\` in your project root`,
|
|
135
|
+
});
|
|
136
|
+
const envPath = resolve(ctx.projectRoot, '.env');
|
|
137
|
+
let envOk = false;
|
|
138
|
+
let envDetail = '.env not found';
|
|
139
|
+
if (existsSync(envPath)) {
|
|
140
|
+
try {
|
|
141
|
+
const text = readFileSync(envPath, 'utf8');
|
|
142
|
+
envOk = /^\s*ALLSTAK_API_KEY\s*=/m.test(text);
|
|
143
|
+
envDetail = envOk ? '.env declares ALLSTAK_API_KEY' : '.env present but ALLSTAK_API_KEY is missing';
|
|
144
|
+
}
|
|
145
|
+
catch (e) {
|
|
146
|
+
envDetail = `failed to read .env: ${e.message}`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
checks.push({
|
|
150
|
+
name: 'env-vars',
|
|
151
|
+
status: envOk ? 'pass' : 'warn',
|
|
152
|
+
detail: envDetail,
|
|
153
|
+
fix: 'run `allstak-wizard install` (or set ALLSTAK_API_KEY in .env manually)',
|
|
154
|
+
});
|
|
155
|
+
if (project.framework === 'gin') {
|
|
156
|
+
checks.push({
|
|
157
|
+
name: 'gin-setup',
|
|
158
|
+
status: 'warn',
|
|
159
|
+
detail: 'Wire allstakgin.Middleware(client) into your Gin engine yourself.',
|
|
160
|
+
fix: 'r.Use(allstakgin.Middleware(client))',
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
else if (project.framework === 'chi') {
|
|
164
|
+
checks.push({
|
|
165
|
+
name: 'chi-setup',
|
|
166
|
+
status: 'warn',
|
|
167
|
+
detail: 'Wire allstakchi.Middleware(client) into your Chi router yourself.',
|
|
168
|
+
fix: 'r.Use(allstakchi.Middleware(client))',
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
else if (project.framework === 'fiber') {
|
|
172
|
+
checks.push({
|
|
173
|
+
name: 'fiber-setup',
|
|
174
|
+
status: 'skip',
|
|
175
|
+
detail: 'Fiber is not currently supported by the AllStak Go SDK.',
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
else if (project.framework === 'echo') {
|
|
179
|
+
checks.push({
|
|
180
|
+
name: 'echo-setup',
|
|
181
|
+
status: 'warn',
|
|
182
|
+
detail: 'Echo does not have a dedicated package; bridge via the base allstak.Middleware.',
|
|
183
|
+
fix: 'e.Use(echo.WrapMiddleware(allstak.Middleware(client)))',
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
checks.push({
|
|
188
|
+
name: 'framework-setup',
|
|
189
|
+
status: 'warn',
|
|
190
|
+
detail: 'Wire allstak.Middleware(client) into your http.Handler chain.',
|
|
191
|
+
fix: 'http.Handle("/", allstak.Middleware(client)(yourHandler))',
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
const failed = checks.some((c) => c.status === 'fail');
|
|
195
|
+
const warned = checks.some((c) => c.status === 'warn');
|
|
196
|
+
const summary = failed ? 'broken' : warned ? 'degraded' : 'ok';
|
|
197
|
+
return { integration: 'go', checks, summary };
|
|
198
|
+
}
|
|
199
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/go/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEpE;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,UAAU,GAAG,kCAAkC,CAAC;AAStD,SAAS,cAAc,CAAC,WAAmB;IACzC,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACjD,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;IACvC,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,SAAS,GAA2B,SAAS,CAAC;IAClD,IAAI,QAAQ,EAAE,CAAC;QACb,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxB,IAAI,CAA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AAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC;IACxF,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"go.d.ts","sourceRoot":"","sources":["../../src/integrations/go.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"go.d.ts","sourceRoot":"","sources":["../../src/integrations/go.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,mCAUxB,CAAC"}
|
package/dist/integrations/go.js
CHANGED
|
@@ -3,7 +3,10 @@ export const goIntegration = simpleScaffold({
|
|
|
3
3
|
id: 'go',
|
|
4
4
|
title: 'Go (github.com/allstak-io/allstak-go)',
|
|
5
5
|
sdkPackage: 'github.com/allstak-io/allstak-go',
|
|
6
|
-
stability: '
|
|
7
|
-
|
|
6
|
+
stability: 'beta',
|
|
7
|
+
runtimeStatus: 'beta',
|
|
8
|
+
wizardAutomation: 'manual',
|
|
9
|
+
public: true,
|
|
10
|
+
reason: 'Runtime SDK is Beta (certification score 33). Wizard automation is manual/light setup only: env vars are written, but go get/go.mod edits and allstak.New(...) wiring are not applied automatically in v0.1.',
|
|
8
11
|
});
|
|
9
12
|
//# sourceMappingURL=go.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"go.js","sourceRoot":"","sources":["../../src/integrations/go.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC;IAC1C,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,uCAAuC;IAC9C,UAAU,EAAE,kCAAkC;IAC9C,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"go.js","sourceRoot":"","sources":["../../src/integrations/go.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC;IAC1C,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,uCAAuC;IAC9C,UAAU,EAAE,kCAAkC;IAC9C,SAAS,EAAE,MAAM;IACjB,aAAa,EAAE,MAAM;IACrB,gBAAgB,EAAE,QAAQ;IAC1B,MAAM,EAAE,IAAI;IACZ,MAAM,EACJ,8MAA8M;CACjN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/java/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAA4C,MAAM,yBAAyB,CAAC;AASrG,eAAO,MAAM,eAAe,EAAE,WAqF7B,CAAC"}
|