silvermoon 0.3.0-rc.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/README.zh-CN.md +26 -24
- package/dist/bin/build-npm-tarball.d.ts +28 -0
- package/dist/bin/build-npm-tarball.d.ts.map +1 -0
- package/dist/bin/build-npm-tarball.js +200 -0
- package/dist/bin/build-npm-tarball.js.map +1 -0
- package/dist/bin/check-pack.d.ts +2 -0
- package/dist/bin/check-pack.d.ts.map +1 -0
- package/dist/bin/check-pack.js +421 -0
- package/dist/bin/check-pack.js.map +1 -0
- package/dist/bin/ci-package-risk.d.ts +19 -0
- package/dist/bin/ci-package-risk.d.ts.map +1 -0
- package/dist/bin/ci-package-risk.js +78 -0
- package/dist/bin/ci-package-risk.js.map +1 -0
- package/dist/bin/generate-npm-readme.d.ts +7 -0
- package/dist/bin/generate-npm-readme.d.ts.map +1 -0
- package/dist/bin/generate-npm-readme.js +232 -0
- package/dist/bin/generate-npm-readme.js.map +1 -0
- package/dist/bin/migrate-v1-to-v2.d.ts +3 -0
- package/dist/bin/migrate-v1-to-v2.d.ts.map +1 -0
- package/dist/bin/migrate-v1-to-v2.js +25 -0
- package/dist/bin/migrate-v1-to-v2.js.map +1 -0
- package/dist/bin/prepare-npm-release.d.ts +46 -0
- package/dist/bin/prepare-npm-release.d.ts.map +1 -0
- package/dist/bin/prepare-npm-release.js +210 -0
- package/dist/bin/prepare-npm-release.js.map +1 -0
- package/dist/bin/pure-check.d.ts +15 -0
- package/dist/bin/pure-check.d.ts.map +1 -0
- package/dist/bin/pure-check.js +448 -0
- package/dist/bin/pure-check.js.map +1 -0
- package/dist/bin/run-checks.d.ts +34 -0
- package/dist/bin/run-checks.d.ts.map +1 -0
- package/dist/bin/run-checks.js +149 -0
- package/dist/bin/run-checks.js.map +1 -0
- package/dist/bin/silvermoon.d.ts +76 -0
- package/dist/bin/silvermoon.d.ts.map +1 -0
- package/dist/bin/silvermoon.js +401 -0
- package/dist/bin/silvermoon.js.map +1 -0
- package/dist/bin/sync-skills.d.ts +2 -0
- package/dist/bin/sync-skills.d.ts.map +1 -0
- package/dist/bin/sync-skills.js +78 -0
- package/dist/bin/sync-skills.js.map +1 -0
- package/dist/bin/verify-npm-release.d.ts +55 -0
- package/dist/bin/verify-npm-release.d.ts.map +1 -0
- package/dist/bin/verify-npm-release.js +418 -0
- package/dist/bin/verify-npm-release.js.map +1 -0
- package/dist/src/business/agent-copilot.d.ts +82 -0
- package/dist/src/business/agent-copilot.d.ts.map +1 -0
- package/dist/src/business/agent-copilot.js +330 -0
- package/dist/src/business/agent-copilot.js.map +1 -0
- package/dist/src/business/agent-project-registry.d.ts +22 -0
- package/dist/src/business/agent-project-registry.d.ts.map +1 -0
- package/dist/src/business/agent-project-registry.js +239 -0
- package/dist/src/business/agent-project-registry.js.map +1 -0
- package/dist/src/business/agent-project-runtime.d.ts +37 -0
- package/dist/src/business/agent-project-runtime.d.ts.map +1 -0
- package/dist/src/business/agent-project-runtime.js +198 -0
- package/dist/src/business/agent-project-runtime.js.map +1 -0
- package/dist/src/business/append-event-history.d.ts +21 -0
- package/dist/src/business/append-event-history.d.ts.map +1 -0
- package/dist/src/business/append-event-history.js +138 -0
- package/dist/src/business/append-event-history.js.map +1 -0
- package/dist/src/business/append-event.d.ts +140 -0
- package/dist/src/business/append-event.d.ts.map +1 -0
- package/dist/src/business/append-event.js +292 -0
- package/dist/src/business/append-event.js.map +1 -0
- package/dist/src/business/check-repository.d.ts +109 -0
- package/dist/src/business/check-repository.d.ts.map +1 -0
- package/dist/src/business/check-repository.js +379 -0
- package/dist/src/business/check-repository.js.map +1 -0
- package/dist/src/business/create-idea.d.ts +100 -0
- package/dist/src/business/create-idea.d.ts.map +1 -0
- package/dist/src/business/create-idea.js +224 -0
- package/dist/src/business/create-idea.js.map +1 -0
- package/dist/src/business/event-command.d.ts +111 -0
- package/dist/src/business/event-command.d.ts.map +1 -0
- package/dist/src/business/event-command.js +239 -0
- package/dist/src/business/event-command.js.map +1 -0
- package/dist/src/business/index.d.ts +7 -0
- package/dist/src/business/index.d.ts.map +1 -0
- package/dist/src/business/index.js +7 -0
- package/dist/src/business/index.js.map +1 -0
- package/dist/src/business/list-ideas.d.ts +97 -0
- package/dist/src/business/list-ideas.d.ts.map +1 -0
- package/dist/src/business/list-ideas.js +177 -0
- package/dist/src/business/list-ideas.js.map +1 -0
- package/dist/src/business/migrate-v1-to-v2.d.ts +23 -0
- package/dist/src/business/migrate-v1-to-v2.d.ts.map +1 -0
- package/dist/src/business/migrate-v1-to-v2.js +152 -0
- package/dist/src/business/migrate-v1-to-v2.js.map +1 -0
- package/dist/src/business/replay-events.d.ts +20 -0
- package/dist/src/business/replay-events.d.ts.map +1 -0
- package/dist/src/business/replay-events.js +27 -0
- package/dist/src/business/replay-events.js.map +1 -0
- package/dist/src/business/schema-migration.d.ts +19 -0
- package/dist/src/business/schema-migration.d.ts.map +1 -0
- package/dist/src/business/schema-migration.js +23 -0
- package/dist/src/business/schema-migration.js.map +1 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.d.ts +3 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.js +9 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.js.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness-with.d.ts +18 -0
- package/dist/src/business/shared/assess-repository-readiness-with.d.ts.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness-with.js +125 -0
- package/dist/src/business/shared/assess-repository-readiness-with.js.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness.d.ts +3 -0
- package/dist/src/business/shared/assess-repository-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness.js +6 -0
- package/dist/src/business/shared/assess-repository-readiness.js.map +1 -0
- package/dist/src/business/shared/business-types.d.ts +151 -0
- package/dist/src/business/shared/business-types.d.ts.map +1 -0
- package/dist/src/business/shared/business-types.js +83 -0
- package/dist/src/business/shared/business-types.js.map +1 -0
- package/dist/src/business/shared/evaluate-local-readiness.d.ts +9 -0
- package/dist/src/business/shared/evaluate-local-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/evaluate-local-readiness.js +97 -0
- package/dist/src/business/shared/evaluate-local-readiness.js.map +1 -0
- package/dist/src/business/shared/evaluate-primary-relation.d.ts +12 -0
- package/dist/src/business/shared/evaluate-primary-relation.d.ts.map +1 -0
- package/dist/src/business/shared/evaluate-primary-relation.js +40 -0
- package/dist/src/business/shared/evaluate-primary-relation.js.map +1 -0
- package/dist/src/business/shared/idea-layout.d.ts +55 -0
- package/dist/src/business/shared/idea-layout.d.ts.map +1 -0
- package/dist/src/business/shared/idea-layout.js +434 -0
- package/dist/src/business/shared/idea-layout.js.map +1 -0
- package/dist/src/business/shared/index.d.ts +18 -0
- package/dist/src/business/shared/index.d.ts.map +1 -0
- package/dist/src/business/shared/index.js +17 -0
- package/dist/src/business/shared/index.js.map +1 -0
- package/dist/src/business/shared/inspect-candidate.d.ts +5 -0
- package/dist/src/business/shared/inspect-candidate.d.ts.map +1 -0
- package/dist/src/business/shared/inspect-candidate.js +57 -0
- package/dist/src/business/shared/inspect-candidate.js.map +1 -0
- package/dist/src/business/shared/metadata-failure-observation.d.ts +21 -0
- package/dist/src/business/shared/metadata-failure-observation.d.ts.map +1 -0
- package/dist/src/business/shared/metadata-failure-observation.js +30 -0
- package/dist/src/business/shared/metadata-failure-observation.js.map +1 -0
- package/dist/src/business/shared/observe-device.d.ts +150 -0
- package/dist/src/business/shared/observe-device.d.ts.map +1 -0
- package/dist/src/business/shared/observe-device.js +71 -0
- package/dist/src/business/shared/observe-device.js.map +1 -0
- package/dist/src/business/shared/observe-idea.d.ts +14 -0
- package/dist/src/business/shared/observe-idea.d.ts.map +1 -0
- package/dist/src/business/shared/observe-idea.js +14 -0
- package/dist/src/business/shared/observe-idea.js.map +1 -0
- package/dist/src/business/shared/observe-project.d.ts +39 -0
- package/dist/src/business/shared/observe-project.d.ts.map +1 -0
- package/dist/src/business/shared/observe-project.js +11 -0
- package/dist/src/business/shared/observe-project.js.map +1 -0
- package/dist/src/business/shared/observe-snapshot.d.ts +35 -0
- package/dist/src/business/shared/observe-snapshot.d.ts.map +1 -0
- package/dist/src/business/shared/observe-snapshot.js +518 -0
- package/dist/src/business/shared/observe-snapshot.js.map +1 -0
- package/dist/src/business/shared/read-idea-inventory-item.d.ts +13 -0
- package/dist/src/business/shared/read-idea-inventory-item.d.ts.map +1 -0
- package/dist/src/business/shared/read-idea-inventory-item.js +18 -0
- package/dist/src/business/shared/read-idea-inventory-item.js.map +1 -0
- package/dist/src/business/shared/resolve-idea.d.ts +7 -0
- package/dist/src/business/shared/resolve-idea.d.ts.map +1 -0
- package/dist/src/business/shared/resolve-idea.js +14 -0
- package/dist/src/business/shared/resolve-idea.js.map +1 -0
- package/dist/src/business/shared/with-observation-language.d.ts +3 -0
- package/dist/src/business/shared/with-observation-language.d.ts.map +1 -0
- package/dist/src/business/shared/with-observation-language.js +20 -0
- package/dist/src/business/shared/with-observation-language.js.map +1 -0
- package/dist/src/business/whats-next.d.ts +94 -0
- package/dist/src/business/whats-next.d.ts.map +1 -0
- package/dist/src/business/whats-next.js +208 -0
- package/dist/src/business/whats-next.js.map +1 -0
- package/dist/src/foundation/command-message/index.d.ts +3 -0
- package/dist/src/foundation/command-message/index.d.ts.map +1 -0
- package/dist/src/foundation/command-message/index.js +3 -0
- package/dist/src/foundation/command-message/index.js.map +1 -0
- package/dist/src/foundation/command-message/observation.d.ts +223 -0
- package/dist/src/foundation/command-message/observation.d.ts.map +1 -0
- package/dist/src/foundation/command-message/observation.js +364 -0
- package/dist/src/foundation/command-message/observation.js.map +1 -0
- package/dist/src/foundation/command-message/runtime.d.ts +214 -0
- package/dist/src/foundation/command-message/runtime.d.ts.map +1 -0
- package/dist/src/foundation/command-message/runtime.js +215 -0
- package/dist/src/foundation/command-message/runtime.js.map +1 -0
- package/dist/src/foundation/coordinates/index.d.ts +3 -0
- package/dist/src/foundation/coordinates/index.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/index.js +3 -0
- package/dist/src/foundation/coordinates/index.js.map +1 -0
- package/dist/src/foundation/coordinates/layout.d.ts +27 -0
- package/dist/src/foundation/coordinates/layout.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/layout.js +41 -0
- package/dist/src/foundation/coordinates/layout.js.map +1 -0
- package/dist/src/foundation/coordinates/repository.d.ts +16 -0
- package/dist/src/foundation/coordinates/repository.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/repository.js +75 -0
- package/dist/src/foundation/coordinates/repository.js.map +1 -0
- package/dist/src/foundation/device-config/index.d.ts +2 -0
- package/dist/src/foundation/device-config/index.d.ts.map +1 -0
- package/dist/src/foundation/device-config/index.js +2 -0
- package/dist/src/foundation/device-config/index.js.map +1 -0
- package/dist/src/foundation/device-config/user-config.d.ts +19 -0
- package/dist/src/foundation/device-config/user-config.d.ts.map +1 -0
- package/dist/src/foundation/device-config/user-config.js +94 -0
- package/dist/src/foundation/device-config/user-config.js.map +1 -0
- package/dist/src/foundation/event-codec/grammar.d.ts +172 -0
- package/dist/src/foundation/event-codec/grammar.d.ts.map +1 -0
- package/dist/src/foundation/event-codec/grammar.js +383 -0
- package/dist/src/foundation/event-codec/grammar.js.map +1 -0
- package/dist/src/foundation/event-codec/index.d.ts +3 -0
- package/dist/src/foundation/event-codec/index.d.ts.map +1 -0
- package/dist/src/foundation/event-codec/index.js +2 -0
- package/dist/src/foundation/event-codec/index.js.map +1 -0
- package/dist/src/foundation/event-cursor/cursor.d.ts +40 -0
- package/dist/src/foundation/event-cursor/cursor.d.ts.map +1 -0
- package/dist/src/foundation/event-cursor/cursor.js +42 -0
- package/dist/src/foundation/event-cursor/cursor.js.map +1 -0
- package/dist/src/foundation/event-cursor/index.d.ts +2 -0
- package/dist/src/foundation/event-cursor/index.d.ts.map +1 -0
- package/dist/src/foundation/event-cursor/index.js +2 -0
- package/dist/src/foundation/event-cursor/index.js.map +1 -0
- package/dist/src/foundation/event-history/digest.d.ts +2 -0
- package/dist/src/foundation/event-history/digest.d.ts.map +1 -0
- package/dist/src/foundation/event-history/digest.js +2 -0
- package/dist/src/foundation/event-history/digest.js.map +1 -0
- package/dist/src/foundation/event-history/history.d.ts +86 -0
- package/dist/src/foundation/event-history/history.d.ts.map +1 -0
- package/dist/src/foundation/event-history/history.js +481 -0
- package/dist/src/foundation/event-history/history.js.map +1 -0
- package/dist/src/foundation/event-history/index.d.ts +3 -0
- package/dist/src/foundation/event-history/index.d.ts.map +1 -0
- package/dist/src/foundation/event-history/index.js +3 -0
- package/dist/src/foundation/event-history/index.js.map +1 -0
- package/dist/src/foundation/event-reducer/index.d.ts +2 -0
- package/dist/src/foundation/event-reducer/index.d.ts.map +1 -0
- package/dist/src/foundation/event-reducer/index.js +2 -0
- package/dist/src/foundation/event-reducer/index.js.map +1 -0
- package/dist/src/foundation/event-reducer/policy.d.ts +69 -0
- package/dist/src/foundation/event-reducer/policy.d.ts.map +1 -0
- package/dist/src/foundation/event-reducer/policy.js +138 -0
- package/dist/src/foundation/event-reducer/policy.js.map +1 -0
- package/dist/src/foundation/event-store/digest.d.ts +11 -0
- package/dist/src/foundation/event-store/digest.d.ts.map +1 -0
- package/dist/src/foundation/event-store/digest.js +38 -0
- package/dist/src/foundation/event-store/digest.js.map +1 -0
- package/dist/src/foundation/event-store/index.d.ts +3 -0
- package/dist/src/foundation/event-store/index.d.ts.map +1 -0
- package/dist/src/foundation/event-store/index.js +3 -0
- package/dist/src/foundation/event-store/index.js.map +1 -0
- package/dist/src/foundation/event-store/storage.d.ts +50 -0
- package/dist/src/foundation/event-store/storage.d.ts.map +1 -0
- package/dist/src/foundation/event-store/storage.js +109 -0
- package/dist/src/foundation/event-store/storage.js.map +1 -0
- package/dist/src/foundation/git/derived-cache.d.ts +5 -0
- package/dist/src/foundation/git/derived-cache.d.ts.map +1 -0
- package/dist/src/foundation/git/derived-cache.js +117 -0
- package/dist/src/foundation/git/derived-cache.js.map +1 -0
- package/dist/src/foundation/git/git.d.ts +100 -0
- package/dist/src/foundation/git/git.d.ts.map +1 -0
- package/dist/src/foundation/git/git.js +677 -0
- package/dist/src/foundation/git/git.js.map +1 -0
- package/dist/src/foundation/git/index.d.ts +3 -0
- package/dist/src/foundation/git/index.d.ts.map +1 -0
- package/dist/src/foundation/git/index.js +3 -0
- package/dist/src/foundation/git/index.js.map +1 -0
- package/dist/src/foundation/guidance/guidance.d.ts +36 -0
- package/dist/src/foundation/guidance/guidance.d.ts.map +1 -0
- package/dist/src/foundation/guidance/guidance.js +198 -0
- package/dist/src/foundation/guidance/guidance.js.map +1 -0
- package/dist/src/foundation/guidance/index.d.ts +3 -0
- package/dist/src/foundation/guidance/index.d.ts.map +1 -0
- package/dist/src/foundation/guidance/index.js +3 -0
- package/dist/src/foundation/guidance/index.js.map +1 -0
- package/dist/src/foundation/guidance/rules.d.ts +36 -0
- package/dist/src/foundation/guidance/rules.d.ts.map +1 -0
- package/dist/src/foundation/guidance/rules.js +65 -0
- package/dist/src/foundation/guidance/rules.js.map +1 -0
- package/dist/src/foundation/idea-model/index.d.ts +3 -0
- package/dist/src/foundation/idea-model/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/index.js +3 -0
- package/dist/src/foundation/idea-model/index.js.map +1 -0
- package/dist/src/foundation/idea-model/status.d.ts +28 -0
- package/dist/src/foundation/idea-model/status.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/status.js +192 -0
- package/dist/src/foundation/idea-model/status.js.map +1 -0
- package/dist/src/foundation/idea-model/ulid.d.ts +6 -0
- package/dist/src/foundation/idea-model/ulid.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/ulid.js +16 -0
- package/dist/src/foundation/idea-model/ulid.js.map +1 -0
- package/dist/src/foundation/idea-query/index.d.ts +3 -0
- package/dist/src/foundation/idea-query/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/index.js +3 -0
- package/dist/src/foundation/idea-query/index.js.map +1 -0
- package/dist/src/foundation/idea-query/query.d.ts +13 -0
- package/dist/src/foundation/idea-query/query.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/query.js +17 -0
- package/dist/src/foundation/idea-query/query.js.map +1 -0
- package/dist/src/foundation/idea-query/rules.d.ts +55 -0
- package/dist/src/foundation/idea-query/rules.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/rules.js +223 -0
- package/dist/src/foundation/idea-query/rules.js.map +1 -0
- package/dist/src/foundation/idea-template/index.d.ts +2 -0
- package/dist/src/foundation/idea-template/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-template/index.js +2 -0
- package/dist/src/foundation/idea-template/index.js.map +1 -0
- package/dist/src/foundation/idea-template/templates.d.ts +21 -0
- package/dist/src/foundation/idea-template/templates.d.ts.map +1 -0
- package/dist/src/foundation/idea-template/templates.js +265 -0
- package/dist/src/foundation/idea-template/templates.js.map +1 -0
- package/dist/src/foundation/installation/device-readiness.d.ts +94 -0
- package/dist/src/foundation/installation/device-readiness.d.ts.map +1 -0
- package/dist/src/foundation/installation/device-readiness.js +274 -0
- package/dist/src/foundation/installation/device-readiness.js.map +1 -0
- package/dist/src/foundation/installation/index.d.ts +4 -0
- package/dist/src/foundation/installation/index.d.ts.map +1 -0
- package/dist/src/foundation/installation/index.js +4 -0
- package/dist/src/foundation/installation/index.js.map +1 -0
- package/dist/src/foundation/installation/installation.d.ts +25 -0
- package/dist/src/foundation/installation/installation.d.ts.map +1 -0
- package/dist/src/foundation/installation/installation.js +125 -0
- package/dist/src/foundation/installation/installation.js.map +1 -0
- package/dist/src/foundation/installation/rules.d.ts +12 -0
- package/dist/src/foundation/installation/rules.d.ts.map +1 -0
- package/dist/src/foundation/installation/rules.js +63 -0
- package/dist/src/foundation/installation/rules.js.map +1 -0
- package/dist/src/foundation/language/index.d.ts +3 -0
- package/dist/src/foundation/language/index.d.ts.map +1 -0
- package/dist/src/foundation/language/index.js +2 -0
- package/dist/src/foundation/language/index.js.map +1 -0
- package/dist/src/foundation/language/language.d.ts +36 -0
- package/dist/src/foundation/language/language.d.ts.map +1 -0
- package/dist/src/foundation/language/language.js +94 -0
- package/dist/src/foundation/language/language.js.map +1 -0
- package/dist/src/foundation/owned-write/index.d.ts +2 -0
- package/dist/src/foundation/owned-write/index.d.ts.map +1 -0
- package/dist/src/foundation/owned-write/index.js +2 -0
- package/dist/src/foundation/owned-write/index.js.map +1 -0
- package/dist/src/foundation/owned-write/writer.d.ts +86 -0
- package/dist/src/foundation/owned-write/writer.d.ts.map +1 -0
- package/dist/src/foundation/owned-write/writer.js +244 -0
- package/dist/src/foundation/owned-write/writer.js.map +1 -0
- package/dist/src/foundation/package-resource/index.d.ts +2 -0
- package/dist/src/foundation/package-resource/index.d.ts.map +1 -0
- package/dist/src/foundation/package-resource/index.js +2 -0
- package/dist/src/foundation/package-resource/index.js.map +1 -0
- package/dist/src/foundation/package-resource/npm-tarball.d.ts +15 -0
- package/dist/src/foundation/package-resource/npm-tarball.d.ts.map +1 -0
- package/dist/src/foundation/package-resource/npm-tarball.js +124 -0
- package/dist/src/foundation/package-resource/npm-tarball.js.map +1 -0
- package/dist/src/foundation/process/index.d.ts +3 -0
- package/dist/src/foundation/process/index.d.ts.map +1 -0
- package/dist/src/foundation/process/index.js +3 -0
- package/dist/src/foundation/process/index.js.map +1 -0
- package/dist/src/foundation/process/npm-command.d.ts +9 -0
- package/dist/src/foundation/process/npm-command.d.ts.map +1 -0
- package/dist/src/foundation/process/npm-command.js +11 -0
- package/dist/src/foundation/process/npm-command.js.map +1 -0
- package/dist/src/foundation/process/subprocess.d.ts +8 -0
- package/dist/src/foundation/process/subprocess.d.ts.map +1 -0
- package/dist/src/foundation/process/subprocess.js +12 -0
- package/dist/src/foundation/process/subprocess.js.map +1 -0
- package/dist/src/foundation/project-config/config.d.ts +30 -0
- package/dist/src/foundation/project-config/config.d.ts.map +1 -0
- package/dist/src/foundation/project-config/config.js +112 -0
- package/dist/src/foundation/project-config/config.js.map +1 -0
- package/dist/src/foundation/project-config/index.d.ts +3 -0
- package/dist/src/foundation/project-config/index.d.ts.map +1 -0
- package/dist/src/foundation/project-config/index.js +3 -0
- package/dist/src/foundation/project-config/index.js.map +1 -0
- package/dist/src/foundation/project-config/rules.d.ts +32 -0
- package/dist/src/foundation/project-config/rules.d.ts.map +1 -0
- package/dist/src/foundation/project-config/rules.js +119 -0
- package/dist/src/foundation/project-config/rules.js.map +1 -0
- package/dist/src/foundation/projection-cache/index.d.ts +2 -0
- package/dist/src/foundation/projection-cache/index.d.ts.map +1 -0
- package/dist/src/foundation/projection-cache/index.js +2 -0
- package/dist/src/foundation/projection-cache/index.js.map +1 -0
- package/dist/src/foundation/projection-cache/projection.d.ts +36 -0
- package/dist/src/foundation/projection-cache/projection.d.ts.map +1 -0
- package/dist/src/foundation/projection-cache/projection.js +105 -0
- package/dist/src/foundation/projection-cache/projection.js.map +1 -0
- package/dist/src/foundation/renderer/index.d.ts +3 -0
- package/dist/src/foundation/renderer/index.d.ts.map +1 -0
- package/dist/src/foundation/renderer/index.js +3 -0
- package/dist/src/foundation/renderer/index.js.map +1 -0
- package/dist/src/foundation/renderer/markdown.d.ts +7 -0
- package/dist/src/foundation/renderer/markdown.d.ts.map +1 -0
- package/dist/src/foundation/renderer/markdown.js +355 -0
- package/dist/src/foundation/renderer/markdown.js.map +1 -0
- package/dist/src/foundation/renderer/render.d.ts +6 -0
- package/dist/src/foundation/renderer/render.d.ts.map +1 -0
- package/dist/src/foundation/renderer/render.js +23 -0
- package/dist/src/foundation/renderer/render.js.map +1 -0
- package/dist/src/foundation/report/dialogue.d.ts +37 -0
- package/dist/src/foundation/report/dialogue.d.ts.map +1 -0
- package/dist/src/foundation/report/dialogue.js +59 -0
- package/dist/src/foundation/report/dialogue.js.map +1 -0
- package/dist/src/foundation/report/index.d.ts +6 -0
- package/dist/src/foundation/report/index.d.ts.map +1 -0
- package/dist/src/foundation/report/index.js +6 -0
- package/dist/src/foundation/report/index.js.map +1 -0
- package/dist/src/foundation/report/instructions.d.ts +77 -0
- package/dist/src/foundation/report/instructions.d.ts.map +1 -0
- package/dist/src/foundation/report/instructions.js +374 -0
- package/dist/src/foundation/report/instructions.js.map +1 -0
- package/dist/src/foundation/report/observation.d.ts +31 -0
- package/dist/src/foundation/report/observation.d.ts.map +1 -0
- package/dist/src/foundation/report/observation.js +83 -0
- package/dist/src/foundation/report/observation.js.map +1 -0
- package/dist/src/foundation/report/projection.d.ts +7 -0
- package/dist/src/foundation/report/projection.d.ts.map +1 -0
- package/dist/src/foundation/report/projection.js +199 -0
- package/dist/src/foundation/report/projection.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/contract.d.ts +148 -0
- package/dist/src/foundation/report/templates/whats-next/contract.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/contract.js +34 -0
- package/dist/src/foundation/report/templates/whats-next/contract.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.d.ts +12 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.js +63 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.js +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.js +39 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.js +12 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/index.d.ts +5 -0
- package/dist/src/foundation/report/templates/whats-next/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/index.js +4 -0
- package/dist/src/foundation/report/templates/whats-next/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/registry.d.ts +4 -0
- package/dist/src/foundation/report/templates/whats-next/registry.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/registry.js +14 -0
- package/dist/src/foundation/report/templates/whats-next/registry.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.js +176 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.d.ts +12 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.js +63 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.js +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.js +39 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.js +12 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.js.map +1 -0
- package/dist/src/foundation/report/types.d.ts +321 -0
- package/dist/src/foundation/report/types.d.ts.map +1 -0
- package/dist/src/foundation/report/types.js +2 -0
- package/dist/src/foundation/report/types.js.map +1 -0
- package/dist/src/foundation/scaffold-plan/index.d.ts +2 -0
- package/dist/src/foundation/scaffold-plan/index.d.ts.map +1 -0
- package/dist/src/foundation/scaffold-plan/index.js +2 -0
- package/dist/src/foundation/scaffold-plan/index.js.map +1 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.d.ts +11 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.d.ts.map +1 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.js +36 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.js.map +1 -0
- package/dist/src/foundation/schema/index.d.ts +3 -0
- package/dist/src/foundation/schema/index.d.ts.map +1 -0
- package/dist/src/foundation/schema/index.js +3 -0
- package/dist/src/foundation/schema/index.js.map +1 -0
- package/dist/src/foundation/schema/schema.d.ts +3 -0
- package/dist/src/foundation/schema/schema.d.ts.map +1 -0
- package/dist/src/foundation/schema/schema.js +10 -0
- package/dist/src/foundation/schema/schema.js.map +1 -0
- package/dist/src/foundation/schema/yaml.d.ts +10 -0
- package/dist/src/foundation/schema/yaml.d.ts.map +1 -0
- package/dist/src/foundation/schema/yaml.js +60 -0
- package/dist/src/foundation/schema/yaml.js.map +1 -0
- package/dist/src/foundation/schema-capability/index.d.ts +6 -0
- package/dist/src/foundation/schema-capability/index.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/index.js +4 -0
- package/dist/src/foundation/schema-capability/index.js.map +1 -0
- package/dist/src/foundation/schema-capability/inspection.d.ts +38 -0
- package/dist/src/foundation/schema-capability/inspection.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/inspection.js +249 -0
- package/dist/src/foundation/schema-capability/inspection.js.map +1 -0
- package/dist/src/foundation/schema-capability/manifest.d.ts +6 -0
- package/dist/src/foundation/schema-capability/manifest.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/manifest.js +17 -0
- package/dist/src/foundation/schema-capability/manifest.js.map +1 -0
- package/dist/src/foundation/schema-capability/rules.d.ts +38 -0
- package/dist/src/foundation/schema-capability/rules.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/rules.js +297 -0
- package/dist/src/foundation/schema-capability/rules.js.map +1 -0
- package/dist/src/foundation/skill-registration/adoption.d.ts +40 -0
- package/dist/src/foundation/skill-registration/adoption.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/adoption.js +63 -0
- package/dist/src/foundation/skill-registration/adoption.js.map +1 -0
- package/dist/src/foundation/skill-registration/index.d.ts +2 -0
- package/dist/src/foundation/skill-registration/index.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/index.js +2 -0
- package/dist/src/foundation/skill-registration/index.js.map +1 -0
- package/dist/src/foundation/skill-registration/rules.d.ts +2 -0
- package/dist/src/foundation/skill-registration/rules.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/rules.js +2 -0
- package/dist/src/foundation/skill-registration/rules.js.map +1 -0
- package/dist/src/foundation/snapshot/git-snapshot.d.ts +40 -0
- package/dist/src/foundation/snapshot/git-snapshot.d.ts.map +1 -0
- package/dist/src/foundation/snapshot/git-snapshot.js +168 -0
- package/dist/src/foundation/snapshot/git-snapshot.js.map +1 -0
- package/dist/src/foundation/snapshot/index.d.ts +2 -0
- package/dist/src/foundation/snapshot/index.d.ts.map +1 -0
- package/dist/src/foundation/snapshot/index.js +2 -0
- package/dist/src/foundation/snapshot/index.js.map +1 -0
- package/dist/src/foundation/state-transaction/index.d.ts +2 -0
- package/dist/src/foundation/state-transaction/index.d.ts.map +1 -0
- package/dist/src/foundation/state-transaction/index.js +2 -0
- package/dist/src/foundation/state-transaction/index.js.map +1 -0
- package/dist/src/foundation/state-transaction/state-transaction.d.ts +48 -0
- package/dist/src/foundation/state-transaction/state-transaction.d.ts.map +1 -0
- package/dist/src/foundation/state-transaction/state-transaction.js +364 -0
- package/dist/src/foundation/state-transaction/state-transaction.js.map +1 -0
- package/dist/src/foundation/terminal/index.d.ts +2 -0
- package/dist/src/foundation/terminal/index.d.ts.map +1 -0
- package/dist/src/foundation/terminal/index.js +2 -0
- package/dist/src/foundation/terminal/index.js.map +1 -0
- package/dist/src/foundation/terminal/terminal.d.ts +17 -0
- package/dist/src/foundation/terminal/terminal.d.ts.map +1 -0
- package/dist/src/foundation/terminal/terminal.js +12 -0
- package/dist/src/foundation/terminal/terminal.js.map +1 -0
- package/dist/src/foundation/trace/index.d.ts +2 -0
- package/dist/src/foundation/trace/index.d.ts.map +1 -0
- package/dist/src/foundation/trace/index.js +2 -0
- package/dist/src/foundation/trace/index.js.map +1 -0
- package/dist/src/foundation/trace/trace.d.ts +12 -0
- package/dist/src/foundation/trace/trace.d.ts.map +1 -0
- package/dist/src/foundation/trace/trace.js +299 -0
- package/dist/src/foundation/trace/trace.js.map +1 -0
- package/dist/src/foundation/tui/index.d.ts +3 -0
- package/dist/src/foundation/tui/index.d.ts.map +1 -0
- package/dist/src/foundation/tui/index.js +3 -0
- package/dist/src/foundation/tui/index.js.map +1 -0
- package/dist/src/foundation/tui/table.d.ts +10 -0
- package/dist/src/foundation/tui/table.d.ts.map +1 -0
- package/dist/src/foundation/tui/table.js +91 -0
- package/dist/src/foundation/tui/table.js.map +1 -0
- package/dist/src/foundation/tui/tui.d.ts +33 -0
- package/dist/src/foundation/tui/tui.d.ts.map +1 -0
- package/dist/src/foundation/tui/tui.js +157 -0
- package/dist/src/foundation/tui/tui.js.map +1 -0
- package/dist/src/index.d.ts +17 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +16 -0
- package/dist/src/index.js.map +1 -0
- package/docs/core-concepts.md +48 -7
- package/docs/getting-started.md +60 -45
- package/docs/maintaining.md +132 -9
- package/docs/npm-package-releases.md +38 -9
- package/docs/operations.md +109 -35
- package/docs/reference.md +304 -35
- package/docs/repository-tasks.md +61 -20
- package/package.json +53 -27
- package/schema/capabilities.json +95 -0
- package/schema/capability-manifest.schema.json +139 -0
- package/schema/v1/command-report.schema.json +4 -2
- package/schema/v1/domain-message.schema.json +2 -1
- package/schema/v2/config.schema.json +14 -0
- package/schema/v2/idea-event.schema.json +121 -0
- package/skills/silvermoon/SKILL.md +204 -112
- package/skills/silvermoon/references/adoption.md +55 -24
- package/skills/silvermoon/references/events.md +296 -0
- package/bin/silvermoon.js +0 -10
- package/src/adoption.js +0 -559
- package/src/cli.js +0 -377
- package/src/config.js +0 -253
- package/src/create-idea.js +0 -497
- package/src/dialogue.js +0 -69
- package/src/domain.js +0 -592
- package/src/git-snapshot.js +0 -212
- package/src/git.js +0 -624
- package/src/guidance.js +0 -281
- package/src/idea-layout.js +0 -411
- package/src/idea-metadata.js +0 -48
- package/src/idea-query.js +0 -230
- package/src/idea-templates.js +0 -242
- package/src/ideas.js +0 -142
- package/src/index.js +0 -386
- package/src/language.js +0 -78
- package/src/layout.js +0 -38
- package/src/list-ideas.js +0 -196
- package/src/observation.js +0 -370
- package/src/repository.js +0 -82
- package/src/response.js +0 -492
- package/src/subprocess.js +0 -27
- package/src/trace.js +0 -292
- package/src/tui-table.js +0 -71
- package/src/tui.js +0 -205
- package/src/user-config.js +0 -135
- package/src/whatsnext.js +0 -726
- package/src/yaml.js +0 -66
package/src/whatsnext.js
DELETED
|
@@ -1,726 +0,0 @@
|
|
|
1
|
-
import { resolve } from "node:path";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ACTIVE_STATES,
|
|
5
|
-
diagnosticInstruction,
|
|
6
|
-
diagnosticProblem,
|
|
7
|
-
dialogueReadyObservation,
|
|
8
|
-
localize,
|
|
9
|
-
} from "./dialogue.js";
|
|
10
|
-
import { createCommandRun } from "./domain.js";
|
|
11
|
-
import { inspectPhaseGuidance } from "./guidance.js";
|
|
12
|
-
import {
|
|
13
|
-
metadataFailureObservation,
|
|
14
|
-
readIdeaInventoryItem,
|
|
15
|
-
} from "./idea-metadata.js";
|
|
16
|
-
import {
|
|
17
|
-
compareCommits,
|
|
18
|
-
fetchPrimary,
|
|
19
|
-
inspectRepositoryState,
|
|
20
|
-
sanitizeGitMessage,
|
|
21
|
-
} from "./git.js";
|
|
22
|
-
import { canonicalizeOutputLanguage } from "./language.js";
|
|
23
|
-
import {
|
|
24
|
-
observeSnapshot,
|
|
25
|
-
repositoryProblemObservation,
|
|
26
|
-
withObservationLanguage,
|
|
27
|
-
} from "./observation.js";
|
|
28
|
-
import { traceAsync } from "./trace.js";
|
|
29
|
-
|
|
30
|
-
export const CHANGE_SAMPLE_ITEM_LIMIT = 12;
|
|
31
|
-
export const CHANGE_SAMPLE_BYTE_LIMIT = 768;
|
|
32
|
-
|
|
33
|
-
function ideaName(idea) {
|
|
34
|
-
return idea.alias ?? idea.id;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function command(root, value) {
|
|
38
|
-
return `\`${value.replace("<root>", root)}\``;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function joinInstructions(lines) {
|
|
42
|
-
return lines.filter(Boolean).join("\n");
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function formatInstructionSteps(steps) {
|
|
46
|
-
return steps.length === 1
|
|
47
|
-
? steps
|
|
48
|
-
: steps.map((step, index) => `${index + 1}. ${step}`);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function projectInstructions(
|
|
52
|
-
observed,
|
|
53
|
-
root,
|
|
54
|
-
language,
|
|
55
|
-
recheckCommand = "silvermoon whats-next",
|
|
56
|
-
) {
|
|
57
|
-
return joinInstructions([
|
|
58
|
-
...formatInstructionSteps(observed.findings.map(({ instruction }) => instruction)),
|
|
59
|
-
localize(
|
|
60
|
-
language,
|
|
61
|
-
`After completing the applicable steps, run ${command(root, recheckCommand)} again.`,
|
|
62
|
-
`完成适用步骤后,再运行 ${command(root, recheckCommand)}。`,
|
|
63
|
-
),
|
|
64
|
-
]);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function phaseGuidanceInstructions(
|
|
68
|
-
diagnostics,
|
|
69
|
-
root,
|
|
70
|
-
language,
|
|
71
|
-
recheckCommand,
|
|
72
|
-
) {
|
|
73
|
-
return joinInstructions([
|
|
74
|
-
...formatInstructionSteps(
|
|
75
|
-
diagnostics.map((diagnostic) =>
|
|
76
|
-
diagnosticInstruction(diagnostic, language)
|
|
77
|
-
),
|
|
78
|
-
),
|
|
79
|
-
localize(
|
|
80
|
-
language,
|
|
81
|
-
`After repairing the current phase guidance, run ${command(root, recheckCommand)} again.`,
|
|
82
|
-
`修复当前阶段 guidance 后,再运行 ${command(root, recheckCommand)}。`,
|
|
83
|
-
),
|
|
84
|
-
]);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function sampleChanges(changes) {
|
|
88
|
-
const entries = [
|
|
89
|
-
...changes.conflicted.map(({ path }) => `conflicted:${path}`),
|
|
90
|
-
...changes.staged.map(({ path }) => `staged:${path}`),
|
|
91
|
-
...changes.unstaged.map(({ path }) => `unstaged:${path}`),
|
|
92
|
-
...changes.untracked.map(({ path }) => `untracked:${path}`),
|
|
93
|
-
];
|
|
94
|
-
const samples = [];
|
|
95
|
-
let bytes = 0;
|
|
96
|
-
for (const entry of entries) {
|
|
97
|
-
if (samples.length >= CHANGE_SAMPLE_ITEM_LIMIT) break;
|
|
98
|
-
const nextBytes = Buffer.byteLength(
|
|
99
|
-
samples.length === 0 ? entry : `, ${entry}`,
|
|
100
|
-
"utf8",
|
|
101
|
-
);
|
|
102
|
-
if (bytes + nextBytes > CHANGE_SAMPLE_BYTE_LIMIT) break;
|
|
103
|
-
samples.push(entry);
|
|
104
|
-
bytes += nextBytes;
|
|
105
|
-
}
|
|
106
|
-
return {
|
|
107
|
-
counts: {
|
|
108
|
-
conflicted: changes.conflicted.length,
|
|
109
|
-
staged: changes.staged.length,
|
|
110
|
-
unstaged: changes.unstaged.length,
|
|
111
|
-
untracked: changes.untracked.length,
|
|
112
|
-
},
|
|
113
|
-
omitted: entries.length - samples.length,
|
|
114
|
-
samples,
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export function summarizeWorktreeChanges(changes, language = "en-US") {
|
|
119
|
-
const summary = sampleChanges(changes);
|
|
120
|
-
const labels = {
|
|
121
|
-
conflicted: localize(language, "conflicted", "冲突"),
|
|
122
|
-
staged: localize(language, "staged", "已暂存"),
|
|
123
|
-
unstaged: localize(language, "unstaged", "未暂存"),
|
|
124
|
-
untracked: localize(language, "untracked", "未跟踪"),
|
|
125
|
-
};
|
|
126
|
-
const counts = Object.entries(summary.counts)
|
|
127
|
-
.map(([kind, count]) => `${labels[kind]}=${count}`)
|
|
128
|
-
.join(localize(language, ", ", ","));
|
|
129
|
-
const samples = summary.samples.length === 0
|
|
130
|
-
? localize(language, "none", "无")
|
|
131
|
-
: summary.samples.join(localize(language, ", ", ","));
|
|
132
|
-
return localize(
|
|
133
|
-
language,
|
|
134
|
-
`${counts}; samples=[${samples}]; omitted=${summary.omitted}`,
|
|
135
|
-
`${counts};样例=[${samples}];省略=${summary.omitted}`,
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function worktreeInstructionSteps(changes, language) {
|
|
140
|
-
const lines = [];
|
|
141
|
-
if (changes.conflicted.length > 0) {
|
|
142
|
-
lines.push(localize(
|
|
143
|
-
language,
|
|
144
|
-
"Inspect every conflicted path and its contents, then resolve the conflicts without discarding either side.",
|
|
145
|
-
"检查全部冲突路径及其内容,再在不丢弃任一方内容的前提下解决冲突。",
|
|
146
|
-
));
|
|
147
|
-
}
|
|
148
|
-
const hasOrdinaryChanges =
|
|
149
|
-
changes.staged.length > 0
|
|
150
|
-
|| changes.unstaged.length > 0
|
|
151
|
-
|| changes.untracked.length > 0;
|
|
152
|
-
if (hasOrdinaryChanges) {
|
|
153
|
-
lines.push(localize(
|
|
154
|
-
language,
|
|
155
|
-
"Inspect all staged, unstaged, and untracked paths and their changes, not just the samples above. Preserve unknown work, then commit, isolate, or explicitly discard each change.",
|
|
156
|
-
"检查全部 staged、unstaged 和 untracked 路径及其修改内容,不要只依据上述样例。保留未知工作,再逐项提交、隔离,或在获得明确授权后放弃。",
|
|
157
|
-
));
|
|
158
|
-
}
|
|
159
|
-
return lines;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
function localRepositoryInstructions(root, steps, language, recheckCommand) {
|
|
163
|
-
return joinInstructions([
|
|
164
|
-
...formatInstructionSteps(steps),
|
|
165
|
-
localize(
|
|
166
|
-
language,
|
|
167
|
-
`After completing every applicable step, run ${command(root, recheckCommand)} again.`,
|
|
168
|
-
`完成全部适用步骤后,再运行 ${command(root, recheckCommand)}。`,
|
|
169
|
-
),
|
|
170
|
-
]);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
function selectIdea(ideas, selector) {
|
|
174
|
-
if (selector === undefined) return null;
|
|
175
|
-
return ideas.find(({ id }) => id === selector)
|
|
176
|
-
?? ideas.find(({ alias }) => alias === selector)
|
|
177
|
-
?? null;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function lifecycleContentLanguageInstruction(contentLanguage, language) {
|
|
181
|
-
return localize(
|
|
182
|
-
language,
|
|
183
|
-
`Use ${contentLanguage} for natural-language content in the current world, its supporting files, and the ledger. Preserve canonical headings, stable IDs, paths, and machine fields.`,
|
|
184
|
-
`在当前世界、同世界辅助文件和 ledger 的自然语言内容中使用 ${contentLanguage}。保留 canonical 标题、稳定 ID、路径和机器字段。`,
|
|
185
|
-
);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
function lifecycleInstruction(idea, language, contentLanguage) {
|
|
189
|
-
const name = ideaName(idea);
|
|
190
|
-
if (idea.state === "preparing") {
|
|
191
|
-
return joinInstructions([localize(
|
|
192
|
-
language,
|
|
193
|
-
`Continue idea ${name} in ${idea.worlds.idealRevision.documentPath} and ${idea.ledgerPath}. Preserve the other worlds. When the Ideal World is ready, ask the user to approve exact revision ${idea.idealRevision}; only after explicit approval write it to approvedRevision in ${idea.statusPath}.`,
|
|
194
|
-
`继续在 ${idea.worlds.idealRevision.documentPath} 和 ${idea.ledgerPath} 推进 idea ${name},并保留其他世界。理想契约就绪后,请用户明确批准精确 revision ${idea.idealRevision};只有获得明确批准后,才将其写入 ${idea.statusPath} 的 approvedRevision。`,
|
|
195
|
-
), lifecycleContentLanguageInstruction(contentLanguage, language)]);
|
|
196
|
-
}
|
|
197
|
-
if (idea.state === "implementing") {
|
|
198
|
-
return joinInstructions([localize(
|
|
199
|
-
language,
|
|
200
|
-
`Continue idea ${name} in ${idea.worlds.implementationRevision.documentPath}, its supporting files under ${idea.worlds.implementationRevision.path}, and ${idea.ledgerPath}. Do not change ${idea.worlds.idealRevision.path} unless the Ideal World must change. After all implementation evidence is published, ask the user to accept exact revision ${idea.implementationRevision}; only then write it to implementationAcceptedRevision in ${idea.statusPath}.`,
|
|
201
|
-
`继续在 ${idea.worlds.implementationRevision.documentPath}、${idea.worlds.implementationRevision.path} 下的辅助文件和 ${idea.ledgerPath} 推进 idea ${name}。除非理想契约确实需要变化,否则不要修改 ${idea.worlds.idealRevision.path}。全部实现证据发布后,请用户明确验收精确 revision ${idea.implementationRevision};只有获得明确验收后,才将其写入 ${idea.statusPath} 的 implementationAcceptedRevision。`,
|
|
202
|
-
), lifecycleContentLanguageInstruction(contentLanguage, language)]);
|
|
203
|
-
}
|
|
204
|
-
if (idea.state === "deploying") {
|
|
205
|
-
return joinInstructions([localize(
|
|
206
|
-
language,
|
|
207
|
-
`Continue idea ${name} from ${idea.worlds.deploymentRevision.documentPath}, its supporting files under ${idea.worlds.deploymentRevision.path}, and ${idea.ledgerPath}. Preserve nested worlds. After external evidence is complete and published, ask the user to accept exact revision ${idea.deploymentRevision}; only then write it to deploymentAcceptedRevision in ${idea.statusPath}.`,
|
|
208
|
-
`从 ${idea.worlds.deploymentRevision.documentPath}、${idea.worlds.deploymentRevision.path} 下的辅助文件和 ${idea.ledgerPath} 继续推进 idea ${name},并保留内层世界。外部证据完成且发布后,请用户明确验收精确 revision ${idea.deploymentRevision};只有获得明确验收后,才将其写入 ${idea.statusPath} 的 deploymentAcceptedRevision。`,
|
|
209
|
-
), lifecycleContentLanguageInstruction(contentLanguage, language)]);
|
|
210
|
-
}
|
|
211
|
-
if (idea.state === "abandoned") {
|
|
212
|
-
return localize(
|
|
213
|
-
language,
|
|
214
|
-
`Review abandoned idea ${name} at ${idea.relativePath}. Keep abandoned: true in ${idea.statusPath}, remove it only after an explicit decision to resume, or discuss a different goal and run silvermoon create-idea.`,
|
|
215
|
-
`复查位于 ${idea.relativePath} 的已放弃 idea ${name}。保持 ${idea.statusPath} 中的 abandoned: true;只有明确决定恢复时才移除它,或者讨论另一个目标并运行 silvermoon create-idea。`,
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
return localize(
|
|
219
|
-
language,
|
|
220
|
-
`Review completed idea ${name} at ${idea.relativePath}. If its definition must change, revise the existing idea; otherwise discuss a new goal and run silvermoon create-idea.`,
|
|
221
|
-
`复查位于 ${idea.relativePath} 的已完成 idea ${name}。若其定义需要变化则修订现有 idea;否则讨论新目标并运行 silvermoon create-idea。`,
|
|
222
|
-
);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
function navigationInstruction(ideas, language) {
|
|
226
|
-
const hasActiveIdea = ideas.some(({ state }) =>
|
|
227
|
-
state === "preparing" || state === "implementing" || state === "deploying"
|
|
228
|
-
);
|
|
229
|
-
return joinInstructions([
|
|
230
|
-
localize(
|
|
231
|
-
language,
|
|
232
|
-
"Choose explicitly whether to continue an active idea or create a new one.",
|
|
233
|
-
"请明确选择继续一个 active idea,或创建一个新 idea。",
|
|
234
|
-
),
|
|
235
|
-
hasActiveIdea
|
|
236
|
-
? null
|
|
237
|
-
: localize(language, "No active ideas are available.", "当前没有 active idea。"),
|
|
238
|
-
localize(
|
|
239
|
-
language,
|
|
240
|
-
"To continue, run `silvermoon whats-next <ULID-or-alias>`. To start something else, discuss the goal and run `silvermoon create-idea`.",
|
|
241
|
-
"如需继续,运行 `silvermoon whats-next <ULID-or-alias>`;如需开始其他工作,先讨论目标,再运行 `silvermoon create-idea`。",
|
|
242
|
-
),
|
|
243
|
-
]);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
async function assessRepositoryReadinessInternal({
|
|
247
|
-
observed,
|
|
248
|
-
runtime,
|
|
249
|
-
requirePrimaryBranch = false,
|
|
250
|
-
recheckCommand = "silvermoon whats-next",
|
|
251
|
-
root,
|
|
252
|
-
synchronizePrimary = true,
|
|
253
|
-
}) {
|
|
254
|
-
const language = observed.outputLanguage;
|
|
255
|
-
let repository;
|
|
256
|
-
try {
|
|
257
|
-
repository = inspectRepositoryState(root);
|
|
258
|
-
} catch (caught) {
|
|
259
|
-
const problem = {
|
|
260
|
-
type: "worktree-inspection-failed",
|
|
261
|
-
summary: sanitizeGitMessage(caught.message),
|
|
262
|
-
};
|
|
263
|
-
return {
|
|
264
|
-
observation: repositoryProblemObservation(observed.observation, [problem]),
|
|
265
|
-
instructions: localize(
|
|
266
|
-
language,
|
|
267
|
-
`Repair the local Git state, verify that all changes can be inspected, then run ${command(root, recheckCommand)} again.`,
|
|
268
|
-
`修复本地 Git 状态,确认可检查全部修改后,再运行 ${command(root, recheckCommand)}。`,
|
|
269
|
-
),
|
|
270
|
-
ready: false,
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
const { branch, changes, head } = repository;
|
|
274
|
-
|
|
275
|
-
const dirty =
|
|
276
|
-
changes.conflicted.length > 0
|
|
277
|
-
|| changes.staged.length > 0
|
|
278
|
-
|| changes.unstaged.length > 0
|
|
279
|
-
|| changes.untracked.length > 0;
|
|
280
|
-
const localProblems = [];
|
|
281
|
-
const localSteps = [];
|
|
282
|
-
if (dirty) {
|
|
283
|
-
if (changes.conflicted.length > 0) {
|
|
284
|
-
localProblems.push({
|
|
285
|
-
type: "worktree-conflicts",
|
|
286
|
-
summary: localize(
|
|
287
|
-
language,
|
|
288
|
-
`${changes.conflicted.length} conflicted path(s); ${summarizeWorktreeChanges({
|
|
289
|
-
conflicted: changes.conflicted,
|
|
290
|
-
staged: [],
|
|
291
|
-
unstaged: [],
|
|
292
|
-
untracked: [],
|
|
293
|
-
}, language)}`,
|
|
294
|
-
`${changes.conflicted.length} 个冲突路径;${summarizeWorktreeChanges({
|
|
295
|
-
conflicted: changes.conflicted,
|
|
296
|
-
staged: [],
|
|
297
|
-
unstaged: [],
|
|
298
|
-
untracked: [],
|
|
299
|
-
}, language)}`,
|
|
300
|
-
),
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
if (
|
|
304
|
-
changes.staged.length > 0
|
|
305
|
-
|| changes.unstaged.length > 0
|
|
306
|
-
|| changes.untracked.length > 0
|
|
307
|
-
) {
|
|
308
|
-
localProblems.push({
|
|
309
|
-
type: "worktree-changes",
|
|
310
|
-
summary: summarizeWorktreeChanges({
|
|
311
|
-
conflicted: [],
|
|
312
|
-
staged: changes.staged,
|
|
313
|
-
unstaged: changes.unstaged,
|
|
314
|
-
untracked: changes.untracked,
|
|
315
|
-
}, language),
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
localSteps.push(...worktreeInstructionSteps(changes, language));
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
if (head === null) {
|
|
322
|
-
localProblems.push({
|
|
323
|
-
type: "head-missing",
|
|
324
|
-
summary: localize(
|
|
325
|
-
language,
|
|
326
|
-
"The repository has no commit at HEAD.",
|
|
327
|
-
"repository 的 HEAD 尚无 commit。",
|
|
328
|
-
),
|
|
329
|
-
});
|
|
330
|
-
localSteps.push(localize(
|
|
331
|
-
language,
|
|
332
|
-
"After resolving conflicts and deciding which local changes belong, create the initial commit on the intended branch.",
|
|
333
|
-
"解决冲突并确认应保留的本地修改后,在预期分支创建初始 commit。",
|
|
334
|
-
));
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
if (branch.branch === null) {
|
|
338
|
-
localProblems.push({
|
|
339
|
-
type: "detached-head",
|
|
340
|
-
summary: localize(
|
|
341
|
-
language,
|
|
342
|
-
head === null
|
|
343
|
-
? "The repository has no current local branch."
|
|
344
|
-
: `HEAD ${head} is detached and has no current branch.`,
|
|
345
|
-
head === null
|
|
346
|
-
? "repository 当前没有本地分支。"
|
|
347
|
-
: `HEAD ${head} 处于 detached 状态,没有当前分支。`,
|
|
348
|
-
),
|
|
349
|
-
});
|
|
350
|
-
localSteps.push(localize(
|
|
351
|
-
language,
|
|
352
|
-
`Preserve current work, then switch to or create the intended local branch whose upstream is ${observed.config.primaryRepository}#${observed.config.primaryBranch}.`,
|
|
353
|
-
`保留当前工作,然后切换或创建 upstream 为 ${observed.config.primaryRepository}#${observed.config.primaryBranch} 的预期本地分支。`,
|
|
354
|
-
));
|
|
355
|
-
} else {
|
|
356
|
-
if (requirePrimaryBranch && branch.branch !== observed.config.primaryBranch) {
|
|
357
|
-
localProblems.push({
|
|
358
|
-
type: "primary-branch-mismatch",
|
|
359
|
-
summary: localize(
|
|
360
|
-
language,
|
|
361
|
-
`Current branch is ${branch.branch}; expected configured primary branch ${observed.config.primaryBranch}.`,
|
|
362
|
-
`当前分支为 ${branch.branch};预期为 configured primary branch ${observed.config.primaryBranch}。`,
|
|
363
|
-
),
|
|
364
|
-
});
|
|
365
|
-
localSteps.push(localize(
|
|
366
|
-
language,
|
|
367
|
-
`Preserve current work, then switch to configured primary branch ${observed.config.primaryBranch}.`,
|
|
368
|
-
`保留当前工作,然后切换到 configured primary branch ${observed.config.primaryBranch}。`,
|
|
369
|
-
));
|
|
370
|
-
}
|
|
371
|
-
if (
|
|
372
|
-
branch.repository !== observed.config.primaryRepository
|
|
373
|
-
|| branch.upstreamBranch !== observed.config.primaryBranch
|
|
374
|
-
) {
|
|
375
|
-
const actual = branch.remote === null
|
|
376
|
-
? localize(language, "none", "无")
|
|
377
|
-
: `${branch.repository ?? branch.remote}#${branch.upstreamBranch ?? localize(language, "unknown", "未知")}`;
|
|
378
|
-
localProblems.push({
|
|
379
|
-
type: "primary-upstream-mismatch",
|
|
380
|
-
summary: localize(
|
|
381
|
-
language,
|
|
382
|
-
`Branch ${branch.branch} has upstream ${actual}; expected ${observed.config.primaryRepository}#${observed.config.primaryBranch}.`,
|
|
383
|
-
`分支 ${branch.branch} 的 upstream 是 ${actual};预期为 ${observed.config.primaryRepository}#${observed.config.primaryBranch}。`,
|
|
384
|
-
),
|
|
385
|
-
});
|
|
386
|
-
localSteps.push(localize(
|
|
387
|
-
language,
|
|
388
|
-
`Configure a named remote for ${observed.config.primaryRepository}, then set branch ${branch.branch} to track that remote's ${observed.config.primaryBranch} branch. Verify with ${command(root, 'git -C "<root>" rev-parse --abbrev-ref --symbolic-full-name \'@{upstream}\'')}.`,
|
|
389
|
-
`为 ${observed.config.primaryRepository} 配置 named remote,再将分支 ${branch.branch} 的 upstream 设为该 remote 的 ${observed.config.primaryBranch}。使用 ${command(root, 'git -C "<root>" rev-parse --abbrev-ref --symbolic-full-name \'@{upstream}\'')} 验证。`,
|
|
390
|
-
));
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
if (localProblems.length > 0) {
|
|
395
|
-
return {
|
|
396
|
-
branch,
|
|
397
|
-
changes,
|
|
398
|
-
head,
|
|
399
|
-
observation: repositoryProblemObservation(
|
|
400
|
-
observed.observation,
|
|
401
|
-
localProblems,
|
|
402
|
-
),
|
|
403
|
-
instructions: localRepositoryInstructions(
|
|
404
|
-
root,
|
|
405
|
-
localSteps,
|
|
406
|
-
language,
|
|
407
|
-
recheckCommand,
|
|
408
|
-
),
|
|
409
|
-
ready: false,
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
if (!synchronizePrimary) {
|
|
414
|
-
return {
|
|
415
|
-
branch,
|
|
416
|
-
changes,
|
|
417
|
-
head,
|
|
418
|
-
observation: observed.observation,
|
|
419
|
-
ready: true,
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
const fetched = await runtime.performAction(
|
|
424
|
-
{
|
|
425
|
-
type: "fetch-primary",
|
|
426
|
-
repository: observed.config.primaryRepository,
|
|
427
|
-
branch: observed.config.primaryBranch,
|
|
428
|
-
},
|
|
429
|
-
() => ({
|
|
430
|
-
commit: fetchPrimary(root, observed.config),
|
|
431
|
-
}),
|
|
432
|
-
(caught) => ({
|
|
433
|
-
problem: {
|
|
434
|
-
type: "primary-fetch-failed",
|
|
435
|
-
summary: sanitizeGitMessage(caught.message),
|
|
436
|
-
},
|
|
437
|
-
}),
|
|
438
|
-
);
|
|
439
|
-
if (fetched.status === "failure") {
|
|
440
|
-
const message = fetched.problem.summary;
|
|
441
|
-
return {
|
|
442
|
-
observation: repositoryProblemObservation(observed.observation, [{
|
|
443
|
-
type: "primary-fetch-failed",
|
|
444
|
-
summary: message,
|
|
445
|
-
}]),
|
|
446
|
-
instructions: localize(
|
|
447
|
-
language,
|
|
448
|
-
`Check network access, authorization, ${observed.config.primaryRepository}, and branch ${observed.config.primaryBranch}; after an observable fix, run ${command(root, recheckCommand)} again.`,
|
|
449
|
-
`检查网络、授权、${observed.config.primaryRepository} 和分支 ${observed.config.primaryBranch};产生可观察修复后,再运行 ${command(root, recheckCommand)}。`,
|
|
450
|
-
),
|
|
451
|
-
ready: false,
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
const primary = fetched.result.commit;
|
|
455
|
-
|
|
456
|
-
let relation;
|
|
457
|
-
try {
|
|
458
|
-
relation = compareCommits(root, head, primary);
|
|
459
|
-
} catch (caught) {
|
|
460
|
-
return {
|
|
461
|
-
branch,
|
|
462
|
-
head,
|
|
463
|
-
observation: repositoryProblemObservation(observed.observation, [{
|
|
464
|
-
type: "primary-ancestry-inspection-failed",
|
|
465
|
-
summary: sanitizeGitMessage(caught.message),
|
|
466
|
-
}]),
|
|
467
|
-
primary,
|
|
468
|
-
instructions: localize(
|
|
469
|
-
language,
|
|
470
|
-
`Repair or deepen local Git history until ${head} and ${primary} can be compared, then run ${command(root, recheckCommand)} again.`,
|
|
471
|
-
`修复或补全本地 Git 历史,直到可以比较 ${head} 和 ${primary},然后再运行 ${command(root, recheckCommand)}。`,
|
|
472
|
-
),
|
|
473
|
-
ready: false,
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
if (relation === "aligned") {
|
|
477
|
-
return { branch, head, observation: observed.observation, primary, ready: true };
|
|
478
|
-
}
|
|
479
|
-
const problem = {
|
|
480
|
-
type: relation === "unknown"
|
|
481
|
-
? "primary-history-incomplete"
|
|
482
|
-
: `primary-${relation}`,
|
|
483
|
-
summary: localize(
|
|
484
|
-
language,
|
|
485
|
-
`Local HEAD is ${head}; observed primary is ${primary}; relationship is ${relation}.`,
|
|
486
|
-
`本地 HEAD 为 ${head};观测到的 primary 为 ${primary};两者关系为 ${relation}。`,
|
|
487
|
-
),
|
|
488
|
-
};
|
|
489
|
-
let instructions;
|
|
490
|
-
if (relation === "unknown") {
|
|
491
|
-
instructions = localize(
|
|
492
|
-
language,
|
|
493
|
-
`Deepen the shallow history from remote ${branch.remote} until ${head} and ${primary} can be compared, then run ${command(root, recheckCommand)} again.`,
|
|
494
|
-
`从 remote ${branch.remote} 补全 shallow history,直到可以比较 ${head} 和 ${primary},然后再运行 ${command(root, recheckCommand)}。`,
|
|
495
|
-
);
|
|
496
|
-
} else if (relation === "behind") {
|
|
497
|
-
instructions = localize(
|
|
498
|
-
language,
|
|
499
|
-
`Fast-forward branch ${branch.branch} to observed primary ${primary} with ${command(root, `git -C "<root>" merge --ff-only ${primary}`)} without rewriting history, then run ${command(root, recheckCommand)} again.`,
|
|
500
|
-
`使用 ${command(root, `git -C "<root>" merge --ff-only ${primary}`)} 将分支 ${branch.branch} fast-forward 到已观察 primary ${primary},不要改写历史,然后再运行 ${command(root, recheckCommand)}。`,
|
|
501
|
-
);
|
|
502
|
-
} else if (relation === "ahead") {
|
|
503
|
-
instructions = localize(
|
|
504
|
-
language,
|
|
505
|
-
`Validate local commit ${head}, confirm the remote tip is still ${primary}, then push normally to ${branch.remote}/${observed.config.primaryBranch} without force. Re-run ${command(root, recheckCommand)} after the push.`,
|
|
506
|
-
`验证本地 commit ${head},确认 remote tip 仍为 ${primary},再普通 push 到 ${branch.remote}/${observed.config.primaryBranch},不要 force。push 后重新运行 ${command(root, recheckCommand)}。`,
|
|
507
|
-
);
|
|
508
|
-
} else {
|
|
509
|
-
instructions = localize(
|
|
510
|
-
language,
|
|
511
|
-
`Preserve local ${head} and remote ${primary}, integrate both histories without force-pushing, resolve and validate the result, then run ${command(root, recheckCommand)} again.`,
|
|
512
|
-
`保留本地 ${head} 与 remote ${primary},在不 force-push 的前提下整合两边历史,解决并验证结果,然后再运行 ${command(root, recheckCommand)}。`,
|
|
513
|
-
);
|
|
514
|
-
}
|
|
515
|
-
return {
|
|
516
|
-
branch,
|
|
517
|
-
head,
|
|
518
|
-
observation: repositoryProblemObservation(observed.observation, [problem]),
|
|
519
|
-
primary,
|
|
520
|
-
instructions,
|
|
521
|
-
ready: false,
|
|
522
|
-
};
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
export async function assessRepositoryReadiness(options) {
|
|
526
|
-
return traceAsync(
|
|
527
|
-
"repository.assess-readiness",
|
|
528
|
-
{},
|
|
529
|
-
() => assessRepositoryReadinessInternal(options),
|
|
530
|
-
);
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
export async function assessIdeaCreationReadiness(options) {
|
|
534
|
-
return traceAsync(
|
|
535
|
-
"repository.assess-creation-readiness",
|
|
536
|
-
{},
|
|
537
|
-
() => assessRepositoryReadinessInternal({
|
|
538
|
-
...options,
|
|
539
|
-
requirePrimaryBranch: true,
|
|
540
|
-
synchronizePrimary: false,
|
|
541
|
-
}),
|
|
542
|
-
);
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
export async function whatsNext({
|
|
546
|
-
guidanceReader = inspectPhaseGuidance,
|
|
547
|
-
idea: selector,
|
|
548
|
-
language,
|
|
549
|
-
root = process.cwd(),
|
|
550
|
-
userHome,
|
|
551
|
-
} = {}) {
|
|
552
|
-
const canonicalLanguage = language === undefined
|
|
553
|
-
? undefined
|
|
554
|
-
: canonicalizeOutputLanguage(language);
|
|
555
|
-
const requestedRoot = resolve(root);
|
|
556
|
-
const intention = {
|
|
557
|
-
command: "whats-next",
|
|
558
|
-
args: {
|
|
559
|
-
idea: selector ?? null,
|
|
560
|
-
language: canonicalLanguage ?? null,
|
|
561
|
-
},
|
|
562
|
-
};
|
|
563
|
-
const runtime = createCommandRun(intention);
|
|
564
|
-
const baseRecheckCommand = selector === undefined
|
|
565
|
-
? "silvermoon whats-next"
|
|
566
|
-
: `silvermoon whats-next ${JSON.stringify(selector)}`;
|
|
567
|
-
const recheckCommand = canonicalLanguage === undefined
|
|
568
|
-
? baseRecheckCommand
|
|
569
|
-
: `${baseRecheckCommand} --language ${canonicalLanguage}`;
|
|
570
|
-
let observed = await observeSnapshot({
|
|
571
|
-
outputLanguage: canonicalLanguage,
|
|
572
|
-
root: requestedRoot,
|
|
573
|
-
userHome,
|
|
574
|
-
version: { type: "worktree" },
|
|
575
|
-
});
|
|
576
|
-
runtime.observe(observed.observation, { factType: "project.snapshot" });
|
|
577
|
-
if (!observed.projectReady) {
|
|
578
|
-
return runtime.complete(
|
|
579
|
-
observed.observation,
|
|
580
|
-
{
|
|
581
|
-
nextSteps: projectInstructions(
|
|
582
|
-
observed,
|
|
583
|
-
observed.observation.root,
|
|
584
|
-
observed.outputLanguage,
|
|
585
|
-
recheckCommand,
|
|
586
|
-
),
|
|
587
|
-
},
|
|
588
|
-
);
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
const selected = selectIdea(observed.layout.ideas, selector);
|
|
592
|
-
if (selected?.status.language) {
|
|
593
|
-
observed = withObservationLanguage(observed, selected.status.language);
|
|
594
|
-
}
|
|
595
|
-
const readiness = await assessRepositoryReadiness({
|
|
596
|
-
observed,
|
|
597
|
-
runtime,
|
|
598
|
-
recheckCommand,
|
|
599
|
-
root: observed.observation.root,
|
|
600
|
-
});
|
|
601
|
-
if (!readiness.ready) {
|
|
602
|
-
return runtime.complete(
|
|
603
|
-
readiness.observation,
|
|
604
|
-
{ nextSteps: readiness.instructions },
|
|
605
|
-
);
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
let navigationObservation = readiness.observation;
|
|
609
|
-
if (selector === undefined || !selected) {
|
|
610
|
-
let activeItems;
|
|
611
|
-
try {
|
|
612
|
-
const activeIds = new Set(
|
|
613
|
-
readiness.observation.ideas.activeIdeas.map(({ id }) => id),
|
|
614
|
-
);
|
|
615
|
-
activeItems = await traceAsync(
|
|
616
|
-
"ideas.navigation-metadata",
|
|
617
|
-
{ ideaCount: activeIds.size },
|
|
618
|
-
() => Promise.all(
|
|
619
|
-
observed.layout.ideas
|
|
620
|
-
.filter(({ id }) => activeIds.has(id))
|
|
621
|
-
.map((idea) => readIdeaInventoryItem(observed.observation.root, idea)),
|
|
622
|
-
),
|
|
623
|
-
);
|
|
624
|
-
} catch (caught) {
|
|
625
|
-
const failure = metadataFailureObservation(
|
|
626
|
-
observed,
|
|
627
|
-
caught,
|
|
628
|
-
recheckCommand,
|
|
629
|
-
);
|
|
630
|
-
return runtime.complete(failure.observation, failure.responseContext);
|
|
631
|
-
}
|
|
632
|
-
const itemsById = new Map(activeItems.map((item) => [item.id, item]));
|
|
633
|
-
navigationObservation = {
|
|
634
|
-
...readiness.observation,
|
|
635
|
-
ideas: {
|
|
636
|
-
...readiness.observation.ideas,
|
|
637
|
-
activeIdeas: readiness.observation.ideas.activeIdeas.map(({ id }) => {
|
|
638
|
-
const item = itemsById.get(id);
|
|
639
|
-
if (item === undefined) {
|
|
640
|
-
throw new Error(`Missing observed navigation metadata for ${id}`);
|
|
641
|
-
}
|
|
642
|
-
return item;
|
|
643
|
-
}),
|
|
644
|
-
},
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
if (selector === undefined) {
|
|
649
|
-
return runtime.complete(
|
|
650
|
-
{ ...navigationObservation, state: "navigation-ready" },
|
|
651
|
-
{
|
|
652
|
-
nextSteps: navigationInstruction(
|
|
653
|
-
observed.layout.ideas,
|
|
654
|
-
observed.outputLanguage,
|
|
655
|
-
),
|
|
656
|
-
},
|
|
657
|
-
);
|
|
658
|
-
}
|
|
659
|
-
if (!selected) {
|
|
660
|
-
return runtime.complete(
|
|
661
|
-
dialogueReadyObservation(navigationObservation, "idea-not-found", {
|
|
662
|
-
candidates: navigationObservation.ideas.activeIdeas,
|
|
663
|
-
}),
|
|
664
|
-
{
|
|
665
|
-
nextSteps: joinInstructions([
|
|
666
|
-
localize(
|
|
667
|
-
observed.outputLanguage,
|
|
668
|
-
`Idea ${selector} does not match an observed ULID or unique alias.`,
|
|
669
|
-
`Idea ${selector} 未匹配任何已观察到的 ULID 或唯一 alias。`,
|
|
670
|
-
),
|
|
671
|
-
navigationInstruction(observed.layout.ideas, observed.outputLanguage),
|
|
672
|
-
]),
|
|
673
|
-
},
|
|
674
|
-
);
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
const selectedIdea = {
|
|
678
|
-
id: selected.id,
|
|
679
|
-
...(selected.alias === undefined ? {} : { alias: selected.alias }),
|
|
680
|
-
state: selected.state,
|
|
681
|
-
};
|
|
682
|
-
let guidance;
|
|
683
|
-
if (ACTIVE_STATES.has(selected.state)) {
|
|
684
|
-
const inspected = await guidanceReader({
|
|
685
|
-
gitRoot: readiness.observation.root,
|
|
686
|
-
phase: selected.state,
|
|
687
|
-
snapshotTree: readiness.primary,
|
|
688
|
-
});
|
|
689
|
-
if (inspected.state === "invalid") {
|
|
690
|
-
return runtime.complete(
|
|
691
|
-
dialogueReadyObservation(
|
|
692
|
-
readiness.observation,
|
|
693
|
-
"phase-guidance-invalid",
|
|
694
|
-
{
|
|
695
|
-
selectedIdea,
|
|
696
|
-
problems: inspected.diagnostics.map((diagnostic) =>
|
|
697
|
-
diagnosticProblem(diagnostic, observed.outputLanguage)
|
|
698
|
-
),
|
|
699
|
-
},
|
|
700
|
-
),
|
|
701
|
-
{
|
|
702
|
-
nextSteps: phaseGuidanceInstructions(
|
|
703
|
-
inspected.diagnostics,
|
|
704
|
-
readiness.observation.root,
|
|
705
|
-
observed.outputLanguage,
|
|
706
|
-
recheckCommand,
|
|
707
|
-
),
|
|
708
|
-
},
|
|
709
|
-
);
|
|
710
|
-
}
|
|
711
|
-
guidance = inspected.guidance;
|
|
712
|
-
}
|
|
713
|
-
return runtime.complete(
|
|
714
|
-
dialogueReadyObservation(readiness.observation, "idea-selected", {
|
|
715
|
-
selectedIdea,
|
|
716
|
-
...(guidance === undefined ? {} : { guidance }),
|
|
717
|
-
}),
|
|
718
|
-
{
|
|
719
|
-
nextSteps: lifecycleInstruction(
|
|
720
|
-
selected,
|
|
721
|
-
observed.outputLanguage,
|
|
722
|
-
observed.contentLanguage,
|
|
723
|
-
),
|
|
724
|
-
},
|
|
725
|
-
);
|
|
726
|
-
}
|