silvermoon 0.3.0-rc.2 → 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,421 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { spawnSync } from "node:child_process";
|
|
3
|
+
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
4
|
+
import { mkdtemp, readFile, rm } from "node:fs/promises";
|
|
5
|
+
import { tmpdir } from "node:os";
|
|
6
|
+
import { basename, join, resolve } from "node:path";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
import { inspectNpmTarball } from "../src/foundation/package-resource/index.js";
|
|
9
|
+
import { npmCommand } from "../src/foundation/process/index.js";
|
|
10
|
+
import { WHATS_NEXT_TEMPLATE_IDS } from "../src/foundation/report/templates/whats-next/index.js";
|
|
11
|
+
const packageRoot = fileURLToPath(new URL("..", import.meta.url));
|
|
12
|
+
function errorMessage(error) {
|
|
13
|
+
return error instanceof Error ? error.message : String(error);
|
|
14
|
+
}
|
|
15
|
+
function parsePackResults(source) {
|
|
16
|
+
const parsed = JSON.parse(source);
|
|
17
|
+
if (!Array.isArray(parsed))
|
|
18
|
+
throw new Error("npm pack returned invalid metadata.");
|
|
19
|
+
return parsed.map((value) => {
|
|
20
|
+
if (typeof value !== "object" || value === null) {
|
|
21
|
+
throw new Error("npm pack returned invalid metadata.");
|
|
22
|
+
}
|
|
23
|
+
const files = Reflect.get(value, "files");
|
|
24
|
+
if (!Array.isArray(files) || !files.every((file) => typeof file === "object" && file !== null
|
|
25
|
+
&& typeof Reflect.get(file, "path") === "string"
|
|
26
|
+
&& typeof Reflect.get(file, "size") === "number")) {
|
|
27
|
+
throw new Error("npm pack returned invalid file metadata.");
|
|
28
|
+
}
|
|
29
|
+
const integrity = Reflect.get(value, "integrity");
|
|
30
|
+
const name = Reflect.get(value, "name");
|
|
31
|
+
const version = Reflect.get(value, "version");
|
|
32
|
+
if (integrity !== undefined && typeof integrity !== "string") {
|
|
33
|
+
throw new Error("npm pack returned invalid integrity metadata.");
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
files,
|
|
37
|
+
...(integrity === undefined ? {} : { integrity }),
|
|
38
|
+
...(typeof name === "string" ? { name } : {}),
|
|
39
|
+
...(typeof version === "string" ? { version } : {}),
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
const configuredTarball = process.env.SILVERMOON_TARBALL?.trim();
|
|
44
|
+
const expectedSha256 = process.env.SILVERMOON_TARBALL_SHA256?.trim();
|
|
45
|
+
const expectedIntegrity = process.env.SILVERMOON_TARBALL_INTEGRITY?.trim();
|
|
46
|
+
const expectedGitHead = process.env.SILVERMOON_RELEASE_COMMIT?.trim();
|
|
47
|
+
const tarball = configuredTarball
|
|
48
|
+
? resolve(packageRoot, configuredTarball)
|
|
49
|
+
: null;
|
|
50
|
+
if (tarball && (!existsSync(tarball) || !statSync(tarball).isFile())) {
|
|
51
|
+
process.stderr.write(`Configured npm tarball is not a file: ${tarball}\n`);
|
|
52
|
+
process.exit(1);
|
|
53
|
+
}
|
|
54
|
+
if (!tarball && (expectedSha256 || expectedIntegrity)) {
|
|
55
|
+
process.stderr.write("Tarball identity was configured without SILVERMOON_TARBALL.\n");
|
|
56
|
+
process.exit(1);
|
|
57
|
+
}
|
|
58
|
+
if (expectedGitHead && !/^[0-9a-f]{40,64}$/i.test(expectedGitHead)) {
|
|
59
|
+
process.stderr.write("SILVERMOON_RELEASE_COMMIT must be a full hexadecimal Git object ID.\n");
|
|
60
|
+
process.exit(1);
|
|
61
|
+
}
|
|
62
|
+
if (expectedGitHead && !tarball) {
|
|
63
|
+
process.stderr.write("Release commit was configured without SILVERMOON_TARBALL.\n");
|
|
64
|
+
process.exit(1);
|
|
65
|
+
}
|
|
66
|
+
if (tarball && expectedSha256) {
|
|
67
|
+
const actualSha256 = createHash("sha256")
|
|
68
|
+
.update(readFileSync(tarball))
|
|
69
|
+
.digest("hex");
|
|
70
|
+
if (actualSha256 !== expectedSha256) {
|
|
71
|
+
process.stderr.write(`Configured npm tarball SHA-256 mismatch: expected ${expectedSha256}, calculated ${actualSha256}.\n`);
|
|
72
|
+
process.exit(1);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const npmArguments = [
|
|
76
|
+
"pack",
|
|
77
|
+
...(tarball ? [tarball] : []),
|
|
78
|
+
"--dry-run",
|
|
79
|
+
"--json",
|
|
80
|
+
];
|
|
81
|
+
const { command, args } = npmCommand(npmArguments);
|
|
82
|
+
const packed = spawnSync(command, args, {
|
|
83
|
+
cwd: packageRoot,
|
|
84
|
+
encoding: "utf8",
|
|
85
|
+
windowsHide: true,
|
|
86
|
+
});
|
|
87
|
+
if (packed.status !== 0) {
|
|
88
|
+
process.stderr.write(packed.stderr || packed.error?.message || "npm pack --dry-run failed\n");
|
|
89
|
+
process.exitCode = packed.status ?? 1;
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
const result = parsePackResults(packed.stdout)[0];
|
|
93
|
+
if (!result)
|
|
94
|
+
throw new Error("npm pack returned no package metadata.");
|
|
95
|
+
const files = result.files.map(({ path }) => path).sort();
|
|
96
|
+
const whatsNextTemplateModules = [
|
|
97
|
+
"contract",
|
|
98
|
+
"index",
|
|
99
|
+
"registry",
|
|
100
|
+
"renderers",
|
|
101
|
+
"en-US/index",
|
|
102
|
+
"zh-CN/index",
|
|
103
|
+
...WHATS_NEXT_TEMPLATE_IDS.flatMap((id) => [
|
|
104
|
+
`en-US/${id}`,
|
|
105
|
+
`zh-CN/${id}`,
|
|
106
|
+
]),
|
|
107
|
+
].map((path) => `src/foundation/report/templates/whats-next/${path}.js`);
|
|
108
|
+
const maintained = [
|
|
109
|
+
"LICENSE",
|
|
110
|
+
"README.md",
|
|
111
|
+
"README.zh-CN.md",
|
|
112
|
+
"bin/build-npm-tarball.mjs",
|
|
113
|
+
"bin/check-pack.js",
|
|
114
|
+
"bin/ci-package-risk.mjs",
|
|
115
|
+
"bin/generate-npm-readme.mjs",
|
|
116
|
+
"bin/migrate-v1-to-v2.js",
|
|
117
|
+
"bin/prepare-npm-release.mjs",
|
|
118
|
+
"bin/pure-check.mjs",
|
|
119
|
+
"bin/run-checks.mjs",
|
|
120
|
+
"bin/silvermoon.js",
|
|
121
|
+
"bin/sync-skills.mjs",
|
|
122
|
+
"bin/verify-npm-release.mjs",
|
|
123
|
+
"docs/core-concepts.md",
|
|
124
|
+
"docs/getting-started.md",
|
|
125
|
+
"docs/maintaining.md",
|
|
126
|
+
"docs/npm-package-releases.md",
|
|
127
|
+
"docs/operations.md",
|
|
128
|
+
"docs/reference.md",
|
|
129
|
+
"docs/repository-tasks.md",
|
|
130
|
+
"package.json",
|
|
131
|
+
"schema/capabilities.json",
|
|
132
|
+
"schema/capability-manifest.schema.json",
|
|
133
|
+
"schema/v1/command-report.schema.json",
|
|
134
|
+
"schema/v1/config.schema.json",
|
|
135
|
+
"schema/v1/definitions.schema.json",
|
|
136
|
+
"schema/v1/domain-message.schema.json",
|
|
137
|
+
"schema/v1/idea-status.schema.json",
|
|
138
|
+
"schema/v1/user-config.schema.json",
|
|
139
|
+
"schema/v2/config.schema.json",
|
|
140
|
+
"schema/v2/idea-event.schema.json",
|
|
141
|
+
"schema/v2/trace-event.schema.json",
|
|
142
|
+
"skills/silvermoon/SKILL.md",
|
|
143
|
+
"skills/silvermoon/references/adoption.md",
|
|
144
|
+
"skills/silvermoon/references/events.md",
|
|
145
|
+
"src/README.md",
|
|
146
|
+
"src/business/README.md",
|
|
147
|
+
"src/business/agent-copilot.d.ts",
|
|
148
|
+
"src/business/agent-copilot.js",
|
|
149
|
+
"src/business/agent-project-registry.js",
|
|
150
|
+
"src/business/agent-project-runtime.d.ts",
|
|
151
|
+
"src/business/agent-project-runtime.js",
|
|
152
|
+
"src/business/append-event-history.js",
|
|
153
|
+
"src/business/append-event.js",
|
|
154
|
+
"src/business/check-repository.js",
|
|
155
|
+
"src/business/create-idea.js",
|
|
156
|
+
"src/business/event-command.js",
|
|
157
|
+
"src/business/index.js",
|
|
158
|
+
"src/business/list-ideas.js",
|
|
159
|
+
"src/business/migrate-v1-to-v2.js",
|
|
160
|
+
"src/business/replay-events.js",
|
|
161
|
+
"src/business/schema-migration.js",
|
|
162
|
+
"src/business/shared/README.md",
|
|
163
|
+
"src/business/shared/assess-idea-creation-readiness.js",
|
|
164
|
+
"src/business/shared/assess-repository-readiness-with.js",
|
|
165
|
+
"src/business/shared/assess-repository-readiness.js",
|
|
166
|
+
"src/business/shared/business-types.js",
|
|
167
|
+
"src/business/shared/evaluate-local-readiness.js",
|
|
168
|
+
"src/business/shared/evaluate-primary-relation.js",
|
|
169
|
+
"src/business/shared/idea-layout.js",
|
|
170
|
+
"src/business/shared/index.js",
|
|
171
|
+
"src/business/shared/inspect-candidate.js",
|
|
172
|
+
"src/business/shared/metadata-failure-observation.js",
|
|
173
|
+
"src/business/shared/observe-device.js",
|
|
174
|
+
"src/business/shared/observe-idea.js",
|
|
175
|
+
"src/business/shared/observe-project.js",
|
|
176
|
+
"src/business/shared/observe-snapshot.js",
|
|
177
|
+
"src/business/shared/read-idea-inventory-item.js",
|
|
178
|
+
"src/business/shared/resolve-idea.js",
|
|
179
|
+
"src/business/shared/with-observation-language.js",
|
|
180
|
+
"src/business/whats-next.js",
|
|
181
|
+
"src/foundation/command-message/README.md",
|
|
182
|
+
"src/foundation/command-message/index.js",
|
|
183
|
+
"src/foundation/command-message/observation.js",
|
|
184
|
+
"src/foundation/command-message/runtime.js",
|
|
185
|
+
"src/foundation/coordinates/README.md",
|
|
186
|
+
"src/foundation/coordinates/index.js",
|
|
187
|
+
"src/foundation/coordinates/layout.js",
|
|
188
|
+
"src/foundation/coordinates/repository.js",
|
|
189
|
+
"src/foundation/device-config/README.md",
|
|
190
|
+
"src/foundation/device-config/index.js",
|
|
191
|
+
"src/foundation/device-config/user-config.js",
|
|
192
|
+
"src/foundation/event-codec/README.md",
|
|
193
|
+
"src/foundation/event-codec/grammar.js",
|
|
194
|
+
"src/foundation/event-codec/index.js",
|
|
195
|
+
"src/foundation/event-cursor/README.md",
|
|
196
|
+
"src/foundation/event-cursor/cursor.js",
|
|
197
|
+
"src/foundation/event-cursor/index.js",
|
|
198
|
+
"src/foundation/event-history/README.md",
|
|
199
|
+
"src/foundation/event-history/digest.js",
|
|
200
|
+
"src/foundation/event-history/history.js",
|
|
201
|
+
"src/foundation/event-history/index.js",
|
|
202
|
+
"src/foundation/event-reducer/README.md",
|
|
203
|
+
"src/foundation/event-reducer/index.js",
|
|
204
|
+
"src/foundation/event-reducer/policy.js",
|
|
205
|
+
"src/foundation/event-store/README.md",
|
|
206
|
+
"src/foundation/event-store/digest.js",
|
|
207
|
+
"src/foundation/event-store/index.js",
|
|
208
|
+
"src/foundation/event-store/storage.js",
|
|
209
|
+
"src/foundation/git/README.md",
|
|
210
|
+
"src/foundation/git/derived-cache.js",
|
|
211
|
+
"src/foundation/git/git.js",
|
|
212
|
+
"src/foundation/git/index.js",
|
|
213
|
+
"src/foundation/guidance/README.md",
|
|
214
|
+
"src/foundation/guidance/guidance.js",
|
|
215
|
+
"src/foundation/guidance/index.js",
|
|
216
|
+
"src/foundation/guidance/rules.js",
|
|
217
|
+
"src/foundation/idea-model/README.md",
|
|
218
|
+
"src/foundation/idea-model/index.js",
|
|
219
|
+
"src/foundation/idea-model/status.js",
|
|
220
|
+
"src/foundation/idea-model/ulid.js",
|
|
221
|
+
"src/foundation/idea-query/README.md",
|
|
222
|
+
"src/foundation/idea-query/index.js",
|
|
223
|
+
"src/foundation/idea-query/query.js",
|
|
224
|
+
"src/foundation/idea-query/rules.js",
|
|
225
|
+
"src/foundation/idea-template/README.md",
|
|
226
|
+
"src/foundation/idea-template/index.js",
|
|
227
|
+
"src/foundation/idea-template/templates.js",
|
|
228
|
+
"src/foundation/installation/README.md",
|
|
229
|
+
"src/foundation/installation/device-readiness.js",
|
|
230
|
+
"src/foundation/installation/index.js",
|
|
231
|
+
"src/foundation/installation/installation.js",
|
|
232
|
+
"src/foundation/installation/rules.js",
|
|
233
|
+
"src/foundation/language/README.md",
|
|
234
|
+
"src/foundation/language/index.js",
|
|
235
|
+
"src/foundation/language/language.js",
|
|
236
|
+
"src/foundation/owned-write/README.md",
|
|
237
|
+
"src/foundation/owned-write/index.js",
|
|
238
|
+
"src/foundation/owned-write/writer.js",
|
|
239
|
+
"src/foundation/package-resource/README.md",
|
|
240
|
+
"src/foundation/package-resource/index.js",
|
|
241
|
+
"src/foundation/package-resource/npm-tarball.mjs",
|
|
242
|
+
"src/foundation/process/README.md",
|
|
243
|
+
"src/foundation/process/index.js",
|
|
244
|
+
"src/foundation/process/npm-command.mjs",
|
|
245
|
+
"src/foundation/process/subprocess.js",
|
|
246
|
+
"src/foundation/project-config/README.md",
|
|
247
|
+
"src/foundation/project-config/config.js",
|
|
248
|
+
"src/foundation/project-config/index.js",
|
|
249
|
+
"src/foundation/project-config/rules.js",
|
|
250
|
+
"src/foundation/projection-cache/README.md",
|
|
251
|
+
"src/foundation/projection-cache/index.js",
|
|
252
|
+
"src/foundation/projection-cache/projection.js",
|
|
253
|
+
"src/foundation/renderer/README.md",
|
|
254
|
+
"src/foundation/renderer/index.js",
|
|
255
|
+
"src/foundation/renderer/markdown.js",
|
|
256
|
+
"src/foundation/renderer/render.js",
|
|
257
|
+
"src/foundation/report/README.md",
|
|
258
|
+
"src/foundation/report/dialogue.js",
|
|
259
|
+
"src/foundation/report/index.js",
|
|
260
|
+
"src/foundation/report/instructions.js",
|
|
261
|
+
"src/foundation/report/observation.js",
|
|
262
|
+
"src/foundation/report/projection.js",
|
|
263
|
+
"src/foundation/report/types.js",
|
|
264
|
+
...whatsNextTemplateModules,
|
|
265
|
+
"src/foundation/schema-capability/README.md",
|
|
266
|
+
"src/foundation/schema-capability/index.js",
|
|
267
|
+
"src/foundation/schema-capability/inspection.js",
|
|
268
|
+
"src/foundation/schema-capability/manifest.js",
|
|
269
|
+
"src/foundation/schema-capability/rules.js",
|
|
270
|
+
"src/foundation/scaffold-plan/README.md",
|
|
271
|
+
"src/foundation/scaffold-plan/index.js",
|
|
272
|
+
"src/foundation/scaffold-plan/scaffold-plan.js",
|
|
273
|
+
"src/foundation/schema/README.md",
|
|
274
|
+
"src/foundation/schema/index.js",
|
|
275
|
+
"src/foundation/schema/schema.js",
|
|
276
|
+
"src/foundation/schema/yaml.js",
|
|
277
|
+
"src/foundation/skill-registration/README.md",
|
|
278
|
+
"src/foundation/skill-registration/adoption.js",
|
|
279
|
+
"src/foundation/skill-registration/index.js",
|
|
280
|
+
"src/foundation/skill-registration/rules.js",
|
|
281
|
+
"src/foundation/snapshot/README.md",
|
|
282
|
+
"src/foundation/snapshot/git-snapshot.js",
|
|
283
|
+
"src/foundation/snapshot/index.js",
|
|
284
|
+
"src/foundation/state-transaction/README.md",
|
|
285
|
+
"src/foundation/state-transaction/index.js",
|
|
286
|
+
"src/foundation/state-transaction/state-transaction.js",
|
|
287
|
+
"src/foundation/terminal/README.md",
|
|
288
|
+
"src/foundation/terminal/index.js",
|
|
289
|
+
"src/foundation/terminal/terminal.js",
|
|
290
|
+
"src/foundation/trace/README.md",
|
|
291
|
+
"src/foundation/trace/index.js",
|
|
292
|
+
"src/foundation/trace/trace.js",
|
|
293
|
+
"src/foundation/tui/README.md",
|
|
294
|
+
"src/foundation/tui/index.js",
|
|
295
|
+
"src/foundation/tui/table.js",
|
|
296
|
+
"src/foundation/tui/tui.js",
|
|
297
|
+
"src/index.js",
|
|
298
|
+
];
|
|
299
|
+
const compiledArtifacts = maintained.flatMap((path) => {
|
|
300
|
+
if (/^src\/.+\/README\.md$/.test(path) || path === "src/README.md")
|
|
301
|
+
return [];
|
|
302
|
+
if (!/^(?:bin|src)\/.+\.(?:js|mjs|d\.ts)$/.test(path))
|
|
303
|
+
return [path];
|
|
304
|
+
const modulePath = path
|
|
305
|
+
.replace(/^bin\//, "dist/bin/")
|
|
306
|
+
.replace(/^src\//, "dist/src/")
|
|
307
|
+
.replace(/\.mjs$/, ".js")
|
|
308
|
+
.replace(/\.d\.ts$/, ".js");
|
|
309
|
+
return [
|
|
310
|
+
modulePath,
|
|
311
|
+
`${modulePath}.map`,
|
|
312
|
+
modulePath.replace(/\.js$/, ".d.ts"),
|
|
313
|
+
modulePath.replace(/\.js$/, ".d.ts.map"),
|
|
314
|
+
];
|
|
315
|
+
});
|
|
316
|
+
const expected = [...new Set(compiledArtifacts)].sort();
|
|
317
|
+
const missing = expected.filter((path) => !files.includes(path));
|
|
318
|
+
const unexpected = files.filter((path) => !expected.includes(path));
|
|
319
|
+
const sourceOrShim = files.filter((path) => path.startsWith("src/")
|
|
320
|
+
|| path.startsWith("bin/"));
|
|
321
|
+
const emptyReadme = result.files.find(({ path, size }) => path === "README.md" && !(size > 0));
|
|
322
|
+
const integrityMismatch = expectedIntegrity && result.integrity !== expectedIntegrity;
|
|
323
|
+
let actualGitHead;
|
|
324
|
+
let readmeMetadataMismatch = false;
|
|
325
|
+
if (expectedGitHead && tarball) {
|
|
326
|
+
try {
|
|
327
|
+
const inspected = await inspectNpmTarball(tarball);
|
|
328
|
+
actualGitHead = inspected.manifest.gitHead;
|
|
329
|
+
readmeMetadataMismatch =
|
|
330
|
+
inspected.manifest.readmeFilename !== "README.md" ||
|
|
331
|
+
inspected.manifest.readme !==
|
|
332
|
+
inspected.entries.get("README.md")?.toString("utf8");
|
|
333
|
+
}
|
|
334
|
+
catch (error) {
|
|
335
|
+
process.stderr.write(`Could not inspect configured npm tarball: ${errorMessage(error)}\n`);
|
|
336
|
+
process.exit(1);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
const gitHeadMismatch = expectedGitHead && actualGitHead !== expectedGitHead;
|
|
340
|
+
let directoryPackMismatch = false;
|
|
341
|
+
if (expectedGitHead && tarball) {
|
|
342
|
+
const comparisonDirectory = await mkdtemp(join(tmpdir(), "silvermoon-pack-compare-"));
|
|
343
|
+
try {
|
|
344
|
+
const comparisonArguments = [
|
|
345
|
+
"pack",
|
|
346
|
+
"--json",
|
|
347
|
+
"--pack-destination",
|
|
348
|
+
comparisonDirectory,
|
|
349
|
+
];
|
|
350
|
+
const comparisonCommand = npmCommand(comparisonArguments);
|
|
351
|
+
const comparison = spawnSync(comparisonCommand.command, comparisonCommand.args, {
|
|
352
|
+
cwd: packageRoot,
|
|
353
|
+
encoding: "utf8",
|
|
354
|
+
windowsHide: true,
|
|
355
|
+
});
|
|
356
|
+
if (comparison.status !== 0) {
|
|
357
|
+
process.stderr.write(comparison.stderr ||
|
|
358
|
+
comparison.error?.message ||
|
|
359
|
+
"Deterministic npm directory pack failed.\n");
|
|
360
|
+
process.exit(1);
|
|
361
|
+
}
|
|
362
|
+
const comparisonResults = JSON.parse(comparison.stdout);
|
|
363
|
+
const comparisonFilename = Array.isArray(comparisonResults)
|
|
364
|
+
&& typeof comparisonResults[0] === "object" && comparisonResults[0] !== null
|
|
365
|
+
? Reflect.get(comparisonResults[0], "filename")
|
|
366
|
+
: undefined;
|
|
367
|
+
if (!Array.isArray(comparisonResults) ||
|
|
368
|
+
comparisonResults.length !== 1 ||
|
|
369
|
+
typeof comparisonFilename !== "string" ||
|
|
370
|
+
basename(comparisonFilename) !== comparisonFilename) {
|
|
371
|
+
process.stderr.write("Deterministic npm directory pack returned invalid metadata.\n");
|
|
372
|
+
process.exit(1);
|
|
373
|
+
}
|
|
374
|
+
const [candidateBytes, comparisonBytes] = await Promise.all([
|
|
375
|
+
readFile(tarball),
|
|
376
|
+
readFile(resolve(comparisonDirectory, comparisonFilename)),
|
|
377
|
+
]);
|
|
378
|
+
directoryPackMismatch = !candidateBytes.equals(comparisonBytes);
|
|
379
|
+
}
|
|
380
|
+
finally {
|
|
381
|
+
await rm(comparisonDirectory, { force: true, recursive: true });
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
if (missing.length > 0 ||
|
|
385
|
+
unexpected.length > 0 ||
|
|
386
|
+
sourceOrShim.length > 0 ||
|
|
387
|
+
emptyReadme ||
|
|
388
|
+
integrityMismatch ||
|
|
389
|
+
gitHeadMismatch ||
|
|
390
|
+
readmeMetadataMismatch ||
|
|
391
|
+
directoryPackMismatch) {
|
|
392
|
+
if (missing.length > 0)
|
|
393
|
+
process.stderr.write(`Missing packed files: ${missing.join(", ")}\n`);
|
|
394
|
+
if (unexpected.length > 0) {
|
|
395
|
+
process.stderr.write(`Unexpected packed files: ${unexpected.join(", ")}\n`);
|
|
396
|
+
}
|
|
397
|
+
if (sourceOrShim.length > 0) {
|
|
398
|
+
process.stderr.write(`Packed source or generated bin shim: ${sourceOrShim.join(", ")}\n`);
|
|
399
|
+
}
|
|
400
|
+
if (emptyReadme) {
|
|
401
|
+
process.stderr.write("Packed README.md is empty; the release README generation is broken.\n");
|
|
402
|
+
}
|
|
403
|
+
if (integrityMismatch) {
|
|
404
|
+
process.stderr.write(`Configured npm tarball integrity mismatch: expected ${expectedIntegrity}, found ${result.integrity}.\n`);
|
|
405
|
+
}
|
|
406
|
+
if (gitHeadMismatch) {
|
|
407
|
+
process.stderr.write(`Configured npm tarball gitHead mismatch: expected ${expectedGitHead}, found ${actualGitHead ?? "missing"}.\n`);
|
|
408
|
+
}
|
|
409
|
+
if (readmeMetadataMismatch) {
|
|
410
|
+
process.stderr.write("Configured npm tarball package README metadata does not match README.md.\n");
|
|
411
|
+
}
|
|
412
|
+
if (directoryPackMismatch) {
|
|
413
|
+
process.stderr.write("Configured npm tarball does not match a deterministic directory pack.\n");
|
|
414
|
+
}
|
|
415
|
+
process.exitCode = 1;
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
process.stdout.write(`PACK_OK name=${result.name} version=${result.version} files=${files.length} source=${tarball ?? "directory-dry-run"} integrity=${result.integrity}${expectedGitHead ? ` gitHead=${actualGitHead}` : ""}\n`);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
//# sourceMappingURL=check-pack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-pack.js","sourceRoot":"","sources":["../../bin/check-pack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,oB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AC,MAAM,CAAC,KAAK,CAClB,gBAAgB,MAAM,CAAC,IAAI,YAAY,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,MAAM,WAAW,OAAO,IAAI,mBAAmB,cAAc,MAAM,CAAC,SAAS,GAAG,eAAe,CAAC,CAAC,CAAC,YAAY,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAC5M,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type SpawnSyncOptionsWithStringEncoding, type SpawnSyncReturns } from "node:child_process";
|
|
2
|
+
type Risk = {
|
|
3
|
+
required: boolean;
|
|
4
|
+
reason: string;
|
|
5
|
+
};
|
|
6
|
+
type RiskOptions = {
|
|
7
|
+
base?: string;
|
|
8
|
+
head?: string;
|
|
9
|
+
full?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type ObserveOptions = RiskOptions & {
|
|
12
|
+
cwd?: string;
|
|
13
|
+
spawnImpl?: (command: string, args: readonly string[], options: SpawnSyncOptionsWithStringEncoding) => SpawnSyncReturns<string>;
|
|
14
|
+
};
|
|
15
|
+
export declare function packageRisk(paths: unknown): Risk;
|
|
16
|
+
export declare function parseRiskArgs(args: readonly string[]): RiskOptions;
|
|
17
|
+
export declare function observePackageRisk({ base, head, full, cwd, spawnImpl, }?: ObserveOptions): Risk;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=ci-package-risk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci-package-risk.d.ts","sourceRoot":"","sources":["../../bin/ci-package-risk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,kCAAkC,EAAE,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI/G,KAAK,IAAI,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAClD,KAAK,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AACpE,KAAK,cAAc,GAAG,WAAW,GAAG;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,CACV,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE,kCAAkC,KACxC,gBAAgB,CAAC,MAAM,CAAC,CAAC;CAC/B,CAAC;AAEF,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAahD;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,WAAW,CAoBlE;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,IAAa,EACb,IAAY,EACZ,GAAmB,EACnB,SAAqB,GACtB,GAAE,cAAmB,GAAG,IAAI,CAsB5B"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { appendFileSync } from "node:fs";
|
|
3
|
+
import { isMain } from "./run-checks.js";
|
|
4
|
+
export function packageRisk(paths) {
|
|
5
|
+
if (!Array.isArray(paths) || paths.length === 0) {
|
|
6
|
+
return { required: true, reason: "No trustworthy changed-path set; running package checks" };
|
|
7
|
+
}
|
|
8
|
+
const riskyIndex = paths.findIndex((path) => typeof path !== "string"
|
|
9
|
+
|| !/^\.silvermoon\/ideas\/[0-9A-HJKMNP-TV-Z]{26}\/[^\\]+$/.test(path)
|
|
10
|
+
|| path.split("/").some((part) => part === "." || part === ".." || part === ""));
|
|
11
|
+
if (riskyIndex !== -1) {
|
|
12
|
+
return { required: true, reason: `Package, infrastructure, or unknown path: ${String(paths[riskyIndex])}` };
|
|
13
|
+
}
|
|
14
|
+
return { required: false, reason: "Only repository-owned idea metadata changed" };
|
|
15
|
+
}
|
|
16
|
+
export function parseRiskArgs(args) {
|
|
17
|
+
const options = {};
|
|
18
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
19
|
+
const key = args[index];
|
|
20
|
+
if (key === "--full" && !options.full) {
|
|
21
|
+
options.full = true;
|
|
22
|
+
}
|
|
23
|
+
else if ((key === "--base" || key === "--head")
|
|
24
|
+
&& !Object.hasOwn(options, key.slice(2))) {
|
|
25
|
+
const value = args[index + 1];
|
|
26
|
+
if (value === undefined || value.startsWith("--")) {
|
|
27
|
+
throw new Error("Usage: node bin/ci-package-risk.mjs [--base SHA] [--head SHA] [--full]");
|
|
28
|
+
}
|
|
29
|
+
index += 1;
|
|
30
|
+
if (key === "--base")
|
|
31
|
+
options.base = value;
|
|
32
|
+
else
|
|
33
|
+
options.head = value;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
throw new Error("Usage: node bin/ci-package-risk.mjs [--base SHA] [--head SHA] [--full]");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return options;
|
|
40
|
+
}
|
|
41
|
+
export function observePackageRisk({ base, head = "HEAD", full = false, cwd = process.cwd(), spawnImpl = spawnSync, } = {}) {
|
|
42
|
+
if (full)
|
|
43
|
+
return { required: true, reason: "Explicit full validation" };
|
|
44
|
+
if (!/^[a-f0-9]{40,64}$/i.test(base ?? "") || /^0+$/.test(base ?? "")
|
|
45
|
+
|| !(head === "HEAD" || /^[a-f0-9]{40,64}$/i.test(head))) {
|
|
46
|
+
return { required: true, reason: "Missing or invalid baseline/head; running package checks" };
|
|
47
|
+
}
|
|
48
|
+
if (base === undefined) {
|
|
49
|
+
return { required: true, reason: "Missing or invalid baseline/head; running package checks" };
|
|
50
|
+
}
|
|
51
|
+
const result = spawnImpl("git", ["diff", "--no-renames", "--name-only", "-z", base, head, "--"], {
|
|
52
|
+
cwd, encoding: "utf8", windowsHide: true,
|
|
53
|
+
});
|
|
54
|
+
if (result.error || result.status !== 0) {
|
|
55
|
+
return {
|
|
56
|
+
required: true,
|
|
57
|
+
reason: `Baseline unavailable; running package checks: ${result.error?.message ?? result.stderr?.trim() ?? `exit ${result.status}`}`,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
if (!result.stdout || !result.stdout.endsWith("\0")) {
|
|
61
|
+
return { required: true, reason: "Empty or malformed diff; running package checks" };
|
|
62
|
+
}
|
|
63
|
+
return packageRisk(result.stdout.slice(0, -1).split("\0"));
|
|
64
|
+
}
|
|
65
|
+
if (isMain(import.meta.url)) {
|
|
66
|
+
try {
|
|
67
|
+
const result = observePackageRisk(parseRiskArgs(process.argv.slice(2)));
|
|
68
|
+
process.stdout.write(`${JSON.stringify(result)}\n`);
|
|
69
|
+
if (process.env.GITHUB_OUTPUT) {
|
|
70
|
+
appendFileSync(process.env.GITHUB_OUTPUT, `required=${result.required}\n`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
75
|
+
process.exitCode = 1;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=ci-package-risk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci-package-risk.js","sourceRoot":"","sources":["../../bin/ci-package-risk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkE,MAAM,oBAAoB,CAAC;AAC/G,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAazC,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,yDAAyD,EAAE,CAAC;IAC/F,CAAC;IACD,MAAM,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,E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