silvermoon 0.3.0-rc.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/README.zh-CN.md +26 -24
- package/dist/bin/build-npm-tarball.d.ts +28 -0
- package/dist/bin/build-npm-tarball.d.ts.map +1 -0
- package/dist/bin/build-npm-tarball.js +200 -0
- package/dist/bin/build-npm-tarball.js.map +1 -0
- package/dist/bin/check-pack.d.ts +2 -0
- package/dist/bin/check-pack.d.ts.map +1 -0
- package/dist/bin/check-pack.js +421 -0
- package/dist/bin/check-pack.js.map +1 -0
- package/dist/bin/ci-package-risk.d.ts +19 -0
- package/dist/bin/ci-package-risk.d.ts.map +1 -0
- package/dist/bin/ci-package-risk.js +78 -0
- package/dist/bin/ci-package-risk.js.map +1 -0
- package/dist/bin/generate-npm-readme.d.ts +7 -0
- package/dist/bin/generate-npm-readme.d.ts.map +1 -0
- package/dist/bin/generate-npm-readme.js +232 -0
- package/dist/bin/generate-npm-readme.js.map +1 -0
- package/dist/bin/migrate-v1-to-v2.d.ts +3 -0
- package/dist/bin/migrate-v1-to-v2.d.ts.map +1 -0
- package/dist/bin/migrate-v1-to-v2.js +25 -0
- package/dist/bin/migrate-v1-to-v2.js.map +1 -0
- package/dist/bin/prepare-npm-release.d.ts +46 -0
- package/dist/bin/prepare-npm-release.d.ts.map +1 -0
- package/dist/bin/prepare-npm-release.js +210 -0
- package/dist/bin/prepare-npm-release.js.map +1 -0
- package/dist/bin/pure-check.d.ts +15 -0
- package/dist/bin/pure-check.d.ts.map +1 -0
- package/dist/bin/pure-check.js +448 -0
- package/dist/bin/pure-check.js.map +1 -0
- package/dist/bin/run-checks.d.ts +34 -0
- package/dist/bin/run-checks.d.ts.map +1 -0
- package/dist/bin/run-checks.js +149 -0
- package/dist/bin/run-checks.js.map +1 -0
- package/dist/bin/silvermoon.d.ts +76 -0
- package/dist/bin/silvermoon.d.ts.map +1 -0
- package/dist/bin/silvermoon.js +401 -0
- package/dist/bin/silvermoon.js.map +1 -0
- package/dist/bin/sync-skills.d.ts +2 -0
- package/dist/bin/sync-skills.d.ts.map +1 -0
- package/dist/bin/sync-skills.js +78 -0
- package/dist/bin/sync-skills.js.map +1 -0
- package/dist/bin/verify-npm-release.d.ts +55 -0
- package/dist/bin/verify-npm-release.d.ts.map +1 -0
- package/dist/bin/verify-npm-release.js +418 -0
- package/dist/bin/verify-npm-release.js.map +1 -0
- package/dist/src/business/agent-copilot.d.ts +82 -0
- package/dist/src/business/agent-copilot.d.ts.map +1 -0
- package/dist/src/business/agent-copilot.js +330 -0
- package/dist/src/business/agent-copilot.js.map +1 -0
- package/dist/src/business/agent-project-registry.d.ts +22 -0
- package/dist/src/business/agent-project-registry.d.ts.map +1 -0
- package/dist/src/business/agent-project-registry.js +239 -0
- package/dist/src/business/agent-project-registry.js.map +1 -0
- package/dist/src/business/agent-project-runtime.d.ts +37 -0
- package/dist/src/business/agent-project-runtime.d.ts.map +1 -0
- package/dist/src/business/agent-project-runtime.js +198 -0
- package/dist/src/business/agent-project-runtime.js.map +1 -0
- package/dist/src/business/append-event-history.d.ts +21 -0
- package/dist/src/business/append-event-history.d.ts.map +1 -0
- package/dist/src/business/append-event-history.js +138 -0
- package/dist/src/business/append-event-history.js.map +1 -0
- package/dist/src/business/append-event.d.ts +140 -0
- package/dist/src/business/append-event.d.ts.map +1 -0
- package/dist/src/business/append-event.js +292 -0
- package/dist/src/business/append-event.js.map +1 -0
- package/dist/src/business/check-repository.d.ts +109 -0
- package/dist/src/business/check-repository.d.ts.map +1 -0
- package/dist/src/business/check-repository.js +379 -0
- package/dist/src/business/check-repository.js.map +1 -0
- package/dist/src/business/create-idea.d.ts +100 -0
- package/dist/src/business/create-idea.d.ts.map +1 -0
- package/dist/src/business/create-idea.js +224 -0
- package/dist/src/business/create-idea.js.map +1 -0
- package/dist/src/business/event-command.d.ts +111 -0
- package/dist/src/business/event-command.d.ts.map +1 -0
- package/dist/src/business/event-command.js +239 -0
- package/dist/src/business/event-command.js.map +1 -0
- package/dist/src/business/index.d.ts +7 -0
- package/dist/src/business/index.d.ts.map +1 -0
- package/dist/src/business/index.js +7 -0
- package/dist/src/business/index.js.map +1 -0
- package/dist/src/business/list-ideas.d.ts +97 -0
- package/dist/src/business/list-ideas.d.ts.map +1 -0
- package/dist/src/business/list-ideas.js +177 -0
- package/dist/src/business/list-ideas.js.map +1 -0
- package/dist/src/business/migrate-v1-to-v2.d.ts +23 -0
- package/dist/src/business/migrate-v1-to-v2.d.ts.map +1 -0
- package/dist/src/business/migrate-v1-to-v2.js +152 -0
- package/dist/src/business/migrate-v1-to-v2.js.map +1 -0
- package/dist/src/business/replay-events.d.ts +20 -0
- package/dist/src/business/replay-events.d.ts.map +1 -0
- package/dist/src/business/replay-events.js +27 -0
- package/dist/src/business/replay-events.js.map +1 -0
- package/dist/src/business/schema-migration.d.ts +19 -0
- package/dist/src/business/schema-migration.d.ts.map +1 -0
- package/dist/src/business/schema-migration.js +23 -0
- package/dist/src/business/schema-migration.js.map +1 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.d.ts +3 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.js +9 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.js.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness-with.d.ts +18 -0
- package/dist/src/business/shared/assess-repository-readiness-with.d.ts.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness-with.js +125 -0
- package/dist/src/business/shared/assess-repository-readiness-with.js.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness.d.ts +3 -0
- package/dist/src/business/shared/assess-repository-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness.js +6 -0
- package/dist/src/business/shared/assess-repository-readiness.js.map +1 -0
- package/dist/src/business/shared/business-types.d.ts +151 -0
- package/dist/src/business/shared/business-types.d.ts.map +1 -0
- package/dist/src/business/shared/business-types.js +83 -0
- package/dist/src/business/shared/business-types.js.map +1 -0
- package/dist/src/business/shared/evaluate-local-readiness.d.ts +9 -0
- package/dist/src/business/shared/evaluate-local-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/evaluate-local-readiness.js +97 -0
- package/dist/src/business/shared/evaluate-local-readiness.js.map +1 -0
- package/dist/src/business/shared/evaluate-primary-relation.d.ts +12 -0
- package/dist/src/business/shared/evaluate-primary-relation.d.ts.map +1 -0
- package/dist/src/business/shared/evaluate-primary-relation.js +40 -0
- package/dist/src/business/shared/evaluate-primary-relation.js.map +1 -0
- package/dist/src/business/shared/idea-layout.d.ts +55 -0
- package/dist/src/business/shared/idea-layout.d.ts.map +1 -0
- package/dist/src/business/shared/idea-layout.js +434 -0
- package/dist/src/business/shared/idea-layout.js.map +1 -0
- package/dist/src/business/shared/index.d.ts +18 -0
- package/dist/src/business/shared/index.d.ts.map +1 -0
- package/dist/src/business/shared/index.js +17 -0
- package/dist/src/business/shared/index.js.map +1 -0
- package/dist/src/business/shared/inspect-candidate.d.ts +5 -0
- package/dist/src/business/shared/inspect-candidate.d.ts.map +1 -0
- package/dist/src/business/shared/inspect-candidate.js +57 -0
- package/dist/src/business/shared/inspect-candidate.js.map +1 -0
- package/dist/src/business/shared/metadata-failure-observation.d.ts +21 -0
- package/dist/src/business/shared/metadata-failure-observation.d.ts.map +1 -0
- package/dist/src/business/shared/metadata-failure-observation.js +30 -0
- package/dist/src/business/shared/metadata-failure-observation.js.map +1 -0
- package/dist/src/business/shared/observe-device.d.ts +150 -0
- package/dist/src/business/shared/observe-device.d.ts.map +1 -0
- package/dist/src/business/shared/observe-device.js +71 -0
- package/dist/src/business/shared/observe-device.js.map +1 -0
- package/dist/src/business/shared/observe-idea.d.ts +14 -0
- package/dist/src/business/shared/observe-idea.d.ts.map +1 -0
- package/dist/src/business/shared/observe-idea.js +14 -0
- package/dist/src/business/shared/observe-idea.js.map +1 -0
- package/dist/src/business/shared/observe-project.d.ts +39 -0
- package/dist/src/business/shared/observe-project.d.ts.map +1 -0
- package/dist/src/business/shared/observe-project.js +11 -0
- package/dist/src/business/shared/observe-project.js.map +1 -0
- package/dist/src/business/shared/observe-snapshot.d.ts +35 -0
- package/dist/src/business/shared/observe-snapshot.d.ts.map +1 -0
- package/dist/src/business/shared/observe-snapshot.js +518 -0
- package/dist/src/business/shared/observe-snapshot.js.map +1 -0
- package/dist/src/business/shared/read-idea-inventory-item.d.ts +13 -0
- package/dist/src/business/shared/read-idea-inventory-item.d.ts.map +1 -0
- package/dist/src/business/shared/read-idea-inventory-item.js +18 -0
- package/dist/src/business/shared/read-idea-inventory-item.js.map +1 -0
- package/dist/src/business/shared/resolve-idea.d.ts +7 -0
- package/dist/src/business/shared/resolve-idea.d.ts.map +1 -0
- package/dist/src/business/shared/resolve-idea.js +14 -0
- package/dist/src/business/shared/resolve-idea.js.map +1 -0
- package/dist/src/business/shared/with-observation-language.d.ts +3 -0
- package/dist/src/business/shared/with-observation-language.d.ts.map +1 -0
- package/dist/src/business/shared/with-observation-language.js +20 -0
- package/dist/src/business/shared/with-observation-language.js.map +1 -0
- package/dist/src/business/whats-next.d.ts +94 -0
- package/dist/src/business/whats-next.d.ts.map +1 -0
- package/dist/src/business/whats-next.js +208 -0
- package/dist/src/business/whats-next.js.map +1 -0
- package/dist/src/foundation/command-message/index.d.ts +3 -0
- package/dist/src/foundation/command-message/index.d.ts.map +1 -0
- package/dist/src/foundation/command-message/index.js +3 -0
- package/dist/src/foundation/command-message/index.js.map +1 -0
- package/dist/src/foundation/command-message/observation.d.ts +223 -0
- package/dist/src/foundation/command-message/observation.d.ts.map +1 -0
- package/dist/src/foundation/command-message/observation.js +364 -0
- package/dist/src/foundation/command-message/observation.js.map +1 -0
- package/dist/src/foundation/command-message/runtime.d.ts +214 -0
- package/dist/src/foundation/command-message/runtime.d.ts.map +1 -0
- package/dist/src/foundation/command-message/runtime.js +215 -0
- package/dist/src/foundation/command-message/runtime.js.map +1 -0
- package/dist/src/foundation/coordinates/index.d.ts +3 -0
- package/dist/src/foundation/coordinates/index.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/index.js +3 -0
- package/dist/src/foundation/coordinates/index.js.map +1 -0
- package/dist/src/foundation/coordinates/layout.d.ts +27 -0
- package/dist/src/foundation/coordinates/layout.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/layout.js +41 -0
- package/dist/src/foundation/coordinates/layout.js.map +1 -0
- package/dist/src/foundation/coordinates/repository.d.ts +16 -0
- package/dist/src/foundation/coordinates/repository.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/repository.js +75 -0
- package/dist/src/foundation/coordinates/repository.js.map +1 -0
- package/dist/src/foundation/device-config/index.d.ts +2 -0
- package/dist/src/foundation/device-config/index.d.ts.map +1 -0
- package/dist/src/foundation/device-config/index.js +2 -0
- package/dist/src/foundation/device-config/index.js.map +1 -0
- package/dist/src/foundation/device-config/user-config.d.ts +19 -0
- package/dist/src/foundation/device-config/user-config.d.ts.map +1 -0
- package/dist/src/foundation/device-config/user-config.js +94 -0
- package/dist/src/foundation/device-config/user-config.js.map +1 -0
- package/dist/src/foundation/event-codec/grammar.d.ts +172 -0
- package/dist/src/foundation/event-codec/grammar.d.ts.map +1 -0
- package/dist/src/foundation/event-codec/grammar.js +383 -0
- package/dist/src/foundation/event-codec/grammar.js.map +1 -0
- package/dist/src/foundation/event-codec/index.d.ts +3 -0
- package/dist/src/foundation/event-codec/index.d.ts.map +1 -0
- package/dist/src/foundation/event-codec/index.js +2 -0
- package/dist/src/foundation/event-codec/index.js.map +1 -0
- package/dist/src/foundation/event-cursor/cursor.d.ts +40 -0
- package/dist/src/foundation/event-cursor/cursor.d.ts.map +1 -0
- package/dist/src/foundation/event-cursor/cursor.js +42 -0
- package/dist/src/foundation/event-cursor/cursor.js.map +1 -0
- package/dist/src/foundation/event-cursor/index.d.ts +2 -0
- package/dist/src/foundation/event-cursor/index.d.ts.map +1 -0
- package/dist/src/foundation/event-cursor/index.js +2 -0
- package/dist/src/foundation/event-cursor/index.js.map +1 -0
- package/dist/src/foundation/event-history/digest.d.ts +2 -0
- package/dist/src/foundation/event-history/digest.d.ts.map +1 -0
- package/dist/src/foundation/event-history/digest.js +2 -0
- package/dist/src/foundation/event-history/digest.js.map +1 -0
- package/dist/src/foundation/event-history/history.d.ts +86 -0
- package/dist/src/foundation/event-history/history.d.ts.map +1 -0
- package/dist/src/foundation/event-history/history.js +481 -0
- package/dist/src/foundation/event-history/history.js.map +1 -0
- package/dist/src/foundation/event-history/index.d.ts +3 -0
- package/dist/src/foundation/event-history/index.d.ts.map +1 -0
- package/dist/src/foundation/event-history/index.js +3 -0
- package/dist/src/foundation/event-history/index.js.map +1 -0
- package/dist/src/foundation/event-reducer/index.d.ts +2 -0
- package/dist/src/foundation/event-reducer/index.d.ts.map +1 -0
- package/dist/src/foundation/event-reducer/index.js +2 -0
- package/dist/src/foundation/event-reducer/index.js.map +1 -0
- package/dist/src/foundation/event-reducer/policy.d.ts +69 -0
- package/dist/src/foundation/event-reducer/policy.d.ts.map +1 -0
- package/dist/src/foundation/event-reducer/policy.js +138 -0
- package/dist/src/foundation/event-reducer/policy.js.map +1 -0
- package/dist/src/foundation/event-store/digest.d.ts +11 -0
- package/dist/src/foundation/event-store/digest.d.ts.map +1 -0
- package/dist/src/foundation/event-store/digest.js +38 -0
- package/dist/src/foundation/event-store/digest.js.map +1 -0
- package/dist/src/foundation/event-store/index.d.ts +3 -0
- package/dist/src/foundation/event-store/index.d.ts.map +1 -0
- package/dist/src/foundation/event-store/index.js +3 -0
- package/dist/src/foundation/event-store/index.js.map +1 -0
- package/dist/src/foundation/event-store/storage.d.ts +50 -0
- package/dist/src/foundation/event-store/storage.d.ts.map +1 -0
- package/dist/src/foundation/event-store/storage.js +109 -0
- package/dist/src/foundation/event-store/storage.js.map +1 -0
- package/dist/src/foundation/git/derived-cache.d.ts +5 -0
- package/dist/src/foundation/git/derived-cache.d.ts.map +1 -0
- package/dist/src/foundation/git/derived-cache.js +117 -0
- package/dist/src/foundation/git/derived-cache.js.map +1 -0
- package/dist/src/foundation/git/git.d.ts +100 -0
- package/dist/src/foundation/git/git.d.ts.map +1 -0
- package/dist/src/foundation/git/git.js +677 -0
- package/dist/src/foundation/git/git.js.map +1 -0
- package/dist/src/foundation/git/index.d.ts +3 -0
- package/dist/src/foundation/git/index.d.ts.map +1 -0
- package/dist/src/foundation/git/index.js +3 -0
- package/dist/src/foundation/git/index.js.map +1 -0
- package/dist/src/foundation/guidance/guidance.d.ts +36 -0
- package/dist/src/foundation/guidance/guidance.d.ts.map +1 -0
- package/dist/src/foundation/guidance/guidance.js +198 -0
- package/dist/src/foundation/guidance/guidance.js.map +1 -0
- package/dist/src/foundation/guidance/index.d.ts +3 -0
- package/dist/src/foundation/guidance/index.d.ts.map +1 -0
- package/dist/src/foundation/guidance/index.js +3 -0
- package/dist/src/foundation/guidance/index.js.map +1 -0
- package/dist/src/foundation/guidance/rules.d.ts +36 -0
- package/dist/src/foundation/guidance/rules.d.ts.map +1 -0
- package/dist/src/foundation/guidance/rules.js +65 -0
- package/dist/src/foundation/guidance/rules.js.map +1 -0
- package/dist/src/foundation/idea-model/index.d.ts +3 -0
- package/dist/src/foundation/idea-model/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/index.js +3 -0
- package/dist/src/foundation/idea-model/index.js.map +1 -0
- package/dist/src/foundation/idea-model/status.d.ts +28 -0
- package/dist/src/foundation/idea-model/status.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/status.js +192 -0
- package/dist/src/foundation/idea-model/status.js.map +1 -0
- package/dist/src/foundation/idea-model/ulid.d.ts +6 -0
- package/dist/src/foundation/idea-model/ulid.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/ulid.js +16 -0
- package/dist/src/foundation/idea-model/ulid.js.map +1 -0
- package/dist/src/foundation/idea-query/index.d.ts +3 -0
- package/dist/src/foundation/idea-query/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/index.js +3 -0
- package/dist/src/foundation/idea-query/index.js.map +1 -0
- package/dist/src/foundation/idea-query/query.d.ts +13 -0
- package/dist/src/foundation/idea-query/query.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/query.js +17 -0
- package/dist/src/foundation/idea-query/query.js.map +1 -0
- package/dist/src/foundation/idea-query/rules.d.ts +55 -0
- package/dist/src/foundation/idea-query/rules.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/rules.js +223 -0
- package/dist/src/foundation/idea-query/rules.js.map +1 -0
- package/dist/src/foundation/idea-template/index.d.ts +2 -0
- package/dist/src/foundation/idea-template/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-template/index.js +2 -0
- package/dist/src/foundation/idea-template/index.js.map +1 -0
- package/dist/src/foundation/idea-template/templates.d.ts +21 -0
- package/dist/src/foundation/idea-template/templates.d.ts.map +1 -0
- package/dist/src/foundation/idea-template/templates.js +265 -0
- package/dist/src/foundation/idea-template/templates.js.map +1 -0
- package/dist/src/foundation/installation/device-readiness.d.ts +94 -0
- package/dist/src/foundation/installation/device-readiness.d.ts.map +1 -0
- package/dist/src/foundation/installation/device-readiness.js +274 -0
- package/dist/src/foundation/installation/device-readiness.js.map +1 -0
- package/dist/src/foundation/installation/index.d.ts +4 -0
- package/dist/src/foundation/installation/index.d.ts.map +1 -0
- package/dist/src/foundation/installation/index.js +4 -0
- package/dist/src/foundation/installation/index.js.map +1 -0
- package/dist/src/foundation/installation/installation.d.ts +25 -0
- package/dist/src/foundation/installation/installation.d.ts.map +1 -0
- package/dist/src/foundation/installation/installation.js +125 -0
- package/dist/src/foundation/installation/installation.js.map +1 -0
- package/dist/src/foundation/installation/rules.d.ts +12 -0
- package/dist/src/foundation/installation/rules.d.ts.map +1 -0
- package/dist/src/foundation/installation/rules.js +63 -0
- package/dist/src/foundation/installation/rules.js.map +1 -0
- package/dist/src/foundation/language/index.d.ts +3 -0
- package/dist/src/foundation/language/index.d.ts.map +1 -0
- package/dist/src/foundation/language/index.js +2 -0
- package/dist/src/foundation/language/index.js.map +1 -0
- package/dist/src/foundation/language/language.d.ts +36 -0
- package/dist/src/foundation/language/language.d.ts.map +1 -0
- package/dist/src/foundation/language/language.js +94 -0
- package/dist/src/foundation/language/language.js.map +1 -0
- package/dist/src/foundation/owned-write/index.d.ts +2 -0
- package/dist/src/foundation/owned-write/index.d.ts.map +1 -0
- package/dist/src/foundation/owned-write/index.js +2 -0
- package/dist/src/foundation/owned-write/index.js.map +1 -0
- package/dist/src/foundation/owned-write/writer.d.ts +86 -0
- package/dist/src/foundation/owned-write/writer.d.ts.map +1 -0
- package/dist/src/foundation/owned-write/writer.js +244 -0
- package/dist/src/foundation/owned-write/writer.js.map +1 -0
- package/dist/src/foundation/package-resource/index.d.ts +2 -0
- package/dist/src/foundation/package-resource/index.d.ts.map +1 -0
- package/dist/src/foundation/package-resource/index.js +2 -0
- package/dist/src/foundation/package-resource/index.js.map +1 -0
- package/dist/src/foundation/package-resource/npm-tarball.d.ts +15 -0
- package/dist/src/foundation/package-resource/npm-tarball.d.ts.map +1 -0
- package/dist/src/foundation/package-resource/npm-tarball.js +124 -0
- package/dist/src/foundation/package-resource/npm-tarball.js.map +1 -0
- package/dist/src/foundation/process/index.d.ts +3 -0
- package/dist/src/foundation/process/index.d.ts.map +1 -0
- package/dist/src/foundation/process/index.js +3 -0
- package/dist/src/foundation/process/index.js.map +1 -0
- package/dist/src/foundation/process/npm-command.d.ts +9 -0
- package/dist/src/foundation/process/npm-command.d.ts.map +1 -0
- package/dist/src/foundation/process/npm-command.js +11 -0
- package/dist/src/foundation/process/npm-command.js.map +1 -0
- package/dist/src/foundation/process/subprocess.d.ts +8 -0
- package/dist/src/foundation/process/subprocess.d.ts.map +1 -0
- package/dist/src/foundation/process/subprocess.js +12 -0
- package/dist/src/foundation/process/subprocess.js.map +1 -0
- package/dist/src/foundation/project-config/config.d.ts +30 -0
- package/dist/src/foundation/project-config/config.d.ts.map +1 -0
- package/dist/src/foundation/project-config/config.js +112 -0
- package/dist/src/foundation/project-config/config.js.map +1 -0
- package/dist/src/foundation/project-config/index.d.ts +3 -0
- package/dist/src/foundation/project-config/index.d.ts.map +1 -0
- package/dist/src/foundation/project-config/index.js +3 -0
- package/dist/src/foundation/project-config/index.js.map +1 -0
- package/dist/src/foundation/project-config/rules.d.ts +32 -0
- package/dist/src/foundation/project-config/rules.d.ts.map +1 -0
- package/dist/src/foundation/project-config/rules.js +119 -0
- package/dist/src/foundation/project-config/rules.js.map +1 -0
- package/dist/src/foundation/projection-cache/index.d.ts +2 -0
- package/dist/src/foundation/projection-cache/index.d.ts.map +1 -0
- package/dist/src/foundation/projection-cache/index.js +2 -0
- package/dist/src/foundation/projection-cache/index.js.map +1 -0
- package/dist/src/foundation/projection-cache/projection.d.ts +36 -0
- package/dist/src/foundation/projection-cache/projection.d.ts.map +1 -0
- package/dist/src/foundation/projection-cache/projection.js +105 -0
- package/dist/src/foundation/projection-cache/projection.js.map +1 -0
- package/dist/src/foundation/renderer/index.d.ts +3 -0
- package/dist/src/foundation/renderer/index.d.ts.map +1 -0
- package/dist/src/foundation/renderer/index.js +3 -0
- package/dist/src/foundation/renderer/index.js.map +1 -0
- package/dist/src/foundation/renderer/markdown.d.ts +7 -0
- package/dist/src/foundation/renderer/markdown.d.ts.map +1 -0
- package/dist/src/foundation/renderer/markdown.js +355 -0
- package/dist/src/foundation/renderer/markdown.js.map +1 -0
- package/dist/src/foundation/renderer/render.d.ts +6 -0
- package/dist/src/foundation/renderer/render.d.ts.map +1 -0
- package/dist/src/foundation/renderer/render.js +23 -0
- package/dist/src/foundation/renderer/render.js.map +1 -0
- package/dist/src/foundation/report/dialogue.d.ts +37 -0
- package/dist/src/foundation/report/dialogue.d.ts.map +1 -0
- package/dist/src/foundation/report/dialogue.js +59 -0
- package/dist/src/foundation/report/dialogue.js.map +1 -0
- package/dist/src/foundation/report/index.d.ts +6 -0
- package/dist/src/foundation/report/index.d.ts.map +1 -0
- package/dist/src/foundation/report/index.js +6 -0
- package/dist/src/foundation/report/index.js.map +1 -0
- package/dist/src/foundation/report/instructions.d.ts +77 -0
- package/dist/src/foundation/report/instructions.d.ts.map +1 -0
- package/dist/src/foundation/report/instructions.js +374 -0
- package/dist/src/foundation/report/instructions.js.map +1 -0
- package/dist/src/foundation/report/observation.d.ts +31 -0
- package/dist/src/foundation/report/observation.d.ts.map +1 -0
- package/dist/src/foundation/report/observation.js +83 -0
- package/dist/src/foundation/report/observation.js.map +1 -0
- package/dist/src/foundation/report/projection.d.ts +7 -0
- package/dist/src/foundation/report/projection.d.ts.map +1 -0
- package/dist/src/foundation/report/projection.js +199 -0
- package/dist/src/foundation/report/projection.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/contract.d.ts +148 -0
- package/dist/src/foundation/report/templates/whats-next/contract.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/contract.js +34 -0
- package/dist/src/foundation/report/templates/whats-next/contract.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.d.ts +12 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.js +63 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.js +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.js +39 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.js +12 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/index.d.ts +5 -0
- package/dist/src/foundation/report/templates/whats-next/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/index.js +4 -0
- package/dist/src/foundation/report/templates/whats-next/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/registry.d.ts +4 -0
- package/dist/src/foundation/report/templates/whats-next/registry.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/registry.js +14 -0
- package/dist/src/foundation/report/templates/whats-next/registry.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.js +176 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.d.ts +12 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.js +63 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.js +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.js +39 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.js +12 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.js.map +1 -0
- package/dist/src/foundation/report/types.d.ts +321 -0
- package/dist/src/foundation/report/types.d.ts.map +1 -0
- package/dist/src/foundation/report/types.js +2 -0
- package/dist/src/foundation/report/types.js.map +1 -0
- package/dist/src/foundation/scaffold-plan/index.d.ts +2 -0
- package/dist/src/foundation/scaffold-plan/index.d.ts.map +1 -0
- package/dist/src/foundation/scaffold-plan/index.js +2 -0
- package/dist/src/foundation/scaffold-plan/index.js.map +1 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.d.ts +11 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.d.ts.map +1 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.js +36 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.js.map +1 -0
- package/dist/src/foundation/schema/index.d.ts +3 -0
- package/dist/src/foundation/schema/index.d.ts.map +1 -0
- package/dist/src/foundation/schema/index.js +3 -0
- package/dist/src/foundation/schema/index.js.map +1 -0
- package/dist/src/foundation/schema/schema.d.ts +3 -0
- package/dist/src/foundation/schema/schema.d.ts.map +1 -0
- package/dist/src/foundation/schema/schema.js +10 -0
- package/dist/src/foundation/schema/schema.js.map +1 -0
- package/dist/src/foundation/schema/yaml.d.ts +10 -0
- package/dist/src/foundation/schema/yaml.d.ts.map +1 -0
- package/dist/src/foundation/schema/yaml.js +60 -0
- package/dist/src/foundation/schema/yaml.js.map +1 -0
- package/dist/src/foundation/schema-capability/index.d.ts +6 -0
- package/dist/src/foundation/schema-capability/index.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/index.js +4 -0
- package/dist/src/foundation/schema-capability/index.js.map +1 -0
- package/dist/src/foundation/schema-capability/inspection.d.ts +38 -0
- package/dist/src/foundation/schema-capability/inspection.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/inspection.js +249 -0
- package/dist/src/foundation/schema-capability/inspection.js.map +1 -0
- package/dist/src/foundation/schema-capability/manifest.d.ts +6 -0
- package/dist/src/foundation/schema-capability/manifest.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/manifest.js +17 -0
- package/dist/src/foundation/schema-capability/manifest.js.map +1 -0
- package/dist/src/foundation/schema-capability/rules.d.ts +38 -0
- package/dist/src/foundation/schema-capability/rules.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/rules.js +297 -0
- package/dist/src/foundation/schema-capability/rules.js.map +1 -0
- package/dist/src/foundation/skill-registration/adoption.d.ts +40 -0
- package/dist/src/foundation/skill-registration/adoption.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/adoption.js +63 -0
- package/dist/src/foundation/skill-registration/adoption.js.map +1 -0
- package/dist/src/foundation/skill-registration/index.d.ts +2 -0
- package/dist/src/foundation/skill-registration/index.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/index.js +2 -0
- package/dist/src/foundation/skill-registration/index.js.map +1 -0
- package/dist/src/foundation/skill-registration/rules.d.ts +2 -0
- package/dist/src/foundation/skill-registration/rules.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/rules.js +2 -0
- package/dist/src/foundation/skill-registration/rules.js.map +1 -0
- package/dist/src/foundation/snapshot/git-snapshot.d.ts +40 -0
- package/dist/src/foundation/snapshot/git-snapshot.d.ts.map +1 -0
- package/dist/src/foundation/snapshot/git-snapshot.js +168 -0
- package/dist/src/foundation/snapshot/git-snapshot.js.map +1 -0
- package/dist/src/foundation/snapshot/index.d.ts +2 -0
- package/dist/src/foundation/snapshot/index.d.ts.map +1 -0
- package/dist/src/foundation/snapshot/index.js +2 -0
- package/dist/src/foundation/snapshot/index.js.map +1 -0
- package/dist/src/foundation/state-transaction/index.d.ts +2 -0
- package/dist/src/foundation/state-transaction/index.d.ts.map +1 -0
- package/dist/src/foundation/state-transaction/index.js +2 -0
- package/dist/src/foundation/state-transaction/index.js.map +1 -0
- package/dist/src/foundation/state-transaction/state-transaction.d.ts +48 -0
- package/dist/src/foundation/state-transaction/state-transaction.d.ts.map +1 -0
- package/dist/src/foundation/state-transaction/state-transaction.js +364 -0
- package/dist/src/foundation/state-transaction/state-transaction.js.map +1 -0
- package/dist/src/foundation/terminal/index.d.ts +2 -0
- package/dist/src/foundation/terminal/index.d.ts.map +1 -0
- package/dist/src/foundation/terminal/index.js +2 -0
- package/dist/src/foundation/terminal/index.js.map +1 -0
- package/dist/src/foundation/terminal/terminal.d.ts +17 -0
- package/dist/src/foundation/terminal/terminal.d.ts.map +1 -0
- package/dist/src/foundation/terminal/terminal.js +12 -0
- package/dist/src/foundation/terminal/terminal.js.map +1 -0
- package/dist/src/foundation/trace/index.d.ts +2 -0
- package/dist/src/foundation/trace/index.d.ts.map +1 -0
- package/dist/src/foundation/trace/index.js +2 -0
- package/dist/src/foundation/trace/index.js.map +1 -0
- package/dist/src/foundation/trace/trace.d.ts +12 -0
- package/dist/src/foundation/trace/trace.d.ts.map +1 -0
- package/dist/src/foundation/trace/trace.js +299 -0
- package/dist/src/foundation/trace/trace.js.map +1 -0
- package/dist/src/foundation/tui/index.d.ts +3 -0
- package/dist/src/foundation/tui/index.d.ts.map +1 -0
- package/dist/src/foundation/tui/index.js +3 -0
- package/dist/src/foundation/tui/index.js.map +1 -0
- package/dist/src/foundation/tui/table.d.ts +10 -0
- package/dist/src/foundation/tui/table.d.ts.map +1 -0
- package/dist/src/foundation/tui/table.js +91 -0
- package/dist/src/foundation/tui/table.js.map +1 -0
- package/dist/src/foundation/tui/tui.d.ts +33 -0
- package/dist/src/foundation/tui/tui.d.ts.map +1 -0
- package/dist/src/foundation/tui/tui.js +157 -0
- package/dist/src/foundation/tui/tui.js.map +1 -0
- package/dist/src/index.d.ts +17 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +16 -0
- package/dist/src/index.js.map +1 -0
- package/docs/core-concepts.md +48 -7
- package/docs/getting-started.md +60 -45
- package/docs/maintaining.md +132 -9
- package/docs/npm-package-releases.md +38 -9
- package/docs/operations.md +109 -35
- package/docs/reference.md +304 -35
- package/docs/repository-tasks.md +61 -20
- package/package.json +53 -27
- package/schema/capabilities.json +95 -0
- package/schema/capability-manifest.schema.json +139 -0
- package/schema/v1/command-report.schema.json +4 -2
- package/schema/v1/domain-message.schema.json +2 -1
- package/schema/v2/config.schema.json +14 -0
- package/schema/v2/idea-event.schema.json +121 -0
- package/skills/silvermoon/SKILL.md +204 -112
- package/skills/silvermoon/references/adoption.md +55 -24
- package/skills/silvermoon/references/events.md +296 -0
- package/bin/silvermoon.js +0 -10
- package/src/adoption.js +0 -559
- package/src/cli.js +0 -377
- package/src/config.js +0 -253
- package/src/create-idea.js +0 -497
- package/src/dialogue.js +0 -69
- package/src/domain.js +0 -592
- package/src/git-snapshot.js +0 -212
- package/src/git.js +0 -624
- package/src/guidance.js +0 -281
- package/src/idea-layout.js +0 -411
- package/src/idea-metadata.js +0 -48
- package/src/idea-query.js +0 -230
- package/src/idea-templates.js +0 -242
- package/src/ideas.js +0 -142
- package/src/index.js +0 -386
- package/src/language.js +0 -78
- package/src/layout.js +0 -38
- package/src/list-ideas.js +0 -196
- package/src/observation.js +0 -370
- package/src/repository.js +0 -82
- package/src/response.js +0 -492
- package/src/subprocess.js +0 -27
- package/src/trace.js +0 -292
- package/src/tui-table.js +0 -71
- package/src/tui.js +0 -205
- package/src/user-config.js +0 -135
- package/src/whatsnext.js +0 -726
- package/src/yaml.js +0 -66
package/src/git.js
DELETED
|
@@ -1,624 +0,0 @@
|
|
|
1
|
-
import { mkdir, mkdtemp, rm } from "node:fs/promises";
|
|
2
|
-
import { mkdtempSync, rmSync } from "node:fs";
|
|
3
|
-
import { tmpdir } from "node:os";
|
|
4
|
-
import { join } from "node:path";
|
|
5
|
-
|
|
6
|
-
import { runSubprocess } from "./subprocess.js";
|
|
7
|
-
import { traceAsync } from "./trace.js";
|
|
8
|
-
|
|
9
|
-
let commandObserver = null;
|
|
10
|
-
|
|
11
|
-
function executeGit(root, args, { encoding, env, input } = {}) {
|
|
12
|
-
if (commandObserver) commandObserver([...args]);
|
|
13
|
-
return runSubprocess(
|
|
14
|
-
"git",
|
|
15
|
-
root === null ? args : ["-C", root, ...args],
|
|
16
|
-
{
|
|
17
|
-
encoding,
|
|
18
|
-
env: { ...process.env, GIT_TERMINAL_PROMPT: "0", ...env },
|
|
19
|
-
input,
|
|
20
|
-
windowsHide: true,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
spanName: "git.command",
|
|
24
|
-
attributes: {
|
|
25
|
-
argumentCount: args.length - 1,
|
|
26
|
-
network: args[0] === "fetch" || args[0] === "ls-remote",
|
|
27
|
-
subcommand: args[0] ?? null,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function runGit(root, args, { env, input } = {}) {
|
|
34
|
-
const result = executeGit(root, args, { encoding: "utf8", env, input });
|
|
35
|
-
return {
|
|
36
|
-
error: result.error ?? null,
|
|
37
|
-
ok: result.status === 0,
|
|
38
|
-
status: result.status,
|
|
39
|
-
stderr: result.stderr?.trim() ?? "",
|
|
40
|
-
stdout: result.stdout?.trim() ?? "",
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export async function observeGitCommands(observer, callback) {
|
|
45
|
-
if (commandObserver) throw new Error("Git command observation is already active");
|
|
46
|
-
commandObserver = observer;
|
|
47
|
-
try {
|
|
48
|
-
return await callback();
|
|
49
|
-
} finally {
|
|
50
|
-
commandObserver = null;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function sanitizeGitMessage(value) {
|
|
55
|
-
return String(value)
|
|
56
|
-
.replace(
|
|
57
|
-
/\b([a-z][a-z0-9+.-]*:\/\/)([^\s/@]+)@/gi,
|
|
58
|
-
"$1[redacted]@",
|
|
59
|
-
)
|
|
60
|
-
.replace(
|
|
61
|
-
/([?&](?:access_token|auth|credential|key|password|signature|token)=)[^&#\s]+/gi,
|
|
62
|
-
"$1[redacted]",
|
|
63
|
-
)
|
|
64
|
-
.replace(/\bgh[pousr]_[A-Za-z0-9_]{20,}\b/g, "[redacted]");
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function requireGit(root, args, label, options) {
|
|
68
|
-
const result = runGit(root, args, options);
|
|
69
|
-
if (!result.ok) {
|
|
70
|
-
const safeResult = {
|
|
71
|
-
...result,
|
|
72
|
-
stderr: sanitizeGitMessage(result.stderr),
|
|
73
|
-
};
|
|
74
|
-
const error = new Error(`${label}: ${safeResult.stderr || result.error?.message || "Git failed"}`);
|
|
75
|
-
error.git = safeResult;
|
|
76
|
-
throw error;
|
|
77
|
-
}
|
|
78
|
-
return result.stdout;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function parseTreeEntries(source, label) {
|
|
82
|
-
const entries = [];
|
|
83
|
-
for (const record of source.split("\0")) {
|
|
84
|
-
if (!record) continue;
|
|
85
|
-
const match = /^([0-7]{6}) (blob|tree|commit) ([0-9a-f]{40}|[0-9a-f]{64})\t([\s\S]+)$/
|
|
86
|
-
.exec(record);
|
|
87
|
-
if (!match) throw new Error(`Cannot parse ${label} entry`);
|
|
88
|
-
entries.push({
|
|
89
|
-
mode: match[1],
|
|
90
|
-
type: match[2],
|
|
91
|
-
object: match[3],
|
|
92
|
-
name: match[4],
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
return entries;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function parseLongTreeEntries(source, label) {
|
|
99
|
-
const entries = [];
|
|
100
|
-
for (const record of source.split("\0")) {
|
|
101
|
-
if (!record) continue;
|
|
102
|
-
const match = /^([0-7]{6}) (blob|tree|commit) ([0-9a-f]{40}|[0-9a-f]{64}) +(-|(?:0|[1-9]\d*))\t([\s\S]+)$/
|
|
103
|
-
.exec(record);
|
|
104
|
-
if (!match) throw new Error(`Cannot parse ${label} entry`);
|
|
105
|
-
entries.push({
|
|
106
|
-
mode: match[1],
|
|
107
|
-
type: match[2],
|
|
108
|
-
object: match[3],
|
|
109
|
-
size: match[4] === "-" ? null : Number(match[4]),
|
|
110
|
-
name: match[5],
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
return entries;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function inspectTreeEntry(root, tree, path) {
|
|
117
|
-
const output = requireGit(
|
|
118
|
-
root,
|
|
119
|
-
["ls-tree", "-z", tree, "--", path],
|
|
120
|
-
`Cannot inspect snapshot path ${path}`,
|
|
121
|
-
);
|
|
122
|
-
const entries = parseTreeEntries(output, `snapshot path ${path}`);
|
|
123
|
-
if (entries.length === 0) return null;
|
|
124
|
-
if (entries.length !== 1 || entries[0].name !== path) {
|
|
125
|
-
throw new Error(`Snapshot path ${path} did not resolve exactly once`);
|
|
126
|
-
}
|
|
127
|
-
return entries[0];
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export function listTreeEntries(root, tree, path) {
|
|
131
|
-
const output = requireGit(
|
|
132
|
-
root,
|
|
133
|
-
["ls-tree", "-z", tree],
|
|
134
|
-
`Cannot inspect snapshot directory ${path}`,
|
|
135
|
-
);
|
|
136
|
-
return parseTreeEntries(output, `snapshot directory ${path}`);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export function inspectTree(root, tree, path) {
|
|
140
|
-
return inspectTreeLineage(root, tree, path)
|
|
141
|
-
.filter((entry) =>
|
|
142
|
-
entry.name === path || entry.name.startsWith(`${path}/`)
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export function inspectTreeLineage(root, tree, path) {
|
|
147
|
-
const output = requireGit(
|
|
148
|
-
root,
|
|
149
|
-
["ls-tree", "-r", "-t", "-l", "-z", tree, "--", path],
|
|
150
|
-
`Cannot inspect snapshot tree ${path}`,
|
|
151
|
-
);
|
|
152
|
-
return parseLongTreeEntries(output, `snapshot tree ${path}`);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export function gitObjectSize(root, object) {
|
|
156
|
-
const output = requireGit(
|
|
157
|
-
root,
|
|
158
|
-
["cat-file", "-s", object],
|
|
159
|
-
`Cannot inspect Git object ${object}`,
|
|
160
|
-
);
|
|
161
|
-
if (!/^(?:0|[1-9]\d*)$/.test(output)) {
|
|
162
|
-
throw new Error(`Cannot parse size for Git object ${object}`);
|
|
163
|
-
}
|
|
164
|
-
return Number(output);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export function readGitBlob(root, object) {
|
|
168
|
-
const result = executeGit(
|
|
169
|
-
root,
|
|
170
|
-
["cat-file", "blob", object],
|
|
171
|
-
{ encoding: null },
|
|
172
|
-
);
|
|
173
|
-
if (result.status !== 0) {
|
|
174
|
-
const stderr = Buffer.isBuffer(result.stderr)
|
|
175
|
-
? result.stderr.toString("utf8")
|
|
176
|
-
: result.stderr;
|
|
177
|
-
throw new Error(
|
|
178
|
-
`Cannot read Git blob ${object}: `
|
|
179
|
-
+ `${sanitizeGitMessage(stderr?.trim() || result.error?.message || "Git failed")}`,
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
return Buffer.from(result.stdout);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export function readGitBlobs(root, objects) {
|
|
186
|
-
const requested = [...new Set(objects)];
|
|
187
|
-
if (requested.length === 0) return new Map();
|
|
188
|
-
const result = executeGit(
|
|
189
|
-
root,
|
|
190
|
-
["cat-file", "--batch"],
|
|
191
|
-
{
|
|
192
|
-
encoding: null,
|
|
193
|
-
input: Buffer.from(`${requested.join("\n")}\n`, "utf8"),
|
|
194
|
-
},
|
|
195
|
-
);
|
|
196
|
-
if (result.status !== 0) {
|
|
197
|
-
const stderr = Buffer.isBuffer(result.stderr)
|
|
198
|
-
? result.stderr.toString("utf8")
|
|
199
|
-
: result.stderr;
|
|
200
|
-
throw new Error(
|
|
201
|
-
"Cannot read Git blobs: "
|
|
202
|
-
+ `${sanitizeGitMessage(stderr?.trim() || result.error?.message || "Git failed")}`,
|
|
203
|
-
);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
const source = Buffer.from(result.stdout);
|
|
207
|
-
const blobs = new Map();
|
|
208
|
-
let offset = 0;
|
|
209
|
-
for (const object of requested) {
|
|
210
|
-
const headerEnd = source.indexOf(0x0a, offset);
|
|
211
|
-
if (headerEnd < 0) throw new Error(`Missing Git blob header for ${object}`);
|
|
212
|
-
const header = source.subarray(offset, headerEnd).toString("utf8");
|
|
213
|
-
const match = /^([0-9a-f]{40}|[0-9a-f]{64}) blob (0|[1-9]\d*)$/
|
|
214
|
-
.exec(header);
|
|
215
|
-
if (!match || match[1] !== object) {
|
|
216
|
-
throw new Error(`Cannot parse Git blob header for ${object}`);
|
|
217
|
-
}
|
|
218
|
-
const size = Number(match[2]);
|
|
219
|
-
const contentStart = headerEnd + 1;
|
|
220
|
-
const contentEnd = contentStart + size;
|
|
221
|
-
if (contentEnd >= source.length || source[contentEnd] !== 0x0a) {
|
|
222
|
-
throw new Error(`Incomplete Git blob content for ${object}`);
|
|
223
|
-
}
|
|
224
|
-
blobs.set(object, source.subarray(contentStart, contentEnd));
|
|
225
|
-
offset = contentEnd + 1;
|
|
226
|
-
}
|
|
227
|
-
if (offset !== source.length) {
|
|
228
|
-
throw new Error("Unexpected trailing Git blob batch output");
|
|
229
|
-
}
|
|
230
|
-
return blobs;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export function inspectTreePaths(root, tree, paths) {
|
|
234
|
-
if (paths.length === 0) return new Map();
|
|
235
|
-
const input = `${paths.map((path) => `${tree}:${path}`).join("\n")}\n`;
|
|
236
|
-
const output = requireGit(
|
|
237
|
-
root,
|
|
238
|
-
["cat-file", "--batch-check=%(objectname) %(objecttype)"],
|
|
239
|
-
"Cannot inspect snapshot world trees",
|
|
240
|
-
{ input },
|
|
241
|
-
);
|
|
242
|
-
const lines = output.split(/\r?\n/);
|
|
243
|
-
if (lines.length !== paths.length) {
|
|
244
|
-
throw new Error(
|
|
245
|
-
`Cannot inspect snapshot world trees: expected ${paths.length} result(s), received ${lines.length}`,
|
|
246
|
-
);
|
|
247
|
-
}
|
|
248
|
-
return new Map(paths.map((path, index) => {
|
|
249
|
-
const [object, type, ...unexpected] = lines[index].split(" ");
|
|
250
|
-
if (!object || !type || unexpected.length > 0) {
|
|
251
|
-
throw new Error(`Cannot parse snapshot world tree result for ${path}`);
|
|
252
|
-
}
|
|
253
|
-
return [path, { object: type === "missing" ? null : object, type }];
|
|
254
|
-
}));
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export function worktreeSnapshot(root, { paths } = {}) {
|
|
258
|
-
const directory = mkdtempSync(join(tmpdir(), "silvermoon-index-"));
|
|
259
|
-
const env = { ...process.env, GIT_INDEX_FILE: join(directory, "index") };
|
|
260
|
-
try {
|
|
261
|
-
const populated = runGit(root, ["read-tree", "HEAD"], { env });
|
|
262
|
-
if (!populated.ok) {
|
|
263
|
-
requireGit(root, ["read-tree", "--empty"], "Cannot initialize snapshot index", { env });
|
|
264
|
-
}
|
|
265
|
-
const add = ["add", "--all"];
|
|
266
|
-
if (paths !== undefined) add.push("--", ...paths);
|
|
267
|
-
requireGit(root, add, "Cannot snapshot worktree", { env });
|
|
268
|
-
return {
|
|
269
|
-
tree: requireGit(root, ["write-tree"], "Cannot write worktree snapshot", { env }),
|
|
270
|
-
};
|
|
271
|
-
} finally {
|
|
272
|
-
rmSync(directory, { recursive: true, force: true });
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
const CHANGE_KINDS = {
|
|
277
|
-
A: "added",
|
|
278
|
-
C: "copied",
|
|
279
|
-
D: "deleted",
|
|
280
|
-
M: "modified",
|
|
281
|
-
R: "renamed",
|
|
282
|
-
T: "type-changed",
|
|
283
|
-
U: "unmerged",
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
const CONFLICT_KINDS = {
|
|
287
|
-
AA: "both-added",
|
|
288
|
-
AU: "added-by-us",
|
|
289
|
-
DD: "both-deleted",
|
|
290
|
-
DU: "deleted-by-us",
|
|
291
|
-
UA: "added-by-them",
|
|
292
|
-
UD: "deleted-by-them",
|
|
293
|
-
UU: "both-modified",
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
function recordFields(record, count) {
|
|
297
|
-
const fields = [];
|
|
298
|
-
let offset = 2;
|
|
299
|
-
for (let index = 0; index < count; index += 1) {
|
|
300
|
-
const separator = record.indexOf(" ", offset);
|
|
301
|
-
if (separator < 0) throw new Error(`Malformed Git status record: ${record}`);
|
|
302
|
-
fields.push(record.slice(offset, separator));
|
|
303
|
-
offset = separator + 1;
|
|
304
|
-
}
|
|
305
|
-
return { fields, path: record.slice(offset) };
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
function changeEntry(path, code, originalPath) {
|
|
309
|
-
const entry = { path, kind: CHANGE_KINDS[code] ?? "unknown" };
|
|
310
|
-
if (originalPath !== undefined) entry.originalPath = originalPath;
|
|
311
|
-
return entry;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
function sortChanges(changes) {
|
|
315
|
-
changes.sort((left, right) => left.path < right.path ? -1 : left.path > right.path ? 1 : 0);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export function parseWorktreeChanges(source) {
|
|
319
|
-
const result = { staged: [], unstaged: [], untracked: [], conflicted: [] };
|
|
320
|
-
const records = source.split("\0");
|
|
321
|
-
for (let index = 0; index < records.length; index += 1) {
|
|
322
|
-
const record = records[index];
|
|
323
|
-
if (!record) continue;
|
|
324
|
-
if (record.startsWith("? ")) {
|
|
325
|
-
result.untracked.push({ path: record.slice(2) });
|
|
326
|
-
continue;
|
|
327
|
-
}
|
|
328
|
-
if (record.startsWith("! ") || record.startsWith("# ")) continue;
|
|
329
|
-
if (record.startsWith("u ")) {
|
|
330
|
-
const { fields, path } = recordFields(record, 9);
|
|
331
|
-
result.conflicted.push({ path, kind: CONFLICT_KINDS[fields[0]] ?? "unmerged" });
|
|
332
|
-
continue;
|
|
333
|
-
}
|
|
334
|
-
if (record.startsWith("1 ") || record.startsWith("2 ")) {
|
|
335
|
-
const renamed = record.startsWith("2 ");
|
|
336
|
-
const { fields, path } = recordFields(record, renamed ? 8 : 7);
|
|
337
|
-
const [indexCode, worktreeCode] = fields[0];
|
|
338
|
-
const originalPath = renamed ? records[++index] : undefined;
|
|
339
|
-
if (indexCode !== ".") {
|
|
340
|
-
result.staged.push(changeEntry(path, indexCode, originalPath));
|
|
341
|
-
}
|
|
342
|
-
if (worktreeCode !== ".") {
|
|
343
|
-
result.unstaged.push(changeEntry(path, worktreeCode));
|
|
344
|
-
}
|
|
345
|
-
continue;
|
|
346
|
-
}
|
|
347
|
-
throw new Error(`Unsupported Git status record: ${record}`);
|
|
348
|
-
}
|
|
349
|
-
for (const changes of Object.values(result)) sortChanges(changes);
|
|
350
|
-
return result;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
export function parseRepositoryStatus(source) {
|
|
354
|
-
let branch = null;
|
|
355
|
-
let head = null;
|
|
356
|
-
for (const record of source.split("\0")) {
|
|
357
|
-
if (record.startsWith("# branch.oid ")) {
|
|
358
|
-
const value = record.slice("# branch.oid ".length);
|
|
359
|
-
if (value !== "(initial)") {
|
|
360
|
-
if (!/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/.test(value)) {
|
|
361
|
-
throw new Error(`Unsupported Git HEAD object ID: ${value}`);
|
|
362
|
-
}
|
|
363
|
-
head = value;
|
|
364
|
-
}
|
|
365
|
-
} else if (record.startsWith("# branch.head ")) {
|
|
366
|
-
const value = record.slice("# branch.head ".length);
|
|
367
|
-
branch = value === "(detached)" ? null : value;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
return {
|
|
371
|
-
branch,
|
|
372
|
-
changes: parseWorktreeChanges(source),
|
|
373
|
-
head,
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
function escapeConfigKeyPattern(value) {
|
|
378
|
-
return value.replace(/[\\^$.*+?()[\]{}|]/g, "\\$&");
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
function parseConfigRecords(source) {
|
|
382
|
-
const values = new Map();
|
|
383
|
-
for (const record of source.split("\0")) {
|
|
384
|
-
if (!record) continue;
|
|
385
|
-
const separator = record.indexOf("\n");
|
|
386
|
-
if (separator < 1) throw new Error("Cannot parse Git configuration record");
|
|
387
|
-
values.set(record.slice(0, separator), record.slice(separator + 1));
|
|
388
|
-
}
|
|
389
|
-
return values;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
function inspectBranchConfiguration(root, branch) {
|
|
393
|
-
if (branch === null) {
|
|
394
|
-
return { branch: null, remote: null, repository: null, upstreamBranch: null };
|
|
395
|
-
}
|
|
396
|
-
const escapedBranch = escapeConfigKeyPattern(branch);
|
|
397
|
-
const result = runGit(root, [
|
|
398
|
-
"config",
|
|
399
|
-
"--null",
|
|
400
|
-
"--get-regexp",
|
|
401
|
-
`^(branch\\.${escapedBranch}\\.(remote|merge)|remote\\..*\\.url)$`,
|
|
402
|
-
]);
|
|
403
|
-
const values = result.ok ? parseConfigRecords(result.stdout) : new Map();
|
|
404
|
-
const remote = values.get(`branch.${branch}.remote`) ?? null;
|
|
405
|
-
const merge = values.get(`branch.${branch}.merge`) ?? null;
|
|
406
|
-
const upstreamBranch = merge?.startsWith("refs/heads/")
|
|
407
|
-
? merge.slice("refs/heads/".length)
|
|
408
|
-
: null;
|
|
409
|
-
const repository = remote === null || remote === "."
|
|
410
|
-
? null
|
|
411
|
-
: values.get(`remote.${remote}.url`) ?? null;
|
|
412
|
-
return { branch, remote, repository, upstreamBranch };
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
export function inspectRepositoryState(root) {
|
|
416
|
-
const source = requireGit(
|
|
417
|
-
root,
|
|
418
|
-
[
|
|
419
|
-
"status",
|
|
420
|
-
"--porcelain=v2",
|
|
421
|
-
"--branch",
|
|
422
|
-
"--untracked-files=all",
|
|
423
|
-
"-z",
|
|
424
|
-
],
|
|
425
|
-
"Cannot inspect repository state",
|
|
426
|
-
);
|
|
427
|
-
const status = parseRepositoryStatus(`${source}\0`);
|
|
428
|
-
return {
|
|
429
|
-
changes: status.changes,
|
|
430
|
-
head: status.head,
|
|
431
|
-
branch: inspectBranchConfiguration(root, status.branch),
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
export function inspectWorktreeChanges(root) {
|
|
436
|
-
const source = requireGit(
|
|
437
|
-
root,
|
|
438
|
-
["status", "--porcelain=v2", "--untracked-files=all", "-z"],
|
|
439
|
-
"Cannot inspect worktree changes",
|
|
440
|
-
);
|
|
441
|
-
return parseWorktreeChanges(`${source}\0`);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
export function resolveHead(root) {
|
|
445
|
-
const result = runGit(root, ["rev-parse", "--verify", "HEAD^{commit}"]);
|
|
446
|
-
return result.ok ? result.stdout : null;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
export function inspectCurrentBranch(root) {
|
|
450
|
-
const branch = runGit(root, ["symbolic-ref", "--quiet", "--short", "HEAD"]);
|
|
451
|
-
if (!branch.ok) {
|
|
452
|
-
return { branch: null, remote: null, repository: null, upstreamBranch: null };
|
|
453
|
-
}
|
|
454
|
-
const remote = runGit(root, ["config", "--get", `branch.${branch.stdout}.remote`]);
|
|
455
|
-
const merge = runGit(root, ["config", "--get", `branch.${branch.stdout}.merge`]);
|
|
456
|
-
if (!remote.ok || !merge.ok || !merge.stdout.startsWith("refs/heads/")) {
|
|
457
|
-
return {
|
|
458
|
-
branch: branch.stdout,
|
|
459
|
-
remote: remote.ok ? remote.stdout : null,
|
|
460
|
-
repository: null,
|
|
461
|
-
upstreamBranch: merge.ok && merge.stdout.startsWith("refs/heads/")
|
|
462
|
-
? merge.stdout.slice("refs/heads/".length)
|
|
463
|
-
: null,
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
const repository = remote.stdout === "."
|
|
467
|
-
? null
|
|
468
|
-
: runGit(root, ["config", "--get", `remote.${remote.stdout}.url`]);
|
|
469
|
-
return {
|
|
470
|
-
branch: branch.stdout,
|
|
471
|
-
remote: remote.stdout,
|
|
472
|
-
repository: repository?.ok ? repository.stdout : null,
|
|
473
|
-
upstreamBranch: merge.stdout.slice("refs/heads/".length),
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
export function compareCommits(root, local, remote) {
|
|
478
|
-
if (local === remote) return "aligned";
|
|
479
|
-
const localAncestor = runGit(
|
|
480
|
-
root,
|
|
481
|
-
["merge-base", "--is-ancestor", local, remote],
|
|
482
|
-
);
|
|
483
|
-
if (localAncestor.ok) {
|
|
484
|
-
return "behind";
|
|
485
|
-
}
|
|
486
|
-
if (localAncestor.status !== 1) {
|
|
487
|
-
throw new Error(
|
|
488
|
-
`Cannot compare local and primary commits: `
|
|
489
|
-
+ `${sanitizeGitMessage(localAncestor.stderr || localAncestor.error?.message)}`,
|
|
490
|
-
);
|
|
491
|
-
}
|
|
492
|
-
const remoteAncestor = runGit(
|
|
493
|
-
root,
|
|
494
|
-
["merge-base", "--is-ancestor", remote, local],
|
|
495
|
-
);
|
|
496
|
-
if (remoteAncestor.ok) {
|
|
497
|
-
return "ahead";
|
|
498
|
-
}
|
|
499
|
-
if (remoteAncestor.status !== 1) {
|
|
500
|
-
throw new Error(
|
|
501
|
-
`Cannot compare local and primary commits: `
|
|
502
|
-
+ `${sanitizeGitMessage(remoteAncestor.stderr || remoteAncestor.error?.message)}`,
|
|
503
|
-
);
|
|
504
|
-
}
|
|
505
|
-
const shallow = runGit(root, ["rev-parse", "--is-shallow-repository"]);
|
|
506
|
-
if (!shallow.ok) {
|
|
507
|
-
throw new Error(
|
|
508
|
-
`Cannot determine repository history depth: `
|
|
509
|
-
+ `${sanitizeGitMessage(shallow.stderr || shallow.error?.message)}`,
|
|
510
|
-
);
|
|
511
|
-
}
|
|
512
|
-
if (shallow.stdout === "true") return "unknown";
|
|
513
|
-
return "diverged";
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
export function resolveCommit(root, revision) {
|
|
517
|
-
return requireGit(
|
|
518
|
-
root,
|
|
519
|
-
["rev-parse", "--verify", "--end-of-options", `${revision}^{commit}`],
|
|
520
|
-
`Cannot resolve commit ${revision}`,
|
|
521
|
-
);
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
export function resolveSnapshot(root, revision) {
|
|
525
|
-
if (typeof revision !== "string" || /[\0\r\n]/.test(revision)) {
|
|
526
|
-
throw new Error(`Cannot resolve snapshot ${JSON.stringify(revision)}`);
|
|
527
|
-
}
|
|
528
|
-
const expressions = [`${revision}^{commit}`, `${revision}^{tree}`];
|
|
529
|
-
const result = runGit(
|
|
530
|
-
root,
|
|
531
|
-
["cat-file", "--batch-check=%(objectname) %(objecttype)"],
|
|
532
|
-
{ input: `${expressions.join("\n")}\n` },
|
|
533
|
-
);
|
|
534
|
-
if (!result.ok) {
|
|
535
|
-
throw new Error(
|
|
536
|
-
`Cannot resolve snapshot ${revision}: `
|
|
537
|
-
+ `${sanitizeGitMessage(result.stderr || result.error?.message || "Git failed")}`,
|
|
538
|
-
);
|
|
539
|
-
}
|
|
540
|
-
const lines = result.stdout.split(/\r?\n/);
|
|
541
|
-
if (lines.length !== 2) {
|
|
542
|
-
throw new Error(`Cannot resolve snapshot ${revision}: unexpected Git output`);
|
|
543
|
-
}
|
|
544
|
-
const parsed = lines.map((line, index) => {
|
|
545
|
-
const match = /^([0-9a-f]{40}|[0-9a-f]{64}) (commit|tree)$/.exec(line);
|
|
546
|
-
if (!match) {
|
|
547
|
-
throw new Error(`Cannot resolve ${expressions[index]}`);
|
|
548
|
-
}
|
|
549
|
-
return { object: match[1], type: match[2] };
|
|
550
|
-
});
|
|
551
|
-
if (parsed[0].type !== "commit" || parsed[1].type !== "tree") {
|
|
552
|
-
throw new Error(`Cannot resolve snapshot ${revision}: invalid object types`);
|
|
553
|
-
}
|
|
554
|
-
return { commit: parsed[0].object, tree: parsed[1].object };
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
export function indexSnapshot(root) {
|
|
558
|
-
return {
|
|
559
|
-
tree: requireGit(root, ["write-tree"], "Cannot snapshot the index"),
|
|
560
|
-
};
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
export function fetchRepositoryBranch(root, repository, branch) {
|
|
564
|
-
const remoteRef = `refs/heads/${branch}`;
|
|
565
|
-
const fetched = requireGit(
|
|
566
|
-
root,
|
|
567
|
-
[
|
|
568
|
-
"fetch",
|
|
569
|
-
"--porcelain",
|
|
570
|
-
"--no-tags",
|
|
571
|
-
repository,
|
|
572
|
-
remoteRef,
|
|
573
|
-
],
|
|
574
|
-
`Cannot fetch ${branch}`,
|
|
575
|
-
);
|
|
576
|
-
const updates = fetched
|
|
577
|
-
.split(/\r?\n/)
|
|
578
|
-
.map((line) => line.trim().split(/\s+/))
|
|
579
|
-
.filter((fields) =>
|
|
580
|
-
fields.length === 4
|
|
581
|
-
&& fields[3] === "FETCH_HEAD"
|
|
582
|
-
&& /^(?:[0-9a-f]{40}|[0-9a-f]{64})$/.test(fields[2])
|
|
583
|
-
);
|
|
584
|
-
if (updates.length !== 1) {
|
|
585
|
-
throw new Error(`Cannot determine fetched commit for branch ${branch}`);
|
|
586
|
-
}
|
|
587
|
-
const primary = updates[0][2];
|
|
588
|
-
return primary;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
export function fetchPrimary(root, config) {
|
|
592
|
-
return fetchRepositoryBranch(
|
|
593
|
-
root,
|
|
594
|
-
config.primaryRepository,
|
|
595
|
-
config.primaryBranch,
|
|
596
|
-
);
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
export async function withTemporaryWorktree(root, commit, callback) {
|
|
600
|
-
const tree = requireGit(root, ["rev-parse", `${commit}^{tree}`], `Cannot resolve tree for ${commit}`);
|
|
601
|
-
return withTemporaryTree(root, tree, callback);
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
export async function withTemporaryTree(root, tree, callback) {
|
|
605
|
-
return traceAsync("snapshot.materialize", {}, async () => {
|
|
606
|
-
const temporaryRoot = await mkdtemp(join(tmpdir(), "silvermoon-tree-"));
|
|
607
|
-
const directory = join(temporaryRoot, "snapshot");
|
|
608
|
-
const env = { ...process.env, GIT_INDEX_FILE: join(temporaryRoot, "index") };
|
|
609
|
-
try {
|
|
610
|
-
await mkdir(directory);
|
|
611
|
-
requireGit(root, ["read-tree", tree], "Cannot populate isolated index", { env });
|
|
612
|
-
const prefix = `${directory.replaceAll("\\", "/")}/`;
|
|
613
|
-
requireGit(
|
|
614
|
-
root,
|
|
615
|
-
["checkout-index", "--all", "--force", `--prefix=${prefix}`],
|
|
616
|
-
"Cannot populate isolated tree snapshot",
|
|
617
|
-
{ env },
|
|
618
|
-
);
|
|
619
|
-
return await callback(directory, tree);
|
|
620
|
-
} finally {
|
|
621
|
-
await rm(temporaryRoot, { recursive: true, force: true });
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
}
|