@specforge/canary-cli 0.1.12 → 0.1.14
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/dist/tools/core/git-injection.d.ts +8 -0
- package/dist/tools/core/git-injection.d.ts.map +1 -1
- package/dist/tools/core/git-injection.js +5 -0
- package/dist/tools/core/git-injection.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +20 -2
- package/dist/tools/index.js.map +1 -1
- package/node_modules/@specforge/session-types/CHANGELOG.md +56 -0
- package/node_modules/@specforge/session-types/README.md +18 -0
- package/node_modules/@specforge/session-types/dist/index.d.ts +47 -0
- package/node_modules/@specforge/session-types/dist/index.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/index.js +47 -0
- package/node_modules/@specforge/session-types/dist/index.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/aggregator-input.d.ts +46 -0
- package/node_modules/@specforge/session-types/dist/runtime/aggregator-input.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/aggregator-input.js +41 -0
- package/node_modules/@specforge/session-types/dist/runtime/aggregator-input.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/discovery.d.ts +9 -0
- package/node_modules/@specforge/session-types/dist/runtime/discovery.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/discovery.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/discovery.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/enums.d.ts +51 -0
- package/node_modules/@specforge/session-types/dist/runtime/enums.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/enums.js +162 -0
- package/node_modules/@specforge/session-types/dist/runtime/enums.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-config.d.ts +177 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-config.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-config.js +90 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-config.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-record-event.d.ts +8 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-record-event.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-record-event.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-record-event.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-session-aggregate.d.ts +433 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-session-aggregate.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-session-aggregate.js +128 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-session-aggregate.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-session.d.ts +8 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-session.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-session.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/implementation-session.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/lifecycle-contract.d.ts +315 -0
- package/node_modules/@specforge/session-types/dist/runtime/lifecycle-contract.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/lifecycle-contract.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/lifecycle-contract.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/lifecycle-planning-guidance.d.ts +128 -0
- package/node_modules/@specforge/session-types/dist/runtime/lifecycle-planning-guidance.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/lifecycle-planning-guidance.js +30 -0
- package/node_modules/@specforge/session-types/dist/runtime/lifecycle-planning-guidance.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/parsed-git-evidence.d.ts +4 -0
- package/node_modules/@specforge/session-types/dist/runtime/parsed-git-evidence.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/parsed-git-evidence.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/parsed-git-evidence.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-config.d.ts +82 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-config.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-config.js +61 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-config.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-entity-score-datapoint.d.ts +34 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-entity-score-datapoint.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-entity-score-datapoint.js +14 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-entity-score-datapoint.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-operations.d.ts +6 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-operations.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-operations.js +32 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-operations.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-phase-transition.d.ts +34 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-phase-transition.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-phase-transition.js +22 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-phase-transition.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session-action.d.ts +73 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session-action.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session-action.js +56 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session-action.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session-aggregate.d.ts +239 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session-aggregate.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session-aggregate.js +88 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session-aggregate.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session.d.ts +574 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session.js +40 -0
- package/node_modules/@specforge/session-types/dist/runtime/planning-session.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/process-guidance.d.ts +221 -0
- package/node_modules/@specforge/session-types/dist/runtime/process-guidance.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/process-guidance.js +41 -0
- package/node_modules/@specforge/session-types/dist/runtime/process-guidance.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-acceptance-check.d.ts +4 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-acceptance-check.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-acceptance-check.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-acceptance-check.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-action.d.ts +9 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-action.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-action.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-action.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-file-change.d.ts +4 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-file-change.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-file-change.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-file-change.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-impl-step-completion.d.ts +4 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-impl-step-completion.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-impl-step-completion.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-impl-step-completion.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-resolution.d.ts +4 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-resolution.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-resolution.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-resolution.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-test-result.d.ts +4 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-test-result.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-test-result.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session-test-result.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session.d.ts +4 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/work-session.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/working-context.d.ts +43 -0
- package/node_modules/@specforge/session-types/dist/runtime/working-context.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/working-context.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/working-context.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/write-plan.d.ts +146 -0
- package/node_modules/@specforge/session-types/dist/runtime/write-plan.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/runtime/write-plan.js +2 -0
- package/node_modules/@specforge/session-types/dist/runtime/write-plan.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/discovery.d.ts +76 -0
- package/node_modules/@specforge/session-types/dist/schema/discovery.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/discovery.js +42 -0
- package/node_modules/@specforge/session-types/dist/schema/discovery.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/implementation-record-event.d.ts +48 -0
- package/node_modules/@specforge/session-types/dist/schema/implementation-record-event.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/implementation-record-event.js +28 -0
- package/node_modules/@specforge/session-types/dist/schema/implementation-record-event.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/implementation-session.d.ts +37 -0
- package/node_modules/@specforge/session-types/dist/schema/implementation-session.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/implementation-session.js +24 -0
- package/node_modules/@specforge/session-types/dist/schema/implementation-session.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/index.d.ts +12 -0
- package/node_modules/@specforge/session-types/dist/schema/index.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/index.js +12 -0
- package/node_modules/@specforge/session-types/dist/schema/index.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/parsed-git-evidence.d.ts +74 -0
- package/node_modules/@specforge/session-types/dist/schema/parsed-git-evidence.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/parsed-git-evidence.js +31 -0
- package/node_modules/@specforge/session-types/dist/schema/parsed-git-evidence.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-acceptance-check.d.ts +27 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-acceptance-check.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-acceptance-check.js +11 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-acceptance-check.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-action.d.ts +91 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-action.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-action.js +71 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-action.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-file-change.d.ts +42 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-file-change.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-file-change.js +25 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-file-change.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-impl-step-completion.d.ts +27 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-impl-step-completion.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-impl-step-completion.js +11 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-impl-step-completion.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-resolution.d.ts +42 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-resolution.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-resolution.js +28 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-resolution.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-test-result.d.ts +72 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-test-result.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-test-result.js +32 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session-test-result.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session.d.ts +174 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session.js +63 -0
- package/node_modules/@specforge/session-types/dist/schema/work-session.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/config-store-interface.d.ts +17 -0
- package/node_modules/@specforge/session-types/dist/stores/config-store-interface.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/config-store-interface.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/config-store-interface.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/discovery-store.d.ts +31 -0
- package/node_modules/@specforge/session-types/dist/stores/discovery-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/discovery-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/discovery-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.d.ts +19 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-session-aggregate-store.d.ts +16 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-session-aggregate-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-session-aggregate-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-session-aggregate-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-session-store.d.ts +28 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-session-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-session-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/implementation-session-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-entity-score-datapoint-store.d.ts +12 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-entity-score-datapoint-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-entity-score-datapoint-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-entity-score-datapoint-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.d.ts +10 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-action-store.d.ts +13 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-action-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-action-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-action-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.d.ts +10 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-store.d.ts +20 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/planning-session-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-acceptance-check-store.d.ts +15 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-acceptance-check-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-acceptance-check-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-acceptance-check-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-action-store.d.ts +29 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-action-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-action-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-action-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-file-change-store.d.ts +9 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-file-change-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-file-change-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-file-change-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-impl-step-completion-store.d.ts +9 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-impl-step-completion-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-impl-step-completion-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-impl-step-completion-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-resolution-store.d.ts +10 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-resolution-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-resolution-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-resolution-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-store.d.ts +14 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-test-result-store.d.ts +8 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-test-result-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-test-result-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/work-session-test-result-store.js.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/working-context-store.d.ts +27 -0
- package/node_modules/@specforge/session-types/dist/stores/working-context-store.d.ts.map +1 -0
- package/node_modules/@specforge/session-types/dist/stores/working-context-store.js +2 -0
- package/node_modules/@specforge/session-types/dist/stores/working-context-store.js.map +1 -0
- package/node_modules/@specforge/session-types/package.json +43 -0
- package/package.json +6 -5
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* WorkSession — the CHILD work-lifecycle session (1 active per ticket), owned by a
|
|
4
|
+
* parent ImplementationSession (1 active per spec) via `implementationSessionId`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WorkSessionSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
ticketId: z.ZodString;
|
|
9
|
+
projectId: z.ZodString;
|
|
10
|
+
/**
|
|
11
|
+
* FK to the parent ImplementationSession (1 ImplementationSession ⇄ N WorkSessions).
|
|
12
|
+
* REQUIRED at the type level: the TS surface intentionally leads the schema —
|
|
13
|
+
* the live Amplify column is still optional `a.id()`; making the DDB column
|
|
14
|
+
* required is M15.
|
|
15
|
+
*/
|
|
16
|
+
implementationSessionId: z.ZodString;
|
|
17
|
+
status: z.ZodEnum<["active", "paused", "completed", "failed", "aborted"]>;
|
|
18
|
+
startedAt: z.ZodString;
|
|
19
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
20
|
+
/**
|
|
21
|
+
* Worktree provenance — SWS-captured (M16.2), set once at session start and
|
|
22
|
+
* immutable. Records WHERE / on which branch this WorkSession ran (N WorkSessions
|
|
23
|
+
* ⇄ N worktrees under one ImplementationSession), so the orchestrator can
|
|
24
|
+
* re-dispatch a worker to the right worktree on reconnect (read via
|
|
25
|
+
* get_implementation_status, M19.4). Absent when the agent is not running inside a
|
|
26
|
+
* git worktree. DDB columns are M15.
|
|
27
|
+
*/
|
|
28
|
+
worktreePath: z.ZodOptional<z.ZodString>;
|
|
29
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
30
|
+
/**
|
|
31
|
+
* Session-specific block reason (M15.5 / M16) — lives here on WorkSession (session
|
|
32
|
+
* state, NOT ticket state; the Ticket-side field was purged in M15.5b). Written by a
|
|
33
|
+
* `blocking` `create_discovery` (the AWS write-plan Puts it onto the row alongside
|
|
34
|
+
* `Ticket.status='blocked'`) and cleared by the human `resolve_discovery`. The live
|
|
35
|
+
* Amplify column already exists (`resource.ts` `WorkSession.blockReason: a.string()`);
|
|
36
|
+
* the TS surface had drifted (no field) — mirrored here so the orchestrator dispatch
|
|
37
|
+
* read (`get_implementation_status`, M19.4) surfaces it. Absent when the session is
|
|
38
|
+
* not blocked (an unblocked / non-blocking-discovery pause carries no reason).
|
|
39
|
+
*/
|
|
40
|
+
blockReason: z.ZodOptional<z.ZodString>;
|
|
41
|
+
/**
|
|
42
|
+
* Commit proof — per-WorkSession (NOT per-file). CWS holds the gate pass with
|
|
43
|
+
* guidance "commit your work first" until `commitSha` is present (M16.5);
|
|
44
|
+
* `gitEvidence` is the parsed git status/diff the assay reads for coherence
|
|
45
|
+
* (AWS/CWS). The DDB columns already exist live (`resource.ts`), so M15 only
|
|
46
|
+
* confirms them.
|
|
47
|
+
*/
|
|
48
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
49
|
+
gitEvidence: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
51
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
52
|
+
status: z.ZodOptional<z.ZodString>;
|
|
53
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
54
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
|
+
path: z.ZodString;
|
|
56
|
+
changeType: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
path: string;
|
|
59
|
+
changeType: string;
|
|
60
|
+
}, {
|
|
61
|
+
path: string;
|
|
62
|
+
changeType: string;
|
|
63
|
+
}>, "many">>;
|
|
64
|
+
insertions: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
67
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
68
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
69
|
+
status: z.ZodOptional<z.ZodString>;
|
|
70
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
71
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
+
path: z.ZodString;
|
|
73
|
+
changeType: z.ZodString;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
path: string;
|
|
76
|
+
changeType: string;
|
|
77
|
+
}, {
|
|
78
|
+
path: string;
|
|
79
|
+
changeType: string;
|
|
80
|
+
}>, "many">>;
|
|
81
|
+
insertions: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
84
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
85
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
86
|
+
status: z.ZodOptional<z.ZodString>;
|
|
87
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
88
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
89
|
+
path: z.ZodString;
|
|
90
|
+
changeType: z.ZodString;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
path: string;
|
|
93
|
+
changeType: string;
|
|
94
|
+
}, {
|
|
95
|
+
path: string;
|
|
96
|
+
changeType: string;
|
|
97
|
+
}>, "many">>;
|
|
98
|
+
insertions: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
101
|
+
/**
|
|
102
|
+
* Coherence score (0–100) — the change-INDICATOR the assay computes (M17.4):
|
|
103
|
+
* `((1 − pctFilesJustified) + (1 − pctTestsJustified)) / 2`, present dims only. It
|
|
104
|
+
* is telemetry for the comparator, NOT a gate. CWS finalize writes it (M17.6 typed
|
|
105
|
+
* echo); the live Amplify column already exists (`resource.ts` `WorkSession.coherenceScore:
|
|
106
|
+
* a.float()`). The TS surface had drifted from Amplify (no field); M17.6 mirrors it
|
|
107
|
+
* here so the typed write/read round-trips. The persisted DDB round-trip is wired
|
|
108
|
+
* with the real stores in M19.
|
|
109
|
+
*/
|
|
110
|
+
coherenceScore: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
status: "active" | "paused" | "completed" | "failed" | "aborted";
|
|
113
|
+
id: string;
|
|
114
|
+
projectId: string;
|
|
115
|
+
startedAt: string;
|
|
116
|
+
ticketId: string;
|
|
117
|
+
implementationSessionId: string;
|
|
118
|
+
completedAt?: string | undefined;
|
|
119
|
+
branch?: string | undefined;
|
|
120
|
+
commitSha?: string | undefined;
|
|
121
|
+
worktreePath?: string | undefined;
|
|
122
|
+
blockReason?: string | undefined;
|
|
123
|
+
gitEvidence?: z.objectOutputType<{
|
|
124
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
125
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
126
|
+
status: z.ZodOptional<z.ZodString>;
|
|
127
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
128
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
129
|
+
path: z.ZodString;
|
|
130
|
+
changeType: z.ZodString;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
path: string;
|
|
133
|
+
changeType: string;
|
|
134
|
+
}, {
|
|
135
|
+
path: string;
|
|
136
|
+
changeType: string;
|
|
137
|
+
}>, "many">>;
|
|
138
|
+
insertions: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
141
|
+
coherenceScore?: number | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
status: "active" | "paused" | "completed" | "failed" | "aborted";
|
|
144
|
+
id: string;
|
|
145
|
+
projectId: string;
|
|
146
|
+
startedAt: string;
|
|
147
|
+
ticketId: string;
|
|
148
|
+
implementationSessionId: string;
|
|
149
|
+
completedAt?: string | undefined;
|
|
150
|
+
branch?: string | undefined;
|
|
151
|
+
commitSha?: string | undefined;
|
|
152
|
+
worktreePath?: string | undefined;
|
|
153
|
+
blockReason?: string | undefined;
|
|
154
|
+
gitEvidence?: z.objectInputType<{
|
|
155
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
156
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
157
|
+
status: z.ZodOptional<z.ZodString>;
|
|
158
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
159
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
160
|
+
path: z.ZodString;
|
|
161
|
+
changeType: z.ZodString;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
path: string;
|
|
164
|
+
changeType: string;
|
|
165
|
+
}, {
|
|
166
|
+
path: string;
|
|
167
|
+
changeType: string;
|
|
168
|
+
}>, "many">>;
|
|
169
|
+
insertions: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
172
|
+
coherenceScore?: number | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
//# sourceMappingURL=work-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-session.d.ts","sourceRoot":"","sources":["../../src/schema/work-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;IAK5B;;;;;OAKG;;;;;IAOH;;;;;;;OAOG;;;IAIH;;;;;;;;;OASG;;IAGH;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIH;;;;;;;;OAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WORK_SESSION_STATUSES } from '../runtime/enums.js';
|
|
3
|
+
import { ParsedGitEvidenceSchema } from './parsed-git-evidence.js';
|
|
4
|
+
/**
|
|
5
|
+
* WorkSession — the CHILD work-lifecycle session (1 active per ticket), owned by a
|
|
6
|
+
* parent ImplementationSession (1 active per spec) via `implementationSessionId`.
|
|
7
|
+
*/
|
|
8
|
+
export const WorkSessionSchema = z.object({
|
|
9
|
+
id: z.string(),
|
|
10
|
+
ticketId: z.string(),
|
|
11
|
+
projectId: z.string(),
|
|
12
|
+
/**
|
|
13
|
+
* FK to the parent ImplementationSession (1 ImplementationSession ⇄ N WorkSessions).
|
|
14
|
+
* REQUIRED at the type level: the TS surface intentionally leads the schema —
|
|
15
|
+
* the live Amplify column is still optional `a.id()`; making the DDB column
|
|
16
|
+
* required is M15.
|
|
17
|
+
*/
|
|
18
|
+
implementationSessionId: z.string(),
|
|
19
|
+
status: z.enum(WORK_SESSION_STATUSES),
|
|
20
|
+
startedAt: z.string().datetime(),
|
|
21
|
+
completedAt: z.string().datetime().optional(),
|
|
22
|
+
/**
|
|
23
|
+
* Worktree provenance — SWS-captured (M16.2), set once at session start and
|
|
24
|
+
* immutable. Records WHERE / on which branch this WorkSession ran (N WorkSessions
|
|
25
|
+
* ⇄ N worktrees under one ImplementationSession), so the orchestrator can
|
|
26
|
+
* re-dispatch a worker to the right worktree on reconnect (read via
|
|
27
|
+
* get_implementation_status, M19.4). Absent when the agent is not running inside a
|
|
28
|
+
* git worktree. DDB columns are M15.
|
|
29
|
+
*/
|
|
30
|
+
worktreePath: z.string().optional(),
|
|
31
|
+
branch: z.string().optional(),
|
|
32
|
+
/**
|
|
33
|
+
* Session-specific block reason (M15.5 / M16) — lives here on WorkSession (session
|
|
34
|
+
* state, NOT ticket state; the Ticket-side field was purged in M15.5b). Written by a
|
|
35
|
+
* `blocking` `create_discovery` (the AWS write-plan Puts it onto the row alongside
|
|
36
|
+
* `Ticket.status='blocked'`) and cleared by the human `resolve_discovery`. The live
|
|
37
|
+
* Amplify column already exists (`resource.ts` `WorkSession.blockReason: a.string()`);
|
|
38
|
+
* the TS surface had drifted (no field) — mirrored here so the orchestrator dispatch
|
|
39
|
+
* read (`get_implementation_status`, M19.4) surfaces it. Absent when the session is
|
|
40
|
+
* not blocked (an unblocked / non-blocking-discovery pause carries no reason).
|
|
41
|
+
*/
|
|
42
|
+
blockReason: z.string().optional(),
|
|
43
|
+
/**
|
|
44
|
+
* Commit proof — per-WorkSession (NOT per-file). CWS holds the gate pass with
|
|
45
|
+
* guidance "commit your work first" until `commitSha` is present (M16.5);
|
|
46
|
+
* `gitEvidence` is the parsed git status/diff the assay reads for coherence
|
|
47
|
+
* (AWS/CWS). The DDB columns already exist live (`resource.ts`), so M15 only
|
|
48
|
+
* confirms them.
|
|
49
|
+
*/
|
|
50
|
+
commitSha: z.string().optional(),
|
|
51
|
+
gitEvidence: ParsedGitEvidenceSchema.optional(),
|
|
52
|
+
/**
|
|
53
|
+
* Coherence score (0–100) — the change-INDICATOR the assay computes (M17.4):
|
|
54
|
+
* `((1 − pctFilesJustified) + (1 − pctTestsJustified)) / 2`, present dims only. It
|
|
55
|
+
* is telemetry for the comparator, NOT a gate. CWS finalize writes it (M17.6 typed
|
|
56
|
+
* echo); the live Amplify column already exists (`resource.ts` `WorkSession.coherenceScore:
|
|
57
|
+
* a.float()`). The TS surface had drifted from Amplify (no field); M17.6 mirrors it
|
|
58
|
+
* here so the typed write/read round-trips. The persisted DDB round-trip is wired
|
|
59
|
+
* with the real stores in M19.
|
|
60
|
+
*/
|
|
61
|
+
coherenceScore: z.number().optional(),
|
|
62
|
+
});
|
|
63
|
+
//# sourceMappingURL=work-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-session.js","sourceRoot":"","sources":["../../src/schema/work-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IAErB;;;;;OAKG;IACH,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;IAEnC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC;IACrC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAE7C;;;;;;;OAOG;IACH,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAE7B;;;;;;;;;OASG;IACH,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAElC;;;;;;OAMG;IACH,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,uBAAuB,CAAC,QAAQ,EAAE;IAE/C;;;;;;;;OAQG;IACH,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IConfigStore {
|
|
2
|
+
getProjectOverrides(projectId: string, domain: string): Promise<unknown | null>;
|
|
3
|
+
setProjectOverrides(projectId: string, domain: string, overrides: unknown, schemaVersion: number): Promise<void>;
|
|
4
|
+
listProjectConfigs(projectId: string): Promise<Array<{
|
|
5
|
+
domain: string;
|
|
6
|
+
overrides: unknown;
|
|
7
|
+
schemaVersion: number;
|
|
8
|
+
}>>;
|
|
9
|
+
getSpecSnapshot(specId: string, domain: string): Promise<unknown | null>;
|
|
10
|
+
setSpecSnapshot(specId: string, domain: string, snapshot: unknown, schemaVersion: number): Promise<void>;
|
|
11
|
+
listSpecConfigs(specId: string): Promise<Array<{
|
|
12
|
+
domain: string;
|
|
13
|
+
snapshot: unknown;
|
|
14
|
+
schemaVersion: number;
|
|
15
|
+
}>>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=config-store-interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-store-interface.d.ts","sourceRoot":"","sources":["../../src/stores/config-store-interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAChF,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;IAErH,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IACzE,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzG,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;CAC/G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-store-interface.js","sourceRoot":"","sources":["../../src/stores/config-store-interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Discovery } from '../runtime/discovery.js';
|
|
2
|
+
import type { PaginationOptions, Paginated } from './planning-session-store.js';
|
|
3
|
+
/**
|
|
4
|
+
* Filters for the Discovery reads (applied post-query within the matched GSI
|
|
5
|
+
* partition — never a base-table scan).
|
|
6
|
+
*/
|
|
7
|
+
export interface DiscoveryFilters {
|
|
8
|
+
status?: string;
|
|
9
|
+
blocking?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Read-only store for the top-level `Discovery` entity (M19.1) — NOT a WorkSession
|
|
13
|
+
* child. Authored by M19.1 (M14 never authored this read interface). The mutating
|
|
14
|
+
* verbs (`create_discovery` / `update_discovery` / `set_discovery_resolved`) are AWS
|
|
15
|
+
* actions that flow through the WritePlan (M16.3 / M19.5); the human `resolve_discovery`
|
|
16
|
+
* writes a `WorkSessionResolution` (M24.5a). So this store is READ-ONLY.
|
|
17
|
+
*
|
|
18
|
+
* The list paths mirror the live GSIs (`bySpecificationIdAndStatus` /
|
|
19
|
+
* `byTicketIdAndStatus` / `byWorkSessionId` + the `listDiscoveryByProjectIdAndCreatedAt`
|
|
20
|
+
* queryField, M15). `listPendingDiscoveriesBySpec` is the orientation read SWS uses
|
|
21
|
+
* (the spec's open discoveries the agent sees on start).
|
|
22
|
+
*/
|
|
23
|
+
export interface IDiscoveryStore {
|
|
24
|
+
getDiscovery(id: string): Promise<Discovery | null>;
|
|
25
|
+
listDiscoveriesBySpec(specificationId: string, filters?: DiscoveryFilters, opts?: PaginationOptions): Promise<Paginated<Discovery>>;
|
|
26
|
+
listDiscoveriesByTicket(ticketId: string, filters?: DiscoveryFilters, opts?: PaginationOptions): Promise<Paginated<Discovery>>;
|
|
27
|
+
listDiscoveriesByWorkSession(workSessionId: string, opts?: PaginationOptions): Promise<Paginated<Discovery>>;
|
|
28
|
+
listPendingDiscoveriesBySpec(specificationId: string, opts?: PaginationOptions): Promise<Paginated<Discovery>>;
|
|
29
|
+
listDiscoveriesByProject(projectId: string, opts?: PaginationOptions): Promise<Paginated<Discovery>>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=discovery-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery-store.d.ts","sourceRoot":"","sources":["../../src/stores/discovery-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEhF;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACpD,qBAAqB,CACnB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,gBAAgB,EAC1B,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACjC,uBAAuB,CACrB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,gBAAgB,EAC1B,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACjC,4BAA4B,CAC1B,aAAa,EAAE,MAAM,EACrB,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACjC,4BAA4B,CAC1B,eAAe,EAAE,MAAM,EACvB,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACjC,wBAAwB,CACtB,SAAS,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery-store.js","sourceRoot":"","sources":["../../src/stores/discovery-store.ts"],"names":[],"mappings":""}
|
package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ImplementationRecordEvent } from '../runtime/implementation-record-event.js';
|
|
2
|
+
import type { PaginationOptions, Paginated } from './planning-session-store.js';
|
|
3
|
+
/**
|
|
4
|
+
* Read-only store for `ImplementationRecordEvent` (M15.4) — the work-lifecycle
|
|
5
|
+
* transition/event row read by M20 (aggregate projector) + M21 (notifications).
|
|
6
|
+
* Authored by M19.1 (M14 never authored this read interface).
|
|
7
|
+
*
|
|
8
|
+
* READ-ONLY — events are fired inside the M16 WritePlan; there is no write method
|
|
9
|
+
* here. The 4 list paths mirror the 4 GSIs (`byImplementationSessionId` /
|
|
10
|
+
* `byWorkSessionId` / `bySpecificationId` / `byTicketId`, all sort `timestamp`, M15).
|
|
11
|
+
*/
|
|
12
|
+
export interface IImplementationRecordEventStore {
|
|
13
|
+
getEvent(id: string): Promise<ImplementationRecordEvent | null>;
|
|
14
|
+
listEventsByImplementationSession(implementationSessionId: string, opts?: PaginationOptions): Promise<Paginated<ImplementationRecordEvent>>;
|
|
15
|
+
listEventsByWorkSession(workSessionId: string, opts?: PaginationOptions): Promise<Paginated<ImplementationRecordEvent>>;
|
|
16
|
+
listEventsBySpec(specificationId: string, opts?: PaginationOptions): Promise<Paginated<ImplementationRecordEvent>>;
|
|
17
|
+
listEventsByTicket(ticketId: string, opts?: PaginationOptions): Promise<Paginated<ImplementationRecordEvent>>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=implementation-record-event-store.d.ts.map
|
package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-record-event-store.d.ts","sourceRoot":"","sources":["../../src/stores/implementation-record-event-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEhF;;;;;;;;GAQG;AACH,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,GAAG,IAAI,CAAC,CAAC;IAChE,iCAAiC,CAC/B,uBAAuB,EAAE,MAAM,EAC/B,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC;IACjD,uBAAuB,CACrB,aAAa,EAAE,MAAM,EACrB,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC;IACjD,gBAAgB,CACd,eAAe,EAAE,MAAM,EACvB,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC;IACjD,kBAAkB,CAChB,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC;CAClD"}
|
package/node_modules/@specforge/session-types/dist/stores/implementation-record-event-store.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-record-event-store.js","sourceRoot":"","sources":["../../src/stores/implementation-record-event-store.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ImplementationSessionAggregate } from '../runtime/implementation-session-aggregate.js';
|
|
2
|
+
import type { PaginationOptions, Paginated } from './planning-session-store.js';
|
|
3
|
+
export interface ImplementationAggregateFilters {
|
|
4
|
+
projectId?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Read-only store for `ImplementationSessionAggregate` (M20.1) — the WORK analogue of
|
|
8
|
+
* `IPlanningSessionAggregateStore`. The aggregate is written ONLY by the projector
|
|
9
|
+
* Lambda (`allow.custom().to(['create','update'])`); reads are spec-scoped via the
|
|
10
|
+
* `bySpecificationId` GSI so the M24 observatory never scans.
|
|
11
|
+
*/
|
|
12
|
+
export interface IImplementationSessionAggregateStore {
|
|
13
|
+
getAggregate(implementationSessionId: string): Promise<ImplementationSessionAggregate | null>;
|
|
14
|
+
listAggregatesBySpecification(specificationId: string, filters?: ImplementationAggregateFilters, opts?: PaginationOptions): Promise<Paginated<ImplementationSessionAggregate>>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=implementation-session-aggregate-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-session-aggregate-store.d.ts","sourceRoot":"","sources":["../../src/stores/implementation-session-aggregate-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEhF,MAAM,WAAW,8BAA8B;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,oCAAoC;IACnD,YAAY,CAAC,uBAAuB,EAAE,MAAM,GAAG,OAAO,CAAC,8BAA8B,GAAG,IAAI,CAAC,CAAC;IAC9F,6BAA6B,CAC3B,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,8BAA8B,EACxC,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAAC,CAAC;CACvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-session-aggregate-store.js","sourceRoot":"","sources":["../../src/stores/implementation-session-aggregate-store.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ImplementationSession } from '../runtime/implementation-session.js';
|
|
2
|
+
import type { PaginationOptions, Paginated } from './planning-session-store.js';
|
|
3
|
+
/**
|
|
4
|
+
* Filters for listing ImplementationSessions. Mirrors `PlanningSessionFilters`,
|
|
5
|
+
* minus `phase` — phase is a WorkSession (child) progress stage, not an
|
|
6
|
+
* ImplementationSession (parent) concept. The parent carries only a lifecycle
|
|
7
|
+
* `status` (`ImplementationSessionStatus`: active/completed/aborted).
|
|
8
|
+
*/
|
|
9
|
+
export interface ImplementationSessionFilters {
|
|
10
|
+
status?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Read-only store for the parent ImplementationSession (the work sibling of
|
|
14
|
+
* `IPlanningSessionStore`). Sessions are **read-only in operations** — every
|
|
15
|
+
* mutation (SWS create/attach, CWS finalize, the M24 abort cascade) is applied
|
|
16
|
+
* through a `WritePlan`, never directly via this store. So, like
|
|
17
|
+
* `IPlanningSessionStore`, this interface exposes get/list reads ONLY.
|
|
18
|
+
*
|
|
19
|
+
* Invariant the reads serve: exactly ONE *active* ImplementationSession per
|
|
20
|
+
* specification (`getActiveImplementationSessionBySpec`).
|
|
21
|
+
*/
|
|
22
|
+
export interface IImplementationSessionStore {
|
|
23
|
+
getImplementationSession(id: string): Promise<ImplementationSession | null>;
|
|
24
|
+
getActiveImplementationSessionBySpec(specificationId: string): Promise<ImplementationSession | null>;
|
|
25
|
+
listImplementationSessionsBySpec(specificationId: string, opts?: PaginationOptions): Promise<Paginated<ImplementationSession>>;
|
|
26
|
+
listImplementationSessionsByProject(projectId: string, filters?: ImplementationSessionFilters, opts?: PaginationOptions): Promise<Paginated<ImplementationSession>>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=implementation-session-store.d.ts.map
|
package/node_modules/@specforge/session-types/dist/stores/implementation-session-store.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-session-store.d.ts","sourceRoot":"","sources":["../../src/stores/implementation-session-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,2BAA2B;IAC1C,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IAC5E,oCAAoC,CAClC,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IACzC,gCAAgC,CAC9B,eAAe,EAAE,MAAM,EACvB,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC7C,mCAAmC,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,4BAA4B,EACtC,IAAI,CAAC,EAAE,iBAAiB,GACvB,OAAO,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC;CAC9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"implementation-session-store.js","sourceRoot":"","sources":["../../src/stores/implementation-session-store.ts"],"names":[],"mappings":""}
|
package/node_modules/@specforge/session-types/dist/stores/planning-entity-score-datapoint-store.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PlanningEntityScoreDatapoint } from '../runtime/planning-entity-score-datapoint.js';
|
|
2
|
+
import type { PaginationOptions, Paginated } from './planning-session-store.js';
|
|
3
|
+
export interface DatapointFilters {
|
|
4
|
+
entityType?: string;
|
|
5
|
+
trigger?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IPlanningEntityScoreDatapointStore {
|
|
8
|
+
getDatapoint(id: string): Promise<PlanningEntityScoreDatapoint | null>;
|
|
9
|
+
listDatapointsBySession(planningSessionId: string, filters?: DatapointFilters, opts?: PaginationOptions): Promise<Paginated<PlanningEntityScoreDatapoint>>;
|
|
10
|
+
listDatapointsByEntity(entityId: string, planningSessionId: string, opts?: PaginationOptions): Promise<Paginated<PlanningEntityScoreDatapoint>>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=planning-entity-score-datapoint-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planning-entity-score-datapoint-store.d.ts","sourceRoot":"","sources":["../../src/stores/planning-entity-score-datapoint-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kCAAkC;IACjD,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,4BAA4B,GAAG,IAAI,CAAC,CAAC;IACvE,uBAAuB,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,4BAA4B,CAAC,CAAC,CAAC;IAC3J,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,4BAA4B,CAAC,CAAC,CAAC;CACjJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planning-entity-score-datapoint-store.js","sourceRoot":"","sources":["../../src/stores/planning-entity-score-datapoint-store.ts"],"names":[],"mappings":""}
|
package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PlanningPhaseTransition } from '../runtime/planning-phase-transition.js';
|
|
2
|
+
import type { PaginationOptions, Paginated } from './planning-session-store.js';
|
|
3
|
+
export interface TransitionFilters {
|
|
4
|
+
trigger?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IPlanningPhaseTransitionStore {
|
|
7
|
+
getTransition(id: string): Promise<PlanningPhaseTransition | null>;
|
|
8
|
+
listTransitionsBySession(planningSessionId: string, filters?: TransitionFilters, opts?: PaginationOptions): Promise<Paginated<PlanningPhaseTransition>>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=planning-phase-transition-store.d.ts.map
|
package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planning-phase-transition-store.d.ts","sourceRoot":"","sources":["../../src/stores/planning-phase-transition-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AACvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEhF,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,6BAA6B;IAC5C,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC;IACnE,wBAAwB,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC,CAAC;CACzJ"}
|
package/node_modules/@specforge/session-types/dist/stores/planning-phase-transition-store.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planning-phase-transition-store.js","sourceRoot":"","sources":["../../src/stores/planning-phase-transition-store.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PlanningSessionAction } from '../runtime/planning-session-action.js';
|
|
2
|
+
import type { PaginationOptions, Paginated } from './planning-session-store.js';
|
|
3
|
+
export interface ActionFilters {
|
|
4
|
+
phase?: string;
|
|
5
|
+
outcome?: string;
|
|
6
|
+
operation?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IPlanningSessionActionStore {
|
|
9
|
+
getAction(id: string): Promise<PlanningSessionAction | null>;
|
|
10
|
+
listActionsBySession(planningSessionId: string, filters?: ActionFilters, opts?: PaginationOptions): Promise<Paginated<PlanningSessionAction>>;
|
|
11
|
+
listActionsByProject(projectId: string, filters?: ActionFilters, opts?: PaginationOptions): Promise<Paginated<PlanningSessionAction>>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=planning-session-action-store.d.ts.map
|
package/node_modules/@specforge/session-types/dist/stores/planning-session-action-store.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planning-session-action-store.d.ts","sourceRoot":"","sources":["../../src/stores/planning-session-action-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEhF,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;IAC7D,oBAAoB,CAAC,iBAAiB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC9I,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC;CACvI"}
|
package/node_modules/@specforge/session-types/dist/stores/planning-session-action-store.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planning-session-action-store.js","sourceRoot":"","sources":["../../src/stores/planning-session-action-store.ts"],"names":[],"mappings":""}
|
package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PlanningSessionAggregate } from '../runtime/planning-session-aggregate.js';
|
|
2
|
+
import type { PaginationOptions, Paginated } from './planning-session-store.js';
|
|
3
|
+
export interface AggregateFilters {
|
|
4
|
+
projectId?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IPlanningSessionAggregateStore {
|
|
7
|
+
getAggregate(planningSessionId: string): Promise<PlanningSessionAggregate | null>;
|
|
8
|
+
listAggregatesByProject(projectId: string, filters?: AggregateFilters, opts?: PaginationOptions): Promise<Paginated<PlanningSessionAggregate>>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=planning-session-aggregate-store.d.ts.map
|
package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planning-session-aggregate-store.d.ts","sourceRoot":"","sources":["../../src/stores/planning-session-aggregate-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEhF,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,8BAA8B;IAC7C,YAAY,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,GAAG,IAAI,CAAC,CAAC;IAClF,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC,CAAC;CAChJ"}
|
package/node_modules/@specforge/session-types/dist/stores/planning-session-aggregate-store.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planning-session-aggregate-store.js","sourceRoot":"","sources":["../../src/stores/planning-session-aggregate-store.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PlanningSession } from '../runtime/planning-session.js';
|
|
2
|
+
export interface PaginationOptions {
|
|
3
|
+
limit?: number;
|
|
4
|
+
cursor?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Paginated<T> {
|
|
7
|
+
items: T[];
|
|
8
|
+
nextCursor?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PlanningSessionFilters {
|
|
11
|
+
status?: string;
|
|
12
|
+
phase?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IPlanningSessionStore {
|
|
15
|
+
getPlanningSession(id: string): Promise<PlanningSession | null>;
|
|
16
|
+
getActivePlanningSessionBySpec(specificationId: string): Promise<PlanningSession | null>;
|
|
17
|
+
listPlanningSessionsBySpec(specificationId: string, opts?: PaginationOptions): Promise<Paginated<PlanningSession>>;
|
|
18
|
+
listPlanningSessionsByProject(projectId: string, filters?: PlanningSessionFilters, opts?: PaginationOptions): Promise<Paginated<PlanningSession>>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=planning-session-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planning-session-store.d.ts","sourceRoot":"","sources":["../../src/stores/planning-session-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEtE,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IAChE,8BAA8B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;IACzF,0BAA0B,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC;IACnH,6BAA6B,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC;CACnJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planning-session-store.js","sourceRoot":"","sources":["../../src/stores/planning-session-store.ts"],"names":[],"mappings":""}
|
package/node_modules/@specforge/session-types/dist/stores/work-session-acceptance-check-store.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WorkSessionAcceptanceCheck } from '../runtime/work-session-acceptance-check.js';
|
|
2
|
+
import type { PaginationOptions, Paginated } from './planning-session-store.js';
|
|
3
|
+
export interface IWorkSessionAcceptanceCheckStore {
|
|
4
|
+
getCheck(id: string): Promise<WorkSessionAcceptanceCheck | null>;
|
|
5
|
+
listChecksBySession(workSessionId: string, opts?: PaginationOptions): Promise<Paginated<WorkSessionAcceptanceCheck>>;
|
|
6
|
+
/**
|
|
7
|
+
* List every AC-check for a ticket (the `byTicketId` GSI), across all of the
|
|
8
|
+
* ticket's WorkSessions. Used by the M20.3 count-propagator to derive
|
|
9
|
+
* `Ticket.validatedCriteriaCount` = count of DISTINCT checked criteria.
|
|
10
|
+
*/
|
|
11
|
+
listChecksByTicket(ticketId: string, opts?: PaginationOptions): Promise<Paginated<WorkSessionAcceptanceCheck>>;
|
|
12
|
+
upsertCheck(check: WorkSessionAcceptanceCheck): Promise<void>;
|
|
13
|
+
deleteCheck(id: string): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=work-session-acceptance-check-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-session-acceptance-check-store.d.ts","sourceRoot":"","sources":["../../src/stores/work-session-acceptance-check-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEhF,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,GAAG,IAAI,CAAC,CAAC;IACjE,mBAAmB,CAAC,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC,CAAC;IACrH;;;;OAIG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAC/G,WAAW,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC"}
|
package/node_modules/@specforge/session-types/dist/stores/work-session-acceptance-check-store.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-session-acceptance-check-store.js","sourceRoot":"","sources":["../../src/stores/work-session-acceptance-check-store.ts"],"names":[],"mappings":""}
|