silvermoon 0.3.0-rc.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/README.zh-CN.md +26 -24
- package/dist/bin/build-npm-tarball.d.ts +28 -0
- package/dist/bin/build-npm-tarball.d.ts.map +1 -0
- package/dist/bin/build-npm-tarball.js +200 -0
- package/dist/bin/build-npm-tarball.js.map +1 -0
- package/dist/bin/check-pack.d.ts +2 -0
- package/dist/bin/check-pack.d.ts.map +1 -0
- package/dist/bin/check-pack.js +421 -0
- package/dist/bin/check-pack.js.map +1 -0
- package/dist/bin/ci-package-risk.d.ts +19 -0
- package/dist/bin/ci-package-risk.d.ts.map +1 -0
- package/dist/bin/ci-package-risk.js +78 -0
- package/dist/bin/ci-package-risk.js.map +1 -0
- package/dist/bin/generate-npm-readme.d.ts +7 -0
- package/dist/bin/generate-npm-readme.d.ts.map +1 -0
- package/dist/bin/generate-npm-readme.js +232 -0
- package/dist/bin/generate-npm-readme.js.map +1 -0
- package/dist/bin/migrate-v1-to-v2.d.ts +3 -0
- package/dist/bin/migrate-v1-to-v2.d.ts.map +1 -0
- package/dist/bin/migrate-v1-to-v2.js +25 -0
- package/dist/bin/migrate-v1-to-v2.js.map +1 -0
- package/dist/bin/prepare-npm-release.d.ts +46 -0
- package/dist/bin/prepare-npm-release.d.ts.map +1 -0
- package/dist/bin/prepare-npm-release.js +210 -0
- package/dist/bin/prepare-npm-release.js.map +1 -0
- package/dist/bin/pure-check.d.ts +15 -0
- package/dist/bin/pure-check.d.ts.map +1 -0
- package/dist/bin/pure-check.js +448 -0
- package/dist/bin/pure-check.js.map +1 -0
- package/dist/bin/run-checks.d.ts +34 -0
- package/dist/bin/run-checks.d.ts.map +1 -0
- package/dist/bin/run-checks.js +149 -0
- package/dist/bin/run-checks.js.map +1 -0
- package/dist/bin/silvermoon.d.ts +76 -0
- package/dist/bin/silvermoon.d.ts.map +1 -0
- package/dist/bin/silvermoon.js +401 -0
- package/dist/bin/silvermoon.js.map +1 -0
- package/dist/bin/sync-skills.d.ts +2 -0
- package/dist/bin/sync-skills.d.ts.map +1 -0
- package/dist/bin/sync-skills.js +78 -0
- package/dist/bin/sync-skills.js.map +1 -0
- package/dist/bin/verify-npm-release.d.ts +55 -0
- package/dist/bin/verify-npm-release.d.ts.map +1 -0
- package/dist/bin/verify-npm-release.js +418 -0
- package/dist/bin/verify-npm-release.js.map +1 -0
- package/dist/src/business/agent-copilot.d.ts +82 -0
- package/dist/src/business/agent-copilot.d.ts.map +1 -0
- package/dist/src/business/agent-copilot.js +330 -0
- package/dist/src/business/agent-copilot.js.map +1 -0
- package/dist/src/business/agent-project-registry.d.ts +22 -0
- package/dist/src/business/agent-project-registry.d.ts.map +1 -0
- package/dist/src/business/agent-project-registry.js +239 -0
- package/dist/src/business/agent-project-registry.js.map +1 -0
- package/dist/src/business/agent-project-runtime.d.ts +37 -0
- package/dist/src/business/agent-project-runtime.d.ts.map +1 -0
- package/dist/src/business/agent-project-runtime.js +198 -0
- package/dist/src/business/agent-project-runtime.js.map +1 -0
- package/dist/src/business/append-event-history.d.ts +21 -0
- package/dist/src/business/append-event-history.d.ts.map +1 -0
- package/dist/src/business/append-event-history.js +138 -0
- package/dist/src/business/append-event-history.js.map +1 -0
- package/dist/src/business/append-event.d.ts +140 -0
- package/dist/src/business/append-event.d.ts.map +1 -0
- package/dist/src/business/append-event.js +292 -0
- package/dist/src/business/append-event.js.map +1 -0
- package/dist/src/business/check-repository.d.ts +109 -0
- package/dist/src/business/check-repository.d.ts.map +1 -0
- package/dist/src/business/check-repository.js +379 -0
- package/dist/src/business/check-repository.js.map +1 -0
- package/dist/src/business/create-idea.d.ts +100 -0
- package/dist/src/business/create-idea.d.ts.map +1 -0
- package/dist/src/business/create-idea.js +224 -0
- package/dist/src/business/create-idea.js.map +1 -0
- package/dist/src/business/event-command.d.ts +111 -0
- package/dist/src/business/event-command.d.ts.map +1 -0
- package/dist/src/business/event-command.js +239 -0
- package/dist/src/business/event-command.js.map +1 -0
- package/dist/src/business/index.d.ts +7 -0
- package/dist/src/business/index.d.ts.map +1 -0
- package/dist/src/business/index.js +7 -0
- package/dist/src/business/index.js.map +1 -0
- package/dist/src/business/list-ideas.d.ts +97 -0
- package/dist/src/business/list-ideas.d.ts.map +1 -0
- package/dist/src/business/list-ideas.js +177 -0
- package/dist/src/business/list-ideas.js.map +1 -0
- package/dist/src/business/migrate-v1-to-v2.d.ts +23 -0
- package/dist/src/business/migrate-v1-to-v2.d.ts.map +1 -0
- package/dist/src/business/migrate-v1-to-v2.js +152 -0
- package/dist/src/business/migrate-v1-to-v2.js.map +1 -0
- package/dist/src/business/replay-events.d.ts +20 -0
- package/dist/src/business/replay-events.d.ts.map +1 -0
- package/dist/src/business/replay-events.js +27 -0
- package/dist/src/business/replay-events.js.map +1 -0
- package/dist/src/business/schema-migration.d.ts +19 -0
- package/dist/src/business/schema-migration.d.ts.map +1 -0
- package/dist/src/business/schema-migration.js +23 -0
- package/dist/src/business/schema-migration.js.map +1 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.d.ts +3 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.js +9 -0
- package/dist/src/business/shared/assess-idea-creation-readiness.js.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness-with.d.ts +18 -0
- package/dist/src/business/shared/assess-repository-readiness-with.d.ts.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness-with.js +125 -0
- package/dist/src/business/shared/assess-repository-readiness-with.js.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness.d.ts +3 -0
- package/dist/src/business/shared/assess-repository-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/assess-repository-readiness.js +6 -0
- package/dist/src/business/shared/assess-repository-readiness.js.map +1 -0
- package/dist/src/business/shared/business-types.d.ts +151 -0
- package/dist/src/business/shared/business-types.d.ts.map +1 -0
- package/dist/src/business/shared/business-types.js +83 -0
- package/dist/src/business/shared/business-types.js.map +1 -0
- package/dist/src/business/shared/evaluate-local-readiness.d.ts +9 -0
- package/dist/src/business/shared/evaluate-local-readiness.d.ts.map +1 -0
- package/dist/src/business/shared/evaluate-local-readiness.js +97 -0
- package/dist/src/business/shared/evaluate-local-readiness.js.map +1 -0
- package/dist/src/business/shared/evaluate-primary-relation.d.ts +12 -0
- package/dist/src/business/shared/evaluate-primary-relation.d.ts.map +1 -0
- package/dist/src/business/shared/evaluate-primary-relation.js +40 -0
- package/dist/src/business/shared/evaluate-primary-relation.js.map +1 -0
- package/dist/src/business/shared/idea-layout.d.ts +55 -0
- package/dist/src/business/shared/idea-layout.d.ts.map +1 -0
- package/dist/src/business/shared/idea-layout.js +434 -0
- package/dist/src/business/shared/idea-layout.js.map +1 -0
- package/dist/src/business/shared/index.d.ts +18 -0
- package/dist/src/business/shared/index.d.ts.map +1 -0
- package/dist/src/business/shared/index.js +17 -0
- package/dist/src/business/shared/index.js.map +1 -0
- package/dist/src/business/shared/inspect-candidate.d.ts +5 -0
- package/dist/src/business/shared/inspect-candidate.d.ts.map +1 -0
- package/dist/src/business/shared/inspect-candidate.js +57 -0
- package/dist/src/business/shared/inspect-candidate.js.map +1 -0
- package/dist/src/business/shared/metadata-failure-observation.d.ts +21 -0
- package/dist/src/business/shared/metadata-failure-observation.d.ts.map +1 -0
- package/dist/src/business/shared/metadata-failure-observation.js +30 -0
- package/dist/src/business/shared/metadata-failure-observation.js.map +1 -0
- package/dist/src/business/shared/observe-device.d.ts +150 -0
- package/dist/src/business/shared/observe-device.d.ts.map +1 -0
- package/dist/src/business/shared/observe-device.js +71 -0
- package/dist/src/business/shared/observe-device.js.map +1 -0
- package/dist/src/business/shared/observe-idea.d.ts +14 -0
- package/dist/src/business/shared/observe-idea.d.ts.map +1 -0
- package/dist/src/business/shared/observe-idea.js +14 -0
- package/dist/src/business/shared/observe-idea.js.map +1 -0
- package/dist/src/business/shared/observe-project.d.ts +39 -0
- package/dist/src/business/shared/observe-project.d.ts.map +1 -0
- package/dist/src/business/shared/observe-project.js +11 -0
- package/dist/src/business/shared/observe-project.js.map +1 -0
- package/dist/src/business/shared/observe-snapshot.d.ts +35 -0
- package/dist/src/business/shared/observe-snapshot.d.ts.map +1 -0
- package/dist/src/business/shared/observe-snapshot.js +518 -0
- package/dist/src/business/shared/observe-snapshot.js.map +1 -0
- package/dist/src/business/shared/read-idea-inventory-item.d.ts +13 -0
- package/dist/src/business/shared/read-idea-inventory-item.d.ts.map +1 -0
- package/dist/src/business/shared/read-idea-inventory-item.js +18 -0
- package/dist/src/business/shared/read-idea-inventory-item.js.map +1 -0
- package/dist/src/business/shared/resolve-idea.d.ts +7 -0
- package/dist/src/business/shared/resolve-idea.d.ts.map +1 -0
- package/dist/src/business/shared/resolve-idea.js +14 -0
- package/dist/src/business/shared/resolve-idea.js.map +1 -0
- package/dist/src/business/shared/with-observation-language.d.ts +3 -0
- package/dist/src/business/shared/with-observation-language.d.ts.map +1 -0
- package/dist/src/business/shared/with-observation-language.js +20 -0
- package/dist/src/business/shared/with-observation-language.js.map +1 -0
- package/dist/src/business/whats-next.d.ts +94 -0
- package/dist/src/business/whats-next.d.ts.map +1 -0
- package/dist/src/business/whats-next.js +208 -0
- package/dist/src/business/whats-next.js.map +1 -0
- package/dist/src/foundation/command-message/index.d.ts +3 -0
- package/dist/src/foundation/command-message/index.d.ts.map +1 -0
- package/dist/src/foundation/command-message/index.js +3 -0
- package/dist/src/foundation/command-message/index.js.map +1 -0
- package/dist/src/foundation/command-message/observation.d.ts +223 -0
- package/dist/src/foundation/command-message/observation.d.ts.map +1 -0
- package/dist/src/foundation/command-message/observation.js +364 -0
- package/dist/src/foundation/command-message/observation.js.map +1 -0
- package/dist/src/foundation/command-message/runtime.d.ts +214 -0
- package/dist/src/foundation/command-message/runtime.d.ts.map +1 -0
- package/dist/src/foundation/command-message/runtime.js +215 -0
- package/dist/src/foundation/command-message/runtime.js.map +1 -0
- package/dist/src/foundation/coordinates/index.d.ts +3 -0
- package/dist/src/foundation/coordinates/index.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/index.js +3 -0
- package/dist/src/foundation/coordinates/index.js.map +1 -0
- package/dist/src/foundation/coordinates/layout.d.ts +27 -0
- package/dist/src/foundation/coordinates/layout.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/layout.js +41 -0
- package/dist/src/foundation/coordinates/layout.js.map +1 -0
- package/dist/src/foundation/coordinates/repository.d.ts +16 -0
- package/dist/src/foundation/coordinates/repository.d.ts.map +1 -0
- package/dist/src/foundation/coordinates/repository.js +75 -0
- package/dist/src/foundation/coordinates/repository.js.map +1 -0
- package/dist/src/foundation/device-config/index.d.ts +2 -0
- package/dist/src/foundation/device-config/index.d.ts.map +1 -0
- package/dist/src/foundation/device-config/index.js +2 -0
- package/dist/src/foundation/device-config/index.js.map +1 -0
- package/dist/src/foundation/device-config/user-config.d.ts +19 -0
- package/dist/src/foundation/device-config/user-config.d.ts.map +1 -0
- package/dist/src/foundation/device-config/user-config.js +94 -0
- package/dist/src/foundation/device-config/user-config.js.map +1 -0
- package/dist/src/foundation/event-codec/grammar.d.ts +172 -0
- package/dist/src/foundation/event-codec/grammar.d.ts.map +1 -0
- package/dist/src/foundation/event-codec/grammar.js +383 -0
- package/dist/src/foundation/event-codec/grammar.js.map +1 -0
- package/dist/src/foundation/event-codec/index.d.ts +3 -0
- package/dist/src/foundation/event-codec/index.d.ts.map +1 -0
- package/dist/src/foundation/event-codec/index.js +2 -0
- package/dist/src/foundation/event-codec/index.js.map +1 -0
- package/dist/src/foundation/event-cursor/cursor.d.ts +40 -0
- package/dist/src/foundation/event-cursor/cursor.d.ts.map +1 -0
- package/dist/src/foundation/event-cursor/cursor.js +42 -0
- package/dist/src/foundation/event-cursor/cursor.js.map +1 -0
- package/dist/src/foundation/event-cursor/index.d.ts +2 -0
- package/dist/src/foundation/event-cursor/index.d.ts.map +1 -0
- package/dist/src/foundation/event-cursor/index.js +2 -0
- package/dist/src/foundation/event-cursor/index.js.map +1 -0
- package/dist/src/foundation/event-history/digest.d.ts +2 -0
- package/dist/src/foundation/event-history/digest.d.ts.map +1 -0
- package/dist/src/foundation/event-history/digest.js +2 -0
- package/dist/src/foundation/event-history/digest.js.map +1 -0
- package/dist/src/foundation/event-history/history.d.ts +86 -0
- package/dist/src/foundation/event-history/history.d.ts.map +1 -0
- package/dist/src/foundation/event-history/history.js +481 -0
- package/dist/src/foundation/event-history/history.js.map +1 -0
- package/dist/src/foundation/event-history/index.d.ts +3 -0
- package/dist/src/foundation/event-history/index.d.ts.map +1 -0
- package/dist/src/foundation/event-history/index.js +3 -0
- package/dist/src/foundation/event-history/index.js.map +1 -0
- package/dist/src/foundation/event-reducer/index.d.ts +2 -0
- package/dist/src/foundation/event-reducer/index.d.ts.map +1 -0
- package/dist/src/foundation/event-reducer/index.js +2 -0
- package/dist/src/foundation/event-reducer/index.js.map +1 -0
- package/dist/src/foundation/event-reducer/policy.d.ts +69 -0
- package/dist/src/foundation/event-reducer/policy.d.ts.map +1 -0
- package/dist/src/foundation/event-reducer/policy.js +138 -0
- package/dist/src/foundation/event-reducer/policy.js.map +1 -0
- package/dist/src/foundation/event-store/digest.d.ts +11 -0
- package/dist/src/foundation/event-store/digest.d.ts.map +1 -0
- package/dist/src/foundation/event-store/digest.js +38 -0
- package/dist/src/foundation/event-store/digest.js.map +1 -0
- package/dist/src/foundation/event-store/index.d.ts +3 -0
- package/dist/src/foundation/event-store/index.d.ts.map +1 -0
- package/dist/src/foundation/event-store/index.js +3 -0
- package/dist/src/foundation/event-store/index.js.map +1 -0
- package/dist/src/foundation/event-store/storage.d.ts +50 -0
- package/dist/src/foundation/event-store/storage.d.ts.map +1 -0
- package/dist/src/foundation/event-store/storage.js +109 -0
- package/dist/src/foundation/event-store/storage.js.map +1 -0
- package/dist/src/foundation/git/derived-cache.d.ts +5 -0
- package/dist/src/foundation/git/derived-cache.d.ts.map +1 -0
- package/dist/src/foundation/git/derived-cache.js +117 -0
- package/dist/src/foundation/git/derived-cache.js.map +1 -0
- package/dist/src/foundation/git/git.d.ts +100 -0
- package/dist/src/foundation/git/git.d.ts.map +1 -0
- package/dist/src/foundation/git/git.js +677 -0
- package/dist/src/foundation/git/git.js.map +1 -0
- package/dist/src/foundation/git/index.d.ts +3 -0
- package/dist/src/foundation/git/index.d.ts.map +1 -0
- package/dist/src/foundation/git/index.js +3 -0
- package/dist/src/foundation/git/index.js.map +1 -0
- package/dist/src/foundation/guidance/guidance.d.ts +36 -0
- package/dist/src/foundation/guidance/guidance.d.ts.map +1 -0
- package/dist/src/foundation/guidance/guidance.js +198 -0
- package/dist/src/foundation/guidance/guidance.js.map +1 -0
- package/dist/src/foundation/guidance/index.d.ts +3 -0
- package/dist/src/foundation/guidance/index.d.ts.map +1 -0
- package/dist/src/foundation/guidance/index.js +3 -0
- package/dist/src/foundation/guidance/index.js.map +1 -0
- package/dist/src/foundation/guidance/rules.d.ts +36 -0
- package/dist/src/foundation/guidance/rules.d.ts.map +1 -0
- package/dist/src/foundation/guidance/rules.js +65 -0
- package/dist/src/foundation/guidance/rules.js.map +1 -0
- package/dist/src/foundation/idea-model/index.d.ts +3 -0
- package/dist/src/foundation/idea-model/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/index.js +3 -0
- package/dist/src/foundation/idea-model/index.js.map +1 -0
- package/dist/src/foundation/idea-model/status.d.ts +28 -0
- package/dist/src/foundation/idea-model/status.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/status.js +192 -0
- package/dist/src/foundation/idea-model/status.js.map +1 -0
- package/dist/src/foundation/idea-model/ulid.d.ts +6 -0
- package/dist/src/foundation/idea-model/ulid.d.ts.map +1 -0
- package/dist/src/foundation/idea-model/ulid.js +16 -0
- package/dist/src/foundation/idea-model/ulid.js.map +1 -0
- package/dist/src/foundation/idea-query/index.d.ts +3 -0
- package/dist/src/foundation/idea-query/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/index.js +3 -0
- package/dist/src/foundation/idea-query/index.js.map +1 -0
- package/dist/src/foundation/idea-query/query.d.ts +13 -0
- package/dist/src/foundation/idea-query/query.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/query.js +17 -0
- package/dist/src/foundation/idea-query/query.js.map +1 -0
- package/dist/src/foundation/idea-query/rules.d.ts +55 -0
- package/dist/src/foundation/idea-query/rules.d.ts.map +1 -0
- package/dist/src/foundation/idea-query/rules.js +223 -0
- package/dist/src/foundation/idea-query/rules.js.map +1 -0
- package/dist/src/foundation/idea-template/index.d.ts +2 -0
- package/dist/src/foundation/idea-template/index.d.ts.map +1 -0
- package/dist/src/foundation/idea-template/index.js +2 -0
- package/dist/src/foundation/idea-template/index.js.map +1 -0
- package/dist/src/foundation/idea-template/templates.d.ts +21 -0
- package/dist/src/foundation/idea-template/templates.d.ts.map +1 -0
- package/dist/src/foundation/idea-template/templates.js +265 -0
- package/dist/src/foundation/idea-template/templates.js.map +1 -0
- package/dist/src/foundation/installation/device-readiness.d.ts +94 -0
- package/dist/src/foundation/installation/device-readiness.d.ts.map +1 -0
- package/dist/src/foundation/installation/device-readiness.js +274 -0
- package/dist/src/foundation/installation/device-readiness.js.map +1 -0
- package/dist/src/foundation/installation/index.d.ts +4 -0
- package/dist/src/foundation/installation/index.d.ts.map +1 -0
- package/dist/src/foundation/installation/index.js +4 -0
- package/dist/src/foundation/installation/index.js.map +1 -0
- package/dist/src/foundation/installation/installation.d.ts +25 -0
- package/dist/src/foundation/installation/installation.d.ts.map +1 -0
- package/dist/src/foundation/installation/installation.js +125 -0
- package/dist/src/foundation/installation/installation.js.map +1 -0
- package/dist/src/foundation/installation/rules.d.ts +12 -0
- package/dist/src/foundation/installation/rules.d.ts.map +1 -0
- package/dist/src/foundation/installation/rules.js +63 -0
- package/dist/src/foundation/installation/rules.js.map +1 -0
- package/dist/src/foundation/language/index.d.ts +3 -0
- package/dist/src/foundation/language/index.d.ts.map +1 -0
- package/dist/src/foundation/language/index.js +2 -0
- package/dist/src/foundation/language/index.js.map +1 -0
- package/dist/src/foundation/language/language.d.ts +36 -0
- package/dist/src/foundation/language/language.d.ts.map +1 -0
- package/dist/src/foundation/language/language.js +94 -0
- package/dist/src/foundation/language/language.js.map +1 -0
- package/dist/src/foundation/owned-write/index.d.ts +2 -0
- package/dist/src/foundation/owned-write/index.d.ts.map +1 -0
- package/dist/src/foundation/owned-write/index.js +2 -0
- package/dist/src/foundation/owned-write/index.js.map +1 -0
- package/dist/src/foundation/owned-write/writer.d.ts +86 -0
- package/dist/src/foundation/owned-write/writer.d.ts.map +1 -0
- package/dist/src/foundation/owned-write/writer.js +244 -0
- package/dist/src/foundation/owned-write/writer.js.map +1 -0
- package/dist/src/foundation/package-resource/index.d.ts +2 -0
- package/dist/src/foundation/package-resource/index.d.ts.map +1 -0
- package/dist/src/foundation/package-resource/index.js +2 -0
- package/dist/src/foundation/package-resource/index.js.map +1 -0
- package/dist/src/foundation/package-resource/npm-tarball.d.ts +15 -0
- package/dist/src/foundation/package-resource/npm-tarball.d.ts.map +1 -0
- package/dist/src/foundation/package-resource/npm-tarball.js +124 -0
- package/dist/src/foundation/package-resource/npm-tarball.js.map +1 -0
- package/dist/src/foundation/process/index.d.ts +3 -0
- package/dist/src/foundation/process/index.d.ts.map +1 -0
- package/dist/src/foundation/process/index.js +3 -0
- package/dist/src/foundation/process/index.js.map +1 -0
- package/dist/src/foundation/process/npm-command.d.ts +9 -0
- package/dist/src/foundation/process/npm-command.d.ts.map +1 -0
- package/dist/src/foundation/process/npm-command.js +11 -0
- package/dist/src/foundation/process/npm-command.js.map +1 -0
- package/dist/src/foundation/process/subprocess.d.ts +8 -0
- package/dist/src/foundation/process/subprocess.d.ts.map +1 -0
- package/dist/src/foundation/process/subprocess.js +12 -0
- package/dist/src/foundation/process/subprocess.js.map +1 -0
- package/dist/src/foundation/project-config/config.d.ts +30 -0
- package/dist/src/foundation/project-config/config.d.ts.map +1 -0
- package/dist/src/foundation/project-config/config.js +112 -0
- package/dist/src/foundation/project-config/config.js.map +1 -0
- package/dist/src/foundation/project-config/index.d.ts +3 -0
- package/dist/src/foundation/project-config/index.d.ts.map +1 -0
- package/dist/src/foundation/project-config/index.js +3 -0
- package/dist/src/foundation/project-config/index.js.map +1 -0
- package/dist/src/foundation/project-config/rules.d.ts +32 -0
- package/dist/src/foundation/project-config/rules.d.ts.map +1 -0
- package/dist/src/foundation/project-config/rules.js +119 -0
- package/dist/src/foundation/project-config/rules.js.map +1 -0
- package/dist/src/foundation/projection-cache/index.d.ts +2 -0
- package/dist/src/foundation/projection-cache/index.d.ts.map +1 -0
- package/dist/src/foundation/projection-cache/index.js +2 -0
- package/dist/src/foundation/projection-cache/index.js.map +1 -0
- package/dist/src/foundation/projection-cache/projection.d.ts +36 -0
- package/dist/src/foundation/projection-cache/projection.d.ts.map +1 -0
- package/dist/src/foundation/projection-cache/projection.js +105 -0
- package/dist/src/foundation/projection-cache/projection.js.map +1 -0
- package/dist/src/foundation/renderer/index.d.ts +3 -0
- package/dist/src/foundation/renderer/index.d.ts.map +1 -0
- package/dist/src/foundation/renderer/index.js +3 -0
- package/dist/src/foundation/renderer/index.js.map +1 -0
- package/dist/src/foundation/renderer/markdown.d.ts +7 -0
- package/dist/src/foundation/renderer/markdown.d.ts.map +1 -0
- package/dist/src/foundation/renderer/markdown.js +355 -0
- package/dist/src/foundation/renderer/markdown.js.map +1 -0
- package/dist/src/foundation/renderer/render.d.ts +6 -0
- package/dist/src/foundation/renderer/render.d.ts.map +1 -0
- package/dist/src/foundation/renderer/render.js +23 -0
- package/dist/src/foundation/renderer/render.js.map +1 -0
- package/dist/src/foundation/report/dialogue.d.ts +37 -0
- package/dist/src/foundation/report/dialogue.d.ts.map +1 -0
- package/dist/src/foundation/report/dialogue.js +59 -0
- package/dist/src/foundation/report/dialogue.js.map +1 -0
- package/dist/src/foundation/report/index.d.ts +6 -0
- package/dist/src/foundation/report/index.d.ts.map +1 -0
- package/dist/src/foundation/report/index.js +6 -0
- package/dist/src/foundation/report/index.js.map +1 -0
- package/dist/src/foundation/report/instructions.d.ts +77 -0
- package/dist/src/foundation/report/instructions.d.ts.map +1 -0
- package/dist/src/foundation/report/instructions.js +374 -0
- package/dist/src/foundation/report/instructions.js.map +1 -0
- package/dist/src/foundation/report/observation.d.ts +31 -0
- package/dist/src/foundation/report/observation.d.ts.map +1 -0
- package/dist/src/foundation/report/observation.js +83 -0
- package/dist/src/foundation/report/observation.js.map +1 -0
- package/dist/src/foundation/report/projection.d.ts +7 -0
- package/dist/src/foundation/report/projection.d.ts.map +1 -0
- package/dist/src/foundation/report/projection.js +199 -0
- package/dist/src/foundation/report/projection.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/contract.d.ts +148 -0
- package/dist/src/foundation/report/templates/whats-next/contract.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/contract.js +34 -0
- package/dist/src/foundation/report/templates/whats-next/contract.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/content-language.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/detached-head.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/event-history-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/head-missing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.d.ts +12 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-metadata-unavailable.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/idea-not-found.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.js +63 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-deploying.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-implementing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-inactive.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/lifecycle-preparing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.js +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/navigation-ready.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/phase-guidance-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/preparation-seed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ahead.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-ancestry-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-behind.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-diverged.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-fetch-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-history-incomplete.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/primary-upstream-mismatch.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/project-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/repository-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation-instruction.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.js +39 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/review-presentation.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-changes-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflict-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-conflicts.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.js +12 -0
- package/dist/src/foundation/report/templates/whats-next/en-US/worktree-summary.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/index.d.ts +5 -0
- package/dist/src/foundation/report/templates/whats-next/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/index.js +4 -0
- package/dist/src/foundation/report/templates/whats-next/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/registry.d.ts +4 -0
- package/dist/src/foundation/report/templates/whats-next/registry.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/registry.js +14 -0
- package/dist/src/foundation/report/templates/whats-next/registry.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.js +176 -0
- package/dist/src/foundation/report/templates/whats-next/renderers.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/content-language.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/detached-head.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/event-history-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/head-missing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.d.ts +12 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-metadata-unavailable.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/idea-not-found.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.d.ts +63 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.js +63 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/index.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-deploying.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-implementing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-inactive.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.js +13 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/lifecycle-preparing.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.js +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/navigation-ready.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/phase-guidance-invalid.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/preparation-seed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ahead.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-ancestry-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-behind.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-diverged.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-fetch-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.js +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-history-incomplete.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.js +11 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/primary-upstream-mismatch.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/project-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/repository-recheck.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation-instruction.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.js +39 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/review-presentation.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-changes-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.d.ts +8 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.js +10 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflict-step.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-conflicts.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.js +5 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-inspection-failed.js.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.d.ts +9 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.d.ts.map +1 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.js +12 -0
- package/dist/src/foundation/report/templates/whats-next/zh-CN/worktree-summary.js.map +1 -0
- package/dist/src/foundation/report/types.d.ts +321 -0
- package/dist/src/foundation/report/types.d.ts.map +1 -0
- package/dist/src/foundation/report/types.js +2 -0
- package/dist/src/foundation/report/types.js.map +1 -0
- package/dist/src/foundation/scaffold-plan/index.d.ts +2 -0
- package/dist/src/foundation/scaffold-plan/index.d.ts.map +1 -0
- package/dist/src/foundation/scaffold-plan/index.js +2 -0
- package/dist/src/foundation/scaffold-plan/index.js.map +1 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.d.ts +11 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.d.ts.map +1 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.js +36 -0
- package/dist/src/foundation/scaffold-plan/scaffold-plan.js.map +1 -0
- package/dist/src/foundation/schema/index.d.ts +3 -0
- package/dist/src/foundation/schema/index.d.ts.map +1 -0
- package/dist/src/foundation/schema/index.js +3 -0
- package/dist/src/foundation/schema/index.js.map +1 -0
- package/dist/src/foundation/schema/schema.d.ts +3 -0
- package/dist/src/foundation/schema/schema.d.ts.map +1 -0
- package/dist/src/foundation/schema/schema.js +10 -0
- package/dist/src/foundation/schema/schema.js.map +1 -0
- package/dist/src/foundation/schema/yaml.d.ts +10 -0
- package/dist/src/foundation/schema/yaml.d.ts.map +1 -0
- package/dist/src/foundation/schema/yaml.js +60 -0
- package/dist/src/foundation/schema/yaml.js.map +1 -0
- package/dist/src/foundation/schema-capability/index.d.ts +6 -0
- package/dist/src/foundation/schema-capability/index.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/index.js +4 -0
- package/dist/src/foundation/schema-capability/index.js.map +1 -0
- package/dist/src/foundation/schema-capability/inspection.d.ts +38 -0
- package/dist/src/foundation/schema-capability/inspection.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/inspection.js +249 -0
- package/dist/src/foundation/schema-capability/inspection.js.map +1 -0
- package/dist/src/foundation/schema-capability/manifest.d.ts +6 -0
- package/dist/src/foundation/schema-capability/manifest.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/manifest.js +17 -0
- package/dist/src/foundation/schema-capability/manifest.js.map +1 -0
- package/dist/src/foundation/schema-capability/rules.d.ts +38 -0
- package/dist/src/foundation/schema-capability/rules.d.ts.map +1 -0
- package/dist/src/foundation/schema-capability/rules.js +297 -0
- package/dist/src/foundation/schema-capability/rules.js.map +1 -0
- package/dist/src/foundation/skill-registration/adoption.d.ts +40 -0
- package/dist/src/foundation/skill-registration/adoption.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/adoption.js +63 -0
- package/dist/src/foundation/skill-registration/adoption.js.map +1 -0
- package/dist/src/foundation/skill-registration/index.d.ts +2 -0
- package/dist/src/foundation/skill-registration/index.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/index.js +2 -0
- package/dist/src/foundation/skill-registration/index.js.map +1 -0
- package/dist/src/foundation/skill-registration/rules.d.ts +2 -0
- package/dist/src/foundation/skill-registration/rules.d.ts.map +1 -0
- package/dist/src/foundation/skill-registration/rules.js +2 -0
- package/dist/src/foundation/skill-registration/rules.js.map +1 -0
- package/dist/src/foundation/snapshot/git-snapshot.d.ts +40 -0
- package/dist/src/foundation/snapshot/git-snapshot.d.ts.map +1 -0
- package/dist/src/foundation/snapshot/git-snapshot.js +168 -0
- package/dist/src/foundation/snapshot/git-snapshot.js.map +1 -0
- package/dist/src/foundation/snapshot/index.d.ts +2 -0
- package/dist/src/foundation/snapshot/index.d.ts.map +1 -0
- package/dist/src/foundation/snapshot/index.js +2 -0
- package/dist/src/foundation/snapshot/index.js.map +1 -0
- package/dist/src/foundation/state-transaction/index.d.ts +2 -0
- package/dist/src/foundation/state-transaction/index.d.ts.map +1 -0
- package/dist/src/foundation/state-transaction/index.js +2 -0
- package/dist/src/foundation/state-transaction/index.js.map +1 -0
- package/dist/src/foundation/state-transaction/state-transaction.d.ts +48 -0
- package/dist/src/foundation/state-transaction/state-transaction.d.ts.map +1 -0
- package/dist/src/foundation/state-transaction/state-transaction.js +364 -0
- package/dist/src/foundation/state-transaction/state-transaction.js.map +1 -0
- package/dist/src/foundation/terminal/index.d.ts +2 -0
- package/dist/src/foundation/terminal/index.d.ts.map +1 -0
- package/dist/src/foundation/terminal/index.js +2 -0
- package/dist/src/foundation/terminal/index.js.map +1 -0
- package/dist/src/foundation/terminal/terminal.d.ts +17 -0
- package/dist/src/foundation/terminal/terminal.d.ts.map +1 -0
- package/dist/src/foundation/terminal/terminal.js +12 -0
- package/dist/src/foundation/terminal/terminal.js.map +1 -0
- package/dist/src/foundation/trace/index.d.ts +2 -0
- package/dist/src/foundation/trace/index.d.ts.map +1 -0
- package/dist/src/foundation/trace/index.js +2 -0
- package/dist/src/foundation/trace/index.js.map +1 -0
- package/dist/src/foundation/trace/trace.d.ts +12 -0
- package/dist/src/foundation/trace/trace.d.ts.map +1 -0
- package/dist/src/foundation/trace/trace.js +299 -0
- package/dist/src/foundation/trace/trace.js.map +1 -0
- package/dist/src/foundation/tui/index.d.ts +3 -0
- package/dist/src/foundation/tui/index.d.ts.map +1 -0
- package/dist/src/foundation/tui/index.js +3 -0
- package/dist/src/foundation/tui/index.js.map +1 -0
- package/dist/src/foundation/tui/table.d.ts +10 -0
- package/dist/src/foundation/tui/table.d.ts.map +1 -0
- package/dist/src/foundation/tui/table.js +91 -0
- package/dist/src/foundation/tui/table.js.map +1 -0
- package/dist/src/foundation/tui/tui.d.ts +33 -0
- package/dist/src/foundation/tui/tui.d.ts.map +1 -0
- package/dist/src/foundation/tui/tui.js +157 -0
- package/dist/src/foundation/tui/tui.js.map +1 -0
- package/dist/src/index.d.ts +17 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +16 -0
- package/dist/src/index.js.map +1 -0
- package/docs/core-concepts.md +48 -7
- package/docs/getting-started.md +60 -45
- package/docs/maintaining.md +132 -9
- package/docs/npm-package-releases.md +38 -9
- package/docs/operations.md +109 -35
- package/docs/reference.md +304 -35
- package/docs/repository-tasks.md +61 -20
- package/package.json +53 -27
- package/schema/capabilities.json +95 -0
- package/schema/capability-manifest.schema.json +139 -0
- package/schema/v1/command-report.schema.json +4 -2
- package/schema/v1/domain-message.schema.json +2 -1
- package/schema/v2/config.schema.json +14 -0
- package/schema/v2/idea-event.schema.json +121 -0
- package/skills/silvermoon/SKILL.md +204 -112
- package/skills/silvermoon/references/adoption.md +55 -24
- package/skills/silvermoon/references/events.md +296 -0
- package/bin/silvermoon.js +0 -10
- package/src/adoption.js +0 -559
- package/src/cli.js +0 -377
- package/src/config.js +0 -253
- package/src/create-idea.js +0 -497
- package/src/dialogue.js +0 -69
- package/src/domain.js +0 -592
- package/src/git-snapshot.js +0 -212
- package/src/git.js +0 -624
- package/src/guidance.js +0 -281
- package/src/idea-layout.js +0 -411
- package/src/idea-metadata.js +0 -48
- package/src/idea-query.js +0 -230
- package/src/idea-templates.js +0 -242
- package/src/ideas.js +0 -142
- package/src/index.js +0 -386
- package/src/language.js +0 -78
- package/src/layout.js +0 -38
- package/src/list-ideas.js +0 -196
- package/src/observation.js +0 -370
- package/src/repository.js +0 -82
- package/src/response.js +0 -492
- package/src/subprocess.js +0 -27
- package/src/trace.js +0 -292
- package/src/tui-table.js +0 -71
- package/src/tui.js +0 -205
- package/src/user-config.js +0 -135
- package/src/whatsnext.js +0 -726
- package/src/yaml.js +0 -66
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { parseStrictYaml, stringifyCanonicalYaml } from "../schema/index.js";
|
|
2
|
+
import { isCanonicalLanguageTag } from "../language/index.js";
|
|
3
|
+
export const IDEA_STATES = [
|
|
4
|
+
"preparing",
|
|
5
|
+
"implementing",
|
|
6
|
+
"deploying",
|
|
7
|
+
"completed",
|
|
8
|
+
"abandoned",
|
|
9
|
+
];
|
|
10
|
+
export const ACTIVE_IDEA_STATES = IDEA_STATES.slice(0, 3);
|
|
11
|
+
const ULID = /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/;
|
|
12
|
+
const OBJECT_ID = /^(?:[0-9a-f]{40}|[0-9a-f]{64})$/;
|
|
13
|
+
const CONTROL_CHARACTER = /[\u0000-\u001f\u007f-\u009f]/u;
|
|
14
|
+
const STATUS_KEYS = new Set([
|
|
15
|
+
"version",
|
|
16
|
+
"id",
|
|
17
|
+
"alias",
|
|
18
|
+
"language",
|
|
19
|
+
"abandoned",
|
|
20
|
+
"approvedRevision",
|
|
21
|
+
"implementationAcceptedRevision",
|
|
22
|
+
"deploymentAcceptedRevision",
|
|
23
|
+
]);
|
|
24
|
+
const REVISION_KEYS = [
|
|
25
|
+
"approvedRevision",
|
|
26
|
+
"implementationAcceptedRevision",
|
|
27
|
+
"deploymentAcceptedRevision",
|
|
28
|
+
];
|
|
29
|
+
/** @pure */
|
|
30
|
+
function ideaStatusError(message) {
|
|
31
|
+
return new Error(`Invalid idea status: ${message}`);
|
|
32
|
+
}
|
|
33
|
+
/** @pure */
|
|
34
|
+
function isMapping(value) {
|
|
35
|
+
return value !== null && !Array.isArray(value) && typeof value === "object";
|
|
36
|
+
}
|
|
37
|
+
/** @pure */
|
|
38
|
+
function isValidAlias(value) {
|
|
39
|
+
return (typeof value === "string" &&
|
|
40
|
+
value.length > 0 &&
|
|
41
|
+
value.trim() === value &&
|
|
42
|
+
[...value].length <= 120 &&
|
|
43
|
+
!CONTROL_CHARACTER.test(value));
|
|
44
|
+
}
|
|
45
|
+
/** @pure */
|
|
46
|
+
export function isValidUlid(value) {
|
|
47
|
+
return typeof value === "string" && ULID.test(value);
|
|
48
|
+
}
|
|
49
|
+
/** @pure */
|
|
50
|
+
export function validateIdeaStatus(value, { objectIdLength } = {}) {
|
|
51
|
+
if (!isMapping(value))
|
|
52
|
+
throw ideaStatusError("document must be a mapping");
|
|
53
|
+
for (const key of Object.keys(value)) {
|
|
54
|
+
if (!STATUS_KEYS.has(key))
|
|
55
|
+
throw ideaStatusError(`unknown field: ${key}`);
|
|
56
|
+
}
|
|
57
|
+
for (const key of ["version", "id"]) {
|
|
58
|
+
if (!Object.hasOwn(value, key))
|
|
59
|
+
throw ideaStatusError(`missing ${key}`);
|
|
60
|
+
}
|
|
61
|
+
if (value.version !== 1)
|
|
62
|
+
throw ideaStatusError("version must be 1");
|
|
63
|
+
if (!isValidUlid(value.id))
|
|
64
|
+
throw ideaStatusError("id must be a canonical ULID");
|
|
65
|
+
if (Object.hasOwn(value, "alias") && !isValidAlias(value.alias)) {
|
|
66
|
+
throw ideaStatusError("alias must be 1 to 120 trimmed characters without controls");
|
|
67
|
+
}
|
|
68
|
+
if (Object.hasOwn(value, "language") &&
|
|
69
|
+
(typeof value.language !== "string"
|
|
70
|
+
|| !isCanonicalLanguageTag(value.language))) {
|
|
71
|
+
throw ideaStatusError("language must be a canonical BCP 47 language tag");
|
|
72
|
+
}
|
|
73
|
+
if (Object.hasOwn(value, "abandoned") && value.abandoned !== true) {
|
|
74
|
+
throw ideaStatusError("abandoned must be omitted or true");
|
|
75
|
+
}
|
|
76
|
+
if (objectIdLength !== undefined &&
|
|
77
|
+
(!Number.isInteger(objectIdLength) || objectIdLength <= 0)) {
|
|
78
|
+
throw ideaStatusError("objectIdLength must be a positive integer");
|
|
79
|
+
}
|
|
80
|
+
for (const key of REVISION_KEYS) {
|
|
81
|
+
if (!Object.hasOwn(value, key))
|
|
82
|
+
continue;
|
|
83
|
+
if (typeof value[key] !== "string" ||
|
|
84
|
+
!OBJECT_ID.test(value[key]) ||
|
|
85
|
+
(objectIdLength !== undefined && value[key].length !== objectIdLength)) {
|
|
86
|
+
throw ideaStatusError(`${key} must be a lowercase hexadecimal Git object ID`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
version: 1,
|
|
91
|
+
id: value.id,
|
|
92
|
+
...(typeof value.alias === "string" ? { alias: value.alias } : {}),
|
|
93
|
+
...(typeof value.language === "string" ? { language: value.language } : {}),
|
|
94
|
+
...(value.abandoned === true ? { abandoned: true } : {}),
|
|
95
|
+
...(typeof value.approvedRevision === "string"
|
|
96
|
+
? { approvedRevision: value.approvedRevision }
|
|
97
|
+
: {}),
|
|
98
|
+
...(typeof value.implementationAcceptedRevision === "string"
|
|
99
|
+
? {
|
|
100
|
+
implementationAcceptedRevision: value.implementationAcceptedRevision,
|
|
101
|
+
}
|
|
102
|
+
: {}),
|
|
103
|
+
...(typeof value.deploymentAcceptedRevision === "string"
|
|
104
|
+
? { deploymentAcceptedRevision: value.deploymentAcceptedRevision }
|
|
105
|
+
: {}),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
/** @pure */
|
|
109
|
+
export function serializeIdeaStatus(value, options) {
|
|
110
|
+
const status = validateIdeaStatus(value, options);
|
|
111
|
+
const canonical = {
|
|
112
|
+
version: 1,
|
|
113
|
+
id: status.id,
|
|
114
|
+
...(status.alias === undefined ? {} : { alias: status.alias }),
|
|
115
|
+
...(status.language === undefined ? {} : { language: status.language }),
|
|
116
|
+
...(status.abandoned === true ? { abandoned: true } : {}),
|
|
117
|
+
...(status.approvedRevision === undefined
|
|
118
|
+
? {}
|
|
119
|
+
: { approvedRevision: status.approvedRevision }),
|
|
120
|
+
...(status.implementationAcceptedRevision === undefined
|
|
121
|
+
? {}
|
|
122
|
+
: {
|
|
123
|
+
implementationAcceptedRevision: status.implementationAcceptedRevision,
|
|
124
|
+
}),
|
|
125
|
+
...(status.deploymentAcceptedRevision === undefined
|
|
126
|
+
? {}
|
|
127
|
+
: { deploymentAcceptedRevision: status.deploymentAcceptedRevision }),
|
|
128
|
+
};
|
|
129
|
+
return stringifyCanonicalYaml(canonical);
|
|
130
|
+
}
|
|
131
|
+
/** @pure */
|
|
132
|
+
export function parseIdeaStatus(source, options) {
|
|
133
|
+
const normalizedSource = source.replaceAll("\r\n", "\n");
|
|
134
|
+
let value;
|
|
135
|
+
try {
|
|
136
|
+
value = parseStrictYaml(normalizedSource);
|
|
137
|
+
}
|
|
138
|
+
catch (caught) {
|
|
139
|
+
throw ideaStatusError(caught instanceof Error ? caught.message : String(caught));
|
|
140
|
+
}
|
|
141
|
+
const status = validateIdeaStatus(value, options);
|
|
142
|
+
if (serializeIdeaStatus(status, options) !== normalizedSource) {
|
|
143
|
+
throw ideaStatusError("status is not canonical");
|
|
144
|
+
}
|
|
145
|
+
return status;
|
|
146
|
+
}
|
|
147
|
+
/** @pure */
|
|
148
|
+
function validateIdeaRevisions(value) {
|
|
149
|
+
if (!isMapping(value)) {
|
|
150
|
+
throw ideaStatusError("revisions must be a mapping");
|
|
151
|
+
}
|
|
152
|
+
const idealRevision = value.idealRevision;
|
|
153
|
+
const implementationRevision = value.implementationRevision;
|
|
154
|
+
const deploymentRevision = value.deploymentRevision;
|
|
155
|
+
for (const [key, revision] of [
|
|
156
|
+
["idealRevision", idealRevision],
|
|
157
|
+
["implementationRevision", implementationRevision],
|
|
158
|
+
["deploymentRevision", deploymentRevision],
|
|
159
|
+
]) {
|
|
160
|
+
if (typeof revision !== "string" || !OBJECT_ID.test(revision)) {
|
|
161
|
+
throw ideaStatusError(`${key} must be a lowercase hexadecimal Git object ID`);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
if (typeof idealRevision !== "string"
|
|
165
|
+
|| typeof implementationRevision !== "string"
|
|
166
|
+
|| typeof deploymentRevision !== "string") {
|
|
167
|
+
throw ideaStatusError("revisions must contain Git object IDs");
|
|
168
|
+
}
|
|
169
|
+
return {
|
|
170
|
+
idealRevision,
|
|
171
|
+
implementationRevision,
|
|
172
|
+
deploymentRevision,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
/** @pure */
|
|
176
|
+
export function deriveIdeaState(revisions, status) {
|
|
177
|
+
const validatedRevisions = validateIdeaRevisions(revisions);
|
|
178
|
+
const validatedStatus = validateIdeaStatus(status);
|
|
179
|
+
if (validatedStatus.abandoned)
|
|
180
|
+
return "abandoned";
|
|
181
|
+
if (validatedStatus.approvedRevision !== validatedRevisions.idealRevision) {
|
|
182
|
+
return "preparing";
|
|
183
|
+
}
|
|
184
|
+
if (validatedStatus.implementationAcceptedRevision
|
|
185
|
+
!== validatedRevisions.implementationRevision)
|
|
186
|
+
return "implementing";
|
|
187
|
+
if (validatedStatus.deploymentAcceptedRevision
|
|
188
|
+
!== validatedRevisions.deploymentRevision)
|
|
189
|
+
return "deploying";
|
|
190
|
+
return "completed";
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../src/foundation/idea-model/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,CAAC,MAAM,WAAW,GAAgB;IACtC,WAAW;IACX,cAAc;IACd,WAAW;IACX,WAAW;IACX,WAAW;CACZ,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAgB,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AA8BvE,MAAM,IAAI,GAAG,+BAA+B,CAAC;AAC7C,MAAM,SAAS,GAAG,iCAAiC,CAAC;AACpD,MAAM,iBAAiB,GAAG,+BAA+B,CAAC;AAC1D,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC1B,SAAS;IACT,IAAI;IACJ,OAAO;IACP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"0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
2
|
+
/** @pure */
|
|
3
|
+
function encode(value, length) {
|
|
4
|
+
let encoded = "";
|
|
5
|
+
for (let index = 0; index < length; index += 1) {
|
|
6
|
+
encoded = ULID_ALPHABET[Number(value & 31n)] + encoded;
|
|
7
|
+
value >>= 5n;
|
|
8
|
+
}
|
|
9
|
+
return encoded;
|
|
10
|
+
}
|
|
11
|
+
/** @pure */
|
|
12
|
+
export function encodeUlid({ now, random, }) {
|
|
13
|
+
const randomHex = Buffer.from(random).toString("hex");
|
|
14
|
+
return encode(BigInt(now), 10) + encode(BigInt(`0x${randomHex}`), 16);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ulid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ulid.js","sourceRoot":"","sources":["../../../../src/foundation/idea-model/ulid.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,kCAAkC,CAAC;AAEzD,YAAY;AACZ,SAAS,MAAM,CAAC,KAAa,EAAE,MAAc;IAC3C,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QAC/C,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC;QACvD,KAAK,KAAK,EAAE,CAAC;IACf,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,YAAY;AACZ,MAAM,UAAU,UAAU,CAAC,EACzB,GAAG,EACH,MAAM,GAIP;IACC,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/foundation/idea-query/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/foundation/idea-query/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { normalizeIdeaQueryCore, queryIdeaInventoryCore } from "./rules.ts";
|
|
2
|
+
export declare function normalizeIdeaQuery(input?: Parameters<typeof normalizeIdeaQueryCore>[0]): import("./rules.ts").NormalizedIdeaQuery;
|
|
3
|
+
export declare function queryIdeaInventory(items: Parameters<typeof queryIdeaInventoryCore>[0], input: Parameters<typeof normalizeIdeaQueryCore>[0]): {
|
|
4
|
+
query: import("./rules.ts").NormalizedIdeaQuery;
|
|
5
|
+
summary: {
|
|
6
|
+
matched: number;
|
|
7
|
+
returned: number;
|
|
8
|
+
truncated: boolean;
|
|
9
|
+
counts: Record<string, number>;
|
|
10
|
+
};
|
|
11
|
+
ideas: import("./rules.ts").IdeaInventoryItem[];
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/foundation/idea-query/query.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAY5E,wBAAgB,kBAAkB,CAChC,KAAK,GAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAM,4CAGzD;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC,EACnD,KAAK,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC;;;;;;;;;EAGpD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IDEA_STATES, ACTIVE_IDEA_STATES } from "../idea-model/index.js";
|
|
2
|
+
import { normalizeIdeaQueryCore, queryIdeaInventoryCore } from "./rules.js";
|
|
3
|
+
const QUERY_STATES = new Set([...IDEA_STATES, "active"]);
|
|
4
|
+
function queryStateFacts() {
|
|
5
|
+
return {
|
|
6
|
+
ideaStates: [...IDEA_STATES],
|
|
7
|
+
activeStates: [...ACTIVE_IDEA_STATES],
|
|
8
|
+
queryStates: new Set(QUERY_STATES),
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export function normalizeIdeaQuery(input = {}) {
|
|
12
|
+
return normalizeIdeaQueryCore(input, queryStateFacts());
|
|
13
|
+
}
|
|
14
|
+
export function queryIdeaInventory(items, input) {
|
|
15
|
+
return queryIdeaInventoryCore(items, input ?? {}, queryStateFacts());
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/foundation/idea-query/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE5E,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEzD,SAAS,eAAe;IACtB,OAAO;QACL,UAAU,EAAE,CAAC,GAAG,WAAW,CAAC;QAC5B,YAAY,EAAE,CAAC,GAAG,kBAAkB,CAAC;QACrC,WAAW,EAAE,IAAI,GAAG,CAAC,YAAY,CAAC;KACnC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,QAAsD,EAAE;IAExD,OAAO,sBAAsB,CAAC,KAAK,EAAE,eAAe,EAAE,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,KAAmD,EACnD,KAAmD;IAEnD,OAAO,sBAAsB,CAAC,KAAK,EAAE,KAAK,IAAI,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
interface QueryFacts {
|
|
2
|
+
ideaStates: readonly string[];
|
|
3
|
+
activeStates: readonly string[];
|
|
4
|
+
queryStates: ReadonlySet<string>;
|
|
5
|
+
}
|
|
6
|
+
export interface IdeaQueryInput {
|
|
7
|
+
all?: unknown;
|
|
8
|
+
createdBefore?: unknown;
|
|
9
|
+
createdSince?: unknown;
|
|
10
|
+
limit?: unknown;
|
|
11
|
+
query?: unknown;
|
|
12
|
+
sort?: unknown;
|
|
13
|
+
states?: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface NormalizedIdeaQuery {
|
|
16
|
+
states: string[];
|
|
17
|
+
query: string | null;
|
|
18
|
+
createdSince: string | null;
|
|
19
|
+
createdBefore: string | null;
|
|
20
|
+
sort: "newest" | "oldest";
|
|
21
|
+
limit: number | null;
|
|
22
|
+
}
|
|
23
|
+
export interface IdeaInventoryItem {
|
|
24
|
+
id: string;
|
|
25
|
+
state: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
alias?: string;
|
|
28
|
+
title?: string;
|
|
29
|
+
}
|
|
30
|
+
interface IdeaInventorySource {
|
|
31
|
+
id: string;
|
|
32
|
+
state: string;
|
|
33
|
+
alias?: string;
|
|
34
|
+
}
|
|
35
|
+
/** @pure */
|
|
36
|
+
export declare function normalizeIdeaQueryCore(input: IdeaQueryInput | undefined, facts: QueryFacts): NormalizedIdeaQuery;
|
|
37
|
+
/** @pure */
|
|
38
|
+
export declare function ideaCreatedAt(id: unknown): string;
|
|
39
|
+
/** @pure */
|
|
40
|
+
export declare function extractIdeaTitle(source: string): string | undefined;
|
|
41
|
+
/** @pure */
|
|
42
|
+
export declare function ideaInventoryItem(idea: IdeaInventorySource, title?: string): IdeaInventoryItem;
|
|
43
|
+
/** @pure */
|
|
44
|
+
export declare function queryIdeaInventoryCore(items: IdeaInventoryItem[], input: IdeaQueryInput, facts: QueryFacts): {
|
|
45
|
+
query: NormalizedIdeaQuery;
|
|
46
|
+
summary: {
|
|
47
|
+
matched: number;
|
|
48
|
+
returned: number;
|
|
49
|
+
truncated: boolean;
|
|
50
|
+
counts: Record<string, number>;
|
|
51
|
+
};
|
|
52
|
+
ideas: IdeaInventoryItem[];
|
|
53
|
+
};
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/foundation/idea-query/rules.ts"],"names":[],"mappings":"AASA,UAAU,UAAU;IAClB,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAA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ValidUlid } from "../idea-model/index.js";
|
|
3
|
+
const SORTS = new Set(["newest", "oldest"]);
|
|
4
|
+
const RFC3339 = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(Z|[+-](\d{2}):(\d{2}))$/;
|
|
5
|
+
const CROCKFORD_BASE32 = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
6
|
+
class UsageError extends Error {
|
|
7
|
+
exitCode = 2;
|
|
8
|
+
}
|
|
9
|
+
/** @pure */
|
|
10
|
+
function usageError(message) {
|
|
11
|
+
return new UsageError(message);
|
|
12
|
+
}
|
|
13
|
+
/** @pure */
|
|
14
|
+
function normalizeStates(states, all, { ideaStates: IDEA_STATES, activeStates: ACTIVE_IDEA_STATES, queryStates: QUERY_STATES, }) {
|
|
15
|
+
if (all !== undefined && typeof all !== "boolean") {
|
|
16
|
+
throw usageError("all must be a boolean");
|
|
17
|
+
}
|
|
18
|
+
if (states !== undefined && all === true) {
|
|
19
|
+
throw usageError("state and all are mutually exclusive");
|
|
20
|
+
}
|
|
21
|
+
if (states === undefined) {
|
|
22
|
+
return all === true ? [...IDEA_STATES] : [...ACTIVE_IDEA_STATES];
|
|
23
|
+
}
|
|
24
|
+
const requested = Array.isArray(states) ? states : [states];
|
|
25
|
+
if (requested.length === 0) {
|
|
26
|
+
throw usageError("state must not be empty");
|
|
27
|
+
}
|
|
28
|
+
const selected = new Set();
|
|
29
|
+
for (const state of requested) {
|
|
30
|
+
if (typeof state !== "string" || !QUERY_STATES.has(state)) {
|
|
31
|
+
throw usageError(`state must be one of active, ${IDEA_STATES.join(", ")}; received ${JSON.stringify(state)}`);
|
|
32
|
+
}
|
|
33
|
+
for (const expanded of state === "active" ? ACTIVE_IDEA_STATES : [state]) {
|
|
34
|
+
selected.add(expanded);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return IDEA_STATES.filter((state) => selected.has(state));
|
|
38
|
+
}
|
|
39
|
+
/** @pure */
|
|
40
|
+
function normalizeQueryText(query) {
|
|
41
|
+
if (query === undefined || query === null)
|
|
42
|
+
return null;
|
|
43
|
+
if (typeof query !== "string" || query.trim().length === 0) {
|
|
44
|
+
throw usageError("query must be a non-empty string");
|
|
45
|
+
}
|
|
46
|
+
return query.trim();
|
|
47
|
+
}
|
|
48
|
+
/** @pure */
|
|
49
|
+
function normalizeTimestamp(value, name) {
|
|
50
|
+
if (value === undefined || value === null)
|
|
51
|
+
return null;
|
|
52
|
+
if (typeof value !== "string") {
|
|
53
|
+
throw usageError(`${name} must be an RFC 3339 timestamp`);
|
|
54
|
+
}
|
|
55
|
+
const match = RFC3339.exec(value);
|
|
56
|
+
if (!match)
|
|
57
|
+
throw usageError(`${name} must be an RFC 3339 timestamp with a timezone`);
|
|
58
|
+
const year = Number(match[1]);
|
|
59
|
+
const month = Number(match[2]);
|
|
60
|
+
const day = Number(match[3]);
|
|
61
|
+
const hour = Number(match[4]);
|
|
62
|
+
const minute = Number(match[5]);
|
|
63
|
+
const second = Number(match[6]);
|
|
64
|
+
const zone = match[8];
|
|
65
|
+
const offsetHour = Number(match[9]);
|
|
66
|
+
const offsetMinute = Number(match[10]);
|
|
67
|
+
if (month < 1
|
|
68
|
+
|| month > 12
|
|
69
|
+
|| day < 1
|
|
70
|
+
|| day > 31
|
|
71
|
+
|| hour > 23
|
|
72
|
+
|| minute > 59
|
|
73
|
+
|| second > 59
|
|
74
|
+
|| (zone !== "Z"
|
|
75
|
+
&& (Number(offsetHour) > 23 || Number(offsetMinute) > 59))) {
|
|
76
|
+
throw usageError(`${name} must be a valid RFC 3339 timestamp`);
|
|
77
|
+
}
|
|
78
|
+
const calendar = new Date(0);
|
|
79
|
+
calendar.setUTCFullYear(year, month - 1, day);
|
|
80
|
+
calendar.setUTCHours(0, 0, 0, 0);
|
|
81
|
+
if (calendar.getUTCFullYear() !== year
|
|
82
|
+
|| calendar.getUTCMonth() !== month - 1
|
|
83
|
+
|| calendar.getUTCDate() !== day) {
|
|
84
|
+
throw usageError(`${name} must be a valid RFC 3339 timestamp`);
|
|
85
|
+
}
|
|
86
|
+
const timestamp = Date.parse(value);
|
|
87
|
+
if (!Number.isFinite(timestamp)) {
|
|
88
|
+
throw usageError(`${name} must be a valid RFC 3339 timestamp`);
|
|
89
|
+
}
|
|
90
|
+
return new Date(timestamp).toISOString();
|
|
91
|
+
}
|
|
92
|
+
/** @pure */
|
|
93
|
+
function normalizeSort(sort) {
|
|
94
|
+
const value = sort ?? "newest";
|
|
95
|
+
if (typeof value !== "string" || !SORTS.has(value)) {
|
|
96
|
+
throw usageError("sort must be newest or oldest");
|
|
97
|
+
}
|
|
98
|
+
return value === "newest" ? "newest" : "oldest";
|
|
99
|
+
}
|
|
100
|
+
/** @pure */
|
|
101
|
+
function normalizeLimit(limit) {
|
|
102
|
+
if (limit === undefined || limit === null)
|
|
103
|
+
return null;
|
|
104
|
+
const value = typeof limit === "number"
|
|
105
|
+
? limit
|
|
106
|
+
: typeof limit === "string" && /^[1-9]\d*$/.test(limit)
|
|
107
|
+
? Number(limit)
|
|
108
|
+
: Number.NaN;
|
|
109
|
+
if (!Number.isSafeInteger(value) || value <= 0) {
|
|
110
|
+
throw usageError("limit must be a positive integer");
|
|
111
|
+
}
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
/** @pure */
|
|
115
|
+
export function normalizeIdeaQueryCore(input = {}, facts) {
|
|
116
|
+
const { all, createdBefore, createdSince, limit, query, sort, states, } = input;
|
|
117
|
+
const normalized = {
|
|
118
|
+
states: normalizeStates(states, all, facts),
|
|
119
|
+
query: normalizeQueryText(query),
|
|
120
|
+
createdSince: normalizeTimestamp(createdSince, "createdSince"),
|
|
121
|
+
createdBefore: normalizeTimestamp(createdBefore, "createdBefore"),
|
|
122
|
+
sort: normalizeSort(sort),
|
|
123
|
+
limit: normalizeLimit(limit),
|
|
124
|
+
};
|
|
125
|
+
if (normalized.createdSince !== null
|
|
126
|
+
&& normalized.createdBefore !== null
|
|
127
|
+
&& Date.parse(normalized.createdSince) >= Date.parse(normalized.createdBefore)) {
|
|
128
|
+
throw usageError("createdSince must be earlier than createdBefore");
|
|
129
|
+
}
|
|
130
|
+
return normalized;
|
|
131
|
+
}
|
|
132
|
+
/** @pure */
|
|
133
|
+
export function ideaCreatedAt(id) {
|
|
134
|
+
if (!isValidUlid(id))
|
|
135
|
+
throw new Error(`Cannot decode invalid idea ULID: ${id}`);
|
|
136
|
+
let timestamp = 0;
|
|
137
|
+
for (const character of id.slice(0, 10)) {
|
|
138
|
+
timestamp = timestamp * 32 + CROCKFORD_BASE32.indexOf(character);
|
|
139
|
+
}
|
|
140
|
+
return new Date(timestamp).toISOString();
|
|
141
|
+
}
|
|
142
|
+
/** @pure */
|
|
143
|
+
function markdownText(node) {
|
|
144
|
+
if (node.type === "text" || node.type === "inlineCode")
|
|
145
|
+
return node.value;
|
|
146
|
+
if (node.type === "image")
|
|
147
|
+
return node.alt ?? "";
|
|
148
|
+
return "children" in node ? node.children.map(markdownText).join("") : "";
|
|
149
|
+
}
|
|
150
|
+
/** @pure */
|
|
151
|
+
export function extractIdeaTitle(source) {
|
|
152
|
+
if (typeof source !== "string") {
|
|
153
|
+
throw new TypeError("Idea document source must be a string");
|
|
154
|
+
}
|
|
155
|
+
const heading = fromMarkdown(source).children.find((node) => node.type === "heading" && node.depth === 1);
|
|
156
|
+
if (!heading)
|
|
157
|
+
return undefined;
|
|
158
|
+
const title = markdownText(heading).replaceAll(/\s+/g, " ").trim();
|
|
159
|
+
return title.length === 0 ? undefined : title;
|
|
160
|
+
}
|
|
161
|
+
/** @pure */
|
|
162
|
+
export function ideaInventoryItem(idea, title) {
|
|
163
|
+
const item = {
|
|
164
|
+
id: idea.id,
|
|
165
|
+
state: idea.state,
|
|
166
|
+
createdAt: ideaCreatedAt(idea.id),
|
|
167
|
+
};
|
|
168
|
+
if (idea.alias !== undefined)
|
|
169
|
+
item.alias = idea.alias;
|
|
170
|
+
if (title !== undefined)
|
|
171
|
+
item.title = title;
|
|
172
|
+
return item;
|
|
173
|
+
}
|
|
174
|
+
/** @pure */
|
|
175
|
+
function compareText(left, right) {
|
|
176
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
177
|
+
}
|
|
178
|
+
/** @pure */
|
|
179
|
+
export function queryIdeaInventoryCore(items, input, facts) {
|
|
180
|
+
const query = normalizeIdeaQueryCore(input, facts);
|
|
181
|
+
const states = new Set(query.states);
|
|
182
|
+
const needle = query.query?.toLowerCase();
|
|
183
|
+
const createdSince = query.createdSince === null
|
|
184
|
+
? null
|
|
185
|
+
: Date.parse(query.createdSince);
|
|
186
|
+
const createdBefore = query.createdBefore === null
|
|
187
|
+
? null
|
|
188
|
+
: Date.parse(query.createdBefore);
|
|
189
|
+
const filtered = items.filter((idea) => {
|
|
190
|
+
if (!states.has(idea.state))
|
|
191
|
+
return false;
|
|
192
|
+
if (needle !== undefined
|
|
193
|
+
&& ![idea.id, idea.alias, idea.title]
|
|
194
|
+
.filter((value) => value !== undefined)
|
|
195
|
+
.some((value) => value.toLowerCase().includes(needle))) {
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
const createdAt = Date.parse(idea.createdAt);
|
|
199
|
+
if (createdSince !== null && createdAt < createdSince)
|
|
200
|
+
return false;
|
|
201
|
+
return createdBefore === null || createdAt < createdBefore;
|
|
202
|
+
});
|
|
203
|
+
const direction = query.sort === "newest" ? -1 : 1;
|
|
204
|
+
filtered.sort((left, right) => direction * compareText(left.id, right.id));
|
|
205
|
+
const counts = Object.fromEntries(facts.ideaStates.map((state) => [state, 0]));
|
|
206
|
+
for (const idea of filtered) {
|
|
207
|
+
counts[idea.state] = (counts[idea.state] ?? 0) + 1;
|
|
208
|
+
}
|
|
209
|
+
const ideas = query.limit === null
|
|
210
|
+
? filtered
|
|
211
|
+
: filtered.slice(0, query.limit);
|
|
212
|
+
return {
|
|
213
|
+
query,
|
|
214
|
+
summary: {
|
|
215
|
+
matched: filtered.length,
|
|
216
|
+
returned: ideas.length,
|
|
217
|
+
truncated: ideas.length < filtered.length,
|
|
218
|
+
counts,
|
|
219
|
+
},
|
|
220
|
+
ideas,
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
//# sourceMappingURL=rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/foundation/idea-query/rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC5C,MAAM,OAAO,GACX,sFAAsF,CAAC;AACzF,MAAM,gBAAgB,GAAG,kCAAkC,CAAC;AAyC5D,MAAM,UAAW,SAAQ,KAAK;IACnB,QAAQ,GAAG,CAAC,CAAC;CACvB;AAED,YAAY;AACZ,SAAS,UAAU,CAAC,OAAe;IACjC,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC;AAED,YAAY;AACZ,SAAS,eAAe,CAAC,MAAe,EAAE,GAAY,EAAE,EACtD,UAAU,EAAE,WAAW,EACvB,YAAY,EAAE,kBAAkB,EAChC,WAAW,EAAE,YAAY,GACd;IACX,IAAI,GAAG,KAAK,SAAS,IAAI,OAAO,GAAG,KAAK,SAAS,EAAE,CAAC;QAClD,MAAM,UAAU,CAAC,uBAAuB,CAAC,CAAC;IAC5C,CAAC;IACD,IAAI,MAAM,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QACzC,MAAM,UAAU,CAAC,sCAAsC,CAAC,CAAC;IAC3D,CAAC;IACD,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,kBAAkB,C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|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/foundation/idea-template/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,uBAAuB,EACvB,eAAe,EACf,aAAa,GACd,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const IDEA_TEMPLATE = "# Replace with a concise action-oriented title\n\n<!--\nKeep this direction card brief: aim for 200-400 words.\nLink existing detail instead of copying it. Add detail only when a concrete\ndecision, risk, or disagreement requires it.\n-->\n\n## Problem\n\n<!-- State the current problem in one or two sentences. -->\n\n## Outcome\n\n<!-- State the externally meaningful change in one or two sentences. -->\n\n## Boundaries\n\n<!-- List one to three material constraints or explicit exclusions. -->\n\n## Acceptance criteria\n\n<!-- List no more than three observable outcomes. Do not describe implementation steps. -->\n\n## Next step\n\n<!-- Keep only the highest-priority preparation action or decision. Remove it before acceptance. -->\n";
|
|
2
|
+
export declare const IMPLEMENTATION_TEMPLATE = "# Implementation\n\n<!--\nDuring preparation, replace every placeholder below with a lightweight first\nversion before requesting Idea acceptance. Keep it high-level and provisional:\nIdea acceptance does not cover this contract. Refine it during implementation.\n-->\n\n## Steps\n\n<!--\nGive every step a stable I-Sxx identifier and a level-three heading.\nStart with no more than three steps. Add another only for independently\nnecessary work. Describe what changes now and its material boundaries without\nrepeating the idea or anticipating deployment.\nDo not use task-list checkboxes in this document.\n-->\n\n### I-S01: Step title\n\n<!-- Describe this implementation step. -->\n\n## Acceptance criteria\n\n<!--\nGive every criterion a stable I-ACxx identifier and a level-three heading.\nStart with no more than three criteria. Add another only when it requires\nindependent proof.\nDescribe both the observable outcome and the method that proves it.\nDo not create a separate validation section or use task-list checkboxes.\n-->\n\n### I-AC01: Criterion title\n\n<!-- Describe the required outcome and how an Agent can prove it. -->\n";
|
|
3
|
+
export declare const DEPLOYMENT_TEMPLATE = "# Deployment\n\n<!--\nDuring preparation, replace every placeholder below with a lightweight first\nversion before requesting Idea acceptance. Keep it high-level and provisional:\nIdea acceptance does not cover this contract. Refine it during deployment.\n-->\n\n## Steps\n\n<!--\nGive every step a stable D-Sxx identifier and a level-three heading.\nStart with no more than three steps. Add another only for independently\nnecessary external work. Describe deployment or external-world verification\nwithout recapping implementation.\nDo not use task-list checkboxes in this document.\n-->\n\n### D-S01: Step title\n\n<!-- Describe this deployment or external-verification step. -->\n\n## Acceptance criteria\n\n<!--\nGive every criterion a stable D-ACxx identifier and a level-three heading.\nStart with no more than three criteria. Add another only when it requires\nindependent external proof.\nDescribe both the observable external outcome and the method that proves it.\nDo not create a separate validation section or use task-list checkboxes.\n-->\n\n### D-AC01: Criterion title\n\n<!-- Describe the required external outcome and how an Agent can prove it. -->\n";
|
|
4
|
+
export declare const LEDGER_TEMPLATE = "# Ledger\n\n<!-- During preparation, mirror the lightweight contract versions below and keep every item unchecked. -->\n\n## Implementation\n\n### Implementation steps\n\n- [ ] **I-S01:** Step title\n\n### Implementation acceptance criteria\n\n- [ ] **I-AC01:** Criterion title\n\n## Deployment\n\n### Deployment steps\n\n- [ ] **D-S01:** Step title\n\n### Deployment acceptance criteria\n\n- [ ] **D-AC01:** Criterion title\n";
|
|
5
|
+
/** @pure */
|
|
6
|
+
export declare function ideaTemplates(contentLanguage: string): {
|
|
7
|
+
idea: string;
|
|
8
|
+
implementation: string;
|
|
9
|
+
deployment: string;
|
|
10
|
+
ledger: string;
|
|
11
|
+
localized: boolean;
|
|
12
|
+
templateLanguage: "zh-CN";
|
|
13
|
+
} | {
|
|
14
|
+
idea: string;
|
|
15
|
+
implementation: string;
|
|
16
|
+
deployment: string;
|
|
17
|
+
ledger: string;
|
|
18
|
+
localized: boolean;
|
|
19
|
+
templateLanguage: "en-US";
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../../src/foundation/idea-template/templates.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yuBA2BzB,CAAC;AAEF,eAAO,MAAM,uBAAuB,6nCAmCnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,spCAmC/B,CAAC;AAEF,eAAO,MAAM,eAAe,+aAuB3B,CAAC;AA2HF,YAAY;AACZ,wBAAgB,aAAa,CAAC,eAAe,EAAE,MAAM;;;;;;;;;;;;;;EAoBpD"}
|