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,518 @@
|
|
|
1
|
+
import { diagnosticInstruction, diagnosticProblem, resolvedConfiguration, summarizeIdeas } from "../../foundation/report/index.js";
|
|
2
|
+
import { localize } from "../../foundation/language/index.js";
|
|
3
|
+
import { inspectAllGuidance } from "../../foundation/guidance/index.js";
|
|
4
|
+
import { observeDevice } from "./observe-device.js";
|
|
5
|
+
import { observeIdea } from "./observe-idea.js";
|
|
6
|
+
import { observeProject } from "./observe-project.js";
|
|
7
|
+
import { resolveLanguage, resolveOutputLanguage } from "../../foundation/language/index.js";
|
|
8
|
+
import { projectObservation } from "../../foundation/report/index.js";
|
|
9
|
+
import { errorMessage, traceBusinessAsync } from "./business-types.js";
|
|
10
|
+
import { inspectProjectSchemas, } from "../../foundation/schema-capability/index.js";
|
|
11
|
+
function requireFinding(value) {
|
|
12
|
+
if (value.problem === undefined) {
|
|
13
|
+
throw new TypeError("Project inspection returned a finding without a problem.");
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
priority: value.priority,
|
|
17
|
+
problem: value.problem,
|
|
18
|
+
instruction: value.instruction,
|
|
19
|
+
...(value.sourceDiagnostic === undefined
|
|
20
|
+
? {}
|
|
21
|
+
: { sourceDiagnostic: value.sourceDiagnostic }),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function requireSnapshotFilesystem(filesystem) {
|
|
25
|
+
if (filesystem === undefined)
|
|
26
|
+
return undefined;
|
|
27
|
+
if (typeof filesystem.snapshotEntry !== "function"
|
|
28
|
+
|| typeof filesystem.snapshotEntries !== "function"
|
|
29
|
+
|| typeof filesystem.snapshotFile !== "function") {
|
|
30
|
+
throw new TypeError("Snapshot inspection requires snapshot filesystem capabilities.");
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
...filesystem,
|
|
34
|
+
snapshotEntry: filesystem.snapshotEntry,
|
|
35
|
+
snapshotEntries: filesystem.snapshotEntries,
|
|
36
|
+
snapshotFile: filesystem.snapshotFile,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function diagnosticsFrom(value) {
|
|
40
|
+
if (!value || typeof value !== "object" || !("diagnostics" in value)
|
|
41
|
+
|| !Array.isArray(value.diagnostics)) {
|
|
42
|
+
throw new TypeError("Guidance inspection returned an invalid diagnostic result.");
|
|
43
|
+
}
|
|
44
|
+
return value.diagnostics.map((diagnostic) => {
|
|
45
|
+
if (!diagnostic || typeof diagnostic !== "object"
|
|
46
|
+
|| !("code" in diagnostic) || typeof diagnostic.code !== "string"
|
|
47
|
+
|| !("level" in diagnostic) || typeof diagnostic.level !== "string"
|
|
48
|
+
|| !("message" in diagnostic) || typeof diagnostic.message !== "string"
|
|
49
|
+
|| !("remediation" in diagnostic) || typeof diagnostic.remediation !== "string") {
|
|
50
|
+
throw new TypeError("Guidance inspection returned an invalid diagnostic.");
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
code: diagnostic.code,
|
|
54
|
+
level: diagnostic.level,
|
|
55
|
+
message: diagnostic.message,
|
|
56
|
+
remediation: diagnostic.remediation,
|
|
57
|
+
...("path" in diagnostic && typeof diagnostic.path === "string"
|
|
58
|
+
? { path: diagnostic.path }
|
|
59
|
+
: {}),
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function localizeFinding(finding, language) {
|
|
64
|
+
if (finding.sourceDiagnostic) {
|
|
65
|
+
return {
|
|
66
|
+
priority: finding.priority,
|
|
67
|
+
problem: diagnosticProblem(finding.sourceDiagnostic, language),
|
|
68
|
+
instruction: diagnosticInstruction(finding.sourceDiagnostic, language),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
priority: finding.priority,
|
|
73
|
+
problem: {
|
|
74
|
+
type: finding.problem.type,
|
|
75
|
+
summary: localize(language, finding.problem.summary, `Silvermoon 发现 ${finding.problem.type}:${finding.problem.summary}`),
|
|
76
|
+
},
|
|
77
|
+
instruction: localize(language, finding.instruction, `处理 ${finding.problem.type}:${finding.instruction}`),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function localizeDeviceAdvisory(device, language) {
|
|
81
|
+
if (device === undefined || !language.toLowerCase().startsWith("zh")) {
|
|
82
|
+
return device;
|
|
83
|
+
}
|
|
84
|
+
const skillRemediation = device.skill.remediation === undefined
|
|
85
|
+
? undefined
|
|
86
|
+
: device.skill.status === "missing"
|
|
87
|
+
? `在个人级 skill discovery 路径中,将 ${device.skill.expectedRoot} 注册为链接。`
|
|
88
|
+
: device.skill.status === "mismatched"
|
|
89
|
+
? `把报告的个人级 skill 注册替换为指向 ${device.skill.expectedRoot} 的链接。`
|
|
90
|
+
: `修复 Silvermoon 安装,确保 ${device.skill.expectedRoot} 包含可读的 SKILL.md。`;
|
|
91
|
+
const updateSummary = device.update.status === "available"
|
|
92
|
+
? `将全局 Silvermoon runtime 升级到 ${device.update.latestVersion}。`
|
|
93
|
+
: device.update.status === "source-checkout"
|
|
94
|
+
? "当前使用源码 checkout 开发 runtime;npm latest 状态只适用于全局安装。"
|
|
95
|
+
: device.update.status === "managed-by-host"
|
|
96
|
+
? "Silvermoon runtime 更新由嵌入它的 host 管理。"
|
|
97
|
+
: device.update.summary === undefined
|
|
98
|
+
? undefined
|
|
99
|
+
: device.update.status === "unavailable"
|
|
100
|
+
? `无法确认最新 Silvermoon runtime:${device.update.summary}`
|
|
101
|
+
: `Silvermoon runtime freshness cache 提示:${device.update.summary}`;
|
|
102
|
+
return {
|
|
103
|
+
runtime: {
|
|
104
|
+
...device.runtime,
|
|
105
|
+
...(device.runtime.summary === undefined
|
|
106
|
+
? {}
|
|
107
|
+
: { summary: `无法完整检查 Silvermoon runtime:${device.runtime.summary}` }),
|
|
108
|
+
},
|
|
109
|
+
skill: {
|
|
110
|
+
...device.skill,
|
|
111
|
+
...(device.skill.summary === undefined
|
|
112
|
+
? {}
|
|
113
|
+
: { summary: `无法完整检查个人级 Silvermoon skill:${device.skill.summary}` }),
|
|
114
|
+
...(skillRemediation === undefined
|
|
115
|
+
? {}
|
|
116
|
+
: { remediation: skillRemediation }),
|
|
117
|
+
},
|
|
118
|
+
update: {
|
|
119
|
+
...device.update,
|
|
120
|
+
...(updateSummary === undefined ? {} : { summary: updateSummary }),
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function futureSchemaDiagnostic(file, device) {
|
|
125
|
+
const update = device?.update;
|
|
126
|
+
if (update?.status === "available") {
|
|
127
|
+
return {
|
|
128
|
+
code: "schema.runtime-update-available",
|
|
129
|
+
level: "error",
|
|
130
|
+
path: file.path,
|
|
131
|
+
message: `Schema version ${String(file.schemaVersion)} is newer than this runtime can read; Silvermoon ${update.latestVersion ?? "latest"} is available.`,
|
|
132
|
+
remediation: `Upgrade the global Silvermoon runtime, then prepare ${file.path} again.`,
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
if (update?.status === "current") {
|
|
136
|
+
return {
|
|
137
|
+
code: "schema.runtime-latest-unsupported",
|
|
138
|
+
level: "error",
|
|
139
|
+
path: file.path,
|
|
140
|
+
message: `Schema version ${String(file.schemaVersion)} is newer than the confirmed latest Silvermoon runtime can read.`,
|
|
141
|
+
remediation: "Do not modify this project with the current runtime; obtain a runtime that declares this schema capability.",
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
if (update?.status === "unavailable") {
|
|
145
|
+
return {
|
|
146
|
+
code: "schema.runtime-freshness-unavailable",
|
|
147
|
+
level: "error",
|
|
148
|
+
path: file.path,
|
|
149
|
+
message: `Schema version ${String(file.schemaVersion)} is newer than this runtime can read, and npm latest could not be confirmed.`,
|
|
150
|
+
remediation: "Restore registry access, confirm the latest global Silvermoon runtime, and retry without modifying project metadata.",
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
code: "schema.runtime-upgrade-required",
|
|
155
|
+
level: "error",
|
|
156
|
+
path: file.path,
|
|
157
|
+
message: `Schema version ${String(file.schemaVersion)} is newer than this runtime can read.`,
|
|
158
|
+
remediation: update?.status === "source-checkout"
|
|
159
|
+
? "Update this Silvermoon source checkout to a revision that declares the required schema capability."
|
|
160
|
+
: update?.status === "managed-by-host"
|
|
161
|
+
? "Update the host-provided Silvermoon runtime before modifying this project."
|
|
162
|
+
: "Upgrade the Silvermoon runtime before modifying this project.",
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
function projectSchemaDiagnostics({ device, projectOnly, requireCurrentSchemas, schemas, }) {
|
|
166
|
+
if (schemas === undefined)
|
|
167
|
+
return [];
|
|
168
|
+
const diagnostics = [];
|
|
169
|
+
for (const file of schemas.files) {
|
|
170
|
+
if (file.validity === "invalid") {
|
|
171
|
+
diagnostics.push({
|
|
172
|
+
code: "schema.invalid",
|
|
173
|
+
level: "error",
|
|
174
|
+
path: file.path,
|
|
175
|
+
message: file.message
|
|
176
|
+
?? `The ${file.family} schema declaration is invalid.`,
|
|
177
|
+
remediation: `Repair ${file.path} to satisfy ${file.family} schema version ${String(file.schemaVersion ?? "unknown")}.`,
|
|
178
|
+
});
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
if (file.validity === "unsupported") {
|
|
182
|
+
diagnostics.push(futureSchemaDiagnostic(file, device));
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
if (projectOnly
|
|
186
|
+
|| !requireCurrentSchemas
|
|
187
|
+
|| file.readiness === "current")
|
|
188
|
+
continue;
|
|
189
|
+
if (file.readiness === "migration-required") {
|
|
190
|
+
const migration = file.migrationPath?.[0];
|
|
191
|
+
const command = migration === undefined
|
|
192
|
+
? undefined
|
|
193
|
+
: device?.runtime.source === "source-checkout"
|
|
194
|
+
? `node ${migration.sourceEntrypoint}`
|
|
195
|
+
: device?.runtime.source === "host"
|
|
196
|
+
? `the host-managed ${migration.id} migration`
|
|
197
|
+
: migration.executable;
|
|
198
|
+
diagnostics.push({
|
|
199
|
+
code: "schema.migration-required",
|
|
200
|
+
level: "error",
|
|
201
|
+
path: file.path,
|
|
202
|
+
message: `${file.family} schema version ${String(file.schemaVersion)} is valid but the current write target is version ${file.targetVersion}.`,
|
|
203
|
+
remediation: command === undefined
|
|
204
|
+
? `Migrate ${file.path} before continuing.`
|
|
205
|
+
: `Run ${command} to plan the migration before continuing.`,
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
else if (file.readiness === "migration-unavailable") {
|
|
209
|
+
diagnostics.push({
|
|
210
|
+
code: "schema.migration-unavailable",
|
|
211
|
+
level: "error",
|
|
212
|
+
path: file.path,
|
|
213
|
+
message: file.message
|
|
214
|
+
?? `No migration reaches ${file.family} schema version ${file.targetVersion}.`,
|
|
215
|
+
remediation: "Use a Silvermoon runtime that provides a migration path; do not modify the file manually.",
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return diagnostics;
|
|
220
|
+
}
|
|
221
|
+
function schemaOwnsConfigDiagnostic(_diagnostic, schemas) {
|
|
222
|
+
return schemas?.files.some(({ family, validity }) => family === "project-config" && validity !== "valid") === true;
|
|
223
|
+
}
|
|
224
|
+
function schemaOwnsLayoutDiagnostic(diagnostic, schemas, projectOnly) {
|
|
225
|
+
if (schemas === undefined || diagnostic.path === undefined)
|
|
226
|
+
return false;
|
|
227
|
+
if (diagnostic.code === "idea.events.format-invalid"
|
|
228
|
+
&& schemas.files.some(({ family, path, readiness }) => family === "idea-state"
|
|
229
|
+
&& path.endsWith("/status.yaml")
|
|
230
|
+
&& readiness !== "current")) {
|
|
231
|
+
return true;
|
|
232
|
+
}
|
|
233
|
+
const path = diagnostic.path.split("#", 1)[0] ?? diagnostic.path;
|
|
234
|
+
for (const file of schemas.files) {
|
|
235
|
+
if (file.family !== "idea-state")
|
|
236
|
+
continue;
|
|
237
|
+
const ideaRoot = file.path.slice(0, file.path.lastIndexOf("/"));
|
|
238
|
+
if (!path.startsWith(`${ideaRoot}/`))
|
|
239
|
+
continue;
|
|
240
|
+
if (file.validity !== "valid"
|
|
241
|
+
&& (diagnostic.code === "idea.status.invalid"
|
|
242
|
+
|| diagnostic.code === "idea.status.invalid-file"
|
|
243
|
+
|| diagnostic.code === "idea.status.unexpected-file")) {
|
|
244
|
+
return true;
|
|
245
|
+
}
|
|
246
|
+
if (!projectOnly
|
|
247
|
+
&& file.readiness === "migration-required"
|
|
248
|
+
&& (diagnostic.code === "idea.status.invalid-file"
|
|
249
|
+
|| diagnostic.code === "idea.status.unexpected-file")) {
|
|
250
|
+
return true;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
async function observeSnapshotInternal({ allowMissingIdeas = false, contentRoot, filesystem, gitRoot, ideaLanguage, deviceObserver = observeDevice, outputLanguage: requestedOutputLanguage, projectOnly = false, requireCurrentSchemas = true, root, snapshotTree, userHome, version, }) {
|
|
256
|
+
const outputLanguageOverride = requestedOutputLanguage === undefined
|
|
257
|
+
? undefined
|
|
258
|
+
: resolveOutputLanguage({ override: requestedOutputLanguage }).tag;
|
|
259
|
+
const adoption = await traceBusinessAsync("project.observe", {}, () => observeProject({
|
|
260
|
+
contentRoot,
|
|
261
|
+
filesystem,
|
|
262
|
+
gitRoot,
|
|
263
|
+
root,
|
|
264
|
+
}));
|
|
265
|
+
let schemas;
|
|
266
|
+
let schemaInspectionDiagnostic;
|
|
267
|
+
try {
|
|
268
|
+
schemas = await traceBusinessAsync("schema.inspect", {}, () => inspectProjectSchemas({
|
|
269
|
+
...(filesystem === undefined ? {} : { filesystem }),
|
|
270
|
+
root: contentRoot ?? adoption.root,
|
|
271
|
+
}));
|
|
272
|
+
}
|
|
273
|
+
catch (caught) {
|
|
274
|
+
schemaInspectionDiagnostic = {
|
|
275
|
+
code: "schema.inspection-failed",
|
|
276
|
+
level: "error",
|
|
277
|
+
path: ".silvermoon",
|
|
278
|
+
message: `Cannot inspect project schemas: ${errorMessage(caught)}`,
|
|
279
|
+
remediation: "Repair the Silvermoon runtime schema manifest and retry.",
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
const futureSchema = schemas?.files.some(({ readiness }) => readiness === "runtime-upgrade-required") === true;
|
|
283
|
+
const device = await traceBusinessAsync("device.observe", {}, () => deviceObserver({
|
|
284
|
+
forceRuntimeRefresh: !projectOnly && futureSchema,
|
|
285
|
+
includeReadiness: !projectOnly,
|
|
286
|
+
...(userHome === undefined ? {} : { userHome }),
|
|
287
|
+
}));
|
|
288
|
+
const rawDeviceAdvisory = device.readiness;
|
|
289
|
+
const user = device.user;
|
|
290
|
+
const userFindings = user.diagnostics.map((diagnostic) => ({
|
|
291
|
+
priority: 30,
|
|
292
|
+
problem: diagnosticProblem(diagnostic),
|
|
293
|
+
instruction: diagnostic.remediation,
|
|
294
|
+
sourceDiagnostic: diagnostic,
|
|
295
|
+
}));
|
|
296
|
+
const rawSchemaDiagnostics = [
|
|
297
|
+
...(schemaInspectionDiagnostic === undefined
|
|
298
|
+
? []
|
|
299
|
+
: [schemaInspectionDiagnostic]),
|
|
300
|
+
...projectSchemaDiagnostics({
|
|
301
|
+
device: rawDeviceAdvisory,
|
|
302
|
+
projectOnly,
|
|
303
|
+
requireCurrentSchemas,
|
|
304
|
+
schemas,
|
|
305
|
+
}),
|
|
306
|
+
];
|
|
307
|
+
const schemaFindings = rawSchemaDiagnostics.map((diagnostic) => ({
|
|
308
|
+
priority: 25,
|
|
309
|
+
problem: diagnosticProblem(diagnostic),
|
|
310
|
+
instruction: diagnostic.remediation,
|
|
311
|
+
sourceDiagnostic: diagnostic,
|
|
312
|
+
}));
|
|
313
|
+
const adoptionFindings = adoption.findings.filter(({ sourceDiagnostic }) => sourceDiagnostic === undefined
|
|
314
|
+
|| !schemaOwnsConfigDiagnostic(sourceDiagnostic, schemas));
|
|
315
|
+
const baseFindings = [
|
|
316
|
+
...adoptionFindings,
|
|
317
|
+
...schemaFindings,
|
|
318
|
+
...userFindings,
|
|
319
|
+
]
|
|
320
|
+
.map(requireFinding)
|
|
321
|
+
.sort((left, right) => left.priority - right.priority);
|
|
322
|
+
const fallbackContentLanguage = resolveLanguage({
|
|
323
|
+
...(user.config?.preferredLanguage === undefined
|
|
324
|
+
? {}
|
|
325
|
+
: { global: user.config.preferredLanguage }),
|
|
326
|
+
}).tag;
|
|
327
|
+
const fallbackOutputLanguage = resolveOutputLanguage({
|
|
328
|
+
content: fallbackContentLanguage,
|
|
329
|
+
...(outputLanguageOverride === undefined ? {} : { override: outputLanguageOverride }),
|
|
330
|
+
}).tag;
|
|
331
|
+
const fallbackDeviceAdvisory = localizeDeviceAdvisory(rawDeviceAdvisory, fallbackOutputLanguage);
|
|
332
|
+
if (!adoption.gitReady) {
|
|
333
|
+
const findings = baseFindings.map((finding) => localizeFinding(finding, fallbackOutputLanguage));
|
|
334
|
+
const observation = projectObservation({
|
|
335
|
+
...(fallbackDeviceAdvisory === undefined
|
|
336
|
+
? {}
|
|
337
|
+
: { device: fallbackDeviceAdvisory }),
|
|
338
|
+
outputLanguage: fallbackOutputLanguage,
|
|
339
|
+
problems: findings.map(({ problem }) => problem),
|
|
340
|
+
root: adoption.root,
|
|
341
|
+
...(schemas === undefined ? {} : { schemas }),
|
|
342
|
+
});
|
|
343
|
+
return {
|
|
344
|
+
config: null,
|
|
345
|
+
contentLanguage: fallbackContentLanguage,
|
|
346
|
+
findings,
|
|
347
|
+
layout: null,
|
|
348
|
+
observation,
|
|
349
|
+
outputLanguage: fallbackOutputLanguage,
|
|
350
|
+
...(outputLanguageOverride === undefined ? {} : { outputLanguageOverride }),
|
|
351
|
+
projectReady: false,
|
|
352
|
+
...(schemas === undefined ? {} : { schemas }),
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
if (!adoption.config) {
|
|
356
|
+
const findings = baseFindings.map((finding) => localizeFinding(finding, fallbackOutputLanguage));
|
|
357
|
+
const observation = projectObservation({
|
|
358
|
+
...(fallbackDeviceAdvisory === undefined
|
|
359
|
+
? {}
|
|
360
|
+
: { device: fallbackDeviceAdvisory }),
|
|
361
|
+
outputLanguage: fallbackOutputLanguage,
|
|
362
|
+
problems: findings.map(({ problem }) => problem),
|
|
363
|
+
root: adoption.root,
|
|
364
|
+
...(schemas === undefined ? {} : { schemas }),
|
|
365
|
+
...(version === undefined ? {} : { version }),
|
|
366
|
+
});
|
|
367
|
+
return {
|
|
368
|
+
config: null,
|
|
369
|
+
contentLanguage: fallbackContentLanguage,
|
|
370
|
+
findings,
|
|
371
|
+
layout: null,
|
|
372
|
+
observation,
|
|
373
|
+
outputLanguage: fallbackOutputLanguage,
|
|
374
|
+
...(outputLanguageOverride === undefined ? {} : { outputLanguageOverride }),
|
|
375
|
+
projectReady: false,
|
|
376
|
+
...(schemas === undefined ? {} : { schemas }),
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
const contentLanguage = resolveLanguage({
|
|
380
|
+
...(ideaLanguage === undefined ? {} : { idea: ideaLanguage }),
|
|
381
|
+
...(adoption.config.preferredLanguage === undefined
|
|
382
|
+
? {}
|
|
383
|
+
: { project: adoption.config.preferredLanguage }),
|
|
384
|
+
...(user.config?.preferredLanguage === undefined
|
|
385
|
+
? {}
|
|
386
|
+
: { global: user.config.preferredLanguage }),
|
|
387
|
+
}).tag;
|
|
388
|
+
const outputLanguage = resolveOutputLanguage({
|
|
389
|
+
content: contentLanguage,
|
|
390
|
+
...(outputLanguageOverride === undefined ? {} : { override: outputLanguageOverride }),
|
|
391
|
+
}).tag;
|
|
392
|
+
const config = adoption.config;
|
|
393
|
+
const configuration = resolvedConfiguration(config, contentLanguage);
|
|
394
|
+
const deviceAdvisory = localizeDeviceAdvisory(rawDeviceAdvisory, outputLanguage);
|
|
395
|
+
const findings = baseFindings.map((finding) => localizeFinding(finding, outputLanguage));
|
|
396
|
+
let layout;
|
|
397
|
+
try {
|
|
398
|
+
layout = await traceBusinessAsync("idea-layout.inspect", {}, () => observeIdea({
|
|
399
|
+
config,
|
|
400
|
+
...(filesystem === undefined ? {} : { filesystem }),
|
|
401
|
+
gitRoot: gitRoot ?? adoption.root,
|
|
402
|
+
project: adoption,
|
|
403
|
+
root: contentRoot ?? adoption.root,
|
|
404
|
+
...(snapshotTree === undefined ? {} : { snapshotTree }),
|
|
405
|
+
}));
|
|
406
|
+
}
|
|
407
|
+
catch (caught) {
|
|
408
|
+
layout = {
|
|
409
|
+
diagnostics: [{
|
|
410
|
+
code: "layout.inspection-failed",
|
|
411
|
+
level: "error",
|
|
412
|
+
path: ".silvermoon/ideas",
|
|
413
|
+
message: `Cannot inspect Silvermoon ideas: ${errorMessage(caught)}`,
|
|
414
|
+
remediation: "Repair the ideas directory and retry.",
|
|
415
|
+
}],
|
|
416
|
+
ideas: [],
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
if (allowMissingIdeas) {
|
|
420
|
+
layout.diagnostics = layout.diagnostics.filter(({ code }) => code !== "layout.ideas.missing");
|
|
421
|
+
}
|
|
422
|
+
layout.diagnostics = layout.diagnostics.filter((diagnostic) => !schemaOwnsLayoutDiagnostic(diagnostic, schemas, projectOnly));
|
|
423
|
+
const guidanceDiagnostics = projectOnly
|
|
424
|
+
? diagnosticsFrom(await inspectAllGuidance({
|
|
425
|
+
...(filesystem === undefined
|
|
426
|
+
? {}
|
|
427
|
+
: { filesystem: requireSnapshotFilesystem(filesystem) }),
|
|
428
|
+
gitRoot: gitRoot ?? adoption.root,
|
|
429
|
+
snapshotTree: snapshotTree
|
|
430
|
+
?? (() => {
|
|
431
|
+
throw new TypeError("Project-only inspection requires a snapshot tree.");
|
|
432
|
+
})(),
|
|
433
|
+
}))
|
|
434
|
+
: [];
|
|
435
|
+
const layoutFindings = layout.diagnostics.map((diagnostic) => ({
|
|
436
|
+
priority: 50,
|
|
437
|
+
problem: diagnosticProblem(diagnostic, outputLanguage),
|
|
438
|
+
instruction: diagnosticInstruction(diagnostic, outputLanguage),
|
|
439
|
+
}));
|
|
440
|
+
const guidanceFindings = guidanceDiagnostics.map((diagnostic) => ({
|
|
441
|
+
priority: 60,
|
|
442
|
+
problem: diagnosticProblem(diagnostic, outputLanguage),
|
|
443
|
+
instruction: diagnosticInstruction(diagnostic, outputLanguage),
|
|
444
|
+
}));
|
|
445
|
+
findings.push(...layoutFindings, ...guidanceFindings);
|
|
446
|
+
findings.sort((left, right) => left.priority - right.priority);
|
|
447
|
+
if (layout.diagnostics.length > 0) {
|
|
448
|
+
const observation = projectObservation({
|
|
449
|
+
configuration,
|
|
450
|
+
...(deviceAdvisory === undefined ? {} : { device: deviceAdvisory }),
|
|
451
|
+
outputLanguage,
|
|
452
|
+
problems: findings.map(({ problem }) => problem),
|
|
453
|
+
root: adoption.root,
|
|
454
|
+
...(schemas === undefined ? {} : { schemas }),
|
|
455
|
+
...(version === undefined ? {} : { version }),
|
|
456
|
+
});
|
|
457
|
+
return {
|
|
458
|
+
config,
|
|
459
|
+
contentLanguage,
|
|
460
|
+
findings,
|
|
461
|
+
layout,
|
|
462
|
+
observation,
|
|
463
|
+
outputLanguage,
|
|
464
|
+
...(outputLanguageOverride === undefined ? {} : { outputLanguageOverride }),
|
|
465
|
+
projectReady: false,
|
|
466
|
+
...(schemas === undefined ? {} : { schemas }),
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
const ideas = summarizeIdeas(layout.ideas);
|
|
470
|
+
if (findings.length > 0) {
|
|
471
|
+
const observation = projectObservation({
|
|
472
|
+
configuration,
|
|
473
|
+
...(deviceAdvisory === undefined ? {} : { device: deviceAdvisory }),
|
|
474
|
+
ideas,
|
|
475
|
+
outputLanguage,
|
|
476
|
+
problems: findings.map(({ problem }) => problem),
|
|
477
|
+
root: adoption.root,
|
|
478
|
+
...(schemas === undefined ? {} : { schemas }),
|
|
479
|
+
...(version === undefined ? {} : { version }),
|
|
480
|
+
});
|
|
481
|
+
return {
|
|
482
|
+
config,
|
|
483
|
+
contentLanguage,
|
|
484
|
+
findings,
|
|
485
|
+
layout,
|
|
486
|
+
observation,
|
|
487
|
+
outputLanguage,
|
|
488
|
+
...(outputLanguageOverride === undefined ? {} : { outputLanguageOverride }),
|
|
489
|
+
projectReady: false,
|
|
490
|
+
...(schemas === undefined ? {} : { schemas }),
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
return {
|
|
494
|
+
config,
|
|
495
|
+
contentLanguage,
|
|
496
|
+
findings,
|
|
497
|
+
layout,
|
|
498
|
+
observation: {
|
|
499
|
+
state: "project-ready",
|
|
500
|
+
root: adoption.root,
|
|
501
|
+
version: version ?? { type: "worktree" },
|
|
502
|
+
configuration,
|
|
503
|
+
...(deviceAdvisory === undefined ? {} : { device: deviceAdvisory }),
|
|
504
|
+
ideas,
|
|
505
|
+
outputLanguage,
|
|
506
|
+
problems: [],
|
|
507
|
+
...(schemas === undefined ? {} : { schemas }),
|
|
508
|
+
},
|
|
509
|
+
outputLanguage,
|
|
510
|
+
...(outputLanguageOverride === undefined ? {} : { outputLanguageOverride }),
|
|
511
|
+
projectReady: true,
|
|
512
|
+
...(schemas === undefined ? {} : { schemas }),
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
export async function observeSnapshot(options) {
|
|
516
|
+
return traceBusinessAsync("snapshot.observe", {}, () => observeSnapshotInternal(options));
|
|
517
|
+
}
|
|
518
|
+
//# sourceMappingURL=observe-snapshot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observe-snapshot.js","sourceRoot":"","sources":["../../../../src/business/shared/observe-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACnI,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oC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IACJ,CAAC;IAED,OAAO;QACL,MAAM;QACN,eAAe;QACf,QAAQ;QACR,MAAM;QACN,WAAW,EAAE;YACX,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,OAAO,EAAE,OAAO,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE;YACxC,aAAa;YACb,GAAG,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC;YACnE,KAAK;YACL,cAAc;YACd,QAAQ,EAAE,EAAE;YACZ,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;SAC9C;QACD,cAAc;QACd,GAAG,CAAC,sBAAsB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,sBAAsB,EAAE,CAAC;QAC3E,YAAY,EAAE,IAAI;QAClB,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;KAC9C,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,OAAsD;IAEtD,OAAO,kBAAkB,CACvB,kBAAkB,EAClB,EAAE,EACF,GAAG,EAAE,CAAC,uBAAuB,CAAC,OAAO,CAAC,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface InventoryIdea {
|
|
2
|
+
id: string;
|
|
3
|
+
alias?: string;
|
|
4
|
+
state: string;
|
|
5
|
+
worlds: {
|
|
6
|
+
idealRevision: {
|
|
7
|
+
documentPath: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function readIdeaInventoryItem(root: string, idea: InventoryIdea): Promise<import("../../foundation/idea-query/rules.ts").IdeaInventoryItem>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=read-idea-inventory-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-idea-inventory-item.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/read-idea-inventory-item.ts"],"names":[],"mappings":"AAKA,UAAU,aAAa;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE;QAAE,aAAa,EAAE;YAAE,YAAY,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CACrD;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,6EAqB5E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { extractIdeaTitle, ideaInventoryItem } from "../../foundation/idea-query/index.js";
|
|
4
|
+
export async function readIdeaInventoryItem(root, idea) {
|
|
5
|
+
const documentPath = idea.worlds.idealRevision.documentPath;
|
|
6
|
+
try {
|
|
7
|
+
const source = await readFile(resolve(root, ...documentPath.split("/")), "utf8");
|
|
8
|
+
return ideaInventoryItem({
|
|
9
|
+
id: idea.id,
|
|
10
|
+
state: idea.state,
|
|
11
|
+
...(idea.alias === undefined ? {} : { alias: idea.alias }),
|
|
12
|
+
}, extractIdeaTitle(source));
|
|
13
|
+
}
|
|
14
|
+
catch (caught) {
|
|
15
|
+
throw new Error(`Cannot read idea metadata for ${idea.id} at ${documentPath}: ${caught instanceof Error ? caught.message : String(caught)}`, { cause: caught });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=read-idea-inventory-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-idea-inventory-item.js","sourceRoot":"","sources":["../../../../src/business/shared/read-idea-inventory-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAS3F,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,IAAY,EAAE,IAAmB;IAC3E,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC;IAC5D,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,CAAC,IAAI,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EACzC,MAAM,CACP,CAAC;QACF,OAAO,iBAAiB,CACtB;YACE,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;SAC3D,EACD,gBAAgB,CAAC,MAAM,CAAC,CACzB,CAAC;IACJ,CAAC;IAAC,OAAO,MAAM,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CACb,iCAAiC,IAAI,CAAC,EAAE,OAAO,YAAY,KAAK,MAAM,YAAY,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAC3H,EAAE,KAAK,EAAE,MAAM,EAAE,CAClB,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BusinessFileSystem, EventStore, ProjectConfig } from "./business-types.ts";
|
|
2
|
+
export declare function resolveIdea(root: string, tree: string, config: ProjectConfig, selector: string, options?: {
|
|
3
|
+
projectedEvents?: boolean;
|
|
4
|
+
filesystem?: BusinessFileSystem;
|
|
5
|
+
eventOverrides?: Map<string, EventStore>;
|
|
6
|
+
}): Promise<string>;
|
|
7
|
+
//# sourceMappingURL=resolve-idea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-idea.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/resolve-idea.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzF,wBAAsB,WAAW,CAC/B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IACP,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACrC,GACL,OAAO,CAAC,MAAM,CAAC,CAOjB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { inspectIdeaLayout } from "./idea-layout.js";
|
|
2
|
+
import { isValidUlid } from "../../foundation/idea-model/index.js";
|
|
3
|
+
export async function resolveIdea(root, tree, config, selector, options = {}) {
|
|
4
|
+
if (isValidUlid(selector))
|
|
5
|
+
return selector;
|
|
6
|
+
const layout = await inspectIdeaLayout({ root, config, snapshotTree: tree, ...options });
|
|
7
|
+
if (layout.diagnostics.length)
|
|
8
|
+
throw new Error("Use the exact idea ULID while repairing an invalid layout.");
|
|
9
|
+
const idea = layout.ideas.find(({ alias }) => alias === selector);
|
|
10
|
+
if (!idea)
|
|
11
|
+
throw new Error(`Unknown idea selector: ${selector}`);
|
|
12
|
+
return idea.id;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=resolve-idea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-idea.js","sourceRoot":"","sources":["../../../../src/business/shared/resolve-idea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAGnE,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,IAAY,EACZ,IAAY,EACZ,MAAqB,EACrB,QAAgB,EAChB,UAII,EAAE;IAEN,IAAI,WAAW,CAAC,QAAQ,CAAC;QAAE,OAAO,QAAQ,CAAC;IAC3C,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,IAAI,MAAM,CAAC,WAAW,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAC7G,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC;IAClE,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,QAAQ,EAAE,CAAC,CAAC;IACjE,OAAO,IAAI,CAAC,EAAE,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-observation-language.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/with-observation-language.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,gBAAgB,EAC1B,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,gBAAgB,CAelB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { resolvedConfiguration } from "../../foundation/report/index.js";
|
|
2
|
+
import { resolveLanguage, resolveOutputLanguage } from "../../foundation/language/index.js";
|
|
3
|
+
export function withObservationLanguage(observed, ideaLanguage) {
|
|
4
|
+
if (!observed.config || !ideaLanguage)
|
|
5
|
+
return observed;
|
|
6
|
+
const contentLanguage = resolveLanguage({ idea: ideaLanguage }).tag;
|
|
7
|
+
const outputLanguage = resolveOutputLanguage({
|
|
8
|
+
content: contentLanguage,
|
|
9
|
+
...(observed.outputLanguageOverride === undefined
|
|
10
|
+
? {}
|
|
11
|
+
: { override: observed.outputLanguageOverride }),
|
|
12
|
+
}).tag;
|
|
13
|
+
const observation = {
|
|
14
|
+
...observed.observation,
|
|
15
|
+
configuration: resolvedConfiguration(observed.config, contentLanguage),
|
|
16
|
+
outputLanguage,
|
|
17
|
+
};
|
|
18
|
+
return { ...observed, contentLanguage, observation, outputLanguage };
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=with-observation-language.js.map
|