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,7 @@
|
|
|
1
|
+
export { checkRepository, checkRepositoryUseCase, } from "./check-repository.js";
|
|
2
|
+
export { createIdea, createIdeaUseCase, generateUlid, } from "./create-idea.js";
|
|
3
|
+
export { eventCommand, eventCommandUseCase, } from "./event-command.js";
|
|
4
|
+
export { listIdeas, listIdeasUseCase, } from "./list-ideas.js";
|
|
5
|
+
export { IMPLEMENTED_SCHEMA_MIGRATIONS, runSchemaMigration, } from "./schema-migration.js";
|
|
6
|
+
export { CHANGE_SAMPLE_BYTE_LIMIT, CHANGE_SAMPLE_ITEM_LIMIT, assessIdeaCreationReadiness, assessRepositoryReadiness, phaseGuidanceInstructions, projectInstructions, summarizeWorktreeChanges, whatsNext, whatsNextUseCase, } from "./whats-next.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/business/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,YAAY,GACb,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,YAAY,EACZ,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,SAAS,EACT,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,6BAA6B,EAC7B,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACxB,SAAS,EACT,gBAAgB,GACjB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { createCommandRun } from "../foundation/command-message/index.ts";
|
|
2
|
+
import { ideaInventoryItem } from "../foundation/idea-query/index.ts";
|
|
3
|
+
import { observeSnapshot } from "./shared/index.ts";
|
|
4
|
+
import type { ObservedIdea } from "./shared/idea-layout.ts";
|
|
5
|
+
type InventoryItem = ReturnType<typeof ideaInventoryItem>;
|
|
6
|
+
type MetadataReader = (root: string, idea: ObservedIdea) => Promise<InventoryItem>;
|
|
7
|
+
interface ListIdeasOptions {
|
|
8
|
+
all?: boolean;
|
|
9
|
+
createdBefore?: string;
|
|
10
|
+
createdSince?: string;
|
|
11
|
+
language?: string;
|
|
12
|
+
limit?: number | null;
|
|
13
|
+
metadataReader?: MetadataReader;
|
|
14
|
+
query?: string;
|
|
15
|
+
root?: string;
|
|
16
|
+
sort?: "created-asc" | "created-desc" | "updated-asc" | "updated-desc";
|
|
17
|
+
states?: string[];
|
|
18
|
+
userHome?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const LISTIDEAS_PORTS: Readonly<{
|
|
21
|
+
createCommandRun: typeof createCommandRun;
|
|
22
|
+
observeSnapshot: typeof observeSnapshot;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function listIdeasUseCase({ all, createdBefore, createdSince, language, limit, metadataReader, query, root, sort, states, userHome, }?: ListIdeasOptions, ports?: typeof LISTIDEAS_PORTS): Promise<{
|
|
25
|
+
intention: import("../foundation/report/types.ts").CommandIntention;
|
|
26
|
+
observation: import("../foundation/report/types.ts").ProjectSetupObservation | import("../foundation/report/types.ts").CheckUnavailableObservation | import("../foundation/report/types.ts").ProjectReadyObservation | import("../foundation/report/types.ts").RepositoryBlockedObservation | import("../foundation/report/types.ts").NavigationReadyObservation | import("../foundation/report/types.ts").IdeaNotFoundObservation | import("../foundation/report/types.ts").IdeaSelectedObservation | import("../foundation/report/types.ts").IdeaCreatedObservation | import("../foundation/report/types.ts").IdeasListedObservation | import("../foundation/report/types.ts").EventResultObservation | {
|
|
27
|
+
guidance: {
|
|
28
|
+
phase: string;
|
|
29
|
+
path: string;
|
|
30
|
+
contentRevision: string;
|
|
31
|
+
};
|
|
32
|
+
state: "idea-selected";
|
|
33
|
+
configuration: import("../foundation/report/types.ts").ProjectConfiguration;
|
|
34
|
+
version: import("../foundation/report/types.ts").ProjectVersion;
|
|
35
|
+
selectedIdea: import("../foundation/report/types.ts").IdeaReference;
|
|
36
|
+
root: string;
|
|
37
|
+
outputLanguage: string;
|
|
38
|
+
problems: import("./shared/index.ts").Problem[];
|
|
39
|
+
device?: import("../foundation/report/types.ts").DeviceAdvisory;
|
|
40
|
+
schemas?: import("../foundation/schema-capability/inspection.ts").ProjectSchemaReadiness;
|
|
41
|
+
} | {
|
|
42
|
+
guidance: {
|
|
43
|
+
phase: string;
|
|
44
|
+
path: string;
|
|
45
|
+
contentRevision: string;
|
|
46
|
+
};
|
|
47
|
+
state: "idea-created";
|
|
48
|
+
configuration: import("../foundation/report/types.ts").ProjectConfiguration;
|
|
49
|
+
version: import("../foundation/report/types.ts").ProjectVersion;
|
|
50
|
+
createdIdea: import("../foundation/report/types.ts").CreatedIdea;
|
|
51
|
+
root: string;
|
|
52
|
+
outputLanguage: string;
|
|
53
|
+
problems: import("./shared/index.ts").Problem[];
|
|
54
|
+
device?: import("../foundation/report/types.ts").DeviceAdvisory;
|
|
55
|
+
schemas?: import("../foundation/schema-capability/inspection.ts").ProjectSchemaReadiness;
|
|
56
|
+
};
|
|
57
|
+
actions: import("../foundation/command-message/observation.ts").ProjectedAction[];
|
|
58
|
+
response: import("../foundation/report/types.ts").ReportResponse;
|
|
59
|
+
}>;
|
|
60
|
+
export declare function listIdeas(options?: ListIdeasOptions): Promise<{
|
|
61
|
+
intention: import("../foundation/report/types.ts").CommandIntention;
|
|
62
|
+
observation: import("../foundation/report/types.ts").ProjectSetupObservation | import("../foundation/report/types.ts").CheckUnavailableObservation | import("../foundation/report/types.ts").ProjectReadyObservation | import("../foundation/report/types.ts").RepositoryBlockedObservation | import("../foundation/report/types.ts").NavigationReadyObservation | import("../foundation/report/types.ts").IdeaNotFoundObservation | import("../foundation/report/types.ts").IdeaSelectedObservation | import("../foundation/report/types.ts").IdeaCreatedObservation | import("../foundation/report/types.ts").IdeasListedObservation | import("../foundation/report/types.ts").EventResultObservation | {
|
|
63
|
+
guidance: {
|
|
64
|
+
phase: string;
|
|
65
|
+
path: string;
|
|
66
|
+
contentRevision: string;
|
|
67
|
+
};
|
|
68
|
+
state: "idea-selected";
|
|
69
|
+
configuration: import("../foundation/report/types.ts").ProjectConfiguration;
|
|
70
|
+
version: import("../foundation/report/types.ts").ProjectVersion;
|
|
71
|
+
selectedIdea: import("../foundation/report/types.ts").IdeaReference;
|
|
72
|
+
root: string;
|
|
73
|
+
outputLanguage: string;
|
|
74
|
+
problems: import("./shared/index.ts").Problem[];
|
|
75
|
+
device?: import("../foundation/report/types.ts").DeviceAdvisory;
|
|
76
|
+
schemas?: import("../foundation/schema-capability/inspection.ts").ProjectSchemaReadiness;
|
|
77
|
+
} | {
|
|
78
|
+
guidance: {
|
|
79
|
+
phase: string;
|
|
80
|
+
path: string;
|
|
81
|
+
contentRevision: string;
|
|
82
|
+
};
|
|
83
|
+
state: "idea-created";
|
|
84
|
+
configuration: import("../foundation/report/types.ts").ProjectConfiguration;
|
|
85
|
+
version: import("../foundation/report/types.ts").ProjectVersion;
|
|
86
|
+
createdIdea: import("../foundation/report/types.ts").CreatedIdea;
|
|
87
|
+
root: string;
|
|
88
|
+
outputLanguage: string;
|
|
89
|
+
problems: import("./shared/index.ts").Problem[];
|
|
90
|
+
device?: import("../foundation/report/types.ts").DeviceAdvisory;
|
|
91
|
+
schemas?: import("../foundation/schema-capability/inspection.ts").ProjectSchemaReadiness;
|
|
92
|
+
};
|
|
93
|
+
actions: import("../foundation/command-message/observation.ts").ProjectedAction[];
|
|
94
|
+
response: import("../foundation/report/types.ts").ReportResponse;
|
|
95
|
+
}>;
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=list-ideas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-ideas.d.ts","sourceRoot":"","sources":["../../../src/business/list-ideas.ts"],"names":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAE7D"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { createCommandRun } from "../foundation/command-message/index.js";
|
|
2
|
+
import { ideaInventoryItem, normalizeIdeaQuery, queryIdeaInventory } from "../foundation/idea-query/index.js";
|
|
3
|
+
import { metadataFailureObservation, readIdeaInventoryItem, } from "./shared/index.js";
|
|
4
|
+
import { canonicalizeOutputLanguage } from "../foundation/language/index.js";
|
|
5
|
+
import { observeSnapshot } from "./shared/index.js";
|
|
6
|
+
import { traceBusinessAsync } from "./shared/business-types.js";
|
|
7
|
+
class UntitledReportInventoryItem {
|
|
8
|
+
id;
|
|
9
|
+
state;
|
|
10
|
+
createdAt;
|
|
11
|
+
constructor(id, state, createdAt, alias) {
|
|
12
|
+
this.id = id;
|
|
13
|
+
this.state = state;
|
|
14
|
+
this.createdAt = createdAt;
|
|
15
|
+
if (alias !== undefined) {
|
|
16
|
+
Object.defineProperty(this, "alias", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
value: alias,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
get title() {
|
|
23
|
+
return "";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function reportInventoryItem(item) {
|
|
27
|
+
if (typeof item.createdAt !== "string") {
|
|
28
|
+
throw new TypeError(`Idea ${item.id} is missing its creation timestamp.`);
|
|
29
|
+
}
|
|
30
|
+
if (item.title === undefined) {
|
|
31
|
+
return new UntitledReportInventoryItem(item.id, item.state, item.createdAt, item.alias);
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
id: item.id,
|
|
35
|
+
state: item.state,
|
|
36
|
+
createdAt: item.createdAt,
|
|
37
|
+
title: item.title,
|
|
38
|
+
...(item.alias === undefined ? {} : { alias: item.alias }),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function withoutTitleQuery(query, { limit = query.limit } = {}) {
|
|
42
|
+
return { ...query, limit, query: null };
|
|
43
|
+
}
|
|
44
|
+
function matchesIdentity(item, needle) {
|
|
45
|
+
return [item.id, item.alias]
|
|
46
|
+
.filter((value) => value !== undefined)
|
|
47
|
+
.some((value) => value.toLowerCase().includes(needle));
|
|
48
|
+
}
|
|
49
|
+
async function queryObservedInventory({ ideas, metadataReader, normalizedQuery, root, }) {
|
|
50
|
+
const ideasById = new Map(ideas.map((idea) => [idea.id, idea]));
|
|
51
|
+
const baseItems = ideas.map((idea) => ideaInventoryItem(idea));
|
|
52
|
+
const candidates = queryIdeaInventory(baseItems, withoutTitleQuery(normalizedQuery, { limit: null })).ideas;
|
|
53
|
+
return traceBusinessAsync("ideas.inventory-metadata", {
|
|
54
|
+
candidateCount: candidates.length,
|
|
55
|
+
ideaCount: ideas.length,
|
|
56
|
+
}, async () => {
|
|
57
|
+
const loadedItems = new Map();
|
|
58
|
+
let queryCandidateCount = 0;
|
|
59
|
+
let titleReadCount = 0;
|
|
60
|
+
const readItems = async (items) => {
|
|
61
|
+
const unread = items.filter(({ id }) => !loadedItems.has(id));
|
|
62
|
+
titleReadCount += unread.length;
|
|
63
|
+
const loaded = await Promise.all(unread.map(({ id }) => {
|
|
64
|
+
const idea = ideasById.get(id);
|
|
65
|
+
if (idea === undefined) {
|
|
66
|
+
throw new Error(`Missing observed idea metadata for ${id}`);
|
|
67
|
+
}
|
|
68
|
+
return metadataReader(root, idea);
|
|
69
|
+
}));
|
|
70
|
+
for (const item of loaded)
|
|
71
|
+
loadedItems.set(item.id, item);
|
|
72
|
+
};
|
|
73
|
+
let matchingItems = candidates;
|
|
74
|
+
if (normalizedQuery.query !== null) {
|
|
75
|
+
const needle = normalizedQuery.query.toLowerCase();
|
|
76
|
+
const directMatchIds = new Set(candidates
|
|
77
|
+
.filter((item) => matchesIdentity(item, needle))
|
|
78
|
+
.map(({ id }) => id));
|
|
79
|
+
const titleCandidates = candidates.filter(({ id }) => !directMatchIds.has(id));
|
|
80
|
+
queryCandidateCount = titleCandidates.length;
|
|
81
|
+
await readItems(titleCandidates);
|
|
82
|
+
matchingItems = candidates
|
|
83
|
+
.filter(({ id }) => directMatchIds.has(id)
|
|
84
|
+
|| loadedItems.get(id)?.title?.toLowerCase().includes(needle))
|
|
85
|
+
.map((item) => loadedItems.get(item.id) ?? item);
|
|
86
|
+
}
|
|
87
|
+
const selected = queryIdeaInventory(matchingItems, withoutTitleQuery(normalizedQuery));
|
|
88
|
+
await readItems(selected.ideas);
|
|
89
|
+
const inventory = {
|
|
90
|
+
summary: selected.summary,
|
|
91
|
+
ideas: selected.ideas.map(({ id }) => {
|
|
92
|
+
const item = loadedItems.get(id);
|
|
93
|
+
if (item === undefined) {
|
|
94
|
+
throw new Error(`Missing selected idea metadata for ${id}`);
|
|
95
|
+
}
|
|
96
|
+
return item;
|
|
97
|
+
}),
|
|
98
|
+
};
|
|
99
|
+
return { inventory, queryCandidateCount, titleReadCount };
|
|
100
|
+
}, ({ inventory, queryCandidateCount, titleReadCount }) => ({
|
|
101
|
+
attributes: {
|
|
102
|
+
matchedCount: inventory.summary.matched,
|
|
103
|
+
queryCandidateCount,
|
|
104
|
+
returnedCount: inventory.summary.returned,
|
|
105
|
+
titleReadCount,
|
|
106
|
+
},
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
const LISTIDEAS_PORTS = Object.freeze({ createCommandRun, observeSnapshot });
|
|
110
|
+
export async function listIdeasUseCase({ all, createdBefore, createdSince, language, limit, metadataReader = readIdeaInventoryItem, query, root = process.cwd(), sort, states, userHome, } = {}, ports = LISTIDEAS_PORTS) {
|
|
111
|
+
const { createCommandRun, observeSnapshot } = ports;
|
|
112
|
+
const canonicalLanguage = language === undefined
|
|
113
|
+
? undefined
|
|
114
|
+
: canonicalizeOutputLanguage(language);
|
|
115
|
+
const normalizedQuery = normalizeIdeaQuery({
|
|
116
|
+
all,
|
|
117
|
+
createdBefore,
|
|
118
|
+
createdSince,
|
|
119
|
+
limit,
|
|
120
|
+
query,
|
|
121
|
+
sort,
|
|
122
|
+
states,
|
|
123
|
+
});
|
|
124
|
+
const intention = {
|
|
125
|
+
command: "list-ideas",
|
|
126
|
+
args: {
|
|
127
|
+
...normalizedQuery,
|
|
128
|
+
language: canonicalLanguage ?? null,
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
const runtime = createCommandRun(intention);
|
|
132
|
+
const observed = await observeSnapshot({
|
|
133
|
+
root,
|
|
134
|
+
outputLanguage: canonicalLanguage,
|
|
135
|
+
requireCurrentSchemas: false,
|
|
136
|
+
userHome,
|
|
137
|
+
version: { type: "worktree" },
|
|
138
|
+
});
|
|
139
|
+
if (!observed.projectReady) {
|
|
140
|
+
return runtime.complete(observed.observation, { nextSteps: observed.findings.map(({ instruction }) => instruction) }, { factType: "ideas.inventory-unavailable" });
|
|
141
|
+
}
|
|
142
|
+
let queried;
|
|
143
|
+
try {
|
|
144
|
+
queried = await queryObservedInventory({
|
|
145
|
+
ideas: observed.layout.ideas,
|
|
146
|
+
metadataReader,
|
|
147
|
+
normalizedQuery,
|
|
148
|
+
root: observed.observation.root,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
catch (caught) {
|
|
152
|
+
const failure = metadataFailureObservation(observed, caught, "silvermoon list-ideas");
|
|
153
|
+
return runtime.complete(failure.observation, failure.responseContext, { factType: "ideas.inventory-unavailable" });
|
|
154
|
+
}
|
|
155
|
+
const { inventory } = queried;
|
|
156
|
+
const { configuration, outputLanguage, root: repositoryRoot, version, } = observed.observation;
|
|
157
|
+
return runtime.complete({
|
|
158
|
+
state: "ideas-listed",
|
|
159
|
+
root: repositoryRoot,
|
|
160
|
+
version,
|
|
161
|
+
configuration,
|
|
162
|
+
...(observed.observation.device === undefined
|
|
163
|
+
? {}
|
|
164
|
+
: { device: observed.observation.device }),
|
|
165
|
+
...(observed.observation.schemas === undefined
|
|
166
|
+
? {}
|
|
167
|
+
: { schemas: observed.observation.schemas }),
|
|
168
|
+
outputLanguage,
|
|
169
|
+
problems: [],
|
|
170
|
+
summary: inventory.summary,
|
|
171
|
+
ideas: inventory.ideas.map(reportInventoryItem),
|
|
172
|
+
}, {}, { factType: "ideas.listed" });
|
|
173
|
+
}
|
|
174
|
+
export async function listIdeas(options = {}) {
|
|
175
|
+
return listIdeasUseCase(options);
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=list-ideas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-ideas.js","sourceRoot":"","sources":["../../../src/business/list-ideas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC9G,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAOhE,MAAM,2BAA2B;IACtB,EAAE,CAAS;IACX,KAAK,CAAS;IACd,SAAS,CAAS;IAE3B,YACE,EAAU,EACV,KAAa,EACb,SAAiB,EACjB,KAAc;QAEd,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE;gBACnC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,KAAK;aACb,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,IAAI,KAAK;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAED,SAAS,mBAAmB,CAAC,IAAmB;IAC9C,IAAI,OAAO,IAA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
|
|
6
|
+
rollback?: boolean;
|
|
7
|
+
confirmStopped?: boolean;
|
|
8
|
+
afterStep?: (step: string) => void | Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export declare function migrateEvents({ root, apply, expectedDigest, resume, rollback, confirmStopped, afterStep, }?: MigrationOptions): Promise<{
|
|
11
|
+
kind: "migration" | "events";
|
|
12
|
+
outcome: string;
|
|
13
|
+
} | {
|
|
14
|
+
outcome: string;
|
|
15
|
+
written: boolean;
|
|
16
|
+
digest: string;
|
|
17
|
+
ideas: string[];
|
|
18
|
+
note: string;
|
|
19
|
+
} | {
|
|
20
|
+
outcome: string;
|
|
21
|
+
written: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=migrate-v1-to-v2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-v1-to-v2.d.ts","sourceRoot":"","sources":["../../../src/business/migrate-v1-to-v2.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD;AA8BD,wBAAsB,aAAa,CAAC,EAClC,IAAoB,EAAE,KAAa,EAAE,cAAc,EACnD,MAAc,EAAE,QAAgB,EAAE,cAAsB,EAAE,SAAS,GACpE,GAAE,gBAAqB;;;;;;;;;;;;GAmHvB"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { resolve } from "node:path";
|
|
2
|
+
import { inspectAdoption } from "../foundation/skill-registration/index.js";
|
|
3
|
+
import { serializeConfig } from "../foundation/project-config/index.js";
|
|
4
|
+
import { parseIdeaEvents, replayIdeaEvents, serializeIdeaEvents } from "../foundation/event-codec/index.js";
|
|
5
|
+
import { inspectIdeaLayout } from "./shared/index.js";
|
|
6
|
+
import { parseIdeaStatus } from "../foundation/idea-model/index.js";
|
|
7
|
+
import { inspectRepositoryState, worktreeSnapshot } from "../foundation/git/index.js";
|
|
8
|
+
import { CONFIG_PATH, ideaPaths } from "../foundation/coordinates/index.js";
|
|
9
|
+
import { digest, recoverStateTransaction, regularBytes, stateTransaction } from "../foundation/state-transaction/index.js";
|
|
10
|
+
import { isDeepStrictEqual } from "node:util";
|
|
11
|
+
function migrationEvents(status) {
|
|
12
|
+
const events = [];
|
|
13
|
+
const append = (type, payload) => {
|
|
14
|
+
events.push({
|
|
15
|
+
sequence: events.length + 1,
|
|
16
|
+
type,
|
|
17
|
+
...(payload === undefined ? {} : { payload }),
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
if (status.alias !== undefined)
|
|
21
|
+
append("setAlias", { alias: status.alias });
|
|
22
|
+
if (status.language !== undefined)
|
|
23
|
+
append("setLanguage", { language: status.language });
|
|
24
|
+
if (status.approvedRevision !== undefined) {
|
|
25
|
+
append("acceptIdeal", { idealRevision: status.approvedRevision });
|
|
26
|
+
}
|
|
27
|
+
if (status.implementationAcceptedRevision !== undefined) {
|
|
28
|
+
append("acceptInner", {
|
|
29
|
+
implementationRevision: status.implementationAcceptedRevision,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
if (status.deploymentAcceptedRevision !== undefined) {
|
|
33
|
+
append("acceptOuter", {
|
|
34
|
+
deploymentRevision: status.deploymentAcceptedRevision,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
if (status.abandoned)
|
|
38
|
+
append("abandon");
|
|
39
|
+
return events;
|
|
40
|
+
}
|
|
41
|
+
export async function migrateEvents({ root = process.cwd(), apply = false, expectedDigest, resume = false, rollback = false, confirmStopped = false, afterStep, } = {}) {
|
|
42
|
+
root = resolve(root);
|
|
43
|
+
const adoption = await inspectAdoption({ root });
|
|
44
|
+
const blockers = adoption.findings.filter((finding) => {
|
|
45
|
+
const sourceDiagnostic = "sourceDiagnostic" in finding
|
|
46
|
+
? finding.sourceDiagnostic
|
|
47
|
+
: undefined;
|
|
48
|
+
return !((resume || rollback)
|
|
49
|
+
&& sourceDiagnostic !== null
|
|
50
|
+
&& typeof sourceDiagnostic === "object"
|
|
51
|
+
&& "message" in sourceDiagnostic
|
|
52
|
+
&& typeof sourceDiagnostic.message === "string"
|
|
53
|
+
&& sourceDiagnostic.message.includes("Unfinished state transaction"));
|
|
54
|
+
});
|
|
55
|
+
if (blockers.length) {
|
|
56
|
+
const summaries = blockers.flatMap(({ problem }) => problem === undefined ? [] : [problem.summary]);
|
|
57
|
+
throw new Error(summaries.join("; "));
|
|
58
|
+
}
|
|
59
|
+
root = adoption.root;
|
|
60
|
+
if (resume || rollback) {
|
|
61
|
+
const validate = (plan) => {
|
|
62
|
+
const sourceCommit = plan.context !== null
|
|
63
|
+
&& typeof plan.context === "object"
|
|
64
|
+
&& "sourceCommit" in plan.context
|
|
65
|
+
&& typeof plan.context.sourceCommit === "string"
|
|
66
|
+
? plan.context.sourceCommit
|
|
67
|
+
: undefined;
|
|
68
|
+
if (inspectRepositoryState(root).head !== sourceCommit) {
|
|
69
|
+
throw new Error("Migration source commit changed; preserve the transaction rather than discarding potentially integrated facts.");
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
return recoverStateTransaction(root, {
|
|
73
|
+
rollback, confirmedStopped: confirmStopped, kind: "migration", validate, validateRollback: validate,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
const config = adoption.config;
|
|
77
|
+
if (config === null) {
|
|
78
|
+
throw new Error("Migration requires a valid Silvermoon project configuration.");
|
|
79
|
+
}
|
|
80
|
+
const { tree } = worktreeSnapshot(root);
|
|
81
|
+
const layout = await inspectIdeaLayout({ root, config, snapshotTree: tree });
|
|
82
|
+
if (layout.diagnostics.length)
|
|
83
|
+
throw new Error(layout.diagnostics.map((d) => d.message).join("; "));
|
|
84
|
+
if (config.version === 2)
|
|
85
|
+
return { outcome: "already-v2", written: false };
|
|
86
|
+
const files = [];
|
|
87
|
+
for (const idea of layout.ideas) {
|
|
88
|
+
const paths = ideaPaths(idea.id);
|
|
89
|
+
const before = await regularBytes(resolve(root, paths.statusPath));
|
|
90
|
+
if (before === null)
|
|
91
|
+
throw new Error(`Missing migration source: ${paths.statusPath}`);
|
|
92
|
+
if (await regularBytes(resolve(root, paths.eventsPath)) !== null) {
|
|
93
|
+
throw new Error(`Refusing to overwrite existing ${paths.eventsPath}`);
|
|
94
|
+
}
|
|
95
|
+
const eventOptions = { objectIdLength: tree.length };
|
|
96
|
+
const status = parseIdeaStatus(before.toString("utf8"), eventOptions);
|
|
97
|
+
const after = Buffer.from(serializeIdeaEvents(migrationEvents(status), eventOptions));
|
|
98
|
+
const result = replayIdeaEvents(idea.id, parseIdeaEvents(after, eventOptions), eventOptions);
|
|
99
|
+
if (!result.ok || !("state" in result)
|
|
100
|
+
|| !isDeepStrictEqual({ version: 1, ...result.state.status }, status)) {
|
|
101
|
+
throw new Error(`Migration projection differs for ${idea.id}`);
|
|
102
|
+
}
|
|
103
|
+
files.push({ path: paths.eventsPath, before: null, after }, { path: paths.statusPath, before, after: null });
|
|
104
|
+
}
|
|
105
|
+
files.push({
|
|
106
|
+
path: CONFIG_PATH,
|
|
107
|
+
before: await regularBytes(resolve(root, CONFIG_PATH)),
|
|
108
|
+
after: Buffer.from(serializeConfig({
|
|
109
|
+
version: 2,
|
|
110
|
+
primaryRepository: config.primaryRepository,
|
|
111
|
+
primaryBranch: config.primaryBranch,
|
|
112
|
+
...(config.preferredLanguage === undefined
|
|
113
|
+
? {}
|
|
114
|
+
: { preferredLanguage: config.preferredLanguage }),
|
|
115
|
+
})),
|
|
116
|
+
});
|
|
117
|
+
const attributes = await regularBytes(resolve(root, ".gitattributes"));
|
|
118
|
+
const attributeRule = "**/events.jsonl -text -filter";
|
|
119
|
+
if (!attributes?.toString("utf8").split(/\r?\n/).includes(attributeRule)) {
|
|
120
|
+
files.push({
|
|
121
|
+
path: ".gitattributes", before: attributes,
|
|
122
|
+
after: Buffer.concat([
|
|
123
|
+
attributes ?? Buffer.alloc(0),
|
|
124
|
+
Buffer.from(attributes?.length && attributes.at(-1) !== 10 ? "\n" : ""),
|
|
125
|
+
Buffer.from(`${attributeRule}\n`),
|
|
126
|
+
]),
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
const fingerprint = digest(JSON.stringify(files.map(({ path, before, after }) => ({
|
|
130
|
+
path, before: before === null ? null : digest(before), after: after === null ? null : digest(after),
|
|
131
|
+
}))));
|
|
132
|
+
const receipt = {
|
|
133
|
+
outcome: "migration-planned", written: false, digest: fingerprint,
|
|
134
|
+
ideas: layout.ideas.map(({ id }) => id),
|
|
135
|
+
note: "Ordinary events reconstruct known facts in representation order, not historical chronology.",
|
|
136
|
+
};
|
|
137
|
+
if (!apply)
|
|
138
|
+
return receipt;
|
|
139
|
+
if (expectedDigest !== fingerprint)
|
|
140
|
+
throw new Error("Migration plan changed; observe and confirm its exact digest before applying.");
|
|
141
|
+
const repository = inspectRepositoryState(root);
|
|
142
|
+
if (repository.changes.conflicted.length || repository.changes.staged.length
|
|
143
|
+
|| repository.changes.unstaged.length || repository.changes.untracked.length) {
|
|
144
|
+
throw new Error("Migration requires a clean committed source; preserve all work before retrying.");
|
|
145
|
+
}
|
|
146
|
+
await stateTransaction(root, "migration", files, {
|
|
147
|
+
...(afterStep === undefined ? {} : { afterStep }),
|
|
148
|
+
context: { sourceCommit: repository.head },
|
|
149
|
+
});
|
|
150
|
+
return { ...receipt, outcome: "migrated", written: true };
|
|
151
|
+
}
|
|
152
|
+
//# sourceMappingURL=migrate-v1-to-v2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrate-v1-to-v2.js","sourceRoot":"","sources":["../../../src/business/mig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KACpG,CAAC,CAAC,CAAC,CAAC,CAAC;IACN,MAAM,OAAO,GAAG;QACd,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW;QACjE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;QACvC,IAAI,EAAE,6FAA6F;KACpG,CAAC;IACF,IAAI,CAAC,KAAK;QAAE,OAAO,OAAO,CAAC;IAC3B,IAAI,cAAc,KAAK,WAAW;QAAE,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;IACrI,MAAM,UAAU,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAChD,IAAI,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM;WACvE,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,IAAI,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;QAC/E,MAAM,IAAI,KAAK,CAAC,iFAAiF,CAAC,CAAC;IACrG,CAAC;IACD,MAAM,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE;QAC/C,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC;QACjD,OAAO,EAAE,EAAE,YAAY,EAAE,UAAU,CAAC,IAAI,EAAE;KAC3C,CAAC,CAAC;IACH,OAAO,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { EventOptions, EventStore, ProjectConfig } from "./shared/business-types.ts";
|
|
2
|
+
export declare function replayStoredEvents({ root, config, id, store, options, observation, }: {
|
|
3
|
+
root: string;
|
|
4
|
+
config: ProjectConfig;
|
|
5
|
+
id: string;
|
|
6
|
+
store: EventStore;
|
|
7
|
+
options: EventOptions;
|
|
8
|
+
observation: Record<string, unknown>;
|
|
9
|
+
}): {
|
|
10
|
+
outcome: string;
|
|
11
|
+
format: {
|
|
12
|
+
ok: boolean;
|
|
13
|
+
error?: string;
|
|
14
|
+
};
|
|
15
|
+
reduction: import("../foundation/event-codec/grammar.ts").IdeaEventReduction | null;
|
|
16
|
+
baseline: import("../foundation/event-history/history.ts").HistoryBaseline | {
|
|
17
|
+
unavailable: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=replay-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replay-events.d.ts","sourceRoot":"","sources":["../../../src/business/replay-events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG1F,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,GAC9C,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,YAAY,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;;;YAKmB,OAAO;gBAAU,MAAM;;;;;;EAiB1C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { localPrimary } from "../foundation/event-history/index.js";
|
|
2
|
+
import { IdeaEventFormatError, parseIdeaEvents, replayIdeaEvents } from "../foundation/event-codec/index.js";
|
|
3
|
+
import { errorMessage } from "./shared/business-types.js";
|
|
4
|
+
export function replayStoredEvents({ root, config, id, store, options, observation, }) {
|
|
5
|
+
const { bytes } = store;
|
|
6
|
+
let receipt;
|
|
7
|
+
let reduction = null;
|
|
8
|
+
let format = { ok: true };
|
|
9
|
+
try {
|
|
10
|
+
reduction = replayIdeaEvents(id, parseIdeaEvents(bytes, options), options);
|
|
11
|
+
}
|
|
12
|
+
catch (error) {
|
|
13
|
+
if (!(error instanceof IdeaEventFormatError))
|
|
14
|
+
throw error;
|
|
15
|
+
format = { ok: false, error: error.message };
|
|
16
|
+
}
|
|
17
|
+
let baseline;
|
|
18
|
+
try {
|
|
19
|
+
baseline = localPrimary(root, config);
|
|
20
|
+
}
|
|
21
|
+
catch (cause) {
|
|
22
|
+
baseline = { unavailable: errorMessage(cause) };
|
|
23
|
+
}
|
|
24
|
+
receipt = { ...observation, outcome: "observed", format, reduction, baseline };
|
|
25
|
+
return receipt;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=replay-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replay-events.js","sourceRoot":"","sources":["../../../src/business/replay-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAE7G,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,UAAU,kBAAkB,CAAC,EACjC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,GAQ9C;IACC,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACxB,IAAI,OAAO,CAAC;IAEZ,IAAI,SAAS,GAAG,IAAI,CAAC;IACrB,IAAI,MAAM,GAAoC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IAC3D,IAAI,CAAC;QACH,SAAS,GAAG,gBAAgB,CAAC,EAAE,EAAE,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,KAAK,EAAE,CAAC;QACb,IAAI,CAAC,CAAC,KAAK,YAAY,oBAAoB,CAAC;YAAE,MAAM,KAAK,CAAC;QAC1D,MAAM,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;IAC/C,CAAC;IACD,IAAI,QAAQ,CAAC;IACb,IAAI,CAAC;QACH,QAAQ,GAAG,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACxC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,GAAG,EAAE,WAAW,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;IAClD,CAAC;IACD,OAAO,GAAG,EAAE,GAAG,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;IAE/E,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type MigrationOptions } from "./migrate-v1-to-v2.ts";
|
|
2
|
+
export declare const IMPLEMENTED_SCHEMA_MIGRATIONS: readonly string[];
|
|
3
|
+
export declare function runSchemaMigration(migrationId: string, options?: MigrationOptions): Promise<{
|
|
4
|
+
kind: "migration" | "events";
|
|
5
|
+
outcome: string;
|
|
6
|
+
migrationId: string;
|
|
7
|
+
} | {
|
|
8
|
+
outcome: string;
|
|
9
|
+
written: boolean;
|
|
10
|
+
digest: string;
|
|
11
|
+
ideas: string[];
|
|
12
|
+
note: string;
|
|
13
|
+
migrationId: string;
|
|
14
|
+
} | {
|
|
15
|
+
outcome: string;
|
|
16
|
+
written: boolean;
|
|
17
|
+
migrationId: string;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=schema-migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-migration.d.ts","sourceRoot":"","sources":["../../../src/business/schema-migration.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAM/B,eAAO,MAAM,6BAA6B,mBAEzC,CAAC;AAEF,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;GAoB/B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { loadSchemaCapabilityManifest, } from "../foundation/schema-capability/index.js";
|
|
2
|
+
import { migrateEvents, } from "./migrate-v1-to-v2.js";
|
|
3
|
+
const MIGRATION_IMPLEMENTATIONS = {
|
|
4
|
+
"project-v1-to-v2": migrateEvents,
|
|
5
|
+
};
|
|
6
|
+
export const IMPLEMENTED_SCHEMA_MIGRATIONS = Object.freeze(Object.keys(MIGRATION_IMPLEMENTATIONS));
|
|
7
|
+
export async function runSchemaMigration(migrationId, options = {}) {
|
|
8
|
+
const manifest = await loadSchemaCapabilityManifest();
|
|
9
|
+
const migration = manifest.migrations[migrationId];
|
|
10
|
+
if (migration === undefined) {
|
|
11
|
+
throw new Error(`Unknown schema migration: ${migrationId}.`);
|
|
12
|
+
}
|
|
13
|
+
if (!Object.hasOwn(MIGRATION_IMPLEMENTATIONS, migrationId)) {
|
|
14
|
+
throw new Error(`Schema migration ${migrationId} is declared but not implemented by this runtime.`);
|
|
15
|
+
}
|
|
16
|
+
const execute = MIGRATION_IMPLEMENTATIONS[migrationId];
|
|
17
|
+
const receipt = await execute(options);
|
|
18
|
+
return {
|
|
19
|
+
migrationId,
|
|
20
|
+
...receipt,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=schema-migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-migration.js","sourceRoot":"","sources":["../../../src/business/schema-migration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAC7B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,aAAa,GAEd,MAAM,uBAAuB,CAAC;AAE/B,MAAM,yBAAyB,GAAG;IAChC,kBAAkB,EAAE,aAAa;CACzB,CAAC;AAEX,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,MAAM,CACxD,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CACvC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,WAAmB,EACnB,UAA4B,EAAE;IAE9B,MAAM,QAAQ,GAAG,MAAM,4BAA4B,EAAE,CAAC;IACtD,MAAM,SAAS,GAAG,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IACnD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,6BAA6B,WAAW,GAAG,CAAC,CAAC;IAC/D,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,yBAAyB,EAAE,WAAW,CAAC,EAAE,CAAC;QAC3D,MAAM,IAAI,KAAK,CACb,oBAAoB,WAAW,mDAAmD,CACnF,CAAC;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,yBAAyB,CACvC,WAAqD,CACtD,CAAC;IACF,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO;QACL,WAAW;QACX,GAAG,OAAO;KACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { assessRepositoryReadinessWith } from "./assess-repository-readiness-with.ts";
|
|
2
|
+
export declare function assessIdeaCreationReadiness(options: Parameters<typeof assessRepositoryReadinessWith>[0]): Promise<import("./business-types.ts").RepositoryReadiness>;
|
|
3
|
+
//# sourceMappingURL=assess-idea-creation-readiness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assess-idea-creation-readiness.d.ts","sourceRoot":"","sources":["../../../../src/business/shared/assess-idea-creation-readiness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AAGtF,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC,CAAC,CAAC,8DAU7D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { assessRepositoryReadinessWith } from "./assess-repository-readiness-with.js";
|
|
2
|
+
import { traceBusinessAsync } from "./business-types.js";
|
|
3
|
+
export async function assessIdeaCreationReadiness(options) {
|
|
4
|
+
return traceBusinessAsync("repository.assess-creation-readiness", {}, () => assessRepositoryReadinessWith({
|
|
5
|
+
...options,
|
|
6
|
+
synchronizePrimary: false,
|
|
7
|
+
}));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=assess-idea-creation-readiness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assess-idea-creation-readiness.js","sourceRoot":"","sources":["../../../../src/business/shared/assess-idea-creation-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,2BAA2B,CAC/C,OAA4D;IAE5D,OAAO,kBAAkB,CACvB,sCAAsC,EACtC,EAAE,EACF,GAAG,EAAE,CAAC,6BAA6B,CAAC;QAClC,GAAG,OAAO;QACV,kBAAkB,EAAE,KAAK;KAC1B,CAAC,CACH,CAAC;AACJ,CAAC"}
|