@rsaglobaltech/specgate 0.8.1
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/CHANGELOG.md +1016 -0
- package/README.md +148 -0
- package/bin/specgate.js +2 -0
- package/bin/specgate.ts +383 -0
- package/dist/bin/specgate.js +342 -0
- package/dist/bin/specgate.js.map +1 -0
- package/dist/packages/core/src/application/AddRequirementUseCase.js +24 -0
- package/dist/packages/core/src/application/AddRequirementUseCase.js.map +1 -0
- package/dist/packages/core/src/application/ArchiveChangeUseCase.js +185 -0
- package/dist/packages/core/src/application/ArchiveChangeUseCase.js.map +1 -0
- package/dist/packages/core/src/application/CheckAgainstLockUseCase.js +134 -0
- package/dist/packages/core/src/application/CheckAgainstLockUseCase.js.map +1 -0
- package/dist/packages/core/src/application/GenerateAgentPromptUseCase.js +25 -0
- package/dist/packages/core/src/application/GenerateAgentPromptUseCase.js.map +1 -0
- package/dist/packages/core/src/application/GeneratePlanUseCase.js +135 -0
- package/dist/packages/core/src/application/GeneratePlanUseCase.js.map +1 -0
- package/dist/packages/core/src/application/LinkRequirementUseCase.js +25 -0
- package/dist/packages/core/src/application/LinkRequirementUseCase.js.map +1 -0
- package/dist/packages/core/src/application/RemovePackUseCase.js +28 -0
- package/dist/packages/core/src/application/RemovePackUseCase.js.map +1 -0
- package/dist/packages/core/src/application/UpdateRequirementStatusUseCase.js +37 -0
- package/dist/packages/core/src/application/UpdateRequirementStatusUseCase.js.map +1 -0
- package/dist/packages/core/src/application/ValidateChangeUseCase.js +86 -0
- package/dist/packages/core/src/application/ValidateChangeUseCase.js.map +1 -0
- package/dist/packages/core/src/application/ValidateProjectUseCase.js +101 -0
- package/dist/packages/core/src/application/ValidateProjectUseCase.js.map +1 -0
- package/dist/packages/core/src/application/ports/IDomainPackRepository.js +3 -0
- package/dist/packages/core/src/application/ports/IDomainPackRepository.js.map +1 -0
- package/dist/packages/core/src/application/ports/IHarnessConfigRepository.js +3 -0
- package/dist/packages/core/src/application/ports/IHarnessConfigRepository.js.map +1 -0
- package/dist/packages/core/src/application/ports/ILockfileRepository.js +3 -0
- package/dist/packages/core/src/application/ports/ILockfileRepository.js.map +1 -0
- package/dist/packages/core/src/application/ports/IManifestRepository.js +3 -0
- package/dist/packages/core/src/application/ports/IManifestRepository.js.map +1 -0
- package/dist/packages/core/src/application/ports/IProjectRepository.js +3 -0
- package/dist/packages/core/src/application/ports/IProjectRepository.js.map +1 -0
- package/dist/packages/core/src/application/ports/IRequirementGraphRepository.js +3 -0
- package/dist/packages/core/src/application/ports/IRequirementGraphRepository.js.map +1 -0
- package/dist/packages/core/src/application/ports/ITraceabilityRepository.js +3 -0
- package/dist/packages/core/src/application/ports/ITraceabilityRepository.js.map +1 -0
- package/dist/packages/core/src/domain/AgentPrompt.js +79 -0
- package/dist/packages/core/src/domain/AgentPrompt.js.map +1 -0
- package/dist/packages/core/src/domain/ArchivePlan.js +26 -0
- package/dist/packages/core/src/domain/ArchivePlan.js.map +1 -0
- package/dist/packages/core/src/domain/AuthoringScope.js +48 -0
- package/dist/packages/core/src/domain/AuthoringScope.js.map +1 -0
- package/dist/packages/core/src/domain/ChangeTemplates.js +133 -0
- package/dist/packages/core/src/domain/ChangeTemplates.js.map +1 -0
- package/dist/packages/core/src/domain/CucumberMessages.js +256 -0
- package/dist/packages/core/src/domain/CucumberMessages.js.map +1 -0
- package/dist/packages/core/src/domain/DeclaredArtifacts.js +117 -0
- package/dist/packages/core/src/domain/DeclaredArtifacts.js.map +1 -0
- package/dist/packages/core/src/domain/DeltaSpec.js +219 -0
- package/dist/packages/core/src/domain/DeltaSpec.js.map +1 -0
- package/dist/packages/core/src/domain/Diagnostic.js +75 -0
- package/dist/packages/core/src/domain/Diagnostic.js.map +1 -0
- package/dist/packages/core/src/domain/DomainPack.js +62 -0
- package/dist/packages/core/src/domain/DomainPack.js.map +1 -0
- package/dist/packages/core/src/domain/EmptyAttempt.js +60 -0
- package/dist/packages/core/src/domain/EmptyAttempt.js.map +1 -0
- package/dist/packages/core/src/domain/FileChangeSet.js +37 -0
- package/dist/packages/core/src/domain/FileChangeSet.js.map +1 -0
- package/dist/packages/core/src/domain/Gherkin.js +272 -0
- package/dist/packages/core/src/domain/Gherkin.js.map +1 -0
- package/dist/packages/core/src/domain/GherkinDialects.js +97 -0
- package/dist/packages/core/src/domain/GherkinDialects.js.map +1 -0
- package/dist/packages/core/src/domain/GherkinQuality.js +160 -0
- package/dist/packages/core/src/domain/GherkinQuality.js.map +1 -0
- package/dist/packages/core/src/domain/GherkinTags.js +119 -0
- package/dist/packages/core/src/domain/GherkinTags.js.map +1 -0
- package/dist/packages/core/src/domain/GitSafety.js +77 -0
- package/dist/packages/core/src/domain/GitSafety.js.map +1 -0
- package/dist/packages/core/src/domain/HarnessConfig.js +58 -0
- package/dist/packages/core/src/domain/HarnessConfig.js.map +1 -0
- package/dist/packages/core/src/domain/HarnessReport.js +162 -0
- package/dist/packages/core/src/domain/HarnessReport.js.map +1 -0
- package/dist/packages/core/src/domain/HarnessRun.js +154 -0
- package/dist/packages/core/src/domain/HarnessRun.js.map +1 -0
- package/dist/packages/core/src/domain/InboundChange.js +127 -0
- package/dist/packages/core/src/domain/InboundChange.js.map +1 -0
- package/dist/packages/core/src/domain/Language.js +112 -0
- package/dist/packages/core/src/domain/Language.js.map +1 -0
- package/dist/packages/core/src/domain/Lockfile.js +64 -0
- package/dist/packages/core/src/domain/Lockfile.js.map +1 -0
- package/dist/packages/core/src/domain/PackContribution.js +106 -0
- package/dist/packages/core/src/domain/PackContribution.js.map +1 -0
- package/dist/packages/core/src/domain/PackDelta.js +298 -0
- package/dist/packages/core/src/domain/PackDelta.js.map +1 -0
- package/dist/packages/core/src/domain/PackSpec.js +481 -0
- package/dist/packages/core/src/domain/PackSpec.js.map +1 -0
- package/dist/packages/core/src/domain/ProfileMatch.js +87 -0
- package/dist/packages/core/src/domain/ProfileMatch.js.map +1 -0
- package/dist/packages/core/src/domain/Reconciliation.js +72 -0
- package/dist/packages/core/src/domain/Reconciliation.js.map +1 -0
- package/dist/packages/core/src/domain/RequirementGraph.js +197 -0
- package/dist/packages/core/src/domain/RequirementGraph.js.map +1 -0
- package/dist/packages/core/src/domain/RequirementPlan.js +85 -0
- package/dist/packages/core/src/domain/RequirementPlan.js.map +1 -0
- package/dist/packages/core/src/domain/RequirementReadiness.js +115 -0
- package/dist/packages/core/src/domain/RequirementReadiness.js.map +1 -0
- package/dist/packages/core/src/domain/RequirementSyntax.js +91 -0
- package/dist/packages/core/src/domain/RequirementSyntax.js.map +1 -0
- package/dist/packages/core/src/domain/ResumeState.js +115 -0
- package/dist/packages/core/src/domain/ResumeState.js.map +1 -0
- package/dist/packages/core/src/domain/RunBudget.js +103 -0
- package/dist/packages/core/src/domain/RunBudget.js.map +1 -0
- package/dist/packages/core/src/domain/SpecDiff.js +48 -0
- package/dist/packages/core/src/domain/SpecDiff.js.map +1 -0
- package/dist/packages/core/src/domain/SpecParser.js +406 -0
- package/dist/packages/core/src/domain/SpecParser.js.map +1 -0
- package/dist/packages/core/src/domain/SpecopsManifest.js +90 -0
- package/dist/packages/core/src/domain/SpecopsManifest.js.map +1 -0
- package/dist/packages/core/src/domain/TraceabilityFormat.js +317 -0
- package/dist/packages/core/src/domain/TraceabilityFormat.js.map +1 -0
- package/dist/packages/core/src/domain/TraceabilityMatrix.js +200 -0
- package/dist/packages/core/src/domain/TraceabilityMatrix.js.map +1 -0
- package/dist/packages/core/src/domain/TraceabilityMerge.js +180 -0
- package/dist/packages/core/src/domain/TraceabilityMerge.js.map +1 -0
- package/dist/packages/core/src/domain/ValidationReport.js +53 -0
- package/dist/packages/core/src/domain/ValidationReport.js.map +1 -0
- package/dist/packages/core/src/domain/ValueAnnotations.js +138 -0
- package/dist/packages/core/src/domain/ValueAnnotations.js.map +1 -0
- package/dist/packages/core/src/domain/WriteScope.js +155 -0
- package/dist/packages/core/src/domain/WriteScope.js.map +1 -0
- package/dist/packages/core/src/domain/YamlLite.js +226 -0
- package/dist/packages/core/src/domain/YamlLite.js.map +1 -0
- package/dist/packages/core/src/index.js +120 -0
- package/dist/packages/core/src/index.js.map +1 -0
- package/dist/packages/core/src/infrastructure/ChangeWorkspace.js +276 -0
- package/dist/packages/core/src/infrastructure/ChangeWorkspace.js.map +1 -0
- package/dist/packages/core/src/infrastructure/ConsoleReporter.js +19 -0
- package/dist/packages/core/src/infrastructure/ConsoleReporter.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DirectorySnapshot.js +106 -0
- package/dist/packages/core/src/infrastructure/DirectorySnapshot.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DiskDomainPackRepository.js +57 -0
- package/dist/packages/core/src/infrastructure/DiskDomainPackRepository.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DiskHarnessConfigRepository.js +58 -0
- package/dist/packages/core/src/infrastructure/DiskHarnessConfigRepository.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DiskLanguageRepository.js +69 -0
- package/dist/packages/core/src/infrastructure/DiskLanguageRepository.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DiskLockfileRepository.js +64 -0
- package/dist/packages/core/src/infrastructure/DiskLockfileRepository.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DiskManifestRepository.js +88 -0
- package/dist/packages/core/src/infrastructure/DiskManifestRepository.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DiskPackDeltaRepository.js +138 -0
- package/dist/packages/core/src/infrastructure/DiskPackDeltaRepository.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DiskPackRepository.js +130 -0
- package/dist/packages/core/src/infrastructure/DiskPackRepository.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DiskProjectRepository.js +127 -0
- package/dist/packages/core/src/infrastructure/DiskProjectRepository.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DiskRequirementGraphRepository.js +124 -0
- package/dist/packages/core/src/infrastructure/DiskRequirementGraphRepository.js.map +1 -0
- package/dist/packages/core/src/infrastructure/DiskTraceabilityRepository.js +53 -0
- package/dist/packages/core/src/infrastructure/DiskTraceabilityRepository.js.map +1 -0
- package/dist/packages/core/src/infrastructure/GitContributionStager.js +99 -0
- package/dist/packages/core/src/infrastructure/GitContributionStager.js.map +1 -0
- package/dist/packages/core/src/infrastructure/GitMergeDriver.js +103 -0
- package/dist/packages/core/src/infrastructure/GitMergeDriver.js.map +1 -0
- package/dist/packages/core/src/infrastructure/HarnessConfigFile.js +348 -0
- package/dist/packages/core/src/infrastructure/HarnessConfigFile.js.map +1 -0
- package/dist/packages/core/src/infrastructure/PackChangeDeposit.js +106 -0
- package/dist/packages/core/src/infrastructure/PackChangeDeposit.js.map +1 -0
- package/dist/packages/core/src/infrastructure/RemotePackResolver.js +181 -0
- package/dist/packages/core/src/infrastructure/RemotePackResolver.js.map +1 -0
- package/dist/packages/core/src/infrastructure/SpecopsConfigFile.js +94 -0
- package/dist/packages/core/src/infrastructure/SpecopsConfigFile.js.map +1 -0
- package/dist/packages/core/test/unit/authoring-scope.test.js +102 -0
- package/dist/packages/core/test/unit/authoring-scope.test.js.map +1 -0
- package/dist/packages/core/test/unit/change-templates.test.js +96 -0
- package/dist/packages/core/test/unit/change-templates.test.js.map +1 -0
- package/dist/packages/core/test/unit/cucumber-messages.test.js +232 -0
- package/dist/packages/core/test/unit/cucumber-messages.test.js.map +1 -0
- package/dist/packages/core/test/unit/declared-artifacts.test.js +124 -0
- package/dist/packages/core/test/unit/declared-artifacts.test.js.map +1 -0
- package/dist/packages/core/test/unit/empty-attempt.test.js +79 -0
- package/dist/packages/core/test/unit/empty-attempt.test.js.map +1 -0
- package/dist/packages/core/test/unit/gherkin-dialects.test.js +115 -0
- package/dist/packages/core/test/unit/gherkin-dialects.test.js.map +1 -0
- package/dist/packages/core/test/unit/gherkin-keyword-case.test.js +110 -0
- package/dist/packages/core/test/unit/gherkin-keyword-case.test.js.map +1 -0
- package/dist/packages/core/test/unit/gherkin-quality.test.js +151 -0
- package/dist/packages/core/test/unit/gherkin-quality.test.js.map +1 -0
- package/dist/packages/core/test/unit/gherkin-tags.test.js +127 -0
- package/dist/packages/core/test/unit/gherkin-tags.test.js.map +1 -0
- package/dist/packages/core/test/unit/git-safety.test.js +104 -0
- package/dist/packages/core/test/unit/git-safety.test.js.map +1 -0
- package/dist/packages/core/test/unit/harness-report.test.js +192 -0
- package/dist/packages/core/test/unit/harness-report.test.js.map +1 -0
- package/dist/packages/core/test/unit/harness-roles.test.js +86 -0
- package/dist/packages/core/test/unit/harness-roles.test.js.map +1 -0
- package/dist/packages/core/test/unit/inbound-change.test.js +145 -0
- package/dist/packages/core/test/unit/inbound-change.test.js.map +1 -0
- package/dist/packages/core/test/unit/matrix-dependencies.test.js +100 -0
- package/dist/packages/core/test/unit/matrix-dependencies.test.js.map +1 -0
- package/dist/packages/core/test/unit/profile-match.test.js +115 -0
- package/dist/packages/core/test/unit/profile-match.test.js.map +1 -0
- package/dist/packages/core/test/unit/reconciliation.test.js +112 -0
- package/dist/packages/core/test/unit/reconciliation.test.js.map +1 -0
- package/dist/packages/core/test/unit/requirement-readiness.test.js +161 -0
- package/dist/packages/core/test/unit/requirement-readiness.test.js.map +1 -0
- package/dist/packages/core/test/unit/resume-state.test.js +124 -0
- package/dist/packages/core/test/unit/resume-state.test.js.map +1 -0
- package/dist/packages/core/test/unit/run-budget.test.js +113 -0
- package/dist/packages/core/test/unit/run-budget.test.js.map +1 -0
- package/dist/packages/core/test/unit/traceability-merge.test.js +159 -0
- package/dist/packages/core/test/unit/traceability-merge.test.js.map +1 -0
- package/dist/packages/core/test/unit/validate-project.test.js +156 -0
- package/dist/packages/core/test/unit/validate-project.test.js.map +1 -0
- package/dist/packages/core/test/unit/value-annotations.test.js +149 -0
- package/dist/packages/core/test/unit/value-annotations.test.js.map +1 -0
- package/dist/packages/core/test/unit/write-scope.test.js +165 -0
- package/dist/packages/core/test/unit/write-scope.test.js.map +1 -0
- package/dist/packages/core/test/unit/yaml-lite.test.js +78 -0
- package/dist/packages/core/test/unit/yaml-lite.test.js.map +1 -0
- package/dist/scripts/adopt_project.js +11 -0
- package/dist/scripts/adopt_project.js.map +1 -0
- package/dist/scripts/agents/commands.js +100 -0
- package/dist/scripts/agents/commands.js.map +1 -0
- package/dist/scripts/agents/init.js +482 -0
- package/dist/scripts/agents/init.js.map +1 -0
- package/dist/scripts/alm/cli.js +154 -0
- package/dist/scripts/alm/cli.js.map +1 -0
- package/dist/scripts/alm/clients.js +30 -0
- package/dist/scripts/alm/clients.js.map +1 -0
- package/dist/scripts/alm/core.js +258 -0
- package/dist/scripts/alm/core.js.map +1 -0
- package/dist/scripts/alm/port.js +116 -0
- package/dist/scripts/alm/port.js.map +1 -0
- package/dist/scripts/alm/providers/azure.js +79 -0
- package/dist/scripts/alm/providers/azure.js.map +1 -0
- package/dist/scripts/alm/providers/github.js +124 -0
- package/dist/scripts/alm/providers/github.js.map +1 -0
- package/dist/scripts/alm/providers/http-client.js +47 -0
- package/dist/scripts/alm/providers/http-client.js.map +1 -0
- package/dist/scripts/alm/providers/index.js +107 -0
- package/dist/scripts/alm/providers/index.js.map +1 -0
- package/dist/scripts/alm/providers/jira.js +129 -0
- package/dist/scripts/alm/providers/jira.js.map +1 -0
- package/dist/scripts/bundle_pack.js +10 -0
- package/dist/scripts/bundle_pack.js.map +1 -0
- package/dist/scripts/change/archive.js +68 -0
- package/dist/scripts/change/archive.js.map +1 -0
- package/dist/scripts/change/artifacts.js +143 -0
- package/dist/scripts/change/artifacts.js.map +1 -0
- package/dist/scripts/change/cli.js +39 -0
- package/dist/scripts/change/cli.js.map +1 -0
- package/dist/scripts/change/delta.js +20 -0
- package/dist/scripts/change/delta.js.map +1 -0
- package/dist/scripts/change/instructions.js +339 -0
- package/dist/scripts/change/instructions.js.map +1 -0
- package/dist/scripts/ci_init.js +12 -0
- package/dist/scripts/ci_init.js.map +1 -0
- package/dist/scripts/cli/commands/alm/PullCommand.js +238 -0
- package/dist/scripts/cli/commands/alm/PullCommand.js.map +1 -0
- package/dist/scripts/cli/commands/change/ChangeCommand.js +867 -0
- package/dist/scripts/cli/commands/change/ChangeCommand.js.map +1 -0
- package/dist/scripts/cli/commands/config/CiInitCommand.js +144 -0
- package/dist/scripts/cli/commands/config/CiInitCommand.js.map +1 -0
- package/dist/scripts/cli/commands/config/CompletionCommand.js +160 -0
- package/dist/scripts/cli/commands/config/CompletionCommand.js.map +1 -0
- package/dist/scripts/cli/commands/config/ConfigInitCommand.js +108 -0
- package/dist/scripts/cli/commands/config/ConfigInitCommand.js.map +1 -0
- package/dist/scripts/cli/commands/config/ConfigSetCommand.js +166 -0
- package/dist/scripts/cli/commands/config/ConfigSetCommand.js.map +1 -0
- package/dist/scripts/cli/commands/config/GenAgentContractCommand.js +212 -0
- package/dist/scripts/cli/commands/config/GenAgentContractCommand.js.map +1 -0
- package/dist/scripts/cli/commands/harness/RunCommand.js +1922 -0
- package/dist/scripts/cli/commands/harness/RunCommand.js.map +1 -0
- package/dist/scripts/cli/commands/mcp/McpInstallCommand.js +114 -0
- package/dist/scripts/cli/commands/mcp/McpInstallCommand.js.map +1 -0
- package/dist/scripts/cli/commands/mcp/index.js +29 -0
- package/dist/scripts/cli/commands/mcp/index.js.map +1 -0
- package/dist/scripts/cli/commands/pack/BundlePackCommand.js +59 -0
- package/dist/scripts/cli/commands/pack/BundlePackCommand.js.map +1 -0
- package/dist/scripts/cli/commands/pack/ExpandDomainPackCommand.js +559 -0
- package/dist/scripts/cli/commands/pack/ExpandDomainPackCommand.js.map +1 -0
- package/dist/scripts/cli/commands/pack/InferPackCommand.js +304 -0
- package/dist/scripts/cli/commands/pack/InferPackCommand.js.map +1 -0
- package/dist/scripts/cli/commands/pack/InitPackCommand.js +368 -0
- package/dist/scripts/cli/commands/pack/InitPackCommand.js.map +1 -0
- package/dist/scripts/cli/commands/pack/LintPackCommand.js +631 -0
- package/dist/scripts/cli/commands/pack/LintPackCommand.js.map +1 -0
- package/dist/scripts/cli/commands/pack/pack-args.js +83 -0
- package/dist/scripts/cli/commands/pack/pack-args.js.map +1 -0
- package/dist/scripts/cli/commands/project/AdoptCommand.js +414 -0
- package/dist/scripts/cli/commands/project/AdoptCommand.js.map +1 -0
- package/dist/scripts/cli/commands/project/InitFromPackCommand.js +188 -0
- package/dist/scripts/cli/commands/project/InitFromPackCommand.js.map +1 -0
- package/dist/scripts/cli/commands/project/InitProjectCommand.js +791 -0
- package/dist/scripts/cli/commands/project/InitProjectCommand.js.map +1 -0
- package/dist/scripts/cli/commands/project/OnboardCommand.js +655 -0
- package/dist/scripts/cli/commands/project/OnboardCommand.js.map +1 -0
- package/dist/scripts/cli/commands/project/UpdateCommand.js +206 -0
- package/dist/scripts/cli/commands/project/UpdateCommand.js.map +1 -0
- package/dist/scripts/cli/commands/project/WizardCommand.js +166 -0
- package/dist/scripts/cli/commands/project/WizardCommand.js.map +1 -0
- package/dist/scripts/cli/commands/quality/DoctorCommand.js +553 -0
- package/dist/scripts/cli/commands/quality/DoctorCommand.js.map +1 -0
- package/dist/scripts/cli/commands/quality/FixCommand.js +201 -0
- package/dist/scripts/cli/commands/quality/FixCommand.js.map +1 -0
- package/dist/scripts/cli/commands/quality/LicenseCheckCommand.js +187 -0
- package/dist/scripts/cli/commands/quality/LicenseCheckCommand.js.map +1 -0
- package/dist/scripts/cli/commands/quality/ReportCommand.js +557 -0
- package/dist/scripts/cli/commands/quality/ReportCommand.js.map +1 -0
- package/dist/scripts/cli/commands/quality/ValidateSpecsCommand.js +764 -0
- package/dist/scripts/cli/commands/quality/ValidateSpecsCommand.js.map +1 -0
- package/dist/scripts/cli/commands/spec/DoneCommand.js +116 -0
- package/dist/scripts/cli/commands/spec/DoneCommand.js.map +1 -0
- package/dist/scripts/cli/commands/spec/PlanCommand.js +397 -0
- package/dist/scripts/cli/commands/spec/PlanCommand.js.map +1 -0
- package/dist/scripts/cli/commands/spec/ReqCommand.js +303 -0
- package/dist/scripts/cli/commands/spec/ReqCommand.js.map +1 -0
- package/dist/scripts/cli/commands/spec/StatusCommand.js +206 -0
- package/dist/scripts/cli/commands/spec/StatusCommand.js.map +1 -0
- package/dist/scripts/cli/commands/spec/StudioCommand.js +241 -0
- package/dist/scripts/cli/commands/spec/StudioCommand.js.map +1 -0
- package/dist/scripts/cli/commands/specops/ContributeCommand.js +313 -0
- package/dist/scripts/cli/commands/specops/ContributeCommand.js.map +1 -0
- package/dist/scripts/cli/commands/specops/DiffCommand.js +394 -0
- package/dist/scripts/cli/commands/specops/DiffCommand.js.map +1 -0
- package/dist/scripts/cli/commands/specops/SyncCommand.js +380 -0
- package/dist/scripts/cli/commands/specops/SyncCommand.js.map +1 -0
- package/dist/scripts/completion.js +24 -0
- package/dist/scripts/completion.js.map +1 -0
- package/dist/scripts/config_init.js +12 -0
- package/dist/scripts/config_init.js.map +1 -0
- package/dist/scripts/config_set.js +20 -0
- package/dist/scripts/config_set.js.map +1 -0
- package/dist/scripts/docs/blocks.js +137 -0
- package/dist/scripts/docs/blocks.js.map +1 -0
- package/dist/scripts/docs/build-site.js +425 -0
- package/dist/scripts/docs/build-site.js.map +1 -0
- package/dist/scripts/docs/nav.js +198 -0
- package/dist/scripts/docs/nav.js.map +1 -0
- package/dist/scripts/docs/record-terminal.js +477 -0
- package/dist/scripts/docs/record-terminal.js.map +1 -0
- package/dist/scripts/docs/terminal-storyboard.js +121 -0
- package/dist/scripts/docs/terminal-storyboard.js.map +1 -0
- package/dist/scripts/doctor.js +14 -0
- package/dist/scripts/doctor.js.map +1 -0
- package/dist/scripts/done.js +17 -0
- package/dist/scripts/done.js.map +1 -0
- package/dist/scripts/expand_domain_pack.js +18 -0
- package/dist/scripts/expand_domain_pack.js.map +1 -0
- package/dist/scripts/fix.js +12 -0
- package/dist/scripts/fix.js.map +1 -0
- package/dist/scripts/gen_agent_contract.js +14 -0
- package/dist/scripts/gen_agent_contract.js.map +1 -0
- package/dist/scripts/gen_mcp_tools.js +264 -0
- package/dist/scripts/gen_mcp_tools.js.map +1 -0
- package/dist/scripts/harness/init.js +358 -0
- package/dist/scripts/harness/init.js.map +1 -0
- package/dist/scripts/harness/prompt.js +18 -0
- package/dist/scripts/harness/prompt.js.map +1 -0
- package/dist/scripts/harness/report.js +323 -0
- package/dist/scripts/harness/report.js.map +1 -0
- package/dist/scripts/harness/run.js +33 -0
- package/dist/scripts/harness/run.js.map +1 -0
- package/dist/scripts/infer_pack.js +17 -0
- package/dist/scripts/infer_pack.js.map +1 -0
- package/dist/scripts/init_from_pack.js +16 -0
- package/dist/scripts/init_from_pack.js.map +1 -0
- package/dist/scripts/init_pack.js +16 -0
- package/dist/scripts/init_pack.js.map +1 -0
- package/dist/scripts/init_project.js +17 -0
- package/dist/scripts/init_project.js.map +1 -0
- package/dist/scripts/lib/agent.js +99 -0
- package/dist/scripts/lib/agent.js.map +1 -0
- package/dist/scripts/lib/capability-specs.js +80 -0
- package/dist/scripts/lib/capability-specs.js.map +1 -0
- package/dist/scripts/lib/command.js +17 -0
- package/dist/scripts/lib/command.js.map +1 -0
- package/dist/scripts/lib/diagnostics.js +62 -0
- package/dist/scripts/lib/diagnostics.js.map +1 -0
- package/dist/scripts/lib/monorepo-fanout.js +118 -0
- package/dist/scripts/lib/monorepo-fanout.js.map +1 -0
- package/dist/scripts/lib/placeholders.js +190 -0
- package/dist/scripts/lib/placeholders.js.map +1 -0
- package/dist/scripts/lib/project-root.js +124 -0
- package/dist/scripts/lib/project-root.js.map +1 -0
- package/dist/scripts/lib/requirement-graph.js +31 -0
- package/dist/scripts/lib/requirement-graph.js.map +1 -0
- package/dist/scripts/lib/surface.js +609 -0
- package/dist/scripts/lib/surface.js.map +1 -0
- package/dist/scripts/license_check.js +15 -0
- package/dist/scripts/license_check.js.map +1 -0
- package/dist/scripts/lint_pack.js +18 -0
- package/dist/scripts/lint_pack.js.map +1 -0
- package/dist/scripts/merge-traceability.js +106 -0
- package/dist/scripts/merge-traceability.js.map +1 -0
- package/dist/scripts/onboard.js +22 -0
- package/dist/scripts/onboard.js.map +1 -0
- package/dist/scripts/plan.js +17 -0
- package/dist/scripts/plan.js.map +1 -0
- package/dist/scripts/plugin/gate-hook.js +171 -0
- package/dist/scripts/plugin/gate-hook.js.map +1 -0
- package/dist/scripts/report.js +17 -0
- package/dist/scripts/report.js.map +1 -0
- package/dist/scripts/req.js +22 -0
- package/dist/scripts/req.js.map +1 -0
- package/dist/scripts/schema/cli.js +215 -0
- package/dist/scripts/schema/cli.js.map +1 -0
- package/dist/scripts/schema/registry.js +264 -0
- package/dist/scripts/schema/registry.js.map +1 -0
- package/dist/scripts/specops/add.js +180 -0
- package/dist/scripts/specops/add.js.map +1 -0
- package/dist/scripts/specops/against_lock.js +100 -0
- package/dist/scripts/specops/against_lock.js.map +1 -0
- package/dist/scripts/specops/as_change.js +49 -0
- package/dist/scripts/specops/as_change.js.map +1 -0
- package/dist/scripts/specops/contribute.js +24 -0
- package/dist/scripts/specops/contribute.js.map +1 -0
- package/dist/scripts/specops/diff.js +32 -0
- package/dist/scripts/specops/diff.js.map +1 -0
- package/dist/scripts/specops/lock.js +39 -0
- package/dist/scripts/specops/lock.js.map +1 -0
- package/dist/scripts/specops/manifest.js +90 -0
- package/dist/scripts/specops/manifest.js.map +1 -0
- package/dist/scripts/specops/remove.js +102 -0
- package/dist/scripts/specops/remove.js.map +1 -0
- package/dist/scripts/specops/sync.js +27 -0
- package/dist/scripts/specops/sync.js.map +1 -0
- package/dist/scripts/specops/verify.js +149 -0
- package/dist/scripts/specops/verify.js.map +1 -0
- package/dist/scripts/status.js +17 -0
- package/dist/scripts/status.js.map +1 -0
- package/dist/scripts/studio.js +14 -0
- package/dist/scripts/studio.js.map +1 -0
- package/dist/scripts/update.js +17 -0
- package/dist/scripts/update.js.map +1 -0
- package/dist/scripts/validate_specs.js +10 -0
- package/dist/scripts/validate_specs.js.map +1 -0
- package/examples/project.config.example +19 -0
- package/examples/project.yaml.example +17 -0
- package/package.json +105 -0
- package/templates/adopt/AI_RULES.md.tpl +27 -0
- package/templates/adopt/adr-readme.md.tpl +5 -0
- package/templates/adopt/baseline.feature.tpl +9 -0
- package/templates/adopt/spec.md.tpl +25 -0
- package/templates/adopt/traceability.md.tpl +11 -0
- package/templates/backend/AI_RULES.md.tpl +35 -0
- package/templates/backend/features/core/health.feature.tpl +7 -0
- package/templates/base/.devcontainer/devcontainer.json.tpl +18 -0
- package/templates/base/.dockerignore.tpl +11 -0
- package/templates/base/.env.dev.app.tpl +13 -0
- package/templates/base/.env.dev.infra.tpl +6 -0
- package/templates/base/.env.dev.tpl +16 -0
- package/templates/base/.env.example.tpl +17 -0
- package/templates/base/.env.feature.app.tpl +11 -0
- package/templates/base/.env.feature.infra.tpl +4 -0
- package/templates/base/.env.feature.tpl +16 -0
- package/templates/base/.env.prod.app.tpl +13 -0
- package/templates/base/.env.prod.infra.tpl +6 -0
- package/templates/base/.env.prod.tpl +16 -0
- package/templates/base/.github/workflows/specs.yml.tpl +26 -0
- package/templates/base/.gitignore.tpl +9 -0
- package/templates/base/.pre-commit-config.yaml.tpl +10 -0
- package/templates/base/AGENTS.md.tpl +32 -0
- package/templates/base/README.md.tpl +32 -0
- package/templates/base/docker-compose.yml.tpl +13 -0
- package/templates/base/docs/specs/adr/README.md.tpl +10 -0
- package/templates/base/docs/specs/aggregates.md.tpl +5 -0
- package/templates/base/docs/specs/commands.md.tpl +13 -0
- package/templates/base/docs/specs/domain-model.md.tpl +30 -0
- package/templates/base/docs/specs/events.md.tpl +5 -0
- package/templates/base/docs/specs/review-checklist.md.tpl +18 -0
- package/templates/base/docs/specs/runtime-environments.md.tpl +26 -0
- package/templates/base/docs/specs/status-model.md.tpl +16 -0
- package/templates/base/docs/specs/traceability.md.tpl +7 -0
- package/templates/base/docs/specs/use-cases.md.tpl +5 -0
- package/templates/base/spec.md.tpl +63 -0
- package/templates/ci/azure.yml.tpl +40 -0
- package/templates/ci/github.yml.tpl +40 -0
- package/templates/ci/gitlab.yml.tpl +21 -0
- package/templates/ci/jenkins.tpl +35 -0
- package/templates/contracts/AI_RULES.md.tpl +55 -0
- package/templates/contracts/asyncapi-stub.yaml.tpl +24 -0
- package/templates/contracts/contract-traceability.md.tpl +10 -0
- package/templates/contracts/openapi-stub.yaml.tpl +29 -0
- package/templates/contracts/pacts-gitkeep.tpl +0 -0
- package/templates/contracts/test-strategy.md.tpl +94 -0
- package/templates/frontend/AI_RULES.md.tpl +34 -0
- package/templates/frontend/features/core/health.feature.tpl +6 -0
- package/templates/harness/harness.config.yaml.tpl +74 -0
- package/templates/harness/prompt-prefix.md.tpl +60 -0
- package/templates/mobile/AI_RULES.md.tpl +56 -0
- package/templates/mobile/features/core/health.feature.tpl +7 -0
- package/templates/modules/auth/backend/registration_and_login.feature.tpl +10 -0
- package/templates/modules/auth/frontend/login.feature.tpl +5 -0
- package/templates/modules/billing/backend/billing_settlement.feature.tpl +5 -0
- package/templates/modules/billing/frontend/billing_summary.feature.tpl +5 -0
- package/templates/modules/dashboard/backend/dashboard_kpi.feature.tpl +5 -0
- package/templates/modules/dashboard/frontend/dashboard.feature.tpl +5 -0
- package/vendor/mermaid.min.js +3636 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* `specops contribute` — re-export of the command and of the rendering it does.
|
|
4
|
+
*
|
|
5
|
+
* The command lives in `scripts/cli/commands/specops/ContributeCommand`;
|
|
6
|
+
* turning a change into a `pack.yaml` fragment is domain
|
|
7
|
+
* (`core/domain/PackContribution`) and staging it as a git branch is
|
|
8
|
+
* infrastructure (`GitContributionStager`).
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.stageContribution = exports.contributionReadme = exports.deltaToPackFragment = exports.parseArgs = exports.ContributeCommand = void 0;
|
|
12
|
+
const ContributeCommand_1 = require("../cli/commands/specops/ContributeCommand");
|
|
13
|
+
var ContributeCommand_2 = require("../cli/commands/specops/ContributeCommand");
|
|
14
|
+
Object.defineProperty(exports, "ContributeCommand", { enumerable: true, get: function () { return ContributeCommand_2.ContributeCommand; } });
|
|
15
|
+
Object.defineProperty(exports, "parseArgs", { enumerable: true, get: function () { return ContributeCommand_2.parseArgs; } });
|
|
16
|
+
var PackContribution_1 = require("../../packages/core/src/domain/PackContribution");
|
|
17
|
+
Object.defineProperty(exports, "deltaToPackFragment", { enumerable: true, get: function () { return PackContribution_1.deltaToPackFragment; } });
|
|
18
|
+
Object.defineProperty(exports, "contributionReadme", { enumerable: true, get: function () { return PackContribution_1.contributionReadme; } });
|
|
19
|
+
var GitContributionStager_1 = require("../../packages/core/src/infrastructure/GitContributionStager");
|
|
20
|
+
Object.defineProperty(exports, "stageContribution", { enumerable: true, get: function () { return GitContributionStager_1.stageContribution; } });
|
|
21
|
+
// This file is what the command registry spawns, so it stays the entry point.
|
|
22
|
+
if (require.main === module)
|
|
23
|
+
new ContributeCommand_1.ContributeCommand(process.argv.slice(2)).execute();
|
|
24
|
+
//# sourceMappingURL=contribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contribute.js","sourceRoot":"","sources":["../../../scripts/specops/contribute.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,iFAA8E;AAE9E,+EAImD;AAHjD,sHAAA,iBAAiB,OAAA;AAEjB,8GAAA,SAAS,OAAA;AAGX,oFAGyD;AAFvD,uHAAA,mBAAmB,OAAA;AACnB,sHAAA,kBAAkB,OAAA;AAGpB,sGAAiG;AAAxF,0HAAA,iBAAiB,OAAA;AAE1B,8EAA8E;AAC9E,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM;IAAE,IAAI,qCAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* `specops diff` — re-export of the command and of the directory comparison
|
|
4
|
+
* it runs on.
|
|
5
|
+
*
|
|
6
|
+
* The command lives in `scripts/cli/commands/specops/DiffCommand`; reducing a
|
|
7
|
+
* directory to content hashes and classifying the differences are
|
|
8
|
+
* infrastructure and domain respectively. Kept as one import site because
|
|
9
|
+
* `specops sync` and the diff tests both reach for these.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.IGNORE_FILES = exports.IGNORE_DIRS = exports.classifyFileChanges = exports.snapshotDir = exports.hashFile = exports.walkFiles = exports.diffDirs = exports.runAsChange = exports.buildExpandArgs = exports.parseArgs = exports.DiffCommand = void 0;
|
|
13
|
+
const DiffCommand_1 = require("../cli/commands/specops/DiffCommand");
|
|
14
|
+
var DiffCommand_2 = require("../cli/commands/specops/DiffCommand");
|
|
15
|
+
Object.defineProperty(exports, "DiffCommand", { enumerable: true, get: function () { return DiffCommand_2.DiffCommand; } });
|
|
16
|
+
Object.defineProperty(exports, "parseArgs", { enumerable: true, get: function () { return DiffCommand_2.parseArgs; } });
|
|
17
|
+
Object.defineProperty(exports, "buildExpandArgs", { enumerable: true, get: function () { return DiffCommand_2.buildExpandArgs; } });
|
|
18
|
+
Object.defineProperty(exports, "runAsChange", { enumerable: true, get: function () { return DiffCommand_2.runAsChange; } });
|
|
19
|
+
var DirectorySnapshot_1 = require("../../packages/core/src/infrastructure/DirectorySnapshot");
|
|
20
|
+
Object.defineProperty(exports, "diffDirs", { enumerable: true, get: function () { return DirectorySnapshot_1.diffDirs; } });
|
|
21
|
+
Object.defineProperty(exports, "walkFiles", { enumerable: true, get: function () { return DirectorySnapshot_1.walkFiles; } });
|
|
22
|
+
Object.defineProperty(exports, "hashFile", { enumerable: true, get: function () { return DirectorySnapshot_1.hashFile; } });
|
|
23
|
+
Object.defineProperty(exports, "snapshotDir", { enumerable: true, get: function () { return DirectorySnapshot_1.snapshotDir; } });
|
|
24
|
+
var FileChangeSet_1 = require("../../packages/core/src/domain/FileChangeSet");
|
|
25
|
+
Object.defineProperty(exports, "classifyFileChanges", { enumerable: true, get: function () { return FileChangeSet_1.classifyFileChanges; } });
|
|
26
|
+
Object.defineProperty(exports, "IGNORE_DIRS", { enumerable: true, get: function () { return FileChangeSet_1.IGNORE_DIRS; } });
|
|
27
|
+
Object.defineProperty(exports, "IGNORE_FILES", { enumerable: true, get: function () { return FileChangeSet_1.IGNORE_FILES; } });
|
|
28
|
+
// This file is what the command registry spawns, so it stays the entry point.
|
|
29
|
+
if (require.main === module) {
|
|
30
|
+
new DiffCommand_1.DiffCommand(process.argv.slice(2)).execute();
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=diff.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff.js","sourceRoot":"","sources":["../../../scripts/specops/diff.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH,qEAAkE;AAElE,mEAK6C;AAJ3C,0GAAA,WAAW,OAAA;AACX,wGAAA,SAAS,OAAA;AACT,8GAAA,eAAe,OAAA;AACf,0GAAA,WAAW,OAAA;AAGb,8FAKkE;AAJhE,6GAAA,QAAQ,OAAA;AACR,8GAAA,SAAS,OAAA;AACT,6GAAA,QAAQ,OAAA;AACR,gHAAA,WAAW,OAAA;AAGb,8EAMsD;AALpD,oHAAA,mBAAmB,OAAA;AAGnB,4GAAA,WAAW,OAAA;AACX,6GAAA,YAAY,OAAA;AAGd,8EAA8E;AAC9E,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,IAAI,yBAAW,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SPECOPS_SCHEMA_VERSION = exports.LOCK_FILENAME = void 0;
|
|
4
|
+
exports.readLock = readLock;
|
|
5
|
+
exports.upsertPackEntry = upsertPackEntry;
|
|
6
|
+
exports.writeLock = writeLock;
|
|
7
|
+
exports.newLock = newLock;
|
|
8
|
+
const DiskLockfileRepository_1 = require("../../packages/core/src/infrastructure/DiskLockfileRepository");
|
|
9
|
+
const Lockfile_1 = require("../../packages/core/src/domain/Lockfile");
|
|
10
|
+
/**
|
|
11
|
+
* Lock schema properties:
|
|
12
|
+
* "specops_version"
|
|
13
|
+
* "pack_id"
|
|
14
|
+
*/
|
|
15
|
+
exports.LOCK_FILENAME = Lockfile_1.Lockfile.FILENAME;
|
|
16
|
+
exports.SPECOPS_SCHEMA_VERSION = Lockfile_1.Lockfile.CURRENT_SCHEMA_VERSION;
|
|
17
|
+
function readLock(projectDir) {
|
|
18
|
+
const repo = new DiskLockfileRepository_1.DiskLockfileRepository(projectDir);
|
|
19
|
+
const lock = repo.readLock();
|
|
20
|
+
return lock ? lock.toJSON() : null;
|
|
21
|
+
}
|
|
22
|
+
function upsertPackEntry(lockJson, entry) {
|
|
23
|
+
const lock = lockJson
|
|
24
|
+
? new Lockfile_1.Lockfile(lockJson.specops_version, lockJson.csda_version, lockJson.packs || [])
|
|
25
|
+
: Lockfile_1.Lockfile.createEmpty();
|
|
26
|
+
lock.upsertPack(entry);
|
|
27
|
+
return lock.toJSON();
|
|
28
|
+
}
|
|
29
|
+
function writeLock(projectDir, lockJson, options = {}) {
|
|
30
|
+
const repo = new DiskLockfileRepository_1.DiskLockfileRepository(projectDir);
|
|
31
|
+
const lock = lockJson
|
|
32
|
+
? new Lockfile_1.Lockfile(lockJson.specops_version, lockJson.csda_version, lockJson.packs || [])
|
|
33
|
+
: Lockfile_1.Lockfile.createEmpty();
|
|
34
|
+
return repo.writeLock(lock, options);
|
|
35
|
+
}
|
|
36
|
+
function newLock(csdaVersion) {
|
|
37
|
+
return Lockfile_1.Lockfile.createEmpty(csdaVersion).toJSON();
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=lock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lock.js","sourceRoot":"","sources":["../../../scripts/specops/lock.ts"],"names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AACvC,CAAC;AAED,SAAgB,OAAO,CAAC,WAAoB;IAC1C,OAAO,mBAAQ,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.MANIFEST_VERSION = exports.MANIFEST_FILENAME = exports.BASELINE_DIRNAME = exports.SPECOPS_DIR = void 0;
|
|
37
|
+
exports.manifestPath = manifestPath;
|
|
38
|
+
exports.baselineDir = baselineDir;
|
|
39
|
+
exports.sha256 = sha256;
|
|
40
|
+
exports.newManifest = newManifest;
|
|
41
|
+
exports.readManifest = readManifest;
|
|
42
|
+
exports.writeManifest = writeManifest;
|
|
43
|
+
exports.readBaseline = readBaseline;
|
|
44
|
+
exports.snapshotBaseline = snapshotBaseline;
|
|
45
|
+
const DiskManifestRepository_1 = require("../../packages/core/src/infrastructure/DiskManifestRepository");
|
|
46
|
+
const SpecopsManifest_1 = require("../../packages/core/src/domain/SpecopsManifest");
|
|
47
|
+
const path = __importStar(require("node:path"));
|
|
48
|
+
exports.SPECOPS_DIR = SpecopsManifest_1.SpecopsManifest.DIRNAME;
|
|
49
|
+
exports.BASELINE_DIRNAME = SpecopsManifest_1.SpecopsManifest.BASELINE_DIRNAME;
|
|
50
|
+
exports.MANIFEST_FILENAME = SpecopsManifest_1.SpecopsManifest.FILENAME;
|
|
51
|
+
exports.MANIFEST_VERSION = SpecopsManifest_1.SpecopsManifest.CURRENT_MANIFEST_VERSION;
|
|
52
|
+
function manifestPath(projectDir) {
|
|
53
|
+
return path.join(projectDir, exports.SPECOPS_DIR, exports.MANIFEST_FILENAME);
|
|
54
|
+
}
|
|
55
|
+
function baselineDir(projectDir, packId) {
|
|
56
|
+
return path.join(projectDir, exports.SPECOPS_DIR, exports.BASELINE_DIRNAME, packId);
|
|
57
|
+
}
|
|
58
|
+
function sha256(content) {
|
|
59
|
+
return SpecopsManifest_1.SpecopsManifest.sha256(content);
|
|
60
|
+
}
|
|
61
|
+
function newManifest() {
|
|
62
|
+
return SpecopsManifest_1.SpecopsManifest.createEmpty().toJSON();
|
|
63
|
+
}
|
|
64
|
+
function readManifest(projectDir) {
|
|
65
|
+
const repo = new DiskManifestRepository_1.DiskManifestRepository(projectDir);
|
|
66
|
+
const manifest = repo.readManifest();
|
|
67
|
+
return manifest ? manifest.toJSON() : null;
|
|
68
|
+
}
|
|
69
|
+
function writeManifest(projectDir, manifestJson, options = {}) {
|
|
70
|
+
const repo = new DiskManifestRepository_1.DiskManifestRepository(projectDir);
|
|
71
|
+
const manifest = manifestJson
|
|
72
|
+
? new SpecopsManifest_1.SpecopsManifest(manifestJson.specops_manifest_version, manifestJson.packs || {})
|
|
73
|
+
: SpecopsManifest_1.SpecopsManifest.createEmpty();
|
|
74
|
+
return repo.writeManifest(manifest, options);
|
|
75
|
+
}
|
|
76
|
+
function readBaseline(projectDir, packId, rel) {
|
|
77
|
+
const repo = new DiskManifestRepository_1.DiskManifestRepository(projectDir);
|
|
78
|
+
return repo.readBaseline(packId, rel);
|
|
79
|
+
}
|
|
80
|
+
function snapshotBaseline(projectDir, packId, entries, meta = {}, options = {}) {
|
|
81
|
+
const repo = new DiskManifestRepository_1.DiskManifestRepository(projectDir);
|
|
82
|
+
const result = repo.writeBaselineFiles(packId, entries || [], options);
|
|
83
|
+
if (!options.dryRun) {
|
|
84
|
+
const manifest = repo.readManifest() || SpecopsManifest_1.SpecopsManifest.createEmpty();
|
|
85
|
+
manifest.updatePackBaseline(packId, meta.version || "", entries || []);
|
|
86
|
+
repo.writeManifest(manifest);
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../scripts/specops/manifest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,oCAEC;AAED,kCAEC;AAED,wBAEC;AAED,kCAEC;AAMD,oCAIC;AAED,sCAWC;AAED,oCAGC;AAED,4CAiBC;AAtED,0GAAuG;AACvG,oFAAgG;AAChG,gDAAkC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WAAW,EAAE,CAAC;IAElC,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,YAAY,CAAC,UAAkB,EAAE,MAAc,EAAE,GAAW;IAC1E,MAAM,IAAI,GAAG,IAAI,+CAAsB,CAAC,UAAU,CAAC,CAAC;IACpD,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACxC,CAAC;AAED,SAAgB,gBAAgB,CAC9B,UAAkB,EAClB,MAAc,EACd,OAAoD,EACpD,OAAgC,EAAE,EAClC,UAAwB,EAAE;IAE1B,MAAM,IAAI,GAAG,IAAI,+CAAsB,CAAC,UAAU,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAEvE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;QACpB,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,iCAAe,CAAC,WAAW,EAAE,CAAC;QACtE,QAAQ,CAAC,kBAAkB,CAAC,MAAM,EAAG,IAAI,CAAC,OAAkB,IAAI,EAAE,EAAE,OAAO,IAAI,EAAE,CAAC,CAAC;QACnF,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* `specops remove <pack-id>` — drop a pack entry from `.specops.lock`.
|
|
5
|
+
*
|
|
6
|
+
* By design this DOES NOT delete generated files (would be too easy to
|
|
7
|
+
* destroy hand-edited tests). Run `specgate specops sync` afterwards if you
|
|
8
|
+
* want to regenerate the rest of the lockfile without the removed pack.
|
|
9
|
+
*
|
|
10
|
+
* specgate specops remove parking-management/backend
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.RemoveCommand = void 0;
|
|
14
|
+
exports.parseArgs = parseArgs;
|
|
15
|
+
const project_root_1 = require("../lib/project-root");
|
|
16
|
+
const DiskLockfileRepository_1 = require("../../packages/core/src/infrastructure/DiskLockfileRepository");
|
|
17
|
+
const RemovePackUseCase_1 = require("../../packages/core/src/application/RemovePackUseCase");
|
|
18
|
+
const Lockfile_1 = require("../../packages/core/src/domain/Lockfile");
|
|
19
|
+
const command_1 = require("../lib/command");
|
|
20
|
+
const COLOR_ENABLED = process.stdout.isTTY && process.env.NO_COLOR === undefined && process.env.TERM !== "dumb";
|
|
21
|
+
const c = {
|
|
22
|
+
reset: COLOR_ENABLED ? "\x1b[0m" : "",
|
|
23
|
+
bold: COLOR_ENABLED ? "\x1b[1m" : "",
|
|
24
|
+
dim: COLOR_ENABLED ? "\x1b[2m" : "",
|
|
25
|
+
red: COLOR_ENABLED ? "\x1b[31m" : "",
|
|
26
|
+
green: COLOR_ENABLED ? "\x1b[32m" : "",
|
|
27
|
+
yellow: COLOR_ENABLED ? "\x1b[33m" : "",
|
|
28
|
+
cyan: COLOR_ENABLED ? "\x1b[36m" : "",
|
|
29
|
+
};
|
|
30
|
+
function usage() {
|
|
31
|
+
process.stdout.write(`\n ${c.bold}${c.cyan}➖ specops remove${c.reset} ${c.dim}— drop a pack from .specops.lock${c.reset}\n\n` +
|
|
32
|
+
` ${c.bold}USAGE${c.reset}\n` +
|
|
33
|
+
` ${c.cyan}specgate specops remove${c.reset} <pack-id> [--project-dir <path>] [--dry-run]\n\n` +
|
|
34
|
+
` ${c.bold}OPTIONS${c.reset}\n` +
|
|
35
|
+
` ${c.green}--project-dir <path>${c.reset} ${c.dim}Project root (auto-detected from cwd if omitted).${c.reset}\n` +
|
|
36
|
+
` ${c.green}--dry-run${c.reset} ${c.dim}Show what would be removed; touch nothing.${c.reset}\n` +
|
|
37
|
+
` ${c.green}-h, --help${c.reset} ${c.dim}Show this help.${c.reset}\n\n` +
|
|
38
|
+
` ${c.bold}NOTES${c.reset}\n` +
|
|
39
|
+
` ${c.dim}Generated files are NOT deleted automatically — review with \`git status\` and remove anything you no longer want.${c.reset}\n\n`);
|
|
40
|
+
}
|
|
41
|
+
function parseArgs(argv) {
|
|
42
|
+
const opts = { packId: null, projectDir: ".", dryRun: false };
|
|
43
|
+
for (let i = 0; i < argv.length; i++) {
|
|
44
|
+
const a = argv[i];
|
|
45
|
+
if (a === "--project-dir" && argv[i + 1])
|
|
46
|
+
opts.projectDir = argv[++i];
|
|
47
|
+
else if (a === "--dry-run")
|
|
48
|
+
opts.dryRun = true;
|
|
49
|
+
else if (a === "--help" || a === "-h") {
|
|
50
|
+
usage();
|
|
51
|
+
process.exit(0);
|
|
52
|
+
}
|
|
53
|
+
else if (a.startsWith("-")) {
|
|
54
|
+
process.stderr.write(`Unknown flag: ${a}\n`);
|
|
55
|
+
process.exit(2);
|
|
56
|
+
}
|
|
57
|
+
else if (!opts.packId) {
|
|
58
|
+
opts.packId = a;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
process.stderr.write(`Unexpected positional argument: ${a}\n`);
|
|
62
|
+
process.exit(2);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return opts;
|
|
66
|
+
}
|
|
67
|
+
class RemoveCommand extends command_1.BaseCommand {
|
|
68
|
+
execute() {
|
|
69
|
+
const opts = parseArgs(this.args);
|
|
70
|
+
if (!opts.packId) {
|
|
71
|
+
process.stderr.write(`${c.red}✖${c.reset} pack-id is required (e.g. parking-management/backend).\n`);
|
|
72
|
+
usage();
|
|
73
|
+
process.exit(2);
|
|
74
|
+
}
|
|
75
|
+
let projectDir;
|
|
76
|
+
try {
|
|
77
|
+
projectDir = (0, project_root_1.resolveProjectDir)(opts.projectDir, { requireSentinel: true });
|
|
78
|
+
}
|
|
79
|
+
catch (err) {
|
|
80
|
+
process.stderr.write(`${err.message}\n`);
|
|
81
|
+
process.exit(2);
|
|
82
|
+
}
|
|
83
|
+
const repo = new DiskLockfileRepository_1.DiskLockfileRepository(projectDir);
|
|
84
|
+
const useCase = new RemovePackUseCase_1.RemovePackUseCase(repo);
|
|
85
|
+
const result = useCase.execute(opts.packId, { dryRun: opts.dryRun });
|
|
86
|
+
if (!result.ok) {
|
|
87
|
+
process.stderr.write(`${c.red}✖${c.reset} ${result.message}\n`);
|
|
88
|
+
process.exit(1);
|
|
89
|
+
}
|
|
90
|
+
if (opts.dryRun) {
|
|
91
|
+
process.stdout.write(`${c.yellow}…${c.reset} [dry-run] would remove ${c.bold}${opts.packId}${c.reset} from ${Lockfile_1.Lockfile.FILENAME} (${result.removedCount} entry).\n`);
|
|
92
|
+
process.exit(0);
|
|
93
|
+
}
|
|
94
|
+
process.stdout.write(`${c.green}✔${c.reset} Removed ${c.bold}${opts.packId}${c.reset} from ${Lockfile_1.Lockfile.FILENAME} (${result.removedCount} entry).\n` +
|
|
95
|
+
`${c.dim} Generated files were not deleted. Inspect with \`git status\` and remove anything unwanted.${c.reset}\n`);
|
|
96
|
+
process.exit(0);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.RemoveCommand = RemoveCommand;
|
|
100
|
+
if (require.main === module)
|
|
101
|
+
new RemoveCommand(process.argv.slice(2)).execute();
|
|
102
|
+
//# sourceMappingURL=remove.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.js","sourceRoot":"","sources":["../../../scripts/specops/remove.ts"],"names":[],"mappings":";;AACA;;;;;;;;GAQG;;;AAyCH,8BAoBC;AA3DD,sDAAwD;AACxD,0GAAuG;AACvG,6FAA0F;AAC1F,sEAAmE;AACnE,4CAA6C;AAE7C,MAAM,aAAa,GACjB,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,CA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CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,GAAG,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,4BAA4B,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,SAAS,mBAAQ,CAAC,QAAQ,KAAK,MAAM,CAAC,YAAY,YAAY,CAC/I,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,aAAa,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,SAAS,mBAAQ,CAAC,QAAQ,KAAK,MAAM,CAAC,YAAY,YAAY;YAC5H,GAAG,CAAC,CAAC,GAAG,iGAAiG,CAAC,CAAC,KAAK,IAAI,CACvH,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;CACF;AAzCD,sCAyCC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM;IAAE,IAAI,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* `specops sync` — re-export of the command and of the reconciliation policy
|
|
4
|
+
* it applies.
|
|
5
|
+
*
|
|
6
|
+
* The command lives in `scripts/cli/commands/specops/SyncCommand`; what to do
|
|
7
|
+
* with a file when both the pack and the project have changed it is domain
|
|
8
|
+
* (`core/domain/Reconciliation`). Kept as one import site for the sync tests.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.OUTCOME_LABEL = exports.CONFLICT_OUTCOMES = exports.reconcile = exports.reconcileFile = exports.resolvePacks = exports.buildExpandArgs = exports.parseArgs = exports.SyncCommand = void 0;
|
|
12
|
+
const SyncCommand_1 = require("../cli/commands/specops/SyncCommand");
|
|
13
|
+
var SyncCommand_2 = require("../cli/commands/specops/SyncCommand");
|
|
14
|
+
Object.defineProperty(exports, "SyncCommand", { enumerable: true, get: function () { return SyncCommand_2.SyncCommand; } });
|
|
15
|
+
Object.defineProperty(exports, "parseArgs", { enumerable: true, get: function () { return SyncCommand_2.parseArgs; } });
|
|
16
|
+
Object.defineProperty(exports, "buildExpandArgs", { enumerable: true, get: function () { return SyncCommand_2.buildExpandArgs; } });
|
|
17
|
+
Object.defineProperty(exports, "resolvePacks", { enumerable: true, get: function () { return SyncCommand_2.resolvePacks; } });
|
|
18
|
+
Object.defineProperty(exports, "reconcileFile", { enumerable: true, get: function () { return SyncCommand_2.reconcileFile; } });
|
|
19
|
+
var Reconciliation_1 = require("../../packages/core/src/domain/Reconciliation");
|
|
20
|
+
Object.defineProperty(exports, "reconcile", { enumerable: true, get: function () { return Reconciliation_1.reconcile; } });
|
|
21
|
+
Object.defineProperty(exports, "CONFLICT_OUTCOMES", { enumerable: true, get: function () { return Reconciliation_1.CONFLICT_OUTCOMES; } });
|
|
22
|
+
Object.defineProperty(exports, "OUTCOME_LABEL", { enumerable: true, get: function () { return Reconciliation_1.OUTCOME_LABEL; } });
|
|
23
|
+
// This file is what the command registry spawns, so it stays the entry point.
|
|
24
|
+
if (require.main === module) {
|
|
25
|
+
new SyncCommand_1.SyncCommand(process.argv.slice(2)).execute();
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=sync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../scripts/specops/sync.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,qEAAkE;AAElE,mEAM6C;AAL3C,0GAAA,WAAW,OAAA;AACX,wGAAA,SAAS,OAAA;AACT,8GAAA,eAAe,OAAA;AACf,2GAAA,YAAY,OAAA;AACZ,4GAAA,aAAa,OAAA;AAGf,gFAQuD;AAPrD,2GAAA,SAAS,OAAA;AACT,mHAAA,iBAAiB,OAAA;AACjB,+GAAA,aAAa,OAAA;AAOf,8EAA8E;AAC9E,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,IAAI,yBAAW,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Pack integrity and provenance (supply-chain guardrails for specops).
|
|
4
|
+
*
|
|
5
|
+
* - computePackDigest: content-addressed sha256 of a pack directory tree.
|
|
6
|
+
* Recorded in `.specops.lock` on expand; a later expand of the same
|
|
7
|
+
* (repo, pack, version) with different content fails loudly — this
|
|
8
|
+
* catches moved tags and poisoned caches.
|
|
9
|
+
* - verifyTagSignature: GPG verification through git (verify-tag, falling
|
|
10
|
+
* back to verify-commit). No new dependencies: enterprises already
|
|
11
|
+
* distribute GPG keys through git tooling.
|
|
12
|
+
* - readSecurityPolicy: `require_signed_packs: true` in specops.config.yaml
|
|
13
|
+
* makes unsigned packs a hard error.
|
|
14
|
+
*
|
|
15
|
+
* Pure-ish module: no process.exit; throws or returns.
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
34
|
+
var ownKeys = function(o) {
|
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36
|
+
var ar = [];
|
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
38
|
+
return ar;
|
|
39
|
+
};
|
|
40
|
+
return ownKeys(o);
|
|
41
|
+
};
|
|
42
|
+
return function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.computePackDigest = computePackDigest;
|
|
52
|
+
exports.readSecurityPolicy = readSecurityPolicy;
|
|
53
|
+
exports.verifyTagSignature = verifyTagSignature;
|
|
54
|
+
exports.assertDigestUnchanged = assertDigestUnchanged;
|
|
55
|
+
const fs = __importStar(require("node:fs"));
|
|
56
|
+
const path = __importStar(require("node:path"));
|
|
57
|
+
const crypto = __importStar(require("node:crypto"));
|
|
58
|
+
const node_child_process_1 = require("node:child_process");
|
|
59
|
+
const YamlLite_1 = require("../../packages/core/src/domain/YamlLite");
|
|
60
|
+
function walkFiles(dir) {
|
|
61
|
+
const out = [];
|
|
62
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
63
|
+
if (entry.name === ".git")
|
|
64
|
+
continue;
|
|
65
|
+
const full = path.join(dir, entry.name);
|
|
66
|
+
if (entry.isDirectory())
|
|
67
|
+
out.push(...walkFiles(full));
|
|
68
|
+
else
|
|
69
|
+
out.push(full);
|
|
70
|
+
}
|
|
71
|
+
return out;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Deterministic sha256 over a pack directory: sorted POSIX-relative paths
|
|
75
|
+
* and file contents, NUL-separated. Independent of OS and clone order.
|
|
76
|
+
* @returns {string} "sha256:<hex>"
|
|
77
|
+
*/
|
|
78
|
+
function computePackDigest(packDir) {
|
|
79
|
+
if (!fs.existsSync(packDir) || !fs.statSync(packDir).isDirectory()) {
|
|
80
|
+
throw new Error(`computePackDigest: not a directory: ${packDir}`);
|
|
81
|
+
}
|
|
82
|
+
const files = walkFiles(packDir)
|
|
83
|
+
.map((abs) => ({ abs, rel: path.relative(packDir, abs).split(path.sep).join("/") }))
|
|
84
|
+
.sort((a, b) => a.rel.localeCompare(b.rel));
|
|
85
|
+
const hash = crypto.createHash("sha256");
|
|
86
|
+
for (const { abs, rel } of files) {
|
|
87
|
+
hash.update(rel);
|
|
88
|
+
hash.update("\0");
|
|
89
|
+
hash.update(fs.readFileSync(abs));
|
|
90
|
+
hash.update("\0");
|
|
91
|
+
}
|
|
92
|
+
return `sha256:${hash.digest("hex")}`;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Read the pack-security policy from specops.config.yaml (flat key).
|
|
96
|
+
* @returns {{ requireSignedPacks: boolean }}
|
|
97
|
+
*/
|
|
98
|
+
function readSecurityPolicy(projectDir) {
|
|
99
|
+
const cfgPath = path.join(projectDir, "specops.config.yaml");
|
|
100
|
+
if (!fs.existsSync(cfgPath))
|
|
101
|
+
return { requireSignedPacks: false };
|
|
102
|
+
try {
|
|
103
|
+
const cfg = (0, YamlLite_1.parseYamlLite)(fs.readFileSync(cfgPath, "utf8"));
|
|
104
|
+
const value = cfg ? cfg.require_signed_packs : undefined;
|
|
105
|
+
return { requireSignedPacks: value === true || value === "true" };
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
return { requireSignedPacks: false };
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Verify the GPG signature of a resolved pack: the version tag first,
|
|
113
|
+
* the checked-out commit as a fallback (annotated-tag-less workflows).
|
|
114
|
+
* @returns {{ verified: boolean, method: "tag"|"commit"|null, output: string }}
|
|
115
|
+
*/
|
|
116
|
+
function verifyTagSignature(gitDir, version) {
|
|
117
|
+
const tag = (0, node_child_process_1.spawnSync)("git", ["-C", gitDir, "verify-tag", version], { encoding: "utf8" });
|
|
118
|
+
if (tag.status === 0) {
|
|
119
|
+
return { verified: true, method: "tag", output: (tag.stderr || "").trim() };
|
|
120
|
+
}
|
|
121
|
+
const commit = (0, node_child_process_1.spawnSync)("git", ["-C", gitDir, "verify-commit", "HEAD"], { encoding: "utf8" });
|
|
122
|
+
if (commit.status === 0) {
|
|
123
|
+
return { verified: true, method: "commit", output: (commit.stderr || "").trim() };
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
verified: false,
|
|
127
|
+
method: null,
|
|
128
|
+
output: ((tag.stderr || "") + (commit.stderr || "")).trim(),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Throw when the lockfile already pins this (repo, pack, version) to a
|
|
133
|
+
* different content digest — the content behind the version changed.
|
|
134
|
+
*/
|
|
135
|
+
function assertDigestUnchanged(lockEntry, packId, version, actualDigest) {
|
|
136
|
+
if (!lockEntry || !lockEntry.digest || lockEntry.version !== version)
|
|
137
|
+
return;
|
|
138
|
+
if (lockEntry.digest !== actualDigest) {
|
|
139
|
+
throw new Error(`Pack integrity check failed for ${packId}@${version}:\n` +
|
|
140
|
+
` locked digest: ${lockEntry.digest}\n` +
|
|
141
|
+
` fetched digest: ${actualDigest}\n` +
|
|
142
|
+
"The content behind this version changed since it was locked (moved tag, " +
|
|
143
|
+
"rewritten history, or a tampered cache).\n" +
|
|
144
|
+
"Fix: investigate the pack repository first. If the change is legitimate, " +
|
|
145
|
+
"re-pin with a new --pack-version, or remove the cached copy and re-run " +
|
|
146
|
+
"`specops add` to accept the new digest explicitly.");
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=verify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../../../scripts/specops/verify.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBH,8CAeC;AAMD,gDAUC;AAOD,gDAcC;AAMD,sDAcC;AA9FD,4CAA8B;AAC9B,gDAAkC;AAClC,oDAAsC;AACtC,2DAA+C;AAC/C,sEAAwE;AAExE,SAAS,SAAS,CAAC,GAAG;IACpB,MAAM,GAAG,GAAG,EAAE,CAAC;IACf,KAAK,MAAM,KAAK,IAAI,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QACjE,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM;YAAE,SAAS;QACpC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,KAAK,CAAC,WAAW,EAAE;YAAE,GAAG,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;;YACjD,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,OAAO;IACvC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,OAAO,CA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AAM,EAAE,IAAI;QACZ,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE;KAC5D,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;IAC5E,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,SAAS,CAAC,OAAO,KAAK,OAAO;QAAE,OAAO;IAC7E,IAAI,SAAS,CAAC,MAAM,KAAK,YAAY,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CACb,mCAAmC,MAAM,IAAI,OAAO,KAAK;YACvD,qBAAqB,SAAS,CAAC,MAAM,IAAI;YACzC,qBAAqB,YAAY,IAAI;YACrC,0EAA0E;YAC1E,4CAA4C;YAC5C,2EAA2E;YAC3E,yEAAyE;YACzE,oDAAoD,CACvD,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.nextCommandPlain = exports.summarise = exports.parseArgs = exports.StatusCommand = void 0;
|
|
5
|
+
exports.main = main;
|
|
6
|
+
const StatusCommand_1 = require("./cli/commands/spec/StatusCommand");
|
|
7
|
+
Object.defineProperty(exports, "StatusCommand", { enumerable: true, get: function () { return StatusCommand_1.StatusCommand; } });
|
|
8
|
+
Object.defineProperty(exports, "parseArgs", { enumerable: true, get: function () { return StatusCommand_1.parseArgs; } });
|
|
9
|
+
Object.defineProperty(exports, "summarise", { enumerable: true, get: function () { return StatusCommand_1.summarise; } });
|
|
10
|
+
Object.defineProperty(exports, "nextCommandPlain", { enumerable: true, get: function () { return StatusCommand_1.nextCommandPlain; } });
|
|
11
|
+
function main() {
|
|
12
|
+
new StatusCommand_1.StatusCommand(process.argv.slice(2)).execute();
|
|
13
|
+
}
|
|
14
|
+
if (require.main === module) {
|
|
15
|
+
main();
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../scripts/status.ts"],"names":[],"mappings":";;;;AAWA,oBAEC;AAZD,qEAM2C;AAElC,8FAPP,6BAAa,OAOO;AAAE,0FANtB,yBAAS,OAMsB;AAAE,0FALjC,yBAAS,OAKiC;AAAE,iGAJ5C,gCAAgB,OAI4C;AAE9D,SAAgB,IAAI;IAClB,IAAI,6BAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;AACrD,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,CAAC;AACT,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.renderHtml = exports.mermaid = exports.buildModel = exports.parseArgs = exports.StudioCommand = void 0;
|
|
5
|
+
const StudioCommand_1 = require("./cli/commands/spec/StudioCommand");
|
|
6
|
+
Object.defineProperty(exports, "StudioCommand", { enumerable: true, get: function () { return StudioCommand_1.StudioCommand; } });
|
|
7
|
+
Object.defineProperty(exports, "parseArgs", { enumerable: true, get: function () { return StudioCommand_1.parseArgs; } });
|
|
8
|
+
Object.defineProperty(exports, "buildModel", { enumerable: true, get: function () { return StudioCommand_1.buildModel; } });
|
|
9
|
+
Object.defineProperty(exports, "mermaid", { enumerable: true, get: function () { return StudioCommand_1.mermaid; } });
|
|
10
|
+
Object.defineProperty(exports, "renderHtml", { enumerable: true, get: function () { return StudioCommand_1.renderHtml; } });
|
|
11
|
+
if (require.main === module) {
|
|
12
|
+
new StudioCommand_1.StudioCommand(process.argv.slice(2)).execute();
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=studio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"studio.js","sourceRoot":"","sources":["../../scripts/studio.ts"],"names":[],"mappings":";;;;AACA,qEAO2C;AAElC,8FARP,6BAAa,OAQO;AAAE,0FAPtB,yBAAS,OAOsB;AAAE,2FANjC,0BAAU,OAMiC;AAAE,wFAL7C,uBAAO,OAK6C;AAAE,2FAJtD,0BAAU,OAIsD;AAElE,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,IAAI,6BAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.updateFile = exports.generatedFiles = exports.BASELINE_DIR = exports.UpdateCommand = void 0;
|
|
5
|
+
exports.main = main;
|
|
6
|
+
const UpdateCommand_1 = require("./cli/commands/project/UpdateCommand");
|
|
7
|
+
Object.defineProperty(exports, "UpdateCommand", { enumerable: true, get: function () { return UpdateCommand_1.UpdateCommand; } });
|
|
8
|
+
Object.defineProperty(exports, "BASELINE_DIR", { enumerable: true, get: function () { return UpdateCommand_1.BASELINE_DIR; } });
|
|
9
|
+
Object.defineProperty(exports, "generatedFiles", { enumerable: true, get: function () { return UpdateCommand_1.generatedFiles; } });
|
|
10
|
+
Object.defineProperty(exports, "updateFile", { enumerable: true, get: function () { return UpdateCommand_1.updateFile; } });
|
|
11
|
+
function main(argv) {
|
|
12
|
+
new UpdateCommand_1.UpdateCommand(argv).execute();
|
|
13
|
+
}
|
|
14
|
+
if (require.main === module) {
|
|
15
|
+
new UpdateCommand_1.UpdateCommand(process.argv.slice(2)).execute();
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../scripts/update.ts"],"names":[],"mappings":";;;;AAqBA,oBAEC;AAtBD,wEAQ8C;AAG5C,8FAVA,6BAAa,OAUA;AACb,6FAVA,4BAAY,OAUA;AACZ,+FAVA,8BAAc,OAUA;AACd,2FAVA,0BAAU,OAUA;AAMZ,SAAgB,IAAI,CAAC,IAAc;IACjC,IAAI,6BAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;AACpC,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,IAAI,6BAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ValidateSpecsCommand = void 0;
|
|
5
|
+
const ValidateSpecsCommand_1 = require("./cli/commands/quality/ValidateSpecsCommand");
|
|
6
|
+
Object.defineProperty(exports, "ValidateSpecsCommand", { enumerable: true, get: function () { return ValidateSpecsCommand_1.ValidateSpecsCommand; } });
|
|
7
|
+
if (require.main === module) {
|
|
8
|
+
new ValidateSpecsCommand_1.ValidateSpecsCommand(process.argv.slice(2)).execute();
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=validate_specs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate_specs.js","sourceRoot":"","sources":["../../scripts/validate_specs.ts"],"names":[],"mappings":";;;;AACA,sFAAmF;AAkB1E,qGAlBA,2CAAoB,OAkBA;AAE7B,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,IAAI,2CAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Required
|
|
2
|
+
PROJECT_NAME="Acme Energy Hub"
|
|
3
|
+
PROJECT_SLUG="acme-energy-hub"
|
|
4
|
+
PROJECT_TYPE="backend" # backend | frontend
|
|
5
|
+
DOMAIN="community energy"
|
|
6
|
+
STACK="Quarkus 3.x, Java 21, PostgreSQL, RESTEasy Reactive, SmallRye GraphQL, Maven"
|
|
7
|
+
API_STYLE="REST and GraphQL with DTO boundaries"
|
|
8
|
+
TESTING="Quarkus Test, Testcontainers, JUnit 5, Cucumber"
|
|
9
|
+
|
|
10
|
+
# Optional
|
|
11
|
+
# How much architectural vocabulary to scaffold (ADR-0022). The gate is the
|
|
12
|
+
# same for all three — this decides what `init` writes and what the agent's
|
|
13
|
+
# rulebook demands, nothing more.
|
|
14
|
+
# minimal scripts, landing pages, prototypes — no domain documents
|
|
15
|
+
# layered most work: CRUD APIs, frontends, services — use-cases.md only
|
|
16
|
+
# tactical-ddd complex domains, several teams — the full domain model
|
|
17
|
+
ARCHITECTURE="tactical-ddd"
|
|
18
|
+
LANG="en"
|
|
19
|
+
MODULES="" # Optional. Example: "auth,dashboard,billing"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Example `init` config in YAML form.
|
|
2
|
+
# `init` also still accepts the legacy KEY="value" format — see project.config.example.
|
|
3
|
+
#
|
|
4
|
+
# specgate init --config ./project.yaml --out ./projects
|
|
5
|
+
|
|
6
|
+
# Required
|
|
7
|
+
PROJECT_NAME: Acme Energy Hub
|
|
8
|
+
PROJECT_SLUG: acme-energy-hub
|
|
9
|
+
PROJECT_TYPE: backend # backend | frontend
|
|
10
|
+
DOMAIN: community energy
|
|
11
|
+
STACK: Quarkus 3.x, Java 21, PostgreSQL, RESTEasy Reactive, SmallRye GraphQL, Maven
|
|
12
|
+
API_STYLE: REST and GraphQL with DTO boundaries
|
|
13
|
+
TESTING: Quarkus Test, Testcontainers, JUnit 5, Cucumber
|
|
14
|
+
|
|
15
|
+
# Optional
|
|
16
|
+
LANG: en
|
|
17
|
+
MODULES: "" # e.g. auth,dashboard,billing
|