silvermoon 0.3.0 → 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,138 @@
|
|
|
1
|
+
import { inspectEventHistory } from "../foundation/event-history/index.js";
|
|
2
|
+
import { inspectCandidate } from "./shared/index.js";
|
|
3
|
+
import { assertIntroducedDecisions, parseRequest, planFullEventChange } from "../foundation/event-reducer/index.js";
|
|
4
|
+
import { eventStorageChanges, readEventStorage, storageDigest } from "../foundation/event-store/index.js";
|
|
5
|
+
import { appendLocalInteraction } from "./append-event.js";
|
|
6
|
+
import { fetchPrimary, inspectTreePaths, worktreeSnapshot } from "../foundation/git/index.js";
|
|
7
|
+
import { parseIdeaEvents, replayIdeaEvents, serializeIdeaEvents } from "../foundation/event-codec/index.js";
|
|
8
|
+
import { stateTransaction } from "../foundation/state-transaction/index.js";
|
|
9
|
+
import { errorMessage } from "./shared/business-types.js";
|
|
10
|
+
export async function appendFullEvent({ root, config, id, tree, paths, store, options, runtime, observation, input, expectedLength, expectedDigest, expectedPrimary, confirmDecision, fullHistoryReason, protectedPaths, protectedTree, }) {
|
|
11
|
+
const { bytes } = store;
|
|
12
|
+
const head = (source) => storageDigest(store, source, options);
|
|
13
|
+
let receipt;
|
|
14
|
+
if (input?.type === "ping" || input?.type === "pong") {
|
|
15
|
+
if (expectedPrimary !== undefined)
|
|
16
|
+
throw new Error("Local interaction append does not accept --expected-primary.");
|
|
17
|
+
const action = await runtime.performAction({ type: "write-idea-events" }, () => appendLocalInteraction({
|
|
18
|
+
root, id, paths, store, bytes, input, expectedLength, expectedDigest, options,
|
|
19
|
+
}), (cause) => ({ problem: { type: "event.write-failed", summary: errorMessage(cause) } }));
|
|
20
|
+
if (action.status === "failure")
|
|
21
|
+
throw new Error(action.problem.summary);
|
|
22
|
+
receipt = action.result;
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
if (typeof expectedLength !== "number" || !Number.isSafeInteger(expectedLength) || expectedLength < 0
|
|
26
|
+
|| !/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/.test(expectedDigest ?? "")
|
|
27
|
+
|| !/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/.test(expectedPrimary ?? "")) {
|
|
28
|
+
throw new Error("Writes require exact --expected-length, --expected-digest and --expected-primary from observation.");
|
|
29
|
+
}
|
|
30
|
+
const refreshPrimary = async () => {
|
|
31
|
+
const action = await runtime.performAction({ type: "fetch-primary" }, () => ({ commit: fetchPrimary(root, config) }), (cause) => ({ problem: { type: "primary-fetch-failed", summary: errorMessage(cause) } }));
|
|
32
|
+
if (action.status === "failure")
|
|
33
|
+
throw new Error(action.problem.summary);
|
|
34
|
+
return action.result.commit;
|
|
35
|
+
};
|
|
36
|
+
const primary = await refreshPrimary();
|
|
37
|
+
if (primary !== expectedPrimary)
|
|
38
|
+
throw new Error("Primary moved; preserve the candidate, synchronize and reassess the request.");
|
|
39
|
+
const prefix = bytes.subarray(0, expectedLength);
|
|
40
|
+
const matches = bytes.length === expectedLength && store.digest === expectedDigest;
|
|
41
|
+
if (!matches) {
|
|
42
|
+
if (bytes.length > expectedLength && head(prefix) === expectedDigest) {
|
|
43
|
+
const before = replayIdeaEvents(id, parseIdeaEvents(prefix, options), options);
|
|
44
|
+
if (before.ok && "state" in before) {
|
|
45
|
+
const event = parseRequest(input, before.state.sequence + 1, options);
|
|
46
|
+
const record = Buffer.from(serializeIdeaEvents([event], options));
|
|
47
|
+
if (bytes.subarray(expectedLength, expectedLength + record.length).equals(record)) {
|
|
48
|
+
const result = replayIdeaEvents(id, parseIdeaEvents(bytes, options), options);
|
|
49
|
+
if (!result.ok || !("state" in result)) {
|
|
50
|
+
throw new Error(`Retry encountered invalid current state: ${"code" in result ? result.code : "missing-state"}`);
|
|
51
|
+
}
|
|
52
|
+
receipt = { ...observation, outcome: "already-present", written: false, primary };
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (!receipt)
|
|
57
|
+
throw new Error("Stale log length or digest; do not renumber or replay the old request.");
|
|
58
|
+
}
|
|
59
|
+
if (!receipt) {
|
|
60
|
+
const { candidate, reduction } = planFullEventChange({
|
|
61
|
+
operation: "append", input, bytes, id,
|
|
62
|
+
}, options);
|
|
63
|
+
if (candidate.equals(bytes)) {
|
|
64
|
+
receipt = { ...observation, outcome: "no-state-change", written: false, primary };
|
|
65
|
+
}
|
|
66
|
+
if (!reduction.ok) {
|
|
67
|
+
if ("code" in reduction && reduction.code === "no-state-change") {
|
|
68
|
+
receipt = { ...observation, outcome: "no-state-change", written: false, primary };
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
throw new Error(`Candidate reduction failed: ${"code" in reduction ? reduction.code : "missing-code"} at ${"sequence" in reduction ? reduction.sequence : "unknown"}`);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
if (!receipt && !("state" in reduction)) {
|
|
75
|
+
throw new Error("Candidate reduction did not return state.");
|
|
76
|
+
}
|
|
77
|
+
if (!receipt) {
|
|
78
|
+
if (!("state" in reduction))
|
|
79
|
+
throw new Error("Candidate reduction did not return state.");
|
|
80
|
+
const reductionState = reduction.state;
|
|
81
|
+
const layout = await inspectCandidate(root, tree, config, store, candidate, id);
|
|
82
|
+
const selected = layout.ideas.find((idea) => idea.id === id);
|
|
83
|
+
if (!selected)
|
|
84
|
+
throw new Error(`Candidate layout omitted idea ${id}.`);
|
|
85
|
+
const history = {
|
|
86
|
+
...await inspectEventHistory({
|
|
87
|
+
root, tree, config, primary, overrides: new Map([[store.path, candidate]]),
|
|
88
|
+
}),
|
|
89
|
+
detail: "full",
|
|
90
|
+
...(fullHistoryReason ? { reason: fullHistoryReason } : {}),
|
|
91
|
+
};
|
|
92
|
+
// Check each newly introduced decision against its preceding state, never its own result.
|
|
93
|
+
const worlds = inspectTreePaths(root, primary, [paths.idealPath, paths.innerPath, paths.outerPath]);
|
|
94
|
+
const primaryWorlds = {
|
|
95
|
+
idealRevision: worlds.get(paths.idealPath)?.object,
|
|
96
|
+
implementationRevision: worlds.get(paths.innerPath)?.object,
|
|
97
|
+
deploymentRevision: worlds.get(paths.outerPath)?.object,
|
|
98
|
+
};
|
|
99
|
+
assertIntroducedDecisions({
|
|
100
|
+
id, operation: "append", bytes, candidate, revisions: selected.revisions,
|
|
101
|
+
primaryWorlds, confirmed: confirmDecision,
|
|
102
|
+
}, options);
|
|
103
|
+
const action = await runtime.performAction({ type: "write-idea-events" }, async () => {
|
|
104
|
+
await stateTransaction(root, "events", eventStorageChanges(paths, store, candidate, options), {
|
|
105
|
+
context: { id, primary, revisions: selected.revisions, storage: store.storage, afterDigest: head(candidate) },
|
|
106
|
+
validate: async () => {
|
|
107
|
+
const live = await refreshPrimary();
|
|
108
|
+
if (live !== primary)
|
|
109
|
+
throw new Error("Primary moved before write; recover the unwritten transaction, then reobserve.");
|
|
110
|
+
if (worktreeSnapshot(root, { paths: protectedPaths }).tree !== protectedTree) {
|
|
111
|
+
throw new Error("Worlds changed during validation.");
|
|
112
|
+
}
|
|
113
|
+
const current = await readEventStorage(root, paths, options);
|
|
114
|
+
if (current.digest !== store.digest)
|
|
115
|
+
throw new Error("Complete event stream changed during validation.");
|
|
116
|
+
},
|
|
117
|
+
validateApplied: async () => {
|
|
118
|
+
const current = await readEventStorage(root, paths, options);
|
|
119
|
+
if (current.digest !== head(candidate))
|
|
120
|
+
throw new Error("Complete stream changed during event commit.");
|
|
121
|
+
await inspectCandidate(root, worktreeSnapshot(root).tree, config, current, candidate, id);
|
|
122
|
+
},
|
|
123
|
+
});
|
|
124
|
+
return {
|
|
125
|
+
id, outcome: "candidate-written", written: true, primary,
|
|
126
|
+
length: candidate.length, digest: head(candidate),
|
|
127
|
+
sequence: reductionState.sequence, history,
|
|
128
|
+
};
|
|
129
|
+
}, (cause) => ({ problem: { type: "event.write-failed", summary: errorMessage(cause) } }));
|
|
130
|
+
if (action.status === "failure")
|
|
131
|
+
throw new Error(action.problem.summary);
|
|
132
|
+
receipt = action.result;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return receipt;
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=append-event-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AE,YAAY,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;gBAC3F,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS;oBAAE,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACzE,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;YAC1B,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { planProjectedAppend } from "../foundation/event-reducer/index.ts";
|
|
2
|
+
import { projectEventSnapshot } from "../foundation/projection-cache/index.ts";
|
|
3
|
+
import type { BusinessFileSystem, CommandRuntime, EventOptions, EventStore, IdeaPaths, ProjectConfig } from "./shared/business-types.ts";
|
|
4
|
+
interface InteractionArguments {
|
|
5
|
+
root: string;
|
|
6
|
+
id: string;
|
|
7
|
+
paths: IdeaPaths;
|
|
8
|
+
input: Record<string, unknown> | null;
|
|
9
|
+
expectedLength?: number | undefined;
|
|
10
|
+
expectedDigest?: string | undefined;
|
|
11
|
+
options: EventOptions;
|
|
12
|
+
}
|
|
13
|
+
export declare function appendLocalInteraction({ root, id, paths, store, bytes, input, expectedLength, expectedDigest, options, }: InteractionArguments & {
|
|
14
|
+
store: EventStore;
|
|
15
|
+
bytes: Buffer;
|
|
16
|
+
}): Promise<{
|
|
17
|
+
id: string;
|
|
18
|
+
outcome: string;
|
|
19
|
+
written: boolean;
|
|
20
|
+
length: number;
|
|
21
|
+
digest: string;
|
|
22
|
+
sequence: number;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function appendProjectedInteraction({ root, id, paths, filesystem, input, expectedLength, expectedDigest, options, }: InteractionArguments & {
|
|
25
|
+
filesystem: BusinessFileSystem;
|
|
26
|
+
}): Promise<{
|
|
27
|
+
id: string;
|
|
28
|
+
outcome: string;
|
|
29
|
+
written: boolean;
|
|
30
|
+
length: number;
|
|
31
|
+
digest: string | undefined;
|
|
32
|
+
sequence: number;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function writeProjectedAppend(root: string, id: string, paths: IdeaPaths, before: Awaited<ReturnType<typeof projectEventSnapshot>>, planned: ReturnType<typeof planProjectedAppend>, options: EventOptions, context: Record<string, unknown>, { validate, validateApplied, }?: {
|
|
35
|
+
validate?: () => void | Promise<void>;
|
|
36
|
+
validateApplied?: () => void | Promise<void>;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
export declare function appendProjectedMetadata({ root, id, paths, filesystem, tree, config, input, expectedLength, expectedDigest, expectedPrimary, confirmDecision, options, runtime, }: {
|
|
39
|
+
root: string;
|
|
40
|
+
id: string;
|
|
41
|
+
paths: IdeaPaths;
|
|
42
|
+
filesystem: BusinessFileSystem;
|
|
43
|
+
tree: string;
|
|
44
|
+
config: ProjectConfig;
|
|
45
|
+
input: Record<string, unknown> | null;
|
|
46
|
+
expectedLength?: number;
|
|
47
|
+
expectedDigest?: string;
|
|
48
|
+
expectedPrimary?: string;
|
|
49
|
+
confirmDecision: boolean;
|
|
50
|
+
options: EventOptions;
|
|
51
|
+
runtime: CommandRuntime;
|
|
52
|
+
}): Promise<{
|
|
53
|
+
supported: boolean;
|
|
54
|
+
reason: string;
|
|
55
|
+
id?: never;
|
|
56
|
+
reduction?: never;
|
|
57
|
+
valid?: never;
|
|
58
|
+
detail?: never;
|
|
59
|
+
target?: never;
|
|
60
|
+
baseline?: never;
|
|
61
|
+
results?: never;
|
|
62
|
+
} | {
|
|
63
|
+
supported: boolean;
|
|
64
|
+
reason: string;
|
|
65
|
+
id: string;
|
|
66
|
+
reduction: {
|
|
67
|
+
ok: false;
|
|
68
|
+
code: string;
|
|
69
|
+
sequence: number;
|
|
70
|
+
} | undefined;
|
|
71
|
+
valid?: never;
|
|
72
|
+
detail?: never;
|
|
73
|
+
target?: never;
|
|
74
|
+
baseline?: never;
|
|
75
|
+
results?: never;
|
|
76
|
+
} | {
|
|
77
|
+
supported: boolean;
|
|
78
|
+
valid: boolean;
|
|
79
|
+
detail: string;
|
|
80
|
+
target: string;
|
|
81
|
+
baseline: {
|
|
82
|
+
commit: string;
|
|
83
|
+
source: string;
|
|
84
|
+
ref: null;
|
|
85
|
+
};
|
|
86
|
+
results: Record<string, unknown>[];
|
|
87
|
+
reason?: never;
|
|
88
|
+
id?: never;
|
|
89
|
+
reduction?: never;
|
|
90
|
+
} | {
|
|
91
|
+
supported: boolean;
|
|
92
|
+
receipt: {
|
|
93
|
+
id: string;
|
|
94
|
+
outcome: string;
|
|
95
|
+
written: boolean;
|
|
96
|
+
length: number;
|
|
97
|
+
digest: string;
|
|
98
|
+
sequence: number;
|
|
99
|
+
primary: string;
|
|
100
|
+
};
|
|
101
|
+
} | {
|
|
102
|
+
supported: boolean;
|
|
103
|
+
receipt: {
|
|
104
|
+
id: string;
|
|
105
|
+
outcome: string;
|
|
106
|
+
written: boolean;
|
|
107
|
+
length: number;
|
|
108
|
+
digest: string;
|
|
109
|
+
primary: string;
|
|
110
|
+
sequence?: never;
|
|
111
|
+
};
|
|
112
|
+
} | {
|
|
113
|
+
supported: boolean;
|
|
114
|
+
receipt: {
|
|
115
|
+
id: string;
|
|
116
|
+
outcome: string;
|
|
117
|
+
written: boolean;
|
|
118
|
+
primary: string;
|
|
119
|
+
length: number;
|
|
120
|
+
digest: string | undefined;
|
|
121
|
+
sequence: number;
|
|
122
|
+
history: {
|
|
123
|
+
results: Record<string, unknown>[];
|
|
124
|
+
supported: boolean;
|
|
125
|
+
valid: boolean;
|
|
126
|
+
detail: string;
|
|
127
|
+
target: string;
|
|
128
|
+
baseline: {
|
|
129
|
+
commit: string;
|
|
130
|
+
source: string;
|
|
131
|
+
ref: null;
|
|
132
|
+
};
|
|
133
|
+
reason?: never;
|
|
134
|
+
id?: never;
|
|
135
|
+
reduction?: never;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
}>;
|
|
139
|
+
export {};
|
|
140
|
+
//# sourceMappingURL=append-event.d.ts.map
|
|
@@ -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AoB,CAAC,CAAC,EACxD,OAAO,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,EAC/C,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,EACE,QAAQ,EACR,eAAe,GAChB,GAAE;IACD,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC,iBAuBP;AAED,wBAAsB,uBAAuB,CAAC,EAC5C,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,cAAc,EAChF,eAAe,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,GACnD,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;CACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgIA"}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { inspectProjectedEventHistory } from "../foundation/event-history/index.js";
|
|
2
|
+
import { readEventDelta } from "../foundation/event-cursor/index.js";
|
|
3
|
+
import { assertHumanGate, deriveEventIdeaState, parseRequest, planProjectedAppend, } from "../foundation/event-reducer/index.js";
|
|
4
|
+
import { projectEventSnapshot } from "../foundation/projection-cache/index.js";
|
|
5
|
+
import { eventStorageChanges, readEventStorage, snapshotEventFileHead, storageDigest } from "../foundation/event-store/index.js";
|
|
6
|
+
import { createGitSnapshotFileSystem } from "../foundation/snapshot/index.js";
|
|
7
|
+
import { fetchPrimary, inspectTreePaths, worktreeSnapshot } from "../foundation/git/index.js";
|
|
8
|
+
import { parseIdeaEvents, replayIdeaEvents, serializeIdeaEvents } from "../foundation/event-codec/index.js";
|
|
9
|
+
import { inspectIdeaLayout } from "./shared/index.js";
|
|
10
|
+
import { stateTransaction } from "../foundation/state-transaction/index.js";
|
|
11
|
+
import { asBusinessFileSystem, errorMessage, requireSnapshotFileSystem, } from "./shared/business-types.js";
|
|
12
|
+
function eventCursorFileSystem(filesystem) {
|
|
13
|
+
const cursorEntry = (entry) => {
|
|
14
|
+
if (entry === null || entry === undefined)
|
|
15
|
+
return entry;
|
|
16
|
+
if (entry.size === null) {
|
|
17
|
+
throw new TypeError(`Snapshot entry ${entry.name} does not have a file size.`);
|
|
18
|
+
}
|
|
19
|
+
return { ...entry, size: entry.size };
|
|
20
|
+
};
|
|
21
|
+
return {
|
|
22
|
+
lstat: filesystem.lstat,
|
|
23
|
+
readFile: filesystem.readFile,
|
|
24
|
+
readdir: (path) => filesystem.readdir(path),
|
|
25
|
+
snapshotEntry: (path) => cursorEntry(filesystem.snapshotEntry(path)),
|
|
26
|
+
snapshotEntries: (path) => {
|
|
27
|
+
if (typeof path !== "string") {
|
|
28
|
+
throw new TypeError("Snapshot directory path must be a string.");
|
|
29
|
+
}
|
|
30
|
+
return filesystem.snapshotEntries(path).map((entry) => {
|
|
31
|
+
const validated = cursorEntry(entry);
|
|
32
|
+
if (validated === null || validated === undefined) {
|
|
33
|
+
throw new TypeError("Snapshot directory returned an empty entry.");
|
|
34
|
+
}
|
|
35
|
+
return validated;
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
snapshotFile: (path) => {
|
|
39
|
+
if (typeof path !== "string") {
|
|
40
|
+
throw new TypeError("Snapshot file path must be a string.");
|
|
41
|
+
}
|
|
42
|
+
return filesystem.snapshotFile(path);
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export async function appendLocalInteraction({ root, id, paths, store, bytes, input, expectedLength, expectedDigest, options, }) {
|
|
47
|
+
const head = (source) => storageDigest(store, source, options);
|
|
48
|
+
if (typeof expectedLength !== "number" || !Number.isSafeInteger(expectedLength)
|
|
49
|
+
|| expectedLength < 0 || !/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/.test(expectedDigest ?? "")) {
|
|
50
|
+
throw new Error("Interaction writes require --expected-length and --expected-digest from event replay.");
|
|
51
|
+
}
|
|
52
|
+
if (bytes.length !== expectedLength || store.digest !== expectedDigest) {
|
|
53
|
+
if (bytes.length > expectedLength && head(bytes.subarray(0, expectedLength)) === expectedDigest) {
|
|
54
|
+
const previous = replayIdeaEvents(id, parseIdeaEvents(bytes.subarray(0, expectedLength), options), options);
|
|
55
|
+
if (previous.ok && "state" in previous) {
|
|
56
|
+
const event = parseRequest(input, previous.state.sequence + 1, options);
|
|
57
|
+
if (event === undefined)
|
|
58
|
+
throw new TypeError("Event request did not produce an event.");
|
|
59
|
+
const record = Buffer.from(serializeIdeaEvents([event], options));
|
|
60
|
+
if (["ping", "pong"].includes(event.type)
|
|
61
|
+
&& bytes.subarray(expectedLength, expectedLength + record.length).equals(record)) {
|
|
62
|
+
const current = replayIdeaEvents(id, parseIdeaEvents(bytes, options), options);
|
|
63
|
+
if (!current.ok || !("state" in current)) {
|
|
64
|
+
throw new Error(`Current log reduction failed: ${"code" in current ? current.code : "missing-state"}`);
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
id, outcome: "already-present", written: false,
|
|
68
|
+
length: bytes.length, digest: store.digest, sequence: current.state.sequence
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
throw new Error("Stale log length or digest; reobserve before responding to new messages.");
|
|
74
|
+
}
|
|
75
|
+
const before = replayIdeaEvents(id, parseIdeaEvents(bytes, options), options);
|
|
76
|
+
if (!before.ok || !("state" in before)) {
|
|
77
|
+
throw new Error(`Current log reduction failed: ${"code" in before ? before.code : "missing-state"}`);
|
|
78
|
+
}
|
|
79
|
+
const event = parseRequest(input, before.state.sequence + 1, options);
|
|
80
|
+
const candidate = Buffer.concat([bytes, Buffer.from(serializeIdeaEvents([event], options))]);
|
|
81
|
+
const after = replayIdeaEvents(id, parseIdeaEvents(candidate, options), options);
|
|
82
|
+
if (!after.ok || !("state" in after)) {
|
|
83
|
+
throw new Error(`Candidate reduction failed: ${"code" in after ? after.code : "missing-state"} at ${"sequence" in after ? after.sequence : "unknown"}`);
|
|
84
|
+
}
|
|
85
|
+
await stateTransaction(root, "events", eventStorageChanges(paths, store, candidate, options), {
|
|
86
|
+
context: { id, localInteraction: true, storage: store.storage, afterDigest: head(candidate) },
|
|
87
|
+
validate: async () => {
|
|
88
|
+
const current = await readEventStorage(root, paths, options);
|
|
89
|
+
if (current.digest !== store.digest || !current.bytes.equals(bytes))
|
|
90
|
+
throw new Error("Log changed before local interaction write.");
|
|
91
|
+
},
|
|
92
|
+
validateApplied: async () => {
|
|
93
|
+
const current = await readEventStorage(root, paths, options);
|
|
94
|
+
if (current.digest !== head(candidate))
|
|
95
|
+
throw new Error("Complete stream changed during local interaction commit.");
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
return {
|
|
99
|
+
id, outcome: "candidate-written", written: true,
|
|
100
|
+
length: candidate.length, digest: head(candidate), sequence: after.state.sequence,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export async function appendProjectedInteraction({ root, id, paths, filesystem, input, expectedLength, expectedDigest, options, }) {
|
|
104
|
+
const snapshotFilesystem = requireSnapshotFileSystem(filesystem);
|
|
105
|
+
if (typeof expectedLength !== "number" || !Number.isSafeInteger(expectedLength) || expectedLength < 0
|
|
106
|
+
|| typeof expectedDigest !== "string"
|
|
107
|
+
|| !new RegExp(`^[0-9a-f]{${options.objectIdLength}}$`).test(expectedDigest ?? "")) {
|
|
108
|
+
throw new Error("Interaction writes require an exact observed length and file digest.");
|
|
109
|
+
}
|
|
110
|
+
const before = await projectEventSnapshot(root, id, paths, options, snapshotFilesystem);
|
|
111
|
+
if (before.length !== expectedLength || before.digest !== expectedDigest) {
|
|
112
|
+
const delta = await readEventDelta(root, paths, options, eventCursorFileSystem(snapshotFilesystem), { length: expectedLength, digest: expectedDigest });
|
|
113
|
+
const first = delta.events[0];
|
|
114
|
+
if (first) {
|
|
115
|
+
const proposed = parseRequest(input, first.sequence, options);
|
|
116
|
+
if (proposed === undefined) {
|
|
117
|
+
throw new TypeError("Event request did not produce an event.");
|
|
118
|
+
}
|
|
119
|
+
if (serializeIdeaEvents([first], options) === serializeIdeaEvents([proposed], options)) {
|
|
120
|
+
return {
|
|
121
|
+
id, outcome: "already-present", written: false,
|
|
122
|
+
length: before.length, digest: before.digest, sequence: before.state.sequence
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
throw new Error("Stale log length or digest; do not renumber or replay the old request.");
|
|
127
|
+
}
|
|
128
|
+
const event = parseRequest(input, before.state.sequence + 1, options);
|
|
129
|
+
if (event === undefined)
|
|
130
|
+
throw new TypeError("Event request did not produce an event.");
|
|
131
|
+
const planned = planProjectedAppend(before, paths, event, options);
|
|
132
|
+
if (!planned.reduction.ok || !("state" in planned.reduction)) {
|
|
133
|
+
throw new Error(`Candidate reduction failed: ${"code" in planned.reduction ? planned.reduction.code : "missing-state"} at ${"sequence" in planned.reduction ? planned.reduction.sequence : "unknown"}`);
|
|
134
|
+
}
|
|
135
|
+
await writeProjectedAppend(root, id, paths, before, planned, options, { localInteraction: true });
|
|
136
|
+
return {
|
|
137
|
+
id, outcome: "candidate-written", written: true,
|
|
138
|
+
length: before.length + planned.record.length, digest: planned.digest, sequence: planned.reduction.state.sequence
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export async function writeProjectedAppend(root, id, paths, before, planned, options, context, { validate, validateApplied, } = {}) {
|
|
142
|
+
if (planned.files === undefined) {
|
|
143
|
+
throw new TypeError("Projected append did not produce transaction files.");
|
|
144
|
+
}
|
|
145
|
+
const liveHead = () => snapshotEventFileHead(root, paths, options, asBusinessFileSystem(createGitSnapshotFileSystem({
|
|
146
|
+
gitRoot: root,
|
|
147
|
+
tree: worktreeSnapshot(root, { reuseIndex: true }).tree,
|
|
148
|
+
})));
|
|
149
|
+
await stateTransaction(root, "events", planned.files, {
|
|
150
|
+
context: { id, storage: "single-file", afterDigest: planned.digest, ...context },
|
|
151
|
+
validate: async () => {
|
|
152
|
+
if (await liveHead() !== before.digest)
|
|
153
|
+
throw new Error("Complete event stream changed before write.");
|
|
154
|
+
await validate?.();
|
|
155
|
+
},
|
|
156
|
+
validateApplied: async () => {
|
|
157
|
+
if (await liveHead() !== planned.digest)
|
|
158
|
+
throw new Error("Complete event stream changed during commit.");
|
|
159
|
+
await validateApplied?.();
|
|
160
|
+
},
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
export async function appendProjectedMetadata({ root, id, paths, filesystem, tree, config, input, expectedLength, expectedDigest, expectedPrimary, confirmDecision, options, runtime, }) {
|
|
164
|
+
const snapshotFilesystem = requireSnapshotFileSystem(filesystem);
|
|
165
|
+
if (typeof expectedLength !== "number" || !Number.isSafeInteger(expectedLength) || expectedLength < 0
|
|
166
|
+
|| typeof expectedDigest !== "string"
|
|
167
|
+
|| !new RegExp(`^[0-9a-f]{${options.objectIdLength}}$`).test(expectedDigest ?? "")
|
|
168
|
+
|| !new RegExp(`^[0-9a-f]{${options.objectIdLength}}$`).test(expectedPrimary ?? "")) {
|
|
169
|
+
throw new Error("Writes require exact observed length, file digest and primary.");
|
|
170
|
+
}
|
|
171
|
+
const refreshPrimary = async () => {
|
|
172
|
+
const action = await runtime.performAction({ type: "fetch-primary" }, () => ({ commit: fetchPrimary(root, config) }), (cause) => ({ problem: { type: "primary-fetch-failed", summary: errorMessage(cause) } }));
|
|
173
|
+
if (action.status === "failure")
|
|
174
|
+
throw new Error(action.problem.summary);
|
|
175
|
+
return action.result.commit;
|
|
176
|
+
};
|
|
177
|
+
const primary = await refreshPrimary();
|
|
178
|
+
if (primary !== expectedPrimary)
|
|
179
|
+
throw new Error("Primary moved; preserve the candidate, synchronize and reassess the request.");
|
|
180
|
+
const before = await projectEventSnapshot(root, id, paths, options, snapshotFilesystem);
|
|
181
|
+
if (before.length !== expectedLength || before.digest !== expectedDigest) {
|
|
182
|
+
const delta = await readEventDelta(root, paths, options, eventCursorFileSystem(snapshotFilesystem), { length: expectedLength, digest: expectedDigest });
|
|
183
|
+
if (delta.events[0]) {
|
|
184
|
+
const event = parseRequest(input, delta.events[0].sequence, options);
|
|
185
|
+
if (event === undefined)
|
|
186
|
+
throw new TypeError("Event request did not produce an event.");
|
|
187
|
+
if (serializeIdeaEvents([event], options) === serializeIdeaEvents([delta.events[0]], options)) {
|
|
188
|
+
return {
|
|
189
|
+
supported: true, receipt: {
|
|
190
|
+
id, outcome: "already-present", written: false,
|
|
191
|
+
length: before.length, digest: before.digest, sequence: before.state.sequence, primary
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
throw new Error("Stale log length or digest; do not renumber or replay the old request.");
|
|
197
|
+
}
|
|
198
|
+
const event = parseRequest(input, before.state.sequence + 1, options);
|
|
199
|
+
if (event === undefined)
|
|
200
|
+
throw new TypeError("Event request did not produce an event.");
|
|
201
|
+
const planned = planProjectedAppend(before, paths, event, options);
|
|
202
|
+
if (!planned.reduction.ok) {
|
|
203
|
+
if (!("code" in planned.reduction) || planned.reduction.code !== "no-state-change") {
|
|
204
|
+
throw new Error(`Candidate reduction failed: ${"code" in planned.reduction ? planned.reduction.code : "missing-code"}`);
|
|
205
|
+
}
|
|
206
|
+
return {
|
|
207
|
+
supported: true, receipt: {
|
|
208
|
+
id, outcome: "no-state-change", written: false,
|
|
209
|
+
length: before.length, digest: before.digest, primary
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
if (!("state" in planned.reduction))
|
|
214
|
+
throw new Error("Candidate reduction did not return state.");
|
|
215
|
+
const reductionState = planned.reduction.state;
|
|
216
|
+
const layout = await inspectIdeaLayout({
|
|
217
|
+
root, config, filesystem, snapshotTree: tree, projectedEvents: true,
|
|
218
|
+
projectedRequests: new Map([[id, event]]),
|
|
219
|
+
});
|
|
220
|
+
if (layout.diagnostics.length)
|
|
221
|
+
throw new Error(layout.diagnostics.map((item) => item.message).join("; "));
|
|
222
|
+
const selected = layout.ideas.find((idea) => idea.id === id);
|
|
223
|
+
if (!selected)
|
|
224
|
+
throw new Error(`Candidate layout omitted idea ${id}.`);
|
|
225
|
+
const history = await inspectProjectedEventHistory({ root, tree, primary });
|
|
226
|
+
if (!history.supported)
|
|
227
|
+
return history;
|
|
228
|
+
const worlds = inspectTreePaths(root, primary, [paths.idealPath, paths.innerPath, paths.outerPath]);
|
|
229
|
+
assertHumanGate(event, {
|
|
230
|
+
...selected,
|
|
231
|
+
state: deriveEventIdeaState(selected.revisions, before.state.status),
|
|
232
|
+
status: before.state.status,
|
|
233
|
+
}, {
|
|
234
|
+
idealRevision: worlds.get(paths.idealPath)?.object,
|
|
235
|
+
implementationRevision: worlds.get(paths.innerPath)?.object,
|
|
236
|
+
deploymentRevision: worlds.get(paths.outerPath)?.object,
|
|
237
|
+
}, confirmDecision);
|
|
238
|
+
const protectedPaths = [".silvermoon/ideas", ".silvermoon/config.yaml"];
|
|
239
|
+
const protectedSignature = JSON.stringify([...inspectTreePaths(root, tree, protectedPaths)]);
|
|
240
|
+
const action = await runtime.performAction({ type: "write-idea-events" }, async () => {
|
|
241
|
+
await writeProjectedAppend(root, id, paths, before, planned, options, { primary, revisions: selected.revisions }, {
|
|
242
|
+
validate: async () => {
|
|
243
|
+
if (await refreshPrimary() !== primary)
|
|
244
|
+
throw new Error("Primary moved before write; recover the unwritten transaction, then reobserve.");
|
|
245
|
+
const live = worktreeSnapshot(root, { reuseIndex: true }).tree;
|
|
246
|
+
if (JSON.stringify([...inspectTreePaths(root, live, protectedPaths)]) !== protectedSignature) {
|
|
247
|
+
throw new Error("Worlds or project state changed during validation.");
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
validateApplied: async () => {
|
|
251
|
+
const live = worktreeSnapshot(root, { reuseIndex: true }).tree;
|
|
252
|
+
const current = await inspectIdeaLayout({
|
|
253
|
+
root, config, snapshotTree: live, projectedEvents: true,
|
|
254
|
+
filesystem: asBusinessFileSystem(createGitSnapshotFileSystem({ gitRoot: root, tree: live })),
|
|
255
|
+
});
|
|
256
|
+
if (current.diagnostics.length)
|
|
257
|
+
throw new Error(current.diagnostics.map((item) => item.message).join("; "));
|
|
258
|
+
const idea = current.ideas.find((item) => item.id === id);
|
|
259
|
+
const revisionKeys = [
|
|
260
|
+
"idealRevision",
|
|
261
|
+
"implementationRevision",
|
|
262
|
+
"deploymentRevision",
|
|
263
|
+
];
|
|
264
|
+
if (!idea || revisionKeys.some((key) => idea.revisions[key] !== selected.revisions[key])) {
|
|
265
|
+
throw new Error("Worlds changed during event commit.");
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
});
|
|
269
|
+
if (!history.results)
|
|
270
|
+
throw new Error("Projected history omitted results.");
|
|
271
|
+
const result = history.results.find((item) => item.id === id);
|
|
272
|
+
if (!result)
|
|
273
|
+
throw new Error(`Projected history omitted idea ${id}.`);
|
|
274
|
+
const candidate = {
|
|
275
|
+
length: before.length + planned.record.length, digest: planned.digest,
|
|
276
|
+
sequence: reductionState.sequence
|
|
277
|
+
};
|
|
278
|
+
const updatedHistory = {
|
|
279
|
+
...history,
|
|
280
|
+
results: history.results.map((item) => item === result ? { ...item, candidate } : item),
|
|
281
|
+
};
|
|
282
|
+
return {
|
|
283
|
+
id, outcome: "candidate-written", written: true, primary,
|
|
284
|
+
length: candidate.length, digest: planned.digest,
|
|
285
|
+
sequence: reductionState.sequence, history: updatedHistory,
|
|
286
|
+
};
|
|
287
|
+
}, (cause) => ({ problem: { type: "event.write-failed", summary: errorMessage(cause) } }));
|
|
288
|
+
if (action.status === "failure")
|
|
289
|
+
throw new Error(action.problem.summary);
|
|
290
|
+
return { supported: true, receipt: action.result };
|
|
291
|
+
}
|
|
292
|
+
//# sourceMappingURL=append-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"append-event.js","sourceRoot":"","sources":["../../../src/business/append-event.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACjI,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC5G,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAS5E,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AAEpC,SAAS,qBAAqB,CAAC,UAAwD;IACr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