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,18 @@
|
|
|
1
|
+
import { inspectEventHistory } from "../../foundation/event-history/index.ts";
|
|
2
|
+
import { compareCommits, fetchPrimary, inspectRepositoryState } from "../../foundation/git/index.ts";
|
|
3
|
+
import type { CommandRuntime, ReadyObservation, RepositoryReadiness } from "./business-types.ts";
|
|
4
|
+
declare const READINESS_PORTS: Readonly<{
|
|
5
|
+
inspectRepositoryState: typeof inspectRepositoryState;
|
|
6
|
+
fetchPrimary: typeof fetchPrimary;
|
|
7
|
+
compareCommits: typeof compareCommits;
|
|
8
|
+
inspectEventHistory: typeof inspectEventHistory;
|
|
9
|
+
}>;
|
|
10
|
+
export declare function assessRepositoryReadinessWith({ observed, runtime, recheckCommand, root, synchronizePrimary, }: {
|
|
11
|
+
observed: ReadyObservation;
|
|
12
|
+
runtime: CommandRuntime;
|
|
13
|
+
recheckCommand?: string;
|
|
14
|
+
root: string;
|
|
15
|
+
synchronizePrimary?: boolean;
|
|
16
|
+
}, ports?: typeof READINESS_PORTS): Promise<RepositoryReadiness>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=assess-repository-readiness-with.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assess-repository-readiness-with.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/assess-repository-readiness-with.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,sBAAsB,EAAsB,MAAM,+BAA+B,CAAC;AAUzH,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAG7B,QAAA,MAAM,eAAe;;;;;EAEnB,CAAC;AASH,wBAAsB,6BAA6B,CAAC,EAClD,QAAQ,EACR,OAAO,EACP,cAAwC,EACxC,IAAI,EACJ,kBAAyB,GAC1B,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,cAAc,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,EAAE,KAAK,GAAE,OAAO,eAAiC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA+GhF"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { inspectEventHistory } from "../../foundation/event-history/index.js";
|
|
2
|
+
import { compareCommits, fetchPrimary, inspectRepositoryState, sanitizeGitMessage } from "../../foundation/git/index.js";
|
|
3
|
+
import { command, renderEventHistoryInvalid, renderPrimaryAncestryInspectionFailed, renderPrimaryFetchFailed, renderWorktreeInspectionFailed, } from "../../foundation/report/index.js";
|
|
4
|
+
import { evaluateLocalReadiness } from "./evaluate-local-readiness.js";
|
|
5
|
+
import { evaluatePrimaryRelation } from "./evaluate-primary-relation.js";
|
|
6
|
+
import { errorMessage, repositoryProblem } from "./business-types.js";
|
|
7
|
+
const READINESS_PORTS = Object.freeze({
|
|
8
|
+
inspectRepositoryState, fetchPrimary, compareCommits, inspectEventHistory,
|
|
9
|
+
});
|
|
10
|
+
function isPrimaryRelation(value) {
|
|
11
|
+
return value === "aligned" || value === "unknown" || value === "behind"
|
|
12
|
+
|| value === "ahead" || value === "diverged";
|
|
13
|
+
}
|
|
14
|
+
export async function assessRepositoryReadinessWith({ observed, runtime, recheckCommand = "silvermoon whats-next", root, synchronizePrimary = true, }, ports = READINESS_PORTS) {
|
|
15
|
+
const { inspectRepositoryState, fetchPrimary, compareCommits, inspectEventHistory } = ports;
|
|
16
|
+
const language = observed.outputLanguage;
|
|
17
|
+
let repository;
|
|
18
|
+
try {
|
|
19
|
+
repository = inspectRepositoryState(root);
|
|
20
|
+
}
|
|
21
|
+
catch (caught) {
|
|
22
|
+
const problem = {
|
|
23
|
+
type: "worktree-inspection-failed",
|
|
24
|
+
summary: sanitizeGitMessage(errorMessage(caught)),
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
observation: repositoryProblem(observed.observation, [problem]),
|
|
28
|
+
instructions: renderWorktreeInspectionFailed(language, {
|
|
29
|
+
recheckCommand: command(root, recheckCommand),
|
|
30
|
+
}),
|
|
31
|
+
ready: false,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const local = evaluateLocalReadiness({ repository, observed, root, recheckCommand });
|
|
35
|
+
if (!local.ready)
|
|
36
|
+
return local;
|
|
37
|
+
const { branch, changes, head } = repository;
|
|
38
|
+
if (head === null)
|
|
39
|
+
throw new Error("Repository readiness unexpectedly omitted HEAD.");
|
|
40
|
+
if (!synchronizePrimary) {
|
|
41
|
+
return {
|
|
42
|
+
branch,
|
|
43
|
+
changes,
|
|
44
|
+
head,
|
|
45
|
+
observation: observed.observation,
|
|
46
|
+
ready: true,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
const fetched = await runtime.performAction({
|
|
50
|
+
type: "fetch-primary",
|
|
51
|
+
repository: observed.config.primaryRepository,
|
|
52
|
+
branch: observed.config.primaryBranch,
|
|
53
|
+
}, () => ({
|
|
54
|
+
commit: fetchPrimary(root, observed.config),
|
|
55
|
+
}), (caught) => ({
|
|
56
|
+
problem: {
|
|
57
|
+
type: "primary-fetch-failed",
|
|
58
|
+
summary: sanitizeGitMessage(errorMessage(caught)),
|
|
59
|
+
},
|
|
60
|
+
}));
|
|
61
|
+
if (fetched.status === "failure") {
|
|
62
|
+
const message = fetched.problem.summary;
|
|
63
|
+
return {
|
|
64
|
+
observation: repositoryProblem(observed.observation, [{
|
|
65
|
+
type: "primary-fetch-failed",
|
|
66
|
+
summary: message,
|
|
67
|
+
}]),
|
|
68
|
+
instructions: renderPrimaryFetchFailed(language, {
|
|
69
|
+
primaryBranch: observed.config.primaryBranch,
|
|
70
|
+
primaryRepository: observed.config.primaryRepository,
|
|
71
|
+
recheckCommand: command(root, recheckCommand),
|
|
72
|
+
}),
|
|
73
|
+
ready: false,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
const primary = fetched.result.commit;
|
|
77
|
+
let relation;
|
|
78
|
+
try {
|
|
79
|
+
const compared = compareCommits(root, head, primary);
|
|
80
|
+
if (!isPrimaryRelation(compared)) {
|
|
81
|
+
throw new Error(`Git returned an unsupported primary relation: ${compared}`);
|
|
82
|
+
}
|
|
83
|
+
relation = compared;
|
|
84
|
+
}
|
|
85
|
+
catch (caught) {
|
|
86
|
+
return {
|
|
87
|
+
branch,
|
|
88
|
+
head,
|
|
89
|
+
observation: repositoryProblem(observed.observation, [{
|
|
90
|
+
type: "primary-ancestry-inspection-failed",
|
|
91
|
+
summary: sanitizeGitMessage(errorMessage(caught)),
|
|
92
|
+
}]),
|
|
93
|
+
primary,
|
|
94
|
+
instructions: renderPrimaryAncestryInspectionFailed(language, {
|
|
95
|
+
head,
|
|
96
|
+
primary,
|
|
97
|
+
recheckCommand: command(root, recheckCommand),
|
|
98
|
+
}),
|
|
99
|
+
ready: false,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
if (relation === "aligned") {
|
|
103
|
+
if (observed.config.version === 2) {
|
|
104
|
+
try {
|
|
105
|
+
await inspectEventHistory({ root, tree: head, commit: head, config: observed.config, primary });
|
|
106
|
+
}
|
|
107
|
+
catch (caught) {
|
|
108
|
+
return {
|
|
109
|
+
branch, head, primary, ready: false,
|
|
110
|
+
observation: repositoryProblem(observed.observation, [{
|
|
111
|
+
type: "idea.events.history-invalid", summary: errorMessage(caught),
|
|
112
|
+
}]),
|
|
113
|
+
instructions: renderEventHistoryInvalid(language, {
|
|
114
|
+
recheckCommand,
|
|
115
|
+
}),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return { branch, head, observation: observed.observation, primary, ready: true };
|
|
120
|
+
}
|
|
121
|
+
return evaluatePrimaryRelation({
|
|
122
|
+
relation, branch, head, primary, observed, root, recheckCommand,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=assess-repository-readiness-with.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assess-repository-readiness-with.js","sourceRoot":"","sources":["../../../../src/business/shared/assess-repository-readiness-with.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACzH,OAAO,EACL,OAAO,EACP,yBAAyB,EACzB,qCAAqC,EACrC,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAMzE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAEtE,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IACpC,sBAAsB,EAAE,YAAY,EAAE,cAAc,EAAE,mBAAmB;CAC1E,CAAC,CAAC;AAIH,SAAS,iBAAiB,CAAC,KAAa;IACtC,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,QAAQ;WAClE,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,UAAU,CAAC;AACjD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAAC,EAClD,QAAQ,EACR,OAAO,EACP,cAAc,GAAG,uBAAuB,EACxC,IAAI,EACJ,kBAAkB,GAAG,IAAI,GAO1B,EAAE,QAAgC,eAAe;IAChD,MAAM,EAAE,sBAAsB,EAAE,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;IAC5F,MAAM,QAAQ,GAAG,QAAQ,CAAC,cAAc,CAAC;IACzC,IAAI,UAAU,CAAC;IACf,IAAI,CAAC;QACH,UAAU,GAAG,s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
1
|
+
import { assessRepositoryReadinessWith } from "./assess-repository-readiness-with.ts";
|
|
2
|
+
export declare function assessRepositoryReadiness(options: Parameters<typeof assessRepositoryReadinessWith>[0]): Promise<import("./business-types.ts").RepositoryReadiness>;
|
|
3
|
+
//# sourceMappingURL=assess-repository-readiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assess-repository-readiness.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/assess-repository-readiness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAGtF,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC,CAAC,CAAC,8DAO7D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { assessRepositoryReadinessWith } from "./assess-repository-readiness-with.js";
|
|
2
|
+
import { traceBusinessAsync } from "./business-types.js";
|
|
3
|
+
export async function assessRepositoryReadiness(options) {
|
|
4
|
+
return traceBusinessAsync("repository.assess-readiness", {}, () => assessRepositoryReadinessWith(options));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=assess-repository-readiness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assess-repository-readiness.js","sourceRoot":"","sources":["../../../../src/business/shared/assess-repository-readiness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,OAA4D;IAE5D,OAAO,kBAAkB,CACvB,6BAA6B,EAC7B,EAAE,EACF,GAAG,EAAE,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import type { EventStore as FoundationEventStore } from "../../foundation/event-store/storage.ts";
|
|
2
|
+
import type { Observation, Problem, RepositoryBlockedObservation, ProjectReadyObservation } from "../../foundation/report/types.ts";
|
|
3
|
+
export interface Diagnostic {
|
|
4
|
+
code: string;
|
|
5
|
+
level: string;
|
|
6
|
+
message: string;
|
|
7
|
+
remediation: string;
|
|
8
|
+
path?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ProjectConfig {
|
|
11
|
+
version: 1 | 2;
|
|
12
|
+
primaryRepository: string;
|
|
13
|
+
primaryBranch: string;
|
|
14
|
+
preferredLanguage?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IdeaPaths {
|
|
17
|
+
ideaPath: string;
|
|
18
|
+
statusPath: string;
|
|
19
|
+
eventsPath: string;
|
|
20
|
+
ledgerPath: string;
|
|
21
|
+
outerPath: string;
|
|
22
|
+
innerPath: string;
|
|
23
|
+
idealPath: string;
|
|
24
|
+
deploymentDocumentPath: string;
|
|
25
|
+
implementationDocumentPath: string;
|
|
26
|
+
ideaDocumentPath: string;
|
|
27
|
+
}
|
|
28
|
+
export interface EventOptions {
|
|
29
|
+
objectIdLength: number;
|
|
30
|
+
legacy?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export type EventStore = FoundationEventStore;
|
|
33
|
+
export interface SnapshotEntry {
|
|
34
|
+
type: string;
|
|
35
|
+
mode: string;
|
|
36
|
+
object: string;
|
|
37
|
+
size: number | null;
|
|
38
|
+
name: string;
|
|
39
|
+
}
|
|
40
|
+
export interface FileMetadata {
|
|
41
|
+
isDirectory(): boolean;
|
|
42
|
+
isFile(): boolean;
|
|
43
|
+
isSymbolicLink(): boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface DirectoryEntry {
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
export interface BusinessFileSystem {
|
|
49
|
+
lstat(path: string): Promise<FileMetadata>;
|
|
50
|
+
readFile(path: string): Promise<Buffer>;
|
|
51
|
+
readdir(path: string): Promise<string[]>;
|
|
52
|
+
readdir(path: string, options: {
|
|
53
|
+
withFileTypes: true;
|
|
54
|
+
}): Promise<DirectoryEntry[]>;
|
|
55
|
+
snapshotEntry?(path: string): SnapshotEntry | null | undefined;
|
|
56
|
+
snapshotEntries?(path: string): SnapshotEntry[];
|
|
57
|
+
snapshotFile?(path: string): Promise<Buffer>;
|
|
58
|
+
}
|
|
59
|
+
export interface SnapshotBusinessFileSystem extends BusinessFileSystem {
|
|
60
|
+
snapshotEntry(path: string): SnapshotEntry | null | undefined;
|
|
61
|
+
snapshotEntries(path: string): SnapshotEntry[];
|
|
62
|
+
snapshotFile(path: string): Promise<Buffer>;
|
|
63
|
+
}
|
|
64
|
+
export type GitSnapshotFileSystem = ReturnType<typeof import("../../foundation/snapshot/index.ts").createGitSnapshotFileSystem>;
|
|
65
|
+
export declare function asBusinessFileSystem(filesystem: GitSnapshotFileSystem): BusinessFileSystem;
|
|
66
|
+
export declare function requireSnapshotFileSystem(filesystem: BusinessFileSystem): SnapshotBusinessFileSystem;
|
|
67
|
+
export interface RepositoryChanges {
|
|
68
|
+
conflicted: {
|
|
69
|
+
path: string;
|
|
70
|
+
kind?: string;
|
|
71
|
+
originalPath?: string;
|
|
72
|
+
}[];
|
|
73
|
+
staged: {
|
|
74
|
+
path: string;
|
|
75
|
+
kind?: string;
|
|
76
|
+
originalPath?: string;
|
|
77
|
+
}[];
|
|
78
|
+
unstaged: {
|
|
79
|
+
path: string;
|
|
80
|
+
kind?: string;
|
|
81
|
+
originalPath?: string;
|
|
82
|
+
}[];
|
|
83
|
+
untracked: {
|
|
84
|
+
path: string;
|
|
85
|
+
kind?: string;
|
|
86
|
+
originalPath?: string;
|
|
87
|
+
}[];
|
|
88
|
+
}
|
|
89
|
+
export interface RepositoryBranch {
|
|
90
|
+
branch: string | null;
|
|
91
|
+
remote: string | null;
|
|
92
|
+
repository: string | null;
|
|
93
|
+
upstreamBranch: string | null;
|
|
94
|
+
}
|
|
95
|
+
export interface RepositoryState {
|
|
96
|
+
branch: RepositoryBranch;
|
|
97
|
+
changes: RepositoryChanges;
|
|
98
|
+
head: string | null;
|
|
99
|
+
}
|
|
100
|
+
export type { Problem };
|
|
101
|
+
export type ProjectObservation = Observation;
|
|
102
|
+
export interface ReadyObservation {
|
|
103
|
+
config: ProjectConfig;
|
|
104
|
+
contentLanguage: string;
|
|
105
|
+
layout: import("./idea-layout.ts").IdeaLayout;
|
|
106
|
+
observation: ProjectReadyObservation;
|
|
107
|
+
outputLanguage: string;
|
|
108
|
+
outputLanguageOverride?: string;
|
|
109
|
+
findings: {
|
|
110
|
+
instruction: string;
|
|
111
|
+
}[];
|
|
112
|
+
projectReady: true;
|
|
113
|
+
schemas?: import("../../foundation/schema-capability/index.ts").ProjectSchemaReadiness;
|
|
114
|
+
}
|
|
115
|
+
export interface UnreadyObservation {
|
|
116
|
+
config: ProjectConfig | null;
|
|
117
|
+
contentLanguage: string;
|
|
118
|
+
findings: {
|
|
119
|
+
instruction: string;
|
|
120
|
+
}[];
|
|
121
|
+
layout: import("./idea-layout.ts").IdeaLayout | null;
|
|
122
|
+
observation: ProjectObservation;
|
|
123
|
+
outputLanguage: string;
|
|
124
|
+
outputLanguageOverride?: string;
|
|
125
|
+
projectReady: false;
|
|
126
|
+
schemas?: import("../../foundation/schema-capability/index.ts").ProjectSchemaReadiness;
|
|
127
|
+
}
|
|
128
|
+
export type SnapshotObservation = ReadyObservation | UnreadyObservation;
|
|
129
|
+
export type RepositoryReadiness = {
|
|
130
|
+
branch?: RepositoryBranch;
|
|
131
|
+
changes?: RepositoryChanges;
|
|
132
|
+
head?: string | null;
|
|
133
|
+
observation: RepositoryBlockedObservation;
|
|
134
|
+
primary?: string;
|
|
135
|
+
instructions: string;
|
|
136
|
+
ready: false;
|
|
137
|
+
} | {
|
|
138
|
+
branch: RepositoryBranch;
|
|
139
|
+
changes?: RepositoryChanges;
|
|
140
|
+
head: string;
|
|
141
|
+
observation: ProjectReadyObservation;
|
|
142
|
+
primary?: string;
|
|
143
|
+
ready: true;
|
|
144
|
+
};
|
|
145
|
+
/** @pure */
|
|
146
|
+
export declare function repositoryProblem(observation: ProjectReadyObservation, problems: Problem[]): RepositoryBlockedObservation;
|
|
147
|
+
export type CommandRuntime = ReturnType<typeof import("../../foundation/command-message/index.ts").createCommandRun>;
|
|
148
|
+
/** @pure */
|
|
149
|
+
export declare function errorMessage(value: unknown): string;
|
|
150
|
+
export declare function traceBusinessAsync<Result>(name: string, attributes: Record<string, unknown>, operation: () => Promise<Result>, finish?: (result: Result) => Record<string, unknown>): Promise<Result>;
|
|
151
|
+
//# sourceMappingURL=business-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-types.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/business-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,KAAK,EACV,WAAW,EACX,OAAO,EACP,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAG1C,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,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AAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,4BAA4B,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC;CACd,GACD;IACE,MAAM,EAAE,gBAAgB,CAAC;IACzB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,uBAAuB,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,IAAI,CAAC;CACb,CAAC;AAEN,YAAY;AACZ,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,uBAAuB,EACpC,QAAQ,EAAE,OAAO,EAAE,GAClB,4BAA4B,CAM9B;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CACrC,cAAc,2CAA2C,EAAE,gBAAgB,CAC5E,CAAC;AAEF,YAAY;AACZ,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEnD;AAED,wBAAsB,kBAAkB,CAAC,MAAM,EAC7C,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,SAAS,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,EAChC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnD,OAAO,CAAC,MAAM,CAAC,CAcjB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { traceAsync } from "../../foundation/trace/index.js";
|
|
2
|
+
export function asBusinessFileSystem(filesystem) {
|
|
3
|
+
async function readdir(path, options) {
|
|
4
|
+
const entries = await filesystem.readdir(path, options);
|
|
5
|
+
if (options === undefined) {
|
|
6
|
+
const names = [];
|
|
7
|
+
for (const entry of entries) {
|
|
8
|
+
if (typeof entry !== "string") {
|
|
9
|
+
throw new TypeError("Snapshot filesystem returned non-string directory entries.");
|
|
10
|
+
}
|
|
11
|
+
names.push(entry);
|
|
12
|
+
}
|
|
13
|
+
return names;
|
|
14
|
+
}
|
|
15
|
+
const metadata = [];
|
|
16
|
+
for (const entry of entries) {
|
|
17
|
+
if (typeof entry !== "object" || entry === null
|
|
18
|
+
|| !("name" in entry) || typeof entry.name !== "string") {
|
|
19
|
+
throw new TypeError("Snapshot filesystem returned invalid directory metadata.");
|
|
20
|
+
}
|
|
21
|
+
metadata.push(entry);
|
|
22
|
+
}
|
|
23
|
+
return metadata;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
lstat: (path) => filesystem.lstat(path),
|
|
27
|
+
readFile: async (path) => {
|
|
28
|
+
const value = await filesystem.readFile(path);
|
|
29
|
+
if (!Buffer.isBuffer(value)) {
|
|
30
|
+
throw new TypeError("Snapshot filesystem returned non-buffer file content.");
|
|
31
|
+
}
|
|
32
|
+
return value;
|
|
33
|
+
},
|
|
34
|
+
readdir,
|
|
35
|
+
snapshotEntry: (path) => filesystem.snapshotEntry(path),
|
|
36
|
+
snapshotEntries: (path) => filesystem.snapshotEntries(path),
|
|
37
|
+
snapshotFile: (path) => filesystem.snapshotFile(path),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function requireSnapshotFileSystem(filesystem) {
|
|
41
|
+
if (typeof filesystem.snapshotEntry !== "function"
|
|
42
|
+
|| typeof filesystem.snapshotEntries !== "function"
|
|
43
|
+
|| typeof filesystem.snapshotFile !== "function") {
|
|
44
|
+
throw new TypeError("Snapshot filesystem capabilities are required.");
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
lstat: filesystem.lstat,
|
|
48
|
+
readFile: filesystem.readFile,
|
|
49
|
+
readdir: filesystem.readdir,
|
|
50
|
+
snapshotEntry: filesystem.snapshotEntry,
|
|
51
|
+
snapshotEntries: filesystem.snapshotEntries,
|
|
52
|
+
snapshotFile: filesystem.snapshotFile,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/** @pure */
|
|
56
|
+
export function repositoryProblem(observation, problems) {
|
|
57
|
+
return {
|
|
58
|
+
...observation,
|
|
59
|
+
state: "repository-sync-required",
|
|
60
|
+
problems,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/** @pure */
|
|
64
|
+
export function errorMessage(value) {
|
|
65
|
+
return value instanceof Error ? value.message : String(value);
|
|
66
|
+
}
|
|
67
|
+
export async function traceBusinessAsync(name, attributes, operation, finish) {
|
|
68
|
+
let result;
|
|
69
|
+
const invoke = () => {
|
|
70
|
+
result ??= operation();
|
|
71
|
+
return result;
|
|
72
|
+
};
|
|
73
|
+
await Reflect.apply(traceAsync, undefined, [
|
|
74
|
+
name,
|
|
75
|
+
attributes,
|
|
76
|
+
invoke,
|
|
77
|
+
...(finish ? [finish] : []),
|
|
78
|
+
]);
|
|
79
|
+
if (!result)
|
|
80
|
+
throw new Error(`Trace ${name} did not invoke its operation.`);
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=business-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-types.js","sourceRoot":"","sources":["../../../../src/business/shared/business-types.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AA2E7D,MAAM,UAAU,oBAAoB,CAClC,UAAiC;IAOjC,KAAK,UAAU,OAAO,CACpB,IAAY,EACZ,OAAiC;QAEjC,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACxD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,MAAM,KAAK,GAAa,EAAE,CAAC;YAC3B,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;gBAC5B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;oBA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AAC,EAAE,CAAC;KAC5B,CAAC,CAAC;IACH,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,SAAS,IAAI,gCAAgC,CAAC,CAAC;IAC5E,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReadyObservation, RepositoryReadiness, RepositoryState } from "./business-types.ts";
|
|
2
|
+
/** @pure */
|
|
3
|
+
export declare function evaluateLocalReadiness({ repository, observed, root, recheckCommand, }: {
|
|
4
|
+
repository: RepositoryState;
|
|
5
|
+
observed: ReadyObservation;
|
|
6
|
+
root: string;
|
|
7
|
+
recheckCommand: string;
|
|
8
|
+
}): RepositoryReadiness;
|
|
9
|
+
//# sourceMappingURL=evaluate-local-readiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluate-local-readiness.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/evaluate-local-readiness.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAG7B,YAAY;AACZ,wBAAgB,sBAAsB,CAAC,EACrC,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,cAAc,GACf,EAAE;IACD,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;CACxB,GAAG,mBAAmB,CAgHtB"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { command, localRepositoryInstructions, renderDetachedHead, renderHeadMissing, renderPrimaryUpstreamMismatch, renderWorktreeConflicts, summarizeWorktreeChanges, worktreeInstructionSteps, } from "../../foundation/report/index.js";
|
|
2
|
+
import { repositoryProblem } from "./business-types.js";
|
|
3
|
+
/** @pure */
|
|
4
|
+
export function evaluateLocalReadiness({ repository, observed, root, recheckCommand, }) {
|
|
5
|
+
const language = observed.outputLanguage;
|
|
6
|
+
const { branch, changes, head } = repository;
|
|
7
|
+
const dirty = changes.conflicted.length > 0
|
|
8
|
+
|| changes.staged.length > 0
|
|
9
|
+
|| changes.unstaged.length > 0
|
|
10
|
+
|| changes.untracked.length > 0;
|
|
11
|
+
const localProblems = [];
|
|
12
|
+
const localSteps = [];
|
|
13
|
+
if (dirty) {
|
|
14
|
+
if (changes.conflicted.length > 0) {
|
|
15
|
+
localProblems.push({
|
|
16
|
+
type: "worktree-conflicts",
|
|
17
|
+
summary: renderWorktreeConflicts(language, {
|
|
18
|
+
count: changes.conflicted.length,
|
|
19
|
+
summary: summarizeWorktreeChanges({
|
|
20
|
+
conflicted: changes.conflicted,
|
|
21
|
+
staged: [],
|
|
22
|
+
unstaged: [],
|
|
23
|
+
untracked: [],
|
|
24
|
+
}, language),
|
|
25
|
+
}),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
if (changes.staged.length > 0
|
|
29
|
+
|| changes.unstaged.length > 0
|
|
30
|
+
|| changes.untracked.length > 0) {
|
|
31
|
+
localProblems.push({
|
|
32
|
+
type: "worktree-changes",
|
|
33
|
+
summary: summarizeWorktreeChanges({
|
|
34
|
+
conflicted: [],
|
|
35
|
+
staged: changes.staged,
|
|
36
|
+
unstaged: changes.unstaged,
|
|
37
|
+
untracked: changes.untracked,
|
|
38
|
+
}, language),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
localSteps.push(...worktreeInstructionSteps(changes, language));
|
|
42
|
+
}
|
|
43
|
+
if (head === null) {
|
|
44
|
+
const headMissing = renderHeadMissing(language);
|
|
45
|
+
localProblems.push({
|
|
46
|
+
type: "head-missing",
|
|
47
|
+
summary: headMissing.summary,
|
|
48
|
+
});
|
|
49
|
+
localSteps.push(headMissing.step);
|
|
50
|
+
}
|
|
51
|
+
if (branch.branch === null) {
|
|
52
|
+
const detachedHead = renderDetachedHead(language, {
|
|
53
|
+
expectedBranch: observed.config.primaryBranch,
|
|
54
|
+
expectedRepository: observed.config.primaryRepository,
|
|
55
|
+
head,
|
|
56
|
+
});
|
|
57
|
+
localProblems.push({
|
|
58
|
+
type: "detached-head",
|
|
59
|
+
summary: detachedHead.summary,
|
|
60
|
+
});
|
|
61
|
+
localSteps.push(detachedHead.step);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
if (branch.repository !== observed.config.primaryRepository
|
|
65
|
+
|| branch.upstreamBranch !== observed.config.primaryBranch) {
|
|
66
|
+
const mismatch = renderPrimaryUpstreamMismatch(language, {
|
|
67
|
+
branch: branch.branch,
|
|
68
|
+
expectedBranch: observed.config.primaryBranch,
|
|
69
|
+
expectedRepository: observed.config.primaryRepository,
|
|
70
|
+
remote: branch.remote,
|
|
71
|
+
repository: branch.repository,
|
|
72
|
+
upstreamBranch: branch.upstreamBranch,
|
|
73
|
+
verifyCommand: command(root, 'git -C "<root>" rev-parse --abbrev-ref --symbolic-full-name \'@{upstream}\''),
|
|
74
|
+
});
|
|
75
|
+
localProblems.push({
|
|
76
|
+
type: "primary-upstream-mismatch",
|
|
77
|
+
summary: mismatch.summary,
|
|
78
|
+
});
|
|
79
|
+
localSteps.push(mismatch.step);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (localProblems.length > 0) {
|
|
83
|
+
return {
|
|
84
|
+
branch,
|
|
85
|
+
changes,
|
|
86
|
+
head,
|
|
87
|
+
observation: repositoryProblem(observed.observation, localProblems),
|
|
88
|
+
instructions: localRepositoryInstructions(root, localSteps, language, recheckCommand),
|
|
89
|
+
ready: false,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
if (head === null) {
|
|
93
|
+
throw new Error("Ready repository unexpectedly omitted HEAD.");
|
|
94
|
+
}
|
|
95
|
+
return { branch, changes, head, observation: observed.observation, ready: true };
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=evaluate-local-readiness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eva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,QAAQ,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACnF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReadyObservation, RepositoryBranch, RepositoryReadiness } from "./business-types.ts";
|
|
2
|
+
/** @pure */
|
|
3
|
+
export declare function evaluatePrimaryRelation({ relation, branch, head, primary, observed, root, recheckCommand, }: {
|
|
4
|
+
relation: "aligned" | "unknown" | "behind" | "ahead" | "diverged";
|
|
5
|
+
branch: RepositoryBranch;
|
|
6
|
+
head: string;
|
|
7
|
+
primary: string;
|
|
8
|
+
observed: ReadyObservation;
|
|
9
|
+
root: string;
|
|
10
|
+
recheckCommand: string;
|
|
11
|
+
}): RepositoryReadiness;
|
|
12
|
+
//# sourceMappingURL=evaluate-primary-relation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluate-primary-relation.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/evaluate-primary-relation.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAG7B,YAAY;AACZ,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,cAAc,GACf,EAAE;IACD,QAAQ,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;IAClE,MAAM,EAAE,gBAAgB,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;CACxB,GAAG,mBAAmB,CAsCtB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { command, renderPrimaryAhead, renderPrimaryBehind, renderPrimaryDiverged, renderPrimaryHistoryIncomplete, } from "../../foundation/report/index.js";
|
|
2
|
+
import { repositoryProblem } from "./business-types.js";
|
|
3
|
+
/** @pure */
|
|
4
|
+
export function evaluatePrimaryRelation({ relation, branch, head, primary, observed, root, recheckCommand, }) {
|
|
5
|
+
if (relation === "aligned") {
|
|
6
|
+
return { branch, head, observation: observed.observation, primary, ready: true };
|
|
7
|
+
}
|
|
8
|
+
const language = observed.outputLanguage;
|
|
9
|
+
const parameters = {
|
|
10
|
+
branch: branch.branch,
|
|
11
|
+
head,
|
|
12
|
+
mergeCommand: command(root, `git -C "<root>" merge --ff-only ${primary}`),
|
|
13
|
+
primary,
|
|
14
|
+
primaryBranch: observed.config.primaryBranch,
|
|
15
|
+
recheckCommand: command(root, recheckCommand),
|
|
16
|
+
remote: branch.remote,
|
|
17
|
+
};
|
|
18
|
+
const rendered = relation === "unknown"
|
|
19
|
+
? renderPrimaryHistoryIncomplete(language, parameters)
|
|
20
|
+
: relation === "behind"
|
|
21
|
+
? renderPrimaryBehind(language, parameters)
|
|
22
|
+
: relation === "ahead"
|
|
23
|
+
? renderPrimaryAhead(language, parameters)
|
|
24
|
+
: renderPrimaryDiverged(language, parameters);
|
|
25
|
+
const problem = {
|
|
26
|
+
type: relation === "unknown"
|
|
27
|
+
? "primary-history-incomplete"
|
|
28
|
+
: `primary-${relation}`,
|
|
29
|
+
summary: rendered.summary,
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
branch,
|
|
33
|
+
head,
|
|
34
|
+
observation: repositoryProblem(observed.observation, [problem]),
|
|
35
|
+
primary,
|
|
36
|
+
instructions: rendered.instructions,
|
|
37
|
+
ready: false,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=evaluate-primary-relation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluate-primary-relation.js","sourceRoot":"","sources":["../../../../src/business/shared/evaluate-primary-relation.ts"],"names":[],"mappings":"AAAA,OA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