@specforge/cli 0.1.0 → 0.2.5
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/cli/commands/debug/register.js +1 -1
- package/dist/cli/commands/debug/register.js.map +1 -1
- package/dist/cli/commands/debug/types.d.ts.map +1 -1
- package/dist/cli/commands/debug/types.js +4 -2
- package/dist/cli/commands/debug/types.js.map +1 -1
- package/dist/cli/commands/init.types.d.ts +4 -4
- package/dist/cli/commands/init.types.d.ts.map +1 -1
- package/dist/cli/commands/init.types.js.map +1 -1
- package/dist/cli/commands/scaffold/agent-types.js +1 -1
- package/dist/cli/commands/scaffold/agent-types.js.map +1 -1
- package/dist/cli/config/agent-teams.types.d.ts +35 -12
- package/dist/cli/config/agent-teams.types.d.ts.map +1 -1
- package/dist/cli/config/agent-teams.types.js.map +1 -1
- package/dist/cli/templates/agents/content/core/sfag-orchestrator.d.ts +21 -3
- package/dist/cli/templates/agents/content/core/sfag-orchestrator.d.ts.map +1 -1
- package/dist/cli/templates/agents/content/core/sfag-orchestrator.js +114 -48
- package/dist/cli/templates/agents/content/core/sfag-orchestrator.js.map +1 -1
- package/dist/cli/templates/agents/content/core/sfag-spec-creator.d.ts.map +1 -1
- package/dist/cli/templates/agents/content/core/sfag-spec-creator.js +124 -83
- package/dist/cli/templates/agents/content/core/sfag-spec-creator.js.map +1 -1
- package/dist/cli/templates/agents/content/core/sfag-ticket-implementer.d.ts +22 -3
- package/dist/cli/templates/agents/content/core/sfag-ticket-implementer.d.ts.map +1 -1
- package/dist/cli/templates/agents/content/core/sfag-ticket-implementer.js +225 -160
- package/dist/cli/templates/agents/content/core/sfag-ticket-implementer.js.map +1 -1
- package/dist/cli/templates/agents/content/core/sfag-work-resolver.d.ts +16 -0
- package/dist/cli/templates/agents/content/core/sfag-work-resolver.d.ts.map +1 -0
- package/dist/cli/templates/agents/content/core/sfag-work-resolver.js +199 -0
- package/dist/cli/templates/agents/content/core/sfag-work-resolver.js.map +1 -0
- package/dist/cli/templates/agents/index.d.ts.map +1 -1
- package/dist/cli/templates/agents/index.js +2 -0
- package/dist/cli/templates/agents/index.js.map +1 -1
- package/dist/cli/templates/content/sf-commit.d.ts +1 -1
- package/dist/cli/templates/content/sf-commit.d.ts.map +1 -1
- package/dist/cli/templates/content/sf-commit.js +2 -2
- package/dist/cli/templates/content/sf-commit.js.map +1 -1
- package/dist/cli/templates/content/sf-reset.d.ts +5 -2
- package/dist/cli/templates/content/sf-reset.d.ts.map +1 -1
- package/dist/cli/templates/content/sf-reset.js +41 -27
- package/dist/cli/templates/content/sf-reset.js.map +1 -1
- package/dist/lib/prompt-generator.d.ts +15 -3
- package/dist/lib/prompt-generator.d.ts.map +1 -1
- package/dist/lib/prompt-generator.js +14 -6
- package/dist/lib/prompt-generator.js.map +1 -1
- package/dist/lib/workflow-definitions.js +2 -2
- package/dist/lib/workflow-definitions.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -1
- package/dist/server.js.map +1 -1
- package/dist/tools/__tests__/complete-planning-double-call.test.d.ts +2 -0
- package/dist/tools/__tests__/complete-planning-double-call.test.d.ts.map +1 -0
- package/dist/tools/core/__tests__/file-existence-injection.test.d.ts +2 -0
- package/dist/tools/core/__tests__/file-existence-injection.test.d.ts.map +1 -0
- package/dist/tools/core/__tests__/git-injection.test.d.ts +2 -0
- package/dist/tools/core/__tests__/git-injection.test.d.ts.map +1 -0
- package/dist/tools/core/file-existence-injection.d.ts +22 -0
- package/dist/tools/core/file-existence-injection.d.ts.map +1 -0
- package/dist/tools/core/file-existence-injection.js +49 -0
- package/dist/tools/core/file-existence-injection.js.map +1 -0
- package/dist/tools/core/git-injection.d.ts +58 -0
- package/dist/tools/core/git-injection.d.ts.map +1 -0
- package/dist/tools/core/git-injection.js +79 -0
- package/dist/tools/core/git-injection.js.map +1 -0
- package/dist/tools/core/index.d.ts +1 -0
- package/dist/tools/core/index.d.ts.map +1 -1
- package/dist/tools/core/index.js +1 -0
- package/dist/tools/core/index.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +358 -440
- package/dist/tools/index.js.map +1 -1
- package/dist/transport/__tests__/remote.test.d.ts +2 -0
- package/dist/transport/__tests__/remote.test.d.ts.map +1 -0
- package/dist/transport/remote.d.ts.map +1 -1
- package/dist/transport/remote.js +23 -4
- package/dist/transport/remote.js.map +1 -1
- package/dist/types/index.d.ts +12 -32
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +0 -15
- package/dist/validation/index.js.map +1 -1
- package/node_modules/@specforge/api-types/README.md +38 -0
- package/node_modules/@specforge/api-types/dist/client/appsync-client.d.ts +21 -0
- package/node_modules/@specforge/api-types/dist/client/appsync-client.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/client/appsync-client.js +2 -0
- package/node_modules/@specforge/api-types/dist/client/appsync-client.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/client/index.d.ts +2 -0
- package/node_modules/@specforge/api-types/dist/client/index.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/client/index.js +2 -0
- package/node_modules/@specforge/api-types/dist/client/index.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/index.d.ts +5 -0
- package/node_modules/@specforge/api-types/dist/index.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/index.js +9 -0
- package/node_modules/@specforge/api-types/dist/index.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/mcp/error-guidance.d.ts +74 -0
- package/node_modules/@specforge/api-types/dist/mcp/error-guidance.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/mcp/error-guidance.js +21 -0
- package/node_modules/@specforge/api-types/dist/mcp/error-guidance.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/mcp/index.d.ts +4 -0
- package/node_modules/@specforge/api-types/dist/mcp/index.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/mcp/index.js +8 -0
- package/node_modules/@specforge/api-types/dist/mcp/index.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/mcp/lifecycle-envelope.d.ts +18 -0
- package/node_modules/@specforge/api-types/dist/mcp/lifecycle-envelope.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/mcp/lifecycle-envelope.js +2 -0
- package/node_modules/@specforge/api-types/dist/mcp/lifecycle-envelope.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/mcp/standard-envelope.d.ts +39 -0
- package/node_modules/@specforge/api-types/dist/mcp/standard-envelope.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/mcp/standard-envelope.js +2 -0
- package/node_modules/@specforge/api-types/dist/mcp/standard-envelope.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/billing-record.d.ts +18 -0
- package/node_modules/@specforge/api-types/dist/runtime/billing-record.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/billing-record.js +7 -0
- package/node_modules/@specforge/api-types/dist/runtime/billing-record.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/blueprint-record.d.ts +40 -0
- package/node_modules/@specforge/api-types/dist/runtime/blueprint-record.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/blueprint-record.js +19 -0
- package/node_modules/@specforge/api-types/dist/runtime/blueprint-record.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/dependency-tree.d.ts +96 -0
- package/node_modules/@specforge/api-types/dist/runtime/dependency-tree.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/dependency-tree.js +23 -0
- package/node_modules/@specforge/api-types/dist/runtime/dependency-tree.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/epic-record.d.ts +117 -0
- package/node_modules/@specforge/api-types/dist/runtime/epic-record.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/epic-record.js +13 -0
- package/node_modules/@specforge/api-types/dist/runtime/epic-record.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/feedback-record.d.ts +27 -0
- package/node_modules/@specforge/api-types/dist/runtime/feedback-record.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/feedback-record.js +7 -0
- package/node_modules/@specforge/api-types/dist/runtime/feedback-record.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/fields.d.ts +31 -0
- package/node_modules/@specforge/api-types/dist/runtime/fields.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/fields.js +156 -0
- package/node_modules/@specforge/api-types/dist/runtime/fields.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/index.d.ts +18 -0
- package/node_modules/@specforge/api-types/dist/runtime/index.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/index.js +18 -0
- package/node_modules/@specforge/api-types/dist/runtime/index.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/pagination.d.ts +38 -0
- package/node_modules/@specforge/api-types/dist/runtime/pagination.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/pagination.js +54 -0
- package/node_modules/@specforge/api-types/dist/runtime/pagination.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-invitation.d.ts +14 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-invitation.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-invitation.js +2 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-invitation.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-member.d.ts +13 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-member.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-member.js +2 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-member.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-validation.d.ts +26 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-validation.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-validation.js +5 -0
- package/node_modules/@specforge/api-types/dist/runtime/project-validation.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/project.d.ts +55 -0
- package/node_modules/@specforge/api-types/dist/runtime/project.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/project.js +10 -0
- package/node_modules/@specforge/api-types/dist/runtime/project.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/response.d.ts +22 -0
- package/node_modules/@specforge/api-types/dist/runtime/response.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/response.js +14 -0
- package/node_modules/@specforge/api-types/dist/runtime/response.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/specification-record.d.ts +90 -0
- package/node_modules/@specforge/api-types/dist/runtime/specification-record.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/specification-record.js +11 -0
- package/node_modules/@specforge/api-types/dist/runtime/specification-record.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/status.d.ts +26 -0
- package/node_modules/@specforge/api-types/dist/runtime/status.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/status.js +56 -0
- package/node_modules/@specforge/api-types/dist/runtime/status.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/summary.d.ts +58 -0
- package/node_modules/@specforge/api-types/dist/runtime/summary.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/summary.js +42 -0
- package/node_modules/@specforge/api-types/dist/runtime/summary.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/ticket-record.d.ts +212 -0
- package/node_modules/@specforge/api-types/dist/runtime/ticket-record.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/ticket-record.js +18 -0
- package/node_modules/@specforge/api-types/dist/runtime/ticket-record.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/user.d.ts +13 -0
- package/node_modules/@specforge/api-types/dist/runtime/user.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/runtime/user.js +9 -0
- package/node_modules/@specforge/api-types/dist/runtime/user.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-billing-store.d.ts +17 -0
- package/node_modules/@specforge/api-types/dist/stores/i-billing-store.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-billing-store.js +2 -0
- package/node_modules/@specforge/api-types/dist/stores/i-billing-store.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-blueprint-store.d.ts +59 -0
- package/node_modules/@specforge/api-types/dist/stores/i-blueprint-store.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-blueprint-store.js +2 -0
- package/node_modules/@specforge/api-types/dist/stores/i-blueprint-store.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-epic-store.d.ts +120 -0
- package/node_modules/@specforge/api-types/dist/stores/i-epic-store.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-epic-store.js +2 -0
- package/node_modules/@specforge/api-types/dist/stores/i-epic-store.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-feedback-store.d.ts +13 -0
- package/node_modules/@specforge/api-types/dist/stores/i-feedback-store.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-feedback-store.js +2 -0
- package/node_modules/@specforge/api-types/dist/stores/i-feedback-store.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-project-store.d.ts +48 -0
- package/node_modules/@specforge/api-types/dist/stores/i-project-store.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-project-store.js +2 -0
- package/node_modules/@specforge/api-types/dist/stores/i-project-store.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-sharing-store.d.ts +37 -0
- package/node_modules/@specforge/api-types/dist/stores/i-sharing-store.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-sharing-store.js +2 -0
- package/node_modules/@specforge/api-types/dist/stores/i-sharing-store.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-spec-store.d.ts +159 -0
- package/node_modules/@specforge/api-types/dist/stores/i-spec-store.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-spec-store.js +2 -0
- package/node_modules/@specforge/api-types/dist/stores/i-spec-store.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-ticket-dependency-store.d.ts +87 -0
- package/node_modules/@specforge/api-types/dist/stores/i-ticket-dependency-store.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-ticket-dependency-store.js +2 -0
- package/node_modules/@specforge/api-types/dist/stores/i-ticket-dependency-store.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-ticket-store.d.ts +347 -0
- package/node_modules/@specforge/api-types/dist/stores/i-ticket-store.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-ticket-store.js +2 -0
- package/node_modules/@specforge/api-types/dist/stores/i-ticket-store.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-user-store.d.ts +5 -0
- package/node_modules/@specforge/api-types/dist/stores/i-user-store.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/i-user-store.js +2 -0
- package/node_modules/@specforge/api-types/dist/stores/i-user-store.js.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/index.d.ts +11 -0
- package/node_modules/@specforge/api-types/dist/stores/index.d.ts.map +1 -0
- package/node_modules/@specforge/api-types/dist/stores/index.js +11 -0
- package/node_modules/@specforge/api-types/dist/stores/index.js.map +1 -0
- package/node_modules/@specforge/api-types/package.json +43 -0
- package/node_modules/@specforge/report-types/README.md +11 -0
- package/node_modules/@specforge/report-types/dist/index.d.ts +2 -0
- package/node_modules/@specforge/report-types/dist/index.d.ts.map +1 -0
- package/node_modules/@specforge/report-types/dist/index.js +2 -0
- package/node_modules/@specforge/report-types/dist/index.js.map +1 -0
- package/node_modules/@specforge/report-types/dist/reports.d.ts +90 -0
- package/node_modules/@specforge/report-types/dist/reports.d.ts.map +1 -0
- package/node_modules/@specforge/report-types/dist/reports.js +15 -0
- package/node_modules/@specforge/report-types/dist/reports.js.map +1 -0
- package/node_modules/@specforge/report-types/package.json +40 -0
- 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 +161 -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 +96 -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 +489 -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 +152 -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 +319 -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 +65 -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 +61 -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 +249 -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 +96 -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 +94 -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 +76 -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 +43 -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 +203 -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 +86 -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 +23 -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/node_modules/@specforge/spec-types/README.md +28 -0
- package/node_modules/@specforge/spec-types/dist/index.d.ts +4 -0
- package/node_modules/@specforge/spec-types/dist/index.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/index.js +6 -0
- package/node_modules/@specforge/spec-types/dist/index.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/json-schema/v1.1/openspec.schema.json +1129 -0
- package/node_modules/@specforge/spec-types/dist/openspec-schema.d.ts +4 -0
- package/node_modules/@specforge/spec-types/dist/openspec-schema.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/openspec-schema.js +77 -0
- package/node_modules/@specforge/spec-types/dist/openspec-schema.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/auxiliary.d.ts +14 -0
- package/node_modules/@specforge/spec-types/dist/runtime/auxiliary.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/auxiliary.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/auxiliary.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/blueprint.d.ts +7 -0
- package/node_modules/@specforge/spec-types/dist/runtime/blueprint.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/blueprint.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/blueprint.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/epic.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/epic.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/epic.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/epic.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/index.d.ts +7 -0
- package/node_modules/@specforge/spec-types/dist/runtime/index.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/index.js +7 -0
- package/node_modules/@specforge/spec-types/dist/runtime/index.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/api-contract.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/api-contract.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/api-contract.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/api-contract.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/goal.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/goal.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/goal.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/goal.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/guardrail.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/guardrail.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/guardrail.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/guardrail.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/index.d.ts +10 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/index.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/index.js +10 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/index.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/nfr.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/nfr.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/nfr.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/nfr.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/requirement.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/requirement.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/requirement.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/requirement.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/scope.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/scope.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/scope.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/scope.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/shared-pattern.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/shared-pattern.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/shared-pattern.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/shared-pattern.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/structure-item.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/structure-item.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/structure-item.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/structure-item.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/tech-stack.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/tech-stack.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/tech-stack.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/planning/tech-stack.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/specification.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/specification.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/specification.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/specification.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/ticket.d.ts +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/ticket.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/runtime/ticket.js +2 -0
- package/node_modules/@specforge/spec-types/dist/runtime/ticket.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/auxiliary.d.ts +266 -0
- package/node_modules/@specforge/spec-types/dist/schema/auxiliary.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/auxiliary.js +143 -0
- package/node_modules/@specforge/spec-types/dist/schema/auxiliary.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/blueprint.d.ts +47 -0
- package/node_modules/@specforge/spec-types/dist/schema/blueprint.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/blueprint.js +33 -0
- package/node_modules/@specforge/spec-types/dist/schema/blueprint.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/entity-field-schemas.d.ts +33 -0
- package/node_modules/@specforge/spec-types/dist/schema/entity-field-schemas.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/entity-field-schemas.js +181 -0
- package/node_modules/@specforge/spec-types/dist/schema/entity-field-schemas.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/epic.d.ts +955 -0
- package/node_modules/@specforge/spec-types/dist/schema/epic.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/epic.js +33 -0
- package/node_modules/@specforge/spec-types/dist/schema/epic.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/index.d.ts +12 -0
- package/node_modules/@specforge/spec-types/dist/schema/index.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/index.js +25 -0
- package/node_modules/@specforge/spec-types/dist/schema/index.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/node-verb-steps.d.ts +174 -0
- package/node_modules/@specforge/spec-types/dist/schema/node-verb-steps.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/node-verb-steps.js +317 -0
- package/node_modules/@specforge/spec-types/dist/schema/node-verb-steps.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/patterns.d.ts +274 -0
- package/node_modules/@specforge/spec-types/dist/schema/patterns.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/patterns.js +106 -0
- package/node_modules/@specforge/spec-types/dist/schema/patterns.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/api-contract.d.ts +44 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/api-contract.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/api-contract.js +13 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/api-contract.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/epic-category.d.ts +21 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/epic-category.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/epic-category.js +14 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/epic-category.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/goal.d.ts +27 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/goal.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/goal.js +13 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/goal.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/guardrail.d.ts +29 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/guardrail.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/guardrail.js +14 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/guardrail.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/index.d.ts +12 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/index.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/index.js +12 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/index.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/nfr.d.ts +27 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/nfr.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/nfr.js +15 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/nfr.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/planning-type.d.ts +17 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/planning-type.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/planning-type.js +16 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/planning-type.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/requirement.d.ts +63 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/requirement.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/requirement.js +16 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/requirement.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/scope.d.ts +19 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/scope.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/scope.js +8 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/scope.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/shared-pattern.d.ts +51 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/shared-pattern.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/shared-pattern.js +16 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/shared-pattern.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/structure-item.d.ts +19 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/structure-item.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/structure-item.js +8 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/structure-item.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/tech-stack.d.ts +27 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/tech-stack.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/tech-stack.js +14 -0
- package/node_modules/@specforge/spec-types/dist/schema/planning/tech-stack.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/specification.d.ts +1839 -0
- package/node_modules/@specforge/spec-types/dist/schema/specification.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/specification.js +43 -0
- package/node_modules/@specforge/spec-types/dist/schema/specification.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/step-link-coverage.d.ts +58 -0
- package/node_modules/@specforge/spec-types/dist/schema/step-link-coverage.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/step-link-coverage.js +73 -0
- package/node_modules/@specforge/spec-types/dist/schema/step-link-coverage.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/step-link-ids.d.ts +71 -0
- package/node_modules/@specforge/spec-types/dist/schema/step-link-ids.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/step-link-ids.js +96 -0
- package/node_modules/@specforge/spec-types/dist/schema/step-link-ids.js.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/ticket.d.ts +444 -0
- package/node_modules/@specforge/spec-types/dist/schema/ticket.d.ts.map +1 -0
- package/node_modules/@specforge/spec-types/dist/schema/ticket.js +49 -0
- package/node_modules/@specforge/spec-types/dist/schema/ticket.js.map +1 -0
- package/node_modules/@specforge/spec-types/package.json +41 -0
- package/package.json +40 -25
- package/src/cli/templates/agents/content/core/sfag-orchestrator.ts +135 -51
- package/src/cli/templates/agents/content/core/sfag-spec-creator.ts +124 -83
- package/src/cli/templates/agents/content/core/sfag-ticket-implementer.ts +247 -163
- package/src/cli/templates/agents/content/core/sfag-work-resolver.ts +211 -0
- package/src/cli/templates/agents/index.ts +2 -0
- package/src/cli/templates/content/sf-commit.ts +2 -2
- package/src/cli/templates/content/sf-reset.ts +45 -28
- package/src/cli/templates/skills/specforge-orchestrator.md +15 -10
- package/src/cli/templates/skills/specforge-worker.md +4 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../src/schema/epic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc,iDAA+C,CAAC;AAC3E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BrB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { TicketSchema } from './ticket.js';
|
|
3
|
+
import { AcceptanceCriterionSchema, FieldDeclarationSchema } from './auxiliary.js';
|
|
4
|
+
import { GoalSchema, ScopeSchema, ApiContractSchema, SharedPatternSchema, StructureItemSchema, EpicCategoryEnum, } from './planning/index.js';
|
|
5
|
+
// Runtime/model status vocabulary (the Epic `status` column). Canonical home so the
|
|
6
|
+
// ME.14.2 APS enum write-guard + the validator enum-parity guard share one source and
|
|
7
|
+
// can't drift from the AppSync model.
|
|
8
|
+
export const EpicStatusEnum = z.enum(['todo', 'in_progress', 'completed']);
|
|
9
|
+
export const EpicSchema = z.object({
|
|
10
|
+
id: z.string(),
|
|
11
|
+
specificationId: z.string(),
|
|
12
|
+
title: z.string().min(1),
|
|
13
|
+
description: z.string(),
|
|
14
|
+
objective: z.string(),
|
|
15
|
+
order: z.number().int().nonnegative().optional(),
|
|
16
|
+
estimatedMinutes: z.number().int().min(0).optional(),
|
|
17
|
+
architecture: z.string().optional(),
|
|
18
|
+
scope: ScopeSchema.optional(),
|
|
19
|
+
goals: z.array(GoalSchema).optional(),
|
|
20
|
+
acceptanceCriteria: z.array(AcceptanceCriterionSchema).optional(),
|
|
21
|
+
validationCommands: z.array(z.string()).optional(),
|
|
22
|
+
apiContracts: z.array(ApiContractSchema).optional(),
|
|
23
|
+
sharedPatterns: z.array(SharedPatternSchema).optional(),
|
|
24
|
+
fileStructures: z.array(StructureItemSchema).optional(),
|
|
25
|
+
// Coverage tracking (canonical home — D10 / M4.10.0 / M4.14)
|
|
26
|
+
requirementsCovered: z.array(z.string()).optional(),
|
|
27
|
+
nfrsCovered: z.array(z.string()).optional(),
|
|
28
|
+
goalsCovered: z.array(z.string()).optional(),
|
|
29
|
+
tickets: z.array(TicketSchema),
|
|
30
|
+
fieldDeclarations: z.record(z.string(), FieldDeclarationSchema).optional(),
|
|
31
|
+
category: EpicCategoryEnum.optional(),
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=epic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"epic.js","sourceRoot":"","sources":["../../src/schema/epic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACnF,OAAO,EACL,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAE7B,oFAAoF;AACpF,sFAAsF;AACtF,sCAAsC;AACtC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;AAG3E,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,CAAC,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,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAE5C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;IAE9B,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,sBAAsB,CAAC,CAAC,QAAQ,EAAE;IAC1E,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './auxiliary.js';
|
|
2
|
+
export * from './blueprint.js';
|
|
3
|
+
export * from './ticket.js';
|
|
4
|
+
export * from './epic.js';
|
|
5
|
+
export * from './specification.js';
|
|
6
|
+
export * from './patterns.js';
|
|
7
|
+
export * from './planning/index.js';
|
|
8
|
+
export * from './entity-field-schemas.js';
|
|
9
|
+
export * from './step-link-ids.js';
|
|
10
|
+
export * from './step-link-coverage.js';
|
|
11
|
+
export * from './node-verb-steps.js';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AAGnC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AAIpC,cAAc,2BAA2B,CAAC;AAK1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AAKxC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './auxiliary.js';
|
|
2
|
+
export * from './blueprint.js';
|
|
3
|
+
export * from './ticket.js';
|
|
4
|
+
export * from './epic.js';
|
|
5
|
+
export * from './specification.js';
|
|
6
|
+
// M26 — spec-domain pattern-inheritance + CLI producer shapes relocated from the
|
|
7
|
+
// retired @specforge/types (consumed by the @specforge/cli pattern resolver).
|
|
8
|
+
export * from './patterns.js';
|
|
9
|
+
export * from './planning/index.js';
|
|
10
|
+
// MB.1.1 — shared entity→field→schema map + the write-boundary id/order filler
|
|
11
|
+
// (single source for the read parser in @specforge/operations AND the planning
|
|
12
|
+
// write path in @specforge/lifecycle, which may not import @specforge/operations).
|
|
13
|
+
export * from './entity-field-schemas.js';
|
|
14
|
+
// MB.15.3 — deterministic step↔file/snippet id-derivation shared by the projection
|
|
15
|
+
// (@specforge/core apply-mutation) and the persistence write path
|
|
16
|
+
// (@specforge/lifecycle buildOpWriteItems), so inline-declared links resolve to the
|
|
17
|
+
// SAME ids in both planes.
|
|
18
|
+
export * from './step-link-ids.js';
|
|
19
|
+
export * from './step-link-coverage.js';
|
|
20
|
+
// ME.19.2 (D8/D17) — shared node-verb batch resolution (ticket_step_actions /
|
|
21
|
+
// ticket_criteria_actions) + step-role → TicketFileChange row/join derivation, used
|
|
22
|
+
// by BOTH the projection (@specforge/core apply-mutation) and the persistence write
|
|
23
|
+
// path (@specforge/lifecycle buildOpWriteItems) so they agree on ids + rows.
|
|
24
|
+
export * from './node-verb-steps.js';
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,iFAAiF;AACjF,8EAA8E;AAC9E,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,+EAA+E;AAC/E,+EAA+E;AAC/E,mFAAmF;AACnF,cAAc,2BAA2B,CAAC;AAC1C,mFAAmF;AACnF,kEAAkE;AAClE,oFAAoF;AACpF,2BAA2B;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,8EAA8E;AAC9E,oFAAoF;AACpF,oFAAoF;AACpF,6EAA6E;AAC7E,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ME.19.2 (D8/D17) — the SHARED batch-resolution + file-change-derivation for the
|
|
3
|
+
* ticket NODE VERBS (`ticket_step_actions` / `ticket_criteria_actions`) that
|
|
4
|
+
* replaced the retired `update_ticket`.
|
|
5
|
+
*
|
|
6
|
+
* Both the in-memory PROJECTION (`@specforge/core` apply-mutation — the state the
|
|
7
|
+
* validator scores) and the PERSISTENCE write plan (`@specforge/lifecycle`
|
|
8
|
+
* buildOpWriteItems) resolve the SAME batch (add/edit/remove/reorder) against the
|
|
9
|
+
* current ticket and derive the SAME `TicketFileChange` rows + step↔file joins, so
|
|
10
|
+
* the projected ids === the persisted ids (MB.15.3 lesson). `@specforge/core` cannot
|
|
11
|
+
* import `@specforge/lifecycle`, so this lives in the low-level `spec-types` (both
|
|
12
|
+
* depend on it), mirroring the `step-link-ids` single-source precedent.
|
|
13
|
+
*
|
|
14
|
+
* ⚠ Step-as-atom (D17): a step declares each file it touches by ROLE
|
|
15
|
+
* (`creates|modifies|deletes|imports|reads`) directly on `files[]`. The
|
|
16
|
+
* `TicketFileChange` rows are the DEDUPED union of every step's files (id is
|
|
17
|
+
* path-only — `deriveFileChangeId` no longer embeds the kind), and the step↔file
|
|
18
|
+
* join is INHERENT (each step links exactly the files it declares) — killing the
|
|
19
|
+
* old "resolve a produced path against a separate `filesToBe*` array" trap.
|
|
20
|
+
*/
|
|
21
|
+
/** A file a step touches, by role, with optional coupled symbol + rationale. */
|
|
22
|
+
export interface ResolvedStepFile {
|
|
23
|
+
path: string;
|
|
24
|
+
role: string;
|
|
25
|
+
symbol?: string;
|
|
26
|
+
why?: string;
|
|
27
|
+
}
|
|
28
|
+
/** A fully-resolved implementation step after the batch is applied. */
|
|
29
|
+
export interface ResolvedStep {
|
|
30
|
+
id: string;
|
|
31
|
+
text: string;
|
|
32
|
+
order: number;
|
|
33
|
+
files: ResolvedStepFile[];
|
|
34
|
+
/** Snippet links PRESERVED off the current step (node verbs don't author
|
|
35
|
+
* snippets; a step edit must not drop its established snippet links). */
|
|
36
|
+
linkedCodeSnippetIds: string[];
|
|
37
|
+
linkedTypeSnippetIds: string[];
|
|
38
|
+
}
|
|
39
|
+
/** A fully-resolved acceptance criterion after the batch is applied. */
|
|
40
|
+
export interface ResolvedCriterion {
|
|
41
|
+
id: string;
|
|
42
|
+
given: string;
|
|
43
|
+
when: string;
|
|
44
|
+
then: string;
|
|
45
|
+
order: number;
|
|
46
|
+
}
|
|
47
|
+
/** The id-bearing file-change sidecar + inherent step↔file joins derived from steps. */
|
|
48
|
+
export interface DerivedFileChanges {
|
|
49
|
+
rows: Array<{
|
|
50
|
+
id: string;
|
|
51
|
+
path: string;
|
|
52
|
+
kind: string;
|
|
53
|
+
symbol?: string;
|
|
54
|
+
why?: string;
|
|
55
|
+
}>;
|
|
56
|
+
stepLinks: Array<{
|
|
57
|
+
stepId: string;
|
|
58
|
+
fileChangeId: string;
|
|
59
|
+
}>;
|
|
60
|
+
}
|
|
61
|
+
/** The current recomposed read-shape of a step (linked ids, not authored files). */
|
|
62
|
+
export interface CurrentStepView {
|
|
63
|
+
id?: string;
|
|
64
|
+
text?: string;
|
|
65
|
+
order?: number;
|
|
66
|
+
linkedFileIds?: readonly string[];
|
|
67
|
+
linkedCodeSnippetIds?: readonly string[];
|
|
68
|
+
linkedTypeSnippetIds?: readonly string[];
|
|
69
|
+
/** Present only on a projection round-trip that kept the authored shape. */
|
|
70
|
+
files?: readonly unknown[];
|
|
71
|
+
}
|
|
72
|
+
/** The id-bearing file-change sidecar entry (`{id, path, kind, symbol?, why?}`). */
|
|
73
|
+
export interface FileRefView {
|
|
74
|
+
id?: string;
|
|
75
|
+
path?: string;
|
|
76
|
+
kind?: string;
|
|
77
|
+
symbol?: string;
|
|
78
|
+
why?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface StepBatch {
|
|
81
|
+
add?: Array<{
|
|
82
|
+
text?: unknown;
|
|
83
|
+
files?: unknown;
|
|
84
|
+
}>;
|
|
85
|
+
edit?: Array<{
|
|
86
|
+
stepId?: unknown;
|
|
87
|
+
text?: unknown;
|
|
88
|
+
files?: unknown;
|
|
89
|
+
}>;
|
|
90
|
+
remove?: unknown[];
|
|
91
|
+
reorder?: unknown[];
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Apply a `ticket_step_actions` batch (add/edit/remove/reorder) against the current
|
|
95
|
+
* steps and return the FULL resolved step set (positional order, minted ids). New
|
|
96
|
+
* steps get a positional id (`${ticketId}-is-${index}`, via `deriveStepId`); an
|
|
97
|
+
* edited step keeps its id (so its step↔file/snippet links survive). Both the
|
|
98
|
+
* projection and the persistence path call this with the same current state, so
|
|
99
|
+
* they mint identical ids.
|
|
100
|
+
*/
|
|
101
|
+
export declare function applyStepBatch(ticketId: string, currentSteps: readonly CurrentStepView[], refsById: Map<string, FileRefView>, batch: StepBatch): ResolvedStep[];
|
|
102
|
+
export interface CriterionBatch {
|
|
103
|
+
add?: Array<{
|
|
104
|
+
given?: unknown;
|
|
105
|
+
when?: unknown;
|
|
106
|
+
then?: unknown;
|
|
107
|
+
}>;
|
|
108
|
+
edit?: Array<{
|
|
109
|
+
criterionId?: unknown;
|
|
110
|
+
given?: unknown;
|
|
111
|
+
when?: unknown;
|
|
112
|
+
then?: unknown;
|
|
113
|
+
}>;
|
|
114
|
+
remove?: unknown[];
|
|
115
|
+
reorder?: unknown[];
|
|
116
|
+
}
|
|
117
|
+
export interface CurrentCriterionView {
|
|
118
|
+
id?: string;
|
|
119
|
+
given?: string;
|
|
120
|
+
when?: string;
|
|
121
|
+
then?: string;
|
|
122
|
+
order?: number;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Apply a `ticket_criteria_actions` batch against the current acceptance criteria
|
|
126
|
+
* and return the FULL resolved set (positional order + `${ticketId}-ac-${index}`
|
|
127
|
+
* ids, matching the persistence decompose). Acceptance criteria are positional
|
|
128
|
+
* (not id-carrying — the persistence `relatedReplace` always minted `-ac-${i}`),
|
|
129
|
+
* so an edit references the current positional id.
|
|
130
|
+
*/
|
|
131
|
+
export declare function applyCriteriaBatch(ticketId: string, currentCriteria: readonly CurrentCriterionView[], batch: CriterionBatch): ResolvedCriterion[];
|
|
132
|
+
/**
|
|
133
|
+
* Derive the deduped `TicketFileChange` rows + inherent step↔file joins from the
|
|
134
|
+
* resolved steps' `files[]` roles (ME.19.2 / D17). The id is path-only
|
|
135
|
+
* (`deriveFileChangeId` ignores the kind), so a path is ONE row; the join is
|
|
136
|
+
* inherent (every step links every file it declares). No path-vs-array resolution
|
|
137
|
+
* — the kind-embedded `deriveFileChangeId` trap is gone.
|
|
138
|
+
*/
|
|
139
|
+
export declare function deriveFileChangesFromSteps(ticketId: string, steps: readonly ResolvedStep[]): DerivedFileChanges;
|
|
140
|
+
/** ME.19.1 (D8/D17) — one `apply_creator_election` move: put `path` at `role`
|
|
141
|
+
* (normally `creates` — the elected ticket becomes the file's creator) onto its
|
|
142
|
+
* producing step (an existing `stepId`, else a NEW `text` step). */
|
|
143
|
+
export interface CreatorElectionMove {
|
|
144
|
+
path: string;
|
|
145
|
+
role: string;
|
|
146
|
+
producingStep?: {
|
|
147
|
+
text?: string;
|
|
148
|
+
stepId?: string;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Resolve an `apply_creator_election` batch for ONE creator ticket onto its steps:
|
|
153
|
+
* flip each elected file's role onto its producing step (MERGING with the step's
|
|
154
|
+
* existing files — never dropping the step's other files; a `text` election appends a
|
|
155
|
+
* NEW step), then return the FULL resolved step set. Built on `applyStepBatch` so the
|
|
156
|
+
* in-memory PROJECTION (`@specforge/core`) and the PERSISTENCE write plan
|
|
157
|
+
* (`@specforge/lifecycle`) mint identical step ids + derive identical file-change rows
|
|
158
|
+
* (MB.15.3 lesson). Callers derive the rows/joins via `deriveFileChangesFromSteps`.
|
|
159
|
+
*/
|
|
160
|
+
export declare function applyCreatorElectionSteps(ticketId: string, currentSteps: readonly CurrentStepView[], refsById: Map<string, FileRefView>, moves: readonly CreatorElectionMove[]): ResolvedStep[];
|
|
161
|
+
/** Build the `{id → ref}` lookup for `applyStepBatch` from a ticket's `fileChangeRefs`. */
|
|
162
|
+
export declare function fileRefsById(refs: readonly FileRefView[] | undefined): Map<string, FileRefView>;
|
|
163
|
+
/** Group derived rows into the DERIVED read projection (`filesToBe*`). The D17
|
|
164
|
+
* split: `filesToBeReferenced` = `imports` ∪ `reads`. */
|
|
165
|
+
export declare function filesToBeFromRows(rows: readonly {
|
|
166
|
+
path: string;
|
|
167
|
+
kind: string;
|
|
168
|
+
}[]): {
|
|
169
|
+
filesToBeCreated: string[];
|
|
170
|
+
filesToBeModified: string[];
|
|
171
|
+
filesToBeDeleted: string[];
|
|
172
|
+
filesToBeReferenced: string[];
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=node-verb-steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-verb-steps.d.ts","sourceRoot":"","sources":["../../src/schema/node-verb-steps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,gFAAgF;AAChF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,uEAAuE;AACvE,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B;8EAC0E;IA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,317 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ME.19.2 (D8/D17) — the SHARED batch-resolution + file-change-derivation for the
|
|
3
|
+
* ticket NODE VERBS (`ticket_step_actions` / `ticket_criteria_actions`) that
|
|
4
|
+
* replaced the retired `update_ticket`.
|
|
5
|
+
*
|
|
6
|
+
* Both the in-memory PROJECTION (`@specforge/core` apply-mutation — the state the
|
|
7
|
+
* validator scores) and the PERSISTENCE write plan (`@specforge/lifecycle`
|
|
8
|
+
* buildOpWriteItems) resolve the SAME batch (add/edit/remove/reorder) against the
|
|
9
|
+
* current ticket and derive the SAME `TicketFileChange` rows + step↔file joins, so
|
|
10
|
+
* the projected ids === the persisted ids (MB.15.3 lesson). `@specforge/core` cannot
|
|
11
|
+
* import `@specforge/lifecycle`, so this lives in the low-level `spec-types` (both
|
|
12
|
+
* depend on it), mirroring the `step-link-ids` single-source precedent.
|
|
13
|
+
*
|
|
14
|
+
* ⚠ Step-as-atom (D17): a step declares each file it touches by ROLE
|
|
15
|
+
* (`creates|modifies|deletes|imports|reads`) directly on `files[]`. The
|
|
16
|
+
* `TicketFileChange` rows are the DEDUPED union of every step's files (id is
|
|
17
|
+
* path-only — `deriveFileChangeId` no longer embeds the kind), and the step↔file
|
|
18
|
+
* join is INHERENT (each step links exactly the files it declares) — killing the
|
|
19
|
+
* old "resolve a produced path against a separate `filesToBe*` array" trap.
|
|
20
|
+
*/
|
|
21
|
+
import { deriveFileChangeId, deriveStepId } from './step-link-ids.js';
|
|
22
|
+
/** Role precedence for path dedup: a path is ONE `TicketFileChange` row (path-only
|
|
23
|
+
* id), so when the same path carries several roles across steps the
|
|
24
|
+
* highest-precedence role wins — deterministic (create > modify > delete >
|
|
25
|
+
* import > read). */
|
|
26
|
+
const ROLE_RANK = {
|
|
27
|
+
creates: 0,
|
|
28
|
+
modifies: 1,
|
|
29
|
+
deletes: 2,
|
|
30
|
+
imports: 3,
|
|
31
|
+
reads: 4,
|
|
32
|
+
};
|
|
33
|
+
function normalizeFiles(files) {
|
|
34
|
+
if (!Array.isArray(files))
|
|
35
|
+
return [];
|
|
36
|
+
const out = [];
|
|
37
|
+
for (const f of files) {
|
|
38
|
+
if (!f || typeof f !== 'object')
|
|
39
|
+
continue;
|
|
40
|
+
const o = f;
|
|
41
|
+
if (typeof o['path'] !== 'string' || !o['path'])
|
|
42
|
+
continue;
|
|
43
|
+
out.push({
|
|
44
|
+
path: o['path'],
|
|
45
|
+
role: typeof o['role'] === 'string' ? o['role'] : 'reads',
|
|
46
|
+
...(typeof o['symbol'] === 'string' ? { symbol: o['symbol'] } : {}),
|
|
47
|
+
...(typeof o['why'] === 'string' ? { why: o['why'] } : {}),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return out;
|
|
51
|
+
}
|
|
52
|
+
/** Reconstruct a step's authored `files[]` from its recomposed `linkedFileIds`
|
|
53
|
+
* resolved against the ticket's `fileChangeRefs` sidecar — so an EDIT that does
|
|
54
|
+
* not re-declare files preserves the step's existing file roles. */
|
|
55
|
+
function currentStepFiles(step, refsById) {
|
|
56
|
+
if (Array.isArray(step.files))
|
|
57
|
+
return normalizeFiles(step.files);
|
|
58
|
+
const out = [];
|
|
59
|
+
for (const id of step.linkedFileIds ?? []) {
|
|
60
|
+
const ref = refsById.get(id);
|
|
61
|
+
if (!ref || typeof ref.path !== 'string')
|
|
62
|
+
continue;
|
|
63
|
+
out.push({
|
|
64
|
+
path: ref.path,
|
|
65
|
+
role: typeof ref.kind === 'string' ? ref.kind : 'reads',
|
|
66
|
+
...(typeof ref.symbol === 'string' ? { symbol: ref.symbol } : {}),
|
|
67
|
+
...(typeof ref.why === 'string' ? { why: ref.why } : {}),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return out;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Apply a `ticket_step_actions` batch (add/edit/remove/reorder) against the current
|
|
74
|
+
* steps and return the FULL resolved step set (positional order, minted ids). New
|
|
75
|
+
* steps get a positional id (`${ticketId}-is-${index}`, via `deriveStepId`); an
|
|
76
|
+
* edited step keeps its id (so its step↔file/snippet links survive). Both the
|
|
77
|
+
* projection and the persistence path call this with the same current state, so
|
|
78
|
+
* they mint identical ids.
|
|
79
|
+
*/
|
|
80
|
+
export function applyStepBatch(ticketId, currentSteps, refsById, batch) {
|
|
81
|
+
let list = (currentSteps ?? []).map((s) => ({
|
|
82
|
+
id: typeof s.id === 'string' ? s.id : '',
|
|
83
|
+
text: typeof s.text === 'string' ? s.text : '',
|
|
84
|
+
files: currentStepFiles(s, refsById),
|
|
85
|
+
linkedCodeSnippetIds: [...(s.linkedCodeSnippetIds ?? [])],
|
|
86
|
+
linkedTypeSnippetIds: [...(s.linkedTypeSnippetIds ?? [])],
|
|
87
|
+
}));
|
|
88
|
+
for (const e of batch.edit ?? []) {
|
|
89
|
+
const stepId = typeof e?.stepId === 'string' ? e.stepId : '';
|
|
90
|
+
if (!stepId)
|
|
91
|
+
continue;
|
|
92
|
+
const st = list.find((s) => s.id === stepId);
|
|
93
|
+
if (!st)
|
|
94
|
+
continue;
|
|
95
|
+
if (typeof e.text === 'string')
|
|
96
|
+
st.text = e.text;
|
|
97
|
+
if (Array.isArray(e.files))
|
|
98
|
+
st.files = normalizeFiles(e.files);
|
|
99
|
+
}
|
|
100
|
+
if (Array.isArray(batch.remove) && batch.remove.length > 0) {
|
|
101
|
+
const rm = new Set(batch.remove.filter((x) => typeof x === 'string'));
|
|
102
|
+
list = list.filter((s) => !rm.has(s.id));
|
|
103
|
+
}
|
|
104
|
+
for (const a of batch.add ?? []) {
|
|
105
|
+
list.push({
|
|
106
|
+
id: '',
|
|
107
|
+
text: typeof a?.text === 'string' ? a.text : '',
|
|
108
|
+
files: normalizeFiles(a?.files),
|
|
109
|
+
linkedCodeSnippetIds: [],
|
|
110
|
+
linkedTypeSnippetIds: [],
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
if (Array.isArray(batch.reorder) && batch.reorder.length > 0) {
|
|
114
|
+
const orderIdx = new Map();
|
|
115
|
+
batch.reorder.forEach((id, i) => {
|
|
116
|
+
if (typeof id === 'string')
|
|
117
|
+
orderIdx.set(id, i);
|
|
118
|
+
});
|
|
119
|
+
// Steps named in `reorder` take their given order; the rest keep their
|
|
120
|
+
// relative order AFTER the named ones (new steps have no id → end).
|
|
121
|
+
list = list
|
|
122
|
+
.map((s, i) => ({ s, i }))
|
|
123
|
+
.sort((a, b) => {
|
|
124
|
+
const ra = orderIdx.has(a.s.id) ? orderIdx.get(a.s.id) : Number.MAX_SAFE_INTEGER;
|
|
125
|
+
const rb = orderIdx.has(b.s.id) ? orderIdx.get(b.s.id) : Number.MAX_SAFE_INTEGER;
|
|
126
|
+
return ra === rb ? a.i - b.i : ra - rb;
|
|
127
|
+
})
|
|
128
|
+
.map((x) => x.s);
|
|
129
|
+
}
|
|
130
|
+
return list.map((s, i) => ({
|
|
131
|
+
id: s.id && s.id.length > 0 ? s.id : deriveStepId(ticketId, i, undefined),
|
|
132
|
+
text: s.text,
|
|
133
|
+
order: i + 1,
|
|
134
|
+
files: s.files,
|
|
135
|
+
linkedCodeSnippetIds: s.linkedCodeSnippetIds,
|
|
136
|
+
linkedTypeSnippetIds: s.linkedTypeSnippetIds,
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Apply a `ticket_criteria_actions` batch against the current acceptance criteria
|
|
141
|
+
* and return the FULL resolved set (positional order + `${ticketId}-ac-${index}`
|
|
142
|
+
* ids, matching the persistence decompose). Acceptance criteria are positional
|
|
143
|
+
* (not id-carrying — the persistence `relatedReplace` always minted `-ac-${i}`),
|
|
144
|
+
* so an edit references the current positional id.
|
|
145
|
+
*/
|
|
146
|
+
export function applyCriteriaBatch(ticketId, currentCriteria, batch) {
|
|
147
|
+
let list = (currentCriteria ?? []).map((c) => ({
|
|
148
|
+
id: typeof c.id === 'string' ? c.id : '',
|
|
149
|
+
given: typeof c.given === 'string' ? c.given : '',
|
|
150
|
+
when: typeof c.when === 'string' ? c.when : '',
|
|
151
|
+
then: typeof c.then === 'string' ? c.then : '',
|
|
152
|
+
}));
|
|
153
|
+
for (const e of batch.edit ?? []) {
|
|
154
|
+
const cid = typeof e?.criterionId === 'string' ? e.criterionId : '';
|
|
155
|
+
if (!cid)
|
|
156
|
+
continue;
|
|
157
|
+
const c = list.find((x) => x.id === cid);
|
|
158
|
+
if (!c)
|
|
159
|
+
continue;
|
|
160
|
+
if (typeof e.given === 'string')
|
|
161
|
+
c.given = e.given;
|
|
162
|
+
if (typeof e.when === 'string')
|
|
163
|
+
c.when = e.when;
|
|
164
|
+
if (typeof e.then === 'string')
|
|
165
|
+
c.then = e.then;
|
|
166
|
+
}
|
|
167
|
+
if (Array.isArray(batch.remove) && batch.remove.length > 0) {
|
|
168
|
+
const rm = new Set(batch.remove.filter((x) => typeof x === 'string'));
|
|
169
|
+
list = list.filter((c) => !rm.has(c.id));
|
|
170
|
+
}
|
|
171
|
+
for (const a of batch.add ?? []) {
|
|
172
|
+
list.push({
|
|
173
|
+
id: '',
|
|
174
|
+
given: typeof a?.given === 'string' ? a.given : '',
|
|
175
|
+
when: typeof a?.when === 'string' ? a.when : '',
|
|
176
|
+
then: typeof a?.then === 'string' ? a.then : '',
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
if (Array.isArray(batch.reorder) && batch.reorder.length > 0) {
|
|
180
|
+
const orderIdx = new Map();
|
|
181
|
+
batch.reorder.forEach((id, i) => {
|
|
182
|
+
if (typeof id === 'string')
|
|
183
|
+
orderIdx.set(id, i);
|
|
184
|
+
});
|
|
185
|
+
list = list
|
|
186
|
+
.map((c, i) => ({ c, i }))
|
|
187
|
+
.sort((a, b) => {
|
|
188
|
+
const ra = orderIdx.has(a.c.id) ? orderIdx.get(a.c.id) : Number.MAX_SAFE_INTEGER;
|
|
189
|
+
const rb = orderIdx.has(b.c.id) ? orderIdx.get(b.c.id) : Number.MAX_SAFE_INTEGER;
|
|
190
|
+
return ra === rb ? a.i - b.i : ra - rb;
|
|
191
|
+
})
|
|
192
|
+
.map((x) => x.c);
|
|
193
|
+
}
|
|
194
|
+
return list.map((c, i) => ({
|
|
195
|
+
id: c.id && c.id.length > 0 ? c.id : `${ticketId}-ac-${i}`,
|
|
196
|
+
given: c.given,
|
|
197
|
+
when: c.when,
|
|
198
|
+
then: c.then,
|
|
199
|
+
order: i + 1,
|
|
200
|
+
}));
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Derive the deduped `TicketFileChange` rows + inherent step↔file joins from the
|
|
204
|
+
* resolved steps' `files[]` roles (ME.19.2 / D17). The id is path-only
|
|
205
|
+
* (`deriveFileChangeId` ignores the kind), so a path is ONE row; the join is
|
|
206
|
+
* inherent (every step links every file it declares). No path-vs-array resolution
|
|
207
|
+
* — the kind-embedded `deriveFileChangeId` trap is gone.
|
|
208
|
+
*/
|
|
209
|
+
export function deriveFileChangesFromSteps(ticketId, steps) {
|
|
210
|
+
const byPath = new Map();
|
|
211
|
+
for (const step of steps) {
|
|
212
|
+
for (const f of step.files ?? []) {
|
|
213
|
+
if (!f || typeof f.path !== 'string' || !f.path)
|
|
214
|
+
continue;
|
|
215
|
+
const existing = byPath.get(f.path);
|
|
216
|
+
if (!existing || (ROLE_RANK[f.role] ?? 99) < (ROLE_RANK[existing.role] ?? 99)) {
|
|
217
|
+
byPath.set(f.path, f);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
const rows = [...byPath.values()].map((f) => ({
|
|
222
|
+
id: deriveFileChangeId(ticketId, f.role, f.path),
|
|
223
|
+
path: f.path,
|
|
224
|
+
kind: f.role,
|
|
225
|
+
...(f.symbol !== undefined ? { symbol: f.symbol } : {}),
|
|
226
|
+
...(f.why !== undefined ? { why: f.why } : {}),
|
|
227
|
+
}));
|
|
228
|
+
const idByPath = new Map(rows.map((r) => [r.path, r.id]));
|
|
229
|
+
const stepLinks = [];
|
|
230
|
+
const seen = new Set();
|
|
231
|
+
for (const step of steps) {
|
|
232
|
+
for (const f of step.files ?? []) {
|
|
233
|
+
const fcId = idByPath.get(f?.path);
|
|
234
|
+
if (!fcId)
|
|
235
|
+
continue;
|
|
236
|
+
const key = `${step.id}--${fcId}`;
|
|
237
|
+
if (seen.has(key))
|
|
238
|
+
continue;
|
|
239
|
+
seen.add(key);
|
|
240
|
+
stepLinks.push({ stepId: step.id, fileChangeId: fcId });
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return { rows, stepLinks };
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Resolve an `apply_creator_election` batch for ONE creator ticket onto its steps:
|
|
247
|
+
* flip each elected file's role onto its producing step (MERGING with the step's
|
|
248
|
+
* existing files — never dropping the step's other files; a `text` election appends a
|
|
249
|
+
* NEW step), then return the FULL resolved step set. Built on `applyStepBatch` so the
|
|
250
|
+
* in-memory PROJECTION (`@specforge/core`) and the PERSISTENCE write plan
|
|
251
|
+
* (`@specforge/lifecycle`) mint identical step ids + derive identical file-change rows
|
|
252
|
+
* (MB.15.3 lesson). Callers derive the rows/joins via `deriveFileChangesFromSteps`.
|
|
253
|
+
*/
|
|
254
|
+
export function applyCreatorElectionSteps(ticketId, currentSteps, refsById, moves) {
|
|
255
|
+
// Reconstruct each current step's authored files (round-trips linkedFileIds+refs).
|
|
256
|
+
const base = applyStepBatch(ticketId, currentSteps, refsById, {});
|
|
257
|
+
const filesByStepId = new Map(base.map((s) => [s.id, [...s.files]]));
|
|
258
|
+
const editedStepIds = new Set();
|
|
259
|
+
const add = [];
|
|
260
|
+
for (const m of moves) {
|
|
261
|
+
if (!m || typeof m.path !== 'string' || !m.path)
|
|
262
|
+
continue;
|
|
263
|
+
const role = typeof m.role === 'string' && m.role ? m.role : 'creates';
|
|
264
|
+
const sid = m.producingStep?.stepId;
|
|
265
|
+
if (typeof sid === 'string' && sid && filesByStepId.has(sid)) {
|
|
266
|
+
const merged = filesByStepId.get(sid).filter((f) => f.path !== m.path);
|
|
267
|
+
merged.push({ path: m.path, role });
|
|
268
|
+
filesByStepId.set(sid, merged);
|
|
269
|
+
editedStepIds.add(sid);
|
|
270
|
+
}
|
|
271
|
+
else if (typeof m.producingStep?.text === 'string' && m.producingStep.text) {
|
|
272
|
+
add.push({ text: m.producingStep.text, files: [{ path: m.path, role }] });
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
const edit = [...editedStepIds].map((stepId) => ({ stepId, files: filesByStepId.get(stepId) }));
|
|
276
|
+
return applyStepBatch(ticketId, currentSteps, refsById, { edit, add });
|
|
277
|
+
}
|
|
278
|
+
/** Build the `{id → ref}` lookup for `applyStepBatch` from a ticket's `fileChangeRefs`. */
|
|
279
|
+
export function fileRefsById(refs) {
|
|
280
|
+
const m = new Map();
|
|
281
|
+
for (const r of refs ?? []) {
|
|
282
|
+
if (r && typeof r.id === 'string')
|
|
283
|
+
m.set(r.id, r);
|
|
284
|
+
}
|
|
285
|
+
return m;
|
|
286
|
+
}
|
|
287
|
+
/** Group derived rows into the DERIVED read projection (`filesToBe*`). The D17
|
|
288
|
+
* split: `filesToBeReferenced` = `imports` ∪ `reads`. */
|
|
289
|
+
export function filesToBeFromRows(rows) {
|
|
290
|
+
const out = {
|
|
291
|
+
filesToBeCreated: [],
|
|
292
|
+
filesToBeModified: [],
|
|
293
|
+
filesToBeDeleted: [],
|
|
294
|
+
filesToBeReferenced: [],
|
|
295
|
+
};
|
|
296
|
+
for (const r of rows) {
|
|
297
|
+
switch (r.kind) {
|
|
298
|
+
case 'creates':
|
|
299
|
+
out.filesToBeCreated.push(r.path);
|
|
300
|
+
break;
|
|
301
|
+
case 'modifies':
|
|
302
|
+
out.filesToBeModified.push(r.path);
|
|
303
|
+
break;
|
|
304
|
+
case 'deletes':
|
|
305
|
+
out.filesToBeDeleted.push(r.path);
|
|
306
|
+
break;
|
|
307
|
+
case 'imports':
|
|
308
|
+
out.filesToBeReferenced.push(r.path);
|
|
309
|
+
break;
|
|
310
|
+
case 'reads':
|
|
311
|
+
out.filesToBeReferenced.push(r.path);
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return out;
|
|
316
|
+
}
|
|
317
|
+
//# sourceMappingURL=node-verb-steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-verb-steps.js","sourceRoot":"","sources":["../../src/schema/node-verb-steps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAqCtE;;;sBAGsB;AACtB,MAAM,SAAS,GAA2B;IACxC,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,CAAC;IACX,OAAO,EAAE,CAAC;IACV,OAAO,EAAE,CAAC;IACV,KAAK,EAAE,CAAC;CACT,CAAC;AAEF,SAAS,cAAc,CAAC,KAAc;IACpC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACrC,MAAM,GAAG,GAAuB,EAAE,CAAC;IACnC,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,IAAI,CAAC,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ;YAAE,SAAS;QAC1C,MAAM,CAAC,GAAG,CAA4B,CAAC;QACvC,IAAI,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;YAAE,SAAS;QAC1D,GAAG,CAAC,IAAI,CAAC;YACP,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;YACf,IAAI,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO;YACzD,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,QAA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