@dads-framework/toolbox 0.0.0-stage → 0.2.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/LICENSE.md +21 -0
- package/README.md +395 -2
- package/bin/dad.js +91 -0
- package/bin/usage.d.ts +2 -0
- package/bin/usage.js +37 -0
- package/dist/add-library-recipe.d.ts +23 -0
- package/dist/add-library-recipe.d.ts.map +1 -0
- package/dist/add-library-recipe.js +122 -0
- package/dist/add-library-recipe.js.map +1 -0
- package/dist/cli-baseline-commands.d.ts +2 -0
- package/dist/cli-baseline-commands.d.ts.map +1 -0
- package/dist/cli-baseline-commands.js +43 -0
- package/dist/cli-baseline-commands.js.map +1 -0
- package/dist/cli-boundary-commands.d.ts +2 -0
- package/dist/cli-boundary-commands.d.ts.map +1 -0
- package/dist/cli-boundary-commands.js +19 -0
- package/dist/cli-boundary-commands.js.map +1 -0
- package/dist/cli-doctor-commands.d.ts +58 -0
- package/dist/cli-doctor-commands.d.ts.map +1 -0
- package/dist/cli-doctor-commands.js +229 -0
- package/dist/cli-doctor-commands.js.map +1 -0
- package/dist/cli-doctor-gate.d.ts +52 -0
- package/dist/cli-doctor-gate.d.ts.map +1 -0
- package/dist/cli-doctor-gate.js +111 -0
- package/dist/cli-doctor-gate.js.map +1 -0
- package/dist/cli-documentation.d.ts +3 -0
- package/dist/cli-documentation.d.ts.map +1 -0
- package/dist/cli-documentation.js +13 -0
- package/dist/cli-documentation.js.map +1 -0
- package/dist/cli-generator-commands.d.ts +9 -0
- package/dist/cli-generator-commands.d.ts.map +1 -0
- package/dist/cli-generator-commands.js +68 -0
- package/dist/cli-generator-commands.js.map +1 -0
- package/dist/cli-inspection-commands.d.ts +12 -0
- package/dist/cli-inspection-commands.d.ts.map +1 -0
- package/dist/cli-inspection-commands.js +106 -0
- package/dist/cli-inspection-commands.js.map +1 -0
- package/dist/cli-io.d.ts +10 -0
- package/dist/cli-io.d.ts.map +1 -0
- package/dist/cli-io.js +28 -0
- package/dist/cli-io.js.map +1 -0
- package/dist/cli-library-commands.d.ts +2 -0
- package/dist/cli-library-commands.d.ts.map +1 -0
- package/dist/cli-library-commands.js +14 -0
- package/dist/cli-library-commands.js.map +1 -0
- package/dist/cli-project-commands.d.ts +4 -0
- package/dist/cli-project-commands.d.ts.map +1 -0
- package/dist/cli-project-commands.js +39 -0
- package/dist/cli-project-commands.js.map +1 -0
- package/dist/cli-route-inspection-commands.d.ts +2 -0
- package/dist/cli-route-inspection-commands.d.ts.map +1 -0
- package/dist/cli-route-inspection-commands.js +43 -0
- package/dist/cli-route-inspection-commands.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +82 -0
- package/dist/cli.js.map +1 -0
- package/dist/dads-initialization-arguments.d.ts +11 -0
- package/dist/dads-initialization-arguments.d.ts.map +1 -0
- package/dist/dads-initialization-arguments.js +88 -0
- package/dist/dads-initialization-arguments.js.map +1 -0
- package/dist/dependency-installation-receipt.d.ts +3 -0
- package/dist/dependency-installation-receipt.d.ts.map +1 -0
- package/dist/dependency-installation-receipt.js +37 -0
- package/dist/dependency-installation-receipt.js.map +1 -0
- package/dist/doctor/diagnose-workspace.d.ts +41 -0
- package/dist/doctor/diagnose-workspace.d.ts.map +1 -0
- package/dist/doctor/diagnose-workspace.js +65 -0
- package/dist/doctor/diagnose-workspace.js.map +1 -0
- package/dist/doctor/doctor-context.d.ts +142 -0
- package/dist/doctor/doctor-context.d.ts.map +1 -0
- package/dist/doctor/doctor-context.js +252 -0
- package/dist/doctor/doctor-context.js.map +1 -0
- package/dist/doctor/doctor-gate-base.d.ts +52 -0
- package/dist/doctor/doctor-gate-base.d.ts.map +1 -0
- package/dist/doctor/doctor-gate-base.js +240 -0
- package/dist/doctor/doctor-gate-base.js.map +1 -0
- package/dist/doctor/doctor-gate-baseline.d.ts +40 -0
- package/dist/doctor/doctor-gate-baseline.d.ts.map +1 -0
- package/dist/doctor/doctor-gate-baseline.js +209 -0
- package/dist/doctor/doctor-gate-baseline.js.map +1 -0
- package/dist/doctor/doctor-gate-model.d.ts +130 -0
- package/dist/doctor/doctor-gate-model.d.ts.map +1 -0
- package/dist/doctor/doctor-gate-model.js +89 -0
- package/dist/doctor/doctor-gate-model.js.map +1 -0
- package/dist/doctor/doctor-gate-render.d.ts +30 -0
- package/dist/doctor/doctor-gate-render.d.ts.map +1 -0
- package/dist/doctor/doctor-gate-render.js +75 -0
- package/dist/doctor/doctor-gate-render.js.map +1 -0
- package/dist/doctor/doctor-gate-retirements.d.ts +10 -0
- package/dist/doctor/doctor-gate-retirements.d.ts.map +1 -0
- package/dist/doctor/doctor-gate-retirements.js +155 -0
- package/dist/doctor/doctor-gate-retirements.js.map +1 -0
- package/dist/doctor/doctor-gate-states.d.ts +22 -0
- package/dist/doctor/doctor-gate-states.d.ts.map +1 -0
- package/dist/doctor/doctor-gate-states.js +254 -0
- package/dist/doctor/doctor-gate-states.js.map +1 -0
- package/dist/doctor/doctor-gate.d.ts +56 -0
- package/dist/doctor/doctor-gate.d.ts.map +1 -0
- package/dist/doctor/doctor-gate.js +295 -0
- package/dist/doctor/doctor-gate.js.map +1 -0
- package/dist/doctor/doctor-report.d.ts +101 -0
- package/dist/doctor/doctor-report.d.ts.map +1 -0
- package/dist/doctor/doctor-report.js +215 -0
- package/dist/doctor/doctor-report.js.map +1 -0
- package/dist/doctor/doctor-signal.d.ts +91 -0
- package/dist/doctor/doctor-signal.d.ts.map +1 -0
- package/dist/doctor/doctor-signal.js +41 -0
- package/dist/doctor/doctor-signal.js.map +1 -0
- package/dist/doctor/doctor-signals.d.ts +35 -0
- package/dist/doctor/doctor-signals.d.ts.map +1 -0
- package/dist/doctor/doctor-signals.js +65 -0
- package/dist/doctor/doctor-signals.js.map +1 -0
- package/dist/doctor/hatch-names.d.ts +26 -0
- package/dist/doctor/hatch-names.d.ts.map +1 -0
- package/dist/doctor/hatch-names.js +26 -0
- package/dist/doctor/hatch-names.js.map +1 -0
- package/dist/doctor/issue-catalog-attachment.d.ts +12 -0
- package/dist/doctor/issue-catalog-attachment.d.ts.map +1 -0
- package/dist/doctor/issue-catalog-attachment.js +241 -0
- package/dist/doctor/issue-catalog-attachment.js.map +1 -0
- package/dist/doctor/issue-catalog-enforcement.d.ts +12 -0
- package/dist/doctor/issue-catalog-enforcement.d.ts.map +1 -0
- package/dist/doctor/issue-catalog-enforcement.js +302 -0
- package/dist/doctor/issue-catalog-enforcement.js.map +1 -0
- package/dist/doctor/issues.d.ts +42 -0
- package/dist/doctor/issues.d.ts.map +1 -0
- package/dist/doctor/issues.js +27 -0
- package/dist/doctor/issues.js.map +1 -0
- package/dist/doctor/signals/anxious-attachment/blast-radius.d.ts +19 -0
- package/dist/doctor/signals/anxious-attachment/blast-radius.d.ts.map +1 -0
- package/dist/doctor/signals/anxious-attachment/blast-radius.js +44 -0
- package/dist/doctor/signals/anxious-attachment/blast-radius.js.map +1 -0
- package/dist/doctor/signals/anxious-attachment/copied-types.d.ts +18 -0
- package/dist/doctor/signals/anxious-attachment/copied-types.d.ts.map +1 -0
- package/dist/doctor/signals/anxious-attachment/copied-types.js +98 -0
- package/dist/doctor/signals/anxious-attachment/copied-types.js.map +1 -0
- package/dist/doctor/signals/anxious-attachment/duplicated-helpers.d.ts +23 -0
- package/dist/doctor/signals/anxious-attachment/duplicated-helpers.d.ts.map +1 -0
- package/dist/doctor/signals/anxious-attachment/duplicated-helpers.js +58 -0
- package/dist/doctor/signals/anxious-attachment/duplicated-helpers.js.map +1 -0
- package/dist/doctor/signals/anxious-attachment/kind-inversions.d.ts +25 -0
- package/dist/doctor/signals/anxious-attachment/kind-inversions.d.ts.map +1 -0
- package/dist/doctor/signals/anxious-attachment/kind-inversions.js +90 -0
- package/dist/doctor/signals/anxious-attachment/kind-inversions.js.map +1 -0
- package/dist/doctor/signals/anxious-attachment/vendor-outside-adapter.d.ts +21 -0
- package/dist/doctor/signals/anxious-attachment/vendor-outside-adapter.d.ts.map +1 -0
- package/dist/doctor/signals/anxious-attachment/vendor-outside-adapter.js +58 -0
- package/dist/doctor/signals/anxious-attachment/vendor-outside-adapter.js.map +1 -0
- package/dist/doctor/signals/anxious-attachment/vendor-types-in-surface.d.ts +22 -0
- package/dist/doctor/signals/anxious-attachment/vendor-types-in-surface.d.ts.map +1 -0
- package/dist/doctor/signals/anxious-attachment/vendor-types-in-surface.js +77 -0
- package/dist/doctor/signals/anxious-attachment/vendor-types-in-surface.js.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/docs-conformance-packages.d.ts +15 -0
- package/dist/doctor/signals/avoidant-attachment/docs-conformance-packages.d.ts.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/docs-conformance-packages.js +43 -0
- package/dist/doctor/signals/avoidant-attachment/docs-conformance-packages.js.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/invariants-files.d.ts +19 -0
- package/dist/doctor/signals/avoidant-attachment/invariants-files.d.ts.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/invariants-files.js +54 -0
- package/dist/doctor/signals/avoidant-attachment/invariants-files.js.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/readme-missing.d.ts +21 -0
- package/dist/doctor/signals/avoidant-attachment/readme-missing.d.ts.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/readme-missing.js +46 -0
- package/dist/doctor/signals/avoidant-attachment/readme-missing.js.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/readme-nonconformant.d.ts +23 -0
- package/dist/doctor/signals/avoidant-attachment/readme-nonconformant.d.ts.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/readme-nonconformant.js +67 -0
- package/dist/doctor/signals/avoidant-attachment/readme-nonconformant.js.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/responses-outside-envelope.d.ts +21 -0
- package/dist/doctor/signals/avoidant-attachment/responses-outside-envelope.d.ts.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/responses-outside-envelope.js +59 -0
- package/dist/doctor/signals/avoidant-attachment/responses-outside-envelope.js.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/routes-without-access.d.ts +17 -0
- package/dist/doctor/signals/avoidant-attachment/routes-without-access.d.ts.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/routes-without-access.js +38 -0
- package/dist/doctor/signals/avoidant-attachment/routes-without-access.js.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/routes-without-schema.d.ts +21 -0
- package/dist/doctor/signals/avoidant-attachment/routes-without-schema.d.ts.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/routes-without-schema.js +63 -0
- package/dist/doctor/signals/avoidant-attachment/routes-without-schema.js.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/undocumented-exports.d.ts +18 -0
- package/dist/doctor/signals/avoidant-attachment/undocumented-exports.d.ts.map +1 -0
- package/dist/doctor/signals/avoidant-attachment/undocumented-exports.js +64 -0
- package/dist/doctor/signals/avoidant-attachment/undocumented-exports.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/access-without-denial-test.d.ts +21 -0
- package/dist/doctor/signals/commitment-issues/access-without-denial-test.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/access-without-denial-test.js +57 -0
- package/dist/doctor/signals/commitment-issues/access-without-denial-test.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/denial-tests-zero.d.ts +18 -0
- package/dist/doctor/signals/commitment-issues/denial-tests-zero.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/denial-tests-zero.js +68 -0
- package/dist/doctor/signals/commitment-issues/denial-tests-zero.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/mutations-without-ownership.d.ts +19 -0
- package/dist/doctor/signals/commitment-issues/mutations-without-ownership.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/mutations-without-ownership.js +66 -0
- package/dist/doctor/signals/commitment-issues/mutations-without-ownership.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/sequential-authz-writes.d.ts +25 -0
- package/dist/doctor/signals/commitment-issues/sequential-authz-writes.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/sequential-authz-writes.js +95 -0
- package/dist/doctor/signals/commitment-issues/sequential-authz-writes.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/single-implementer-abstractions.d.ts +19 -0
- package/dist/doctor/signals/commitment-issues/single-implementer-abstractions.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/single-implementer-abstractions.js +44 -0
- package/dist/doctor/signals/commitment-issues/single-implementer-abstractions.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/skipped-tests.d.ts +15 -0
- package/dist/doctor/signals/commitment-issues/skipped-tests.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/skipped-tests.js +46 -0
- package/dist/doctor/signals/commitment-issues/skipped-tests.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/soundness-cases.d.ts +12 -0
- package/dist/doctor/signals/commitment-issues/soundness-cases.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/soundness-cases.js +36 -0
- package/dist/doctor/signals/commitment-issues/soundness-cases.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/test-count.d.ts +18 -0
- package/dist/doctor/signals/commitment-issues/test-count.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/test-count.js +111 -0
- package/dist/doctor/signals/commitment-issues/test-count.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/todo-age.d.ts +24 -0
- package/dist/doctor/signals/commitment-issues/todo-age.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/todo-age.js +73 -0
- package/dist/doctor/signals/commitment-issues/todo-age.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/todo-check-permission.d.ts +27 -0
- package/dist/doctor/signals/commitment-issues/todo-check-permission.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/todo-check-permission.js +82 -0
- package/dist/doctor/signals/commitment-issues/todo-check-permission.js.map +1 -0
- package/dist/doctor/signals/commitment-issues/type-test-negative-cases.d.ts +19 -0
- package/dist/doctor/signals/commitment-issues/type-test-negative-cases.d.ts.map +1 -0
- package/dist/doctor/signals/commitment-issues/type-test-negative-cases.js +101 -0
- package/dist/doctor/signals/commitment-issues/type-test-negative-cases.js.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/ci-duration-trend.d.ts +22 -0
- package/dist/doctor/signals/dad-has-issues-too/ci-duration-trend.d.ts.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/ci-duration-trend.js +80 -0
- package/dist/doctor/signals/dad-has-issues-too/ci-duration-trend.js.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/doctor-cases.d.ts +21 -0
- package/dist/doctor/signals/dad-has-issues-too/doctor-cases.d.ts.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/doctor-cases.js +71 -0
- package/dist/doctor/signals/dad-has-issues-too/doctor-cases.js.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/guards-fail-closed.d.ts +24 -0
- package/dist/doctor/signals/dad-has-issues-too/guards-fail-closed.d.ts.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/guards-fail-closed.js +52 -0
- package/dist/doctor/signals/dad-has-issues-too/guards-fail-closed.js.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/hook-runtime.d.ts +3 -0
- package/dist/doctor/signals/dad-has-issues-too/hook-runtime.d.ts.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/hook-runtime.js +66 -0
- package/dist/doctor/signals/dad-has-issues-too/hook-runtime.js.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/nondeterministic-generated-files.d.ts +22 -0
- package/dist/doctor/signals/dad-has-issues-too/nondeterministic-generated-files.d.ts.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/nondeterministic-generated-files.js +69 -0
- package/dist/doctor/signals/dad-has-issues-too/nondeterministic-generated-files.js.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/stagnant-debt.d.ts +22 -0
- package/dist/doctor/signals/dad-has-issues-too/stagnant-debt.d.ts.map +1 -0
- package/dist/doctor/signals/dad-has-issues-too/stagnant-debt.js +55 -0
- package/dist/doctor/signals/dad-has-issues-too/stagnant-debt.js.map +1 -0
- package/dist/doctor/signals/daddy-issues/explicit-any.d.ts +17 -0
- package/dist/doctor/signals/daddy-issues/explicit-any.d.ts.map +1 -0
- package/dist/doctor/signals/daddy-issues/explicit-any.js +35 -0
- package/dist/doctor/signals/daddy-issues/explicit-any.js.map +1 -0
- package/dist/doctor/signals/daddy-issues/lint-suppression-comments.d.ts +20 -0
- package/dist/doctor/signals/daddy-issues/lint-suppression-comments.d.ts.map +1 -0
- package/dist/doctor/signals/daddy-issues/lint-suppression-comments.js +43 -0
- package/dist/doctor/signals/daddy-issues/lint-suppression-comments.js.map +1 -0
- package/dist/doctor/signals/daddy-issues/non-null-assertions.d.ts +14 -0
- package/dist/doctor/signals/daddy-issues/non-null-assertions.d.ts.map +1 -0
- package/dist/doctor/signals/daddy-issues/non-null-assertions.js +32 -0
- package/dist/doctor/signals/daddy-issues/non-null-assertions.js.map +1 -0
- package/dist/doctor/signals/daddy-issues/ts-suppressions.d.ts +15 -0
- package/dist/doctor/signals/daddy-issues/ts-suppressions.d.ts.map +1 -0
- package/dist/doctor/signals/daddy-issues/ts-suppressions.js +43 -0
- package/dist/doctor/signals/daddy-issues/ts-suppressions.js.map +1 -0
- package/dist/doctor/signals/daddy-issues/type-assertions.d.ts +16 -0
- package/dist/doctor/signals/daddy-issues/type-assertions.d.ts.map +1 -0
- package/dist/doctor/signals/daddy-issues/type-assertions.js +35 -0
- package/dist/doctor/signals/daddy-issues/type-assertions.js.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/assertions-in-tests.d.ts +15 -0
- package/dist/doctor/signals/disorganized-attachment/assertions-in-tests.d.ts.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/assertions-in-tests.js +34 -0
- package/dist/doctor/signals/disorganized-attachment/assertions-in-tests.js.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/duplicate-wire-schemas.d.ts +23 -0
- package/dist/doctor/signals/disorganized-attachment/duplicate-wire-schemas.d.ts.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/duplicate-wire-schemas.js +125 -0
- package/dist/doctor/signals/disorganized-attachment/duplicate-wire-schemas.js.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/interface-type-mix.d.ts +15 -0
- package/dist/doctor/signals/disorganized-attachment/interface-type-mix.d.ts.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/interface-type-mix.js +33 -0
- package/dist/doctor/signals/disorganized-attachment/interface-type-mix.js.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/jsonb-without-schema.d.ts +27 -0
- package/dist/doctor/signals/disorganized-attachment/jsonb-without-schema.d.ts.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/jsonb-without-schema.js +160 -0
- package/dist/doctor/signals/disorganized-attachment/jsonb-without-schema.js.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/migrations-out-of-order.d.ts +27 -0
- package/dist/doctor/signals/disorganized-attachment/migrations-out-of-order.d.ts.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/migrations-out-of-order.js +164 -0
- package/dist/doctor/signals/disorganized-attachment/migrations-out-of-order.js.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/unparsed-boundary-reads.d.ts +31 -0
- package/dist/doctor/signals/disorganized-attachment/unparsed-boundary-reads.d.ts.map +1 -0
- package/dist/doctor/signals/disorganized-attachment/unparsed-boundary-reads.js +138 -0
- package/dist/doctor/signals/disorganized-attachment/unparsed-boundary-reads.js.map +1 -0
- package/dist/doctor/signals/enmeshment/barrel-impurity.d.ts +20 -0
- package/dist/doctor/signals/enmeshment/barrel-impurity.d.ts.map +1 -0
- package/dist/doctor/signals/enmeshment/barrel-impurity.js +44 -0
- package/dist/doctor/signals/enmeshment/barrel-impurity.js.map +1 -0
- package/dist/doctor/signals/enmeshment/clippy-allows.d.ts +24 -0
- package/dist/doctor/signals/enmeshment/clippy-allows.d.ts.map +1 -0
- package/dist/doctor/signals/enmeshment/clippy-allows.js +84 -0
- package/dist/doctor/signals/enmeshment/clippy-allows.js.map +1 -0
- package/dist/doctor/signals/enmeshment/fan-out.d.ts +19 -0
- package/dist/doctor/signals/enmeshment/fan-out.d.ts.map +1 -0
- package/dist/doctor/signals/enmeshment/fan-out.js +50 -0
- package/dist/doctor/signals/enmeshment/fan-out.js.map +1 -0
- package/dist/doctor/signals/enmeshment/files-over-ceiling.d.ts +15 -0
- package/dist/doctor/signals/enmeshment/files-over-ceiling.d.ts.map +1 -0
- package/dist/doctor/signals/enmeshment/files-over-ceiling.js +40 -0
- package/dist/doctor/signals/enmeshment/files-over-ceiling.js.map +1 -0
- package/dist/doctor/signals/enmeshment/functions-over-ceiling.d.ts +22 -0
- package/dist/doctor/signals/enmeshment/functions-over-ceiling.d.ts.map +1 -0
- package/dist/doctor/signals/enmeshment/functions-over-ceiling.js +139 -0
- package/dist/doctor/signals/enmeshment/functions-over-ceiling.js.map +1 -0
- package/dist/doctor/signals/enmeshment/god-classes.d.ts +17 -0
- package/dist/doctor/signals/enmeshment/god-classes.d.ts.map +1 -0
- package/dist/doctor/signals/enmeshment/god-classes.js +55 -0
- package/dist/doctor/signals/enmeshment/god-classes.js.map +1 -0
- package/dist/doctor/signals/enmeshment/intra-package-cycles.d.ts +24 -0
- package/dist/doctor/signals/enmeshment/intra-package-cycles.d.ts.map +1 -0
- package/dist/doctor/signals/enmeshment/intra-package-cycles.js +91 -0
- package/dist/doctor/signals/enmeshment/intra-package-cycles.js.map +1 -0
- package/dist/doctor/signals/enmeshment/rust-inline-tests.d.ts +16 -0
- package/dist/doctor/signals/enmeshment/rust-inline-tests.d.ts.map +1 -0
- package/dist/doctor/signals/enmeshment/rust-inline-tests.js +39 -0
- package/dist/doctor/signals/enmeshment/rust-inline-tests.js.map +1 -0
- package/dist/doctor/signals/enmeshment/test-files-over-ceiling.d.ts +14 -0
- package/dist/doctor/signals/enmeshment/test-files-over-ceiling.d.ts.map +1 -0
- package/dist/doctor/signals/enmeshment/test-files-over-ceiling.js +39 -0
- package/dist/doctor/signals/enmeshment/test-files-over-ceiling.js.map +1 -0
- package/dist/doctor/signals/failure-to-launch/lists-without-filter.d.ts +16 -0
- package/dist/doctor/signals/failure-to-launch/lists-without-filter.d.ts.map +1 -0
- package/dist/doctor/signals/failure-to-launch/lists-without-filter.js +38 -0
- package/dist/doctor/signals/failure-to-launch/lists-without-filter.js.map +1 -0
- package/dist/doctor/signals/failure-to-launch/logic-in-controllers.d.ts +19 -0
- package/dist/doctor/signals/failure-to-launch/logic-in-controllers.d.ts.map +1 -0
- package/dist/doctor/signals/failure-to-launch/logic-in-controllers.js +39 -0
- package/dist/doctor/signals/failure-to-launch/logic-in-controllers.js.map +1 -0
- package/dist/doctor/signals/failure-to-launch/packages-without-surface.d.ts +24 -0
- package/dist/doctor/signals/failure-to-launch/packages-without-surface.d.ts.map +1 -0
- package/dist/doctor/signals/failure-to-launch/packages-without-surface.js +82 -0
- package/dist/doctor/signals/failure-to-launch/packages-without-surface.js.map +1 -0
- package/dist/doctor/signals/failure-to-launch/reorganization-churn.d.ts +21 -0
- package/dist/doctor/signals/failure-to-launch/reorganization-churn.d.ts.map +1 -0
- package/dist/doctor/signals/failure-to-launch/reorganization-churn.js +62 -0
- package/dist/doctor/signals/failure-to-launch/reorganization-churn.js.map +1 -0
- package/dist/doctor/signals/failure-to-launch/strict-profile-absent.d.ts +19 -0
- package/dist/doctor/signals/failure-to-launch/strict-profile-absent.d.ts.map +1 -0
- package/dist/doctor/signals/failure-to-launch/strict-profile-absent.js +65 -0
- package/dist/doctor/signals/failure-to-launch/strict-profile-absent.js.map +1 -0
- package/dist/doctor/signals/gaslighting/baseline-entries-without-reason.d.ts +21 -0
- package/dist/doctor/signals/gaslighting/baseline-entries-without-reason.d.ts.map +1 -0
- package/dist/doctor/signals/gaslighting/baseline-entries-without-reason.js +66 -0
- package/dist/doctor/signals/gaslighting/baseline-entries-without-reason.js.map +1 -0
- package/dist/doctor/signals/gaslighting/exempt-globs.d.ts +21 -0
- package/dist/doctor/signals/gaslighting/exempt-globs.d.ts.map +1 -0
- package/dist/doctor/signals/gaslighting/exempt-globs.js +59 -0
- package/dist/doctor/signals/gaslighting/exempt-globs.js.map +1 -0
- package/dist/doctor/signals/gaslighting/generated-access-hand-edited.d.ts +21 -0
- package/dist/doctor/signals/gaslighting/generated-access-hand-edited.d.ts.map +1 -0
- package/dist/doctor/signals/gaslighting/generated-access-hand-edited.js +70 -0
- package/dist/doctor/signals/gaslighting/generated-access-hand-edited.js.map +1 -0
- package/dist/doctor/signals/gaslighting/generated-tables-hand-edited.d.ts +25 -0
- package/dist/doctor/signals/gaslighting/generated-tables-hand-edited.d.ts.map +1 -0
- package/dist/doctor/signals/gaslighting/generated-tables-hand-edited.js +82 -0
- package/dist/doctor/signals/gaslighting/generated-tables-hand-edited.js.map +1 -0
- package/dist/doctor/signals/gaslighting/marks-raised-in-history.d.ts +27 -0
- package/dist/doctor/signals/gaslighting/marks-raised-in-history.d.ts.map +1 -0
- package/dist/doctor/signals/gaslighting/marks-raised-in-history.js +101 -0
- package/dist/doctor/signals/gaslighting/marks-raised-in-history.js.map +1 -0
- package/dist/doctor/signals/gaslighting/migrations-edited.d.ts +31 -0
- package/dist/doctor/signals/gaslighting/migrations-edited.d.ts.map +1 -0
- package/dist/doctor/signals/gaslighting/migrations-edited.js +107 -0
- package/dist/doctor/signals/gaslighting/migrations-edited.js.map +1 -0
- package/dist/doctor/signals/gaslighting/suppressions-without-description.d.ts +30 -0
- package/dist/doctor/signals/gaslighting/suppressions-without-description.d.ts.map +1 -0
- package/dist/doctor/signals/gaslighting/suppressions-without-description.js +68 -0
- package/dist/doctor/signals/gaslighting/suppressions-without-description.js.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/branch-protection-off.d.ts +24 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/branch-protection-off.d.ts.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/branch-protection-off.js +79 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/branch-protection-off.js.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/ci-without-verify.d.ts +21 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/ci-without-verify.d.ts.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/ci-without-verify.js +81 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/ci-without-verify.js.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/compiler-flags-off.d.ts +24 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/compiler-flags-off.d.ts.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/compiler-flags-off.js +73 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/compiler-flags-off.js.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/force-push-in-workflows.d.ts +24 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/force-push-in-workflows.d.ts.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/force-push-in-workflows.js +46 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/force-push-in-workflows.js.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/hooks-not-wired.d.ts +22 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/hooks-not-wired.d.ts.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/hooks-not-wired.js +62 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/hooks-not-wired.js.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/kinds-undeclared.d.ts +22 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/kinds-undeclared.d.ts.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/kinds-undeclared.js +104 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/kinds-undeclared.js.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/lint-rules.d.ts +17 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/lint-rules.d.ts.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/lint-rules.js +40 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/lint-rules.js.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/no-verify-in-scripts.d.ts +26 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/no-verify-in-scripts.d.ts.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/no-verify-in-scripts.js +58 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/no-verify-in-scripts.js.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/rows-sent-whole.d.ts +25 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/rows-sent-whole.d.ts.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/rows-sent-whole.js +111 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/rows-sent-whole.js.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/rules-at-warn.d.ts +18 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/rules-at-warn.d.ts.map +1 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/rules-at-warn.js +41 -0
- package/dist/doctor/signals/its-not-you-its-my-boundaries/rules-at-warn.js.map +1 -0
- package/dist/doctor/signals/people-pleasing/denial-with-body.d.ts +19 -0
- package/dist/doctor/signals/people-pleasing/denial-with-body.d.ts.map +1 -0
- package/dist/doctor/signals/people-pleasing/denial-with-body.js +84 -0
- package/dist/doctor/signals/people-pleasing/denial-with-body.js.map +1 -0
- package/dist/doctor/signals/people-pleasing/deprecated-still-consumed.d.ts +16 -0
- package/dist/doctor/signals/people-pleasing/deprecated-still-consumed.d.ts.map +1 -0
- package/dist/doctor/signals/people-pleasing/deprecated-still-consumed.js +87 -0
- package/dist/doctor/signals/people-pleasing/deprecated-still-consumed.js.map +1 -0
- package/dist/doctor/signals/people-pleasing/forbidden-403.d.ts +18 -0
- package/dist/doctor/signals/people-pleasing/forbidden-403.d.ts.map +1 -0
- package/dist/doctor/signals/people-pleasing/forbidden-403.js +49 -0
- package/dist/doctor/signals/people-pleasing/forbidden-403.js.map +1 -0
- package/dist/doctor/signals/people-pleasing/loose-contract-objects.d.ts +31 -0
- package/dist/doctor/signals/people-pleasing/loose-contract-objects.d.ts.map +1 -0
- package/dist/doctor/signals/people-pleasing/loose-contract-objects.js +166 -0
- package/dist/doctor/signals/people-pleasing/loose-contract-objects.js.map +1 -0
- package/dist/doctor/signals/people-pleasing/multi-shape-responses.d.ts +19 -0
- package/dist/doctor/signals/people-pleasing/multi-shape-responses.d.ts.map +1 -0
- package/dist/doctor/signals/people-pleasing/multi-shape-responses.js +63 -0
- package/dist/doctor/signals/people-pleasing/multi-shape-responses.js.map +1 -0
- package/dist/doctor/signals/people-pleasing/optional-creep.d.ts +20 -0
- package/dist/doctor/signals/people-pleasing/optional-creep.d.ts.map +1 -0
- package/dist/doctor/signals/people-pleasing/optional-creep.js +109 -0
- package/dist/doctor/signals/people-pleasing/optional-creep.js.map +1 -0
- package/dist/doctor/signals/people-pleasing/raw-errors-in-ui.d.ts +19 -0
- package/dist/doctor/signals/people-pleasing/raw-errors-in-ui.d.ts.map +1 -0
- package/dist/doctor/signals/people-pleasing/raw-errors-in-ui.js +42 -0
- package/dist/doctor/signals/people-pleasing/raw-errors-in-ui.js.map +1 -0
- package/dist/doctor/signals/registry/foundation.d.ts +13 -0
- package/dist/doctor/signals/registry/foundation.d.ts.map +1 -0
- package/dist/doctor/signals/registry/foundation.js +45 -0
- package/dist/doctor/signals/registry/foundation.js.map +1 -0
- package/dist/doctor/signals/registry/git.d.ts +23 -0
- package/dist/doctor/signals/registry/git.d.ts.map +1 -0
- package/dist/doctor/signals/registry/git.js +41 -0
- package/dist/doctor/signals/registry/git.js.map +1 -0
- package/dist/doctor/signals/registry/online.d.ts +20 -0
- package/dist/doctor/signals/registry/online.d.ts.map +1 -0
- package/dist/doctor/signals/registry/online.js +26 -0
- package/dist/doctor/signals/registry/online.js.map +1 -0
- package/dist/doctor/signals/registry/packages.d.ts +17 -0
- package/dist/doctor/signals/registry/packages.d.ts.map +1 -0
- package/dist/doctor/signals/registry/packages.js +37 -0
- package/dist/doctor/signals/registry/packages.js.map +1 -0
- package/dist/doctor/signals/registry/routes.d.ts +20 -0
- package/dist/doctor/signals/registry/routes.d.ts.map +1 -0
- package/dist/doctor/signals/registry/routes.js +38 -0
- package/dist/doctor/signals/registry/routes.js.map +1 -0
- package/dist/doctor/signals/registry/stored-and-sent.d.ts +18 -0
- package/dist/doctor/signals/registry/stored-and-sent.d.ts.map +1 -0
- package/dist/doctor/signals/registry/stored-and-sent.js +40 -0
- package/dist/doctor/signals/registry/stored-and-sent.js.map +1 -0
- package/dist/doctor/signals/registry/text-and-packages.d.ts +17 -0
- package/dist/doctor/signals/registry/text-and-packages.d.ts.map +1 -0
- package/dist/doctor/signals/registry/text-and-packages.js +57 -0
- package/dist/doctor/signals/registry/text-and-packages.js.map +1 -0
- package/dist/doctor/signals/registry/typescript.d.ts +16 -0
- package/dist/doctor/signals/registry/typescript.d.ts.map +1 -0
- package/dist/doctor/signals/registry/typescript.js +72 -0
- package/dist/doctor/signals/registry/typescript.js.map +1 -0
- package/dist/doctor/signals/scanners/access-artifacts.d.ts +23 -0
- package/dist/doctor/signals/scanners/access-artifacts.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/access-artifacts.js +46 -0
- package/dist/doctor/signals/scanners/access-artifacts.js.map +1 -0
- package/dist/doctor/signals/scanners/capability-model.d.ts +41 -0
- package/dist/doctor/signals/scanners/capability-model.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/capability-model.js +154 -0
- package/dist/doctor/signals/scanners/capability-model.js.map +1 -0
- package/dist/doctor/signals/scanners/counted-lines.d.ts +39 -0
- package/dist/doctor/signals/scanners/counted-lines.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/counted-lines.js +196 -0
- package/dist/doctor/signals/scanners/counted-lines.js.map +1 -0
- package/dist/doctor/signals/scanners/generated-artifacts.d.ts +32 -0
- package/dist/doctor/signals/scanners/generated-artifacts.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/generated-artifacts.js +137 -0
- package/dist/doctor/signals/scanners/generated-artifacts.js.map +1 -0
- package/dist/doctor/signals/scanners/git-history.d.ts +95 -0
- package/dist/doctor/signals/scanners/git-history.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/git-history.js +0 -0
- package/dist/doctor/signals/scanners/git-history.js.map +1 -0
- package/dist/doctor/signals/scanners/lint-configuration.d.ts +29 -0
- package/dist/doctor/signals/scanners/lint-configuration.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/lint-configuration.js +75 -0
- package/dist/doctor/signals/scanners/lint-configuration.js.map +1 -0
- package/dist/doctor/signals/scanners/migration-base.d.ts +27 -0
- package/dist/doctor/signals/scanners/migration-base.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/migration-base.js +58 -0
- package/dist/doctor/signals/scanners/migration-base.js.map +1 -0
- package/dist/doctor/signals/scanners/migration-files.d.ts +34 -0
- package/dist/doctor/signals/scanners/migration-files.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/migration-files.js +82 -0
- package/dist/doctor/signals/scanners/migration-files.js.map +1 -0
- package/dist/doctor/signals/scanners/online-requests.d.ts +67 -0
- package/dist/doctor/signals/scanners/online-requests.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/online-requests.js +136 -0
- package/dist/doctor/signals/scanners/online-requests.js.map +1 -0
- package/dist/doctor/signals/scanners/package-graph.d.ts +76 -0
- package/dist/doctor/signals/scanners/package-graph.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/package-graph.js +252 -0
- package/dist/doctor/signals/scanners/package-graph.js.map +1 -0
- package/dist/doctor/signals/scanners/ratchet-baseline-history.d.ts +72 -0
- package/dist/doctor/signals/scanners/ratchet-baseline-history.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/ratchet-baseline-history.js +149 -0
- package/dist/doctor/signals/scanners/ratchet-baseline-history.js.map +1 -0
- package/dist/doctor/signals/scanners/raw-failures.d.ts +22 -0
- package/dist/doctor/signals/scanners/raw-failures.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/raw-failures.js +107 -0
- package/dist/doctor/signals/scanners/raw-failures.js.map +1 -0
- package/dist/doctor/signals/scanners/rendered-copy.d.ts +28 -0
- package/dist/doctor/signals/scanners/rendered-copy.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/rendered-copy.js +182 -0
- package/dist/doctor/signals/scanners/rendered-copy.js.map +1 -0
- package/dist/doctor/signals/scanners/response-code.d.ts +23 -0
- package/dist/doctor/signals/scanners/response-code.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/response-code.js +40 -0
- package/dist/doctor/signals/scanners/response-code.js.map +1 -0
- package/dist/doctor/signals/scanners/route-model.d.ts +22 -0
- package/dist/doctor/signals/scanners/route-model.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/route-model.js +45 -0
- package/dist/doctor/signals/scanners/route-model.js.map +1 -0
- package/dist/doctor/signals/scanners/source-classification.d.ts +29 -0
- package/dist/doctor/signals/scanners/source-classification.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/source-classification.js +66 -0
- package/dist/doctor/signals/scanners/source-classification.js.map +1 -0
- package/dist/doctor/signals/scanners/text-agent-harness.d.ts +38 -0
- package/dist/doctor/signals/scanners/text-agent-harness.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/text-agent-harness.js +86 -0
- package/dist/doctor/signals/scanners/text-agent-harness.js.map +1 -0
- package/dist/doctor/signals/scanners/text-bypass-marks.d.ts +20 -0
- package/dist/doctor/signals/scanners/text-bypass-marks.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/text-bypass-marks.js +20 -0
- package/dist/doctor/signals/scanners/text-bypass-marks.js.map +1 -0
- package/dist/doctor/signals/scanners/text-ci-workflows.d.ts +23 -0
- package/dist/doctor/signals/scanners/text-ci-workflows.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/text-ci-workflows.js +50 -0
- package/dist/doctor/signals/scanners/text-ci-workflows.js.map +1 -0
- package/dist/doctor/signals/scanners/text-comment-scan.d.ts +29 -0
- package/dist/doctor/signals/scanners/text-comment-scan.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/text-comment-scan.js +108 -0
- package/dist/doctor/signals/scanners/text-comment-scan.js.map +1 -0
- package/dist/doctor/signals/scanners/text-declared-packages.d.ts +28 -0
- package/dist/doctor/signals/scanners/text-declared-packages.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/text-declared-packages.js +44 -0
- package/dist/doctor/signals/scanners/text-declared-packages.js.map +1 -0
- package/dist/doctor/signals/scanners/text-permission-marks.d.ts +25 -0
- package/dist/doctor/signals/scanners/text-permission-marks.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/text-permission-marks.js +25 -0
- package/dist/doctor/signals/scanners/text-permission-marks.js.map +1 -0
- package/dist/doctor/signals/scanners/text-ratchet-baseline.d.ts +27 -0
- package/dist/doctor/signals/scanners/text-ratchet-baseline.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/text-ratchet-baseline.js +54 -0
- package/dist/doctor/signals/scanners/text-ratchet-baseline.js.map +1 -0
- package/dist/doctor/signals/scanners/text-suppressions-file.d.ts +28 -0
- package/dist/doctor/signals/scanners/text-suppressions-file.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/text-suppressions-file.js +46 -0
- package/dist/doctor/signals/scanners/text-suppressions-file.js.map +1 -0
- package/dist/doctor/signals/scanners/top-level-declarations.d.ts +34 -0
- package/dist/doctor/signals/scanners/top-level-declarations.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/top-level-declarations.js +206 -0
- package/dist/doctor/signals/scanners/top-level-declarations.js.map +1 -0
- package/dist/doctor/signals/scanners/typescript-program.d.ts +172 -0
- package/dist/doctor/signals/scanners/typescript-program.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/typescript-program.js +431 -0
- package/dist/doctor/signals/scanners/typescript-program.js.map +1 -0
- package/dist/doctor/signals/scanners/web-renderers.d.ts +24 -0
- package/dist/doctor/signals/scanners/web-renderers.d.ts.map +1 -0
- package/dist/doctor/signals/scanners/web-renderers.js +53 -0
- package/dist/doctor/signals/scanners/web-renderers.js.map +1 -0
- package/dist/doctor/signals/the-paper-wall/explicit-wrapper-conformance.d.ts +3 -0
- package/dist/doctor/signals/the-paper-wall/explicit-wrapper-conformance.d.ts.map +1 -0
- package/dist/doctor/signals/the-paper-wall/explicit-wrapper-conformance.js +257 -0
- package/dist/doctor/signals/the-paper-wall/explicit-wrapper-conformance.js.map +1 -0
- package/dist/doctor/signals/the-paper-wall/no-in-memory-provider.d.ts +19 -0
- package/dist/doctor/signals/the-paper-wall/no-in-memory-provider.d.ts.map +1 -0
- package/dist/doctor/signals/the-paper-wall/no-in-memory-provider.js +50 -0
- package/dist/doctor/signals/the-paper-wall/no-in-memory-provider.js.map +1 -0
- package/dist/doctor/signals/the-paper-wall/provider-chosen-outside-root.d.ts +23 -0
- package/dist/doctor/signals/the-paper-wall/provider-chosen-outside-root.d.ts.map +1 -0
- package/dist/doctor/signals/the-paper-wall/provider-chosen-outside-root.js +91 -0
- package/dist/doctor/signals/the-paper-wall/provider-chosen-outside-root.js.map +1 -0
- package/dist/doctor/signals/the-paper-wall/wrapper-without-conformance.d.ts +24 -0
- package/dist/doctor/signals/the-paper-wall/wrapper-without-conformance.d.ts.map +1 -0
- package/dist/doctor/signals/the-paper-wall/wrapper-without-conformance.js +81 -0
- package/dist/doctor/signals/the-paper-wall/wrapper-without-conformance.js.map +1 -0
- package/dist/doctor/signals/the-silent-treatment/suppressed-violations.d.ts +21 -0
- package/dist/doctor/signals/the-silent-treatment/suppressed-violations.d.ts.map +1 -0
- package/dist/doctor/signals/the-silent-treatment/suppressed-violations.js +48 -0
- package/dist/doctor/signals/the-silent-treatment/suppressed-violations.js.map +1 -0
- package/dist/doctor/signals/the-silent-treatment/suppression-age.d.ts +22 -0
- package/dist/doctor/signals/the-silent-treatment/suppression-age.d.ts.map +1 -0
- package/dist/doctor/signals/the-silent-treatment/suppression-age.js +106 -0
- package/dist/doctor/signals/the-silent-treatment/suppression-age.js.map +1 -0
- package/dist/doctor/signals/the-silent-treatment/unused-suppressions.d.ts +19 -0
- package/dist/doctor/signals/the-silent-treatment/unused-suppressions.d.ts.map +1 -0
- package/dist/doctor/signals/the-silent-treatment/unused-suppressions.js +41 -0
- package/dist/doctor/signals/the-silent-treatment/unused-suppressions.js.map +1 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/framework-in-core.d.ts +23 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/framework-in-core.d.ts.map +1 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/framework-in-core.js +87 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/framework-in-core.js.map +1 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/hardcoded-ui-copy.d.ts +18 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/hardcoded-ui-copy.d.ts.map +1 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/hardcoded-ui-copy.js +43 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/hardcoded-ui-copy.js.map +1 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/scripture.d.ts +24 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/scripture.d.ts.map +1 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/scripture.js +109 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/scripture.js.map +1 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/stale-docs.d.ts +24 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/stale-docs.d.ts.map +1 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/stale-docs.js +96 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/stale-docs.js.map +1 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/vendor-named-domain.d.ts +22 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/vendor-named-domain.d.ts.map +1 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/vendor-named-domain.js +128 -0
- package/dist/doctor/signals/you-are-looking-for-a-father-figure/vendor-named-domain.js.map +1 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/agent-entrypoint-missing.d.ts +18 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/agent-entrypoint-missing.d.ts.map +1 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/agent-entrypoint-missing.js +43 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/agent-entrypoint-missing.js.map +1 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/agent-hooks-unwired.d.ts +22 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/agent-hooks-unwired.d.ts.map +1 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/agent-hooks-unwired.js +44 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/agent-hooks-unwired.js.map +1 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/entrypoint-over-budget.d.ts +23 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/entrypoint-over-budget.d.ts.map +1 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/entrypoint-over-budget.js +110 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/entrypoint-over-budget.js.map +1 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/orphan-paths.d.ts +23 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/orphan-paths.d.ts.map +1 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/orphan-paths.js +52 -0
- package/dist/doctor/signals/you-let-the-babysitter-raise-them/orphan-paths.js.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/console-in-production.d.ts +15 -0
- package/dist/doctor/signals/you-repeat-the-cycle/console-in-production.d.ts.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/console-in-production.js +41 -0
- package/dist/doctor/signals/you-repeat-the-cycle/console-in-production.js.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/domain-in-apps.d.ts +19 -0
- package/dist/doctor/signals/you-repeat-the-cycle/domain-in-apps.d.ts.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/domain-in-apps.js +87 -0
- package/dist/doctor/signals/you-repeat-the-cycle/domain-in-apps.js.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/junk-drawer-directories.d.ts +22 -0
- package/dist/doctor/signals/you-repeat-the-cycle/junk-drawer-directories.d.ts.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/junk-drawer-directories.js +72 -0
- package/dist/doctor/signals/you-repeat-the-cycle/junk-drawer-directories.js.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/per-feature-authorization.d.ts +18 -0
- package/dist/doctor/signals/you-repeat-the-cycle/per-feature-authorization.d.ts.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/per-feature-authorization.js +69 -0
- package/dist/doctor/signals/you-repeat-the-cycle/per-feature-authorization.js.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/role-if-ladders.d.ts +28 -0
- package/dist/doctor/signals/you-repeat-the-cycle/role-if-ladders.d.ts.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/role-if-ladders.js +128 -0
- package/dist/doctor/signals/you-repeat-the-cycle/role-if-ladders.js.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/tenant-column-authorization.d.ts +23 -0
- package/dist/doctor/signals/you-repeat-the-cycle/tenant-column-authorization.d.ts.map +1 -0
- package/dist/doctor/signals/you-repeat-the-cycle/tenant-column-authorization.js +90 -0
- package/dist/doctor/signals/you-repeat-the-cycle/tenant-column-authorization.js.map +1 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/controlling-peers.d.ts +16 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/controlling-peers.d.ts.map +1 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/controlling-peers.js +40 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/controlling-peers.js.map +1 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/shared-catchall.d.ts +20 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/shared-catchall.d.ts.map +1 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/shared-catchall.js +60 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/shared-catchall.js.map +1 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/shared-database.d.ts +19 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/shared-database.d.ts.map +1 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/shared-database.js +88 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/shared-database.js.map +1 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/transport-at-root.d.ts +18 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/transport-at-root.d.ts.map +1 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/transport-at-root.js +58 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/transport-at-root.js.map +1 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/unmaintained-dependencies.d.ts +22 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/unmaintained-dependencies.d.ts.map +1 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/unmaintained-dependencies.js +109 -0
- package/dist/doctor/signals/you-stay-with-people-who-cannot-meet-you/unmaintained-dependencies.js.map +1 -0
- package/dist/doctor/standalone-ratchet-base.d.ts +3 -0
- package/dist/doctor/standalone-ratchet-base.d.ts.map +1 -0
- package/dist/doctor/standalone-ratchet-base.js +62 -0
- package/dist/doctor/standalone-ratchet-base.js.map +1 -0
- package/dist/doctor/standalone-ratchet-policy.d.ts +9 -0
- package/dist/doctor/standalone-ratchet-policy.d.ts.map +1 -0
- package/dist/doctor/standalone-ratchet-policy.js +66 -0
- package/dist/doctor/standalone-ratchet-policy.js.map +1 -0
- package/dist/doctor/standalone-ratchet.d.ts +16 -0
- package/dist/doctor/standalone-ratchet.d.ts.map +1 -0
- package/dist/doctor/standalone-ratchet.js +86 -0
- package/dist/doctor/standalone-ratchet.js.map +1 -0
- package/dist/domain-boundaries/check-domain-boundaries.d.ts +14 -0
- package/dist/domain-boundaries/check-domain-boundaries.d.ts.map +1 -0
- package/dist/domain-boundaries/check-domain-boundaries.js +68 -0
- package/dist/domain-boundaries/check-domain-boundaries.js.map +1 -0
- package/dist/domain-boundaries/module-references.d.ts +9 -0
- package/dist/domain-boundaries/module-references.d.ts.map +1 -0
- package/dist/domain-boundaries/module-references.js +38 -0
- package/dist/domain-boundaries/module-references.js.map +1 -0
- package/dist/domain-boundaries/ownership.d.ts +17 -0
- package/dist/domain-boundaries/ownership.d.ts.map +1 -0
- package/dist/domain-boundaries/ownership.js +84 -0
- package/dist/domain-boundaries/ownership.js.map +1 -0
- package/dist/domain-boundaries/source-resolution.d.ts +10 -0
- package/dist/domain-boundaries/source-resolution.d.ts.map +1 -0
- package/dist/domain-boundaries/source-resolution.js +99 -0
- package/dist/domain-boundaries/source-resolution.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/initialize-dads-project.d.ts +17 -0
- package/dist/initialize-dads-project.d.ts.map +1 -0
- package/dist/initialize-dads-project.js +86 -0
- package/dist/initialize-dads-project.js.map +1 -0
- package/dist/library-recipe-files.d.ts +10 -0
- package/dist/library-recipe-files.d.ts.map +1 -0
- package/dist/library-recipe-files.js +59 -0
- package/dist/library-recipe-files.js.map +1 -0
- package/dist/library-recipe-manifests.d.ts +16 -0
- package/dist/library-recipe-manifests.d.ts.map +1 -0
- package/dist/library-recipe-manifests.js +110 -0
- package/dist/library-recipe-manifests.js.map +1 -0
- package/dist/missing-path-error.d.ts +12 -0
- package/dist/missing-path-error.d.ts.map +1 -0
- package/dist/missing-path-error.js +14 -0
- package/dist/missing-path-error.js.map +1 -0
- package/dist/parse-guards.d.ts +15 -0
- package/dist/parse-guards.d.ts.map +1 -0
- package/dist/parse-guards.js +21 -0
- package/dist/parse-guards.js.map +1 -0
- package/dist/project-files.d.ts +8 -0
- package/dist/project-files.d.ts.map +1 -0
- package/dist/project-files.js +24 -0
- package/dist/project-files.js.map +1 -0
- package/dist/project-orientation.d.ts +33 -0
- package/dist/project-orientation.d.ts.map +1 -0
- package/dist/project-orientation.js +184 -0
- package/dist/project-orientation.js.map +1 -0
- package/dist/recommend-changed-verification.d.ts +20 -0
- package/dist/recommend-changed-verification.d.ts.map +1 -0
- package/dist/recommend-changed-verification.js +32 -0
- package/dist/recommend-changed-verification.js.map +1 -0
- package/dist/resource-generators/access-generator.d.ts +5 -0
- package/dist/resource-generators/access-generator.d.ts.map +1 -0
- package/dist/resource-generators/access-generator.js +50 -0
- package/dist/resource-generators/access-generator.js.map +1 -0
- package/dist/resource-generators/domain-generator.d.ts +5 -0
- package/dist/resource-generators/domain-generator.d.ts.map +1 -0
- package/dist/resource-generators/domain-generator.js +68 -0
- package/dist/resource-generators/domain-generator.js.map +1 -0
- package/dist/resource-generators/email-generator.d.ts +3 -0
- package/dist/resource-generators/email-generator.d.ts.map +1 -0
- package/dist/resource-generators/email-generator.js +30 -0
- package/dist/resource-generators/email-generator.js.map +1 -0
- package/dist/resource-generators/endpoint-generator.d.ts +4 -0
- package/dist/resource-generators/endpoint-generator.d.ts.map +1 -0
- package/dist/resource-generators/endpoint-generator.js +65 -0
- package/dist/resource-generators/endpoint-generator.js.map +1 -0
- package/dist/resource-generators/flag-generator.d.ts +3 -0
- package/dist/resource-generators/flag-generator.d.ts.map +1 -0
- package/dist/resource-generators/flag-generator.js +22 -0
- package/dist/resource-generators/flag-generator.js.map +1 -0
- package/dist/resource-generators/generate-resource.d.ts +3 -0
- package/dist/resource-generators/generate-resource.d.ts.map +1 -0
- package/dist/resource-generators/generate-resource.js +17 -0
- package/dist/resource-generators/generate-resource.js.map +1 -0
- package/dist/resource-generators/generation-plan.d.ts +15 -0
- package/dist/resource-generators/generation-plan.d.ts.map +1 -0
- package/dist/resource-generators/generation-plan.js +99 -0
- package/dist/resource-generators/generation-plan.js.map +1 -0
- package/dist/resource-generators/generator-arguments.d.ts +23 -0
- package/dist/resource-generators/generator-arguments.d.ts.map +1 -0
- package/dist/resource-generators/generator-arguments.js +83 -0
- package/dist/resource-generators/generator-arguments.js.map +1 -0
- package/dist/resource-generators/generator-dependencies.d.ts +3 -0
- package/dist/resource-generators/generator-dependencies.d.ts.map +1 -0
- package/dist/resource-generators/generator-dependencies.js +59 -0
- package/dist/resource-generators/generator-dependencies.js.map +1 -0
- package/dist/resource-generators/names.d.ts +5 -0
- package/dist/resource-generators/names.d.ts.map +1 -0
- package/dist/resource-generators/names.js +16 -0
- package/dist/resource-generators/names.js.map +1 -0
- package/dist/resource-generators/page-generator.d.ts +3 -0
- package/dist/resource-generators/page-generator.d.ts.map +1 -0
- package/dist/resource-generators/page-generator.js +23 -0
- package/dist/resource-generators/page-generator.js.map +1 -0
- package/dist/resource-generators/resource-contract.d.ts +3 -0
- package/dist/resource-generators/resource-contract.d.ts.map +1 -0
- package/dist/resource-generators/resource-contract.js +40 -0
- package/dist/resource-generators/resource-contract.js.map +1 -0
- package/dist/resource-generators/resource-pages.d.ts +3 -0
- package/dist/resource-generators/resource-pages.d.ts.map +1 -0
- package/dist/resource-generators/resource-pages.js +85 -0
- package/dist/resource-generators/resource-pages.js.map +1 -0
- package/dist/resource-generators/resource-proof.d.ts +3 -0
- package/dist/resource-generators/resource-proof.d.ts.map +1 -0
- package/dist/resource-generators/resource-proof.js +89 -0
- package/dist/resource-generators/resource-proof.js.map +1 -0
- package/dist/resource-generators/resource-routes.d.ts +3 -0
- package/dist/resource-generators/resource-routes.d.ts.map +1 -0
- package/dist/resource-generators/resource-routes.js +62 -0
- package/dist/resource-generators/resource-routes.js.map +1 -0
- package/dist/resource-generators/resource-store.d.ts +3 -0
- package/dist/resource-generators/resource-store.d.ts.map +1 -0
- package/dist/resource-generators/resource-store.js +88 -0
- package/dist/resource-generators/resource-store.js.map +1 -0
- package/dist/resource-generators/table-generator.d.ts +3 -0
- package/dist/resource-generators/table-generator.d.ts.map +1 -0
- package/dist/resource-generators/table-generator.js +109 -0
- package/dist/resource-generators/table-generator.js.map +1 -0
- package/dist/resource-generators/web-client-exports.d.ts +3 -0
- package/dist/resource-generators/web-client-exports.d.ts.map +1 -0
- package/dist/resource-generators/web-client-exports.js +12 -0
- package/dist/resource-generators/web-client-exports.js.map +1 -0
- package/dist/route-inspection/read-route-source.d.ts +15 -0
- package/dist/route-inspection/read-route-source.d.ts.map +1 -0
- package/dist/route-inspection/read-route-source.js +138 -0
- package/dist/route-inspection/read-route-source.js.map +1 -0
- package/dist/route-inspection/route-source-facts.d.ts +14 -0
- package/dist/route-inspection/route-source-facts.d.ts.map +1 -0
- package/dist/route-inspection/route-source-facts.js +81 -0
- package/dist/route-inspection/route-source-facts.js.map +1 -0
- package/dist/starter-project/kit-starter.generated.d.ts +5 -0
- package/dist/starter-project/kit-starter.generated.d.ts.map +1 -0
- package/dist/starter-project/kit-starter.generated.js +124 -0
- package/dist/starter-project/kit-starter.generated.js.map +1 -0
- package/dist/starter-project/render-starter-project.d.ts +10 -0
- package/dist/starter-project/render-starter-project.d.ts.map +1 -0
- package/dist/starter-project/render-starter-project.js +19 -0
- package/dist/starter-project/render-starter-project.js.map +1 -0
- package/dist/starter-project/render-starter-staged-checks.d.ts +4 -0
- package/dist/starter-project/render-starter-staged-checks.d.ts.map +1 -0
- package/dist/starter-project/render-starter-staged-checks.js +73 -0
- package/dist/starter-project/render-starter-staged-checks.js.map +1 -0
- package/dist/starter-project/render-starter-verification-files.d.ts +4 -0
- package/dist/starter-project/render-starter-verification-files.d.ts.map +1 -0
- package/dist/starter-project/render-starter-verification-files.js +258 -0
- package/dist/starter-project/render-starter-verification-files.js.map +1 -0
- package/dist/starter-project/starter-ci-workflow.d.ts +5 -0
- package/dist/starter-project/starter-ci-workflow.d.ts.map +1 -0
- package/dist/starter-project/starter-ci-workflow.js +61 -0
- package/dist/starter-project/starter-ci-workflow.js.map +1 -0
- package/dist/synchronize-agent-skills.d.ts +12 -0
- package/dist/synchronize-agent-skills.d.ts.map +1 -0
- package/dist/synchronize-agent-skills.js +36 -0
- package/dist/synchronize-agent-skills.js.map +1 -0
- package/dist/toolbox.tsbuildinfo +1 -0
- package/dist/verification/canonical-bytes.d.ts +6 -0
- package/dist/verification/canonical-bytes.d.ts.map +1 -0
- package/dist/verification/canonical-bytes.js +23 -0
- package/dist/verification/canonical-bytes.js.map +1 -0
- package/dist/verification/execute-graph-task.d.ts +14 -0
- package/dist/verification/execute-graph-task.d.ts.map +1 -0
- package/dist/verification/execute-graph-task.js +193 -0
- package/dist/verification/execute-graph-task.js.map +1 -0
- package/dist/verification/filesystem-guards.d.ts +10 -0
- package/dist/verification/filesystem-guards.d.ts.map +1 -0
- package/dist/verification/filesystem-guards.js +54 -0
- package/dist/verification/filesystem-guards.js.map +1 -0
- package/dist/verification/format-verification-report.d.ts +3 -0
- package/dist/verification/format-verification-report.d.ts.map +1 -0
- package/dist/verification/format-verification-report.js +17 -0
- package/dist/verification/format-verification-report.js.map +1 -0
- package/dist/verification/git-environment.d.ts +14 -0
- package/dist/verification/git-environment.d.ts.map +1 -0
- package/dist/verification/git-environment.js +16 -0
- package/dist/verification/git-environment.js.map +1 -0
- package/dist/verification/logic/collect-candidate-tasks.d.ts +7 -0
- package/dist/verification/logic/collect-candidate-tasks.d.ts.map +1 -0
- package/dist/verification/logic/collect-candidate-tasks.js +214 -0
- package/dist/verification/logic/collect-candidate-tasks.js.map +1 -0
- package/dist/verification/logic/decide-task-reuse.d.ts +14 -0
- package/dist/verification/logic/decide-task-reuse.d.ts.map +1 -0
- package/dist/verification/logic/decide-task-reuse.js +43 -0
- package/dist/verification/logic/decide-task-reuse.js.map +1 -0
- package/dist/verification/publish-verification-outputs.d.ts +16 -0
- package/dist/verification/publish-verification-outputs.d.ts.map +1 -0
- package/dist/verification/publish-verification-outputs.js +122 -0
- package/dist/verification/publish-verification-outputs.js.map +1 -0
- package/dist/verification/read-changed-scope.d.ts +10 -0
- package/dist/verification/read-changed-scope.d.ts.map +1 -0
- package/dist/verification/read-changed-scope.js +108 -0
- package/dist/verification/read-changed-scope.js.map +1 -0
- package/dist/verification/receipt-store.d.ts +17 -0
- package/dist/verification/receipt-store.d.ts.map +1 -0
- package/dist/verification/receipt-store.js +166 -0
- package/dist/verification/receipt-store.js.map +1 -0
- package/dist/verification/run-verification-task.d.ts +27 -0
- package/dist/verification/run-verification-task.d.ts.map +1 -0
- package/dist/verification/run-verification-task.js +276 -0
- package/dist/verification/run-verification-task.js.map +1 -0
- package/dist/verification/snapshot-capture.d.ts +26 -0
- package/dist/verification/snapshot-capture.d.ts.map +1 -0
- package/dist/verification/snapshot-capture.js +237 -0
- package/dist/verification/snapshot-capture.js.map +1 -0
- package/dist/verification/verification-contract.d.ts +85 -0
- package/dist/verification/verification-contract.d.ts.map +1 -0
- package/dist/verification/verification-contract.js +2 -0
- package/dist/verification/verification-contract.js.map +1 -0
- package/dist/verification/verification-failure.d.ts +11 -0
- package/dist/verification/verification-failure.d.ts.map +1 -0
- package/dist/verification/verification-failure.js +15 -0
- package/dist/verification/verification-failure.js.map +1 -0
- package/dist/verification/verification-inputs.d.ts +62 -0
- package/dist/verification/verification-inputs.d.ts.map +1 -0
- package/dist/verification/verification-inputs.js +250 -0
- package/dist/verification/verification-inputs.js.map +1 -0
- package/dist/verification/verification-receipt.d.ts +28 -0
- package/dist/verification/verification-receipt.d.ts.map +1 -0
- package/dist/verification/verification-receipt.js +216 -0
- package/dist/verification/verification-receipt.js.map +1 -0
- package/dist/verification/verifier-identity.d.ts +3 -0
- package/dist/verification/verifier-identity.d.ts.map +1 -0
- package/dist/verification/verifier-identity.js +39 -0
- package/dist/verification/verifier-identity.js.map +1 -0
- package/dist/verification/verify-task-graph.d.ts +20 -0
- package/dist/verification/verify-task-graph.d.ts.map +1 -0
- package/dist/verification/verify-task-graph.js +112 -0
- package/dist/verification/verify-task-graph.js.map +1 -0
- package/dist/verification/workspace-git-context.d.ts +23 -0
- package/dist/verification/workspace-git-context.d.ts.map +1 -0
- package/dist/verification/workspace-git-context.js +194 -0
- package/dist/verification/workspace-git-context.js.map +1 -0
- package/dist/verification/workspace-git-evidence.d.ts +16 -0
- package/dist/verification/workspace-git-evidence.d.ts.map +1 -0
- package/dist/verification/workspace-git-evidence.js +44 -0
- package/dist/verification/workspace-git-evidence.js.map +1 -0
- package/dist/verification/workspace-snapshot.d.ts +9 -0
- package/dist/verification/workspace-snapshot.d.ts.map +1 -0
- package/dist/verification/workspace-snapshot.js +113 -0
- package/dist/verification/workspace-snapshot.js.map +1 -0
- package/dist/verification-policy-parsing.d.ts +22 -0
- package/dist/verification-policy-parsing.d.ts.map +1 -0
- package/dist/verification-policy-parsing.js +218 -0
- package/dist/verification-policy-parsing.js.map +1 -0
- package/dist/write-library-recipe.d.ts +9 -0
- package/dist/write-library-recipe.d.ts.map +1 -0
- package/dist/write-library-recipe.js +45 -0
- package/dist/write-library-recipe.js.map +1 -0
- package/package.json +40 -4
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ratchet baseline as its own history describes it.
|
|
3
|
+
*
|
|
4
|
+
* Two questions in this lane are about the same file over time rather than the
|
|
5
|
+
* same file today: has a mark ever moved the wrong way, and how long has a mark
|
|
6
|
+
* sat still. Both need the entries of every committed revision of
|
|
7
|
+
* `.agents/source-budgets.json`, so the revisions are read and parsed once here
|
|
8
|
+
* and the two signals differ only in what they do with the sequence.
|
|
9
|
+
*
|
|
10
|
+
* An entry is one measure's one key, in one of the two sections. A ceiling
|
|
11
|
+
* records a `mark` that may only fall and a floor records a `floor` that may
|
|
12
|
+
* only rise, so "loosening" is a direction and not a magnitude, and this module
|
|
13
|
+
* gives every entry the direction its section implies. The one exception is
|
|
14
|
+
* stated here too: a floor that fell may say where its count went, and a fall
|
|
15
|
+
* whose named key rose by at least as much in the same diff is a split rather
|
|
16
|
+
* than a loosening. That is the whole of the ratchet's own rule, stated once,
|
|
17
|
+
* so a signal never has to remember which way a number is allowed to go.
|
|
18
|
+
*
|
|
19
|
+
* A workspace with no baseline is not a workspace with a clean one, and the
|
|
20
|
+
* signals say so by name: nothing here invents an empty baseline to count zero
|
|
21
|
+
* against.
|
|
22
|
+
*/
|
|
23
|
+
import { isRecord, isString } from "../../../parse-guards.js";
|
|
24
|
+
import { readFileAtRevision, readPathRevisions, } from "./git-history.js";
|
|
25
|
+
/** The file the source budgets are recorded in, in every adopting repository. */
|
|
26
|
+
export const BASELINE_PATH = ".agents/source-budgets.json";
|
|
27
|
+
/** The failure the baseline signals report when there is nothing recorded. */
|
|
28
|
+
export const NO_RATCHET_BASELINE = "no ratchet baseline";
|
|
29
|
+
/** The section a count may move within: only a floor is ever transferred. */
|
|
30
|
+
const FLOORS = "floors";
|
|
31
|
+
const SECTIONS = [
|
|
32
|
+
{ section: "ceilings", field: "mark" },
|
|
33
|
+
{ section: FLOORS, field: "floor" },
|
|
34
|
+
];
|
|
35
|
+
/**
|
|
36
|
+
* True when the move from `earlier` to `later` is the direction the ratchet
|
|
37
|
+
* forbids: a ceiling that rose, or a floor that fell.
|
|
38
|
+
*/
|
|
39
|
+
export function isLoosening(earlier, later, section) {
|
|
40
|
+
return section === "ceilings" ? later > earlier : later < earlier;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* True when a floor that fell between two revisions said where its count went
|
|
44
|
+
* and the arithmetic holds: the entry names another key under the same section
|
|
45
|
+
* path, still carries a reason, and that key rose in this same pair of
|
|
46
|
+
* revisions by at least the fall — a key the earlier revision did not record
|
|
47
|
+
* counting as zero. A split declared this way is a floor that moved, not one
|
|
48
|
+
* that fell, and it is the only fall this module does not call a loosening.
|
|
49
|
+
*/
|
|
50
|
+
export function transferCoversFall(entry, fall, later, earlier) {
|
|
51
|
+
if (entry.section !== FLOORS)
|
|
52
|
+
return false;
|
|
53
|
+
const movedTo = entry.movedTo;
|
|
54
|
+
if (movedTo === undefined || movedTo === entry.key)
|
|
55
|
+
return false;
|
|
56
|
+
if ((entry.reason ?? "").trim().length === 0)
|
|
57
|
+
return false;
|
|
58
|
+
const destination = later.get(movedTo);
|
|
59
|
+
if (destination === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
return destination.value - (earlier.get(movedTo)?.value ?? 0) >= fall;
|
|
62
|
+
}
|
|
63
|
+
/** Every entry one revision of the baseline recorded, keyed by section path. */
|
|
64
|
+
export function readBaselineEntries(text) {
|
|
65
|
+
const entries = new Map();
|
|
66
|
+
const parsed = parseBaseline(text);
|
|
67
|
+
if (parsed === undefined)
|
|
68
|
+
return entries;
|
|
69
|
+
for (const { section, field } of SECTIONS) {
|
|
70
|
+
collectSection(entries, parsed[section], section, field);
|
|
71
|
+
}
|
|
72
|
+
return entries;
|
|
73
|
+
}
|
|
74
|
+
function parseBaseline(text) {
|
|
75
|
+
try {
|
|
76
|
+
const parsed = JSON.parse(text);
|
|
77
|
+
return isRecord(parsed) ? parsed : undefined;
|
|
78
|
+
}
|
|
79
|
+
catch {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function collectSection(entries, value, section, field) {
|
|
84
|
+
if (!isRecord(value))
|
|
85
|
+
return;
|
|
86
|
+
for (const [measure, keys] of Object.entries(value)) {
|
|
87
|
+
if (!isRecord(keys))
|
|
88
|
+
continue;
|
|
89
|
+
for (const [key, entry] of Object.entries(keys)) {
|
|
90
|
+
const mark = isRecord(entry) ? entry[field] : undefined;
|
|
91
|
+
if (typeof mark !== "number")
|
|
92
|
+
continue;
|
|
93
|
+
const path = `${section}/${measure}/${key}`;
|
|
94
|
+
entries.set(path, {
|
|
95
|
+
key: path,
|
|
96
|
+
value: mark,
|
|
97
|
+
section,
|
|
98
|
+
reason: textField(entry, "reason"),
|
|
99
|
+
movedTo: sectionPath(section, measure, textField(entry, "movedTo")),
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function textField(entry, field) {
|
|
105
|
+
const value = isRecord(entry) ? entry[field] : undefined;
|
|
106
|
+
return isString(value) ? value : undefined;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* A `movedTo` as the rest of this module keys entries. It names a key in the
|
|
110
|
+
* entry's own section, so it is read under the same section path and a name
|
|
111
|
+
* that reaches outside one simply matches nothing.
|
|
112
|
+
*/
|
|
113
|
+
function sectionPath(section, measure, key) {
|
|
114
|
+
return key === undefined ? undefined : `${section}/${measure}/${key}`;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Every committed revision of the baseline, newest first, already parsed. A
|
|
118
|
+
* revision whose file cannot be read is dropped rather than treated as empty,
|
|
119
|
+
* because an unreadable revision is not a revision that recorded nothing.
|
|
120
|
+
*/
|
|
121
|
+
export function readBaselineHistory(root) {
|
|
122
|
+
return readPathRevisions(root, BASELINE_PATH).flatMap((revision) => {
|
|
123
|
+
const text = readFileAtRevision(root, revision.sha, BASELINE_PATH);
|
|
124
|
+
if (text === undefined)
|
|
125
|
+
return [];
|
|
126
|
+
return [{ revision, entries: readBaselineEntries(text) }];
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The date one entry's mark last moved, or the date it was first recorded.
|
|
131
|
+
* Revisions arrive newest first, so the first pair that disagrees about the
|
|
132
|
+
* value is the most recent move.
|
|
133
|
+
*/
|
|
134
|
+
export function lastMoveDate(history, key) {
|
|
135
|
+
let introduced;
|
|
136
|
+
for (let index = 0; index < history.length; index += 1) {
|
|
137
|
+
const current = history[index]?.entries.get(key);
|
|
138
|
+
if (current === undefined)
|
|
139
|
+
break;
|
|
140
|
+
introduced = history[index]?.revision.date;
|
|
141
|
+
const older = history[index + 1]?.entries.get(key);
|
|
142
|
+
if (older === undefined)
|
|
143
|
+
break;
|
|
144
|
+
if (older.value !== current.value)
|
|
145
|
+
return history[index]?.revision.date;
|
|
146
|
+
}
|
|
147
|
+
return introduced;
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=ratchet-baseline-history.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ratchet-baseline-history.js","sourceRoot":"","sources":["../../../../src/doctor/signals/scanners/ratchet-baseline-history.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAElB,MAAM,kBAAkB,CAAC;AAE1B,iFAAiF;AACjF,MAAM,CAAC,MAAM,aAAa,GAAG,6BAA6B,CAAC;AAE3D,8EAA8E;AAC9E,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,6EAA6E;AAC7E,MAAM,MAAM,GAAG,QAAQ,CAAC;AAExB,MAAM,QAAQ,GAAG;IACf,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE;IACtC,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE;CACpC,CAAC;AAoBF;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,OAAe,EACf,KAAa,EACb,OAAe;IAEf,OAAO,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC;AACpE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,kBAAkB,CAChC,KAAoB,EACpB,IAAY,EACZ,KAAyC,EACzC,OAA2C;IAE3C,IAAI,K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,KAAK,OAAO,CAAC,KAAK;YAAE,OAAO,OAAO,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC;IAC1E,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a renderer reads a raw failure's words.
|
|
3
|
+
*
|
|
4
|
+
* A failure is anything caught, or anything named like one: a name ending in
|
|
5
|
+
* `error`, `failure`, `exception`, `issue` or `refusal`, a property with such a
|
|
6
|
+
* name, and any value assigned from one. Its `message`, read directly, pulled
|
|
7
|
+
* out by destructuring, or the whole failure passed through `String(…)`, is
|
|
8
|
+
* text written for whoever debugs it — a stack frame, a column name, a vendor's
|
|
9
|
+
* sentence — and none of it was written for the person looking at the screen.
|
|
10
|
+
*
|
|
11
|
+
* The names are a heuristic and say so: a variable called `error` that holds
|
|
12
|
+
* copy is a false positive whose fix is a better name.
|
|
13
|
+
*/
|
|
14
|
+
import { ts } from "./typescript-program.js";
|
|
15
|
+
/** One place a raw failure is read, and how. */
|
|
16
|
+
export type FailureSpan = {
|
|
17
|
+
readonly node: ts.Node;
|
|
18
|
+
readonly seam: "raw message" | "destructured message" | "stringified failure";
|
|
19
|
+
};
|
|
20
|
+
/** Every raw failure read in a module, in source order. */
|
|
21
|
+
export declare function rawFailureSpans(source: ts.SourceFile): readonly FailureSpan[];
|
|
22
|
+
//# sourceMappingURL=raw-failures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw-failures.d.ts","sourceRoot":"","sources":["../../../../src/doctor/signals/scanners/raw-failures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,EAAE,EAAc,MAAM,yBAAyB,CAAC;AAMzD,gDAAgD;AAChD,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,aAAa,GAAG,sBAAsB,GAAG,qBAAqB,CAAC;CAC/E,CAAC;AAyFF,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,GAAG,SAAS,WAAW,EAAE,CAS7E"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a renderer reads a raw failure's words.
|
|
3
|
+
*
|
|
4
|
+
* A failure is anything caught, or anything named like one: a name ending in
|
|
5
|
+
* `error`, `failure`, `exception`, `issue` or `refusal`, a property with such a
|
|
6
|
+
* name, and any value assigned from one. Its `message`, read directly, pulled
|
|
7
|
+
* out by destructuring, or the whole failure passed through `String(…)`, is
|
|
8
|
+
* text written for whoever debugs it — a stack frame, a column name, a vendor's
|
|
9
|
+
* sentence — and none of it was written for the person looking at the screen.
|
|
10
|
+
*
|
|
11
|
+
* The names are a heuristic and say so: a variable called `error` that holds
|
|
12
|
+
* copy is a false positive whose fix is a better name.
|
|
13
|
+
*/
|
|
14
|
+
import { ts, visitNodes } from "./typescript-program.js";
|
|
15
|
+
const FAILURE_NAME = /(?:error|failure|exception|issue|refusal)$/i;
|
|
16
|
+
const MESSAGE = "message";
|
|
17
|
+
const STRINGIFY = "String";
|
|
18
|
+
function propertyName(node) {
|
|
19
|
+
if (ts.isPropertyAccessExpression(node))
|
|
20
|
+
return node.name.text;
|
|
21
|
+
if (!ts.isElementAccessExpression(node))
|
|
22
|
+
return undefined;
|
|
23
|
+
const argument = node.argumentExpression;
|
|
24
|
+
return ts.isStringLiteral(argument) ? argument.text : undefined;
|
|
25
|
+
}
|
|
26
|
+
function isFailure(node, bindings) {
|
|
27
|
+
if (ts.isParenthesizedExpression(node)) {
|
|
28
|
+
return isFailure(node.expression, bindings);
|
|
29
|
+
}
|
|
30
|
+
if (ts.isIdentifier(node)) {
|
|
31
|
+
return bindings.has(node.text) || FAILURE_NAME.test(node.text);
|
|
32
|
+
}
|
|
33
|
+
if (!ts.isPropertyAccessExpression(node) &&
|
|
34
|
+
!ts.isElementAccessExpression(node)) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
const name = propertyName(node);
|
|
38
|
+
return ((name !== undefined && FAILURE_NAME.test(name)) ||
|
|
39
|
+
isFailure(node.expression, bindings));
|
|
40
|
+
}
|
|
41
|
+
function recordBinding(node, bindings) {
|
|
42
|
+
if (ts.isCatchClause(node)) {
|
|
43
|
+
const name = node.variableDeclaration?.name;
|
|
44
|
+
if (name !== undefined && ts.isIdentifier(name))
|
|
45
|
+
bindings.add(name.text);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (!ts.isVariableDeclaration(node) || !ts.isIdentifier(node.name))
|
|
49
|
+
return;
|
|
50
|
+
if (node.initializer !== undefined && isFailure(node.initializer, bindings)) {
|
|
51
|
+
bindings.add(node.name.text);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function isMessageRead(node, bindings) {
|
|
55
|
+
if (!ts.isPropertyAccessExpression(node) &&
|
|
56
|
+
!ts.isElementAccessExpression(node)) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return propertyName(node) === MESSAGE && isFailure(node.expression, bindings);
|
|
60
|
+
}
|
|
61
|
+
function isMessageDestructured(node, bindings) {
|
|
62
|
+
if (!ts.isVariableDeclaration(node))
|
|
63
|
+
return false;
|
|
64
|
+
if (!ts.isObjectBindingPattern(node.name))
|
|
65
|
+
return false;
|
|
66
|
+
if (node.initializer === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if (!isFailure(node.initializer, bindings))
|
|
69
|
+
return false;
|
|
70
|
+
return node.name.elements.some((element) => {
|
|
71
|
+
const name = element.propertyName ?? element.name;
|
|
72
|
+
return ts.isIdentifier(name) && name.text === MESSAGE;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function isStringified(node, bindings) {
|
|
76
|
+
if (!ts.isCallExpression(node))
|
|
77
|
+
return false;
|
|
78
|
+
if (!ts.isIdentifier(node.expression))
|
|
79
|
+
return false;
|
|
80
|
+
if (node.expression.text !== STRINGIFY)
|
|
81
|
+
return false;
|
|
82
|
+
const first = node.arguments[0];
|
|
83
|
+
return first !== undefined && isFailure(first, bindings);
|
|
84
|
+
}
|
|
85
|
+
function spanAt(node, bindings) {
|
|
86
|
+
if (isMessageRead(node, bindings))
|
|
87
|
+
return { node, seam: "raw message" };
|
|
88
|
+
if (isMessageDestructured(node, bindings)) {
|
|
89
|
+
return { node, seam: "destructured message" };
|
|
90
|
+
}
|
|
91
|
+
return isStringified(node, bindings)
|
|
92
|
+
? { node, seam: "stringified failure" }
|
|
93
|
+
: undefined;
|
|
94
|
+
}
|
|
95
|
+
/** Every raw failure read in a module, in source order. */
|
|
96
|
+
export function rawFailureSpans(source) {
|
|
97
|
+
const bindings = new Set();
|
|
98
|
+
const spans = [];
|
|
99
|
+
visitNodes(source, (node) => {
|
|
100
|
+
recordBinding(node, bindings);
|
|
101
|
+
const span = spanAt(node, bindings);
|
|
102
|
+
if (span !== undefined)
|
|
103
|
+
spans.push(span);
|
|
104
|
+
});
|
|
105
|
+
return spans;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=raw-failures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw-failures.js","sourceRoot":"","sources":["../../../../src/doctor/signals/scanners/raw-failures.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,YAAY,GAAG,6CAA6C,CAAC;AACnE,MAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,MAAM,SAAS,GAAG,QAAQ,CAAC;AAQ3B,SAAS,YAAY,CAAC,IAAmB;IACvC,IAAI,EAAE,CAAC,0BAA0B,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IAC/D,IAAI,CAAC,EAAE,CAAC,yBAAyB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AE;QAC1B,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC9B,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACpC,IAAI,IAAI,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The literal words a renderer puts in front of somebody.
|
|
3
|
+
*
|
|
4
|
+
* Every seam where a string literal becomes text a customer reads or a screen
|
|
5
|
+
* reader announces: JSX text, a JSX child expression, a visible or accessible
|
|
6
|
+
* prop (`label`, `title`, `aria-label`, `placeholder`, …), a copy-shaped
|
|
7
|
+
* property in an object literal (`label`, `title`, `message`, …), the first
|
|
8
|
+
* argument of a `toast(…)` call, and a value a function returns. A branch —
|
|
9
|
+
* `cond ? "a" : "b"`, `a ?? "b"`, `a || "b"`, `"a" + b` — is followed into each
|
|
10
|
+
* side, so a fallback string is found where it hides.
|
|
11
|
+
*
|
|
12
|
+
* Not every literal at those seams is copy. A copy key (`page.title`), a
|
|
13
|
+
* lowercase data token (`primary`), a code in capitals (`NOT_FOUND`), a URL or
|
|
14
|
+
* a path, and anything without a letter in it are what a renderer passes
|
|
15
|
+
* around, not what it says. `isHardcodedCopy` is that filter.
|
|
16
|
+
*/
|
|
17
|
+
import { ts } from "./typescript-program.js";
|
|
18
|
+
/** One literal at a seam: the node it sits on, its text, and which seam. */
|
|
19
|
+
export type CopySpan = {
|
|
20
|
+
readonly node: ts.Node;
|
|
21
|
+
readonly text: string;
|
|
22
|
+
readonly seam: string;
|
|
23
|
+
};
|
|
24
|
+
/** Every literal at a seam where copy can be introduced, in source order. */
|
|
25
|
+
export declare function renderedCopySpans(source: ts.SourceFile): readonly CopySpan[];
|
|
26
|
+
/** True when the literal is words for a person rather than data for code. */
|
|
27
|
+
export declare function isHardcodedCopy(text: string): boolean;
|
|
28
|
+
//# sourceMappingURL=rendered-copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rendered-copy.d.ts","sourceRoot":"","sources":["../../../../src/doctor/signals/scanners/rendered-copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,EAAE,EAAc,MAAM,yBAAyB,CAAC;AAmDzD,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAoGF,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,GAAG,SAAS,QAAQ,EAAE,CAM5E;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAQrD"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The literal words a renderer puts in front of somebody.
|
|
3
|
+
*
|
|
4
|
+
* Every seam where a string literal becomes text a customer reads or a screen
|
|
5
|
+
* reader announces: JSX text, a JSX child expression, a visible or accessible
|
|
6
|
+
* prop (`label`, `title`, `aria-label`, `placeholder`, …), a copy-shaped
|
|
7
|
+
* property in an object literal (`label`, `title`, `message`, …), the first
|
|
8
|
+
* argument of a `toast(…)` call, and a value a function returns. A branch —
|
|
9
|
+
* `cond ? "a" : "b"`, `a ?? "b"`, `a || "b"`, `"a" + b` — is followed into each
|
|
10
|
+
* side, so a fallback string is found where it hides.
|
|
11
|
+
*
|
|
12
|
+
* Not every literal at those seams is copy. A copy key (`page.title`), a
|
|
13
|
+
* lowercase data token (`primary`), a code in capitals (`NOT_FOUND`), a URL or
|
|
14
|
+
* a path, and anything without a letter in it are what a renderer passes
|
|
15
|
+
* around, not what it says. `isHardcodedCopy` is that filter.
|
|
16
|
+
*/
|
|
17
|
+
import { ts, visitNodes } from "./typescript-program.js";
|
|
18
|
+
const VISIBLE_PROPS = new Set([
|
|
19
|
+
"alt",
|
|
20
|
+
"aria-description",
|
|
21
|
+
"aria-label",
|
|
22
|
+
"aria-roledescription",
|
|
23
|
+
"aria-valuetext",
|
|
24
|
+
"description",
|
|
25
|
+
"emptyMessage",
|
|
26
|
+
"heading",
|
|
27
|
+
"label",
|
|
28
|
+
"message",
|
|
29
|
+
"placeholder",
|
|
30
|
+
"title",
|
|
31
|
+
]);
|
|
32
|
+
const COPY_PROPERTIES = new Set([
|
|
33
|
+
"description",
|
|
34
|
+
"heading",
|
|
35
|
+
"label",
|
|
36
|
+
"message",
|
|
37
|
+
"title",
|
|
38
|
+
]);
|
|
39
|
+
const TOAST = "toast";
|
|
40
|
+
const TOAST_METHODS = new Set([
|
|
41
|
+
"custom",
|
|
42
|
+
"error",
|
|
43
|
+
"info",
|
|
44
|
+
"loading",
|
|
45
|
+
"message",
|
|
46
|
+
"success",
|
|
47
|
+
"warn",
|
|
48
|
+
"warning",
|
|
49
|
+
]);
|
|
50
|
+
const BRANCH_OPERATORS = new Set([
|
|
51
|
+
ts.SyntaxKind.AmpersandAmpersandToken,
|
|
52
|
+
ts.SyntaxKind.BarBarToken,
|
|
53
|
+
ts.SyntaxKind.PlusToken,
|
|
54
|
+
ts.SyntaxKind.QuestionQuestionToken,
|
|
55
|
+
]);
|
|
56
|
+
const COPY_KEY = /^[a-z][A-Za-z0-9_]*(?:[.-][A-Za-z0-9_]+)+$/;
|
|
57
|
+
const LOWERCASE_TOKEN = /^[a-z][A-Za-z0-9_]*$/;
|
|
58
|
+
const LOWERCASE_FRAGMENT = /^[^A-Za-z]*[a-z]+[^A-Za-z]*$/;
|
|
59
|
+
const CODE_TOKEN = /^[A-Z][A-Z0-9_]{2,}$/;
|
|
60
|
+
const URL_OR_PATH = /^(?:https?:\/\/|mailto:|\/|\.\/|\.\.\/|#)/;
|
|
61
|
+
const LETTER = /[A-Za-z]/;
|
|
62
|
+
function literalText(node) {
|
|
63
|
+
if (node === undefined)
|
|
64
|
+
return undefined;
|
|
65
|
+
if (ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node)) {
|
|
66
|
+
return node.text;
|
|
67
|
+
}
|
|
68
|
+
if (!ts.isTemplateExpression(node))
|
|
69
|
+
return undefined;
|
|
70
|
+
return [
|
|
71
|
+
node.head.text,
|
|
72
|
+
...node.templateSpans.map((span) => span.literal.text),
|
|
73
|
+
].join("");
|
|
74
|
+
}
|
|
75
|
+
function branchedSpans(node, seam) {
|
|
76
|
+
if (node === undefined)
|
|
77
|
+
return [];
|
|
78
|
+
const text = literalText(node);
|
|
79
|
+
if (text !== undefined)
|
|
80
|
+
return [{ node, text, seam }];
|
|
81
|
+
if (ts.isParenthesizedExpression(node)) {
|
|
82
|
+
return branchedSpans(node.expression, seam);
|
|
83
|
+
}
|
|
84
|
+
if (ts.isConditionalExpression(node)) {
|
|
85
|
+
return [
|
|
86
|
+
...branchedSpans(node.whenTrue, seam),
|
|
87
|
+
...branchedSpans(node.whenFalse, seam),
|
|
88
|
+
];
|
|
89
|
+
}
|
|
90
|
+
if (!ts.isBinaryExpression(node))
|
|
91
|
+
return [];
|
|
92
|
+
if (!BRANCH_OPERATORS.has(node.operatorToken.kind))
|
|
93
|
+
return [];
|
|
94
|
+
return [
|
|
95
|
+
...branchedSpans(node.left, seam),
|
|
96
|
+
...branchedSpans(node.right, seam),
|
|
97
|
+
];
|
|
98
|
+
}
|
|
99
|
+
function jsxAttributeSpans(node) {
|
|
100
|
+
const name = node.name.getText();
|
|
101
|
+
if (!VISIBLE_PROPS.has(name))
|
|
102
|
+
return [];
|
|
103
|
+
const value = node.initializer;
|
|
104
|
+
const seam = `${name} prop`;
|
|
105
|
+
if (value === undefined)
|
|
106
|
+
return [];
|
|
107
|
+
if (ts.isStringLiteral(value))
|
|
108
|
+
return [{ node: value, text: value.text, seam }];
|
|
109
|
+
return ts.isJsxExpression(value) ? branchedSpans(value.expression, seam) : [];
|
|
110
|
+
}
|
|
111
|
+
function isJsxChild(node) {
|
|
112
|
+
return ts.isJsxElement(node.parent) || ts.isJsxFragment(node.parent);
|
|
113
|
+
}
|
|
114
|
+
function jsxSpans(node) {
|
|
115
|
+
if (ts.isJsxText(node)) {
|
|
116
|
+
const text = node.getText();
|
|
117
|
+
return LETTER.test(text) ? [{ node, text, seam: "JSX text" }] : [];
|
|
118
|
+
}
|
|
119
|
+
if (ts.isJsxExpression(node) && isJsxChild(node)) {
|
|
120
|
+
return branchedSpans(node.expression, "JSX text");
|
|
121
|
+
}
|
|
122
|
+
return ts.isJsxAttribute(node) ? jsxAttributeSpans(node) : [];
|
|
123
|
+
}
|
|
124
|
+
function isToastCall(callee) {
|
|
125
|
+
if (ts.isIdentifier(callee))
|
|
126
|
+
return callee.text === TOAST;
|
|
127
|
+
return (ts.isPropertyAccessExpression(callee) &&
|
|
128
|
+
ts.isIdentifier(callee.expression) &&
|
|
129
|
+
callee.expression.text === TOAST &&
|
|
130
|
+
TOAST_METHODS.has(callee.name.text));
|
|
131
|
+
}
|
|
132
|
+
function propertySpans(node) {
|
|
133
|
+
const name = ts.isIdentifier(node.name) || ts.isStringLiteral(node.name)
|
|
134
|
+
? node.name.text
|
|
135
|
+
: undefined;
|
|
136
|
+
const text = literalText(node.initializer);
|
|
137
|
+
if (name === undefined || text === undefined)
|
|
138
|
+
return [];
|
|
139
|
+
if (!COPY_PROPERTIES.has(name))
|
|
140
|
+
return [];
|
|
141
|
+
return [{ node: node.initializer, text, seam: "property" }];
|
|
142
|
+
}
|
|
143
|
+
function codeSpans(node) {
|
|
144
|
+
if (ts.isPropertyAssignment(node))
|
|
145
|
+
return propertySpans(node);
|
|
146
|
+
if (ts.isCallExpression(node) && isToastCall(node.expression)) {
|
|
147
|
+
const first = node.arguments[0];
|
|
148
|
+
const text = literalText(first);
|
|
149
|
+
return first === undefined || text === undefined
|
|
150
|
+
? []
|
|
151
|
+
: [{ node: first, text, seam: "toast" }];
|
|
152
|
+
}
|
|
153
|
+
if (ts.isReturnStatement(node))
|
|
154
|
+
return branchedSpans(node.expression, "return");
|
|
155
|
+
if (!ts.isArrowFunction(node) || ts.isBlock(node.body))
|
|
156
|
+
return [];
|
|
157
|
+
return branchedSpans(node.body, "return");
|
|
158
|
+
}
|
|
159
|
+
/** Every literal at a seam where copy can be introduced, in source order. */
|
|
160
|
+
export function renderedCopySpans(source) {
|
|
161
|
+
const spans = [];
|
|
162
|
+
visitNodes(source, (node) => {
|
|
163
|
+
spans.push(...jsxSpans(node), ...codeSpans(node));
|
|
164
|
+
});
|
|
165
|
+
return spans;
|
|
166
|
+
}
|
|
167
|
+
/** True when the literal is words for a person rather than data for code. */
|
|
168
|
+
export function isHardcodedCopy(text) {
|
|
169
|
+
const normalized = text.replace(/\s+/g, " ").trim();
|
|
170
|
+
if (!LETTER.test(normalized))
|
|
171
|
+
return false;
|
|
172
|
+
if (COPY_KEY.test(normalized))
|
|
173
|
+
return false;
|
|
174
|
+
if (LOWERCASE_TOKEN.test(normalized))
|
|
175
|
+
return false;
|
|
176
|
+
if (LOWERCASE_FRAGMENT.test(normalized))
|
|
177
|
+
return false;
|
|
178
|
+
if (CODE_TOKEN.test(normalized))
|
|
179
|
+
return false;
|
|
180
|
+
return !URL_OR_PATH.test(normalized);
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=rendered-copy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rendered-copy.js","sourceRoot":"","sources":["../../../../src/doctor/signals/scanners/rendered-copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC;IAC5B,KAAK;IACL,kBAAkB;IAClB,YAAY;IACZ,sBAA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C,IAAI,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,IAAI,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC;QAAE,OAAO,KAAK,CAAC;IACtD,IAAI,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC;QAAE,OAAO,KAAK,CAAC;IAC9C,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which modules decide what crosses the wire, read from the module itself.
|
|
3
|
+
*
|
|
4
|
+
* A module declares routes when it calls a route builder — `getRoute`,
|
|
5
|
+
* `listRoute`, `postRoute`, `patchRoute`, `putRoute`, `deleteRoute`,
|
|
6
|
+
* `postNoContentRoute` — the vocabulary both HTTP kits share. A module in an
|
|
7
|
+
* `http/` directory below a package's `src/` is response code by where it was
|
|
8
|
+
* put, which is how a package keeps its handlers and mappers beside the routes
|
|
9
|
+
* that send them. A package that is itself named `http` is not: its source is
|
|
10
|
+
* the transport, not somebody's responses.
|
|
11
|
+
*
|
|
12
|
+
* The folder rule is the weaker of the two and the only one a signal can use
|
|
13
|
+
* for a handler that lives apart from its route card; the call rule is the one
|
|
14
|
+
* that cannot be fooled by a folder name.
|
|
15
|
+
*/
|
|
16
|
+
import { ts, type DoctorModule } from "./typescript-program.js";
|
|
17
|
+
/** True for a call to a route builder. */
|
|
18
|
+
export declare function isRouteBuilderCall(node: ts.Node): boolean;
|
|
19
|
+
/** True when a module calls a route builder anywhere in it. */
|
|
20
|
+
export declare function declaresRoutes(module: DoctorModule): boolean;
|
|
21
|
+
/** True for a module that decides what a response carries. */
|
|
22
|
+
export declare function isResponseCode(module: DoctorModule): boolean;
|
|
23
|
+
//# sourceMappingURL=response-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-code.d.ts","sourceRoot":"","sources":["../../../../src/doctor/signals/scanners/response-code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,EAAE,EAAc,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAK5E,0CAA0C;AAC1C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAMzD;AAED,+DAA+D;AAC/D,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAO5D;AAED,8DAA8D;AAC9D,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAE5D"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which modules decide what crosses the wire, read from the module itself.
|
|
3
|
+
*
|
|
4
|
+
* A module declares routes when it calls a route builder — `getRoute`,
|
|
5
|
+
* `listRoute`, `postRoute`, `patchRoute`, `putRoute`, `deleteRoute`,
|
|
6
|
+
* `postNoContentRoute` — the vocabulary both HTTP kits share. A module in an
|
|
7
|
+
* `http/` directory below a package's `src/` is response code by where it was
|
|
8
|
+
* put, which is how a package keeps its handlers and mappers beside the routes
|
|
9
|
+
* that send them. A package that is itself named `http` is not: its source is
|
|
10
|
+
* the transport, not somebody's responses.
|
|
11
|
+
*
|
|
12
|
+
* The folder rule is the weaker of the two and the only one a signal can use
|
|
13
|
+
* for a handler that lives apart from its route card; the call rule is the one
|
|
14
|
+
* that cannot be fooled by a folder name.
|
|
15
|
+
*/
|
|
16
|
+
import { ts, visitNodes } from "./typescript-program.js";
|
|
17
|
+
const ROUTE_BUILDER = /^(?:get|list|post|patch|put|delete|postNoContent)Route$/;
|
|
18
|
+
const HTTP_DIRECTORY = /\/src\/(?:[^/]+\/)*http\//;
|
|
19
|
+
/** True for a call to a route builder. */
|
|
20
|
+
export function isRouteBuilderCall(node) {
|
|
21
|
+
return (ts.isCallExpression(node) &&
|
|
22
|
+
ts.isIdentifier(node.expression) &&
|
|
23
|
+
ROUTE_BUILDER.test(node.expression.text));
|
|
24
|
+
}
|
|
25
|
+
/** True when a module calls a route builder anywhere in it. */
|
|
26
|
+
export function declaresRoutes(module) {
|
|
27
|
+
if (!module.source.text.includes("Route("))
|
|
28
|
+
return false;
|
|
29
|
+
let found = false;
|
|
30
|
+
visitNodes(module.source, (node) => {
|
|
31
|
+
if (isRouteBuilderCall(node))
|
|
32
|
+
found = true;
|
|
33
|
+
});
|
|
34
|
+
return found;
|
|
35
|
+
}
|
|
36
|
+
/** True for a module that decides what a response carries. */
|
|
37
|
+
export function isResponseCode(module) {
|
|
38
|
+
return HTTP_DIRECTORY.test(module.path) || declaresRoutes(module);
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=response-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-code.js","sourceRoot":"","sources":["../../../../src/doctor/signals/scanners/response-code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,EAAE,EAAE,UAAU,EAAqB,MAAM,yBAAyB,CAAC;AAE5E,MAAM,aAAa,GAAG,yDAAyD,CAAC;AAChF,MAAM,cAAc,GAAG,2BAA2B,CAAC;AAEnD,0CAA0C;AAC1C,MAAM,UAAU,kBAAkB,CAAC,IAAa;IAC9C,OAAO,CACL,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC;QACzB,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC;QAChC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CACzC,CAAC;AACJ,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,cAAc,CAAC,MAAoB;IACjD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,KAAK,CAAC;IACzD,IAAI,KAAK,GAAG,KAAK,CAAC;IAClB,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACjC,IAAI,kBAAkB,CAAC,IAAI,CAAC;YAAE,KAAK,GAAG,IAAI,CAAC;IAC7C,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC;AAED,8DAA8D;AAC9D,MAAM,UAAU,cAAc,CAAC,MAAoB;IACjD,OAAO,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type SourceRoute } from "../../../route-inspection/read-route-source.js";
|
|
2
|
+
import type { DoctorContext } from "../../doctor-context.js";
|
|
3
|
+
import { type GraphPackage } from "./package-graph.js";
|
|
4
|
+
export type RouteOperation = SourceRoute & {
|
|
5
|
+
readonly packageName: string;
|
|
6
|
+
readonly path: string;
|
|
7
|
+
};
|
|
8
|
+
type RouteModel = {
|
|
9
|
+
readonly operations: readonly RouteOperation[];
|
|
10
|
+
readonly packagesWithRoutes: readonly GraphPackage[];
|
|
11
|
+
};
|
|
12
|
+
/** Models only declared route source and never starts an application. */
|
|
13
|
+
export declare function readRouteModel(context: DoctorContext): RouteModel;
|
|
14
|
+
export declare function isListOperation(operation: RouteOperation): boolean;
|
|
15
|
+
export declare function operationKey(operation: RouteOperation): string;
|
|
16
|
+
export declare function operationEvidence(operation: RouteOperation): {
|
|
17
|
+
path: string;
|
|
18
|
+
line: number;
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=route-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-model.d.ts","sourceRoot":"","sources":["../../../../src/doctor/signals/scanners/route-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EACjB,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEzE,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,UAAU,EAAE,SAAS,cAAc,EAAE,CAAC;IAC/C,QAAQ,CAAC,kBAAkB,EAAE,SAAS,YAAY,EAAE,CAAC;CACtD,CAAC;AAIF,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,UAAU,CAcjE;AAgBD,wBAAgB,eAAe,CAAC,SAAS,EAAE,cAAc,GAAG,OAAO,CAElE;AAED,wBAAgB,YAAY,CAAC,SAAS,EAAE,cAAc,GAAG,MAAM,CAE9D;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,cAAc;IAEvD,IAAI;IACJ,IAAI;IACJ,IAAI;EAEP"}
|