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,55 @@
|
|
|
1
|
+
import { parseIdeaStatus } from "../../foundation/idea-model/index.ts";
|
|
2
|
+
import { reduceIdeaEvent } from "../../foundation/event-codec/index.ts";
|
|
3
|
+
import { type BusinessFileSystem, type Diagnostic, type EventStore, type ProjectConfig } from "./business-types.ts";
|
|
4
|
+
import type { IdeaControlProjection, IdeaSubmissionsProjection } from "../../foundation/report/types.ts";
|
|
5
|
+
export interface LayoutDiagnostic extends Diagnostic {
|
|
6
|
+
level: "error";
|
|
7
|
+
path: string;
|
|
8
|
+
}
|
|
9
|
+
interface WorldRevision {
|
|
10
|
+
name: string;
|
|
11
|
+
displayName: string;
|
|
12
|
+
path: string;
|
|
13
|
+
documentPath: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ObservedIdea {
|
|
16
|
+
id: string;
|
|
17
|
+
alias?: string;
|
|
18
|
+
path: string;
|
|
19
|
+
relativePath: string;
|
|
20
|
+
revisions: {
|
|
21
|
+
idealRevision: string;
|
|
22
|
+
implementationRevision: string;
|
|
23
|
+
deploymentRevision: string;
|
|
24
|
+
};
|
|
25
|
+
idealRevision: string;
|
|
26
|
+
implementationRevision: string;
|
|
27
|
+
deploymentRevision: string;
|
|
28
|
+
state: string;
|
|
29
|
+
status: ReturnType<typeof parseIdeaStatus>;
|
|
30
|
+
control?: IdeaControlProjection;
|
|
31
|
+
submissions?: IdeaSubmissionsProjection;
|
|
32
|
+
statusPath: string;
|
|
33
|
+
ledgerPath: string;
|
|
34
|
+
worlds: {
|
|
35
|
+
idealRevision: WorldRevision;
|
|
36
|
+
implementationRevision: WorldRevision;
|
|
37
|
+
deploymentRevision: WorldRevision;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface IdeaLayout {
|
|
41
|
+
diagnostics: LayoutDiagnostic[];
|
|
42
|
+
ideas: ObservedIdea[];
|
|
43
|
+
}
|
|
44
|
+
export declare function inspectIdeaLayout({ config, filesystem, root, gitRoot, snapshotTree, eventOverrides, projectedEvents, projectedRequests, }: {
|
|
45
|
+
config: ProjectConfig | null;
|
|
46
|
+
filesystem?: BusinessFileSystem | undefined;
|
|
47
|
+
root: string;
|
|
48
|
+
gitRoot?: string | undefined;
|
|
49
|
+
snapshotTree?: string | undefined;
|
|
50
|
+
eventOverrides?: Map<string, EventStore> | undefined;
|
|
51
|
+
projectedEvents?: boolean | undefined;
|
|
52
|
+
projectedRequests?: Map<string, Parameters<typeof reduceIdeaEvent>[1]> | undefined;
|
|
53
|
+
}): Promise<IdeaLayout>;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=idea-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idea-layout.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/idea-layout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgC,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACrG,OAAO,EAGL,eAAe,EAEhB,MAAM,uCAAuC,CAAC;AAO/C,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,aAAa,EAEnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAI1C,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE;QACT,aAAa,EAAE,MAAM,CAAC;QACtB,sBA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CACpF,GAAG,OAAO,CAAC,UAAU,CAAC,CAuYtB"}
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
import { lstat, readFile, readdir } from "node:fs/promises";
|
|
2
|
+
import { relative, resolve } from "node:path";
|
|
3
|
+
import { deriveIdeaState, isValidUlid, parseIdeaStatus } from "../../foundation/idea-model/index.js";
|
|
4
|
+
import { eventLifecycleStatus, parseIdeaEvents, reduceIdeaEvent, replayIdeaEvents, } from "../../foundation/event-codec/index.js";
|
|
5
|
+
import { detectEventFormat } from "../../foundation/event-history/index.js";
|
|
6
|
+
import { readEventStorage } from "../../foundation/event-store/index.js";
|
|
7
|
+
import { projectEventSnapshot } from "../../foundation/projection-cache/index.js";
|
|
8
|
+
import { inspectTreePaths, worktreeSnapshot } from "../../foundation/git/index.js";
|
|
9
|
+
import { IDEAS_ROOT, ideaPaths } from "../../foundation/coordinates/index.js";
|
|
10
|
+
import { errorMessage, } from "./business-types.js";
|
|
11
|
+
const DEFAULT_FILESYSTEM = { lstat, readFile, readdir };
|
|
12
|
+
const SUBMISSION_PHASES = Object.freeze({
|
|
13
|
+
ideal: {
|
|
14
|
+
phase: "ideal",
|
|
15
|
+
submit: "submitIdeal",
|
|
16
|
+
decision: "acceptIdeal",
|
|
17
|
+
revision: "idealRevision",
|
|
18
|
+
submitted: "submittedIdealRevision",
|
|
19
|
+
accepted: "approvedRevision",
|
|
20
|
+
},
|
|
21
|
+
inner: {
|
|
22
|
+
phase: "inner",
|
|
23
|
+
submit: "submitInner",
|
|
24
|
+
decision: "acceptInner",
|
|
25
|
+
revision: "implementationRevision",
|
|
26
|
+
submitted: "submittedImplementationRevision",
|
|
27
|
+
accepted: "implementationAcceptedRevision",
|
|
28
|
+
},
|
|
29
|
+
outer: {
|
|
30
|
+
phase: "outer",
|
|
31
|
+
submit: "submitOuter",
|
|
32
|
+
decision: "acceptOuter",
|
|
33
|
+
revision: "deploymentRevision",
|
|
34
|
+
submitted: "submittedDeploymentRevision",
|
|
35
|
+
accepted: "deploymentAcceptedRevision",
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
/** @pure */
|
|
39
|
+
function projectSubmissions(revisions, status, state) {
|
|
40
|
+
const phase = (key) => {
|
|
41
|
+
const definition = SUBMISSION_PHASES[key];
|
|
42
|
+
const currentRevision = revisions[definition.revision];
|
|
43
|
+
const submittedRevision = status[definition.submitted];
|
|
44
|
+
const acceptedRevision = status[definition.accepted];
|
|
45
|
+
const submissionState = acceptedRevision === currentRevision
|
|
46
|
+
? "accepted"
|
|
47
|
+
: submittedRevision === currentRevision
|
|
48
|
+
? "submitted"
|
|
49
|
+
: submittedRevision !== undefined || acceptedRevision !== undefined
|
|
50
|
+
? "stale"
|
|
51
|
+
: "unsubmitted";
|
|
52
|
+
return {
|
|
53
|
+
phase: definition.phase,
|
|
54
|
+
submit: definition.submit,
|
|
55
|
+
decision: definition.decision,
|
|
56
|
+
state: submissionState,
|
|
57
|
+
revision: {
|
|
58
|
+
field: definition.revision,
|
|
59
|
+
value: currentRevision,
|
|
60
|
+
},
|
|
61
|
+
...(submittedRevision === undefined ? {} : { submittedRevision }),
|
|
62
|
+
...(acceptedRevision === undefined ? {} : { acceptedRevision }),
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
return {
|
|
66
|
+
current: state === "preparing"
|
|
67
|
+
? "ideal"
|
|
68
|
+
: state === "implementing"
|
|
69
|
+
? "inner"
|
|
70
|
+
: state === "deploying"
|
|
71
|
+
? "outer"
|
|
72
|
+
: null,
|
|
73
|
+
ideal: phase("ideal"),
|
|
74
|
+
inner: phase("inner"),
|
|
75
|
+
outer: phase("outer"),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function displayPath(root, path) {
|
|
79
|
+
return relative(root, path).replaceAll("\\", "/");
|
|
80
|
+
}
|
|
81
|
+
function error(code, path, message, remediation) {
|
|
82
|
+
return { code, level: "error", path, message, remediation };
|
|
83
|
+
}
|
|
84
|
+
async function metadata(path, filesystem) {
|
|
85
|
+
try {
|
|
86
|
+
return await filesystem.lstat(path);
|
|
87
|
+
}
|
|
88
|
+
catch (caught) {
|
|
89
|
+
if (caught instanceof Error && "code" in caught && caught.code === "ENOENT")
|
|
90
|
+
return null;
|
|
91
|
+
throw caught;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
async function requireDirectory(root, path, diagnostics, filesystem) {
|
|
95
|
+
const absolute = resolve(root, path);
|
|
96
|
+
const value = await metadata(absolute, filesystem);
|
|
97
|
+
if (!value || !value.isDirectory() || value.isSymbolicLink()) {
|
|
98
|
+
diagnostics.push(error("idea.world.invalid-directory", path, `Required world path must be a repository-owned regular directory: ${path}`, `Create ${path} as a regular directory without symlinks.`));
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
async function requireDocument(root, path, diagnostics, filesystem) {
|
|
104
|
+
const absolute = resolve(root, path);
|
|
105
|
+
const value = await metadata(absolute, filesystem);
|
|
106
|
+
if (!value || !value.isFile() || value.isSymbolicLink()) {
|
|
107
|
+
diagnostics.push(error("idea.world.missing-document", path, `Required world entry must be a repository-owned regular file: ${path}`, `Create ${path} as a regular file without symlinks.`));
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
async function requireLedger(root, path, diagnostics, filesystem) {
|
|
113
|
+
const value = await metadata(resolve(root, path), filesystem);
|
|
114
|
+
if (!value) {
|
|
115
|
+
diagnostics.push(error("idea.ledger.missing-file", path, `Required idea ledger does not exist: ${path}`, `Create ${path} as a repository-owned regular file.`));
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
if (!value.isFile() || value.isSymbolicLink()) {
|
|
119
|
+
diagnostics.push(error("idea.ledger.invalid-file", path, `Required idea ledger must be a repository-owned regular file: ${path}`, `Replace ${path} with a regular file.`));
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
async function rejectSymlinks(root, path, diagnostics, filesystem) {
|
|
125
|
+
const absolute = resolve(root, path);
|
|
126
|
+
for (const entry of await filesystem.readdir(absolute, { withFileTypes: true })) {
|
|
127
|
+
const entryPath = `${path}/${entry.name}`;
|
|
128
|
+
const value = await filesystem.lstat(resolve(root, entryPath));
|
|
129
|
+
if (value.isSymbolicLink()) {
|
|
130
|
+
diagnostics.push(error("idea.world.symlink", entryPath, `World content must not use symlinks: ${entryPath}`, "Replace the symlink with repository-owned regular content."));
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if (value.isDirectory()) {
|
|
134
|
+
await rejectSymlinks(root, entryPath, diagnostics, filesystem);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function objectIdLength(tree) {
|
|
139
|
+
if (/^[0-9a-f]{40}$/.test(tree))
|
|
140
|
+
return 40;
|
|
141
|
+
if (/^[0-9a-f]{64}$/.test(tree))
|
|
142
|
+
return 64;
|
|
143
|
+
throw new Error(`Unsupported Git tree object ID: ${tree}`);
|
|
144
|
+
}
|
|
145
|
+
function requiredTree(objects, path) {
|
|
146
|
+
const inspected = objects.get(path);
|
|
147
|
+
if (!inspected || inspected.type !== "tree" || inspected.object === null) {
|
|
148
|
+
throw new Error(`${path} does not resolve to a Git tree`);
|
|
149
|
+
}
|
|
150
|
+
return inspected.object;
|
|
151
|
+
}
|
|
152
|
+
export async function inspectIdeaLayout({ config, filesystem = DEFAULT_FILESYSTEM, root, gitRoot = root, snapshotTree, eventOverrides, projectedEvents = false, projectedRequests, }) {
|
|
153
|
+
const diagnostics = [];
|
|
154
|
+
const ideasRoot = resolve(root, IDEAS_ROOT);
|
|
155
|
+
const ideasRootMetadata = await metadata(ideasRoot, filesystem);
|
|
156
|
+
if (!ideasRootMetadata) {
|
|
157
|
+
return {
|
|
158
|
+
diagnostics: [error("layout.ideas.missing", IDEAS_ROOT, `Silvermoon ideas directory does not exist: ${IDEAS_ROOT}`, `Create ${IDEAS_ROOT} as a repository-owned directory.`)],
|
|
159
|
+
ideas: [],
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
if (!ideasRootMetadata.isDirectory() || ideasRootMetadata.isSymbolicLink()) {
|
|
163
|
+
return {
|
|
164
|
+
diagnostics: [error("layout.ideas.invalid", IDEAS_ROOT, "The Silvermoon ideas path must be a repository-owned regular directory.", `Replace ${IDEAS_ROOT} with a regular directory.`)],
|
|
165
|
+
ideas: [],
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
let resolvedSnapshotTree;
|
|
169
|
+
let repositoryObjectIdLength;
|
|
170
|
+
try {
|
|
171
|
+
resolvedSnapshotTree = snapshotTree
|
|
172
|
+
?? worktreeSnapshot(gitRoot, { paths: [IDEAS_ROOT] }).tree;
|
|
173
|
+
repositoryObjectIdLength = objectIdLength(resolvedSnapshotTree);
|
|
174
|
+
}
|
|
175
|
+
catch (caught) {
|
|
176
|
+
return {
|
|
177
|
+
diagnostics: [error("git.object-format.unavailable", IDEAS_ROOT, errorMessage(caught), "Run Silvermoon inside a Git repository with a supported object format.")],
|
|
178
|
+
ideas: [],
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
const aliases = new Map();
|
|
182
|
+
const ideas = [];
|
|
183
|
+
const caseNames = new Map();
|
|
184
|
+
const entries = (await filesystem.readdir(ideasRoot, { withFileTypes: true }))
|
|
185
|
+
.sort((left, right) => left.name.localeCompare(right.name));
|
|
186
|
+
const ideaIds = new Set(entries.filter((entry) => isValidUlid(entry.name)).map((entry) => entry.name));
|
|
187
|
+
const worldPaths = [...ideaIds].flatMap((id) => {
|
|
188
|
+
const paths = ideaPaths(id);
|
|
189
|
+
return [paths.idealPath, paths.innerPath, paths.outerPath];
|
|
190
|
+
});
|
|
191
|
+
const snapshotEntry = filesystem.snapshotEntry;
|
|
192
|
+
let worldObjects;
|
|
193
|
+
try {
|
|
194
|
+
worldObjects = typeof snapshotEntry === "function"
|
|
195
|
+
? new Map(worldPaths.map((path) => {
|
|
196
|
+
const entry = snapshotEntry(path);
|
|
197
|
+
return [
|
|
198
|
+
path,
|
|
199
|
+
{
|
|
200
|
+
object: entry?.object ?? null,
|
|
201
|
+
type: entry?.type ?? "missing",
|
|
202
|
+
},
|
|
203
|
+
];
|
|
204
|
+
}))
|
|
205
|
+
: inspectTreePaths(gitRoot, resolvedSnapshotTree, worldPaths);
|
|
206
|
+
}
|
|
207
|
+
catch (caught) {
|
|
208
|
+
return {
|
|
209
|
+
diagnostics: [error("idea.revision.unavailable", IDEAS_ROOT, errorMessage(caught), "Ensure every world can be represented as a Git tree.")],
|
|
210
|
+
ideas: [],
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
let legacyEvents = false;
|
|
214
|
+
const useProjections = config?.version === 2 && projectedEvents && !eventOverrides
|
|
215
|
+
&& typeof snapshotEntry === "function"
|
|
216
|
+
&& [...ideaIds].every((id) => snapshotEntry(ideaPaths(id).eventsPath)?.type === "blob");
|
|
217
|
+
if (config?.version === 2 && !useProjections) {
|
|
218
|
+
try {
|
|
219
|
+
const overrides = eventOverrides && new Map([...eventOverrides].map(([id, store]) => [
|
|
220
|
+
ideaPaths(id).eventsPath,
|
|
221
|
+
store.bytes,
|
|
222
|
+
]));
|
|
223
|
+
legacyEvents = await detectEventFormat({
|
|
224
|
+
root: gitRoot,
|
|
225
|
+
tree: resolvedSnapshotTree,
|
|
226
|
+
...(overrides === undefined ? {} : { overrides }),
|
|
227
|
+
}) === "legacy";
|
|
228
|
+
}
|
|
229
|
+
catch (caught) {
|
|
230
|
+
return {
|
|
231
|
+
diagnostics: [error("idea.events.format-invalid", IDEAS_ROOT, errorMessage(caught), "Inspect the source repository's historical event format and preserve all logs.")],
|
|
232
|
+
ideas: [],
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
for (const entry of entries) {
|
|
237
|
+
const folderPath = resolve(ideasRoot, entry.name);
|
|
238
|
+
const folderMetadata = await filesystem.lstat(folderPath);
|
|
239
|
+
const relativePath = displayPath(root, folderPath);
|
|
240
|
+
const folded = entry.name.toUpperCase();
|
|
241
|
+
const existingCase = caseNames.get(folded);
|
|
242
|
+
if (existingCase && existingCase !== entry.name) {
|
|
243
|
+
diagnostics.push(error("idea.id.case-collision", relativePath, `Idea identities collide by case: ${existingCase} and ${entry.name}.`, "Keep exactly one canonical uppercase ULID identity."));
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
caseNames.set(folded, entry.name);
|
|
247
|
+
}
|
|
248
|
+
if (!isValidUlid(entry.name)) {
|
|
249
|
+
diagnostics.push(error("idea.id.invalid", relativePath, `Idea folders must use canonical ULID identities: ${entry.name}`, "Rename the folder to one canonical uppercase ULID."));
|
|
250
|
+
continue;
|
|
251
|
+
}
|
|
252
|
+
if (!folderMetadata.isDirectory() || folderMetadata.isSymbolicLink()) {
|
|
253
|
+
diagnostics.push(error("idea.folder.invalid", relativePath, "Idea must be a repository-owned regular directory.", "Replace it with a regular directory."));
|
|
254
|
+
continue;
|
|
255
|
+
}
|
|
256
|
+
const paths = ideaPaths(entry.name);
|
|
257
|
+
const eventFormat = config?.version === 2;
|
|
258
|
+
const stateName = eventFormat ? "events.jsonl" : "status.yaml";
|
|
259
|
+
const statePath = eventFormat ? paths.eventsPath : paths.statusPath;
|
|
260
|
+
const children = (await filesystem.readdir(folderPath, { withFileTypes: true }))
|
|
261
|
+
.sort((left, right) => left.name.localeCompare(right.name));
|
|
262
|
+
for (const child of children) {
|
|
263
|
+
if (child.name === stateName ||
|
|
264
|
+
child.name === "ledger.md" ||
|
|
265
|
+
child.name === "outer")
|
|
266
|
+
continue;
|
|
267
|
+
diagnostics.push(error(child.name.toLowerCase().includes("status")
|
|
268
|
+
? "idea.status.unexpected-file"
|
|
269
|
+
: "idea.entry.unexpected", `${paths.ideaPath}/${child.name}`, `Unexpected entry at the idea root: ${child.name}`, `Keep only ${stateName}, ledger.md, and outer/ at the idea root; put supporting files in their world.`));
|
|
270
|
+
}
|
|
271
|
+
await requireLedger(root, paths.ledgerPath, diagnostics, filesystem);
|
|
272
|
+
const requiredDirectories = [
|
|
273
|
+
paths.outerPath,
|
|
274
|
+
paths.innerPath,
|
|
275
|
+
paths.idealPath,
|
|
276
|
+
];
|
|
277
|
+
const requiredDocuments = [
|
|
278
|
+
paths.deploymentDocumentPath,
|
|
279
|
+
paths.implementationDocumentPath,
|
|
280
|
+
paths.ideaDocumentPath,
|
|
281
|
+
];
|
|
282
|
+
const validDirectories = (await Promise.all(requiredDirectories.map((path) => requireDirectory(root, path, diagnostics, filesystem)))).every(Boolean);
|
|
283
|
+
const validDocuments = (await Promise.all(requiredDocuments.map((path) => requireDocument(root, path, diagnostics, filesystem)))).every(Boolean);
|
|
284
|
+
if (validDirectories) {
|
|
285
|
+
await rejectSymlinks(root, paths.outerPath, diagnostics, filesystem);
|
|
286
|
+
}
|
|
287
|
+
const statusMetadata = await metadata(resolve(root, statePath), filesystem);
|
|
288
|
+
if (!statusMetadata || !statusMetadata.isFile()
|
|
289
|
+
|| statusMetadata.isSymbolicLink()) {
|
|
290
|
+
diagnostics.push(error("idea.status.invalid-file", statePath, `Idea state must be a repository-owned regular file named ${stateName}.`, `Restore ${statePath} from its authoritative history.`));
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
let status;
|
|
294
|
+
let eventState;
|
|
295
|
+
try {
|
|
296
|
+
const options = { objectIdLength: repositoryObjectIdLength, legacy: legacyEvents };
|
|
297
|
+
if (eventFormat && useProjections) {
|
|
298
|
+
if (typeof filesystem.snapshotEntry !== "function"
|
|
299
|
+
|| typeof filesystem.snapshotEntries !== "function"
|
|
300
|
+
|| typeof filesystem.snapshotFile !== "function") {
|
|
301
|
+
throw new TypeError("Projected event inspection requires snapshot filesystem capabilities.");
|
|
302
|
+
}
|
|
303
|
+
const projected = await projectEventSnapshot(gitRoot, entry.name, paths, options, {
|
|
304
|
+
lstat: filesystem.lstat,
|
|
305
|
+
readFile: filesystem.readFile,
|
|
306
|
+
readdir: filesystem.readdir,
|
|
307
|
+
snapshotEntry: filesystem.snapshotEntry,
|
|
308
|
+
snapshotEntries: filesystem.snapshotEntries,
|
|
309
|
+
snapshotFile: filesystem.snapshotFile,
|
|
310
|
+
});
|
|
311
|
+
const request = projectedRequests?.get(entry.name);
|
|
312
|
+
const reduced = request ? reduceIdeaEvent(projected.state, request, options) : null;
|
|
313
|
+
if (reduced && !reduced.ok && "sequence" in reduced && "code" in reduced) {
|
|
314
|
+
throw new Error(`Event ${reduced.sequence}: ${reduced.code}`);
|
|
315
|
+
}
|
|
316
|
+
const reducedState = reduced && "state" in reduced ? reduced.state : projected.state;
|
|
317
|
+
eventState = reducedState;
|
|
318
|
+
status = eventLifecycleStatus(reducedState.status);
|
|
319
|
+
}
|
|
320
|
+
else if (eventFormat) {
|
|
321
|
+
const store = eventOverrides?.get(entry.name)
|
|
322
|
+
?? await readEventStorage(root, paths, options, filesystem);
|
|
323
|
+
const events = parseIdeaEvents(store.bytes, options);
|
|
324
|
+
const result = replayIdeaEvents(entry.name, events, options);
|
|
325
|
+
if (!result.ok && "sequence" in result && "code" in result) {
|
|
326
|
+
throw new Error(`Event ${result.sequence}: ${result.code}`);
|
|
327
|
+
}
|
|
328
|
+
if (!("state" in result))
|
|
329
|
+
throw new Error("Event replay did not return state.");
|
|
330
|
+
eventState = result.state;
|
|
331
|
+
status = eventLifecycleStatus(result.state.status);
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
status = parseIdeaStatus((await filesystem.readFile(resolve(root, statePath))).toString("utf8"), options);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
catch (caught) {
|
|
338
|
+
diagnostics.push(error("idea.status.invalid", statePath, errorMessage(caught), eventFormat
|
|
339
|
+
? "Inspect the primary baseline, then use the event command to revise an owned candidate or repair a reduction-failed baseline."
|
|
340
|
+
: "Rewrite status.yaml in canonical form."));
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
if (status.id !== entry.name) {
|
|
344
|
+
diagnostics.push(error("idea.status.id-mismatch", `${statePath}#id`, `Status id ${status.id} does not match ${entry.name}.`, "Use the same canonical ULID in the folder and status id."));
|
|
345
|
+
}
|
|
346
|
+
if (status.alias !== undefined) {
|
|
347
|
+
if (ideaIds.has(status.alias)) {
|
|
348
|
+
diagnostics.push(error("idea.alias.id-collision", `${statePath}#alias`, `Alias ${status.alias} collides with an idea ULID.`, "Choose an alias that is distinct from every idea ULID."));
|
|
349
|
+
}
|
|
350
|
+
const aliasOwner = aliases.get(status.alias);
|
|
351
|
+
if (aliasOwner) {
|
|
352
|
+
diagnostics.push(error("idea.alias.duplicate", `${statePath}#alias`, `Alias ${status.alias} is shared by ${aliasOwner} and ${entry.name}.`, "Assign a unique exact case-sensitive alias."));
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
355
|
+
aliases.set(status.alias, entry.name);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
if (!validDirectories ||
|
|
359
|
+
!validDocuments ||
|
|
360
|
+
diagnostics.some(({ code, path }) => code === "idea.world.symlink" && path.startsWith(`${paths.outerPath}/`)))
|
|
361
|
+
continue;
|
|
362
|
+
let revisions;
|
|
363
|
+
try {
|
|
364
|
+
revisions = {
|
|
365
|
+
idealRevision: requiredTree(worldObjects, paths.idealPath),
|
|
366
|
+
implementationRevision: requiredTree(worldObjects, paths.innerPath),
|
|
367
|
+
deploymentRevision: requiredTree(worldObjects, paths.outerPath),
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
catch (caught) {
|
|
371
|
+
diagnostics.push(error("idea.revision.unavailable", paths.ideaPath, errorMessage(caught), "Ensure every world can be represented as a Git tree."));
|
|
372
|
+
continue;
|
|
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 state = deriveIdeaState(revisions, status);
|
|
395
|
+
const submissions = eventState === undefined
|
|
396
|
+
? undefined
|
|
397
|
+
: projectSubmissions(revisions, eventState.status, state);
|
|
398
|
+
const phaseSubmission = submissions === undefined
|
|
399
|
+
? undefined
|
|
400
|
+
: state === "preparing"
|
|
401
|
+
? submissions.ideal
|
|
402
|
+
: state === "implementing"
|
|
403
|
+
? submissions.inner
|
|
404
|
+
: state === "deploying"
|
|
405
|
+
? submissions.outer
|
|
406
|
+
: undefined;
|
|
407
|
+
const control = eventState?.control === undefined
|
|
408
|
+
? undefined
|
|
409
|
+
: state === "completed" || state === "abandoned"
|
|
410
|
+
? { ...eventState.control, owner: "none" }
|
|
411
|
+
: phaseSubmission?.state === "stale"
|
|
412
|
+
? { ...eventState.control, owner: "downstream" }
|
|
413
|
+
: eventState.control;
|
|
414
|
+
const idea = {
|
|
415
|
+
id: entry.name,
|
|
416
|
+
path: folderPath,
|
|
417
|
+
relativePath: paths.ideaPath,
|
|
418
|
+
revisions,
|
|
419
|
+
...revisions,
|
|
420
|
+
state,
|
|
421
|
+
status,
|
|
422
|
+
statusPath: statePath,
|
|
423
|
+
ledgerPath: paths.ledgerPath,
|
|
424
|
+
worlds,
|
|
425
|
+
...(control === undefined ? {} : { control }),
|
|
426
|
+
...(submissions === undefined ? {} : { submissions }),
|
|
427
|
+
};
|
|
428
|
+
if (status.alias !== undefined)
|
|
429
|
+
idea.alias = status.alias;
|
|
430
|
+
ideas.push(idea);
|
|
431
|
+
}
|
|
432
|
+
return { diagnostics, ideas };
|
|
433
|
+
}
|
|
434
|
+
//# sourceMappingURL=idea-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idea-layout.js","sourceRoot":"","sources":["../../../../src/business/shared/idea-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACrG,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAML,YAAY,GACb,MAAM,qBAAqB,CAAC;AAO7B,MAAM,kBAAkB,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;AAwCxD,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE;QACL,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,aAAa;QACvB,QAAQ,EAAE,eAAe;QACzB,SAAS,EAAE,wBAAwB;QACnC,QAAQ,EAAE,kBAAkB;KAC7B;IACD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,a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SAAS;YAC/C,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,KAAK,KAAK,WAAW,IAAI,KAAK,KAAK,WAAW;gBAC9C,CAAC,CAAC,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,KAAK,EAAE,MAAe,EAAE;gBACnD,CAAC,CAAC,eAAe,EAAE,KAAK,KAAK,OAAO;oBAClC,CAAC,CAAC,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,KAAK,EAAE,YAAqB,EAAE;oBACzD,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;QAC3B,MAAM,IAAI,GAAiB;YACzB,EAAE,EAAE,KAAK,CAAC,IAAI;YACd,IAAI,EAAE,UAAU;YAChB,YAAY,EAAE,KAAK,CAAC,QAAQ;YAC5B,SAAS;YACT,GAAG,SAAS;YACZ,KAAK;YACL,MAAM;YACN,UAAU,EAAE,SAAS;YACrB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,MAAM;YACN,GAAG,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;YAC7C,GAAG,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC;SACtD,CAAC;QACF,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS;YAAE,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1D,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IAED,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { assessIdeaCreationReadiness } from "./assess-idea-creation-readiness.ts";
|
|
2
|
+
export { asBusinessFileSystem, errorMessage, repositoryProblem, requireSnapshotFileSystem, traceBusinessAsync, } from "./business-types.ts";
|
|
3
|
+
export type { BusinessFileSystem, CommandRuntime, Diagnostic, EventOptions, EventStore, IdeaPaths, Problem, ProjectConfig, ProjectObservation, SnapshotObservation, } from "./business-types.ts";
|
|
4
|
+
export { assessRepositoryReadiness } from "./assess-repository-readiness.ts";
|
|
5
|
+
export { assessRepositoryReadinessWith } from "./assess-repository-readiness-with.ts";
|
|
6
|
+
export { evaluateLocalReadiness } from "./evaluate-local-readiness.ts";
|
|
7
|
+
export { evaluatePrimaryRelation } from "./evaluate-primary-relation.ts";
|
|
8
|
+
export { inspectCandidate } from "./inspect-candidate.ts";
|
|
9
|
+
export { inspectIdeaLayout } from "./idea-layout.ts";
|
|
10
|
+
export { metadataFailureObservation } from "./metadata-failure-observation.ts";
|
|
11
|
+
export { observeDevice } from "./observe-device.ts";
|
|
12
|
+
export { observeIdea } from "./observe-idea.ts";
|
|
13
|
+
export { observeProject } from "./observe-project.ts";
|
|
14
|
+
export { observeSnapshot } from "./observe-snapshot.ts";
|
|
15
|
+
export { readIdeaInventoryItem } from "./read-idea-inventory-item.ts";
|
|
16
|
+
export { resolveIdea } from "./resolve-idea.ts";
|
|
17
|
+
export { withObservationLanguage } from "./with-observation-language.ts";
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,UAAU,EACV,SAAS,EACT,OAAO,EACP,aAAa,EACb,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,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,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { assessIdeaCreationReadiness } from "./assess-idea-creation-readiness.js";
|
|
2
|
+
export { asBusinessFileSystem, errorMessage, repositoryProblem, requireSnapshotFileSystem, traceBusinessAsync, } from "./business-types.js";
|
|
3
|
+
export { assessRepositoryReadiness } from "./assess-repository-readiness.js";
|
|
4
|
+
export { assessRepositoryReadinessWith } from "./assess-repository-readiness-with.js";
|
|
5
|
+
export { evaluateLocalReadiness } from "./evaluate-local-readiness.js";
|
|
6
|
+
export { evaluatePrimaryRelation } from "./evaluate-primary-relation.js";
|
|
7
|
+
export { inspectCandidate } from "./inspect-candidate.js";
|
|
8
|
+
export { inspectIdeaLayout } from "./idea-layout.js";
|
|
9
|
+
export { metadataFailureObservation } from "./metadata-failure-observation.js";
|
|
10
|
+
export { observeDevice } from "./observe-device.js";
|
|
11
|
+
export { observeIdea } from "./observe-idea.js";
|
|
12
|
+
export { observeProject } from "./observe-project.js";
|
|
13
|
+
export { observeSnapshot } from "./observe-snapshot.js";
|
|
14
|
+
export { readIdeaInventoryItem } from "./read-idea-inventory-item.js";
|
|
15
|
+
export { resolveIdea } from "./resolve-idea.js";
|
|
16
|
+
export { withObservationLanguage } from "./with-observation-language.js";
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/business/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAa7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,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,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { EventStore, ProjectConfig } from "./business-types.ts";
|
|
2
|
+
export declare function inspectCandidate(root: string, tree: string, config: ProjectConfig, store: EventStore, bytes: Buffer, id: string, { recovering }?: {
|
|
3
|
+
recovering?: boolean;
|
|
4
|
+
}): Promise<import("./idea-layout.ts").IdeaLayout>;
|
|
5
|
+
//# sourceMappingURL=inspect-candidate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect-candidate.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/inspect-candidate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,UAAU,EACV,aAAa,EACd,MAAM,qBAAqB,CAAC;AAG7B,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,aAAa,EACrB,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,MAAM,EACb,EAAE,EAAE,MAAM,EACV,EAAE,UAAkB,EAAE,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAO,kDA4DtD"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { basename, dirname, resolve } from "node:path";
|
|
2
|
+
import { createGitSnapshotFileSystem } from "../../foundation/snapshot/index.js";
|
|
3
|
+
import { inspectIdeaLayout } from "./idea-layout.js";
|
|
4
|
+
import { asBusinessFileSystem } from "./business-types.js";
|
|
5
|
+
export async function inspectCandidate(root, tree, config, store, bytes, id, { recovering = false } = {}) {
|
|
6
|
+
const path = store.path;
|
|
7
|
+
const filesystem = createGitSnapshotFileSystem({ gitRoot: root, tree });
|
|
8
|
+
const pending = `${path}.pending`;
|
|
9
|
+
let hidePending = false;
|
|
10
|
+
if (recovering && filesystem.snapshotEntry(pending)) {
|
|
11
|
+
const entry = filesystem.snapshotEntry(pending);
|
|
12
|
+
if (entry === null || entry.type !== "blob" || !["100644", "100755"].includes(entry.mode)
|
|
13
|
+
|| !(await filesystem.snapshotFile(pending)).equals(bytes)) {
|
|
14
|
+
throw new Error("Unknown pending event bytes; preserve the recovery plan.");
|
|
15
|
+
}
|
|
16
|
+
hidePending = true;
|
|
17
|
+
}
|
|
18
|
+
async function readDirectory(requested, options) {
|
|
19
|
+
const entries = await filesystem.readdir(requested, options);
|
|
20
|
+
const omitPending = hidePending
|
|
21
|
+
&& resolve(requested) === dirname(resolve(root, path));
|
|
22
|
+
if (options === undefined) {
|
|
23
|
+
const names = [];
|
|
24
|
+
for (const candidate of entries) {
|
|
25
|
+
if (typeof candidate !== "string") {
|
|
26
|
+
throw new TypeError("Snapshot filesystem returned non-string directory entries.");
|
|
27
|
+
}
|
|
28
|
+
if (!omitPending || candidate !== basename(pending))
|
|
29
|
+
names.push(candidate);
|
|
30
|
+
}
|
|
31
|
+
return names;
|
|
32
|
+
}
|
|
33
|
+
const directoryEntries = [];
|
|
34
|
+
for (const candidate of entries) {
|
|
35
|
+
if (typeof candidate !== "object" || candidate === null
|
|
36
|
+
|| !("name" in candidate) || typeof candidate.name !== "string") {
|
|
37
|
+
throw new TypeError("Snapshot filesystem returned invalid directory metadata.");
|
|
38
|
+
}
|
|
39
|
+
if (!omitPending || candidate.name !== basename(pending)) {
|
|
40
|
+
directoryEntries.push(candidate);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return directoryEntries;
|
|
44
|
+
}
|
|
45
|
+
const candidateFilesystem = {
|
|
46
|
+
...asBusinessFileSystem(filesystem),
|
|
47
|
+
readdir: readDirectory,
|
|
48
|
+
};
|
|
49
|
+
const layout = await inspectIdeaLayout({
|
|
50
|
+
root, config, filesystem: candidateFilesystem, snapshotTree: tree,
|
|
51
|
+
eventOverrides: new Map([[id, { ...store, bytes }]]),
|
|
52
|
+
});
|
|
53
|
+
if (layout.diagnostics.length)
|
|
54
|
+
throw new Error(layout.diagnostics.map((d) => d.message).join("; "));
|
|
55
|
+
return layout;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=inspect-candidate.js.map
|