@maverickcer/env-cap 0.5.3 → 0.7.0
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/ADOPTION.md +144 -0
- package/AGENTS.md +146 -0
- package/CHANGELOG.md +438 -0
- package/CODE_OF_CONDUCT.md +124 -0
- package/CODE_REVIEW.md +200 -0
- package/CONTRIBUTING.md +131 -0
- package/GUIDE.md +1214 -0
- package/PROMPT.md +89 -0
- package/README.md +97 -199
- package/RELEASING.md +160 -0
- package/SECURITY.md +270 -0
- package/SUPPORT.md +76 -0
- package/VERSIONING.md +118 -0
- package/benchmarks/READING-BENCHMARKS.md +197 -0
- package/benchmarks/README.md +126 -0
- package/benchmarks/WRITING-BENCHMARKS.md +252 -0
- package/benchmarks/performance-buildtime/BENCHMARKS.md +889 -0
- package/benchmarks/performance-runtime/BENCHMARKS.md +1988 -0
- package/dist/.dts/_ipc/build-fs.d.ts +53 -0
- package/dist/.dts/_ipc/build-fs.d.ts.map +1 -0
- package/dist/.dts/_ipc/compiler-api.d.ts +17 -0
- package/dist/.dts/_ipc/compiler-api.d.ts.map +1 -0
- package/dist/.dts/_ipc/display-path.d.ts +27 -0
- package/dist/.dts/_ipc/display-path.d.ts.map +1 -0
- package/dist/.dts/_ipc/generated-banner.d.ts +58 -0
- package/dist/.dts/_ipc/generated-banner.d.ts.map +1 -0
- package/dist/.dts/_ipc/glob.d.ts +22 -0
- package/dist/.dts/_ipc/glob.d.ts.map +1 -0
- package/dist/.dts/_ipc/no-node-fs.d.ts +34 -0
- package/dist/.dts/_ipc/no-node-fs.d.ts.map +1 -0
- package/dist/.dts/_ipc/resolve-tsconfig-paths.d.ts +134 -0
- package/dist/.dts/_ipc/resolve-tsconfig-paths.d.ts.map +1 -0
- package/dist/.dts/_ipc/typescript.d.ts +20 -0
- package/dist/.dts/_ipc/typescript.d.ts.map +1 -0
- package/dist/.dts/build/assemble-project.d.ts +1 -1
- package/dist/.dts/build/assemble-project.d.ts.map +1 -1
- package/dist/.dts/build/change-model.d.ts.map +1 -1
- package/dist/.dts/build/check-artifacts.d.ts.map +1 -1
- package/dist/.dts/build/citation-verification.d.ts.map +1 -1
- package/dist/.dts/build/compatibility.d.ts.map +1 -1
- package/dist/.dts/build/compiler-api.d.ts +12 -0
- package/dist/.dts/build/compiler-api.d.ts.map +1 -0
- package/dist/.dts/build/dependency-graph.d.ts +3 -1
- package/dist/.dts/build/dependency-graph.d.ts.map +1 -1
- package/dist/.dts/build/dependency-model.d.ts.map +1 -1
- package/dist/.dts/build/discover.d.ts.map +1 -1
- package/dist/.dts/build/display-path.d.ts +3 -21
- package/dist/.dts/build/display-path.d.ts.map +1 -1
- package/dist/.dts/build/docs.d.ts +1 -1
- package/dist/.dts/build/docs.d.ts.map +1 -1
- package/dist/.dts/build/env-example.d.ts.map +1 -1
- package/dist/.dts/build/evidence-cache.d.ts +1 -1
- package/dist/.dts/build/evidence-cache.d.ts.map +1 -1
- package/dist/.dts/build/evidence-model.d.ts +2 -2
- package/dist/.dts/build/evidence-snapshot.d.ts +25 -0
- package/dist/.dts/build/evidence-snapshot.d.ts.map +1 -1
- package/dist/.dts/build/finding-model.d.ts +1 -1
- package/dist/.dts/build/finding-model.d.ts.map +1 -1
- package/dist/.dts/build/generate-documentation.d.ts.map +1 -1
- package/dist/.dts/build/generate-env-artifacts.d.ts +23 -8
- package/dist/.dts/build/generate-env-artifacts.d.ts.map +1 -1
- package/dist/.dts/build/generate-evidence.d.ts.map +1 -1
- package/dist/.dts/build/generate-manifest.d.ts +1 -1
- package/dist/.dts/build/generate-manifest.d.ts.map +1 -1
- package/dist/.dts/build/generate-usage.d.ts +3 -3
- package/dist/.dts/build/generate-usage.d.ts.map +1 -1
- package/dist/.dts/build/generated-banner.d.ts +29 -38
- package/dist/.dts/build/generated-banner.d.ts.map +1 -1
- package/dist/.dts/build/glob.d.ts +3 -15
- package/dist/.dts/build/glob.d.ts.map +1 -1
- package/dist/.dts/build/index.d.ts +2 -2
- package/dist/.dts/build/lifecycle-model.d.ts.map +1 -1
- package/dist/.dts/build/link.d.ts.map +1 -1
- package/dist/.dts/build/literal-eval.d.ts +4 -3
- package/dist/.dts/build/literal-eval.d.ts.map +1 -1
- package/dist/.dts/build/live-expirations.d.ts.map +1 -1
- package/dist/.dts/build/manifest.d.ts.map +1 -1
- package/dist/.dts/build/merge-documentation.d.ts +35 -0
- package/dist/.dts/build/merge-documentation.d.ts.map +1 -0
- package/dist/.dts/build/parse.d.ts +12 -12
- package/dist/.dts/build/parse.d.ts.map +1 -1
- package/dist/.dts/build/reference-projections.d.ts +17 -3
- package/dist/.dts/build/reference-projections.d.ts.map +1 -1
- package/dist/.dts/build/resolution/resolve-import.d.ts +5 -0
- package/dist/.dts/build/resolution/resolve-import.d.ts.map +1 -1
- package/dist/.dts/build/resolution/resolve-package-schema.d.ts +1 -1
- package/dist/.dts/build/resolution/resolve-package-schema.d.ts.map +1 -1
- package/dist/.dts/build/resolution/resolve-tsconfig-paths.d.ts +11 -94
- package/dist/.dts/build/resolution/resolve-tsconfig-paths.d.ts.map +1 -1
- package/dist/.dts/build/sarif.d.ts.map +1 -1
- package/dist/.dts/build/scan-dependencies.d.ts +23 -0
- package/dist/.dts/build/scan-dependencies.d.ts.map +1 -1
- package/dist/.dts/build/types.d.ts +4 -53
- package/dist/.dts/build/types.d.ts.map +1 -1
- package/dist/.dts/build/typescript.d.ts +6 -0
- package/dist/.dts/build/typescript.d.ts.map +1 -0
- package/dist/.dts/build/usage-report.d.ts.map +1 -1
- package/dist/.dts/cli/filesystem.d.ts +4 -0
- package/dist/.dts/cli/filesystem.d.ts.map +1 -1
- package/dist/.dts/eslint-plugin/glob.d.ts +4 -15
- package/dist/.dts/eslint-plugin/glob.d.ts.map +1 -1
- package/dist/.dts/eslint-plugin/index.d.ts +3 -3
- package/dist/.dts/eslint-plugin/no-node-fs.d.ts +8 -18
- package/dist/.dts/eslint-plugin/no-node-fs.d.ts.map +1 -1
- package/dist/.dts/eslint-plugin/no-raw-process-env.d.ts.map +1 -1
- package/dist/.dts/evidence/index.d.ts +2 -2
- package/dist/.dts/helpers/index.d.ts +2 -2
- package/dist/.dts/helpers/processors.d.ts.map +1 -1
- package/dist/.dts/helpers/validators.d.ts.map +1 -1
- package/dist/.dts/runtime/cache.d.ts +0 -3
- package/dist/.dts/runtime/cache.d.ts.map +1 -1
- package/dist/.dts/runtime/create.d.ts.map +1 -1
- package/dist/.dts/runtime/document.d.ts.map +1 -1
- package/dist/.dts/runtime/index.d.ts +2 -2
- package/dist/.dts/runtime/registry.d.ts.map +1 -1
- package/dist/.dts/runtime/validate.d.ts.map +1 -1
- package/dist/{build-U326PI5A.js → build-WKDIAWF7.js} +685 -645
- package/dist/build-WKDIAWF7.js.map +1 -0
- package/dist/build.cjs +698 -651
- package/dist/build.cjs.map +1 -1
- package/dist/build.js +695 -649
- package/dist/build.js.map +1 -1
- package/dist/{chunk-BSTLSR2R.js → chunk-KEGYUHBU.js} +2 -2
- package/dist/chunk-KEGYUHBU.js.map +1 -0
- package/dist/cli/index.js +64 -63
- package/dist/cli/index.js.map +1 -1
- package/dist/eslint-plugin/index.cjs +95 -626
- package/dist/eslint-plugin/index.cjs.map +1 -1
- package/dist/eslint-plugin/index.js +94 -625
- package/dist/eslint-plugin/index.js.map +1 -1
- package/dist/evidence.cjs.map +1 -1
- package/dist/evidence.js.map +1 -1
- package/dist/helpers.cjs +4 -9
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +4 -9
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +11 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -25
- package/dist/index.js.map +1 -1
- package/dist/node.cjs +10 -8
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +10 -8
- package/dist/node.js.map +1 -1
- package/examples/README.md +95 -0
- package/node_modules/@typescript/old/LICENSE.txt +55 -0
- package/node_modules/@typescript/old/README.md +50 -0
- package/node_modules/@typescript/old/SECURITY.md +39 -0
- package/node_modules/@typescript/old/ThirdPartyNoticeText.txt +193 -0
- package/node_modules/@typescript/old/bin/tsc +2 -0
- package/node_modules/@typescript/old/bin/tsserver +2 -0
- package/node_modules/@typescript/old/lib/_tsc.js +134465 -0
- package/node_modules/@typescript/old/lib/_tsserver.js +659 -0
- package/node_modules/@typescript/old/lib/_typingsInstaller.js +222 -0
- package/node_modules/@typescript/old/lib/cs/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@typescript/old/lib/de/diagnosticMessages.generated.json +2125 -0
- package/node_modules/@typescript/old/lib/es/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@typescript/old/lib/fr/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@typescript/old/lib/it/diagnosticMessages.generated.json +2125 -0
- package/node_modules/@typescript/old/lib/ja/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@typescript/old/lib/ko/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@typescript/old/lib/lib.d.ts +20 -0
- package/node_modules/@typescript/old/lib/lib.decorators.d.ts +382 -0
- package/node_modules/@typescript/old/lib/lib.decorators.legacy.d.ts +20 -0
- package/node_modules/@typescript/old/lib/lib.dom.asynciterable.d.ts +18 -0
- package/node_modules/@typescript/old/lib/lib.dom.d.ts +45125 -0
- package/node_modules/@typescript/old/lib/lib.dom.iterable.d.ts +18 -0
- package/node_modules/@typescript/old/lib/lib.es2015.collection.d.ts +150 -0
- package/node_modules/@typescript/old/lib/lib.es2015.core.d.ts +595 -0
- package/node_modules/@typescript/old/lib/lib.es2015.d.ts +26 -0
- package/node_modules/@typescript/old/lib/lib.es2015.generator.d.ts +75 -0
- package/node_modules/@typescript/old/lib/lib.es2015.iterable.d.ts +603 -0
- package/node_modules/@typescript/old/lib/lib.es2015.promise.d.ts +79 -0
- package/node_modules/@typescript/old/lib/lib.es2015.proxy.d.ts +126 -0
- package/node_modules/@typescript/old/lib/lib.es2015.reflect.d.ts +142 -0
- package/node_modules/@typescript/old/lib/lib.es2015.symbol.d.ts +44 -0
- package/node_modules/@typescript/old/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/node_modules/@typescript/old/lib/lib.es2016.array.include.d.ts +114 -0
- package/node_modules/@typescript/old/lib/lib.es2016.d.ts +19 -0
- package/node_modules/@typescript/old/lib/lib.es2016.full.d.ts +21 -0
- package/node_modules/@typescript/old/lib/lib.es2016.intl.d.ts +29 -0
- package/node_modules/@typescript/old/lib/lib.es2017.arraybuffer.d.ts +19 -0
- package/node_modules/@typescript/old/lib/lib.es2017.d.ts +24 -0
- package/node_modules/@typescript/old/lib/lib.es2017.date.d.ts +29 -0
- package/node_modules/@typescript/old/lib/lib.es2017.full.d.ts +21 -0
- package/node_modules/@typescript/old/lib/lib.es2017.intl.d.ts +42 -0
- package/node_modules/@typescript/old/lib/lib.es2017.object.d.ts +47 -0
- package/node_modules/@typescript/old/lib/lib.es2017.sharedmemory.d.ts +133 -0
- package/node_modules/@typescript/old/lib/lib.es2017.string.d.ts +43 -0
- package/node_modules/@typescript/old/lib/lib.es2017.typedarrays.d.ts +51 -0
- package/node_modules/@typescript/old/lib/lib.es2018.asyncgenerator.d.ts +75 -0
- package/node_modules/@typescript/old/lib/lib.es2018.asynciterable.d.ts +51 -0
- package/node_modules/@typescript/old/lib/lib.es2018.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2018.full.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2018.intl.d.ts +81 -0
- package/node_modules/@typescript/old/lib/lib.es2018.promise.d.ts +28 -0
- package/node_modules/@typescript/old/lib/lib.es2018.regexp.d.ts +35 -0
- package/node_modules/@typescript/old/lib/lib.es2019.array.d.ts +77 -0
- package/node_modules/@typescript/old/lib/lib.es2019.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2019.full.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2019.intl.d.ts +21 -0
- package/node_modules/@typescript/old/lib/lib.es2019.object.d.ts +31 -0
- package/node_modules/@typescript/old/lib/lib.es2019.string.d.ts +35 -0
- package/node_modules/@typescript/old/lib/lib.es2019.symbol.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2020.bigint.d.ts +763 -0
- package/node_modules/@typescript/old/lib/lib.es2020.d.ts +25 -0
- package/node_modules/@typescript/old/lib/lib.es2020.date.d.ts +40 -0
- package/node_modules/@typescript/old/lib/lib.es2020.full.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2020.intl.d.ts +472 -0
- package/node_modules/@typescript/old/lib/lib.es2020.number.d.ts +26 -0
- package/node_modules/@typescript/old/lib/lib.es2020.promise.d.ts +45 -0
- package/node_modules/@typescript/old/lib/lib.es2020.sharedmemory.d.ts +97 -0
- package/node_modules/@typescript/old/lib/lib.es2020.string.d.ts +42 -0
- package/node_modules/@typescript/old/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/node_modules/@typescript/old/lib/lib.es2021.d.ts +21 -0
- package/node_modules/@typescript/old/lib/lib.es2021.full.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2021.intl.d.ts +164 -0
- package/node_modules/@typescript/old/lib/lib.es2021.promise.d.ts +46 -0
- package/node_modules/@typescript/old/lib/lib.es2021.string.d.ts +31 -0
- package/node_modules/@typescript/old/lib/lib.es2021.weakref.d.ts +76 -0
- package/node_modules/@typescript/old/lib/lib.es2022.array.d.ts +119 -0
- package/node_modules/@typescript/old/lib/lib.es2022.d.ts +23 -0
- package/node_modules/@typescript/old/lib/lib.es2022.error.d.ts +73 -0
- package/node_modules/@typescript/old/lib/lib.es2022.full.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2022.intl.d.ts +143 -0
- package/node_modules/@typescript/old/lib/lib.es2022.object.d.ts +24 -0
- package/node_modules/@typescript/old/lib/lib.es2022.regexp.d.ts +37 -0
- package/node_modules/@typescript/old/lib/lib.es2022.string.d.ts +23 -0
- package/node_modules/@typescript/old/lib/lib.es2023.array.d.ts +922 -0
- package/node_modules/@typescript/old/lib/lib.es2023.collection.d.ts +19 -0
- package/node_modules/@typescript/old/lib/lib.es2023.d.ts +20 -0
- package/node_modules/@typescript/old/lib/lib.es2023.full.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2023.intl.d.ts +62 -0
- package/node_modules/@typescript/old/lib/lib.es2024.arraybuffer.d.ts +63 -0
- package/node_modules/@typescript/old/lib/lib.es2024.collection.d.ts +27 -0
- package/node_modules/@typescript/old/lib/lib.es2024.d.ts +24 -0
- package/node_modules/@typescript/old/lib/lib.es2024.full.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2024.object.d.ts +27 -0
- package/node_modules/@typescript/old/lib/lib.es2024.promise.d.ts +33 -0
- package/node_modules/@typescript/old/lib/lib.es2024.regexp.d.ts +23 -0
- package/node_modules/@typescript/old/lib/lib.es2024.sharedmemory.d.ts +66 -0
- package/node_modules/@typescript/old/lib/lib.es2024.string.d.ts +27 -0
- package/node_modules/@typescript/old/lib/lib.es2025.collection.d.ts +94 -0
- package/node_modules/@typescript/old/lib/lib.es2025.d.ts +23 -0
- package/node_modules/@typescript/old/lib/lib.es2025.float16.d.ts +443 -0
- package/node_modules/@typescript/old/lib/lib.es2025.full.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.es2025.intl.d.ts +200 -0
- package/node_modules/@typescript/old/lib/lib.es2025.iterator.d.ts +146 -0
- package/node_modules/@typescript/old/lib/lib.es2025.promise.d.ts +32 -0
- package/node_modules/@typescript/old/lib/lib.es2025.regexp.d.ts +30 -0
- package/node_modules/@typescript/old/lib/lib.es5.d.ts +4599 -0
- package/node_modules/@typescript/old/lib/lib.es6.d.ts +21 -0
- package/node_modules/@typescript/old/lib/lib.esnext.array.d.ts +33 -0
- package/node_modules/@typescript/old/lib/lib.esnext.collection.d.ts +47 -0
- package/node_modules/@typescript/old/lib/lib.esnext.d.ts +27 -0
- package/node_modules/@typescript/old/lib/lib.esnext.date.d.ts +21 -0
- package/node_modules/@typescript/old/lib/lib.esnext.decorators.d.ts +26 -0
- package/node_modules/@typescript/old/lib/lib.esnext.disposable.d.ts +191 -0
- package/node_modules/@typescript/old/lib/lib.esnext.error.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.esnext.full.d.ts +22 -0
- package/node_modules/@typescript/old/lib/lib.esnext.intl.d.ts +107 -0
- package/node_modules/@typescript/old/lib/lib.esnext.sharedmemory.d.ts +23 -0
- package/node_modules/@typescript/old/lib/lib.esnext.temporal.d.ts +485 -0
- package/node_modules/@typescript/old/lib/lib.esnext.typedarrays.d.ts +90 -0
- package/node_modules/@typescript/old/lib/lib.scripthost.d.ts +320 -0
- package/node_modules/@typescript/old/lib/lib.webworker.asynciterable.d.ts +18 -0
- package/node_modules/@typescript/old/lib/lib.webworker.d.ts +15606 -0
- package/node_modules/@typescript/old/lib/lib.webworker.importscripts.d.ts +21 -0
- package/node_modules/@typescript/old/lib/lib.webworker.iterable.d.ts +18 -0
- package/node_modules/@typescript/old/lib/pl/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@typescript/old/lib/pt-br/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@typescript/old/lib/ru/diagnosticMessages.generated.json +2125 -0
- package/node_modules/@typescript/old/lib/tr/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@typescript/old/lib/tsc.js +8 -0
- package/node_modules/@typescript/old/lib/tsserver.js +8 -0
- package/node_modules/@typescript/old/lib/tsserverlibrary.d.ts +17 -0
- package/node_modules/@typescript/old/lib/tsserverlibrary.js +21 -0
- package/node_modules/@typescript/old/lib/typesMap.json +497 -0
- package/node_modules/@typescript/old/lib/typescript.d.ts +11448 -0
- package/node_modules/@typescript/old/lib/typescript.js +201039 -0
- package/node_modules/@typescript/old/lib/typingsInstaller.js +8 -0
- package/node_modules/@typescript/old/lib/watchGuard.js +53 -0
- package/node_modules/@typescript/old/lib/zh-cn/diagnosticMessages.generated.json +2129 -0
- package/node_modules/@typescript/old/lib/zh-tw/diagnosticMessages.generated.json +2125 -0
- package/node_modules/@typescript/old/package.json +118 -0
- package/node_modules/@typescript/typescript6/LICENSE.txt +55 -0
- package/node_modules/@typescript/typescript6/README.md +9 -0
- package/node_modules/@typescript/typescript6/bin/tsc6 +2 -0
- package/node_modules/@typescript/typescript6/lib/tsc.js +1 -0
- package/node_modules/@typescript/typescript6/lib/tsserverlibrary.d.ts +2 -0
- package/node_modules/@typescript/typescript6/lib/tsserverlibrary.js +1 -0
- package/node_modules/@typescript/typescript6/lib/typescript.d.ts +2 -0
- package/node_modules/@typescript/typescript6/lib/typescript.js +1 -0
- package/node_modules/@typescript/typescript6/package.json +39 -0
- package/package.json +74 -22
- package/schemas/env-cap-report.schema.json +1 -1
- package/skills/env-cap/SKILL.md +91 -0
- package/skills/env-cap/references/api.md +220 -0
- package/specs/architecture.md +634 -0
- package/specs/decisions/0001-runtime-documentation-separation.md +197 -0
- package/specs/decisions/0002-static-analysis-never-execution.md +233 -0
- package/specs/decisions/0003-no-global-env-object.md +172 -0
- package/specs/decisions/0004-no-client-server-package-split.md +116 -0
- package/specs/decisions/0005-warn-not-throw-by-default.md +93 -0
- package/specs/decisions/0006-self-redacting-contracts.md +124 -0
- package/specs/decisions/0007-processor-not-transformer.md +109 -0
- package/specs/decisions/0008-gzip-size-budget.md +173 -0
- package/specs/decisions/0009-exclusive-groups-are-always-errors.md +139 -0
- package/specs/decisions/0010-dependency-ownership-engine-scope-boundary.md +100 -0
- package/specs/decisions/0011-shared-discovery-compute-atomic-write-non-atomic.md +104 -0
- package/specs/decisions/0012-live-expiration-overrides-not-ast-functions.md +145 -0
- package/specs/decisions/0013-json-output-is-a-versioned-mirror.md +136 -0
- package/specs/decisions/0014-cross-package-schema-discovery.md +206 -0
- package/specs/decisions/0015-security-backport-window.md +60 -0
- package/specs/decisions/0016-check-mode-compute-before-compare-never-partial-write.md +113 -0
- package/specs/decisions/0017-eslint-plugin-entry-point.md +113 -0
- package/specs/decisions/0018-rotation-alert-issue-on-non-pr-runs.md +104 -0
- package/specs/decisions/0019-published-json-schema-generated-from-types.md +100 -0
- package/specs/decisions/0020-declaration-maps-via-separate-tsc-pass.md +101 -0
- package/specs/decisions/0021-manifest-change-report-persisted-snapshot.md +177 -0
- package/specs/decisions/0022-validation-contexts.md +267 -0
- package/specs/decisions/0023-tsconfig-path-alias-resolution.md +182 -0
- package/specs/decisions/0024-fact-model-architecture.md +144 -0
- package/specs/decisions/0025-contract-model-json-projection.md +105 -0
- package/specs/decisions/0026-finding-model-unifies-four-families.md +109 -0
- package/specs/decisions/0027-dependency-model-fact-shape-not-engine-access.md +98 -0
- package/specs/decisions/0028-ownership-model-shared-effective-owner.md +85 -0
- package/specs/decisions/0029-lifecycle-model-deprecation-rename-fields.md +98 -0
- package/specs/decisions/0030-change-model-wraps-manifest-change-report.md +97 -0
- package/specs/decisions/0031-evidence-entry-point.md +85 -0
- package/specs/decisions/0032-evidence-projection-provenance-mechanism.md +120 -0
- package/specs/decisions/0033-reference-projections-live-in-examples.md +81 -0
- package/specs/decisions/0034-three-tier-examples-restructuring.md +85 -0
- package/specs/decisions/0035-documentenv-metadata-generalization-and-compliance-fields.md +85 -0
- package/specs/decisions/0036-exact-source-position-evidence.md +122 -0
- package/specs/decisions/0037-developer-declared-dynamic-access-citations.md +114 -0
- package/specs/decisions/0038-always-computed-evidence-model-backs-generate-check-docs.md +244 -0
- package/specs/decisions/0039-scanner-local-dataflow-boundary.md +160 -0
- package/specs/decisions/0040-library-surfaces-do-not-acquire-node-fs.md +156 -0
- package/specs/decisions/0041-dual-package-hazard-checked-documented.md +75 -0
- package/specs/decisions/0042-init-cli-subcommand-scaffolds-only.md +95 -0
- package/specs/decisions/0043-env-cap-resolver-relocated-and-duplicated.md +71 -0
- package/specs/decisions/0044-strict-escalates-every-warning-family.md +88 -0
- package/specs/decisions/0045-promote-experimental-surfaces-to-stable.md +103 -0
- package/specs/decisions/0046-cli-restricted-to-runtime-and-evidence-output.md +177 -0
- package/specs/decisions/0047-supported-toolchain-node-22-and-typescript-5-6.md +30 -0
- package/specs/decisions/0048-eslint-plugin-does-not-vendor-typescript-eslint.md +25 -0
- package/specs/decisions/0049-typescript-7-scanner-uses-a-bundled-typescript-6.md +87 -0
- package/specs/decisions/0050-a-variable-declared-twice-is-documented-once.md +55 -0
- package/specs/generated-artifacts.md +104 -0
- package/specs/migrations/README.md +30 -0
- package/specs/migrations/from-centralized-schema.md +503 -0
- package/specs/migrations/from-dotenv.md +352 -0
- package/specs/migrations/from-envalid.md +482 -0
- package/specs/migrations/from-process-env.md +398 -0
- package/specs/migrations/from-t3-env.md +416 -0
- package/specs/migrations/from-zod.md +303 -0
- package/dist/build-U326PI5A.js.map +0 -1
- package/dist/chunk-BSTLSR2R.js.map +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "typescript",
|
|
3
|
+
"author": "Microsoft Corp.",
|
|
4
|
+
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
+
"version": "6.0.3",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"TypeScript",
|
|
10
|
+
"Microsoft",
|
|
11
|
+
"compiler",
|
|
12
|
+
"language",
|
|
13
|
+
"javascript"
|
|
14
|
+
],
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/microsoft/TypeScript/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/microsoft/TypeScript.git"
|
|
21
|
+
},
|
|
22
|
+
"main": "./lib/typescript.js",
|
|
23
|
+
"typings": "./lib/typescript.d.ts",
|
|
24
|
+
"bin": {
|
|
25
|
+
"tsc": "./bin/tsc",
|
|
26
|
+
"tsserver": "./bin/tsserver"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=14.17"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"bin",
|
|
33
|
+
"lib",
|
|
34
|
+
"!lib/enu",
|
|
35
|
+
"LICENSE.txt",
|
|
36
|
+
"README.md",
|
|
37
|
+
"SECURITY.md",
|
|
38
|
+
"ThirdPartyNoticeText.txt",
|
|
39
|
+
"!**/.gitattributes"
|
|
40
|
+
],
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@dprint/formatter": "^0.4.1",
|
|
43
|
+
"@dprint/typescript": "0.93.4",
|
|
44
|
+
"@esfx/canceltoken": "^1.0.0",
|
|
45
|
+
"@eslint/js": "^10.0.1",
|
|
46
|
+
"@octokit/rest": "^22.0.1",
|
|
47
|
+
"@types/chai": "^4.3.20",
|
|
48
|
+
"@types/minimist": "^1.2.5",
|
|
49
|
+
"@types/mocha": "^10.0.10",
|
|
50
|
+
"@types/ms": "^2.1.0",
|
|
51
|
+
"@types/node": "latest",
|
|
52
|
+
"@types/source-map-support": "^0.5.10",
|
|
53
|
+
"@types/which": "^3.0.4",
|
|
54
|
+
"@typescript-eslint/rule-tester": "^8.56.1",
|
|
55
|
+
"@typescript-eslint/type-utils": "^8.56.1",
|
|
56
|
+
"@typescript-eslint/utils": "^8.56.1",
|
|
57
|
+
"azure-devops-node-api": "^15.1.3",
|
|
58
|
+
"c8": "^10.1.3",
|
|
59
|
+
"chai": "^4.5.0",
|
|
60
|
+
"chokidar": "^4.0.3",
|
|
61
|
+
"diff": "^8.0.3",
|
|
62
|
+
"dprint": "^0.49.1",
|
|
63
|
+
"esbuild": "^0.27.3",
|
|
64
|
+
"eslint": "^10.0.2",
|
|
65
|
+
"eslint-plugin-regexp": "^3.0.0",
|
|
66
|
+
"fast-xml-parser": "^5.4.1",
|
|
67
|
+
"glob": "^10.5.0",
|
|
68
|
+
"globals": "^17.4.0",
|
|
69
|
+
"hereby": "^1.12.0",
|
|
70
|
+
"jsonc-parser": "^3.3.1",
|
|
71
|
+
"knip": "^5.85.0",
|
|
72
|
+
"minimist": "^1.2.8",
|
|
73
|
+
"mocha": "^10.8.2",
|
|
74
|
+
"mocha-fivemat-progress-reporter": "^0.1.0",
|
|
75
|
+
"monocart-coverage-reports": "^2.12.9",
|
|
76
|
+
"ms": "^2.1.3",
|
|
77
|
+
"picocolors": "^1.1.1",
|
|
78
|
+
"playwright": "^1.58.2",
|
|
79
|
+
"source-map-support": "^0.5.21",
|
|
80
|
+
"tslib": "^2.8.1",
|
|
81
|
+
"typescript": "^5.9.3",
|
|
82
|
+
"typescript-eslint": "^8.56.1",
|
|
83
|
+
"which": "^3.0.1"
|
|
84
|
+
},
|
|
85
|
+
"overrides": {
|
|
86
|
+
"typescript@*": "$typescript"
|
|
87
|
+
},
|
|
88
|
+
"scripts": {
|
|
89
|
+
"test": "hereby runtests-parallel --light=false",
|
|
90
|
+
"test:eslint-rules": "hereby run-eslint-rules-tests",
|
|
91
|
+
"build": "npm run build:compiler && npm run build:tests",
|
|
92
|
+
"build:compiler": "hereby local",
|
|
93
|
+
"build:tests": "hereby tests",
|
|
94
|
+
"build:tests:notypecheck": "hereby tests --no-typecheck",
|
|
95
|
+
"clean": "hereby clean",
|
|
96
|
+
"gulp": "hereby",
|
|
97
|
+
"lint": "hereby lint",
|
|
98
|
+
"knip": "hereby knip",
|
|
99
|
+
"format": "dprint fmt",
|
|
100
|
+
"setup-hooks": "node scripts/link-hooks.mjs"
|
|
101
|
+
},
|
|
102
|
+
"browser": {
|
|
103
|
+
"fs": false,
|
|
104
|
+
"os": false,
|
|
105
|
+
"path": false,
|
|
106
|
+
"crypto": false,
|
|
107
|
+
"buffer": false,
|
|
108
|
+
"source-map-support": false,
|
|
109
|
+
"inspector": false,
|
|
110
|
+
"perf_hooks": false
|
|
111
|
+
},
|
|
112
|
+
"packageManager": "npm@8.19.4",
|
|
113
|
+
"volta": {
|
|
114
|
+
"node": "22.22.0",
|
|
115
|
+
"npm": "8.19.4"
|
|
116
|
+
},
|
|
117
|
+
"gitHead": "050880ce59e30b356b686bd3144efe24f875ebc8"
|
|
118
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
16
|
+
|
|
17
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
18
|
+
|
|
19
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
20
|
+
|
|
21
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
22
|
+
|
|
23
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
24
|
+
|
|
25
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
26
|
+
|
|
27
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
28
|
+
|
|
29
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
30
|
+
|
|
31
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
32
|
+
|
|
33
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
34
|
+
|
|
35
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
36
|
+
|
|
37
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
38
|
+
|
|
39
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
40
|
+
|
|
41
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
42
|
+
|
|
43
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
44
|
+
|
|
45
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
46
|
+
|
|
47
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
48
|
+
|
|
49
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
50
|
+
|
|
51
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
52
|
+
|
|
53
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
54
|
+
|
|
55
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("@typescript/old/lib/tsc.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("@typescript/old");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("@typescript/old");
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@typescript/typescript6",
|
|
3
|
+
"version": "6.0.2",
|
|
4
|
+
"author": "Microsoft Corp.",
|
|
5
|
+
"homepage": "https://www.typescriptlang.org/",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"TypeScript",
|
|
10
|
+
"Microsoft",
|
|
11
|
+
"compiler",
|
|
12
|
+
"language",
|
|
13
|
+
"javascript"
|
|
14
|
+
],
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/microsoft/TypeScript/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/microsoft/TypeScript.git"
|
|
21
|
+
},
|
|
22
|
+
"main": "./lib/typescript.js",
|
|
23
|
+
"types": "./lib/typescript.d.ts",
|
|
24
|
+
"bin": {
|
|
25
|
+
"tsc6": "./bin/tsc6"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"bin",
|
|
29
|
+
"lib",
|
|
30
|
+
"LICENSE.txt",
|
|
31
|
+
"README.md"
|
|
32
|
+
],
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@typescript/old": "npm:typescript@^6"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
}
|
|
39
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maverickcer/env-cap",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Secure, type-safe, framework-agnostic environment contracts. Contracts own the environment variables they consume; the package provides runtime validation and build-time contract discovery.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"environment",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"type": "module",
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
30
|
+
"node": ">=22.0.0"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
@@ -103,44 +103,59 @@
|
|
|
103
103
|
"files": [
|
|
104
104
|
"dist",
|
|
105
105
|
"schemas",
|
|
106
|
-
"
|
|
107
|
-
"
|
|
106
|
+
"LICENSE",
|
|
107
|
+
"/*.md",
|
|
108
|
+
"specs/**/*.md",
|
|
109
|
+
"skills/**/*.md",
|
|
110
|
+
"benchmarks/**/*.md",
|
|
111
|
+
"examples/README.md"
|
|
108
112
|
],
|
|
109
113
|
"scripts": {
|
|
110
|
-
"
|
|
114
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
115
|
+
"build": "npm run clean && tsup && tsc -p tsconfig.build.json && node scripts/emit-dts-shims.mjs && internal-package-contract tool cjs-interop",
|
|
111
116
|
"prepare": "npm run build",
|
|
112
117
|
"dev": "tsup --watch",
|
|
113
118
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
119
|
+
"typescript-compat": "node scripts/typescript-compat.mjs",
|
|
120
|
+
"verify:compiler-isolation": "internal-package-contract tool compiler-isolation",
|
|
114
121
|
"test": "vitest run",
|
|
115
122
|
"test:coverage": "vitest run --coverage",
|
|
116
123
|
"test:watch": "vitest",
|
|
117
|
-
"contract": "
|
|
124
|
+
"contract": "internal-package-contract",
|
|
118
125
|
"lint": "eslint .",
|
|
119
126
|
"format": "prettier --write .",
|
|
120
127
|
"format:check": "prettier --check .",
|
|
121
128
|
"setup": "npm install && npm run build && npm run schema",
|
|
122
|
-
"size": "
|
|
123
|
-
"verify:no-ambient-fs": "node scripts/verify-no-ambient-fs.mjs",
|
|
124
|
-
"verify:no-ambient-child-process": "node scripts/verify-no-ambient-child-process.mjs",
|
|
129
|
+
"size": "internal-package-contract tool size",
|
|
125
130
|
"schema": "node scripts/generate-json-schema.mjs",
|
|
126
131
|
"examples:update-golden": "node scripts/update-example-goldens.mjs",
|
|
127
132
|
"benchmark": "node scripts/run-benchmarks.mjs",
|
|
128
133
|
"docs:api": "typedoc",
|
|
134
|
+
"docs:env": "internal-package-contract env",
|
|
129
135
|
"docs:api:report": "typedoc --options typedoc.markdown.json",
|
|
130
|
-
"docs:api:report:check": "
|
|
136
|
+
"docs:api:report:check": "internal-package-contract tool api-report",
|
|
131
137
|
"docs:benchmarks": "node node_modules/internal-package-contract/scripts/benchmark/render-page.mjs --out docs/benchmarks/index.html --readme https://github.com/maverickcer/env-cap/blob/main/benchmarks/README.md --history \"Runtime|benchmarks/history/runtime.json\" --history \"Build-time|benchmarks/history/buildtime.json\"",
|
|
138
|
+
"verify:ambient": "internal-package-contract tool ambient",
|
|
132
139
|
"verify:readme-example": "node scripts/check-readme-example-fresh.mjs",
|
|
133
140
|
"stage": "npm run typecheck && npm run build && npm run test && npm run size",
|
|
134
|
-
"precommit": "npm run typecheck && npm run lint && npm run format && npm run build && npm run schema && npm run test:coverage && npm run size && npm run verify:
|
|
135
|
-
"verify": "npm run typecheck && npm run lint && npm run format:check && npm run build && npm run schema && npm run test:coverage && npm run size && npm run verify:
|
|
141
|
+
"precommit": "npm run typecheck && npm run lint && npm run format && npm run build && npm run schema && npm run test:coverage && npm run size && npm run verify:ambient && npm run verify:compiler-isolation && npm run docs:api:report:check && npm run verify:readme-example",
|
|
142
|
+
"verify": "npm run typecheck && npm run lint && npm run format:check && npm run build && npm run schema && npm run test:coverage && npm run size && npm run verify:ambient && npm run verify:compiler-isolation && npm run docs:api:report:check && npm run verify:readme-example",
|
|
136
143
|
"prepublishOnly": "npm run verify",
|
|
137
144
|
"version": "changeset version && npm run build && npm run examples:update-golden",
|
|
138
145
|
"release": "changeset publish",
|
|
139
146
|
"benchmark:check": "node scripts/run-benchmarks.mjs --check"
|
|
140
147
|
},
|
|
148
|
+
"dependencies": {
|
|
149
|
+
"@typescript/typescript6": "^6.0.2"
|
|
150
|
+
},
|
|
151
|
+
"bundleDependencies": [
|
|
152
|
+
"@typescript/typescript6",
|
|
153
|
+
"@typescript/old"
|
|
154
|
+
],
|
|
141
155
|
"peerDependencies": {
|
|
156
|
+
"@typescript-eslint/utils": "^8.0.0",
|
|
142
157
|
"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
|
|
143
|
-
"typescript": "^5.0.0"
|
|
158
|
+
"typescript": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
144
159
|
},
|
|
145
160
|
"peerDependenciesMeta": {
|
|
146
161
|
"typescript": {
|
|
@@ -148,29 +163,31 @@
|
|
|
148
163
|
},
|
|
149
164
|
"eslint": {
|
|
150
165
|
"optional": true
|
|
166
|
+
},
|
|
167
|
+
"@typescript-eslint/utils": {
|
|
168
|
+
"optional": true
|
|
151
169
|
}
|
|
152
170
|
},
|
|
153
171
|
"devDependencies": {
|
|
154
|
-
"@changesets/cli": "^
|
|
172
|
+
"@changesets/cli": "^3.0.3",
|
|
155
173
|
"@eslint/js": "^10.0.1",
|
|
156
|
-
"@types/node": "^
|
|
157
|
-
"@typescript-eslint/types": "^8.65.0",
|
|
174
|
+
"@types/node": "^22.0.0",
|
|
158
175
|
"@typescript-eslint/utils": "^8.65.0",
|
|
159
|
-
"@vitest/coverage-v8": "^
|
|
176
|
+
"@vitest/coverage-v8": "^5.0.3",
|
|
160
177
|
"ajv": "^8.20.0",
|
|
161
178
|
"esbuild": "^0.28.1",
|
|
162
179
|
"eslint": "^10.9.0",
|
|
163
180
|
"eslint-config-prettier": "10.1.8",
|
|
164
181
|
"globals": "^17.9.0",
|
|
165
|
-
"internal-package-contract": "github:MaverickCER/internal-package-contract#
|
|
166
|
-
"prettier": "3.9.
|
|
182
|
+
"internal-package-contract": "github:MaverickCER/internal-package-contract#v0.13.0",
|
|
183
|
+
"prettier": "3.9.9",
|
|
167
184
|
"ts-json-schema-generator": "^2.9.0",
|
|
168
185
|
"tsup": "^8.0.0",
|
|
169
186
|
"typedoc": "^0.28.20",
|
|
170
|
-
"typedoc-plugin-markdown": "4.13.
|
|
171
|
-
"typescript": "^
|
|
187
|
+
"typedoc-plugin-markdown": "4.13.1",
|
|
188
|
+
"typescript": "^6.0.3",
|
|
172
189
|
"typescript-eslint": "^8.65.0",
|
|
173
|
-
"vitest": "^
|
|
190
|
+
"vitest": "^5.0.3"
|
|
174
191
|
},
|
|
175
192
|
"overrides": {
|
|
176
193
|
"esbuild": "^0.28.1",
|
|
@@ -189,5 +206,40 @@
|
|
|
189
206
|
"allowScripts": {
|
|
190
207
|
"fsevents@2.3.3": true,
|
|
191
208
|
"esbuild@0.28.2": true
|
|
209
|
+
},
|
|
210
|
+
"internal-package-contract": {
|
|
211
|
+
"apiTargets": {
|
|
212
|
+
".": "src/runtime/index.ts"
|
|
213
|
+
},
|
|
214
|
+
"copies": [
|
|
215
|
+
"benchmark-budgets",
|
|
216
|
+
"build-fs",
|
|
217
|
+
"code-of-conduct",
|
|
218
|
+
"compiler-api",
|
|
219
|
+
"display-path",
|
|
220
|
+
"editorconfig",
|
|
221
|
+
"generated-banner",
|
|
222
|
+
"glob",
|
|
223
|
+
"no-node-fs",
|
|
224
|
+
"reading-benchmarks",
|
|
225
|
+
"releasing",
|
|
226
|
+
"resolve-tsconfig-paths",
|
|
227
|
+
"support",
|
|
228
|
+
"typedoc-markdown",
|
|
229
|
+
"typescript",
|
|
230
|
+
"writing-benchmarks"
|
|
231
|
+
],
|
|
232
|
+
"checks": [
|
|
233
|
+
"AgentSkill",
|
|
234
|
+
"AmbientCapabilities"
|
|
235
|
+
],
|
|
236
|
+
"ambientCapabilities": {
|
|
237
|
+
"child_process": [],
|
|
238
|
+
"fs": [
|
|
239
|
+
"bin",
|
|
240
|
+
"./eslint-plugin",
|
|
241
|
+
"./node"
|
|
242
|
+
]
|
|
243
|
+
}
|
|
192
244
|
}
|
|
193
245
|
}
|
|
@@ -1143,7 +1143,7 @@
|
|
|
1143
1143
|
"change"
|
|
1144
1144
|
],
|
|
1145
1145
|
"additionalProperties": false,
|
|
1146
|
-
"description": "The seventh canonical fact model (ADR 0024): the assembled union of the other six, plus provenance, the immutable input every `defineEvidenceProjection()` projector runs over (
|
|
1146
|
+
"description": "The seventh canonical fact model (ADR 0024): the assembled union of the other six, plus provenance, the immutable input every `defineEvidenceProjection()` projector runs over (`@maverickcer/env-cap/evidence`, ADR 0031)."
|
|
1147
1147
|
},
|
|
1148
1148
|
"EvidenceProvenance": {
|
|
1149
1149
|
"type": "object",
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: env-cap
|
|
3
|
+
description: Load when a task creates or edits an env.schema.ts, calls createEnv, documentEnv or validateEnv, or generates env-cap manifests, docs or reports. Skip it for other environment work.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# @maverickcer/env-cap
|
|
7
|
+
|
|
8
|
+
env-cap gives each capability (a feature, service or package) its own environment contract: declared once as a static schema, validated at startup, and documented and aggregated at build time.
|
|
9
|
+
|
|
10
|
+
Not for: loading .env files, storing secrets, or a single global env object.
|
|
11
|
+
|
|
12
|
+
## Use it
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
const prismaSchema = {
|
|
16
|
+
DATABASE_PROVIDER: {
|
|
17
|
+
validator: (value: string) =>
|
|
18
|
+
["postgresql", "mongodb"].includes(value) || "Unsupported provider.",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const prismaEnv = createEnv(prismaSchema, { name: "prisma", source: import.meta.url });
|
|
23
|
+
|
|
24
|
+
documentEnv(prismaSchema, {
|
|
25
|
+
category: "orm",
|
|
26
|
+
owner: "data-platform-team",
|
|
27
|
+
metadata: {
|
|
28
|
+
docs: "https://www.prisma.io/docs/orm/reference/connection-urls",
|
|
29
|
+
},
|
|
30
|
+
variables: {
|
|
31
|
+
DATABASE_PROVIDER: { description: "Which database provider Prisma should target." },
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
From `examples/team-service/features/prisma/env.schema.ts`.
|
|
37
|
+
|
|
38
|
+
## Import from
|
|
39
|
+
|
|
40
|
+
| Import | For |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| `@maverickcer/env-cap` | `createEnv`, `documentEnv`, `validateEnv`, `resetEnvCache`, the error types |
|
|
43
|
+
| `@maverickcer/env-cap/build` | Node only: discovery, analysis and generating the manifest, docs and reports |
|
|
44
|
+
| `@maverickcer/env-cap/helpers` | `processors` and `validators` |
|
|
45
|
+
| `@maverickcer/env-cap/node` | Node only: `nodeBuildFileSystem`, the file system a build script hands to `/build` |
|
|
46
|
+
| `@maverickcer/env-cap/evidence` | `defineEvidenceProjection`, pure transforms over the evidence model |
|
|
47
|
+
| `@maverickcer/env-cap/eslint-plugin` | Node only: the `no-raw-process-env` and `no-node-fs` lint rules |
|
|
48
|
+
| `@maverickcer/env-cap/schema` | The JSON Schema for `env-cap --json` output |
|
|
49
|
+
|
|
50
|
+
## Rules
|
|
51
|
+
|
|
52
|
+
- Write each schema as a static literal in the module that owns it: schemas are parsed as source, never executed, so spreads, factories and re-exports are not understood.
|
|
53
|
+
- Put `description`, `owner`, `expiresAt` and `category` in `documentEnv`. `createEnv` entries take `default`, `processor`, `validator`, `context`; its options `name` and `source: import.meta.url`.
|
|
54
|
+
- Read a value through its owning contract (`paymentsEnv.STRIPE_KEY`). Never build a merged env object.
|
|
55
|
+
- Call `validateEnv` once at startup, directly. Run the `generate*` functions only in a build script or CI.
|
|
56
|
+
- Import only from package.json exports; `/build`, `/node` and `/eslint-plugin` are Node-only, never in browser code.
|
|
57
|
+
|
|
58
|
+
## Rely on
|
|
59
|
+
|
|
60
|
+
- Reading a contract before `validateEnv` has run throws `EnvNotReadyError`.
|
|
61
|
+
- Errors never contain values. Keep raw values out of your own processor and validator messages, and do not spread a contract.
|
|
62
|
+
- `required: true` in `documentEnv` only documents a variable as required. Enforcement is the validator rejecting an empty value.
|
|
63
|
+
- `context` is a plain string your application activates, not a security boundary.
|
|
64
|
+
- Two contracts may declare one variable name. Conflicting processor return types and exclusive-group violations are errors; differing processor or validator sources warn, and block under `onIncompatibility: "throw"`.
|
|
65
|
+
|
|
66
|
+
## Common mistakes
|
|
67
|
+
|
|
68
|
+
| Instead of | Do this |
|
|
69
|
+
| --- | --- |
|
|
70
|
+
| `createEnv({ ...base })`, or a schema built by a function | Declare the schema as a literal object in the module that owns it, then pass that one binding to `createEnv` and `documentEnv`. |
|
|
71
|
+
| `transformer` | `processor`. There is no alias. |
|
|
72
|
+
| A live expiry fetched inside `env.schema.ts` | Keep a static `expiresAt`; pass `liveExpirationDates` to the generator. |
|
|
73
|
+
|
|
74
|
+
## Verify
|
|
75
|
+
|
|
76
|
+
1. Run the project's type check and tests.
|
|
77
|
+
2. After changing an `env.schema.ts`, update its `documentEnv()` entry and run `generate:env`. Commit generated files only if the project does; never hand-edit one.
|
|
78
|
+
3. Check imports against package.json exports.
|
|
79
|
+
|
|
80
|
+
Report any check you could not run, and any assumption you made.
|
|
81
|
+
|
|
82
|
+
## Go deeper
|
|
83
|
+
|
|
84
|
+
- [Every option of the generators and the CLI](https://github.com/MaverickCER/env-cap/blob/main/GUIDE.md)
|
|
85
|
+
- [Moving off dotenv, raw process.env, Zod, envalid or t3-env](https://github.com/MaverickCER/env-cap/blob/main/specs/migrations)
|
|
86
|
+
- [Why each rule exists](https://github.com/MaverickCER/env-cap/blob/main/specs/decisions)
|
|
87
|
+
- [Every public signature](https://github.com/MaverickCER/env-cap/blob/main/skills/env-cap/references/api.md)
|
|
88
|
+
|
|
89
|
+
## Authority
|
|
90
|
+
|
|
91
|
+
Target `@maverickcer/env-cap@0.7.0`. The installed package's exports and type declarations are the API: do not invent exports, options or return values. Behaviour is established by its tests and examples. If this skill and the code disagree, say so rather than guessing.
|