silvermoon 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/README.zh-CN.md +26 -24
- package/dist/bin/build-npm-tarball.d.ts +28 -0
- package/dist/bin/build-npm-tarball.d.ts.map +1 -0
- package/dist/bin/build-npm-tarball.js +200 -0
- package/dist/bin/build-npm-tarball.js.map +1 -0
- package/dist/bin/check-pack.d.ts +2 -0
- package/dist/bin/check-pack.d.ts.map +1 -0
- package/dist/bin/check-pack.js +421 -0
- package/dist/bin/check-pack.js.map +1 -0
- package/dist/bin/ci-package-risk.d.ts +19 -0
- package/dist/bin/ci-package-risk.d.ts.map +1 -0
- package/dist/bin/ci-package-risk.js +78 -0
- package/dist/bin/ci-package-risk.js.map +1 -0
- package/dist/bin/generate-npm-readme.d.ts +7 -0
- package/dist/bin/generate-npm-readme.d.ts.map +1 -0
- package/dist/bin/generate-npm-readme.js +232 -0
- package/dist/bin/generate-npm-readme.js.map +1 -0
- package/dist/bin/migrate-v1-to-v2.d.ts +3 -0
- package/dist/bin/migrate-v1-to-v2.d.ts.map +1 -0
- package/dist/bin/migrate-v1-to-v2.js +25 -0
- package/dist/bin/migrate-v1-to-v2.js.map +1 -0
- package/dist/bin/prepare-npm-release.d.ts +46 -0
- package/dist/bin/prepare-npm-release.d.ts.map +1 -0
- package/dist/bin/prepare-npm-release.js +210 -0
- package/dist/bin/prepare-npm-release.js.map +1 -0
- package/dist/bin/pure-check.d.ts +15 -0
- package/dist/bin/pure-check.d.ts.map +1 -0
- package/dist/bin/pure-check.js +448 -0
- package/dist/bin/pure-check.js.map +1 -0
- package/dist/bin/run-checks.d.ts +34 -0
- package/dist/bin/run-checks.d.ts.map +1 -0
- package/dist/bin/run-checks.js +149 -0
- package/dist/bin/run-checks.js.map +1 -0
- package/dist/bin/silvermoon.d.ts +76 -0
- package/dist/bin/silvermoon.d.ts.map +1 -0
- package/dist/bin/silvermoon.js +401 -0
- package/dist/bin/silvermoon.js.map +1 -0
- package/dist/bin/sync-skills.d.ts +2 -0
- package/dist/bin/sync-skills.d.ts.map +1 -0
- package/dist/bin/sync-skills.js +78 -0
- package/dist/bin/sync-skills.js.map +1 -0
- package/dist/bin/verify-npm-release.d.ts +55 -0
- package/dist/bin/verify-npm-release.d.ts.map +1 -0
- package/dist/bin/verify-npm-release.js +418 -0
- package/dist/bin/verify-npm-release.js.map +1 -0
- package/dist/src/business/agent-copilot.d.ts +82 -0
- package/dist/src/business/agent-copilot.d.ts.map +1 -0
- package/dist/src/business/agent-copilot.js +330 -0
- package/dist/src/business/agent-copilot.js.map +1 -0
- package/dist/src/business/agent-project-registry.d.ts +22 -0
- package/dist/src/business/agent-project-registry.d.ts.map +1 -0
- package/dist/src/business/agent-project-registry.js +239 -0
- package/dist/src/business/agent-project-registry.js.map +1 -0
- package/dist/src/business/agent-project-runtime.d.ts +37 -0
- package/dist/src/business/agent-project-runtime.d.ts.map +1 -0
- package/dist/src/business/agent-project-runtime.js +198 -0
- package/dist/src/business/agent-project-runtime.js.map +1 -0
- package/dist/src/business/append-event-history.d.ts +21 -0
- package/dist/src/business/append-event-history.d.ts.map +1 -0
- package/dist/src/business/append-event-history.js +138 -0
- package/dist/src/business/append-event-history.js.map +1 -0
- package/dist/src/business/append-event.d.ts +140 -0
- package/dist/src/business/append-event.d.ts.map +1 -0
- package/dist/src/business/append-event.js +292 -0
- package/dist/src/business/append-event.js.map +1 -0
- package/dist/src/business/check-repository.d.ts +109 -0
- package/dist/src/business/check-repository.d.ts.map +1 -0
- package/dist/src/business/check-repository.js +379 -0
- package/dist/src/business/check-repository.js.map +1 -0
- package/dist/src/business/create-idea.d.ts +100 -0
- package/dist/src/business/create-idea.d.ts.map +1 -0
- package/dist/src/business/create-idea.js +224 -0
- package/dist/src/business/create-idea.js.map +1 -0
- package/dist/src/business/event-command.d.ts +111 -0
- package/dist/src/business/event-command.d.ts.map +1 -0
- package/dist/src/business/event-command.js +239 -0
- package/dist/src/business/event-command.js.map +1 -0
- package/dist/src/business/index.d.ts +7 -0
- package/dist/src/business/index.d.ts.map +1 -0
- package/dist/src/business/index.js +7 -0
- package/dist/src/business/index.js.map +1 -0
- package/dist/src/business/list-ideas.d.ts +97 -0
- package/dist/src/business/list-ideas.d.ts.map +1 -0
- package/dist/src/business/list-ideas.js +177 -0
- package/dist/src/business/list-ideas.js.map +1 -0
- package/dist/src/business/migrate-v1-to-v2.d.ts +23 -0
- package/dist/src/business/migrate-v1-to-v2.d.ts.map +1 -0
- package/dist/src/business/migrate-v1-to-v2.js +152 -0
- package/dist/src/business/migrate-v1-to-v2.js.map +1 -0
- package/dist/src/business/replay-events.d.ts +20 -0
- package/dist/src/business/replay-events.d.ts.map +1 -0
- package/dist/src/business/replay-events.js +27 -0
- package/dist/src/business/replay-events.js.map +1 -0
- package/dist/src/business/schema-migration.d.ts +19 -0
- package/dist/src/business/schema-migration.d.ts.map +1 -0
- package/dist/src/business/schema-migration.js +23 -0
- package/dist/src/business/schema-migration.js.map +1 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.d.ts +3 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.js +9 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.js.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness-with.d.ts +18 -0
- package/dist/src/business/shared/assess-repository-readiness-with.d.ts.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness-with.js +125 -0
- package/dist/src/business/shared/assess-repository-readiness-with.js.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness.d.ts +3 -0
- package/dist/src/business/shared/assess-repository-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness.js +6 -0
- package/dist/src/business/shared/assess-repository-readiness.js.map +1 -0
- package/dist/src/business/shared/business-types.d.ts +151 -0
- package/dist/src/business/shared/business-types.d.ts.map +1 -0
- package/dist/src/business/shared/business-types.js +83 -0
- package/dist/src/business/shared/business-types.js.map +1 -0
- package/dist/src/business/shared/evaluate-local-readiness.d.ts +9 -0
- package/dist/src/business/shared/evaluate-local-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/evaluate-local-readiness.js +97 -0
- package/dist/src/business/shared/evaluate-local-readiness.js.map +1 -0
- package/dist/src/business/shared/evaluate-primary-relation.d.ts +12 -0
- package/dist/src/business/shared/evaluate-primary-relation.d.ts.map +1 -0
- package/dist/src/business/shared/evaluate-primary-relation.js +40 -0
- package/dist/src/business/shared/evaluate-primary-relation.js.map +1 -0
- package/dist/src/business/shared/idea-layout.d.ts +55 -0
- package/dist/src/business/shared/idea-layout.d.ts.map +1 -0
- package/dist/src/business/shared/idea-layout.js +434 -0
- package/dist/src/business/shared/idea-layout.js.map +1 -0
- package/dist/src/business/shared/index.d.ts +18 -0
- package/dist/src/business/shared/index.d.ts.map +1 -0
- package/dist/src/business/shared/index.js +17 -0
- package/dist/src/business/shared/index.js.map +1 -0
- package/dist/src/business/shared/inspect-candidate.d.ts +5 -0
- package/dist/src/business/shared/inspect-candidate.d.ts.map +1 -0
- package/dist/src/business/shared/inspect-candidate.js +57 -0
- package/dist/src/business/shared/inspect-candidate.js.map +1 -0
- package/dist/src/business/shared/metadata-failure-observation.d.ts +21 -0
- package/dist/src/business/shared/metadata-failure-observation.d.ts.map +1 -0
- package/dist/src/business/shared/metadata-failure-observation.js +30 -0
- package/dist/src/business/shared/metadata-failure-observation.js.map +1 -0
- package/dist/src/business/shared/observe-device.d.ts +150 -0
- package/dist/src/business/shared/observe-device.d.ts.map +1 -0
- package/dist/src/business/shared/observe-device.js +71 -0
- package/dist/src/business/shared/observe-device.js.map +1 -0
- package/dist/src/business/shared/observe-idea.d.ts +14 -0
- package/dist/src/business/shared/observe-idea.d.ts.map +1 -0
- package/dist/src/business/shared/observe-idea.js +14 -0
- package/dist/src/business/shared/observe-idea.js.map +1 -0
- package/dist/src/business/shared/observe-project.d.ts +39 -0
- package/dist/src/business/shared/observe-project.d.ts.map +1 -0
- package/dist/src/business/shared/observe-project.js +11 -0
- package/dist/src/business/shared/observe-project.js.map +1 -0
- package/dist/src/business/shared/observe-snapshot.d.ts +35 -0
- package/dist/src/business/shared/observe-snapshot.d.ts.map +1 -0
- package/dist/src/business/shared/observe-snapshot.js +518 -0
- package/dist/src/business/shared/observe-snapshot.js.map +1 -0
- package/dist/src/business/shared/read-idea-inventory-item.d.ts +13 -0
- package/dist/src/business/shared/read-idea-inventory-item.d.ts.map +1 -0
- package/dist/src/business/shared/read-idea-inventory-item.js +18 -0
- package/dist/src/business/shared/read-idea-inventory-item.js.map +1 -0
- package/dist/src/business/shared/resolve-idea.d.ts +7 -0
- package/dist/src/business/shared/resolve-idea.d.ts.map +1 -0
- package/dist/src/business/shared/resolve-idea.js +14 -0
- package/dist/src/business/shared/resolve-idea.js.map +1 -0
- package/dist/src/business/shared/with-observation-language.d.ts +3 -0
- package/dist/src/business/shared/with-observation-language.d.ts.map +1 -0
- package/dist/src/business/shared/with-observation-language.js +20 -0
- package/dist/src/business/shared/with-observation-language.js.map +1 -0
- package/dist/src/business/whats-next.d.ts +94 -0
- package/dist/src/business/whats-next.d.ts.map +1 -0
- package/dist/src/business/whats-next.js +208 -0
- package/dist/src/business/whats-next.js.map +1 -0
- package/dist/src/foundation/command-message/index.d.ts +3 -0
- package/dist/src/foundation/command-message/index.d.ts.map +1 -0
- package/dist/src/foundation/command-message/index.js +3 -0
- package/dist/src/foundation/command-message/index.js.map +1 -0
- package/dist/src/foundation/command-message/observation.d.ts +223 -0
- package/dist/src/foundation/command-message/observation.d.ts.map +1 -0
- package/dist/src/foundation/command-message/observation.js +364 -0
- package/dist/src/foundation/command-message/observation.js.map +1 -0
- package/dist/src/foundation/command-message/runtime.d.ts +214 -0
- package/dist/src/foundation/command-message/runtime.d.ts.map +1 -0
- package/dist/src/foundation/command-message/runtime.js +215 -0
- package/dist/src/foundation/command-message/runtime.js.map +1 -0
- package/dist/src/foundation/coordinates/index.d.ts +3 -0
- package/dist/src/foundation/coordinates/index.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/index.js +3 -0
- package/dist/src/foundation/coordinates/index.js.map +1 -0
- package/dist/src/foundation/coordinates/layout.d.ts +27 -0
- package/dist/src/foundation/coordinates/layout.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/layout.js +41 -0
- package/dist/src/foundation/coordinates/layout.js.map +1 -0
- package/dist/src/foundation/coordinates/repository.d.ts +16 -0
- package/dist/src/foundation/coordinates/repository.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/repository.js +75 -0
- package/dist/src/foundation/coordinates/repository.js.map +1 -0
- package/dist/src/foundation/device-config/index.d.ts +2 -0
- package/dist/src/foundation/device-config/index.d.ts.map +1 -0
- package/dist/src/foundation/device-config/index.js +2 -0
- package/dist/src/foundation/device-config/index.js.map +1 -0
- package/dist/src/foundation/device-config/user-config.d.ts +19 -0
- package/dist/src/foundation/device-config/user-config.d.ts.map +1 -0
- package/dist/src/foundation/device-config/user-config.js +94 -0
- package/dist/src/foundation/device-config/user-config.js.map +1 -0
- package/dist/src/foundation/event-codec/grammar.d.ts +172 -0
- package/dist/src/foundation/event-codec/grammar.d.ts.map +1 -0
- package/dist/src/foundation/event-codec/grammar.js +383 -0
- package/dist/src/foundation/event-codec/grammar.js.map +1 -0
- package/dist/src/foundation/event-codec/index.d.ts +3 -0
- package/dist/src/foundation/event-codec/index.d.ts.map +1 -0
- package/dist/src/foundation/event-codec/index.js +2 -0
- package/dist/src/foundation/event-codec/index.js.map +1 -0
- package/dist/src/foundation/event-cursor/cursor.d.ts +40 -0
- package/dist/src/foundation/event-cursor/cursor.d.ts.map +1 -0
- package/dist/src/foundation/event-cursor/cursor.js +42 -0
- package/dist/src/foundation/event-cursor/cursor.js.map +1 -0
- package/dist/src/foundation/event-cursor/index.d.ts +2 -0
- package/dist/src/foundation/event-cursor/index.d.ts.map +1 -0
- package/dist/src/foundation/event-cursor/index.js +2 -0
- package/dist/src/foundation/event-cursor/index.js.map +1 -0
- package/dist/src/foundation/event-history/digest.d.ts +2 -0
- package/dist/src/foundation/event-history/digest.d.ts.map +1 -0
- package/dist/src/foundation/event-history/digest.js +2 -0
- package/dist/src/foundation/event-history/digest.js.map +1 -0
- package/dist/src/foundation/event-history/history.d.ts +86 -0
- package/dist/src/foundation/event-history/history.d.ts.map +1 -0
- package/dist/src/foundation/event-history/history.js +481 -0
- package/dist/src/foundation/event-history/history.js.map +1 -0
- package/dist/src/foundation/event-history/index.d.ts +3 -0
- package/dist/src/foundation/event-history/index.d.ts.map +1 -0
- package/dist/src/foundation/event-history/index.js +3 -0
- package/dist/src/foundation/event-history/index.js.map +1 -0
- package/dist/src/foundation/event-reducer/index.d.ts +2 -0
- package/dist/src/foundation/event-reducer/index.d.ts.map +1 -0
- package/dist/src/foundation/event-reducer/index.js +2 -0
- package/dist/src/foundation/event-reducer/index.js.map +1 -0
- package/dist/src/foundation/event-reducer/policy.d.ts +69 -0
- package/dist/src/foundation/event-reducer/policy.d.ts.map +1 -0
- package/dist/src/foundation/event-reducer/policy.js +138 -0
- package/dist/src/foundation/event-reducer/policy.js.map +1 -0
- package/dist/src/foundation/event-store/digest.d.ts +11 -0
- package/dist/src/foundation/event-store/digest.d.ts.map +1 -0
- package/dist/src/foundation/event-store/digest.js +38 -0
- package/dist/src/foundation/event-store/digest.js.map +1 -0
- package/dist/src/foundation/event-store/index.d.ts +3 -0
- package/dist/src/foundation/event-store/index.d.ts.map +1 -0
- package/dist/src/foundation/event-store/index.js +3 -0
- package/dist/src/foundation/event-store/index.js.map +1 -0
- package/dist/src/foundation/event-store/storage.d.ts +50 -0
- package/dist/src/foundation/event-store/storage.d.ts.map +1 -0
- package/dist/src/foundation/event-store/storage.js +109 -0
- package/dist/src/foundation/event-store/storage.js.map +1 -0
- package/dist/src/foundation/git/derived-cache.d.ts +5 -0
- package/dist/src/foundation/git/derived-cache.d.ts.map +1 -0
- package/dist/src/foundation/git/derived-cache.js +117 -0
- package/dist/src/foundation/git/derived-cache.js.map +1 -0
- package/dist/src/foundation/git/git.d.ts +100 -0
- package/dist/src/foundation/git/git.d.ts.map +1 -0
- package/dist/src/foundation/git/git.js +677 -0
- package/dist/src/foundation/git/git.js.map +1 -0
- package/dist/src/foundation/git/index.d.ts +3 -0
- package/dist/src/foundation/git/index.d.ts.map +1 -0
- package/dist/src/foundation/git/index.js +3 -0
- package/dist/src/foundation/git/index.js.map +1 -0
- package/dist/src/foundation/guidance/guidance.d.ts +36 -0
- package/dist/src/foundation/guidance/guidance.d.ts.map +1 -0
- package/dist/src/foundation/guidance/guidance.js +198 -0
- package/dist/src/foundation/guidance/guidance.js.map +1 -0
- package/dist/src/foundation/guidance/index.d.ts +3 -0
- package/dist/src/foundation/guidance/index.d.ts.map +1 -0
- package/dist/src/foundation/guidance/index.js +3 -0
- package/dist/src/foundation/guidance/index.js.map +1 -0
- package/dist/src/foundation/guidance/rules.d.ts +36 -0
- package/dist/src/foundation/guidance/rules.d.ts.map +1 -0
- package/dist/src/foundation/guidance/rules.js +65 -0
- package/dist/src/foundation/guidance/rules.js.map +1 -0
- package/dist/src/foundation/idea-model/index.d.ts +3 -0
- package/dist/src/foundation/idea-model/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/index.js +3 -0
- package/dist/src/foundation/idea-model/index.js.map +1 -0
- package/dist/src/foundation/idea-model/status.d.ts +28 -0
- package/dist/src/foundation/idea-model/status.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/status.js +192 -0
- package/dist/src/foundation/idea-model/status.js.map +1 -0
- package/dist/src/foundation/idea-model/ulid.d.ts +6 -0
- package/dist/src/foundation/idea-model/ulid.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/ulid.js +16 -0
- package/dist/src/foundation/idea-model/ulid.js.map +1 -0
- package/dist/src/foundation/idea-query/index.d.ts +3 -0
- package/dist/src/foundation/idea-query/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/index.js +3 -0
- package/dist/src/foundation/idea-query/index.js.map +1 -0
- package/dist/src/foundation/idea-query/query.d.ts +13 -0
- package/dist/src/foundation/idea-query/query.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/query.js +17 -0
- package/dist/src/foundation/idea-query/query.js.map +1 -0
- package/dist/src/foundation/idea-query/rules.d.ts +55 -0
- package/dist/src/foundation/idea-query/rules.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/rules.js +223 -0
- package/dist/src/foundation/idea-query/rules.js.map +1 -0
- package/dist/src/foundation/idea-template/index.d.ts +2 -0
- package/dist/src/foundation/idea-template/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-template/index.js +2 -0
- package/dist/src/foundation/idea-template/index.js.map +1 -0
- package/dist/src/foundation/idea-template/templates.d.ts +21 -0
- package/dist/src/foundation/idea-template/templates.d.ts.map +1 -0
- package/dist/src/foundation/idea-template/templates.js +265 -0
- package/dist/src/foundation/idea-template/templates.js.map +1 -0
- package/dist/src/foundation/installation/device-readiness.d.ts +94 -0
- package/dist/src/foundation/installation/device-readiness.d.ts.map +1 -0
- package/dist/src/foundation/installation/device-readiness.js +274 -0
- package/dist/src/foundation/installation/device-readiness.js.map +1 -0
- package/dist/src/foundation/installation/index.d.ts +4 -0
- package/dist/src/foundation/installation/index.d.ts.map +1 -0
- package/dist/src/foundation/installation/index.js +4 -0
- package/dist/src/foundation/installation/index.js.map +1 -0
- package/dist/src/foundation/installation/installation.d.ts +25 -0
- package/dist/src/foundation/installation/installation.d.ts.map +1 -0
- package/dist/src/foundation/installation/installation.js +125 -0
- package/dist/src/foundation/installation/installation.js.map +1 -0
- package/dist/src/foundation/installation/rules.d.ts +12 -0
- package/dist/src/foundation/installation/rules.d.ts.map +1 -0
- package/dist/src/foundation/installation/rules.js +63 -0
- package/dist/src/foundation/installation/rules.js.map +1 -0
- package/dist/src/foundation/language/index.d.ts +3 -0
- package/dist/src/foundation/language/index.d.ts.map +1 -0
- package/dist/src/foundation/language/index.js +2 -0
- package/dist/src/foundation/language/index.js.map +1 -0
- package/dist/src/foundation/language/language.d.ts +36 -0
- package/dist/src/foundation/language/language.d.ts.map +1 -0
- package/dist/src/foundation/language/language.js +94 -0
- package/dist/src/foundation/language/language.js.map +1 -0
- package/dist/src/foundation/owned-write/index.d.ts +2 -0
- package/dist/src/foundation/owned-write/index.d.ts.map +1 -0
- package/dist/src/foundation/owned-write/index.js +2 -0
- package/dist/src/foundation/owned-write/index.js.map +1 -0
- package/dist/src/foundation/owned-write/writer.d.ts +86 -0
- package/dist/src/foundation/owned-write/writer.d.ts.map +1 -0
- package/dist/src/foundation/owned-write/writer.js +244 -0
- package/dist/src/foundation/owned-write/writer.js.map +1 -0
- package/dist/src/foundation/package-resource/index.d.ts +2 -0
- package/dist/src/foundation/package-resource/index.d.ts.map +1 -0
- package/dist/src/foundation/package-resource/index.js +2 -0
- package/dist/src/foundation/package-resource/index.js.map +1 -0
- package/dist/src/foundation/package-resource/npm-tarball.d.ts +15 -0
- package/dist/src/foundation/package-resource/npm-tarball.d.ts.map +1 -0
- package/dist/src/foundation/package-resource/npm-tarball.js +124 -0
- package/dist/src/foundation/package-resource/npm-tarball.js.map +1 -0
- package/dist/src/foundation/process/index.d.ts +3 -0
- package/dist/src/foundation/process/index.d.ts.map +1 -0
- package/dist/src/foundation/process/index.js +3 -0
- package/dist/src/foundation/process/index.js.map +1 -0
- package/dist/src/foundation/process/npm-command.d.ts +9 -0
- package/dist/src/foundation/process/npm-command.d.ts.map +1 -0
- package/dist/src/foundation/process/npm-command.js +11 -0
- package/dist/src/foundation/process/npm-command.js.map +1 -0
- package/dist/src/foundation/process/subprocess.d.ts +8 -0
- package/dist/src/foundation/process/subprocess.d.ts.map +1 -0
- package/dist/src/foundation/process/subprocess.js +12 -0
- package/dist/src/foundation/process/subprocess.js.map +1 -0
- package/dist/src/foundation/project-config/config.d.ts +30 -0
- package/dist/src/foundation/project-config/config.d.ts.map +1 -0
- package/dist/src/foundation/project-config/config.js +112 -0
- package/dist/src/foundation/project-config/config.js.map +1 -0
- package/dist/src/foundation/project-config/index.d.ts +3 -0
- package/dist/src/foundation/project-config/index.d.ts.map +1 -0
- package/dist/src/foundation/project-config/index.js +3 -0
- package/dist/src/foundation/project-config/index.js.map +1 -0
- package/dist/src/foundation/project-config/rules.d.ts +32 -0
- package/dist/src/foundation/project-config/rules.d.ts.map +1 -0
- package/dist/src/foundation/project-config/rules.js +119 -0
- package/dist/src/foundation/project-config/rules.js.map +1 -0
- package/dist/src/foundation/projection-cache/index.d.ts +2 -0
- package/dist/src/foundation/projection-cache/index.d.ts.map +1 -0
- package/dist/src/foundation/projection-cache/index.js +2 -0
- package/dist/src/foundation/projection-cache/index.js.map +1 -0
- package/dist/src/foundation/projection-cache/projection.d.ts +36 -0
- package/dist/src/foundation/projection-cache/projection.d.ts.map +1 -0
- package/dist/src/foundation/projection-cache/projection.js +105 -0
- package/dist/src/foundation/projection-cache/projection.js.map +1 -0
- package/dist/src/foundation/renderer/index.d.ts +3 -0
- package/dist/src/foundation/renderer/index.d.ts.map +1 -0
- package/dist/src/foundation/renderer/index.js +3 -0
- package/dist/src/foundation/renderer/index.js.map +1 -0
- package/dist/src/foundation/renderer/markdown.d.ts +7 -0
- package/dist/src/foundation/renderer/markdown.d.ts.map +1 -0
- package/dist/src/foundation/renderer/markdown.js +355 -0
- package/dist/src/foundation/renderer/markdown.js.map +1 -0
- package/dist/src/foundation/renderer/render.d.ts +6 -0
- package/dist/src/foundation/renderer/render.d.ts.map +1 -0
- package/dist/src/foundation/renderer/render.js +23 -0
- package/dist/src/foundation/renderer/render.js.map +1 -0
- package/dist/src/foundation/report/dialogue.d.ts +37 -0
- package/dist/src/foundation/report/dialogue.d.ts.map +1 -0
- package/dist/src/foundation/report/dialogue.js +59 -0
- package/dist/src/foundation/report/dialogue.js.map +1 -0
- package/dist/src/foundation/report/index.d.ts +6 -0
- package/dist/src/foundation/report/index.d.ts.map +1 -0
- package/dist/src/foundation/report/index.js +6 -0
- package/dist/src/foundation/report/index.js.map +1 -0
- package/dist/src/foundation/report/instructions.d.ts +77 -0
- package/dist/src/foundation/report/instructions.d.ts.map +1 -0
- package/dist/src/foundation/report/instructions.js +374 -0
- package/dist/src/foundation/report/instructions.js.map +1 -0
- package/dist/src/foundation/report/observation.d.ts +31 -0
- package/dist/src/foundation/report/observation.d.ts.map +1 -0
- package/dist/src/foundation/report/observation.js +83 -0
- package/dist/src/foundation/report/observation.js.map +1 -0
- package/dist/src/foundation/report/projection.d.ts +7 -0
- package/dist/src/foundation/report/projection.d.ts.map +1 -0
- package/dist/src/foundation/report/projection.js +199 -0
- package/dist/src/foundation/report/projection.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/contract.d.ts +148 -0
- package/dist/src/foundation/report/templates/whats-next/contract.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/contract.js +34 -0
- package/dist/src/foundation/report/templates/whats-next/contract.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.d.ts +12 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.js +63 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.js +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.js +39 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.js +12 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/index.d.ts +5 -0
- package/dist/src/foundation/report/templates/whats-next/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/index.js +4 -0
- package/dist/src/foundation/report/templates/whats-next/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/registry.d.ts +4 -0
- package/dist/src/foundation/report/templates/whats-next/registry.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/registry.js +14 -0
- package/dist/src/foundation/report/templates/whats-next/registry.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.js +176 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.d.ts +12 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.js +63 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.js +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.js +39 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.js +12 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.js.map +1 -0
- package/dist/src/foundation/report/types.d.ts +321 -0
- package/dist/src/foundation/report/types.d.ts.map +1 -0
- package/dist/src/foundation/report/types.js +2 -0
- package/dist/src/foundation/report/types.js.map +1 -0
- package/dist/src/foundation/scaffold-plan/index.d.ts +2 -0
- package/dist/src/foundation/scaffold-plan/index.d.ts.map +1 -0
- package/dist/src/foundation/scaffold-plan/index.js +2 -0
- package/dist/src/foundation/scaffold-plan/index.js.map +1 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.d.ts +11 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.d.ts.map +1 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.js +36 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.js.map +1 -0
- package/dist/src/foundation/schema/index.d.ts +3 -0
- package/dist/src/foundation/schema/index.d.ts.map +1 -0
- package/dist/src/foundation/schema/index.js +3 -0
- package/dist/src/foundation/schema/index.js.map +1 -0
- package/dist/src/foundation/schema/schema.d.ts +3 -0
- package/dist/src/foundation/schema/schema.d.ts.map +1 -0
- package/dist/src/foundation/schema/schema.js +10 -0
- package/dist/src/foundation/schema/schema.js.map +1 -0
- package/dist/src/foundation/schema/yaml.d.ts +10 -0
- package/dist/src/foundation/schema/yaml.d.ts.map +1 -0
- package/dist/src/foundation/schema/yaml.js +60 -0
- package/dist/src/foundation/schema/yaml.js.map +1 -0
- package/dist/src/foundation/schema-capability/index.d.ts +6 -0
- package/dist/src/foundation/schema-capability/index.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/index.js +4 -0
- package/dist/src/foundation/schema-capability/index.js.map +1 -0
- package/dist/src/foundation/schema-capability/inspection.d.ts +38 -0
- package/dist/src/foundation/schema-capability/inspection.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/inspection.js +249 -0
- package/dist/src/foundation/schema-capability/inspection.js.map +1 -0
- package/dist/src/foundation/schema-capability/manifest.d.ts +6 -0
- package/dist/src/foundation/schema-capability/manifest.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/manifest.js +17 -0
- package/dist/src/foundation/schema-capability/manifest.js.map +1 -0
- package/dist/src/foundation/schema-capability/rules.d.ts +38 -0
- package/dist/src/foundation/schema-capability/rules.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/rules.js +297 -0
- package/dist/src/foundation/schema-capability/rules.js.map +1 -0
- package/dist/src/foundation/skill-registration/adoption.d.ts +40 -0
- package/dist/src/foundation/skill-registration/adoption.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/adoption.js +63 -0
- package/dist/src/foundation/skill-registration/adoption.js.map +1 -0
- package/dist/src/foundation/skill-registration/index.d.ts +2 -0
- package/dist/src/foundation/skill-registration/index.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/index.js +2 -0
- package/dist/src/foundation/skill-registration/index.js.map +1 -0
- package/dist/src/foundation/skill-registration/rules.d.ts +2 -0
- package/dist/src/foundation/skill-registration/rules.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/rules.js +2 -0
- package/dist/src/foundation/skill-registration/rules.js.map +1 -0
- package/dist/src/foundation/snapshot/git-snapshot.d.ts +40 -0
- package/dist/src/foundation/snapshot/git-snapshot.d.ts.map +1 -0
- package/dist/src/foundation/snapshot/git-snapshot.js +168 -0
- package/dist/src/foundation/snapshot/git-snapshot.js.map +1 -0
- package/dist/src/foundation/snapshot/index.d.ts +2 -0
- package/dist/src/foundation/snapshot/index.d.ts.map +1 -0
- package/dist/src/foundation/snapshot/index.js +2 -0
- package/dist/src/foundation/snapshot/index.js.map +1 -0
- package/dist/src/foundation/state-transaction/index.d.ts +2 -0
- package/dist/src/foundation/state-transaction/index.d.ts.map +1 -0
- package/dist/src/foundation/state-transaction/index.js +2 -0
- package/dist/src/foundation/state-transaction/index.js.map +1 -0
- package/dist/src/foundation/state-transaction/state-transaction.d.ts +48 -0
- package/dist/src/foundation/state-transaction/state-transaction.d.ts.map +1 -0
- package/dist/src/foundation/state-transaction/state-transaction.js +364 -0
- package/dist/src/foundation/state-transaction/state-transaction.js.map +1 -0
- package/dist/src/foundation/terminal/index.d.ts +2 -0
- package/dist/src/foundation/terminal/index.d.ts.map +1 -0
- package/dist/src/foundation/terminal/index.js +2 -0
- package/dist/src/foundation/terminal/index.js.map +1 -0
- package/dist/src/foundation/terminal/terminal.d.ts +17 -0
- package/dist/src/foundation/terminal/terminal.d.ts.map +1 -0
- package/dist/src/foundation/terminal/terminal.js +12 -0
- package/dist/src/foundation/terminal/terminal.js.map +1 -0
- package/dist/src/foundation/trace/index.d.ts +2 -0
- package/dist/src/foundation/trace/index.d.ts.map +1 -0
- package/dist/src/foundation/trace/index.js +2 -0
- package/dist/src/foundation/trace/index.js.map +1 -0
- package/dist/src/foundation/trace/trace.d.ts +12 -0
- package/dist/src/foundation/trace/trace.d.ts.map +1 -0
- package/dist/src/foundation/trace/trace.js +299 -0
- package/dist/src/foundation/trace/trace.js.map +1 -0
- package/dist/src/foundation/tui/index.d.ts +3 -0
- package/dist/src/foundation/tui/index.d.ts.map +1 -0
- package/dist/src/foundation/tui/index.js +3 -0
- package/dist/src/foundation/tui/index.js.map +1 -0
- package/dist/src/foundation/tui/table.d.ts +10 -0
- package/dist/src/foundation/tui/table.d.ts.map +1 -0
- package/dist/src/foundation/tui/table.js +91 -0
- package/dist/src/foundation/tui/table.js.map +1 -0
- package/dist/src/foundation/tui/tui.d.ts +33 -0
- package/dist/src/foundation/tui/tui.d.ts.map +1 -0
- package/dist/src/foundation/tui/tui.js +157 -0
- package/dist/src/foundation/tui/tui.js.map +1 -0
- package/dist/src/index.d.ts +17 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +16 -0
- package/dist/src/index.js.map +1 -0
- package/docs/core-concepts.md +48 -7
- package/docs/getting-started.md +60 -45
- package/docs/maintaining.md +132 -9
- package/docs/npm-package-releases.md +38 -9
- package/docs/operations.md +109 -35
- package/docs/reference.md +304 -35
- package/docs/repository-tasks.md +61 -20
- package/package.json +53 -27
- package/schema/capabilities.json +95 -0
- package/schema/capability-manifest.schema.json +139 -0
- package/schema/v1/command-report.schema.json +4 -2
- package/schema/v1/domain-message.schema.json +2 -1
- package/schema/v2/config.schema.json +14 -0
- package/schema/v2/idea-event.schema.json +121 -0
- package/skills/silvermoon/SKILL.md +204 -112
- package/skills/silvermoon/references/adoption.md +55 -24
- package/skills/silvermoon/references/events.md +296 -0
- package/bin/silvermoon.js +0 -10
- package/src/adoption.js +0 -559
- package/src/cli.js +0 -377
- package/src/config.js +0 -253
- package/src/create-idea.js +0 -497
- package/src/dialogue.js +0 -69
- package/src/domain.js +0 -592
- package/src/git-snapshot.js +0 -212
- package/src/git.js +0 -624
- package/src/guidance.js +0 -281
- package/src/idea-layout.js +0 -411
- package/src/idea-metadata.js +0 -48
- package/src/idea-query.js +0 -230
- package/src/idea-templates.js +0 -242
- package/src/ideas.js +0 -142
- package/src/index.js +0 -386
- package/src/language.js +0 -78
- package/src/layout.js +0 -38
- package/src/list-ideas.js +0 -196
- package/src/observation.js +0 -370
- package/src/repository.js +0 -82
- package/src/response.js +0 -492
- package/src/subprocess.js +0 -27
- package/src/trace.js +0 -292
- package/src/tui-table.js +0 -71
- package/src/tui.js +0 -205
- package/src/user-config.js +0 -135
- package/src/whatsnext.js +0 -726
- package/src/yaml.js +0 -66
package/src/cli.js
DELETED
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from "node:fs";
|
|
2
|
-
import {
|
|
3
|
-
Command,
|
|
4
|
-
CommanderError,
|
|
5
|
-
InvalidArgumentError,
|
|
6
|
-
Option,
|
|
7
|
-
} from "commander";
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
canonicalizeLanguageTag,
|
|
11
|
-
canonicalizeOutputLanguage,
|
|
12
|
-
} from "./language.js";
|
|
13
|
-
import { normalizeIdeaQuery } from "./idea-query.js";
|
|
14
|
-
import { listIdeas } from "./list-ideas.js";
|
|
15
|
-
import { checkRepository } from "./index.js";
|
|
16
|
-
import { createIdea } from "./create-idea.js";
|
|
17
|
-
import { renderResponse } from "./response.js";
|
|
18
|
-
import { traceAsync, withTraceFile } from "./trace.js";
|
|
19
|
-
import { whatsNext } from "./whatsnext.js";
|
|
20
|
-
|
|
21
|
-
const { version: VERSION } = JSON.parse(
|
|
22
|
-
readFileSync(new URL("../package.json", import.meta.url), "utf8"),
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
const TRACE_FILE_SUFFIX = ".trace.jsonl";
|
|
26
|
-
const AUDIENCES = ["human", "agent"];
|
|
27
|
-
|
|
28
|
-
function write(method, value) {
|
|
29
|
-
const text = value.replace(/\n$/, "");
|
|
30
|
-
if (text) method(text);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function normalizeTraceFileName(value) {
|
|
34
|
-
return value.endsWith(TRACE_FILE_SUFFIX)
|
|
35
|
-
? value
|
|
36
|
-
: `${value}${TRACE_FILE_SUFFIX}`;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function addCommonOptions(command) {
|
|
40
|
-
return command
|
|
41
|
-
.option("--json", "serialize all four command projections as JSON")
|
|
42
|
-
.addOption(
|
|
43
|
-
new Option(
|
|
44
|
-
"--audience <audience>",
|
|
45
|
-
"select human TUI or agent Markdown output (default: human)",
|
|
46
|
-
)
|
|
47
|
-
.choices(AUDIENCES)
|
|
48
|
-
.conflicts("json"),
|
|
49
|
-
)
|
|
50
|
-
.option(
|
|
51
|
-
"--trace <file.trace.jsonl>",
|
|
52
|
-
"write domain and timing events as JSONL (suffix is appended when omitted)",
|
|
53
|
-
normalizeTraceFileName,
|
|
54
|
-
)
|
|
55
|
-
.option("-r, --root <path>", "repository root", process.cwd());
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function selectOutputRenderer({
|
|
59
|
-
audience = "human",
|
|
60
|
-
json = false,
|
|
61
|
-
stdinIsTTY = false,
|
|
62
|
-
stdoutIsTTY = false,
|
|
63
|
-
}) {
|
|
64
|
-
if (json) return "json";
|
|
65
|
-
if (audience === "human" && stdinIsTTY && stdoutIsTTY) return "tui";
|
|
66
|
-
return "markdown";
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
async function defaultTuiRenderer(content, terminal) {
|
|
70
|
-
const { renderTuiMarkdown } = await import("./tui.js");
|
|
71
|
-
await renderTuiMarkdown(content, terminal);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export async function render(
|
|
75
|
-
report,
|
|
76
|
-
{ audience = "human", json = false } = {},
|
|
77
|
-
io = console,
|
|
78
|
-
{
|
|
79
|
-
renderTui = defaultTuiRenderer,
|
|
80
|
-
terminal = { stdin: process.stdin, stdout: process.stdout },
|
|
81
|
-
} = {},
|
|
82
|
-
) {
|
|
83
|
-
const renderer = selectOutputRenderer({
|
|
84
|
-
audience,
|
|
85
|
-
json,
|
|
86
|
-
stdinIsTTY: terminal.stdin.isTTY === true,
|
|
87
|
-
stdoutIsTTY: terminal.stdout.isTTY === true,
|
|
88
|
-
});
|
|
89
|
-
if (renderer === "json") {
|
|
90
|
-
io.log(JSON.stringify(report, null, 2));
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const markdown = renderResponse(report.response);
|
|
95
|
-
if (renderer === "tui") {
|
|
96
|
-
await renderTui(markdown, terminal);
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
io.log(markdown);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function outputRenderer(options, runtime) {
|
|
103
|
-
const terminal = runtime.terminal ?? {
|
|
104
|
-
stdin: process.stdin,
|
|
105
|
-
stdout: process.stdout,
|
|
106
|
-
};
|
|
107
|
-
return selectOutputRenderer({
|
|
108
|
-
audience: options.audience,
|
|
109
|
-
json: options.json,
|
|
110
|
-
stdinIsTTY: terminal.stdin.isTTY === true,
|
|
111
|
-
stdoutIsTTY: terminal.stdout.isTTY === true,
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function bootstrapDuration(runtime) {
|
|
116
|
-
if (typeof runtime.bootstrapStartedAt !== "bigint") return {};
|
|
117
|
-
const elapsed = process.hrtime.bigint() - runtime.bootstrapStartedAt;
|
|
118
|
-
return {
|
|
119
|
-
bootstrapDurationMs: Math.round(Number(elapsed) / 1_000) / 1_000,
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
async function runCommand({
|
|
124
|
-
attributes,
|
|
125
|
-
execute,
|
|
126
|
-
name,
|
|
127
|
-
options,
|
|
128
|
-
}, io, runtime) {
|
|
129
|
-
const renderer = outputRenderer(options, runtime);
|
|
130
|
-
const traceAttributes = {
|
|
131
|
-
...attributes,
|
|
132
|
-
outputRenderer: renderer,
|
|
133
|
-
...bootstrapDuration(runtime),
|
|
134
|
-
};
|
|
135
|
-
if (renderer === "tui") {
|
|
136
|
-
const report = await withTraceFile(
|
|
137
|
-
options.trace,
|
|
138
|
-
name,
|
|
139
|
-
traceAttributes,
|
|
140
|
-
execute,
|
|
141
|
-
);
|
|
142
|
-
await render(report, options, io, runtime);
|
|
143
|
-
return report;
|
|
144
|
-
}
|
|
145
|
-
return withTraceFile(
|
|
146
|
-
options.trace,
|
|
147
|
-
name,
|
|
148
|
-
traceAttributes,
|
|
149
|
-
async () => {
|
|
150
|
-
const report = await execute();
|
|
151
|
-
await traceAsync(
|
|
152
|
-
"output.render",
|
|
153
|
-
{ renderer },
|
|
154
|
-
() => render(report, options, io, runtime),
|
|
155
|
-
);
|
|
156
|
-
return report;
|
|
157
|
-
},
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
function contentLanguageArgument(value) {
|
|
162
|
-
try {
|
|
163
|
-
return canonicalizeLanguageTag(value);
|
|
164
|
-
} catch (caught) {
|
|
165
|
-
throw new InvalidArgumentError(caught.message);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
function outputLanguageArgument(value) {
|
|
170
|
-
try {
|
|
171
|
-
return canonicalizeOutputLanguage(value);
|
|
172
|
-
} catch (caught) {
|
|
173
|
-
throw new InvalidArgumentError(caught.message);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
function collectOption(value, previous = []) {
|
|
178
|
-
return [...previous, value];
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export function createProgram(io = console, runtime = {}) {
|
|
182
|
-
const program = new Command();
|
|
183
|
-
program
|
|
184
|
-
.name("silvermoon")
|
|
185
|
-
.description("Derive and validate repository-owned idea state.")
|
|
186
|
-
.version(VERSION, "-v, --version", "display the installed version")
|
|
187
|
-
.addHelpCommand(false)
|
|
188
|
-
.showHelpAfterError("(run with --help for usage)")
|
|
189
|
-
.showSuggestionAfterError()
|
|
190
|
-
.configureHelp({ sortOptions: true, sortSubcommands: true })
|
|
191
|
-
.configureOutput({
|
|
192
|
-
outputError: (value, output) => output(value),
|
|
193
|
-
writeErr: (value) => write(io.error, value),
|
|
194
|
-
writeOut: (value) => write(io.log, value),
|
|
195
|
-
})
|
|
196
|
-
.exitOverride()
|
|
197
|
-
.addHelpText("after", `
|
|
198
|
-
Examples:
|
|
199
|
-
$ silvermoon list-ideas
|
|
200
|
-
$ silvermoon list-ideas --language zh-CN
|
|
201
|
-
$ silvermoon list-ideas --state completed --sort oldest --limit 10
|
|
202
|
-
$ silvermoon whats-next
|
|
203
|
-
$ silvermoon whats-next <idea>
|
|
204
|
-
$ silvermoon whats-next <idea> --language zh-CN
|
|
205
|
-
$ silvermoon whats-next <idea> --audience agent
|
|
206
|
-
$ silvermoon whats-next <idea> --json
|
|
207
|
-
$ silvermoon whats-next <idea> --trace whats-next.trace.jsonl
|
|
208
|
-
$ silvermoon create-idea
|
|
209
|
-
$ silvermoon check
|
|
210
|
-
$ silvermoon check --language en-US
|
|
211
|
-
$ silvermoon check --worktree
|
|
212
|
-
$ silvermoon check --staged
|
|
213
|
-
$ silvermoon check --commit HEAD
|
|
214
|
-
$ silvermoon check --remote`);
|
|
215
|
-
|
|
216
|
-
addCommonOptions(
|
|
217
|
-
program
|
|
218
|
-
.command("list-ideas")
|
|
219
|
-
.description("query the current local idea inventory")
|
|
220
|
-
.option(
|
|
221
|
-
"--language <tag>",
|
|
222
|
-
"use a built-in output language (en, en-US, zh, or zh-CN) for this invocation",
|
|
223
|
-
outputLanguageArgument,
|
|
224
|
-
)
|
|
225
|
-
.option(
|
|
226
|
-
"--state <state>",
|
|
227
|
-
"include a lifecycle state or active (repeatable)",
|
|
228
|
-
collectOption,
|
|
229
|
-
)
|
|
230
|
-
.option("--all", "include all five lifecycle states")
|
|
231
|
-
.option("--query <text>", "match ID, alias, or title literally")
|
|
232
|
-
.option(
|
|
233
|
-
"--created-since <timestamp>",
|
|
234
|
-
"include ideas created at or after an RFC 3339 timestamp",
|
|
235
|
-
)
|
|
236
|
-
.option(
|
|
237
|
-
"--created-before <timestamp>",
|
|
238
|
-
"include ideas created before an RFC 3339 timestamp",
|
|
239
|
-
)
|
|
240
|
-
.option("--sort <order>", "sort by creation time: newest or oldest")
|
|
241
|
-
.option("--limit <count>", "return at most this positive number of ideas"),
|
|
242
|
-
).action(async (options) => {
|
|
243
|
-
const query = normalizeIdeaQuery({
|
|
244
|
-
all: options.all,
|
|
245
|
-
createdBefore: options.createdBefore,
|
|
246
|
-
createdSince: options.createdSince,
|
|
247
|
-
limit: options.limit,
|
|
248
|
-
query: options.query,
|
|
249
|
-
sort: options.sort,
|
|
250
|
-
states: options.state,
|
|
251
|
-
});
|
|
252
|
-
const report = await runCommand({
|
|
253
|
-
name: "command.list-ideas",
|
|
254
|
-
options,
|
|
255
|
-
attributes: {
|
|
256
|
-
command: "list-ideas",
|
|
257
|
-
hasQuery: query.query !== null,
|
|
258
|
-
outputLanguage: options.language ?? null,
|
|
259
|
-
stateCount: query.states.length,
|
|
260
|
-
},
|
|
261
|
-
execute: () => listIdeas({
|
|
262
|
-
...query,
|
|
263
|
-
language: options.language,
|
|
264
|
-
root: options.root,
|
|
265
|
-
}),
|
|
266
|
-
}, io, runtime);
|
|
267
|
-
program.setOptionValue(
|
|
268
|
-
"resultCode",
|
|
269
|
-
report.observation.state === "ideas-listed" ? 0 : 1,
|
|
270
|
-
);
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
addCommonOptions(
|
|
274
|
-
program
|
|
275
|
-
.command("whats-next [idea]")
|
|
276
|
-
.description("observe project, repository, and idea readiness")
|
|
277
|
-
.option(
|
|
278
|
-
"--language <tag>",
|
|
279
|
-
"use a built-in output language (en, en-US, zh, or zh-CN) for this invocation",
|
|
280
|
-
outputLanguageArgument,
|
|
281
|
-
),
|
|
282
|
-
).action(async (idea, options) => {
|
|
283
|
-
const report = await runCommand({
|
|
284
|
-
name: "command.whats-next",
|
|
285
|
-
options,
|
|
286
|
-
attributes: {
|
|
287
|
-
command: "whats-next",
|
|
288
|
-
outputLanguage: options.language ?? null,
|
|
289
|
-
},
|
|
290
|
-
execute: () => whatsNext({
|
|
291
|
-
idea,
|
|
292
|
-
language: options.language,
|
|
293
|
-
root: options.root,
|
|
294
|
-
}),
|
|
295
|
-
}, io, runtime);
|
|
296
|
-
program.setOptionValue("resultCode", 0);
|
|
297
|
-
});
|
|
298
|
-
|
|
299
|
-
addCommonOptions(
|
|
300
|
-
program
|
|
301
|
-
.command("create-idea")
|
|
302
|
-
.description("create one structured idea scaffold after readiness checks")
|
|
303
|
-
.option(
|
|
304
|
-
"--language <tag>",
|
|
305
|
-
"persist a canonical content language override on the new idea",
|
|
306
|
-
contentLanguageArgument,
|
|
307
|
-
),
|
|
308
|
-
).action(async (options) => {
|
|
309
|
-
const report = await runCommand({
|
|
310
|
-
name: "command.create-idea",
|
|
311
|
-
options,
|
|
312
|
-
attributes: {
|
|
313
|
-
command: "create-idea",
|
|
314
|
-
contentLanguage: options.language ?? null,
|
|
315
|
-
},
|
|
316
|
-
execute: () => createIdea({
|
|
317
|
-
language: options.language,
|
|
318
|
-
root: options.root,
|
|
319
|
-
}),
|
|
320
|
-
}, io, runtime);
|
|
321
|
-
program.setOptionValue("resultCode", 0);
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
addCommonOptions(
|
|
325
|
-
program
|
|
326
|
-
.command("check")
|
|
327
|
-
.description("validate Silvermoon configuration and idea state")
|
|
328
|
-
.option(
|
|
329
|
-
"--language <tag>",
|
|
330
|
-
"use a built-in output language (en, en-US, zh, or zh-CN) for this invocation",
|
|
331
|
-
outputLanguageArgument,
|
|
332
|
-
)
|
|
333
|
-
.addOption(new Option("--remote", "fetch and validate the configured primary tip").conflicts(["commit", "staged", "worktree"]))
|
|
334
|
-
.addOption(new Option("--commit <revision>", "validate one local commit snapshot").conflicts(["remote", "staged", "worktree"]))
|
|
335
|
-
.addOption(new Option("--staged", "validate the index snapshot").conflicts(["remote", "commit", "worktree"]))
|
|
336
|
-
.addOption(new Option("--worktree", "validate HEAD plus staged, unstaged, and untracked changes").conflicts(["remote", "commit", "staged"])),
|
|
337
|
-
).action(async (options) => {
|
|
338
|
-
const report = await runCommand({
|
|
339
|
-
name: "command.check",
|
|
340
|
-
options,
|
|
341
|
-
attributes: {
|
|
342
|
-
command: "check",
|
|
343
|
-
outputLanguage: options.language ?? null,
|
|
344
|
-
},
|
|
345
|
-
execute: () => checkRepository({
|
|
346
|
-
commit: options.commit,
|
|
347
|
-
language: options.language,
|
|
348
|
-
remote: options.remote,
|
|
349
|
-
root: options.root,
|
|
350
|
-
staged: options.staged,
|
|
351
|
-
worktree: options.worktree,
|
|
352
|
-
}),
|
|
353
|
-
}, io, runtime);
|
|
354
|
-
program.setOptionValue(
|
|
355
|
-
"resultCode",
|
|
356
|
-
report.observation.state === "project-ready" ? 0 : 1,
|
|
357
|
-
);
|
|
358
|
-
});
|
|
359
|
-
|
|
360
|
-
return program;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
export async function runCli(args, io = console, runtime = {}) {
|
|
364
|
-
const program = createProgram(io, runtime);
|
|
365
|
-
try {
|
|
366
|
-
await program.parseAsync(args.length === 0 ? ["--help"] : args, { from: "user" });
|
|
367
|
-
} catch (caught) {
|
|
368
|
-
if (caught instanceof CommanderError) return caught.exitCode === 0 ? 0 : 2;
|
|
369
|
-
if (caught.exitCode === 2) {
|
|
370
|
-
io.error(`ERROR usage: ${caught.message}`);
|
|
371
|
-
return 2;
|
|
372
|
-
}
|
|
373
|
-
io.error(`ERROR command.failed: ${caught.message}`);
|
|
374
|
-
return 1;
|
|
375
|
-
}
|
|
376
|
-
return program.getOptionValue("resultCode") ?? 0;
|
|
377
|
-
}
|
package/src/config.js
DELETED
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { lstat, readFile } from "node:fs/promises";
|
|
2
|
-
import { resolve } from "node:path";
|
|
3
|
-
|
|
4
|
-
import { inspectTreeLineage, readGitBlobs } from "./git.js";
|
|
5
|
-
import { CONFIG_PATH, METADATA_ROOT } from "./layout.js";
|
|
6
|
-
import { isCanonicalLanguageTag } from "./language.js";
|
|
7
|
-
import { validBranchName, validRepository } from "./repository.js";
|
|
8
|
-
import { parseStrictYaml, stringifyCanonicalYaml } from "./yaml.js";
|
|
9
|
-
|
|
10
|
-
export const DEFAULT_CONFIG_NAME = CONFIG_PATH;
|
|
11
|
-
|
|
12
|
-
const CONFIG_KEYS = [
|
|
13
|
-
"version",
|
|
14
|
-
"primaryRepository",
|
|
15
|
-
"primaryBranch",
|
|
16
|
-
"preferredLanguage",
|
|
17
|
-
];
|
|
18
|
-
const DEFAULT_FILESYSTEM = { lstat, readFile };
|
|
19
|
-
|
|
20
|
-
function configDiagnostic(code, path, message, remediation) {
|
|
21
|
-
return { code, level: "error", path, message, remediation };
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
async function regularRepositoryFile(root, filesystem) {
|
|
25
|
-
const metadataRoot = resolve(root, METADATA_ROOT);
|
|
26
|
-
const absolutePath = resolve(root, CONFIG_PATH);
|
|
27
|
-
try {
|
|
28
|
-
const directoryMetadata = await filesystem.lstat(metadataRoot);
|
|
29
|
-
if (!directoryMetadata.isDirectory() || directoryMetadata.isSymbolicLink()) {
|
|
30
|
-
throw Object.assign(new Error(`${METADATA_ROOT} must be a regular directory`), {
|
|
31
|
-
code: "EINVAL",
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
const fileMetadata = await filesystem.lstat(absolutePath);
|
|
35
|
-
if (!fileMetadata.isFile() || fileMetadata.isSymbolicLink()) {
|
|
36
|
-
throw Object.assign(new Error("Configuration must be a regular file"), {
|
|
37
|
-
code: "EINVAL",
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
absolutePath,
|
|
42
|
-
source: await filesystem.readFile(absolutePath, "utf8"),
|
|
43
|
-
};
|
|
44
|
-
} catch (error) {
|
|
45
|
-
const missing = error.code === "ENOENT";
|
|
46
|
-
return {
|
|
47
|
-
absolutePath,
|
|
48
|
-
diagnostic: configDiagnostic(
|
|
49
|
-
missing ? "config.missing" : "config.invalid-file",
|
|
50
|
-
CONFIG_PATH,
|
|
51
|
-
missing
|
|
52
|
-
? `Missing Silvermoon configuration: ${CONFIG_PATH}`
|
|
53
|
-
: `Cannot read Silvermoon configuration: ${error.message}`,
|
|
54
|
-
missing
|
|
55
|
-
? `Create ${CONFIG_PATH}.`
|
|
56
|
-
: `Replace ${METADATA_ROOT} and ${CONFIG_PATH} with repository-owned regular paths.`,
|
|
57
|
-
),
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function validPrimaryBranch(_root, value) {
|
|
63
|
-
return validBranchName(value);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function serializeConfig(config) {
|
|
67
|
-
const canonical = {
|
|
68
|
-
version: config.version,
|
|
69
|
-
primaryRepository: config.primaryRepository,
|
|
70
|
-
primaryBranch: config.primaryBranch,
|
|
71
|
-
};
|
|
72
|
-
if (config.preferredLanguage !== undefined) {
|
|
73
|
-
canonical.preferredLanguage = config.preferredLanguage;
|
|
74
|
-
}
|
|
75
|
-
return stringifyCanonicalYaml(canonical);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function parseConfigSource({ absolutePath, root, source }) {
|
|
79
|
-
const normalizedSource = source.replaceAll("\r\n", "\n");
|
|
80
|
-
let value;
|
|
81
|
-
try {
|
|
82
|
-
value = parseStrictYaml(normalizedSource);
|
|
83
|
-
} catch (error) {
|
|
84
|
-
return {
|
|
85
|
-
config: null,
|
|
86
|
-
configPath: loaded.absolutePath,
|
|
87
|
-
diagnostics: [configDiagnostic(
|
|
88
|
-
"config.invalid-yaml",
|
|
89
|
-
CONFIG_PATH,
|
|
90
|
-
`Cannot parse Silvermoon configuration: ${error.message}`,
|
|
91
|
-
`Use the strict YAML contract in ${CONFIG_PATH}.`,
|
|
92
|
-
)],
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (value === null || Array.isArray(value) || typeof value !== "object") {
|
|
97
|
-
return {
|
|
98
|
-
config: null,
|
|
99
|
-
configPath: loaded.absolutePath,
|
|
100
|
-
diagnostics: [configDiagnostic(
|
|
101
|
-
"config.invalid-type",
|
|
102
|
-
CONFIG_PATH,
|
|
103
|
-
"The Silvermoon configuration must be a YAML mapping.",
|
|
104
|
-
`Replace ${CONFIG_PATH} with the documented mapping.`,
|
|
105
|
-
)],
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const diagnostics = [];
|
|
110
|
-
for (const key of Object.keys(value).sort()) {
|
|
111
|
-
if (!CONFIG_KEYS.includes(key)) {
|
|
112
|
-
diagnostics.push(configDiagnostic(
|
|
113
|
-
"config.unknown-key",
|
|
114
|
-
`${CONFIG_PATH}#${key}`,
|
|
115
|
-
`Unknown Silvermoon configuration key: ${key}`,
|
|
116
|
-
`Remove ${key}.`,
|
|
117
|
-
));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
for (const [key, code] of [
|
|
121
|
-
["version", "config.missing-version"],
|
|
122
|
-
["primaryRepository", "config.missing-primary-repository"],
|
|
123
|
-
["primaryBranch", "config.missing-primary-branch"],
|
|
124
|
-
]) {
|
|
125
|
-
if (!Object.hasOwn(value, key)) {
|
|
126
|
-
diagnostics.push(configDiagnostic(
|
|
127
|
-
code,
|
|
128
|
-
`${CONFIG_PATH}#${key}`,
|
|
129
|
-
`Missing required key: ${key}`,
|
|
130
|
-
`Add ${key} to ${CONFIG_PATH}.`,
|
|
131
|
-
));
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
if (Object.hasOwn(value, "version") && value.version !== 1) {
|
|
135
|
-
diagnostics.push(configDiagnostic(
|
|
136
|
-
"config.unsupported-version",
|
|
137
|
-
`${CONFIG_PATH}#version`,
|
|
138
|
-
`Unsupported Silvermoon version: ${String(value.version)}`,
|
|
139
|
-
"Use version: 1.",
|
|
140
|
-
));
|
|
141
|
-
}
|
|
142
|
-
if (
|
|
143
|
-
Object.hasOwn(value, "primaryRepository") &&
|
|
144
|
-
!validRepository(value.primaryRepository)
|
|
145
|
-
) {
|
|
146
|
-
diagnostics.push(configDiagnostic(
|
|
147
|
-
"config.invalid-primary-repository",
|
|
148
|
-
`${CONFIG_PATH}#primaryRepository`,
|
|
149
|
-
"primaryRepository must be a canonical credential-free HTTPS repository URL.",
|
|
150
|
-
"Use a canonical HTTPS repository URL without credentials, query, fragment, or trailing slash.",
|
|
151
|
-
));
|
|
152
|
-
}
|
|
153
|
-
if (
|
|
154
|
-
Object.hasOwn(value, "primaryBranch") &&
|
|
155
|
-
!validPrimaryBranch(root, value.primaryBranch)
|
|
156
|
-
) {
|
|
157
|
-
diagnostics.push(configDiagnostic(
|
|
158
|
-
"config.invalid-primary-branch",
|
|
159
|
-
`${CONFIG_PATH}#primaryBranch`,
|
|
160
|
-
"primaryBranch must be a valid short Git branch name.",
|
|
161
|
-
"Use a branch such as main without refs/ or remote prefixes.",
|
|
162
|
-
));
|
|
163
|
-
}
|
|
164
|
-
if (
|
|
165
|
-
Object.hasOwn(value, "preferredLanguage") &&
|
|
166
|
-
!isCanonicalLanguageTag(value.preferredLanguage)
|
|
167
|
-
) {
|
|
168
|
-
diagnostics.push(configDiagnostic(
|
|
169
|
-
"config.invalid-preferred-language",
|
|
170
|
-
`${CONFIG_PATH}#preferredLanguage`,
|
|
171
|
-
"preferredLanguage must be a canonical BCP 47 language tag.",
|
|
172
|
-
"Use a canonical tag such as en or zh-CN.",
|
|
173
|
-
));
|
|
174
|
-
}
|
|
175
|
-
if (diagnostics.length === 0 && serializeConfig(value) !== normalizedSource) {
|
|
176
|
-
diagnostics.push(configDiagnostic(
|
|
177
|
-
"config.noncanonical",
|
|
178
|
-
CONFIG_PATH,
|
|
179
|
-
"The Silvermoon configuration is valid but not canonical.",
|
|
180
|
-
"Rewrite properties in version, primaryRepository, primaryBranch, preferredLanguage order with LF endings.",
|
|
181
|
-
));
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
return {
|
|
185
|
-
config: diagnostics.length === 0 ? value : null,
|
|
186
|
-
configPath: absolutePath,
|
|
187
|
-
diagnostics,
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export async function loadConfig({
|
|
192
|
-
filesystem = DEFAULT_FILESYSTEM,
|
|
193
|
-
root,
|
|
194
|
-
}) {
|
|
195
|
-
const loaded = await regularRepositoryFile(root, filesystem);
|
|
196
|
-
if (loaded.diagnostic) {
|
|
197
|
-
return {
|
|
198
|
-
config: null,
|
|
199
|
-
configPath: loaded.absolutePath,
|
|
200
|
-
diagnostics: [loaded.diagnostic],
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
return parseConfigSource({
|
|
204
|
-
absolutePath: loaded.absolutePath,
|
|
205
|
-
root,
|
|
206
|
-
source: loaded.source,
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export async function loadConfigSnapshot({ gitRoot, tree }) {
|
|
211
|
-
const absolutePath = resolve(gitRoot, CONFIG_PATH);
|
|
212
|
-
const entries = inspectTreeLineage(gitRoot, tree, CONFIG_PATH);
|
|
213
|
-
const metadataRoot = entries.find(({ name }) => name === METADATA_ROOT);
|
|
214
|
-
const config = entries.find(({ name }) => name === CONFIG_PATH);
|
|
215
|
-
if (metadataRoot === undefined || config === undefined) {
|
|
216
|
-
return {
|
|
217
|
-
config: null,
|
|
218
|
-
configPath: absolutePath,
|
|
219
|
-
diagnostics: [configDiagnostic(
|
|
220
|
-
"config.missing",
|
|
221
|
-
CONFIG_PATH,
|
|
222
|
-
`Missing Silvermoon configuration: ${CONFIG_PATH}`,
|
|
223
|
-
`Create ${CONFIG_PATH}.`,
|
|
224
|
-
)],
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
if (
|
|
228
|
-
metadataRoot.type !== "tree"
|
|
229
|
-
|| metadataRoot.mode !== "040000"
|
|
230
|
-
|| config.type !== "blob"
|
|
231
|
-
|| !["100644", "100755"].includes(config.mode)
|
|
232
|
-
) {
|
|
233
|
-
return {
|
|
234
|
-
config: null,
|
|
235
|
-
configPath: absolutePath,
|
|
236
|
-
diagnostics: [configDiagnostic(
|
|
237
|
-
"config.invalid-file",
|
|
238
|
-
CONFIG_PATH,
|
|
239
|
-
"Cannot read Silvermoon configuration: configuration paths must be regular",
|
|
240
|
-
`Replace ${METADATA_ROOT} and ${CONFIG_PATH} with repository-owned regular paths.`,
|
|
241
|
-
)],
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
const source = readGitBlobs(gitRoot, [config.object]).get(config.object);
|
|
245
|
-
if (source === undefined) {
|
|
246
|
-
throw new Error(`Cannot read Silvermoon configuration blob ${config.object}`);
|
|
247
|
-
}
|
|
248
|
-
return parseConfigSource({
|
|
249
|
-
absolutePath,
|
|
250
|
-
root: gitRoot,
|
|
251
|
-
source: source.toString("utf8"),
|
|
252
|
-
});
|
|
253
|
-
}
|