silvermoon 0.3.0 → 0.4.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/README.md +28 -28
- package/README.zh-CN.md +26 -24
- package/dist/bin/build-npm-tarball.d.ts +28 -0
- package/dist/bin/build-npm-tarball.d.ts.map +1 -0
- package/dist/bin/build-npm-tarball.js +200 -0
- package/dist/bin/build-npm-tarball.js.map +1 -0
- package/dist/bin/check-pack.d.ts +2 -0
- package/dist/bin/check-pack.d.ts.map +1 -0
- package/dist/bin/check-pack.js +421 -0
- package/dist/bin/check-pack.js.map +1 -0
- package/dist/bin/ci-package-risk.d.ts +19 -0
- package/dist/bin/ci-package-risk.d.ts.map +1 -0
- package/dist/bin/ci-package-risk.js +78 -0
- package/dist/bin/ci-package-risk.js.map +1 -0
- package/dist/bin/generate-npm-readme.d.ts +7 -0
- package/dist/bin/generate-npm-readme.d.ts.map +1 -0
- package/dist/bin/generate-npm-readme.js +232 -0
- package/dist/bin/generate-npm-readme.js.map +1 -0
- package/dist/bin/migrate-v1-to-v2.d.ts +3 -0
- package/dist/bin/migrate-v1-to-v2.d.ts.map +1 -0
- package/dist/bin/migrate-v1-to-v2.js +25 -0
- package/dist/bin/migrate-v1-to-v2.js.map +1 -0
- package/dist/bin/prepare-npm-release.d.ts +46 -0
- package/dist/bin/prepare-npm-release.d.ts.map +1 -0
- package/dist/bin/prepare-npm-release.js +210 -0
- package/dist/bin/prepare-npm-release.js.map +1 -0
- package/dist/bin/pure-check.d.ts +15 -0
- package/dist/bin/pure-check.d.ts.map +1 -0
- package/dist/bin/pure-check.js +448 -0
- package/dist/bin/pure-check.js.map +1 -0
- package/dist/bin/run-checks.d.ts +34 -0
- package/dist/bin/run-checks.d.ts.map +1 -0
- package/dist/bin/run-checks.js +149 -0
- package/dist/bin/run-checks.js.map +1 -0
- package/dist/bin/silvermoon.d.ts +76 -0
- package/dist/bin/silvermoon.d.ts.map +1 -0
- package/dist/bin/silvermoon.js +401 -0
- package/dist/bin/silvermoon.js.map +1 -0
- package/dist/bin/sync-skills.d.ts +2 -0
- package/dist/bin/sync-skills.d.ts.map +1 -0
- package/dist/bin/sync-skills.js +78 -0
- package/dist/bin/sync-skills.js.map +1 -0
- package/dist/bin/verify-npm-release.d.ts +55 -0
- package/dist/bin/verify-npm-release.d.ts.map +1 -0
- package/dist/bin/verify-npm-release.js +418 -0
- package/dist/bin/verify-npm-release.js.map +1 -0
- package/dist/src/business/agent-copilot.d.ts +82 -0
- package/dist/src/business/agent-copilot.d.ts.map +1 -0
- package/dist/src/business/agent-copilot.js +330 -0
- package/dist/src/business/agent-copilot.js.map +1 -0
- package/dist/src/business/agent-project-registry.d.ts +22 -0
- package/dist/src/business/agent-project-registry.d.ts.map +1 -0
- package/dist/src/business/agent-project-registry.js +239 -0
- package/dist/src/business/agent-project-registry.js.map +1 -0
- package/dist/src/business/agent-project-runtime.d.ts +37 -0
- package/dist/src/business/agent-project-runtime.d.ts.map +1 -0
- package/dist/src/business/agent-project-runtime.js +198 -0
- package/dist/src/business/agent-project-runtime.js.map +1 -0
- package/dist/src/business/append-event-history.d.ts +21 -0
- package/dist/src/business/append-event-history.d.ts.map +1 -0
- package/dist/src/business/append-event-history.js +138 -0
- package/dist/src/business/append-event-history.js.map +1 -0
- package/dist/src/business/append-event.d.ts +140 -0
- package/dist/src/business/append-event.d.ts.map +1 -0
- package/dist/src/business/append-event.js +292 -0
- package/dist/src/business/append-event.js.map +1 -0
- package/dist/src/business/check-repository.d.ts +109 -0
- package/dist/src/business/check-repository.d.ts.map +1 -0
- package/dist/src/business/check-repository.js +379 -0
- package/dist/src/business/check-repository.js.map +1 -0
- package/dist/src/business/create-idea.d.ts +100 -0
- package/dist/src/business/create-idea.d.ts.map +1 -0
- package/dist/src/business/create-idea.js +224 -0
- package/dist/src/business/create-idea.js.map +1 -0
- package/dist/src/business/event-command.d.ts +111 -0
- package/dist/src/business/event-command.d.ts.map +1 -0
- package/dist/src/business/event-command.js +239 -0
- package/dist/src/business/event-command.js.map +1 -0
- package/dist/src/business/index.d.ts +7 -0
- package/dist/src/business/index.d.ts.map +1 -0
- package/dist/src/business/index.js +7 -0
- package/dist/src/business/index.js.map +1 -0
- package/dist/src/business/list-ideas.d.ts +97 -0
- package/dist/src/business/list-ideas.d.ts.map +1 -0
- package/dist/src/business/list-ideas.js +177 -0
- package/dist/src/business/list-ideas.js.map +1 -0
- package/dist/src/business/migrate-v1-to-v2.d.ts +23 -0
- package/dist/src/business/migrate-v1-to-v2.d.ts.map +1 -0
- package/dist/src/business/migrate-v1-to-v2.js +152 -0
- package/dist/src/business/migrate-v1-to-v2.js.map +1 -0
- package/dist/src/business/replay-events.d.ts +20 -0
- package/dist/src/business/replay-events.d.ts.map +1 -0
- package/dist/src/business/replay-events.js +27 -0
- package/dist/src/business/replay-events.js.map +1 -0
- package/dist/src/business/schema-migration.d.ts +19 -0
- package/dist/src/business/schema-migration.d.ts.map +1 -0
- package/dist/src/business/schema-migration.js +23 -0
- package/dist/src/business/schema-migration.js.map +1 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.d.ts +3 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.js +9 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.js.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness-with.d.ts +18 -0
- package/dist/src/business/shared/assess-repository-readiness-with.d.ts.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness-with.js +125 -0
- package/dist/src/business/shared/assess-repository-readiness-with.js.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness.d.ts +3 -0
- package/dist/src/business/shared/assess-repository-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness.js +6 -0
- package/dist/src/business/shared/assess-repository-readiness.js.map +1 -0
- package/dist/src/business/shared/business-types.d.ts +151 -0
- package/dist/src/business/shared/business-types.d.ts.map +1 -0
- package/dist/src/business/shared/business-types.js +83 -0
- package/dist/src/business/shared/business-types.js.map +1 -0
- package/dist/src/business/shared/evaluate-local-readiness.d.ts +9 -0
- package/dist/src/business/shared/evaluate-local-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/evaluate-local-readiness.js +97 -0
- package/dist/src/business/shared/evaluate-local-readiness.js.map +1 -0
- package/dist/src/business/shared/evaluate-primary-relation.d.ts +12 -0
- package/dist/src/business/shared/evaluate-primary-relation.d.ts.map +1 -0
- package/dist/src/business/shared/evaluate-primary-relation.js +40 -0
- package/dist/src/business/shared/evaluate-primary-relation.js.map +1 -0
- package/dist/src/business/shared/idea-layout.d.ts +55 -0
- package/dist/src/business/shared/idea-layout.d.ts.map +1 -0
- package/dist/src/business/shared/idea-layout.js +434 -0
- package/dist/src/business/shared/idea-layout.js.map +1 -0
- package/dist/src/business/shared/index.d.ts +18 -0
- package/dist/src/business/shared/index.d.ts.map +1 -0
- package/dist/src/business/shared/index.js +17 -0
- package/dist/src/business/shared/index.js.map +1 -0
- package/dist/src/business/shared/inspect-candidate.d.ts +5 -0
- package/dist/src/business/shared/inspect-candidate.d.ts.map +1 -0
- package/dist/src/business/shared/inspect-candidate.js +57 -0
- package/dist/src/business/shared/inspect-candidate.js.map +1 -0
- package/dist/src/business/shared/metadata-failure-observation.d.ts +21 -0
- package/dist/src/business/shared/metadata-failure-observation.d.ts.map +1 -0
- package/dist/src/business/shared/metadata-failure-observation.js +30 -0
- package/dist/src/business/shared/metadata-failure-observation.js.map +1 -0
- package/dist/src/business/shared/observe-device.d.ts +150 -0
- package/dist/src/business/shared/observe-device.d.ts.map +1 -0
- package/dist/src/business/shared/observe-device.js +71 -0
- package/dist/src/business/shared/observe-device.js.map +1 -0
- package/dist/src/business/shared/observe-idea.d.ts +14 -0
- package/dist/src/business/shared/observe-idea.d.ts.map +1 -0
- package/dist/src/business/shared/observe-idea.js +14 -0
- package/dist/src/business/shared/observe-idea.js.map +1 -0
- package/dist/src/business/shared/observe-project.d.ts +39 -0
- package/dist/src/business/shared/observe-project.d.ts.map +1 -0
- package/dist/src/business/shared/observe-project.js +11 -0
- package/dist/src/business/shared/observe-project.js.map +1 -0
- package/dist/src/business/shared/observe-snapshot.d.ts +35 -0
- package/dist/src/business/shared/observe-snapshot.d.ts.map +1 -0
- package/dist/src/business/shared/observe-snapshot.js +518 -0
- package/dist/src/business/shared/observe-snapshot.js.map +1 -0
- package/dist/src/business/shared/read-idea-inventory-item.d.ts +13 -0
- package/dist/src/business/shared/read-idea-inventory-item.d.ts.map +1 -0
- package/dist/src/business/shared/read-idea-inventory-item.js +18 -0
- package/dist/src/business/shared/read-idea-inventory-item.js.map +1 -0
- package/dist/src/business/shared/resolve-idea.d.ts +7 -0
- package/dist/src/business/shared/resolve-idea.d.ts.map +1 -0
- package/dist/src/business/shared/resolve-idea.js +14 -0
- package/dist/src/business/shared/resolve-idea.js.map +1 -0
- package/dist/src/business/shared/with-observation-language.d.ts +3 -0
- package/dist/src/business/shared/with-observation-language.d.ts.map +1 -0
- package/dist/src/business/shared/with-observation-language.js +20 -0
- package/dist/src/business/shared/with-observation-language.js.map +1 -0
- package/dist/src/business/whats-next.d.ts +94 -0
- package/dist/src/business/whats-next.d.ts.map +1 -0
- package/dist/src/business/whats-next.js +208 -0
- package/dist/src/business/whats-next.js.map +1 -0
- package/dist/src/foundation/command-message/index.d.ts +3 -0
- package/dist/src/foundation/command-message/index.d.ts.map +1 -0
- package/dist/src/foundation/command-message/index.js +3 -0
- package/dist/src/foundation/command-message/index.js.map +1 -0
- package/dist/src/foundation/command-message/observation.d.ts +223 -0
- package/dist/src/foundation/command-message/observation.d.ts.map +1 -0
- package/dist/src/foundation/command-message/observation.js +364 -0
- package/dist/src/foundation/command-message/observation.js.map +1 -0
- package/dist/src/foundation/command-message/runtime.d.ts +214 -0
- package/dist/src/foundation/command-message/runtime.d.ts.map +1 -0
- package/dist/src/foundation/command-message/runtime.js +215 -0
- package/dist/src/foundation/command-message/runtime.js.map +1 -0
- package/dist/src/foundation/coordinates/index.d.ts +3 -0
- package/dist/src/foundation/coordinates/index.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/index.js +3 -0
- package/dist/src/foundation/coordinates/index.js.map +1 -0
- package/dist/src/foundation/coordinates/layout.d.ts +27 -0
- package/dist/src/foundation/coordinates/layout.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/layout.js +41 -0
- package/dist/src/foundation/coordinates/layout.js.map +1 -0
- package/dist/src/foundation/coordinates/repository.d.ts +16 -0
- package/dist/src/foundation/coordinates/repository.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/repository.js +75 -0
- package/dist/src/foundation/coordinates/repository.js.map +1 -0
- package/dist/src/foundation/device-config/index.d.ts +2 -0
- package/dist/src/foundation/device-config/index.d.ts.map +1 -0
- package/dist/src/foundation/device-config/index.js +2 -0
- package/dist/src/foundation/device-config/index.js.map +1 -0
- package/dist/src/foundation/device-config/user-config.d.ts +19 -0
- package/dist/src/foundation/device-config/user-config.d.ts.map +1 -0
- package/dist/src/foundation/device-config/user-config.js +94 -0
- package/dist/src/foundation/device-config/user-config.js.map +1 -0
- package/dist/src/foundation/event-codec/grammar.d.ts +172 -0
- package/dist/src/foundation/event-codec/grammar.d.ts.map +1 -0
- package/dist/src/foundation/event-codec/grammar.js +383 -0
- package/dist/src/foundation/event-codec/grammar.js.map +1 -0
- package/dist/src/foundation/event-codec/index.d.ts +3 -0
- package/dist/src/foundation/event-codec/index.d.ts.map +1 -0
- package/dist/src/foundation/event-codec/index.js +2 -0
- package/dist/src/foundation/event-codec/index.js.map +1 -0
- package/dist/src/foundation/event-cursor/cursor.d.ts +40 -0
- package/dist/src/foundation/event-cursor/cursor.d.ts.map +1 -0
- package/dist/src/foundation/event-cursor/cursor.js +42 -0
- package/dist/src/foundation/event-cursor/cursor.js.map +1 -0
- package/dist/src/foundation/event-cursor/index.d.ts +2 -0
- package/dist/src/foundation/event-cursor/index.d.ts.map +1 -0
- package/dist/src/foundation/event-cursor/index.js +2 -0
- package/dist/src/foundation/event-cursor/index.js.map +1 -0
- package/dist/src/foundation/event-history/digest.d.ts +2 -0
- package/dist/src/foundation/event-history/digest.d.ts.map +1 -0
- package/dist/src/foundation/event-history/digest.js +2 -0
- package/dist/src/foundation/event-history/digest.js.map +1 -0
- package/dist/src/foundation/event-history/history.d.ts +86 -0
- package/dist/src/foundation/event-history/history.d.ts.map +1 -0
- package/dist/src/foundation/event-history/history.js +481 -0
- package/dist/src/foundation/event-history/history.js.map +1 -0
- package/dist/src/foundation/event-history/index.d.ts +3 -0
- package/dist/src/foundation/event-history/index.d.ts.map +1 -0
- package/dist/src/foundation/event-history/index.js +3 -0
- package/dist/src/foundation/event-history/index.js.map +1 -0
- package/dist/src/foundation/event-reducer/index.d.ts +2 -0
- package/dist/src/foundation/event-reducer/index.d.ts.map +1 -0
- package/dist/src/foundation/event-reducer/index.js +2 -0
- package/dist/src/foundation/event-reducer/index.js.map +1 -0
- package/dist/src/foundation/event-reducer/policy.d.ts +69 -0
- package/dist/src/foundation/event-reducer/policy.d.ts.map +1 -0
- package/dist/src/foundation/event-reducer/policy.js +138 -0
- package/dist/src/foundation/event-reducer/policy.js.map +1 -0
- package/dist/src/foundation/event-store/digest.d.ts +11 -0
- package/dist/src/foundation/event-store/digest.d.ts.map +1 -0
- package/dist/src/foundation/event-store/digest.js +38 -0
- package/dist/src/foundation/event-store/digest.js.map +1 -0
- package/dist/src/foundation/event-store/index.d.ts +3 -0
- package/dist/src/foundation/event-store/index.d.ts.map +1 -0
- package/dist/src/foundation/event-store/index.js +3 -0
- package/dist/src/foundation/event-store/index.js.map +1 -0
- package/dist/src/foundation/event-store/storage.d.ts +50 -0
- package/dist/src/foundation/event-store/storage.d.ts.map +1 -0
- package/dist/src/foundation/event-store/storage.js +109 -0
- package/dist/src/foundation/event-store/storage.js.map +1 -0
- package/dist/src/foundation/git/derived-cache.d.ts +5 -0
- package/dist/src/foundation/git/derived-cache.d.ts.map +1 -0
- package/dist/src/foundation/git/derived-cache.js +117 -0
- package/dist/src/foundation/git/derived-cache.js.map +1 -0
- package/dist/src/foundation/git/git.d.ts +100 -0
- package/dist/src/foundation/git/git.d.ts.map +1 -0
- package/dist/src/foundation/git/git.js +677 -0
- package/dist/src/foundation/git/git.js.map +1 -0
- package/dist/src/foundation/git/index.d.ts +3 -0
- package/dist/src/foundation/git/index.d.ts.map +1 -0
- package/dist/src/foundation/git/index.js +3 -0
- package/dist/src/foundation/git/index.js.map +1 -0
- package/dist/src/foundation/guidance/guidance.d.ts +36 -0
- package/dist/src/foundation/guidance/guidance.d.ts.map +1 -0
- package/dist/src/foundation/guidance/guidance.js +198 -0
- package/dist/src/foundation/guidance/guidance.js.map +1 -0
- package/dist/src/foundation/guidance/index.d.ts +3 -0
- package/dist/src/foundation/guidance/index.d.ts.map +1 -0
- package/dist/src/foundation/guidance/index.js +3 -0
- package/dist/src/foundation/guidance/index.js.map +1 -0
- package/dist/src/foundation/guidance/rules.d.ts +36 -0
- package/dist/src/foundation/guidance/rules.d.ts.map +1 -0
- package/dist/src/foundation/guidance/rules.js +65 -0
- package/dist/src/foundation/guidance/rules.js.map +1 -0
- package/dist/src/foundation/idea-model/index.d.ts +3 -0
- package/dist/src/foundation/idea-model/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/index.js +3 -0
- package/dist/src/foundation/idea-model/index.js.map +1 -0
- package/dist/src/foundation/idea-model/status.d.ts +28 -0
- package/dist/src/foundation/idea-model/status.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/status.js +192 -0
- package/dist/src/foundation/idea-model/status.js.map +1 -0
- package/dist/src/foundation/idea-model/ulid.d.ts +6 -0
- package/dist/src/foundation/idea-model/ulid.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/ulid.js +16 -0
- package/dist/src/foundation/idea-model/ulid.js.map +1 -0
- package/dist/src/foundation/idea-query/index.d.ts +3 -0
- package/dist/src/foundation/idea-query/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/index.js +3 -0
- package/dist/src/foundation/idea-query/index.js.map +1 -0
- package/dist/src/foundation/idea-query/query.d.ts +13 -0
- package/dist/src/foundation/idea-query/query.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/query.js +17 -0
- package/dist/src/foundation/idea-query/query.js.map +1 -0
- package/dist/src/foundation/idea-query/rules.d.ts +55 -0
- package/dist/src/foundation/idea-query/rules.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/rules.js +223 -0
- package/dist/src/foundation/idea-query/rules.js.map +1 -0
- package/dist/src/foundation/idea-template/index.d.ts +2 -0
- package/dist/src/foundation/idea-template/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-template/index.js +2 -0
- package/dist/src/foundation/idea-template/index.js.map +1 -0
- package/dist/src/foundation/idea-template/templates.d.ts +21 -0
- package/dist/src/foundation/idea-template/templates.d.ts.map +1 -0
- package/dist/src/foundation/idea-template/templates.js +265 -0
- package/dist/src/foundation/idea-template/templates.js.map +1 -0
- package/dist/src/foundation/installation/device-readiness.d.ts +94 -0
- package/dist/src/foundation/installation/device-readiness.d.ts.map +1 -0
- package/dist/src/foundation/installation/device-readiness.js +274 -0
- package/dist/src/foundation/installation/device-readiness.js.map +1 -0
- package/dist/src/foundation/installation/index.d.ts +4 -0
- package/dist/src/foundation/installation/index.d.ts.map +1 -0
- package/dist/src/foundation/installation/index.js +4 -0
- package/dist/src/foundation/installation/index.js.map +1 -0
- package/dist/src/foundation/installation/installation.d.ts +25 -0
- package/dist/src/foundation/installation/installation.d.ts.map +1 -0
- package/dist/src/foundation/installation/installation.js +125 -0
- package/dist/src/foundation/installation/installation.js.map +1 -0
- package/dist/src/foundation/installation/rules.d.ts +12 -0
- package/dist/src/foundation/installation/rules.d.ts.map +1 -0
- package/dist/src/foundation/installation/rules.js +63 -0
- package/dist/src/foundation/installation/rules.js.map +1 -0
- package/dist/src/foundation/language/index.d.ts +3 -0
- package/dist/src/foundation/language/index.d.ts.map +1 -0
- package/dist/src/foundation/language/index.js +2 -0
- package/dist/src/foundation/language/index.js.map +1 -0
- package/dist/src/foundation/language/language.d.ts +36 -0
- package/dist/src/foundation/language/language.d.ts.map +1 -0
- package/dist/src/foundation/language/language.js +94 -0
- package/dist/src/foundation/language/language.js.map +1 -0
- package/dist/src/foundation/owned-write/index.d.ts +2 -0
- package/dist/src/foundation/owned-write/index.d.ts.map +1 -0
- package/dist/src/foundation/owned-write/index.js +2 -0
- package/dist/src/foundation/owned-write/index.js.map +1 -0
- package/dist/src/foundation/owned-write/writer.d.ts +86 -0
- package/dist/src/foundation/owned-write/writer.d.ts.map +1 -0
- package/dist/src/foundation/owned-write/writer.js +244 -0
- package/dist/src/foundation/owned-write/writer.js.map +1 -0
- package/dist/src/foundation/package-resource/index.d.ts +2 -0
- package/dist/src/foundation/package-resource/index.d.ts.map +1 -0
- package/dist/src/foundation/package-resource/index.js +2 -0
- package/dist/src/foundation/package-resource/index.js.map +1 -0
- package/dist/src/foundation/package-resource/npm-tarball.d.ts +15 -0
- package/dist/src/foundation/package-resource/npm-tarball.d.ts.map +1 -0
- package/dist/src/foundation/package-resource/npm-tarball.js +124 -0
- package/dist/src/foundation/package-resource/npm-tarball.js.map +1 -0
- package/dist/src/foundation/process/index.d.ts +3 -0
- package/dist/src/foundation/process/index.d.ts.map +1 -0
- package/dist/src/foundation/process/index.js +3 -0
- package/dist/src/foundation/process/index.js.map +1 -0
- package/dist/src/foundation/process/npm-command.d.ts +9 -0
- package/dist/src/foundation/process/npm-command.d.ts.map +1 -0
- package/dist/src/foundation/process/npm-command.js +11 -0
- package/dist/src/foundation/process/npm-command.js.map +1 -0
- package/dist/src/foundation/process/subprocess.d.ts +8 -0
- package/dist/src/foundation/process/subprocess.d.ts.map +1 -0
- package/dist/src/foundation/process/subprocess.js +12 -0
- package/dist/src/foundation/process/subprocess.js.map +1 -0
- package/dist/src/foundation/project-config/config.d.ts +30 -0
- package/dist/src/foundation/project-config/config.d.ts.map +1 -0
- package/dist/src/foundation/project-config/config.js +112 -0
- package/dist/src/foundation/project-config/config.js.map +1 -0
- package/dist/src/foundation/project-config/index.d.ts +3 -0
- package/dist/src/foundation/project-config/index.d.ts.map +1 -0
- package/dist/src/foundation/project-config/index.js +3 -0
- package/dist/src/foundation/project-config/index.js.map +1 -0
- package/dist/src/foundation/project-config/rules.d.ts +32 -0
- package/dist/src/foundation/project-config/rules.d.ts.map +1 -0
- package/dist/src/foundation/project-config/rules.js +119 -0
- package/dist/src/foundation/project-config/rules.js.map +1 -0
- package/dist/src/foundation/projection-cache/index.d.ts +2 -0
- package/dist/src/foundation/projection-cache/index.d.ts.map +1 -0
- package/dist/src/foundation/projection-cache/index.js +2 -0
- package/dist/src/foundation/projection-cache/index.js.map +1 -0
- package/dist/src/foundation/projection-cache/projection.d.ts +36 -0
- package/dist/src/foundation/projection-cache/projection.d.ts.map +1 -0
- package/dist/src/foundation/projection-cache/projection.js +105 -0
- package/dist/src/foundation/projection-cache/projection.js.map +1 -0
- package/dist/src/foundation/renderer/index.d.ts +3 -0
- package/dist/src/foundation/renderer/index.d.ts.map +1 -0
- package/dist/src/foundation/renderer/index.js +3 -0
- package/dist/src/foundation/renderer/index.js.map +1 -0
- package/dist/src/foundation/renderer/markdown.d.ts +7 -0
- package/dist/src/foundation/renderer/markdown.d.ts.map +1 -0
- package/dist/src/foundation/renderer/markdown.js +355 -0
- package/dist/src/foundation/renderer/markdown.js.map +1 -0
- package/dist/src/foundation/renderer/render.d.ts +6 -0
- package/dist/src/foundation/renderer/render.d.ts.map +1 -0
- package/dist/src/foundation/renderer/render.js +23 -0
- package/dist/src/foundation/renderer/render.js.map +1 -0
- package/dist/src/foundation/report/dialogue.d.ts +37 -0
- package/dist/src/foundation/report/dialogue.d.ts.map +1 -0
- package/dist/src/foundation/report/dialogue.js +59 -0
- package/dist/src/foundation/report/dialogue.js.map +1 -0
- package/dist/src/foundation/report/index.d.ts +6 -0
- package/dist/src/foundation/report/index.d.ts.map +1 -0
- package/dist/src/foundation/report/index.js +6 -0
- package/dist/src/foundation/report/index.js.map +1 -0
- package/dist/src/foundation/report/instructions.d.ts +77 -0
- package/dist/src/foundation/report/instructions.d.ts.map +1 -0
- package/dist/src/foundation/report/instructions.js +374 -0
- package/dist/src/foundation/report/instructions.js.map +1 -0
- package/dist/src/foundation/report/observation.d.ts +31 -0
- package/dist/src/foundation/report/observation.d.ts.map +1 -0
- package/dist/src/foundation/report/observation.js +83 -0
- package/dist/src/foundation/report/observation.js.map +1 -0
- package/dist/src/foundation/report/projection.d.ts +7 -0
- package/dist/src/foundation/report/projection.d.ts.map +1 -0
- package/dist/src/foundation/report/projection.js +199 -0
- package/dist/src/foundation/report/projection.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/contract.d.ts +148 -0
- package/dist/src/foundation/report/templates/whats-next/contract.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/contract.js +34 -0
- package/dist/src/foundation/report/templates/whats-next/contract.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.d.ts +12 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.js +63 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.js +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.js +39 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.js +12 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/index.d.ts +5 -0
- package/dist/src/foundation/report/templates/whats-next/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/index.js +4 -0
- package/dist/src/foundation/report/templates/whats-next/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/registry.d.ts +4 -0
- package/dist/src/foundation/report/templates/whats-next/registry.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/registry.js +14 -0
- package/dist/src/foundation/report/templates/whats-next/registry.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.js +176 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.d.ts +12 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.js +63 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.js +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.js +39 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.js +12 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.js.map +1 -0
- package/dist/src/foundation/report/types.d.ts +321 -0
- package/dist/src/foundation/report/types.d.ts.map +1 -0
- package/dist/src/foundation/report/types.js +2 -0
- package/dist/src/foundation/report/types.js.map +1 -0
- package/dist/src/foundation/scaffold-plan/index.d.ts +2 -0
- package/dist/src/foundation/scaffold-plan/index.d.ts.map +1 -0
- package/dist/src/foundation/scaffold-plan/index.js +2 -0
- package/dist/src/foundation/scaffold-plan/index.js.map +1 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.d.ts +11 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.d.ts.map +1 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.js +36 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.js.map +1 -0
- package/dist/src/foundation/schema/index.d.ts +3 -0
- package/dist/src/foundation/schema/index.d.ts.map +1 -0
- package/dist/src/foundation/schema/index.js +3 -0
- package/dist/src/foundation/schema/index.js.map +1 -0
- package/dist/src/foundation/schema/schema.d.ts +3 -0
- package/dist/src/foundation/schema/schema.d.ts.map +1 -0
- package/dist/src/foundation/schema/schema.js +10 -0
- package/dist/src/foundation/schema/schema.js.map +1 -0
- package/dist/src/foundation/schema/yaml.d.ts +10 -0
- package/dist/src/foundation/schema/yaml.d.ts.map +1 -0
- package/dist/src/foundation/schema/yaml.js +60 -0
- package/dist/src/foundation/schema/yaml.js.map +1 -0
- package/dist/src/foundation/schema-capability/index.d.ts +6 -0
- package/dist/src/foundation/schema-capability/index.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/index.js +4 -0
- package/dist/src/foundation/schema-capability/index.js.map +1 -0
- package/dist/src/foundation/schema-capability/inspection.d.ts +38 -0
- package/dist/src/foundation/schema-capability/inspection.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/inspection.js +249 -0
- package/dist/src/foundation/schema-capability/inspection.js.map +1 -0
- package/dist/src/foundation/schema-capability/manifest.d.ts +6 -0
- package/dist/src/foundation/schema-capability/manifest.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/manifest.js +17 -0
- package/dist/src/foundation/schema-capability/manifest.js.map +1 -0
- package/dist/src/foundation/schema-capability/rules.d.ts +38 -0
- package/dist/src/foundation/schema-capability/rules.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/rules.js +297 -0
- package/dist/src/foundation/schema-capability/rules.js.map +1 -0
- package/dist/src/foundation/skill-registration/adoption.d.ts +40 -0
- package/dist/src/foundation/skill-registration/adoption.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/adoption.js +63 -0
- package/dist/src/foundation/skill-registration/adoption.js.map +1 -0
- package/dist/src/foundation/skill-registration/index.d.ts +2 -0
- package/dist/src/foundation/skill-registration/index.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/index.js +2 -0
- package/dist/src/foundation/skill-registration/index.js.map +1 -0
- package/dist/src/foundation/skill-registration/rules.d.ts +2 -0
- package/dist/src/foundation/skill-registration/rules.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/rules.js +2 -0
- package/dist/src/foundation/skill-registration/rules.js.map +1 -0
- package/dist/src/foundation/snapshot/git-snapshot.d.ts +40 -0
- package/dist/src/foundation/snapshot/git-snapshot.d.ts.map +1 -0
- package/dist/src/foundation/snapshot/git-snapshot.js +168 -0
- package/dist/src/foundation/snapshot/git-snapshot.js.map +1 -0
- package/dist/src/foundation/snapshot/index.d.ts +2 -0
- package/dist/src/foundation/snapshot/index.d.ts.map +1 -0
- package/dist/src/foundation/snapshot/index.js +2 -0
- package/dist/src/foundation/snapshot/index.js.map +1 -0
- package/dist/src/foundation/state-transaction/index.d.ts +2 -0
- package/dist/src/foundation/state-transaction/index.d.ts.map +1 -0
- package/dist/src/foundation/state-transaction/index.js +2 -0
- package/dist/src/foundation/state-transaction/index.js.map +1 -0
- package/dist/src/foundation/state-transaction/state-transaction.d.ts +48 -0
- package/dist/src/foundation/state-transaction/state-transaction.d.ts.map +1 -0
- package/dist/src/foundation/state-transaction/state-transaction.js +364 -0
- package/dist/src/foundation/state-transaction/state-transaction.js.map +1 -0
- package/dist/src/foundation/terminal/index.d.ts +2 -0
- package/dist/src/foundation/terminal/index.d.ts.map +1 -0
- package/dist/src/foundation/terminal/index.js +2 -0
- package/dist/src/foundation/terminal/index.js.map +1 -0
- package/dist/src/foundation/terminal/terminal.d.ts +17 -0
- package/dist/src/foundation/terminal/terminal.d.ts.map +1 -0
- package/dist/src/foundation/terminal/terminal.js +12 -0
- package/dist/src/foundation/terminal/terminal.js.map +1 -0
- package/dist/src/foundation/trace/index.d.ts +2 -0
- package/dist/src/foundation/trace/index.d.ts.map +1 -0
- package/dist/src/foundation/trace/index.js +2 -0
- package/dist/src/foundation/trace/index.js.map +1 -0
- package/dist/src/foundation/trace/trace.d.ts +12 -0
- package/dist/src/foundation/trace/trace.d.ts.map +1 -0
- package/dist/src/foundation/trace/trace.js +299 -0
- package/dist/src/foundation/trace/trace.js.map +1 -0
- package/dist/src/foundation/tui/index.d.ts +3 -0
- package/dist/src/foundation/tui/index.d.ts.map +1 -0
- package/dist/src/foundation/tui/index.js +3 -0
- package/dist/src/foundation/tui/index.js.map +1 -0
- package/dist/src/foundation/tui/table.d.ts +10 -0
- package/dist/src/foundation/tui/table.d.ts.map +1 -0
- package/dist/src/foundation/tui/table.js +91 -0
- package/dist/src/foundation/tui/table.js.map +1 -0
- package/dist/src/foundation/tui/tui.d.ts +33 -0
- package/dist/src/foundation/tui/tui.d.ts.map +1 -0
- package/dist/src/foundation/tui/tui.js +157 -0
- package/dist/src/foundation/tui/tui.js.map +1 -0
- package/dist/src/index.d.ts +17 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +16 -0
- package/dist/src/index.js.map +1 -0
- package/docs/core-concepts.md +48 -7
- package/docs/getting-started.md +60 -45
- package/docs/maintaining.md +132 -9
- package/docs/npm-package-releases.md +38 -9
- package/docs/operations.md +109 -35
- package/docs/reference.md +304 -35
- package/docs/repository-tasks.md +61 -20
- package/package.json +53 -27
- package/schema/capabilities.json +95 -0
- package/schema/capability-manifest.schema.json +139 -0
- package/schema/v1/command-report.schema.json +4 -2
- package/schema/v1/domain-message.schema.json +2 -1
- package/schema/v2/config.schema.json +14 -0
- package/schema/v2/idea-event.schema.json +121 -0
- package/skills/silvermoon/SKILL.md +204 -112
- package/skills/silvermoon/references/adoption.md +55 -24
- package/skills/silvermoon/references/events.md +296 -0
- package/bin/silvermoon.js +0 -10
- package/src/adoption.js +0 -559
- package/src/cli.js +0 -377
- package/src/config.js +0 -253
- package/src/create-idea.js +0 -497
- package/src/dialogue.js +0 -69
- package/src/domain.js +0 -592
- package/src/git-snapshot.js +0 -212
- package/src/git.js +0 -624
- package/src/guidance.js +0 -281
- package/src/idea-layout.js +0 -411
- package/src/idea-metadata.js +0 -48
- package/src/idea-query.js +0 -230
- package/src/idea-templates.js +0 -242
- package/src/ideas.js +0 -142
- package/src/index.js +0 -386
- package/src/language.js +0 -78
- package/src/layout.js +0 -38
- package/src/list-ideas.js +0 -196
- package/src/observation.js +0 -370
- package/src/repository.js +0 -82
- package/src/response.js +0 -492
- package/src/subprocess.js +0 -27
- package/src/trace.js +0 -292
- package/src/tui-table.js +0 -71
- package/src/tui.js +0 -205
- package/src/user-config.js +0 -135
- package/src/whatsnext.js +0 -726
- package/src/yaml.js +0 -66
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
import { readFile, readdir } from "node:fs/promises";
|
|
2
|
+
import { dirname, posix, relative, resolve } from "node:path";
|
|
3
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
|
+
import ts from "typescript";
|
|
5
|
+
export const RULE_MODULES = Object.freeze([
|
|
6
|
+
"foundation/command-message/observation.ts", "foundation/report/projection.ts",
|
|
7
|
+
"foundation/renderer/markdown.ts", "foundation/report/instructions.ts",
|
|
8
|
+
"business/shared/evaluate-local-readiness.ts",
|
|
9
|
+
"business/shared/evaluate-primary-relation.ts", "foundation/report/observation.ts",
|
|
10
|
+
"foundation/event-reducer/policy.ts", "foundation/event-store/digest.ts",
|
|
11
|
+
"foundation/scaffold-plan/scaffold-plan.ts", "foundation/idea-model/ulid.ts",
|
|
12
|
+
"foundation/project-config/rules.ts", "foundation/skill-registration/rules.ts",
|
|
13
|
+
"foundation/guidance/rules.ts", "foundation/idea-query/rules.ts",
|
|
14
|
+
]);
|
|
15
|
+
const RULE_ENTRYPOINTS = new Set([
|
|
16
|
+
"foundation/event-codec/index.ts", "foundation/event-reducer/index.ts",
|
|
17
|
+
"foundation/idea-model/index.ts",
|
|
18
|
+
"foundation/idea-template/index.ts", "foundation/language/index.ts",
|
|
19
|
+
"foundation/coordinates/index.ts", "foundation/schema/index.ts",
|
|
20
|
+
]);
|
|
21
|
+
const RULE_DEPENDENCIES = new Set([
|
|
22
|
+
...RULE_MODULES, ...RULE_ENTRYPOINTS, "foundation/report/dialogue.ts",
|
|
23
|
+
"foundation/language/language.ts", "foundation/idea-model/status.ts",
|
|
24
|
+
"foundation/event-codec/grammar.ts", "foundation/idea-template/templates.ts",
|
|
25
|
+
"foundation/coordinates/layout.ts", "foundation/schema/yaml.ts",
|
|
26
|
+
"foundation/coordinates/repository.ts", "foundation/schema/schema.ts",
|
|
27
|
+
"foundation/event-store/digest.ts",
|
|
28
|
+
"foundation/language/index.ts", "foundation/coordinates/index.ts",
|
|
29
|
+
"foundation/schema/index.ts", "foundation/event-codec/index.ts",
|
|
30
|
+
"foundation/event-history/index.ts", "foundation/idea-template/index.ts",
|
|
31
|
+
"foundation/git/index.ts", "foundation/project-config/index.ts",
|
|
32
|
+
"foundation/renderer/index.ts", "foundation/report/index.ts",
|
|
33
|
+
"foundation/report/templates/whats-next/index.ts",
|
|
34
|
+
"business/shared/business-types.ts",
|
|
35
|
+
]);
|
|
36
|
+
const EXTERNAL_FUNCTIONS = new Map([
|
|
37
|
+
["node:crypto", new Set(["createHash"])],
|
|
38
|
+
["node:url", new Set(["URL"])],
|
|
39
|
+
["node:util", new Set(["isDeepStrictEqual"])],
|
|
40
|
+
["yaml", new Set([
|
|
41
|
+
"isAlias", "isMap", "isNode", "isScalar", "parseDocument", "stringify", "visit",
|
|
42
|
+
])],
|
|
43
|
+
["mdast-util-from-markdown", new Set(["fromMarkdown"])],
|
|
44
|
+
]);
|
|
45
|
+
const GLOBAL_FUNCTIONS = new Set([
|
|
46
|
+
"String", "Number", "Boolean", "BigInt", "structuredClone", "parseInt", "parseFloat",
|
|
47
|
+
]);
|
|
48
|
+
const CONSTRUCTORS = new Set([
|
|
49
|
+
"Error", "TypeError", "RangeError", "Map", "Set", "RegExp", "TextDecoder", "URL",
|
|
50
|
+
]);
|
|
51
|
+
const FORBIDDEN_GLOBALS = new Set([
|
|
52
|
+
"process", "console", "globalThis", "global", "window", "document", "performance",
|
|
53
|
+
"fetch", "setTimeout", "setInterval", "queueMicrotask", "crypto",
|
|
54
|
+
]);
|
|
55
|
+
const METHODS = new Set([
|
|
56
|
+
"at", "map", "filter", "reduce", "some", "every", "find", "findIndex", "flatMap",
|
|
57
|
+
"slice", "subarray", "split", "join", "includes", "startsWith", "endsWith", "trim",
|
|
58
|
+
"toLowerCase", "toUpperCase", "replace", "replaceAll", "match", "matchAll", "test",
|
|
59
|
+
"exec", "indexOf", "padStart", "repeat", "toString", "toISOString", "getTime",
|
|
60
|
+
"getUTCFullYear", "getUTCMonth", "getUTCDate", "get", "has", "entries", "values",
|
|
61
|
+
"keys", "equals", "decode", "toJS", "update", "digest",
|
|
62
|
+
]);
|
|
63
|
+
const MUTATORS = new Set([
|
|
64
|
+
"push", "pop", "shift", "unshift", "sort", "reverse", "splice", "set", "add",
|
|
65
|
+
"delete", "clear", "fill", "copyWithin", "setUTCFullYear", "setUTCHours",
|
|
66
|
+
]);
|
|
67
|
+
const STATIC_CALLS = new Set([
|
|
68
|
+
"Object.keys", "Object.values", "Object.entries", "Object.fromEntries", "Object.hasOwn",
|
|
69
|
+
"Object.freeze", "Object.isFrozen", "Object.assign", "Object.defineProperty",
|
|
70
|
+
"Array.isArray", "Array.from", "ArrayBuffer.isView", "JSON.parse",
|
|
71
|
+
"JSON.stringify", "Number.isFinite", "Number.isInteger", "Number.isSafeInteger",
|
|
72
|
+
"Date.parse", "Math.max", "Math.min", "Math.abs", "Math.floor", "Math.round",
|
|
73
|
+
"Math.ceil", "Math.trunc", "Intl.getCanonicalLocales", "Buffer.from", "Buffer.alloc",
|
|
74
|
+
"Buffer.concat", "Buffer.compare", "Buffer.byteLength", "Buffer.isBuffer",
|
|
75
|
+
]);
|
|
76
|
+
function pure(node) {
|
|
77
|
+
return ts.getJSDocTags(node).some(({ tagName }) => tagName.text === "pure");
|
|
78
|
+
}
|
|
79
|
+
function rootName(node) {
|
|
80
|
+
if (!node)
|
|
81
|
+
return undefined;
|
|
82
|
+
if (ts.isIdentifier(node))
|
|
83
|
+
return node.text;
|
|
84
|
+
if (ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node)
|
|
85
|
+
|| ts.isParenthesizedExpression(node))
|
|
86
|
+
return rootName(node.expression);
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
function rootIdentifier(node) {
|
|
90
|
+
if (!node)
|
|
91
|
+
return undefined;
|
|
92
|
+
if (ts.isIdentifier(node))
|
|
93
|
+
return node;
|
|
94
|
+
if (ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node)
|
|
95
|
+
|| ts.isParenthesizedExpression(node))
|
|
96
|
+
return rootIdentifier(node.expression);
|
|
97
|
+
return undefined;
|
|
98
|
+
}
|
|
99
|
+
function matchesCoordinate(path, coordinate) {
|
|
100
|
+
return path.replaceAll("\\", "/").endsWith(`/${coordinate}`);
|
|
101
|
+
}
|
|
102
|
+
function normalizeSourcePath(path) {
|
|
103
|
+
return path.replaceAll("\\", "/");
|
|
104
|
+
}
|
|
105
|
+
function resolveSourcePath(path, specifier, knownPaths) {
|
|
106
|
+
const resolved = posix.normalize(posix.join(posix.dirname(path), specifier));
|
|
107
|
+
if (knownPaths?.has(resolved))
|
|
108
|
+
return resolved;
|
|
109
|
+
const builtPath = resolved.replace(/\.ts$/, ".js");
|
|
110
|
+
return knownPaths?.has(builtPath) ? builtPath : resolved;
|
|
111
|
+
}
|
|
112
|
+
export function inspectPureSources(sources, { ruleModules = RULE_MODULES } = {}) {
|
|
113
|
+
const normalizedSources = new Map([...sources].map(([path, source]) => [normalizeSourcePath(path), source]));
|
|
114
|
+
const sourcePaths = new Set(normalizedSources.keys());
|
|
115
|
+
const modules = new Map([...normalizedSources].map(([path, source]) => {
|
|
116
|
+
const tree = ts.createSourceFile(path, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);
|
|
117
|
+
const functions = new Map();
|
|
118
|
+
const imports = new Map();
|
|
119
|
+
const exports = new Map();
|
|
120
|
+
const classes = new Set();
|
|
121
|
+
for (const node of tree.statements) {
|
|
122
|
+
if (ts.isFunctionDeclaration(node) && node.name) {
|
|
123
|
+
functions.set(node.name.text, node);
|
|
124
|
+
exports.set(node.name.text, { local: node.name.text });
|
|
125
|
+
if (node.modifiers?.some(({ kind }) => kind === ts.SyntaxKind.DefaultKeyword)) {
|
|
126
|
+
exports.set("default", { local: node.name.text });
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (ts.isClassDeclaration(node) && node.name
|
|
130
|
+
&& node.heritageClauses?.some((clause) => clause.types.some((type) => type.expression.getText(tree) === "Error"))) {
|
|
131
|
+
classes.add(node.name.text);
|
|
132
|
+
}
|
|
133
|
+
if (ts.isVariableStatement(node)) {
|
|
134
|
+
for (const declaration of node.declarationList.declarations) {
|
|
135
|
+
if (ts.isIdentifier(declaration.name) && declaration.initializer
|
|
136
|
+
&& (ts.isArrowFunction(declaration.initializer)
|
|
137
|
+
|| ts.isFunctionExpression(declaration.initializer))) {
|
|
138
|
+
functions.set(declaration.name.text, pure(node) ? node : declaration.initializer);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if (ts.isImportDeclaration(node) && node.importClause) {
|
|
143
|
+
if (!ts.isStringLiteral(node.moduleSpecifier))
|
|
144
|
+
continue;
|
|
145
|
+
const specifier = node.moduleSpecifier.text;
|
|
146
|
+
const target = specifier.startsWith(".")
|
|
147
|
+
? resolveSourcePath(path, specifier, sourcePaths) : specifier;
|
|
148
|
+
const clause = node.importClause;
|
|
149
|
+
if (clause.isTypeOnly)
|
|
150
|
+
continue;
|
|
151
|
+
if (clause.name)
|
|
152
|
+
imports.set(clause.name.text, { target, name: "default" });
|
|
153
|
+
if (clause.namedBindings && ts.isNamedImports(clause.namedBindings)) {
|
|
154
|
+
for (const entry of clause.namedBindings.elements) {
|
|
155
|
+
if (entry.isTypeOnly)
|
|
156
|
+
continue;
|
|
157
|
+
imports.set(entry.name.text, {
|
|
158
|
+
target, name: entry.propertyName?.text ?? entry.name.text,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
else if (clause.namedBindings) {
|
|
163
|
+
imports.set(clause.namedBindings.name.text, { target, name: "*" });
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
if (ts.isExportDeclaration(node) && node.exportClause
|
|
167
|
+
&& ts.isNamedExports(node.exportClause)) {
|
|
168
|
+
if (node.isTypeOnly)
|
|
169
|
+
continue;
|
|
170
|
+
const target = node.moduleSpecifier && ts.isStringLiteral(node.moduleSpecifier)
|
|
171
|
+
? node.moduleSpecifier.text : undefined;
|
|
172
|
+
for (const entry of node.exportClause.elements) {
|
|
173
|
+
if (entry.isTypeOnly)
|
|
174
|
+
continue;
|
|
175
|
+
exports.set(entry.name.text, target
|
|
176
|
+
? { target: resolveSourcePath(path, target, sourcePaths), name: entry.propertyName?.text ?? entry.name.text }
|
|
177
|
+
: { local: entry.propertyName?.text ?? entry.name.text });
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return [path, { tree, functions, imports, exports, classes }];
|
|
182
|
+
}));
|
|
183
|
+
const problems = [];
|
|
184
|
+
let count = 0;
|
|
185
|
+
const program = ts.createProgram([...modules.keys()], {
|
|
186
|
+
allowJs: true, noLib: true, noResolve: true,
|
|
187
|
+
}, {
|
|
188
|
+
getSourceFile: (path) => modules.get(path)?.tree,
|
|
189
|
+
getDefaultLibFileName: () => "",
|
|
190
|
+
writeFile: () => { },
|
|
191
|
+
getCurrentDirectory: () => "/",
|
|
192
|
+
getDirectories: () => [],
|
|
193
|
+
fileExists: (path) => modules.has(path),
|
|
194
|
+
readFile: (path) => normalizedSources.get(path),
|
|
195
|
+
getCanonicalFileName: (path) => path,
|
|
196
|
+
useCaseSensitiveFileNames: () => true,
|
|
197
|
+
getNewLine: () => "\n",
|
|
198
|
+
});
|
|
199
|
+
const checker = program.getTypeChecker();
|
|
200
|
+
const bindingKey = (node) => {
|
|
201
|
+
const identifier = rootIdentifier(node);
|
|
202
|
+
return identifier ? checker.getSymbolAtLocation(identifier) ?? identifier.text : undefined;
|
|
203
|
+
};
|
|
204
|
+
const boundNames = (name) => {
|
|
205
|
+
if (ts.isIdentifier(name))
|
|
206
|
+
return [bindingKey(name)];
|
|
207
|
+
if (ts.isObjectBindingPattern(name) || ts.isArrayBindingPattern(name)) {
|
|
208
|
+
return name.elements.flatMap((element) => ts.isBindingElement(element) ? boundNames(element.name) : []);
|
|
209
|
+
}
|
|
210
|
+
return [];
|
|
211
|
+
};
|
|
212
|
+
const knownPure = (path, name, seen = new Set()) => {
|
|
213
|
+
const key = `${path}:${name}`;
|
|
214
|
+
if (seen.has(key))
|
|
215
|
+
return false;
|
|
216
|
+
seen.add(key);
|
|
217
|
+
if (EXTERNAL_FUNCTIONS.get(path)?.has(name))
|
|
218
|
+
return true;
|
|
219
|
+
const module = modules.get(path);
|
|
220
|
+
if (!module)
|
|
221
|
+
return false;
|
|
222
|
+
if (module.classes.has(name))
|
|
223
|
+
return true;
|
|
224
|
+
const node = module.functions.get(name);
|
|
225
|
+
if (node)
|
|
226
|
+
return pure(node);
|
|
227
|
+
const exported = module.exports.get(name);
|
|
228
|
+
if (exported?.target)
|
|
229
|
+
return knownPure(exported.target, exported.name, seen);
|
|
230
|
+
if (exported?.local && exported.local !== name)
|
|
231
|
+
return knownPure(path, exported.local, seen);
|
|
232
|
+
const imported = module.imports.get(exported?.local ?? name);
|
|
233
|
+
return imported ? knownPure(imported.target, imported.name, seen) : false;
|
|
234
|
+
};
|
|
235
|
+
for (const [path, module] of modules) {
|
|
236
|
+
const report = (node, message) => {
|
|
237
|
+
const { line } = module.tree.getLineAndCharacterOfPosition(node.getStart(module.tree));
|
|
238
|
+
problems.push({ path, line: line + 1, message });
|
|
239
|
+
};
|
|
240
|
+
if (ruleModules.some((coordinate) => matchesCoordinate(path, coordinate))
|
|
241
|
+
|| [...RULE_ENTRYPOINTS].some((coordinate) => matchesCoordinate(path, coordinate))) {
|
|
242
|
+
for (const node of module.tree.statements) {
|
|
243
|
+
if ((!ts.isImportDeclaration(node) && !ts.isExportDeclaration(node)) || !node.moduleSpecifier)
|
|
244
|
+
continue;
|
|
245
|
+
if ((ts.isImportDeclaration(node) && node.importClause?.isTypeOnly)
|
|
246
|
+
|| (ts.isExportDeclaration(node) && node.isTypeOnly))
|
|
247
|
+
continue;
|
|
248
|
+
if (!ts.isStringLiteral(node.moduleSpecifier))
|
|
249
|
+
continue;
|
|
250
|
+
const target = node.moduleSpecifier.text;
|
|
251
|
+
if (target.startsWith(".")) {
|
|
252
|
+
const resolved = resolveSourcePath(path, target);
|
|
253
|
+
if (![...RULE_DEPENDENCIES].some((coordinate) => matchesCoordinate(resolved, coordinate))) {
|
|
254
|
+
report(node, `Pure rule module depends on non-rule module ${target}`);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
const allowed = EXTERNAL_FUNCTIONS.get(target);
|
|
259
|
+
const imported = [...module.imports.values()].filter((entry) => entry.target === target);
|
|
260
|
+
if (!allowed || !imported.length || imported.some(({ name }) => !allowed.has(name))) {
|
|
261
|
+
report(node, `Unreviewed external rule dependency ${target}`);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
for (const [name, node] of module.functions) {
|
|
266
|
+
if (!pure(node))
|
|
267
|
+
report(node, `Rule function ${name} is missing @pure`);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
for (const [name, declaration] of module.functions) {
|
|
271
|
+
if (!pure(declaration))
|
|
272
|
+
continue;
|
|
273
|
+
count += 1;
|
|
274
|
+
const firstDeclaration = ts.isVariableStatement(declaration)
|
|
275
|
+
? declaration.declarationList.declarations[0] : undefined;
|
|
276
|
+
const fn = firstDeclaration?.initializer ?? declaration;
|
|
277
|
+
const locals = new Set();
|
|
278
|
+
const borrowed = new Set();
|
|
279
|
+
const callable = new Set();
|
|
280
|
+
const declarations = [];
|
|
281
|
+
const collect = (node) => {
|
|
282
|
+
if (ts.isParameter(node)) {
|
|
283
|
+
for (const name of boundNames(node.name)) {
|
|
284
|
+
locals.add(name);
|
|
285
|
+
borrowed.add(name);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
if (ts.isCatchClause(node) && node.variableDeclaration) {
|
|
289
|
+
for (const name of boundNames(node.variableDeclaration.name))
|
|
290
|
+
locals.add(name);
|
|
291
|
+
}
|
|
292
|
+
if (ts.isVariableDeclaration(node)) {
|
|
293
|
+
declarations.push(node);
|
|
294
|
+
for (const name of boundNames(node.name))
|
|
295
|
+
locals.add(name);
|
|
296
|
+
if (ts.isIdentifier(node.name) && node.initializer
|
|
297
|
+
&& (ts.isArrowFunction(node.initializer) || ts.isFunctionExpression(node.initializer))) {
|
|
298
|
+
callable.add(bindingKey(node.name));
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
if (ts.isFunctionDeclaration(node) && node.name && node !== fn) {
|
|
302
|
+
locals.add(bindingKey(node.name));
|
|
303
|
+
callable.add(bindingKey(node.name));
|
|
304
|
+
}
|
|
305
|
+
ts.forEachChild(node, collect);
|
|
306
|
+
};
|
|
307
|
+
collect(fn);
|
|
308
|
+
for (let pass = 0; pass <= declarations.length; pass++) {
|
|
309
|
+
for (const entry of declarations) {
|
|
310
|
+
if (borrowed.has(bindingKey(entry.initializer))) {
|
|
311
|
+
for (const name of boundNames(entry.name))
|
|
312
|
+
borrowed.add(name);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
const checkWrite = (node, target, objectMutation = false) => {
|
|
317
|
+
const root = bindingKey(target);
|
|
318
|
+
if (root && (((objectMutation || !ts.isIdentifier(target)) && borrowed.has(root)) || !locals.has(root))) {
|
|
319
|
+
report(node, `${name}: modifies input or external state ${rootName(target)}`);
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
const visit = (node) => {
|
|
323
|
+
if (ts.isTypeNode(node))
|
|
324
|
+
return;
|
|
325
|
+
if (ts.isIdentifier(node) && FORBIDDEN_GLOBALS.has(node.text)
|
|
326
|
+
&& !locals.has(bindingKey(node))
|
|
327
|
+
&& !locals.has(node.text)
|
|
328
|
+
&& !(ts.isPropertyAccessExpression(node.parent) && node.parent.name === node)
|
|
329
|
+
&& !(ts.isPropertyAssignment(node.parent) && node.parent.name === node)) {
|
|
330
|
+
report(node, `${name}: external state ${node.text}`);
|
|
331
|
+
}
|
|
332
|
+
if (ts.isIdentifier(node)
|
|
333
|
+
&& !(ts.isPropertyAccessExpression(node.parent) && node.parent.name === node)
|
|
334
|
+
&& !(ts.isPropertyAssignment(node.parent) && node.parent.name === node)) {
|
|
335
|
+
const symbol = checker.getSymbolAtLocation(node);
|
|
336
|
+
if (symbol?.declarations?.some((entry) => ts.isVariableDeclaration(entry)
|
|
337
|
+
&& ts.isVariableDeclarationList(entry.parent)
|
|
338
|
+
&& !(entry.parent.flags & ts.NodeFlags.Const)
|
|
339
|
+
&& !locals.has(bindingKey(node)))) {
|
|
340
|
+
report(node, `${name}: reads mutable external binding ${node.text}`);
|
|
341
|
+
}
|
|
342
|
+
const imported = module.imports.get(node.text);
|
|
343
|
+
if (imported && symbol?.declarations?.some((entry) => ts.isImportSpecifier(entry) || ts.isImportClause(entry) || ts.isNamespaceImport(entry))
|
|
344
|
+
&& !modules.has(imported.target)
|
|
345
|
+
&& !EXTERNAL_FUNCTIONS.get(imported.target)?.has(imported.name)) {
|
|
346
|
+
report(node, `${name}: unreviewed external reference ${node.text}`);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
if (ts.isBinaryExpression(node)
|
|
350
|
+
&& node.operatorToken.kind >= ts.SyntaxKind.FirstAssignment
|
|
351
|
+
&& node.operatorToken.kind <= ts.SyntaxKind.LastAssignment) {
|
|
352
|
+
checkWrite(node, node.left);
|
|
353
|
+
}
|
|
354
|
+
if (ts.isDeleteExpression(node)
|
|
355
|
+
|| ((ts.isPrefixUnaryExpression(node) || ts.isPostfixUnaryExpression(node))
|
|
356
|
+
&& [ts.SyntaxKind.PlusPlusToken, ts.SyntaxKind.MinusMinusToken].includes(node.operator))) {
|
|
357
|
+
checkWrite(node, ts.isDeleteExpression(node) ? node.expression : node.operand);
|
|
358
|
+
}
|
|
359
|
+
if (ts.isNewExpression(node)) {
|
|
360
|
+
const ctor = node.expression.getText(module.tree);
|
|
361
|
+
if (ctor === "Date") {
|
|
362
|
+
if (!node.arguments?.length)
|
|
363
|
+
report(node, `${name}: implicit clock`);
|
|
364
|
+
}
|
|
365
|
+
else if (!CONSTRUCTORS.has(ctor) && !knownPure(path, ctor)) {
|
|
366
|
+
report(node, `${name}: unreviewed constructor ${ctor}`);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
if (ts.isCallExpression(node)) {
|
|
370
|
+
const expression = node.expression;
|
|
371
|
+
const text = expression.getText(module.tree);
|
|
372
|
+
if (ts.isIdentifier(expression)) {
|
|
373
|
+
const imported = module.imports.get(text);
|
|
374
|
+
if (!(GLOBAL_FUNCTIONS.has(text) && !locals.has(bindingKey(expression)))
|
|
375
|
+
&& !callable.has(bindingKey(expression))
|
|
376
|
+
&& !(imported ? knownPure(imported.target, imported.name) : knownPure(path, text))) {
|
|
377
|
+
report(node, `${name}: unconfirmed call ${text}`);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
else if (ts.isPropertyAccessExpression(expression)) {
|
|
381
|
+
const method = expression.name.text;
|
|
382
|
+
if (["Date.now", "Math.random"].includes(text)) {
|
|
383
|
+
report(node, `${name}: implicit clock or randomness ${text}`);
|
|
384
|
+
}
|
|
385
|
+
else if (text === "Object.freeze" && !locals.has(bindingKey(expression.expression))) {
|
|
386
|
+
const argument = node.arguments[0];
|
|
387
|
+
if (argument)
|
|
388
|
+
checkWrite(node, argument, true);
|
|
389
|
+
}
|
|
390
|
+
else if (MUTATORS.has(method)) {
|
|
391
|
+
checkWrite(node, expression.expression, true);
|
|
392
|
+
}
|
|
393
|
+
else if (!(STATIC_CALLS.has(text) && !locals.has(bindingKey(expression.expression)))
|
|
394
|
+
&& !METHODS.has(method)) {
|
|
395
|
+
report(node, `${name}: unreviewed method ${text}`);
|
|
396
|
+
}
|
|
397
|
+
if (["map", "filter", "reduce", "some", "every", "find", "findIndex", "flatMap", "sort"]
|
|
398
|
+
.includes(method) && node.arguments.length) {
|
|
399
|
+
const callback = node.arguments[0];
|
|
400
|
+
if (callback && ts.isIdentifier(callback)) {
|
|
401
|
+
const imported = module.imports.get(callback.text);
|
|
402
|
+
if (!callable.has(bindingKey(callback))
|
|
403
|
+
&& !(GLOBAL_FUNCTIONS.has(callback.text) && !locals.has(bindingKey(callback)))
|
|
404
|
+
&& !(imported ? knownPure(imported.target, imported.name) : knownPure(path, callback.text))) {
|
|
405
|
+
report(node, `${name}: unconfirmed callback ${callback.text}`);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
else if (!callback || (!ts.isArrowFunction(callback) && !ts.isFunctionExpression(callback))) {
|
|
409
|
+
report(node, `${name}: dynamic callback requires explicit review`);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
report(node, `${name}: dynamic call requires explicit review`);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
ts.forEachChild(node, visit);
|
|
418
|
+
};
|
|
419
|
+
visit(fn);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
return { count, problems };
|
|
423
|
+
}
|
|
424
|
+
export async function loadJavaScriptSources(root) {
|
|
425
|
+
const entries = await readdir(root, { withFileTypes: true });
|
|
426
|
+
const groups = await Promise.all(entries.map(async (entry) => {
|
|
427
|
+
const path = resolve(root, entry.name);
|
|
428
|
+
if (entry.isDirectory())
|
|
429
|
+
return loadJavaScriptSources(path);
|
|
430
|
+
return entry.isFile() && /\.(?:js|mjs|ts)$/.test(entry.name)
|
|
431
|
+
? new Map([[path, await readFile(path, "utf8")]]) : new Map();
|
|
432
|
+
}));
|
|
433
|
+
return new Map(groups.flatMap((group) => [...group]));
|
|
434
|
+
}
|
|
435
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) {
|
|
436
|
+
const root = fileURLToPath(new URL("../src", import.meta.url));
|
|
437
|
+
const result = inspectPureSources(await loadJavaScriptSources(root));
|
|
438
|
+
if (result.problems.length) {
|
|
439
|
+
for (const problem of result.problems) {
|
|
440
|
+
process.stderr.write(`${relative(dirname(root), problem.path)}:${problem.line}: ${problem.message}\n`);
|
|
441
|
+
}
|
|
442
|
+
process.exitCode = 1;
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
process.stdout.write(`PURE_CHECK_OK functions=${result.count} ruleModules=${RULE_MODULES.length}\n`);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
//# sourceMappingURL=pure-check.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pure-check.js","sourceRoot":"","sources":["../../bin/pure-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAExD,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IACxC,2CAA2C,EAAE,iCAAiC;IAC9E,iCAAiC,EAAE,mCAAmC;IACtE,6CAA6C;IAC7C,8CAA8C,EAAE,kCAAkC;IAClF,oCAAoC,EAAE,kCAAkC;IACxE,2CAA2C,EAAE,+BAA+B;IAC5E,oCAAoC,EAAE,wCAAwC;IAC9E,8BAA8B,EAAE,gCAAgC;CACjE,CAAC,CAAC;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC;IAC/B,iCAAiC,EAAE,mCAAmC;IACtE,gCAAgC;IAChC,mCAAmC,EAAE,8BAA8B;IACnE,iCAAiC,EAAE,4BAA4B;CAChE,CAAC,CAAC;AACH,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,GAAG,YAAY,EAAE,GAAG,gBAAgB,EAAE,+BAA+B;IACrE,iCAAiC,EAAE,iCAAiC;IACpE,mCAAmC,EAAE,uCAAuC;IAC5E,kCAAkC,EAAE,2BAA2B;IAC/D,sCAAsC,EAAE,6BAA6B;IACrE,kCAAkC;IAClC,8BAA8B,EAAE,iCAAiC;IACjE,4BAA4B,EAAE,iCAAiC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AC,MAAM,IAAI,CAAC,CAAC;IACvG,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
export declare const CHECK_SCRIPTS: readonly string[];
|
|
3
|
+
export declare const CHECK_TIERS: Readonly<{
|
|
4
|
+
sanity: readonly string[];
|
|
5
|
+
commit: readonly string[];
|
|
6
|
+
release: readonly string[];
|
|
7
|
+
}>;
|
|
8
|
+
type PackageManagerOptions = {
|
|
9
|
+
env?: NodeJS.ProcessEnv;
|
|
10
|
+
execPath?: string;
|
|
11
|
+
platform?: NodeJS.Platform;
|
|
12
|
+
};
|
|
13
|
+
type RunScriptOptions = {
|
|
14
|
+
cwd?: string;
|
|
15
|
+
env?: NodeJS.ProcessEnv;
|
|
16
|
+
spawnImpl?: typeof spawn;
|
|
17
|
+
};
|
|
18
|
+
type RunChecksOptions = {
|
|
19
|
+
scripts?: readonly string[];
|
|
20
|
+
runScript?: (script: string) => Promise<unknown>;
|
|
21
|
+
now?: () => number;
|
|
22
|
+
writeOutput?: (message: string) => unknown;
|
|
23
|
+
};
|
|
24
|
+
export declare function selectChecks(args: readonly string[]): readonly string[];
|
|
25
|
+
export declare const COMMIT_SCOPE: string;
|
|
26
|
+
export declare function packageManagerCommand(script: string, { env, execPath, platform, }?: PackageManagerOptions): {
|
|
27
|
+
command: string;
|
|
28
|
+
args: string[];
|
|
29
|
+
};
|
|
30
|
+
export declare function runCheckScript(script: string, { cwd, env, spawnImpl, }?: RunScriptOptions): Promise<void>;
|
|
31
|
+
export declare function runChecks({ scripts, runScript, now, writeOutput, }?: RunChecksOptions): Promise<void>;
|
|
32
|
+
export declare function isMain(importMetaUrl: string, argv?: readonly string[]): boolean;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=run-checks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-checks.d.ts","sourceRoot":"","sources":["../../bin/run-checks.ts"],"names":[],"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