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
package/src/guidance.js
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import { TextDecoder } from "node:util";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
inspectTree,
|
|
5
|
-
readGitBlobs,
|
|
6
|
-
} from "./git.js";
|
|
7
|
-
import {
|
|
8
|
-
GUIDANCE_PHASES,
|
|
9
|
-
GUIDANCE_ROOT,
|
|
10
|
-
phaseGuidancePath,
|
|
11
|
-
} from "./layout.js";
|
|
12
|
-
import { traceAsync } from "./trace.js";
|
|
13
|
-
|
|
14
|
-
export const MAX_PHASE_GUIDANCE_BYTES = 32 * 1024;
|
|
15
|
-
|
|
16
|
-
const REGULAR_FILE_MODES = new Set(["100644", "100755"]);
|
|
17
|
-
const UTF8_BOM = Buffer.from([0xef, 0xbb, 0xbf]);
|
|
18
|
-
|
|
19
|
-
function error(code, path, message, remediation) {
|
|
20
|
-
return { code, level: "error", path, message, remediation };
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function invalidDirectory() {
|
|
24
|
-
return error(
|
|
25
|
-
"guidance.directory.invalid",
|
|
26
|
-
GUIDANCE_ROOT,
|
|
27
|
-
`Phase guidance path must be a repository-owned regular directory: ${GUIDANCE_ROOT}`,
|
|
28
|
-
`Replace ${GUIDANCE_ROOT} with a regular directory without symlinks.`,
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function invalidFile(path) {
|
|
33
|
-
return error(
|
|
34
|
-
"guidance.file.invalid",
|
|
35
|
-
path,
|
|
36
|
-
`Phase guidance must be a repository-owned regular file: ${path}`,
|
|
37
|
-
`Replace ${path} with a regular Markdown file without symlinks.`,
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function unexpectedEntry(name) {
|
|
42
|
-
const path = `${GUIDANCE_ROOT}/${name}`;
|
|
43
|
-
return error(
|
|
44
|
-
"guidance.entry.unexpected",
|
|
45
|
-
path,
|
|
46
|
-
`Unexpected phase guidance entry: ${path}`,
|
|
47
|
-
`Keep only preparing.md, implementing.md, and deploying.md in ${GUIDANCE_ROOT}.`,
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function contentSizeDiagnostic(entry, phase) {
|
|
52
|
-
const path = phaseGuidancePath(phase);
|
|
53
|
-
if (entry.size <= MAX_PHASE_GUIDANCE_BYTES) return null;
|
|
54
|
-
return error(
|
|
55
|
-
"guidance.file.too-large",
|
|
56
|
-
path,
|
|
57
|
-
`Phase guidance exceeds the ${MAX_PHASE_GUIDANCE_BYTES}-byte limit: ${path}`,
|
|
58
|
-
`Reduce ${path} to at most ${MAX_PHASE_GUIDANCE_BYTES} UTF-8 bytes.`,
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function inspectContent(bytes, entry, phase) {
|
|
63
|
-
const path = phaseGuidancePath(phase);
|
|
64
|
-
if (bytes.length !== entry.size) {
|
|
65
|
-
throw new Error(
|
|
66
|
-
`Git blob ${entry.object} changed size while reading ${path}`,
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const diagnostics = [];
|
|
71
|
-
if (bytes.subarray(0, UTF8_BOM.length).equals(UTF8_BOM)) {
|
|
72
|
-
diagnostics.push(error(
|
|
73
|
-
"guidance.file.bom",
|
|
74
|
-
path,
|
|
75
|
-
`Phase guidance must not contain a UTF-8 byte order mark: ${path}`,
|
|
76
|
-
`Remove the UTF-8 byte order mark from ${path}.`,
|
|
77
|
-
));
|
|
78
|
-
}
|
|
79
|
-
if (bytes.includes(0)) {
|
|
80
|
-
diagnostics.push(error(
|
|
81
|
-
"guidance.file.nul",
|
|
82
|
-
path,
|
|
83
|
-
`Phase guidance must not contain NUL bytes: ${path}`,
|
|
84
|
-
`Remove all NUL bytes from ${path}.`,
|
|
85
|
-
));
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
let content;
|
|
89
|
-
try {
|
|
90
|
-
content = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
91
|
-
} catch {
|
|
92
|
-
diagnostics.push(error(
|
|
93
|
-
"guidance.file.invalid-utf8",
|
|
94
|
-
path,
|
|
95
|
-
`Phase guidance must contain valid UTF-8: ${path}`,
|
|
96
|
-
`Encode ${path} as valid UTF-8 without a byte order mark.`,
|
|
97
|
-
));
|
|
98
|
-
}
|
|
99
|
-
if (content !== undefined && content.trim().length === 0) {
|
|
100
|
-
diagnostics.push(error(
|
|
101
|
-
"guidance.file.empty",
|
|
102
|
-
path,
|
|
103
|
-
`Phase guidance must contain non-whitespace content: ${path}`,
|
|
104
|
-
`Add project guidance to ${path}, or remove the optional file.`,
|
|
105
|
-
));
|
|
106
|
-
}
|
|
107
|
-
if (diagnostics.length > 0) return { diagnostics };
|
|
108
|
-
|
|
109
|
-
return {
|
|
110
|
-
guidance: {
|
|
111
|
-
phase,
|
|
112
|
-
path,
|
|
113
|
-
contentRevision: entry.object,
|
|
114
|
-
content: content.replaceAll("\r\n", "\n"),
|
|
115
|
-
},
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
async function inspectGuidanceInternal({
|
|
120
|
-
filesystem,
|
|
121
|
-
gitRoot,
|
|
122
|
-
phase,
|
|
123
|
-
snapshotTree,
|
|
124
|
-
}) {
|
|
125
|
-
const treeEntries = filesystem === undefined
|
|
126
|
-
? inspectTree(gitRoot, snapshotTree, GUIDANCE_ROOT)
|
|
127
|
-
: null;
|
|
128
|
-
const rootEntry = treeEntries === null
|
|
129
|
-
? filesystem.snapshotEntry(GUIDANCE_ROOT)
|
|
130
|
-
: treeEntries.find(({ name }) => name === GUIDANCE_ROOT);
|
|
131
|
-
if (rootEntry === undefined) {
|
|
132
|
-
return { state: "absent", diagnostics: [] };
|
|
133
|
-
}
|
|
134
|
-
if (rootEntry === null) {
|
|
135
|
-
return { state: "absent", diagnostics: [] };
|
|
136
|
-
}
|
|
137
|
-
if (rootEntry.type !== "tree" || rootEntry.mode !== "040000") {
|
|
138
|
-
return { state: "invalid", diagnostics: [invalidDirectory()] };
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
const prefix = `${GUIDANCE_ROOT}/`;
|
|
142
|
-
const entries = (
|
|
143
|
-
treeEntries === null
|
|
144
|
-
? filesystem.snapshotEntries(GUIDANCE_ROOT)
|
|
145
|
-
: treeEntries.filter(({ name }) =>
|
|
146
|
-
name.startsWith(prefix) && !name.slice(prefix.length).includes("/")
|
|
147
|
-
)
|
|
148
|
-
)
|
|
149
|
-
.map((entry) => ({ ...entry, name: entry.name.slice(prefix.length) }));
|
|
150
|
-
const entriesByName = new Map(entries.map((entry) => [entry.name, entry]));
|
|
151
|
-
const phases = phase === undefined ? GUIDANCE_PHASES : [phase];
|
|
152
|
-
const diagnostics = [];
|
|
153
|
-
|
|
154
|
-
if (phase === undefined) {
|
|
155
|
-
const allowedNames = new Set(
|
|
156
|
-
GUIDANCE_PHASES.map((candidate) =>
|
|
157
|
-
phaseGuidancePath(candidate).slice(`${GUIDANCE_ROOT}/`.length)
|
|
158
|
-
),
|
|
159
|
-
);
|
|
160
|
-
for (const entry of entries) {
|
|
161
|
-
if (!allowedNames.has(entry.name)) {
|
|
162
|
-
diagnostics.push(unexpectedEntry(entry.name));
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
let selectedGuidance;
|
|
168
|
-
let selectedPresent = false;
|
|
169
|
-
const contentEntries = [];
|
|
170
|
-
for (const candidate of phases) {
|
|
171
|
-
const path = phaseGuidancePath(candidate);
|
|
172
|
-
const name = path.slice(`${GUIDANCE_ROOT}/`.length);
|
|
173
|
-
const entry = entriesByName.get(name);
|
|
174
|
-
if (entry === undefined) continue;
|
|
175
|
-
selectedPresent = true;
|
|
176
|
-
if (entry.type !== "blob" || !REGULAR_FILE_MODES.has(entry.mode)) {
|
|
177
|
-
diagnostics.push(invalidFile(path));
|
|
178
|
-
continue;
|
|
179
|
-
}
|
|
180
|
-
const sizeDiagnostic = contentSizeDiagnostic(entry, candidate);
|
|
181
|
-
if (sizeDiagnostic) {
|
|
182
|
-
diagnostics.push(sizeDiagnostic);
|
|
183
|
-
continue;
|
|
184
|
-
}
|
|
185
|
-
contentEntries.push({ candidate, entry });
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
const blobs = filesystem === undefined
|
|
189
|
-
? readGitBlobs(
|
|
190
|
-
gitRoot,
|
|
191
|
-
contentEntries.map(({ entry }) => entry.object),
|
|
192
|
-
)
|
|
193
|
-
: new Map(await Promise.all(contentEntries.map(async ({ candidate, entry }) => [
|
|
194
|
-
entry.object,
|
|
195
|
-
await filesystem.snapshotFile(phaseGuidancePath(candidate)),
|
|
196
|
-
])));
|
|
197
|
-
for (const { candidate, entry } of contentEntries) {
|
|
198
|
-
const bytes = blobs.get(entry.object);
|
|
199
|
-
if (bytes === undefined) {
|
|
200
|
-
throw new Error(`Missing Git blob content for ${entry.object}`);
|
|
201
|
-
}
|
|
202
|
-
const inspected = inspectContent(bytes, entry, candidate);
|
|
203
|
-
if (inspected.diagnostics) diagnostics.push(...inspected.diagnostics);
|
|
204
|
-
if (phase !== undefined && inspected.guidance) {
|
|
205
|
-
selectedGuidance = inspected.guidance;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
if (diagnostics.length > 0) return { state: "invalid", diagnostics };
|
|
210
|
-
if (phase !== undefined && !selectedPresent) {
|
|
211
|
-
return { state: "absent", diagnostics: [] };
|
|
212
|
-
}
|
|
213
|
-
return {
|
|
214
|
-
state: "valid",
|
|
215
|
-
diagnostics: [],
|
|
216
|
-
...(selectedGuidance === undefined ? {} : { guidance: selectedGuidance }),
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export async function inspectPhaseGuidance({
|
|
221
|
-
filesystem,
|
|
222
|
-
gitRoot,
|
|
223
|
-
phase,
|
|
224
|
-
snapshotTree,
|
|
225
|
-
}) {
|
|
226
|
-
phaseGuidancePath(phase);
|
|
227
|
-
return traceAsync(
|
|
228
|
-
"guidance.inspect",
|
|
229
|
-
{ phase, scope: "phase" },
|
|
230
|
-
async () => {
|
|
231
|
-
try {
|
|
232
|
-
return await inspectGuidanceInternal({
|
|
233
|
-
filesystem,
|
|
234
|
-
gitRoot,
|
|
235
|
-
phase,
|
|
236
|
-
snapshotTree,
|
|
237
|
-
});
|
|
238
|
-
} catch (caught) {
|
|
239
|
-
return {
|
|
240
|
-
state: "invalid",
|
|
241
|
-
diagnostics: [error(
|
|
242
|
-
"guidance.inspection-failed",
|
|
243
|
-
phaseGuidancePath(phase),
|
|
244
|
-
`Cannot inspect phase guidance for ${phase}: ${caught.message}`,
|
|
245
|
-
"Repair the repository snapshot and retry.",
|
|
246
|
-
)],
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
export async function inspectAllGuidance({
|
|
254
|
-
filesystem,
|
|
255
|
-
gitRoot,
|
|
256
|
-
snapshotTree,
|
|
257
|
-
}) {
|
|
258
|
-
return traceAsync(
|
|
259
|
-
"guidance.inspect",
|
|
260
|
-
{ scope: "all" },
|
|
261
|
-
async () => {
|
|
262
|
-
try {
|
|
263
|
-
return await inspectGuidanceInternal({
|
|
264
|
-
filesystem,
|
|
265
|
-
gitRoot,
|
|
266
|
-
snapshotTree,
|
|
267
|
-
});
|
|
268
|
-
} catch (caught) {
|
|
269
|
-
return {
|
|
270
|
-
state: "invalid",
|
|
271
|
-
diagnostics: [error(
|
|
272
|
-
"guidance.inspection-failed",
|
|
273
|
-
GUIDANCE_ROOT,
|
|
274
|
-
`Cannot inspect phase guidance: ${caught.message}`,
|
|
275
|
-
"Repair the repository snapshot and retry.",
|
|
276
|
-
)],
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
);
|
|
281
|
-
}
|
package/src/idea-layout.js
DELETED
|
@@ -1,411 +0,0 @@
|
|
|
1
|
-
import { lstat, readFile, readdir } from "node:fs/promises";
|
|
2
|
-
import { relative, resolve } from "node:path";
|
|
3
|
-
|
|
4
|
-
import { deriveIdeaState, isValidUlid, parseIdeaStatus } from "./ideas.js";
|
|
5
|
-
import { inspectTreePaths, worktreeSnapshot } from "./git.js";
|
|
6
|
-
import { IDEAS_ROOT, ideaPaths } from "./layout.js";
|
|
7
|
-
|
|
8
|
-
const DEFAULT_FILESYSTEM = { lstat, readFile, readdir };
|
|
9
|
-
|
|
10
|
-
function displayPath(root, path) {
|
|
11
|
-
return relative(root, path).replaceAll("\\", "/");
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function error(code, path, message, remediation) {
|
|
15
|
-
return { code, level: "error", path, message, remediation };
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
async function metadata(path, filesystem) {
|
|
19
|
-
try {
|
|
20
|
-
return await filesystem.lstat(path);
|
|
21
|
-
} catch (caught) {
|
|
22
|
-
if (caught.code === "ENOENT") return null;
|
|
23
|
-
throw caught;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
async function requireDirectory(root, path, diagnostics, filesystem) {
|
|
28
|
-
const absolute = resolve(root, path);
|
|
29
|
-
const value = await metadata(absolute, filesystem);
|
|
30
|
-
if (!value || !value.isDirectory() || value.isSymbolicLink()) {
|
|
31
|
-
diagnostics.push(error(
|
|
32
|
-
"idea.world.invalid-directory",
|
|
33
|
-
path,
|
|
34
|
-
`Required world path must be a repository-owned regular directory: ${path}`,
|
|
35
|
-
`Create ${path} as a regular directory without symlinks.`,
|
|
36
|
-
));
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
async function requireDocument(root, path, diagnostics, filesystem) {
|
|
43
|
-
const absolute = resolve(root, path);
|
|
44
|
-
const value = await metadata(absolute, filesystem);
|
|
45
|
-
if (!value || !value.isFile() || value.isSymbolicLink()) {
|
|
46
|
-
diagnostics.push(error(
|
|
47
|
-
"idea.world.missing-document",
|
|
48
|
-
path,
|
|
49
|
-
`Required world entry must be a repository-owned regular file: ${path}`,
|
|
50
|
-
`Create ${path} as a regular file without symlinks.`,
|
|
51
|
-
));
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
async function requireLedger(root, path, diagnostics, filesystem) {
|
|
58
|
-
const value = await metadata(resolve(root, path), filesystem);
|
|
59
|
-
if (!value) {
|
|
60
|
-
diagnostics.push(error(
|
|
61
|
-
"idea.ledger.missing-file",
|
|
62
|
-
path,
|
|
63
|
-
`Required idea ledger does not exist: ${path}`,
|
|
64
|
-
`Create ${path} as a repository-owned regular file.`,
|
|
65
|
-
));
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
if (!value.isFile() || value.isSymbolicLink()) {
|
|
69
|
-
diagnostics.push(error(
|
|
70
|
-
"idea.ledger.invalid-file",
|
|
71
|
-
path,
|
|
72
|
-
`Required idea ledger must be a repository-owned regular file: ${path}`,
|
|
73
|
-
`Replace ${path} with a regular file.`,
|
|
74
|
-
));
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
async function rejectSymlinks(root, path, diagnostics, filesystem) {
|
|
81
|
-
const absolute = resolve(root, path);
|
|
82
|
-
for (
|
|
83
|
-
const entry of await filesystem.readdir(absolute, { withFileTypes: true })
|
|
84
|
-
) {
|
|
85
|
-
const entryPath = `${path}/${entry.name}`;
|
|
86
|
-
const value = await filesystem.lstat(resolve(root, entryPath));
|
|
87
|
-
if (value.isSymbolicLink()) {
|
|
88
|
-
diagnostics.push(error(
|
|
89
|
-
"idea.world.symlink",
|
|
90
|
-
entryPath,
|
|
91
|
-
`World content must not use symlinks: ${entryPath}`,
|
|
92
|
-
"Replace the symlink with repository-owned regular content.",
|
|
93
|
-
));
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
if (value.isDirectory()) {
|
|
97
|
-
await rejectSymlinks(root, entryPath, diagnostics, filesystem);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function objectIdLength(tree) {
|
|
103
|
-
if (/^[0-9a-f]{40}$/.test(tree)) return 40;
|
|
104
|
-
if (/^[0-9a-f]{64}$/.test(tree)) return 64;
|
|
105
|
-
throw new Error(`Unsupported Git tree object ID: ${tree}`);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function requiredTree(objects, path) {
|
|
109
|
-
const inspected = objects.get(path);
|
|
110
|
-
if (!inspected || inspected.type !== "tree" || inspected.object === null) {
|
|
111
|
-
throw new Error(`${path} does not resolve to a Git tree`);
|
|
112
|
-
}
|
|
113
|
-
return inspected.object;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export async function inspectIdeaLayout({
|
|
117
|
-
config: _config,
|
|
118
|
-
filesystem = DEFAULT_FILESYSTEM,
|
|
119
|
-
root,
|
|
120
|
-
gitRoot = root,
|
|
121
|
-
snapshotTree,
|
|
122
|
-
}) {
|
|
123
|
-
const diagnostics = [];
|
|
124
|
-
const ideasRoot = resolve(root, IDEAS_ROOT);
|
|
125
|
-
const ideasRootMetadata = await metadata(ideasRoot, filesystem);
|
|
126
|
-
if (!ideasRootMetadata) {
|
|
127
|
-
return {
|
|
128
|
-
diagnostics: [error(
|
|
129
|
-
"layout.ideas.missing",
|
|
130
|
-
IDEAS_ROOT,
|
|
131
|
-
`Silvermoon ideas directory does not exist: ${IDEAS_ROOT}`,
|
|
132
|
-
`Create ${IDEAS_ROOT} as a repository-owned directory.`,
|
|
133
|
-
)],
|
|
134
|
-
ideas: [],
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
if (!ideasRootMetadata.isDirectory() || ideasRootMetadata.isSymbolicLink()) {
|
|
138
|
-
return {
|
|
139
|
-
diagnostics: [error(
|
|
140
|
-
"layout.ideas.invalid",
|
|
141
|
-
IDEAS_ROOT,
|
|
142
|
-
"The Silvermoon ideas path must be a repository-owned regular directory.",
|
|
143
|
-
`Replace ${IDEAS_ROOT} with a regular directory.`,
|
|
144
|
-
)],
|
|
145
|
-
ideas: [],
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
let resolvedSnapshotTree;
|
|
150
|
-
let repositoryObjectIdLength;
|
|
151
|
-
try {
|
|
152
|
-
resolvedSnapshotTree = snapshotTree
|
|
153
|
-
?? worktreeSnapshot(gitRoot, { paths: [IDEAS_ROOT] }).tree;
|
|
154
|
-
repositoryObjectIdLength = objectIdLength(resolvedSnapshotTree);
|
|
155
|
-
} catch (caught) {
|
|
156
|
-
return {
|
|
157
|
-
diagnostics: [error(
|
|
158
|
-
"git.object-format.unavailable",
|
|
159
|
-
IDEAS_ROOT,
|
|
160
|
-
caught.message,
|
|
161
|
-
"Run Silvermoon inside a Git repository with a supported object format.",
|
|
162
|
-
)],
|
|
163
|
-
ideas: [],
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
const aliases = new Map();
|
|
168
|
-
const ideas = [];
|
|
169
|
-
const caseNames = new Map();
|
|
170
|
-
const entries = (
|
|
171
|
-
await filesystem.readdir(ideasRoot, { withFileTypes: true })
|
|
172
|
-
)
|
|
173
|
-
.sort((left, right) => left.name.localeCompare(right.name));
|
|
174
|
-
const ideaIds = new Set(
|
|
175
|
-
entries.filter((entry) => isValidUlid(entry.name)).map((entry) => entry.name),
|
|
176
|
-
);
|
|
177
|
-
const worldPaths = [...ideaIds].flatMap((id) => {
|
|
178
|
-
const paths = ideaPaths(id);
|
|
179
|
-
return [paths.idealPath, paths.innerPath, paths.outerPath];
|
|
180
|
-
});
|
|
181
|
-
let worldObjects;
|
|
182
|
-
try {
|
|
183
|
-
worldObjects = typeof filesystem.snapshotEntry === "function"
|
|
184
|
-
? new Map(worldPaths.map((path) => {
|
|
185
|
-
const entry = filesystem.snapshotEntry(path);
|
|
186
|
-
return [
|
|
187
|
-
path,
|
|
188
|
-
{
|
|
189
|
-
object: entry?.object ?? null,
|
|
190
|
-
type: entry?.type ?? "missing",
|
|
191
|
-
},
|
|
192
|
-
];
|
|
193
|
-
}))
|
|
194
|
-
: inspectTreePaths(gitRoot, resolvedSnapshotTree, worldPaths);
|
|
195
|
-
} catch (caught) {
|
|
196
|
-
return {
|
|
197
|
-
diagnostics: [error(
|
|
198
|
-
"idea.revision.unavailable",
|
|
199
|
-
IDEAS_ROOT,
|
|
200
|
-
caught.message,
|
|
201
|
-
"Ensure every world can be represented as a Git tree.",
|
|
202
|
-
)],
|
|
203
|
-
ideas: [],
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
for (const entry of entries) {
|
|
207
|
-
const folderPath = resolve(ideasRoot, entry.name);
|
|
208
|
-
const folderMetadata = await filesystem.lstat(folderPath);
|
|
209
|
-
const relativePath = displayPath(root, folderPath);
|
|
210
|
-
const folded = entry.name.toUpperCase();
|
|
211
|
-
const existingCase = caseNames.get(folded);
|
|
212
|
-
if (existingCase && existingCase !== entry.name) {
|
|
213
|
-
diagnostics.push(error(
|
|
214
|
-
"idea.id.case-collision",
|
|
215
|
-
relativePath,
|
|
216
|
-
`Idea identities collide by case: ${existingCase} and ${entry.name}.`,
|
|
217
|
-
"Keep exactly one canonical uppercase ULID identity.",
|
|
218
|
-
));
|
|
219
|
-
} else {
|
|
220
|
-
caseNames.set(folded, entry.name);
|
|
221
|
-
}
|
|
222
|
-
if (!isValidUlid(entry.name)) {
|
|
223
|
-
diagnostics.push(error(
|
|
224
|
-
"idea.id.invalid",
|
|
225
|
-
relativePath,
|
|
226
|
-
`Idea folders must use canonical ULID identities: ${entry.name}`,
|
|
227
|
-
"Rename the folder to one canonical uppercase ULID.",
|
|
228
|
-
));
|
|
229
|
-
continue;
|
|
230
|
-
}
|
|
231
|
-
if (!folderMetadata.isDirectory() || folderMetadata.isSymbolicLink()) {
|
|
232
|
-
diagnostics.push(error(
|
|
233
|
-
"idea.folder.invalid",
|
|
234
|
-
relativePath,
|
|
235
|
-
"Idea must be a repository-owned regular directory.",
|
|
236
|
-
"Replace it with a regular directory.",
|
|
237
|
-
));
|
|
238
|
-
continue;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
const paths = ideaPaths(entry.name);
|
|
242
|
-
const children = (
|
|
243
|
-
await filesystem.readdir(folderPath, { withFileTypes: true })
|
|
244
|
-
)
|
|
245
|
-
.sort((left, right) => left.name.localeCompare(right.name));
|
|
246
|
-
for (const child of children) {
|
|
247
|
-
if (
|
|
248
|
-
child.name === "status.yaml" ||
|
|
249
|
-
child.name === "ledger.md" ||
|
|
250
|
-
child.name === "outer"
|
|
251
|
-
) continue;
|
|
252
|
-
diagnostics.push(error(
|
|
253
|
-
child.name.toLowerCase().includes("status")
|
|
254
|
-
? "idea.status.unexpected-file"
|
|
255
|
-
: "idea.entry.unexpected",
|
|
256
|
-
`${paths.ideaPath}/${child.name}`,
|
|
257
|
-
`Unexpected entry at the idea root: ${child.name}`,
|
|
258
|
-
"Keep only status.yaml, ledger.md, and outer/ at the idea root; put supporting files in their world.",
|
|
259
|
-
));
|
|
260
|
-
}
|
|
261
|
-
await requireLedger(root, paths.ledgerPath, diagnostics, filesystem);
|
|
262
|
-
const requiredDirectories = [
|
|
263
|
-
paths.outerPath,
|
|
264
|
-
paths.innerPath,
|
|
265
|
-
paths.idealPath,
|
|
266
|
-
];
|
|
267
|
-
const requiredDocuments = [
|
|
268
|
-
paths.deploymentDocumentPath,
|
|
269
|
-
paths.implementationDocumentPath,
|
|
270
|
-
paths.ideaDocumentPath,
|
|
271
|
-
];
|
|
272
|
-
const validDirectories = (await Promise.all(
|
|
273
|
-
requiredDirectories.map((path) =>
|
|
274
|
-
requireDirectory(root, path, diagnostics, filesystem)
|
|
275
|
-
),
|
|
276
|
-
)).every(Boolean);
|
|
277
|
-
const validDocuments = (await Promise.all(
|
|
278
|
-
requiredDocuments.map((path) =>
|
|
279
|
-
requireDocument(root, path, diagnostics, filesystem)
|
|
280
|
-
),
|
|
281
|
-
)).every(Boolean);
|
|
282
|
-
if (validDirectories) {
|
|
283
|
-
await rejectSymlinks(
|
|
284
|
-
root,
|
|
285
|
-
paths.outerPath,
|
|
286
|
-
diagnostics,
|
|
287
|
-
filesystem,
|
|
288
|
-
);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
const statusMetadata = await metadata(
|
|
292
|
-
resolve(root, paths.statusPath),
|
|
293
|
-
filesystem,
|
|
294
|
-
);
|
|
295
|
-
if (!statusMetadata || !statusMetadata.isFile() || statusMetadata.isSymbolicLink()) {
|
|
296
|
-
diagnostics.push(error(
|
|
297
|
-
"idea.status.invalid-file",
|
|
298
|
-
paths.statusPath,
|
|
299
|
-
"Idea status must be a repository-owned regular file named status.yaml.",
|
|
300
|
-
`Create ${paths.statusPath} as canonical YAML.`,
|
|
301
|
-
));
|
|
302
|
-
continue;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
let status;
|
|
306
|
-
try {
|
|
307
|
-
status = parseIdeaStatus(
|
|
308
|
-
await filesystem.readFile(resolve(root, paths.statusPath), "utf8"),
|
|
309
|
-
{ objectIdLength: repositoryObjectIdLength },
|
|
310
|
-
);
|
|
311
|
-
} catch (caught) {
|
|
312
|
-
diagnostics.push(error(
|
|
313
|
-
"idea.status.invalid",
|
|
314
|
-
paths.statusPath,
|
|
315
|
-
caught.message,
|
|
316
|
-
"Rewrite status.yaml in canonical form.",
|
|
317
|
-
));
|
|
318
|
-
continue;
|
|
319
|
-
}
|
|
320
|
-
if (status.id !== entry.name) {
|
|
321
|
-
diagnostics.push(error(
|
|
322
|
-
"idea.status.id-mismatch",
|
|
323
|
-
`${paths.statusPath}#id`,
|
|
324
|
-
`Status id ${status.id} does not match ${entry.name}.`,
|
|
325
|
-
"Use the same canonical ULID in the folder and status id.",
|
|
326
|
-
));
|
|
327
|
-
}
|
|
328
|
-
if (status.alias !== undefined) {
|
|
329
|
-
if (ideaIds.has(status.alias)) {
|
|
330
|
-
diagnostics.push(error(
|
|
331
|
-
"idea.alias.id-collision",
|
|
332
|
-
`${paths.statusPath}#alias`,
|
|
333
|
-
`Alias ${status.alias} collides with an idea ULID.`,
|
|
334
|
-
"Choose an alias that is distinct from every idea ULID.",
|
|
335
|
-
));
|
|
336
|
-
}
|
|
337
|
-
const aliasOwner = aliases.get(status.alias);
|
|
338
|
-
if (aliasOwner) {
|
|
339
|
-
diagnostics.push(error(
|
|
340
|
-
"idea.alias.duplicate",
|
|
341
|
-
`${paths.statusPath}#alias`,
|
|
342
|
-
`Alias ${status.alias} is shared by ${aliasOwner} and ${entry.name}.`,
|
|
343
|
-
"Assign a unique exact case-sensitive alias.",
|
|
344
|
-
));
|
|
345
|
-
} else {
|
|
346
|
-
aliases.set(status.alias, entry.name);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
if (
|
|
350
|
-
!validDirectories ||
|
|
351
|
-
!validDocuments ||
|
|
352
|
-
diagnostics.some(({ code, path }) =>
|
|
353
|
-
code === "idea.world.symlink" && path.startsWith(`${paths.outerPath}/`)
|
|
354
|
-
)
|
|
355
|
-
) continue;
|
|
356
|
-
|
|
357
|
-
let revisions;
|
|
358
|
-
try {
|
|
359
|
-
revisions = {
|
|
360
|
-
idealRevision: requiredTree(worldObjects, paths.idealPath),
|
|
361
|
-
implementationRevision: requiredTree(worldObjects, paths.innerPath),
|
|
362
|
-
deploymentRevision: requiredTree(worldObjects, paths.outerPath),
|
|
363
|
-
};
|
|
364
|
-
} catch (caught) {
|
|
365
|
-
diagnostics.push(error(
|
|
366
|
-
"idea.revision.unavailable",
|
|
367
|
-
paths.ideaPath,
|
|
368
|
-
caught.message,
|
|
369
|
-
"Ensure every world can be represented as a Git tree.",
|
|
370
|
-
));
|
|
371
|
-
continue;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
const worlds = {
|
|
375
|
-
idealRevision: {
|
|
376
|
-
name: "Ideal World",
|
|
377
|
-
displayName: "理想世界",
|
|
378
|
-
path: paths.idealPath,
|
|
379
|
-
documentPath: paths.ideaDocumentPath,
|
|
380
|
-
},
|
|
381
|
-
implementationRevision: {
|
|
382
|
-
name: "Inner World",
|
|
383
|
-
displayName: "主体世界",
|
|
384
|
-
path: paths.innerPath,
|
|
385
|
-
documentPath: paths.implementationDocumentPath,
|
|
386
|
-
},
|
|
387
|
-
deploymentRevision: {
|
|
388
|
-
name: "Outer World",
|
|
389
|
-
displayName: "现实世界",
|
|
390
|
-
path: paths.outerPath,
|
|
391
|
-
documentPath: paths.deploymentDocumentPath,
|
|
392
|
-
},
|
|
393
|
-
};
|
|
394
|
-
const idea = {
|
|
395
|
-
id: entry.name,
|
|
396
|
-
path: folderPath,
|
|
397
|
-
relativePath: paths.ideaPath,
|
|
398
|
-
revisions,
|
|
399
|
-
...revisions,
|
|
400
|
-
state: deriveIdeaState(revisions, status),
|
|
401
|
-
status,
|
|
402
|
-
statusPath: paths.statusPath,
|
|
403
|
-
ledgerPath: paths.ledgerPath,
|
|
404
|
-
worlds,
|
|
405
|
-
};
|
|
406
|
-
if (status.alias !== undefined) idea.alias = status.alias;
|
|
407
|
-
ideas.push(idea);
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
return { diagnostics, ideas };
|
|
411
|
-
}
|