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,149 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { performance } from "node:perf_hooks";
|
|
3
|
+
import { resolve } from "node:path";
|
|
4
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
|
+
export const CHECK_SCRIPTS = Object.freeze([
|
|
6
|
+
"typecheck",
|
|
7
|
+
"build",
|
|
8
|
+
"lint:markdown",
|
|
9
|
+
"check:pure",
|
|
10
|
+
"check:quick",
|
|
11
|
+
"test:integration:built",
|
|
12
|
+
"pack:check:built",
|
|
13
|
+
"test:e2e:built",
|
|
14
|
+
"check:skills",
|
|
15
|
+
]);
|
|
16
|
+
export const CHECK_TIERS = Object.freeze({
|
|
17
|
+
sanity: Object.freeze(["typecheck", "build", "check:syntax", "check:pure", "test:sanity"]),
|
|
18
|
+
commit: Object.freeze([
|
|
19
|
+
"check:sanity",
|
|
20
|
+
"test:contract:built",
|
|
21
|
+
"lint:markdown",
|
|
22
|
+
"check:skills:local",
|
|
23
|
+
"test:smoke",
|
|
24
|
+
"check:staged",
|
|
25
|
+
"check:diff",
|
|
26
|
+
]),
|
|
27
|
+
release: CHECK_SCRIPTS,
|
|
28
|
+
});
|
|
29
|
+
function isCheckTier(value) {
|
|
30
|
+
return value === "sanity" || value === "commit" || value === "release";
|
|
31
|
+
}
|
|
32
|
+
function errorMessage(error) {
|
|
33
|
+
return error instanceof Error ? error.message : String(error);
|
|
34
|
+
}
|
|
35
|
+
export function selectChecks(args) {
|
|
36
|
+
if (args.length === 0)
|
|
37
|
+
return CHECK_TIERS.release;
|
|
38
|
+
const tier = args[1];
|
|
39
|
+
if (args.length !== 2 || args[0] !== "--tier" || !tier || !isCheckTier(tier)) {
|
|
40
|
+
throw new Error("Usage: node bin/run-checks.ts [--tier sanity|commit|release]");
|
|
41
|
+
}
|
|
42
|
+
return CHECK_TIERS[tier];
|
|
43
|
+
}
|
|
44
|
+
export const COMMIT_SCOPE = "COMMIT_SCOPE: Tests validate the WORKTREE, not staged code. " +
|
|
45
|
+
"silvermoon check --staged validates only staged Silvermoon metadata. " +
|
|
46
|
+
"Partial staging is NOT exact-candidate test evidence; align index and worktree " +
|
|
47
|
+
"and rerun checks before claiming the staged code passed. No files are staged or changed.\n";
|
|
48
|
+
const repositoryRoot = fileURLToPath(new URL("..", import.meta.url));
|
|
49
|
+
export function packageManagerCommand(script, { env = process.env, execPath = process.execPath, platform = process.platform, } = {}) {
|
|
50
|
+
if (env.npm_execpath) {
|
|
51
|
+
if (platform === "win32" && /\.exe$/i.test(env.npm_execpath)) {
|
|
52
|
+
return {
|
|
53
|
+
command: env.npm_execpath,
|
|
54
|
+
args: ["run", script],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
command: execPath,
|
|
59
|
+
args: [env.npm_execpath, "run", script],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
if (platform === "win32") {
|
|
63
|
+
return {
|
|
64
|
+
command: env.ComSpec ?? "cmd.exe",
|
|
65
|
+
args: ["/d", "/s", "/c", `npm run ${script}`],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
return { command: "npm", args: ["run", script] };
|
|
69
|
+
}
|
|
70
|
+
export function runCheckScript(script, { cwd = repositoryRoot, env = process.env, spawnImpl = spawn, } = {}) {
|
|
71
|
+
const { command, args } = packageManagerCommand(script, { env });
|
|
72
|
+
return new Promise((resolve, reject) => {
|
|
73
|
+
process.stdout.write(`CHECK_START ${script}\n`);
|
|
74
|
+
const child = spawnImpl(command, args, {
|
|
75
|
+
cwd,
|
|
76
|
+
env,
|
|
77
|
+
stdio: "inherit",
|
|
78
|
+
windowsHide: true,
|
|
79
|
+
});
|
|
80
|
+
child.once("error", (error) => {
|
|
81
|
+
reject(new Error(`${script} could not start: ${error.message}`));
|
|
82
|
+
});
|
|
83
|
+
child.once("close", (code, signal) => {
|
|
84
|
+
if (code === 0) {
|
|
85
|
+
process.stdout.write(`CHECK_OK ${script}\n`);
|
|
86
|
+
resolve();
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const result = signal ? `signal ${signal}` : `exit code ${code}`;
|
|
90
|
+
reject(new Error(`${script} failed with ${result}`));
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
export async function runChecks({ scripts = CHECK_SCRIPTS, runScript = runCheckScript, now = () => performance.now(), writeOutput = (message) => process.stdout.write(message), } = {}) {
|
|
95
|
+
if (!Array.isArray(scripts) || scripts.length === 0
|
|
96
|
+
|| scripts.some((script) => typeof script !== "string" || !script.trim())) {
|
|
97
|
+
throw new Error("Checks require a non-empty list of script names");
|
|
98
|
+
}
|
|
99
|
+
const totalStartedAt = now();
|
|
100
|
+
const runTimed = async (script) => {
|
|
101
|
+
const scriptStartedAt = now();
|
|
102
|
+
try {
|
|
103
|
+
await runScript(script);
|
|
104
|
+
}
|
|
105
|
+
finally {
|
|
106
|
+
const elapsedMs = Math.round(now() - scriptStartedAt);
|
|
107
|
+
writeOutput(`CHECK_DURATION ${script} ${elapsedMs}ms\n`);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const prerequisiteNames = new Set(["typecheck", "build"]);
|
|
111
|
+
const prerequisites = scripts.filter((script) => prerequisiteNames.has(script));
|
|
112
|
+
const parallel = scripts.filter((script) => !prerequisiteNames.has(script));
|
|
113
|
+
const entries = [];
|
|
114
|
+
for (const script of prerequisites) {
|
|
115
|
+
const [result] = await Promise.allSettled([runTimed(script)]);
|
|
116
|
+
if (result)
|
|
117
|
+
entries.push([script, result]);
|
|
118
|
+
}
|
|
119
|
+
const parallelResults = await Promise.allSettled(parallel.map((script) => runTimed(script)));
|
|
120
|
+
entries.push(...parallel.map((script, index) => [
|
|
121
|
+
script,
|
|
122
|
+
parallelResults[index],
|
|
123
|
+
]));
|
|
124
|
+
const totalElapsedMs = Math.round(now() - totalStartedAt);
|
|
125
|
+
writeOutput(`CHECK_TOTAL ${totalElapsedMs}ms\n`);
|
|
126
|
+
const failures = entries.flatMap(([script, result]) => result.status === "rejected"
|
|
127
|
+
? [`${script}: ${errorMessage(result.reason)}`]
|
|
128
|
+
: []);
|
|
129
|
+
if (failures.length > 0) {
|
|
130
|
+
throw new Error(`Checks failed:\n- ${failures.join("\n- ")}`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export function isMain(importMetaUrl, argv = process.argv) {
|
|
134
|
+
return Boolean(argv[1] && importMetaUrl === pathToFileURL(resolve(argv[1])).href);
|
|
135
|
+
}
|
|
136
|
+
if (isMain(import.meta.url)) {
|
|
137
|
+
try {
|
|
138
|
+
const args = process.argv.slice(2);
|
|
139
|
+
const scripts = selectChecks(args);
|
|
140
|
+
if (args[1] === "commit")
|
|
141
|
+
process.stdout.write(COMMIT_SCOPE);
|
|
142
|
+
await runChecks({ scripts });
|
|
143
|
+
}
|
|
144
|
+
catch (error) {
|
|
145
|
+
process.stderr.write(`${errorMessage(error)}\n`);
|
|
146
|
+
process.exitCode = 1;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=run-checks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-checks.js","sourceRoot":"","sources":["../../bin/run-checks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,WAAW;IACX,OAAO;IACP,eAAe;IACf,YAAY;IACZ,aAAa;IACb,wBAAwB;IACxB,kBAAkB;IAClB,gBAAgB;IAChB,cAAc;CACf,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;I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G,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACnC,MAAM,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;YAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAC7D,MAAM,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/B,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACxB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACjD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { Command } from "commander";
|
|
3
|
+
import { renderResponse } from "../src/foundation/renderer/index.ts";
|
|
4
|
+
type Io = {
|
|
5
|
+
log: (message: unknown) => unknown;
|
|
6
|
+
error: (message: unknown) => unknown;
|
|
7
|
+
};
|
|
8
|
+
type Terminal = {
|
|
9
|
+
stdin: {
|
|
10
|
+
isTTY?: boolean;
|
|
11
|
+
};
|
|
12
|
+
stdout: {
|
|
13
|
+
isTTY?: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type CliOptions = {
|
|
17
|
+
afterDigest?: string;
|
|
18
|
+
afterLength?: number;
|
|
19
|
+
all?: boolean;
|
|
20
|
+
audience?: string;
|
|
21
|
+
commit?: string;
|
|
22
|
+
confirmDecision?: boolean;
|
|
23
|
+
createdBefore?: string;
|
|
24
|
+
createdSince?: string;
|
|
25
|
+
expectedDigest?: string;
|
|
26
|
+
expectedLength?: number;
|
|
27
|
+
expectedPrimary?: string;
|
|
28
|
+
fullHistory?: boolean;
|
|
29
|
+
input?: string;
|
|
30
|
+
json?: boolean;
|
|
31
|
+
language?: string;
|
|
32
|
+
limit?: string;
|
|
33
|
+
query?: string;
|
|
34
|
+
remote?: boolean;
|
|
35
|
+
root: string;
|
|
36
|
+
sort?: string;
|
|
37
|
+
staged?: boolean;
|
|
38
|
+
state?: string[];
|
|
39
|
+
trace?: string;
|
|
40
|
+
worktree?: boolean;
|
|
41
|
+
};
|
|
42
|
+
type Runtime = {
|
|
43
|
+
bootstrapStartedAt?: bigint;
|
|
44
|
+
renderTui?: (content: string, terminal: Terminal) => Promise<void>;
|
|
45
|
+
terminal?: Terminal;
|
|
46
|
+
};
|
|
47
|
+
type CommandReport = {
|
|
48
|
+
observation: {
|
|
49
|
+
state: string;
|
|
50
|
+
receipt?: {
|
|
51
|
+
reduction?: {
|
|
52
|
+
ok?: boolean;
|
|
53
|
+
};
|
|
54
|
+
format?: {
|
|
55
|
+
ok?: boolean;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
response: Parameters<typeof renderResponse>[0];
|
|
60
|
+
};
|
|
61
|
+
export declare function normalizeTraceFileName(value: string): string;
|
|
62
|
+
export declare function selectOutputRenderer({ audience, json, stdinIsTTY, stdoutIsTTY, }: {
|
|
63
|
+
audience?: string;
|
|
64
|
+
json?: boolean;
|
|
65
|
+
stdinIsTTY?: boolean;
|
|
66
|
+
stdoutIsTTY?: boolean;
|
|
67
|
+
}): "json" | "markdown" | "tui";
|
|
68
|
+
export declare function render(report: CommandReport, { audience, json }?: Pick<CliOptions, "audience" | "json">, io?: Io, { renderTui, terminal, }?: Runtime): Promise<void>;
|
|
69
|
+
export declare function createProgram(io?: Io, runtime?: Runtime): Command;
|
|
70
|
+
export declare function runCli(args: readonly string[], io?: Io, runtime?: Runtime): Promise<number>;
|
|
71
|
+
export declare function isMain(importMetaUrl: string, argv?: readonly string[], { platform, realpath }?: {
|
|
72
|
+
platform?: NodeJS.Platform;
|
|
73
|
+
realpath?: (path: string) => string;
|
|
74
|
+
}): boolean;
|
|
75
|
+
export {};
|
|
76
|
+
//# sourceMappingURL=silverm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AAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAAM,EAChF,EAAE,GAAE,EAAY,EAChB,EACE,SAA8B,EAC9B,QAA2D,GAC5D,GAAE,OAAY,GACd,OAAO,CAAC,IAAI,CAAC,CAkBf;AAoFD,wBAAgB,aAAa,CAAC,EAAE,GAAE,EAAY,EAAE,OAAO,GAAE,OAAY,GAAG,OAAO,CAwP9E;AAED,wBAAsB,MAAM,CAC1B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,GAAE,EAAY,EAChB,OAAO,GAAE,OAAY,GACpB,OAAO,CAAC,MAAM,CAAC,CAcjB;AAED,wBAAgB,MAAM,CACpB,aAAa,EAAE,MAAM,EACrB,IAAI,GAAE,SAAS,MAAM,EAAiB,EACtC,EAAE,QAA2B,EAAE,QAA8B,EAAE,GAAE;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CAChC,GACL,OAAO,CAWT"}
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync, realpathSync } from "node:fs";
|
|
3
|
+
import { resolve } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { Command, CommanderError, InvalidArgumentError, Option, } from "commander";
|
|
6
|
+
import { canonicalizeLanguageTag, canonicalizeOutputLanguage, } from "../src/foundation/language/index.js";
|
|
7
|
+
import { normalizeIdeaQuery } from "../src/foundation/idea-query/index.js";
|
|
8
|
+
import { listIdeas } from "../src/business/index.js";
|
|
9
|
+
import { checkRepository } from "../src/business/index.js";
|
|
10
|
+
import { createIdea } from "../src/business/index.js";
|
|
11
|
+
import { eventCommand } from "../src/business/index.js";
|
|
12
|
+
import { renderResponse } from "../src/foundation/renderer/index.js";
|
|
13
|
+
import { traceAsync, withTraceFile } from "../src/foundation/trace/index.js";
|
|
14
|
+
import { writeTerminalLine } from "../src/foundation/terminal/index.js";
|
|
15
|
+
import { whatsNext } from "../src/business/index.js";
|
|
16
|
+
function listIdeasFromCli(options, sort) {
|
|
17
|
+
// The business annotation still names legacy sort values, but its runtime
|
|
18
|
+
// delegates to the foundation normalizer that produced this canonical value.
|
|
19
|
+
if (!Reflect.set(options, "sort", sort)) {
|
|
20
|
+
throw new Error("Could not configure the normalized idea sort order.");
|
|
21
|
+
}
|
|
22
|
+
return listIdeas(options);
|
|
23
|
+
}
|
|
24
|
+
function errorMessage(error) {
|
|
25
|
+
return error instanceof Error ? error.message : String(error);
|
|
26
|
+
}
|
|
27
|
+
function isCommandReport(value) {
|
|
28
|
+
if (typeof value !== "object" || value === null)
|
|
29
|
+
return false;
|
|
30
|
+
const observation = Reflect.get(value, "observation");
|
|
31
|
+
const response = Reflect.get(value, "response");
|
|
32
|
+
return typeof observation === "object" && observation !== null
|
|
33
|
+
&& typeof Reflect.get(observation, "state") === "string"
|
|
34
|
+
&& typeof response === "object" && response !== null;
|
|
35
|
+
}
|
|
36
|
+
const packageJsonUrl = new URL(import.meta.url.endsWith(".ts") ? "../package.json" : "../../package.json", import.meta.url);
|
|
37
|
+
const manifest = JSON.parse(readFileSync(packageJsonUrl, "utf8"));
|
|
38
|
+
const VERSION = typeof manifest === "object" && manifest !== null
|
|
39
|
+
? Reflect.get(manifest, "version") : undefined;
|
|
40
|
+
if (typeof VERSION !== "string") {
|
|
41
|
+
throw new Error("package.json version must be a string.");
|
|
42
|
+
}
|
|
43
|
+
const TRACE_FILE_SUFFIX = ".trace.jsonl";
|
|
44
|
+
const AUDIENCES = ["human", "agent"];
|
|
45
|
+
export function normalizeTraceFileName(value) {
|
|
46
|
+
return value.endsWith(TRACE_FILE_SUFFIX)
|
|
47
|
+
? value
|
|
48
|
+
: `${value}${TRACE_FILE_SUFFIX}`;
|
|
49
|
+
}
|
|
50
|
+
function addCommonOptions(command) {
|
|
51
|
+
return command
|
|
52
|
+
.option("--json", "serialize all four command projections as JSON")
|
|
53
|
+
.addOption(new Option("--audience <audience>", "select human TUI or agent Markdown output (default: human)")
|
|
54
|
+
.choices(AUDIENCES)
|
|
55
|
+
.conflicts("json"))
|
|
56
|
+
.option("--trace <file.trace.jsonl>", "write domain and timing events as JSONL (suffix is appended when omitted)", normalizeTraceFileName)
|
|
57
|
+
.option("-r, --root <path>", "repository root", process.cwd());
|
|
58
|
+
}
|
|
59
|
+
export function selectOutputRenderer({ audience = "human", json = false, stdinIsTTY = false, stdoutIsTTY = false, }) {
|
|
60
|
+
if (json)
|
|
61
|
+
return "json";
|
|
62
|
+
if (audience === "human" && stdinIsTTY && stdoutIsTTY)
|
|
63
|
+
return "tui";
|
|
64
|
+
return "markdown";
|
|
65
|
+
}
|
|
66
|
+
async function defaultTuiRenderer(content, terminal) {
|
|
67
|
+
const { renderTuiMarkdown } = await import("../src/foundation/tui/index.js");
|
|
68
|
+
await Reflect.apply(renderTuiMarkdown, undefined, [content, terminal]);
|
|
69
|
+
}
|
|
70
|
+
export async function render(report, { audience = "human", json = false } = {}, io = console, { renderTui = defaultTuiRenderer, terminal = { stdin: process.stdin, stdout: process.stdout }, } = {}) {
|
|
71
|
+
const renderer = selectOutputRenderer({
|
|
72
|
+
audience,
|
|
73
|
+
json,
|
|
74
|
+
stdinIsTTY: terminal.stdin.isTTY === true,
|
|
75
|
+
stdoutIsTTY: terminal.stdout.isTTY === true,
|
|
76
|
+
});
|
|
77
|
+
if (renderer === "json") {
|
|
78
|
+
io.log(JSON.stringify(report, null, 2));
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const markdown = renderResponse(report.response);
|
|
82
|
+
if (renderer === "tui") {
|
|
83
|
+
await renderTui(markdown, terminal);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
io.log(markdown);
|
|
87
|
+
}
|
|
88
|
+
function outputRenderer(options, runtime) {
|
|
89
|
+
const terminal = runtime.terminal ?? {
|
|
90
|
+
stdin: process.stdin,
|
|
91
|
+
stdout: process.stdout,
|
|
92
|
+
};
|
|
93
|
+
return selectOutputRenderer({
|
|
94
|
+
...(options.audience === undefined ? {} : { audience: options.audience }),
|
|
95
|
+
...(options.json === undefined ? {} : { json: options.json }),
|
|
96
|
+
stdinIsTTY: terminal.stdin.isTTY === true,
|
|
97
|
+
stdoutIsTTY: terminal.stdout.isTTY === true,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
function bootstrapDuration(runtime) {
|
|
101
|
+
if (typeof runtime.bootstrapStartedAt !== "bigint")
|
|
102
|
+
return {};
|
|
103
|
+
const elapsed = process.hrtime.bigint() - runtime.bootstrapStartedAt;
|
|
104
|
+
return {
|
|
105
|
+
bootstrapDurationMs: Math.round(Number(elapsed) / 1_000) / 1_000,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
async function runCommand({ attributes, execute, name, options, }, io, runtime) {
|
|
109
|
+
const renderer = outputRenderer(options, runtime);
|
|
110
|
+
const traceAttributes = {
|
|
111
|
+
...attributes,
|
|
112
|
+
outputRenderer: renderer,
|
|
113
|
+
...bootstrapDuration(runtime),
|
|
114
|
+
};
|
|
115
|
+
if (renderer === "tui") {
|
|
116
|
+
const report = await Reflect.apply(withTraceFile, undefined, [
|
|
117
|
+
options.trace, name, traceAttributes, execute,
|
|
118
|
+
]);
|
|
119
|
+
if (!isCommandReport(report))
|
|
120
|
+
throw new Error(`${name} returned an invalid report.`);
|
|
121
|
+
await render(report, options, io, runtime);
|
|
122
|
+
return report;
|
|
123
|
+
}
|
|
124
|
+
const report = await Reflect.apply(withTraceFile, undefined, [
|
|
125
|
+
options.trace, name, traceAttributes, async () => {
|
|
126
|
+
const report = await execute();
|
|
127
|
+
if (!isCommandReport(report))
|
|
128
|
+
throw new Error(`${name} returned an invalid report.`);
|
|
129
|
+
await Reflect.apply(traceAsync, undefined, [
|
|
130
|
+
"output.render",
|
|
131
|
+
{ renderer },
|
|
132
|
+
() => render(report, options, io, runtime),
|
|
133
|
+
]);
|
|
134
|
+
return report;
|
|
135
|
+
},
|
|
136
|
+
]);
|
|
137
|
+
if (!isCommandReport(report))
|
|
138
|
+
throw new Error(`${name} returned an invalid report.`);
|
|
139
|
+
return report;
|
|
140
|
+
}
|
|
141
|
+
function contentLanguageArgument(value) {
|
|
142
|
+
try {
|
|
143
|
+
return canonicalizeLanguageTag(value);
|
|
144
|
+
}
|
|
145
|
+
catch (caught) {
|
|
146
|
+
throw new InvalidArgumentError(errorMessage(caught));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function outputLanguageArgument(value) {
|
|
150
|
+
try {
|
|
151
|
+
return canonicalizeOutputLanguage(value);
|
|
152
|
+
}
|
|
153
|
+
catch (caught) {
|
|
154
|
+
throw new InvalidArgumentError(errorMessage(caught));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function collectOption(value, previous = []) {
|
|
158
|
+
return [...previous, value];
|
|
159
|
+
}
|
|
160
|
+
export function createProgram(io = console, runtime = {}) {
|
|
161
|
+
const program = new Command();
|
|
162
|
+
program
|
|
163
|
+
.name("silvermoon")
|
|
164
|
+
.description("Derive and validate repository-owned idea state.")
|
|
165
|
+
.version(VERSION, "-v, --version", "display the installed version")
|
|
166
|
+
.addHelpCommand(false)
|
|
167
|
+
.showHelpAfterError("(run with --help for usage)")
|
|
168
|
+
.showSuggestionAfterError()
|
|
169
|
+
.configureHelp({ sortOptions: true, sortSubcommands: true })
|
|
170
|
+
.configureOutput({
|
|
171
|
+
outputError: (value, output) => output(value),
|
|
172
|
+
writeErr: (value) => writeTerminalLine(io.error, value),
|
|
173
|
+
writeOut: (value) => writeTerminalLine(io.log, value),
|
|
174
|
+
})
|
|
175
|
+
.exitOverride()
|
|
176
|
+
.addHelpText("after", `
|
|
177
|
+
Examples:
|
|
178
|
+
$ silvermoon list-ideas
|
|
179
|
+
$ silvermoon list-ideas --language zh-CN
|
|
180
|
+
$ silvermoon list-ideas --state completed --sort oldest --limit 10
|
|
181
|
+
$ silvermoon whats-next
|
|
182
|
+
$ silvermoon whats-next <idea>
|
|
183
|
+
$ silvermoon whats-next <idea> --language zh-CN
|
|
184
|
+
$ silvermoon whats-next <idea> --audience agent
|
|
185
|
+
$ silvermoon whats-next <idea> --json
|
|
186
|
+
$ silvermoon whats-next <idea> --trace whats-next.trace.jsonl
|
|
187
|
+
$ silvermoon create-idea
|
|
188
|
+
$ silvermoon check
|
|
189
|
+
$ silvermoon check --language en-US
|
|
190
|
+
$ silvermoon check --worktree
|
|
191
|
+
$ silvermoon check --staged
|
|
192
|
+
$ silvermoon check --commit HEAD
|
|
193
|
+
$ silvermoon check --remote`);
|
|
194
|
+
addCommonOptions(program
|
|
195
|
+
.command("list-ideas")
|
|
196
|
+
.description("query the current local idea inventory")
|
|
197
|
+
.option("--language <tag>", "use a built-in output language (en, en-US, zh, or zh-CN) for this invocation", outputLanguageArgument)
|
|
198
|
+
.option("--state <state>", "include a lifecycle state or active (repeatable)", collectOption)
|
|
199
|
+
.option("--all", "include all five lifecycle states")
|
|
200
|
+
.option("--query <text>", "match ID, alias, or title literally")
|
|
201
|
+
.option("--created-since <timestamp>", "include ideas created at or after an RFC 3339 timestamp")
|
|
202
|
+
.option("--created-before <timestamp>", "include ideas created before an RFC 3339 timestamp")
|
|
203
|
+
.option("--sort <order>", "sort by creation time: newest or oldest")
|
|
204
|
+
.option("--limit <count>", "return at most this positive number of ideas")).action(async (options) => {
|
|
205
|
+
const query = normalizeIdeaQuery({
|
|
206
|
+
all: options.all,
|
|
207
|
+
createdBefore: options.createdBefore,
|
|
208
|
+
createdSince: options.createdSince,
|
|
209
|
+
limit: options.limit,
|
|
210
|
+
query: options.query,
|
|
211
|
+
sort: options.sort,
|
|
212
|
+
states: options.state,
|
|
213
|
+
});
|
|
214
|
+
const report = await runCommand({
|
|
215
|
+
name: "command.list-ideas",
|
|
216
|
+
options,
|
|
217
|
+
attributes: {
|
|
218
|
+
command: "list-ideas",
|
|
219
|
+
hasQuery: query.query !== null,
|
|
220
|
+
outputLanguage: options.language ?? null,
|
|
221
|
+
stateCount: query.states.length,
|
|
222
|
+
},
|
|
223
|
+
execute: () => listIdeasFromCli({
|
|
224
|
+
...(query.createdBefore === null
|
|
225
|
+
? {}
|
|
226
|
+
: { createdBefore: query.createdBefore }),
|
|
227
|
+
...(query.createdSince === null
|
|
228
|
+
? {}
|
|
229
|
+
: { createdSince: query.createdSince }),
|
|
230
|
+
...(options.language === undefined
|
|
231
|
+
? {}
|
|
232
|
+
: { language: options.language }),
|
|
233
|
+
limit: query.limit,
|
|
234
|
+
...(query.query === null ? {} : { query: query.query }),
|
|
235
|
+
root: options.root,
|
|
236
|
+
states: query.states,
|
|
237
|
+
}, query.sort),
|
|
238
|
+
}, io, runtime);
|
|
239
|
+
program.setOptionValue("resultCode", report.observation.state === "ideas-listed" ? 0 : 1);
|
|
240
|
+
});
|
|
241
|
+
addCommonOptions(program
|
|
242
|
+
.command("whats-next [idea]")
|
|
243
|
+
.description("observe project, repository, and idea readiness")
|
|
244
|
+
.option("--language <tag>", "use a built-in output language (en, en-US, zh, or zh-CN) for this invocation", outputLanguageArgument)).action(async (idea, options) => {
|
|
245
|
+
const report = await runCommand({
|
|
246
|
+
name: "command.whats-next",
|
|
247
|
+
options,
|
|
248
|
+
attributes: {
|
|
249
|
+
command: "whats-next",
|
|
250
|
+
outputLanguage: options.language ?? null,
|
|
251
|
+
},
|
|
252
|
+
execute: () => whatsNext({
|
|
253
|
+
...(idea === undefined ? {} : { idea }),
|
|
254
|
+
...(options.language === undefined
|
|
255
|
+
? {}
|
|
256
|
+
: { language: options.language }),
|
|
257
|
+
root: options.root,
|
|
258
|
+
}),
|
|
259
|
+
}, io, runtime);
|
|
260
|
+
program.setOptionValue("resultCode", 0);
|
|
261
|
+
});
|
|
262
|
+
addCommonOptions(program
|
|
263
|
+
.command("create-idea")
|
|
264
|
+
.description("create one structured idea scaffold after readiness checks")
|
|
265
|
+
.option("--language <tag>", "persist a canonical content language override on the new idea", contentLanguageArgument)).action(async (options) => {
|
|
266
|
+
const report = await runCommand({
|
|
267
|
+
name: "command.create-idea",
|
|
268
|
+
options,
|
|
269
|
+
attributes: {
|
|
270
|
+
command: "create-idea",
|
|
271
|
+
contentLanguage: options.language ?? null,
|
|
272
|
+
},
|
|
273
|
+
execute: () => createIdea({
|
|
274
|
+
...(options.language === undefined
|
|
275
|
+
? {}
|
|
276
|
+
: { language: options.language }),
|
|
277
|
+
root: options.root,
|
|
278
|
+
}),
|
|
279
|
+
}, io, runtime);
|
|
280
|
+
program.setOptionValue("resultCode", 0);
|
|
281
|
+
});
|
|
282
|
+
addCommonOptions(program
|
|
283
|
+
.command("check")
|
|
284
|
+
.description("validate Silvermoon configuration and idea state")
|
|
285
|
+
.option("--language <tag>", "use a built-in output language (en, en-US, zh, or zh-CN) for this invocation", outputLanguageArgument)
|
|
286
|
+
.addOption(new Option("--remote", "fetch and validate the configured primary tip").conflicts(["commit", "staged", "worktree"]))
|
|
287
|
+
.addOption(new Option("--commit <revision>", "validate one local commit snapshot").conflicts(["remote", "staged", "worktree"]))
|
|
288
|
+
.addOption(new Option("--staged", "validate the index snapshot").conflicts(["remote", "commit", "worktree"]))
|
|
289
|
+
.addOption(new Option("--worktree", "validate HEAD plus staged, unstaged, and untracked changes").conflicts(["remote", "commit", "staged"]))).action(async (options) => {
|
|
290
|
+
const report = await runCommand({
|
|
291
|
+
name: "command.check",
|
|
292
|
+
options,
|
|
293
|
+
attributes: {
|
|
294
|
+
command: "check",
|
|
295
|
+
outputLanguage: options.language ?? null,
|
|
296
|
+
},
|
|
297
|
+
execute: () => checkRepository({
|
|
298
|
+
...(options.commit === undefined ? {} : { commit: options.commit }),
|
|
299
|
+
...(options.language === undefined
|
|
300
|
+
? {}
|
|
301
|
+
: { language: options.language }),
|
|
302
|
+
...(options.remote === undefined ? {} : { remote: options.remote }),
|
|
303
|
+
root: options.root,
|
|
304
|
+
...(options.staged === undefined ? {} : { staged: options.staged }),
|
|
305
|
+
...(options.worktree === undefined
|
|
306
|
+
? {}
|
|
307
|
+
: { worktree: options.worktree }),
|
|
308
|
+
}),
|
|
309
|
+
}, io, runtime);
|
|
310
|
+
program.setOptionValue("resultCode", report.observation.state === "project-ready" ? 0 : 1);
|
|
311
|
+
});
|
|
312
|
+
addCommonOptions(program.command("event <operation> [idea]")
|
|
313
|
+
.description("replay or append v2 idea events")
|
|
314
|
+
.option("--language <tag>", "use a built-in output language for this invocation", outputLanguageArgument)
|
|
315
|
+
.option("--input <file>", "JSON business request for append")
|
|
316
|
+
.option("--expected-length <bytes>", "observed log byte length", (value) => {
|
|
317
|
+
if (!/^(0|[1-9][0-9]*)$/.test(value) || !Number.isSafeInteger(Number(value))) {
|
|
318
|
+
throw new InvalidArgumentError("expected length must be a nonnegative safe integer");
|
|
319
|
+
}
|
|
320
|
+
return Number(value);
|
|
321
|
+
})
|
|
322
|
+
.option("--expected-digest <oid>", "observed canonical events-folder digest")
|
|
323
|
+
.option("--after-length <bytes>", "return only events after this observed byte cursor", (value) => {
|
|
324
|
+
if (!/^(0|[1-9][0-9]*)$/.test(value) || !Number.isSafeInteger(Number(value))) {
|
|
325
|
+
throw new InvalidArgumentError("after length must be a nonnegative safe integer");
|
|
326
|
+
}
|
|
327
|
+
return Number(value);
|
|
328
|
+
})
|
|
329
|
+
.option("--after-digest <oid>", "exact observed prefix folder digest for incremental replay")
|
|
330
|
+
.option("--full-history", "include complete historical reductions in an append receipt instead of the default summary")
|
|
331
|
+
.option("--expected-primary <commit>", "observed primary commit (never stored in events)")
|
|
332
|
+
.option("--confirm-decision", "assert an explicit human decision for this exact request")).action(async (operation, idea, options) => {
|
|
333
|
+
if (!["replay", "append"].includes(operation)
|
|
334
|
+
|| !idea
|
|
335
|
+
|| (operation === "append" && !options.input)
|
|
336
|
+
|| (operation === "replay" && options.input)
|
|
337
|
+
|| (operation !== "append" && options.fullHistory)
|
|
338
|
+
|| ((options.afterLength !== undefined || options.afterDigest !== undefined)
|
|
339
|
+
&& (operation !== "replay" || options.afterLength === undefined || options.afterDigest === undefined))
|
|
340
|
+
|| (operation === "replay" && [
|
|
341
|
+
options.expectedLength, options.expectedDigest, options.expectedPrimary, options.confirmDecision,
|
|
342
|
+
].some((value) => value !== undefined))) {
|
|
343
|
+
throw Object.assign(new Error("Use event replay|append <idea>; append requires --input."), { exitCode: 2 });
|
|
344
|
+
}
|
|
345
|
+
let input;
|
|
346
|
+
if (options.input) {
|
|
347
|
+
try {
|
|
348
|
+
input = JSON.parse(readFileSync(options.input, "utf8"));
|
|
349
|
+
}
|
|
350
|
+
catch (cause) {
|
|
351
|
+
throw Object.assign(new Error(`Cannot read business request: ${errorMessage(cause)}`), { exitCode: 2 });
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
const report = await runCommand({
|
|
355
|
+
name: "command.event", options, attributes: { command: "event", operation },
|
|
356
|
+
execute: () => eventCommand({ ...options, operation, idea, input }),
|
|
357
|
+
}, io, runtime);
|
|
358
|
+
const receipt = report.observation.receipt;
|
|
359
|
+
program.setOptionValue("resultCode", report.observation.state === "event-result"
|
|
360
|
+
&& receipt !== undefined
|
|
361
|
+
&& receipt.reduction?.ok !== false
|
|
362
|
+
&& receipt.format?.ok !== false ? 0 : 1);
|
|
363
|
+
});
|
|
364
|
+
return program;
|
|
365
|
+
}
|
|
366
|
+
export async function runCli(args, io = console, runtime = {}) {
|
|
367
|
+
const program = createProgram(io, runtime);
|
|
368
|
+
try {
|
|
369
|
+
await program.parseAsync(args.length === 0 ? ["--help"] : args, { from: "user" });
|
|
370
|
+
}
|
|
371
|
+
catch (caught) {
|
|
372
|
+
if (caught instanceof CommanderError)
|
|
373
|
+
return caught.exitCode === 0 ? 0 : 2;
|
|
374
|
+
if (typeof caught === "object" && caught !== null && Reflect.get(caught, "exitCode") === 2) {
|
|
375
|
+
io.error(`ERROR usage: ${errorMessage(caught)}`);
|
|
376
|
+
return 2;
|
|
377
|
+
}
|
|
378
|
+
io.error(`ERROR command.failed: ${errorMessage(caught)}`);
|
|
379
|
+
return 1;
|
|
380
|
+
}
|
|
381
|
+
return program.getOptionValue("resultCode") ?? 0;
|
|
382
|
+
}
|
|
383
|
+
export function isMain(importMetaUrl, argv = process.argv, { platform = process.platform, realpath = realpathSync.native } = {}) {
|
|
384
|
+
if (!argv[1])
|
|
385
|
+
return false;
|
|
386
|
+
const canonical = (path) => {
|
|
387
|
+
try {
|
|
388
|
+
path = realpath(resolve(path));
|
|
389
|
+
}
|
|
390
|
+
catch {
|
|
391
|
+
path = resolve(path);
|
|
392
|
+
}
|
|
393
|
+
return platform === "win32" ? path.toLowerCase() : path;
|
|
394
|
+
};
|
|
395
|
+
return canonical(fileURLToPath(importMetaUrl)) === canonical(argv[1]);
|
|
396
|
+
}
|
|
397
|
+
if (isMain(import.meta.url)) {
|
|
398
|
+
const bootstrapStartedAt = process.hrtime.bigint();
|
|
399
|
+
process.exitCode = await runCli(process.argv.slice(2), console, { bootstrapStartedAt });
|
|
400
|
+
}
|
|
401
|
+
//# sourceMappingURL=silvermoon.js.map
|