audit-tools 0.55.20 → 0.56.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/dist/audit/cli/auditStep.d.ts.map +1 -1
- package/dist/audit/cli/auditStep.js +6 -8
- package/dist/audit/cli/auditStep.js.map +1 -1
- package/dist/audit/cli/charterExtractionPrompt.d.ts +2 -4
- package/dist/audit/cli/charterExtractionPrompt.d.ts.map +1 -1
- package/dist/audit/cli/charterExtractionPrompt.js +15 -0
- package/dist/audit/cli/charterExtractionPrompt.js.map +1 -1
- package/dist/audit/cli/cleanup.js +2 -2
- package/dist/audit/cli/cleanup.js.map +1 -1
- package/dist/audit/cli/cleanupCommand.d.ts.map +1 -1
- package/dist/audit/cli/cleanupCommand.js +11 -10
- package/dist/audit/cli/cleanupCommand.js.map +1 -1
- package/dist/audit/cli/conceptualDispatch.d.ts.map +1 -1
- package/dist/audit/cli/conceptualDispatch.js +26 -20
- package/dist/audit/cli/conceptualDispatch.js.map +1 -1
- package/dist/audit/cli/confirmIntentStep.d.ts.map +1 -1
- package/dist/audit/cli/confirmIntentStep.js +3 -5
- package/dist/audit/cli/confirmIntentStep.js.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.js +46 -68
- package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -1
- package/dist/audit/cli/explainTaskCommand.d.ts.map +1 -1
- package/dist/audit/cli/explainTaskCommand.js +3 -2
- package/dist/audit/cli/explainTaskCommand.js.map +1 -1
- package/dist/audit/cli/fanoutLanes.d.ts.map +1 -1
- package/dist/audit/cli/fanoutLanes.js +7 -6
- package/dist/audit/cli/fanoutLanes.js.map +1 -1
- package/dist/audit/cli/laneSubmissions.d.ts +0 -13
- package/dist/audit/cli/laneSubmissions.d.ts.map +1 -1
- package/dist/audit/cli/laneSubmissions.js +28 -19
- package/dist/audit/cli/laneSubmissions.js.map +1 -1
- package/dist/audit/cli/laneValidators.d.ts +7 -1
- package/dist/audit/cli/laneValidators.d.ts.map +1 -1
- package/dist/audit/cli/laneValidators.js +15 -10
- package/dist/audit/cli/laneValidators.js.map +1 -1
- package/dist/audit/cli/lineIndex.d.ts.map +1 -1
- package/dist/audit/cli/lineIndex.js +4 -3
- package/dist/audit/cli/lineIndex.js.map +1 -1
- package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
- package/dist/audit/cli/nextStepCommand.js +6 -7
- package/dist/audit/cli/nextStepCommand.js.map +1 -1
- package/dist/audit/cli/nextStepHelpers.d.ts +29 -17
- package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
- package/dist/audit/cli/nextStepHelpers.js +75 -130
- package/dist/audit/cli/nextStepHelpers.js.map +1 -1
- package/dist/audit/cli/recoverSubmissionCommand.d.ts.map +1 -1
- package/dist/audit/cli/recoverSubmissionCommand.js +5 -4
- package/dist/audit/cli/recoverSubmissionCommand.js.map +1 -1
- package/dist/audit/cli/resynthesizeCommand.d.ts.map +1 -1
- package/dist/audit/cli/resynthesizeCommand.js +3 -1
- package/dist/audit/cli/resynthesizeCommand.js.map +1 -1
- package/dist/audit/cli/reviewRun.d.ts +0 -6
- package/dist/audit/cli/reviewRun.d.ts.map +1 -1
- package/dist/audit/cli/reviewRun.js +11 -18
- package/dist/audit/cli/reviewRun.js.map +1 -1
- package/dist/audit/cli/reviewSubmission.d.ts.map +1 -1
- package/dist/audit/cli/reviewSubmission.js +16 -8
- package/dist/audit/cli/reviewSubmission.js.map +1 -1
- package/dist/audit/cli/semanticReviewStep.d.ts +5 -5
- package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
- package/dist/audit/cli/semanticReviewStep.js +5 -0
- package/dist/audit/cli/semanticReviewStep.js.map +1 -1
- package/dist/audit/cli/statusCommand.d.ts.map +1 -1
- package/dist/audit/cli/statusCommand.js +3 -2
- package/dist/audit/cli/statusCommand.js.map +1 -1
- package/dist/audit/cli/steps.d.ts +11 -11
- package/dist/audit/cli/steps.d.ts.map +1 -1
- package/dist/audit/cli/steps.js +11 -11
- package/dist/audit/cli/steps.js.map +1 -1
- package/dist/audit/cli/submitCommand.d.ts.map +1 -1
- package/dist/audit/cli/submitCommand.js +9 -4
- package/dist/audit/cli/submitCommand.js.map +1 -1
- package/dist/audit/cli/submitGateResult.d.ts.map +1 -1
- package/dist/audit/cli/submitGateResult.js +2 -1
- package/dist/audit/cli/submitGateResult.js.map +1 -1
- package/dist/audit/cli/unacceptResultsCommand.d.ts +3 -2
- package/dist/audit/cli/unacceptResultsCommand.d.ts.map +1 -1
- package/dist/audit/cli/unacceptResultsCommand.js +8 -6
- package/dist/audit/cli/unacceptResultsCommand.js.map +1 -1
- package/dist/audit/cli/validateResultsCommand.d.ts.map +1 -1
- package/dist/audit/cli/validateResultsCommand.js +5 -4
- package/dist/audit/cli/validateResultsCommand.js.map +1 -1
- package/dist/audit/cli.d.ts +0 -2
- package/dist/audit/cli.d.ts.map +1 -1
- package/dist/audit/cli.js +2 -2
- package/dist/audit/cli.js.map +1 -1
- package/dist/audit/decompose/buildStructureDecomposition.d.ts.map +1 -1
- package/dist/audit/decompose/buildStructureDecomposition.js +5 -5
- package/dist/audit/decompose/buildStructureDecomposition.js.map +1 -1
- package/dist/audit/extractors/analyzers/merge.d.ts.map +1 -1
- package/dist/audit/extractors/analyzers/merge.js +4 -11
- package/dist/audit/extractors/analyzers/merge.js.map +1 -1
- package/dist/audit/extractors/analyzers/typescript.d.ts.map +1 -1
- package/dist/audit/extractors/analyzers/typescript.js +3 -14
- package/dist/audit/extractors/analyzers/typescript.js.map +1 -1
- package/dist/audit/extractors/browserExtension.d.ts.map +1 -1
- package/dist/audit/extractors/browserExtension.js +3 -2
- package/dist/audit/extractors/browserExtension.js.map +1 -1
- package/dist/audit/extractors/commentDecomposition.d.ts +1 -1
- package/dist/audit/extractors/commentDecomposition.d.ts.map +1 -1
- package/dist/audit/extractors/commentDecomposition.js +16 -33
- package/dist/audit/extractors/commentDecomposition.js.map +1 -1
- package/dist/audit/extractors/dataStateCoupling.d.ts +4 -0
- package/dist/audit/extractors/dataStateCoupling.d.ts.map +1 -1
- package/dist/audit/extractors/dataStateCoupling.js +26 -12
- package/dist/audit/extractors/dataStateCoupling.js.map +1 -1
- package/dist/audit/extractors/designAssessment.js +1 -1
- package/dist/audit/extractors/designAssessment.js.map +1 -1
- package/dist/audit/extractors/disposition.d.ts.map +1 -1
- package/dist/audit/extractors/disposition.js +24 -40
- package/dist/audit/extractors/disposition.js.map +1 -1
- package/dist/audit/extractors/docsDigest.js +1 -1
- package/dist/audit/extractors/docsDigest.js.map +1 -1
- package/dist/audit/extractors/flows.d.ts.map +1 -1
- package/dist/audit/extractors/flows.js +23 -19
- package/dist/audit/extractors/flows.js.map +1 -1
- package/dist/audit/extractors/fsIntake.d.ts.map +1 -1
- package/dist/audit/extractors/fsIntake.js +8 -5
- package/dist/audit/extractors/fsIntake.js.map +1 -1
- package/dist/audit/extractors/gitHistory.d.ts +6 -6
- package/dist/audit/extractors/gitHistory.d.ts.map +1 -1
- package/dist/audit/extractors/gitHistory.js +6 -6
- package/dist/audit/extractors/gitHistory.js.map +1 -1
- package/dist/audit/extractors/graph.d.ts +3 -1
- package/dist/audit/extractors/graph.d.ts.map +1 -1
- package/dist/audit/extractors/graph.js +15 -17
- package/dist/audit/extractors/graph.js.map +1 -1
- package/dist/audit/extractors/graphManifestEdges/packageJson.d.ts.map +1 -1
- package/dist/audit/extractors/graphManifestEdges/packageJson.js +23 -40
- package/dist/audit/extractors/graphManifestEdges/packageJson.js.map +1 -1
- package/dist/audit/extractors/graphPathUtils.d.ts +9 -0
- package/dist/audit/extractors/graphPathUtils.d.ts.map +1 -1
- package/dist/audit/extractors/graphPathUtils.js +35 -16
- package/dist/audit/extractors/graphPathUtils.js.map +1 -1
- package/dist/audit/extractors/graphRoutes.d.ts.map +1 -1
- package/dist/audit/extractors/graphRoutes.js +3 -7
- package/dist/audit/extractors/graphRoutes.js.map +1 -1
- package/dist/audit/extractors/graphSignals.d.ts.map +1 -1
- package/dist/audit/extractors/graphSignals.js +40 -29
- package/dist/audit/extractors/graphSignals.js.map +1 -1
- package/dist/audit/extractors/graphSuites.d.ts.map +1 -1
- package/dist/audit/extractors/graphSuites.js +4 -7
- package/dist/audit/extractors/graphSuites.js.map +1 -1
- package/dist/audit/extractors/graphTestSources.d.ts.map +1 -1
- package/dist/audit/extractors/graphTestSources.js +3 -10
- package/dist/audit/extractors/graphTestSources.js.map +1 -1
- package/dist/audit/extractors/pathPatterns.d.ts +4 -2
- package/dist/audit/extractors/pathPatterns.d.ts.map +1 -1
- package/dist/audit/extractors/pathPatterns.js +13 -21
- package/dist/audit/extractors/pathPatterns.js.map +1 -1
- package/dist/audit/extractors/risk.d.ts.map +1 -1
- package/dist/audit/extractors/risk.js +7 -7
- package/dist/audit/extractors/risk.js.map +1 -1
- package/dist/audit/extractors/surfaces.d.ts.map +1 -1
- package/dist/audit/extractors/surfaces.js +3 -9
- package/dist/audit/extractors/surfaces.js.map +1 -1
- package/dist/audit/io/artifacts.d.ts +1 -3
- package/dist/audit/io/artifacts.d.ts.map +1 -1
- package/dist/audit/io/artifacts.js +9 -9
- package/dist/audit/io/artifacts.js.map +1 -1
- package/dist/audit/io/rollover.d.ts.map +1 -1
- package/dist/audit/io/rollover.js +0 -1
- package/dist/audit/io/rollover.js.map +1 -1
- package/dist/audit/io/runArtifacts.d.ts +30 -2
- package/dist/audit/io/runArtifacts.d.ts.map +1 -1
- package/dist/audit/io/runArtifacts.js +23 -23
- package/dist/audit/io/runArtifacts.js.map +1 -1
- package/dist/audit/io/runSnapshot.js +2 -2
- package/dist/audit/io/runSnapshot.js.map +1 -1
- package/dist/audit/io/toolingManifest.d.ts.map +1 -1
- package/dist/audit/io/toolingManifest.js +7 -9
- package/dist/audit/io/toolingManifest.js.map +1 -1
- package/dist/audit/orchestrator/advance.d.ts +6 -0
- package/dist/audit/orchestrator/advance.d.ts.map +1 -1
- package/dist/audit/orchestrator/advance.js +70 -95
- package/dist/audit/orchestrator/advance.js.map +1 -1
- package/dist/audit/orchestrator/architectureDiscovery.d.ts +6 -2
- package/dist/audit/orchestrator/architectureDiscovery.d.ts.map +1 -1
- package/dist/audit/orchestrator/architectureDiscovery.js +19 -14
- package/dist/audit/orchestrator/architectureDiscovery.js.map +1 -1
- package/dist/audit/orchestrator/artifactMetadata.d.ts.map +1 -1
- package/dist/audit/orchestrator/artifactMetadata.js +12 -15
- package/dist/audit/orchestrator/artifactMetadata.js.map +1 -1
- package/dist/audit/orchestrator/auditTaskUtils.d.ts +13 -0
- package/dist/audit/orchestrator/auditTaskUtils.d.ts.map +1 -1
- package/dist/audit/orchestrator/auditTaskUtils.js +10 -3
- package/dist/audit/orchestrator/auditTaskUtils.js.map +1 -1
- package/dist/audit/orchestrator/autoFixExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/autoFixExecutor.js +2 -8
- package/dist/audit/orchestrator/autoFixExecutor.js.map +1 -1
- package/dist/audit/orchestrator/charterClarificationExecutor.d.ts +4 -2
- package/dist/audit/orchestrator/charterClarificationExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterClarificationExecutor.js +12 -20
- package/dist/audit/orchestrator/charterClarificationExecutor.js.map +1 -1
- package/dist/audit/orchestrator/charterComparisonExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterComparisonExecutor.js +5 -9
- package/dist/audit/orchestrator/charterComparisonExecutor.js.map +1 -1
- package/dist/audit/orchestrator/charterExtractionExecutor.d.ts +5 -0
- package/dist/audit/orchestrator/charterExtractionExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterExtractionExecutor.js +10 -5
- package/dist/audit/orchestrator/charterExtractionExecutor.js.map +1 -1
- package/dist/audit/orchestrator/charterFidelityPacket.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterFidelityPacket.js +1 -2
- package/dist/audit/orchestrator/charterFidelityPacket.js.map +1 -1
- package/dist/audit/orchestrator/charterPacketArchive.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterPacketArchive.js +11 -7
- package/dist/audit/orchestrator/charterPacketArchive.js.map +1 -1
- package/dist/audit/orchestrator/charterPackets.d.ts.map +1 -1
- package/dist/audit/orchestrator/charterPackets.js +30 -69
- package/dist/audit/orchestrator/charterPackets.js.map +1 -1
- package/dist/audit/orchestrator/dependencyMap.d.ts +0 -1
- package/dist/audit/orchestrator/dependencyMap.d.ts.map +1 -1
- package/dist/audit/orchestrator/dependencyMap.js +0 -7
- package/dist/audit/orchestrator/dependencyMap.js.map +1 -1
- package/dist/audit/orchestrator/dependencySlices.d.ts +20 -0
- package/dist/audit/orchestrator/dependencySlices.d.ts.map +1 -1
- package/dist/audit/orchestrator/dependencySlices.js +20 -20
- package/dist/audit/orchestrator/dependencySlices.js.map +1 -1
- package/dist/audit/orchestrator/designReviewProjection.d.ts +1 -3
- package/dist/audit/orchestrator/designReviewProjection.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewProjection.js +8 -2
- package/dist/audit/orchestrator/designReviewProjection.js.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.d.ts +2 -11
- package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.js +10 -25
- package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -1
- package/dist/audit/orchestrator/designReviewSnapshot.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewSnapshot.js +1 -2
- package/dist/audit/orchestrator/designReviewSnapshot.js.map +1 -1
- package/dist/audit/orchestrator/designReviewTask.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewTask.js +2 -2
- package/dist/audit/orchestrator/designReviewTask.js.map +1 -1
- package/dist/audit/orchestrator/edgeReasoning.d.ts.map +1 -1
- package/dist/audit/orchestrator/edgeReasoning.js +1 -3
- package/dist/audit/orchestrator/edgeReasoning.js.map +1 -1
- package/dist/audit/orchestrator/executorResult.d.ts +3 -32
- package/dist/audit/orchestrator/executorResult.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.js +33 -43
- package/dist/audit/orchestrator/executorRunners.js.map +1 -1
- package/dist/audit/orchestrator/executors.d.ts +34 -0
- package/dist/audit/orchestrator/executors.d.ts.map +1 -1
- package/dist/audit/orchestrator/executors.js +19 -4
- package/dist/audit/orchestrator/executors.js.map +1 -1
- package/dist/audit/orchestrator/fileIntegrity.d.ts.map +1 -1
- package/dist/audit/orchestrator/fileIntegrity.js +4 -3
- package/dist/audit/orchestrator/fileIntegrity.js.map +1 -1
- package/dist/audit/orchestrator/flowPlanning.d.ts.map +1 -1
- package/dist/audit/orchestrator/flowPlanning.js +2 -2
- package/dist/audit/orchestrator/flowPlanning.js.map +1 -1
- package/dist/audit/orchestrator/flowRequeue.d.ts.map +1 -1
- package/dist/audit/orchestrator/flowRequeue.js +2 -3
- package/dist/audit/orchestrator/flowRequeue.js.map +1 -1
- package/dist/audit/orchestrator/graphEnrichmentExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/graphEnrichmentExecutor.js +5 -18
- package/dist/audit/orchestrator/graphEnrichmentExecutor.js.map +1 -1
- package/dist/audit/orchestrator/hostInputPause.d.ts +4 -20
- package/dist/audit/orchestrator/hostInputPause.d.ts.map +1 -1
- package/dist/audit/orchestrator/hostInputPause.js +4 -3
- package/dist/audit/orchestrator/hostInputPause.js.map +1 -1
- package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/ingestionExecutors.js +5 -17
- package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +1 -2
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.js +42 -53
- package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointGate.d.ts +1 -1
- package/dist/audit/orchestrator/intentCheckpointGate.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointGate.js +12 -8
- package/dist/audit/orchestrator/intentCheckpointGate.js.map +1 -1
- package/dist/audit/orchestrator/intentEquivalenceExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentEquivalenceExecutor.js +13 -22
- package/dist/audit/orchestrator/intentEquivalenceExecutor.js.map +1 -1
- package/dist/audit/orchestrator/lineCounts.d.ts +2 -0
- package/dist/audit/orchestrator/lineCounts.d.ts.map +1 -1
- package/dist/audit/orchestrator/lineCounts.js +4 -0
- package/dist/audit/orchestrator/lineCounts.js.map +1 -1
- package/dist/audit/orchestrator/obligationPolicy.d.ts.map +1 -1
- package/dist/audit/orchestrator/obligationPolicy.js +46 -48
- package/dist/audit/orchestrator/obligationPolicy.js.map +1 -1
- package/dist/audit/orchestrator/pendingTasks.d.ts.map +1 -1
- package/dist/audit/orchestrator/pendingTasks.js +4 -3
- package/dist/audit/orchestrator/pendingTasks.js.map +1 -1
- package/dist/audit/orchestrator/planningExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/planningExecutors.js +5 -1
- package/dist/audit/orchestrator/planningExecutors.js.map +1 -1
- package/dist/audit/orchestrator/requeue.d.ts.map +1 -1
- package/dist/audit/orchestrator/requeue.js +2 -2
- package/dist/audit/orchestrator/requeue.js.map +1 -1
- package/dist/audit/orchestrator/requeueCommand.d.ts.map +1 -1
- package/dist/audit/orchestrator/requeueCommand.js +13 -21
- package/dist/audit/orchestrator/requeueCommand.js.map +1 -1
- package/dist/audit/orchestrator/resultIngestion.d.ts.map +1 -1
- package/dist/audit/orchestrator/resultIngestion.js +3 -4
- package/dist/audit/orchestrator/resultIngestion.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphContext.js +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphContext.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts +2 -8
- package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphEdges.js +6 -38
- package/dist/audit/orchestrator/reviewPacketGraphEdges.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketMetrics.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketMetrics.js +7 -68
- package/dist/audit/orchestrator/reviewPacketMetrics.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketShared.d.ts +0 -2
- package/dist/audit/orchestrator/reviewPacketShared.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketShared.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketSizing.d.ts +1 -3
- package/dist/audit/orchestrator/reviewPacketSizing.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketSizing.js +3 -13
- package/dist/audit/orchestrator/reviewPacketSizing.js.map +1 -1
- package/dist/audit/orchestrator/reviewPackets.d.ts +7 -8
- package/dist/audit/orchestrator/reviewPackets.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPackets.js +17 -32
- package/dist/audit/orchestrator/reviewPackets.js.map +1 -1
- package/dist/audit/orchestrator/runtimeValidation.js +2 -2
- package/dist/audit/orchestrator/runtimeValidation.js.map +1 -1
- package/dist/audit/orchestrator/scope.d.ts.map +1 -1
- package/dist/audit/orchestrator/scope.js +3 -2
- package/dist/audit/orchestrator/scope.js.map +1 -1
- package/dist/audit/orchestrator/scopeIndexBaseline.d.ts.map +1 -1
- package/dist/audit/orchestrator/scopeIndexBaseline.js +1 -2
- package/dist/audit/orchestrator/scopeIndexBaseline.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/conflict.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/conflict.js +2 -2
- package/dist/audit/orchestrator/selectiveDeepening/conflict.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.d.ts +3 -5
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js +8 -6
- package/dist/audit/orchestrator/selectiveDeepening/findingFollowup.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.js +15 -11
- package/dist/audit/orchestrator/selectiveDeepening/highRiskClean.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/index.d.ts +3 -3
- package/dist/audit/orchestrator/selectiveDeepening/index.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/index.js +50 -77
- package/dist/audit/orchestrator/selectiveDeepening/index.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/lensVerification.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/lensVerification.js +27 -18
- package/dist/audit/orchestrator/selectiveDeepening/lensVerification.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.d.ts +1 -2
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.js +6 -3
- package/dist/audit/orchestrator/selectiveDeepening/runtimeValidation.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/shared.d.ts +12 -9
- package/dist/audit/orchestrator/selectiveDeepening/shared.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/shared.js +15 -35
- package/dist/audit/orchestrator/selectiveDeepening/shared.js.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.d.ts.map +1 -1
- package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.js +9 -16
- package/dist/audit/orchestrator/selectiveDeepening/stewardFollowup.js.map +1 -1
- package/dist/audit/orchestrator/staleness.d.ts.map +1 -1
- package/dist/audit/orchestrator/staleness.js +40 -36
- package/dist/audit/orchestrator/staleness.js.map +1 -1
- package/dist/audit/orchestrator/state.d.ts.map +1 -1
- package/dist/audit/orchestrator/state.js +16 -17
- package/dist/audit/orchestrator/state.js.map +1 -1
- package/dist/audit/orchestrator/structureExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/structureExecutors.js +5 -4
- package/dist/audit/orchestrator/structureExecutors.js.map +1 -1
- package/dist/audit/orchestrator/taskAffinityGraph.d.ts.map +1 -1
- package/dist/audit/orchestrator/taskAffinityGraph.js +19 -15
- package/dist/audit/orchestrator/taskAffinityGraph.js.map +1 -1
- package/dist/audit/orchestrator/taskBuilder.d.ts.map +1 -1
- package/dist/audit/orchestrator/taskBuilder.js +2 -3
- package/dist/audit/orchestrator/taskBuilder.js.map +1 -1
- package/dist/audit/orchestrator/trivialAudit.d.ts.map +1 -1
- package/dist/audit/orchestrator/trivialAudit.js +2 -1
- package/dist/audit/orchestrator/trivialAudit.js.map +1 -1
- package/dist/audit/reporting/mergeFindings.d.ts.map +1 -1
- package/dist/audit/reporting/mergeFindings.js +6 -4
- package/dist/audit/reporting/mergeFindings.js.map +1 -1
- package/dist/audit/reporting/synthesis.d.ts.map +1 -1
- package/dist/audit/reporting/synthesis.js +5 -10
- package/dist/audit/reporting/synthesis.js.map +1 -1
- package/dist/audit/reporting/workBlocks.d.ts +0 -1
- package/dist/audit/reporting/workBlocks.d.ts.map +1 -1
- package/dist/audit/reporting/workBlocks.js +8 -15
- package/dist/audit/reporting/workBlocks.js.map +1 -1
- package/dist/audit/systemic/reviewFileMap.js +2 -2
- package/dist/audit/systemic/reviewFileMap.js.map +1 -1
- package/dist/audit/systemic/secondOrderAdversaryPrompt.d.ts.map +1 -1
- package/dist/audit/systemic/secondOrderAdversaryPrompt.js +2 -2
- package/dist/audit/systemic/secondOrderAdversaryPrompt.js.map +1 -1
- package/dist/audit/systemic/systemicChallengeLoop.js +3 -3
- package/dist/audit/systemic/systemicChallengeLoop.js.map +1 -1
- package/dist/audit/types/reviewPlanning.d.ts +10 -8
- package/dist/audit/types/reviewPlanning.d.ts.map +1 -1
- package/dist/audit/types/reviewPlanning.js +3 -1
- package/dist/audit/types/reviewPlanning.js.map +1 -1
- package/dist/remediate/contractPipeline/executionPlan.d.ts +3 -0
- package/dist/remediate/contractPipeline/executionPlan.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/executionPlan.js +27 -22
- package/dist/remediate/contractPipeline/executionPlan.js.map +1 -1
- package/dist/remediate/contractPipeline/runtimePlanAuthority.d.ts +1 -0
- package/dist/remediate/contractPipeline/runtimePlanAuthority.d.ts.map +1 -1
- package/dist/remediate/contractPipeline/runtimePlanAuthority.js +4 -3
- package/dist/remediate/contractPipeline/runtimePlanAuthority.js.map +1 -1
- package/dist/remediate/dedup/crossLensDedup.d.ts +0 -2
- package/dist/remediate/dedup/crossLensDedup.d.ts.map +1 -1
- package/dist/remediate/dedup/crossLensDedup.js +1 -4
- package/dist/remediate/dedup/crossLensDedup.js.map +1 -1
- package/dist/remediate/droppedFindingsRecord.d.ts.map +1 -1
- package/dist/remediate/droppedFindingsRecord.js +3 -1
- package/dist/remediate/droppedFindingsRecord.js.map +1 -1
- package/dist/remediate/index.d.ts +2 -3
- package/dist/remediate/index.d.ts.map +1 -1
- package/dist/remediate/index.js +51 -27
- package/dist/remediate/index.js.map +1 -1
- package/dist/remediate/intake.d.ts +9 -8
- package/dist/remediate/intake.d.ts.map +1 -1
- package/dist/remediate/intake.js +9 -5
- package/dist/remediate/intake.js.map +1 -1
- package/dist/remediate/intakeSelection.js +3 -3
- package/dist/remediate/intakeSelection.js.map +1 -1
- package/dist/remediate/intent/intentOrdering.d.ts +10 -9
- package/dist/remediate/intent/intentOrdering.d.ts.map +1 -1
- package/dist/remediate/intent/intentOrdering.js +10 -9
- package/dist/remediate/intent/intentOrdering.js.map +1 -1
- package/dist/remediate/intent/intentPersistence.d.ts +1 -0
- package/dist/remediate/intent/intentPersistence.d.ts.map +1 -1
- package/dist/remediate/intent/intentPersistence.js +18 -10
- package/dist/remediate/intent/intentPersistence.js.map +1 -1
- package/dist/remediate/phases/close.d.ts +16 -15
- package/dist/remediate/phases/close.d.ts.map +1 -1
- package/dist/remediate/phases/close.js +172 -163
- package/dist/remediate/phases/close.js.map +1 -1
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.js +1 -1
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.js.map +1 -1
- package/dist/remediate/phases/closeVerifyHeadEvidence.d.ts.map +1 -1
- package/dist/remediate/phases/closeVerifyHeadEvidence.js +11 -11
- package/dist/remediate/phases/closeVerifyHeadEvidence.js.map +1 -1
- package/dist/remediate/phases/closeVerifyLandingGates.d.ts +6 -0
- package/dist/remediate/phases/closeVerifyLandingGates.d.ts.map +1 -1
- package/dist/remediate/phases/closeVerifyLandingGates.js +10 -6
- package/dist/remediate/phases/closeVerifyLandingGates.js.map +1 -1
- package/dist/remediate/phases/grounding.d.ts +1 -1
- package/dist/remediate/phases/grounding.d.ts.map +1 -1
- package/dist/remediate/phases/triage.d.ts.map +1 -1
- package/dist/remediate/phases/triage.js +19 -25
- package/dist/remediate/phases/triage.js.map +1 -1
- package/dist/remediate/phases/triageConformance.d.ts.map +1 -1
- package/dist/remediate/phases/triageConformance.js +11 -15
- package/dist/remediate/phases/triageConformance.js.map +1 -1
- package/dist/remediate/review/autonomousGate.d.ts +5 -5
- package/dist/remediate/review/autonomousGate.d.ts.map +1 -1
- package/dist/remediate/review/autonomousGate.js +5 -0
- package/dist/remediate/review/autonomousGate.js.map +1 -1
- package/dist/remediate/review/reviewGate.d.ts.map +1 -1
- package/dist/remediate/review/reviewGate.js +12 -11
- package/dist/remediate/review/reviewGate.js.map +1 -1
- package/dist/remediate/riskSignal.d.ts +0 -1
- package/dist/remediate/riskSignal.d.ts.map +1 -1
- package/dist/remediate/riskSignal.js.map +1 -1
- package/dist/remediate/state/decisionConsumption.d.ts +2 -0
- package/dist/remediate/state/decisionConsumption.d.ts.map +1 -1
- package/dist/remediate/state/decisionConsumption.js +12 -10
- package/dist/remediate/state/decisionConsumption.js.map +1 -1
- package/dist/remediate/state/itemStatus.d.ts +3 -3
- package/dist/remediate/state/itemStatus.js +5 -5
- package/dist/remediate/state/store.d.ts +4 -3
- package/dist/remediate/state/store.d.ts.map +1 -1
- package/dist/remediate/state/store.js +11 -24
- package/dist/remediate/state/store.js.map +1 -1
- package/dist/remediate/state/types.d.ts +2 -2
- package/dist/remediate/state/types.d.ts.map +1 -1
- package/dist/remediate/state/types.js +12 -14
- package/dist/remediate/state/types.js.map +1 -1
- package/dist/remediate/steps/clarificationResolution.d.ts.map +1 -1
- package/dist/remediate/steps/clarificationResolution.js +4 -2
- package/dist/remediate/steps/clarificationResolution.js.map +1 -1
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.js +26 -23
- package/dist/remediate/steps/contractPipeline.js.map +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.d.ts +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipelinePrompts.js +3 -2
- package/dist/remediate/steps/contractPipelinePrompts.js.map +1 -1
- package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts +8 -3
- package/dist/remediate/steps/dispatch/contractConformanceReview.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/contractConformanceReview.js +15 -12
- package/dist/remediate/steps/dispatch/contractConformanceReview.js.map +1 -1
- package/dist/remediate/steps/dispatch/hostContracts.d.ts +2 -0
- package/dist/remediate/steps/dispatch/hostContracts.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/hostContracts.js +6 -3
- package/dist/remediate/steps/dispatch/hostContracts.js.map +1 -1
- package/dist/remediate/steps/dispatch/hostCorroboration.d.ts +11 -12
- package/dist/remediate/steps/dispatch/hostCorroboration.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/hostCorroboration.js +13 -6
- package/dist/remediate/steps/dispatch/hostCorroboration.js.map +1 -1
- package/dist/remediate/steps/dispatch/hostHandoff.d.ts +5 -7
- package/dist/remediate/steps/dispatch/hostHandoff.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/hostHandoff.js +162 -265
- package/dist/remediate/steps/dispatch/hostHandoff.js.map +1 -1
- package/dist/remediate/steps/dispatch/requiredTests.d.ts +18 -0
- package/dist/remediate/steps/dispatch/requiredTests.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/requiredTests.js +9 -11
- package/dist/remediate/steps/dispatch/requiredTests.js.map +1 -1
- package/dist/remediate/steps/finalGate.d.ts +1 -1
- package/dist/remediate/steps/finalGate.d.ts.map +1 -1
- package/dist/remediate/steps/finalGate.js +12 -12
- package/dist/remediate/steps/finalGate.js.map +1 -1
- package/dist/remediate/steps/frictionCloseout.d.ts.map +1 -1
- package/dist/remediate/steps/frictionCloseout.js +0 -1
- package/dist/remediate/steps/frictionCloseout.js.map +1 -1
- package/dist/remediate/steps/gateCommands.d.ts +5 -10
- package/dist/remediate/steps/gateCommands.d.ts.map +1 -1
- package/dist/remediate/steps/gateCommands.js +8 -12
- package/dist/remediate/steps/gateCommands.js.map +1 -1
- package/dist/remediate/steps/intakeResolver.d.ts +5 -7
- package/dist/remediate/steps/intakeResolver.d.ts.map +1 -1
- package/dist/remediate/steps/intakeResolver.js +30 -33
- package/dist/remediate/steps/intakeResolver.js.map +1 -1
- package/dist/remediate/steps/nextStep.d.ts +1 -1
- package/dist/remediate/steps/nextStep.d.ts.map +1 -1
- package/dist/remediate/steps/nextStep.js +134 -158
- package/dist/remediate/steps/nextStep.js.map +1 -1
- package/dist/remediate/steps/prompts.d.ts +4 -30
- package/dist/remediate/steps/prompts.d.ts.map +1 -1
- package/dist/remediate/steps/prompts.js +5 -114
- package/dist/remediate/steps/prompts.js.map +1 -1
- package/dist/remediate/steps/recoverIngest.d.ts +5 -13
- package/dist/remediate/steps/recoverIngest.d.ts.map +1 -1
- package/dist/remediate/steps/recoverIngest.js +20 -26
- package/dist/remediate/steps/recoverIngest.js.map +1 -1
- package/dist/remediate/steps/stepWriter.d.ts +5 -4
- package/dist/remediate/steps/stepWriter.d.ts.map +1 -1
- package/dist/remediate/steps/stepWriter.js +8 -5
- package/dist/remediate/steps/stepWriter.js.map +1 -1
- package/dist/remediate/steps/submitGateResult.d.ts +0 -5
- package/dist/remediate/steps/submitGateResult.d.ts.map +1 -1
- package/dist/remediate/steps/submitGateResult.js +8 -8
- package/dist/remediate/steps/submitGateResult.js.map +1 -1
- package/dist/remediate/steps/types.d.ts +1 -1
- package/dist/remediate/steps/types.d.ts.map +1 -1
- package/dist/remediate/steps/types.js +0 -1
- package/dist/remediate/steps/types.js.map +1 -1
- package/dist/remediate/validation/artifacts.d.ts.map +1 -1
- package/dist/remediate/validation/artifacts.js +11 -9
- package/dist/remediate/validation/artifacts.js.map +1 -1
- package/dist/remediate/validation/remediationState.d.ts +0 -2
- package/dist/remediate/validation/remediationState.d.ts.map +1 -1
- package/dist/remediate/validation/remediationState.js +9 -46
- package/dist/remediate/validation/remediationState.js.map +1 -1
- package/dist/shared/accessMemory.d.ts +3 -9
- package/dist/shared/accessMemory.d.ts.map +1 -1
- package/dist/shared/accessMemory.js +2 -4
- package/dist/shared/accessMemory.js.map +1 -1
- package/dist/shared/affinityArtifacts.d.ts.map +1 -1
- package/dist/shared/affinityArtifacts.js +5 -7
- package/dist/shared/affinityArtifacts.js.map +1 -1
- package/dist/shared/agentReflections.d.ts.map +1 -1
- package/dist/shared/agentReflections.js +11 -14
- package/dist/shared/agentReflections.js.map +1 -1
- package/dist/shared/analyzers/binaryAcquisition.d.ts.map +1 -1
- package/dist/shared/analyzers/binaryAcquisition.js +2 -1
- package/dist/shared/analyzers/binaryAcquisition.js.map +1 -1
- package/dist/shared/analyzers/candidates.js +1 -1
- package/dist/shared/analyzers/candidates.js.map +1 -1
- package/dist/shared/analyzers/clippy.d.ts +2 -25
- package/dist/shared/analyzers/clippy.d.ts.map +1 -1
- package/dist/shared/analyzers/clippy.js +1 -17
- package/dist/shared/analyzers/clippy.js.map +1 -1
- package/dist/shared/analyzers/normalizeExternal.d.ts +0 -15
- package/dist/shared/analyzers/normalizeExternal.d.ts.map +1 -1
- package/dist/shared/analyzers/normalizeExternal.js +2 -1
- package/dist/shared/analyzers/normalizeExternal.js.map +1 -1
- package/dist/shared/analyzers/rubocop.d.ts +1 -19
- package/dist/shared/analyzers/rubocop.d.ts.map +1 -1
- package/dist/shared/analyzers/rubocop.js +0 -23
- package/dist/shared/analyzers/rubocop.js.map +1 -1
- package/dist/shared/artifactFreshness.d.ts.map +1 -1
- package/dist/shared/artifactFreshness.js +4 -6
- package/dist/shared/artifactFreshness.js.map +1 -1
- package/dist/shared/chunkByBudget.d.ts +1 -24
- package/dist/shared/chunkByBudget.d.ts.map +1 -1
- package/dist/shared/chunkByBudget.js +2 -13
- package/dist/shared/chunkByBudget.js.map +1 -1
- package/dist/shared/compareCodeUnits.d.ts +2 -0
- package/dist/shared/compareCodeUnits.d.ts.map +1 -1
- package/dist/shared/compareCodeUnits.js +5 -0
- package/dist/shared/compareCodeUnits.js.map +1 -1
- package/dist/shared/contentKey.d.ts.map +1 -1
- package/dist/shared/contentKey.js +3 -1
- package/dist/shared/contentKey.js.map +1 -1
- package/dist/shared/countBy.d.ts.map +1 -1
- package/dist/shared/countBy.js +4 -3
- package/dist/shared/countBy.js.map +1 -1
- package/dist/shared/decompose/charterExtraction.d.ts.map +1 -1
- package/dist/shared/decompose/charterExtraction.js +11 -20
- package/dist/shared/decompose/charterExtraction.js.map +1 -1
- package/dist/shared/decompose/consensus.d.ts.map +1 -1
- package/dist/shared/decompose/consensus.js +4 -12
- package/dist/shared/decompose/consensus.js.map +1 -1
- package/dist/shared/decompose/contentCoherence.d.ts.map +1 -1
- package/dist/shared/decompose/contentCoherence.js +12 -15
- package/dist/shared/decompose/contentCoherence.js.map +1 -1
- package/dist/shared/decompose/modularity.d.ts.map +1 -1
- package/dist/shared/decompose/modularity.js +7 -19
- package/dist/shared/decompose/modularity.js.map +1 -1
- package/dist/shared/decompose/systemicChallenge.d.ts +8 -0
- package/dist/shared/decompose/systemicChallenge.d.ts.map +1 -1
- package/dist/shared/decompose/systemicChallenge.js +8 -8
- package/dist/shared/decompose/systemicChallenge.js.map +1 -1
- package/dist/shared/findingIdentitySignature.d.ts +6 -1
- package/dist/shared/findingIdentitySignature.d.ts.map +1 -1
- package/dist/shared/findingIdentitySignature.js +8 -6
- package/dist/shared/findingIdentitySignature.js.map +1 -1
- package/dist/shared/findingSimilarity.d.ts.map +1 -1
- package/dist/shared/findingSimilarity.js +9 -14
- package/dist/shared/findingSimilarity.js.map +1 -1
- package/dist/shared/findings/dedupe.d.ts.map +1 -1
- package/dist/shared/findings/dedupe.js +1 -10
- package/dist/shared/findings/dedupe.js.map +1 -1
- package/dist/shared/friction/captureFrictionEvent.d.ts +1 -1
- package/dist/shared/friction/captureFrictionEvent.d.ts.map +1 -1
- package/dist/shared/friction/frictionRecord.d.ts.map +1 -1
- package/dist/shared/friction/frictionRecord.js +3 -2
- package/dist/shared/friction/frictionRecord.js.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.d.ts +1 -2
- package/dist/shared/friction/stepBoundaryCapture.d.ts.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.js.map +1 -1
- package/dist/shared/friction/triage.d.ts.map +1 -1
- package/dist/shared/friction/triage.js +4 -3
- package/dist/shared/friction/triage.js.map +1 -1
- package/dist/shared/git.d.ts +2 -10
- package/dist/shared/git.d.ts.map +1 -1
- package/dist/shared/git.js +6 -17
- package/dist/shared/git.js.map +1 -1
- package/dist/shared/graph/graphPaths.d.ts +2 -5
- package/dist/shared/graph/graphPaths.d.ts.map +1 -1
- package/dist/shared/graph/graphPaths.js +5 -6
- package/dist/shared/graph/graphPaths.js.map +1 -1
- package/dist/shared/index.d.ts +41 -61
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +25 -7
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/intent/pathScope.d.ts +5 -0
- package/dist/shared/intent/pathScope.d.ts.map +1 -1
- package/dist/shared/intent/pathScope.js +17 -8
- package/dist/shared/intent/pathScope.js.map +1 -1
- package/dist/shared/io/auditToolsPaths.d.ts +9 -16
- package/dist/shared/io/auditToolsPaths.d.ts.map +1 -1
- package/dist/shared/io/auditToolsPaths.js +9 -18
- package/dist/shared/io/auditToolsPaths.js.map +1 -1
- package/dist/shared/io/frictionCapture.d.ts.map +1 -1
- package/dist/shared/io/frictionCapture.js +3 -2
- package/dist/shared/io/frictionCapture.js.map +1 -1
- package/dist/shared/io/stepContractWriter.d.ts.map +1 -1
- package/dist/shared/io/stepContractWriter.js +10 -8
- package/dist/shared/io/stepContractWriter.js.map +1 -1
- package/dist/shared/mcp/submitServer.d.ts.map +1 -1
- package/dist/shared/mcp/submitServer.js +21 -29
- package/dist/shared/mcp/submitServer.js.map +1 -1
- package/dist/shared/observability/rootLogObservations.d.ts.map +1 -1
- package/dist/shared/observability/rootLogObservations.js +3 -2
- package/dist/shared/observability/rootLogObservations.js.map +1 -1
- package/dist/shared/parsing/toml.d.ts.map +1 -1
- package/dist/shared/parsing/toml.js +3 -4
- package/dist/shared/parsing/toml.js.map +1 -1
- package/dist/shared/reporting/auditDeliverable.d.ts.map +1 -1
- package/dist/shared/reporting/auditDeliverable.js +6 -15
- package/dist/shared/reporting/auditDeliverable.js.map +1 -1
- package/dist/shared/reporting/lensCoverage.d.ts.map +1 -1
- package/dist/shared/reporting/lensCoverage.js +4 -5
- package/dist/shared/reporting/lensCoverage.js.map +1 -1
- package/dist/shared/reporting/markdown.d.ts +3 -0
- package/dist/shared/reporting/markdown.d.ts.map +1 -0
- package/dist/shared/reporting/markdown.js +6 -0
- package/dist/shared/reporting/markdown.js.map +1 -0
- package/dist/shared/sessionConfig.d.ts.map +1 -1
- package/dist/shared/sessionConfig.js +3 -7
- package/dist/shared/sessionConfig.js.map +1 -1
- package/dist/shared/submission/handRecovery.d.ts.map +1 -1
- package/dist/shared/submission/handRecovery.js +3 -2
- package/dist/shared/submission/handRecovery.js.map +1 -1
- package/dist/shared/submission/hostResultOutcomes.d.ts +1 -1
- package/dist/shared/submission/hostResultOutcomes.js +2 -2
- package/dist/shared/submission/hostResultOutcomes.js.map +1 -1
- package/dist/shared/submission/submissionClassifier.d.ts.map +1 -1
- package/dist/shared/submission/submissionClassifier.js +4 -3
- package/dist/shared/submission/submissionClassifier.js.map +1 -1
- package/dist/shared/submission/submissionIdentity.d.ts.map +1 -1
- package/dist/shared/submission/submissionIdentity.js +3 -1
- package/dist/shared/submission/submissionIdentity.js.map +1 -1
- package/dist/shared/submission/submissionLedger.d.ts +1 -0
- package/dist/shared/submission/submissionLedger.d.ts.map +1 -1
- package/dist/shared/submission/submissionLedger.js +9 -5
- package/dist/shared/submission/submissionLedger.js.map +1 -1
- package/dist/shared/tooling/allowlistedExec.d.ts.map +1 -1
- package/dist/shared/tooling/allowlistedExec.js +35 -67
- package/dist/shared/tooling/allowlistedExec.js.map +1 -1
- package/dist/shared/tooling/analyzerDeps.d.ts.map +1 -1
- package/dist/shared/tooling/analyzerDeps.js +2 -1
- package/dist/shared/tooling/analyzerDeps.js.map +1 -1
- package/dist/shared/tooling/exec.d.ts +1 -1
- package/dist/shared/tooling/exec.d.ts.map +1 -1
- package/dist/shared/tooling/exec.js +3 -2
- package/dist/shared/tooling/exec.js.map +1 -1
- package/dist/shared/tooling/landingGates.d.ts +3 -3
- package/dist/shared/tooling/landingGates.js +3 -3
- package/dist/shared/tooling/ownedProcessLifecycle.d.ts +0 -1
- package/dist/shared/tooling/ownedProcessLifecycle.d.ts.map +1 -1
- package/dist/shared/tooling/ownedProcessLifecycle.js +1 -1
- package/dist/shared/tooling/ownedProcessLifecycle.js.map +1 -1
- package/dist/shared/tooling/projectTestAdmission.d.ts +7 -12
- package/dist/shared/tooling/projectTestAdmission.d.ts.map +1 -1
- package/dist/shared/tooling/projectTestAdmission.js.map +1 -1
- package/dist/shared/tooling/testCommand.d.ts +0 -14
- package/dist/shared/tooling/testCommand.d.ts.map +1 -1
- package/dist/shared/tooling/testCommand.js +2 -3
- package/dist/shared/tooling/testCommand.js.map +1 -1
- package/dist/shared/tooling/windowsOwnedJob.d.ts +2 -1
- package/dist/shared/tooling/windowsOwnedJob.d.ts.map +1 -1
- package/dist/shared/types/accessMemory.d.ts +3 -19
- package/dist/shared/types/accessMemory.d.ts.map +1 -1
- package/dist/shared/types/accessMemory.js +3 -19
- package/dist/shared/types/accessMemory.js.map +1 -1
- package/dist/shared/types/intentCheckpoint.d.ts.map +1 -1
- package/dist/shared/types/intentCheckpoint.js +2 -1
- package/dist/shared/types/intentCheckpoint.js.map +1 -1
- package/dist/shared/types/lens.d.ts +5 -0
- package/dist/shared/types/lens.d.ts.map +1 -1
- package/dist/shared/types/lens.js +13 -0
- package/dist/shared/types/lens.js.map +1 -1
- package/dist/shared/types/remediationOutcome.d.ts +10 -0
- package/dist/shared/types/remediationOutcome.d.ts.map +1 -1
- package/dist/shared/types/remediationOutcome.js +3 -0
- package/dist/shared/types/remediationOutcome.js.map +1 -1
- package/dist/shared/validation/contractConstructionSites.d.ts.map +1 -1
- package/dist/shared/validation/contractConstructionSites.js +2 -1
- package/dist/shared/validation/contractConstructionSites.js.map +1 -1
- package/dist/shared/validation/findingGrounding.d.ts +2 -1
- package/dist/shared/validation/findingGrounding.d.ts.map +1 -1
- package/dist/shared/validation/findingGrounding.js +9 -5
- package/dist/shared/validation/findingGrounding.js.map +1 -1
- package/dist/shared/validation/findingsReport.d.ts +6 -0
- package/dist/shared/validation/findingsReport.d.ts.map +1 -1
- package/dist/shared/validation/findingsReport.js +29 -19
- package/dist/shared/validation/findingsReport.js.map +1 -1
- package/docs/audit-pkg/contracts.md +73 -6
- package/docs/audit-pkg/operator-guide.md +10 -2
- package/docs/audit-pkg/product.md +1 -1
- package/package.json +1 -3
- package/remediate-code.mjs +13 -5
- package/scripts/audit/postinstall.mjs +6 -21
- package/scripts/remediate/postinstall.mjs +2 -17
- package/scripts/shared/install-host-assets.mjs +11 -3
- package/scripts/shared/primitives.mjs +14 -3
- package/wrapper/audit-code-wrapper-build.mjs +21 -18
- package/wrapper/audit-code-wrapper-install-hosts.mjs +6 -120
- package/wrapper/audit-code-wrapper-lib.mjs +28 -42
- package/wrapper/audit-code-wrapper-opencode.mjs +11 -24
- package/wrapper/installer-verb-help.mjs +21 -8
- package/wrapper/remediate-code-wrapper-install-hosts.mjs +15 -130
- package/wrapper/remediate-code-wrapper-opencode.mjs +11 -24
- package/wrapper/repo-root.mjs +2 -2
- package/wrapper/shared-install-hosts.mjs +119 -0
- package/wrapper/shared-project-opencode.mjs +22 -0
- package/dist/audit/io/runArtifactTypes.d.ts +0 -8
- package/dist/audit/io/runArtifactTypes.d.ts.map +0 -1
- package/dist/audit/io/runArtifactTypes.js +0 -2
- package/dist/audit/io/runArtifactTypes.js.map +0 -1
- package/dist/audit/orchestrator/accessMemory.d.ts +0 -35
- package/dist/audit/orchestrator/accessMemory.d.ts.map +0 -1
- package/dist/audit/orchestrator/accessMemory.js +0 -54
- package/dist/audit/orchestrator/accessMemory.js.map +0 -1
- package/dist/audit/orchestrator/reviewPacketGraph.d.ts +0 -4
- package/dist/audit/orchestrator/reviewPacketGraph.d.ts.map +0 -1
- package/dist/audit/orchestrator/reviewPacketGraph.js +0 -7
- package/dist/audit/orchestrator/reviewPacketGraph.js.map +0 -1
- package/dist/shared/continuityScore.d.ts +0 -13
- package/dist/shared/continuityScore.d.ts.map +0 -1
- package/dist/shared/continuityScore.js +0 -164
- package/dist/shared/continuityScore.js.map +0 -1
- package/dist/shared/graph/directedCycles.d.ts +0 -61
- package/dist/shared/graph/directedCycles.d.ts.map +0 -1
- package/dist/shared/graph/directedCycles.js +0 -190
- package/dist/shared/graph/directedCycles.js.map +0 -1
- package/dist/shared/io/pathIdentity.d.ts +0 -26
- package/dist/shared/io/pathIdentity.d.ts.map +0 -1
- package/dist/shared/io/pathIdentity.js +0 -50
- package/dist/shared/io/pathIdentity.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// sites-pinned: tests/shared/install-bootstrap-opencode-stability.test.ts
|
|
2
|
+
import { mkdir, mkdtemp, readFile, rm, unlink } from 'node:fs/promises';
|
|
3
|
+
import { assertDirectoryExists, collectVerifyCheck, ensureFile, getFlag, hasFlag, normalizeNewlines, renderPromptFile, requireFlagValue, splitFrontmatter, toRepoRelativePath } from './shared-install-hosts.mjs';
|
|
2
4
|
import { tmpdir } from 'node:os';
|
|
3
5
|
import { dirname, join, relative, resolve } from 'node:path';
|
|
4
|
-
import { fileURLToPath } from 'node:url';
|
|
5
6
|
import {
|
|
6
7
|
fileExists,
|
|
7
8
|
INSTALL_MARKER_END,
|
|
@@ -30,7 +31,7 @@ import {
|
|
|
30
31
|
INSTALLED_PROMPT_FILENAME,
|
|
31
32
|
} from './remediate-code-wrapper-install-renderers.mjs';
|
|
32
33
|
|
|
33
|
-
const repoRoot = join(
|
|
34
|
+
const repoRoot = join(import.meta.dirname, '..');
|
|
34
35
|
const promptAssetPath = join(repoRoot, 'skills', 'remediate-code', 'remediate-code.prompt.md');
|
|
35
36
|
const skillAssetPath = join(repoRoot, 'skills', 'remediate-code', 'SKILL.md');
|
|
36
37
|
const INSTALL_GUIDE_FILENAME = 'GETTING-STARTED.md';
|
|
@@ -38,74 +39,6 @@ const INSTALL_MANIFEST_FILENAME = 'manifest.json';
|
|
|
38
39
|
const DEFAULT_INSTALL_HOST = 'all';
|
|
39
40
|
const INSTALL_DIR = '.remediate-code';
|
|
40
41
|
|
|
41
|
-
function hasFlag(argv, name) {
|
|
42
|
-
return argv.includes(name);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function getFlag(argv, name) {
|
|
46
|
-
const index = argv.indexOf(name);
|
|
47
|
-
if (index < 0) return undefined;
|
|
48
|
-
return argv[index + 1];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function requireFlagValue(argv, name) {
|
|
52
|
-
const value = getFlag(argv, name);
|
|
53
|
-
if (!value) {
|
|
54
|
-
throw new Error(`${name} requires a value.`);
|
|
55
|
-
}
|
|
56
|
-
return value;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function normalizeNewlines(value) {
|
|
60
|
-
return value.replace(/\r\n/g, '\n');
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
function splitFrontmatter(markdown) {
|
|
64
|
-
const normalized = normalizeNewlines(markdown);
|
|
65
|
-
const match = normalized.match(/^---\n([\s\S]*?)\n---\n?/u);
|
|
66
|
-
if (!match) {
|
|
67
|
-
return { frontmatter: null, body: normalized };
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return {
|
|
71
|
-
frontmatter: match[1],
|
|
72
|
-
body: normalized.slice(match[0].length),
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function renderFrontmatter(fields) {
|
|
77
|
-
const entries = Object.entries(fields).filter(([, value]) => {
|
|
78
|
-
if (value === undefined || value === null) {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
if (typeof value === 'string') {
|
|
83
|
-
return value.length > 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return true;
|
|
87
|
-
});
|
|
88
|
-
if (entries.length === 0) {
|
|
89
|
-
return '';
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return [
|
|
93
|
-
'---',
|
|
94
|
-
...entries.map(([key, value]) => `${key}: ${value}`),
|
|
95
|
-
'---',
|
|
96
|
-
'',
|
|
97
|
-
].join('\n');
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
function renderPromptFile(fields, body) {
|
|
101
|
-
return `${renderFrontmatter(fields)}${body.trimStart()}`;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function toRepoRelativePath(root, targetPath) {
|
|
105
|
-
const value = relative(root, targetPath).replace(/\\/g, '/');
|
|
106
|
-
return value.length > 0 ? value : '.';
|
|
107
|
-
}
|
|
108
|
-
|
|
109
42
|
function buildInstallDirective(relativePromptPath) {
|
|
110
43
|
return [
|
|
111
44
|
INSTALL_MARKER_START,
|
|
@@ -477,51 +410,6 @@ export function renderInstallGuide({
|
|
|
477
410
|
return lines.join('\n');
|
|
478
411
|
}
|
|
479
412
|
|
|
480
|
-
async function assertDirectoryExists(path, description) {
|
|
481
|
-
let stats;
|
|
482
|
-
try {
|
|
483
|
-
stats = await stat(path);
|
|
484
|
-
} catch {
|
|
485
|
-
throw new Error(`${description} does not exist: ${path}`);
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
if (!stats.isDirectory()) {
|
|
489
|
-
throw new Error(`${description} is not a directory: ${path}`);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
async function collectVerifyCheck(target, id, fn) {
|
|
494
|
-
try {
|
|
495
|
-
const details = await fn();
|
|
496
|
-
target.push({
|
|
497
|
-
id,
|
|
498
|
-
status: 'ok',
|
|
499
|
-
...(details ?? {}),
|
|
500
|
-
});
|
|
501
|
-
} catch (error) {
|
|
502
|
-
target.push({
|
|
503
|
-
id,
|
|
504
|
-
status: 'error',
|
|
505
|
-
summary: error instanceof Error ? error.message : String(error),
|
|
506
|
-
});
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
async function ensureFile(path, description) {
|
|
511
|
-
let stats;
|
|
512
|
-
try {
|
|
513
|
-
stats = await stat(path);
|
|
514
|
-
} catch {
|
|
515
|
-
throw new Error(`${description} does not exist: ${path}`);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
if (!stats.isFile()) {
|
|
519
|
-
throw new Error(`${description} is not a file: ${path}`);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
return stats;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
413
|
export async function writeCoreInstallAssets(root, assetPaths, promptSource, skillSource) {
|
|
526
414
|
const results = [];
|
|
527
415
|
const legacyInstalledPromptPath = join(root, INSTALL_DIR, 'install', 'remediate-code.prompt.md');
|
|
@@ -605,8 +493,8 @@ export async function installBootstrap(argv, options = {}) {
|
|
|
605
493
|
const root = resolveWrapperRoot(getFlag(argv, '--root'));
|
|
606
494
|
await assertDirectoryExists(root, 'Target repository root');
|
|
607
495
|
const profile = getInstallProfile(host);
|
|
608
|
-
const promptSource = (await readFile(promptAssetPath, 'utf8'))
|
|
609
|
-
const skillSource = (await readFile(skillAssetPath, 'utf8'))
|
|
496
|
+
const promptSource = normalizeNewlines(await readFile(promptAssetPath, 'utf8'));
|
|
497
|
+
const skillSource = normalizeNewlines(await readFile(skillAssetPath, 'utf8'));
|
|
610
498
|
const { body: promptBody } = splitFrontmatter(promptSource);
|
|
611
499
|
const assetPaths = buildInstallAssetPaths(root, profile);
|
|
612
500
|
const {
|
|
@@ -945,8 +833,8 @@ export async function verifyInstalledBootstrap(argv) {
|
|
|
945
833
|
await collectVerifyCheck(generalChecks, 'installed_prompt', async () => {
|
|
946
834
|
await ensureFile(assetPaths.installedPromptPath, 'Installed prompt asset');
|
|
947
835
|
const installedPrompt = await readFile(assetPaths.installedPromptPath, 'utf8');
|
|
948
|
-
const sourcePrompt = await readFile(promptAssetPath, 'utf8');
|
|
949
|
-
if (installedPrompt !== sourcePrompt) {
|
|
836
|
+
const sourcePrompt = normalizeNewlines(await readFile(promptAssetPath, 'utf8'));
|
|
837
|
+
if (normalizeNewlines(installedPrompt) !== sourcePrompt) {
|
|
950
838
|
throw new Error(
|
|
951
839
|
`Installed prompt is out of sync with the source prompt. Run "remediate-code install" from ${root}.`,
|
|
952
840
|
);
|
|
@@ -959,8 +847,8 @@ export async function verifyInstalledBootstrap(argv) {
|
|
|
959
847
|
|
|
960
848
|
await collectVerifyCheck(generalChecks, 'installed_skill', async () => {
|
|
961
849
|
await ensureFile(assetPaths.installedSkillPath, 'Installed skill asset');
|
|
962
|
-
const installedSkill = (await readFile(assetPaths.installedSkillPath, 'utf8'))
|
|
963
|
-
const sourceSkill = (await readFile(skillAssetPath, 'utf8'))
|
|
850
|
+
const installedSkill = normalizeNewlines(await readFile(assetPaths.installedSkillPath, 'utf8'));
|
|
851
|
+
const sourceSkill = normalizeNewlines(await readFile(skillAssetPath, 'utf8'));
|
|
964
852
|
if (installedSkill !== sourceSkill) {
|
|
965
853
|
throw new Error(
|
|
966
854
|
`Installed skill is out of sync with the source skill. Run "remediate-code install" from ${root}.`,
|
|
@@ -1089,8 +977,8 @@ export async function detectBootstrapRefreshReason(root, host) {
|
|
|
1089
977
|
if (installedPrompt === null) {
|
|
1090
978
|
return 'missing_installed_prompt';
|
|
1091
979
|
}
|
|
1092
|
-
const sourcePrompt = await readFile(promptAssetPath, 'utf8');
|
|
1093
|
-
if (installedPrompt !== sourcePrompt) {
|
|
980
|
+
const sourcePrompt = normalizeNewlines(await readFile(promptAssetPath, 'utf8'));
|
|
981
|
+
if (normalizeNewlines(installedPrompt) !== sourcePrompt) {
|
|
1094
982
|
return 'stale_installed_prompt';
|
|
1095
983
|
}
|
|
1096
984
|
const { body: sourcePromptBody } = splitFrontmatter(sourcePrompt);
|
|
@@ -1099,8 +987,8 @@ export async function detectBootstrapRefreshReason(root, host) {
|
|
|
1099
987
|
if (installedSkill === null) {
|
|
1100
988
|
return 'missing_installed_skill';
|
|
1101
989
|
}
|
|
1102
|
-
const sourceSkill = (await readFile(skillAssetPath, 'utf8'))
|
|
1103
|
-
if (installedSkill
|
|
990
|
+
const sourceSkill = normalizeNewlines(await readFile(skillAssetPath, 'utf8'));
|
|
991
|
+
if (normalizeNewlines(installedSkill) !== sourceSkill) {
|
|
1104
992
|
return 'stale_installed_skill';
|
|
1105
993
|
}
|
|
1106
994
|
|
|
@@ -1144,7 +1032,7 @@ export async function detectBootstrapRefreshReason(root, host) {
|
|
|
1144
1032
|
return 'missing_host_asset:antigravity:skill';
|
|
1145
1033
|
}
|
|
1146
1034
|
const antigravitySkill = await readTextIfExists(expectedSkillPath);
|
|
1147
|
-
if (antigravitySkill !== null && antigravitySkill
|
|
1035
|
+
if (antigravitySkill !== null && normalizeNewlines(antigravitySkill) !== sourceSkill) {
|
|
1148
1036
|
return 'stale_host_asset:antigravity:skill';
|
|
1149
1037
|
}
|
|
1150
1038
|
break;
|
|
@@ -1217,9 +1105,6 @@ export async function installHostPrompt(argv) {
|
|
|
1217
1105
|
await installBootstrap(argv);
|
|
1218
1106
|
}
|
|
1219
1107
|
|
|
1220
|
-
// Underscore-aliased re-exports consumed by host-bootstrap-descriptors tests
|
|
1221
|
-
// via remediate-code-wrapper-lib.mjs. Keep these so the test import chain resolves
|
|
1222
|
-
// without modification to the test file.
|
|
1223
1108
|
export {
|
|
1224
1109
|
INSTALL_HOST_ORDER as _INSTALL_HOST_ORDER,
|
|
1225
1110
|
INSTALL_HOST_DEFINITIONS as _INSTALL_HOST_DEFINITIONS,
|
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const shared = await import('audit-tools/shared');
|
|
12
|
-
mergeOpenCodeAgentPermissionRule = shared.mergeOpenCodeAgentPermissionRule;
|
|
13
|
-
withoutOpenCodeWildcard = shared.withoutOpenCodeWildcard;
|
|
14
|
-
migrateOpenCodeGlobalExternalDirectory = shared.migrateOpenCodeGlobalExternalDirectory;
|
|
15
|
-
composeOpenCodeBashCeiling = shared.composeOpenCodeBashCeiling;
|
|
16
|
-
sharedOpenCodePermissions = true;
|
|
17
|
-
} catch {
|
|
18
|
-
// shared not yet built — callers that need merge logic will throw below
|
|
19
|
-
}
|
|
1
|
+
// sites-pinned: tests/shared/installer-host-compatibility.test.ts, tests/shared/install-bootstrap-opencode-stability.test.ts
|
|
2
|
+
import {
|
|
3
|
+
mergeOpenCodeAgentPermissionRule,
|
|
4
|
+
withoutOpenCodeWildcard,
|
|
5
|
+
migrateOpenCodeGlobalExternalDirectory,
|
|
6
|
+
composeOpenCodeBashCeiling,
|
|
7
|
+
sharedOpenCodePermissions,
|
|
8
|
+
unavailableProjectPermissions,
|
|
9
|
+
} from './shared-project-opencode.mjs';
|
|
10
|
+
export { sharedOpenCodePermissions };
|
|
20
11
|
|
|
21
12
|
export const OPENCODE_REMEDIATE_EDIT_PERMISSION = {
|
|
22
13
|
'*': 'ask',
|
|
@@ -229,11 +220,7 @@ function collectAgentBashRuleSets(agentMap) {
|
|
|
229
220
|
}
|
|
230
221
|
|
|
231
222
|
export function buildMergedOpenCodeProjectConfig(existing, root) {
|
|
232
|
-
if (!sharedOpenCodePermissions)
|
|
233
|
-
throw new Error(
|
|
234
|
-
'audit-tools/shared is not available. Run "npm run build" before deploying OpenCode config.',
|
|
235
|
-
);
|
|
236
|
-
}
|
|
223
|
+
if (!sharedOpenCodePermissions) unavailableProjectPermissions();
|
|
237
224
|
const generated = renderOpenCodeProjectConfig(root);
|
|
238
225
|
const mergedMcp = objectValue(existing.mcp);
|
|
239
226
|
delete mergedMcp.remediator;
|
package/wrapper/repo-root.mjs
CHANGED
|
@@ -48,10 +48,10 @@ function repoRootCeiling() {
|
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
// sites-pinned: tests/shared/wrapper-repo-root-parity.test.ts
|
|
52
52
|
/** @param {string} [startDir] @returns {string} */
|
|
53
53
|
export function discoverRepoRoot(startDir = process.cwd()) {
|
|
54
|
-
const start = climbOutOfAuditTools(
|
|
54
|
+
const start = climbOutOfAuditTools(startDir);
|
|
55
55
|
const ceiling = repoRootCeiling();
|
|
56
56
|
let current = start;
|
|
57
57
|
for (;;) {
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// sites-pinned: tests/shared/installer-host-compatibility.test.ts
|
|
2
|
+
import { stat } from 'node:fs/promises';
|
|
3
|
+
import { relative } from 'node:path';
|
|
4
|
+
|
|
5
|
+
export function hasFlag(argv, name) {
|
|
6
|
+
return argv.includes(name);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function getFlag(argv, name) {
|
|
10
|
+
const index = argv.findIndex(argument => argument === name || argument.startsWith(name + '='));
|
|
11
|
+
if (index < 0) return undefined;
|
|
12
|
+
const flag = argv[index];
|
|
13
|
+
const value = flag === name ? argv[index + 1] : flag.slice(name.length + 1);
|
|
14
|
+
if (!value || (flag === name && value.startsWith('--'))) throw new Error(`${name} requires a value.`);
|
|
15
|
+
return value;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function requireFlagValue(argv, name) {
|
|
19
|
+
const value = getFlag(argv, name);
|
|
20
|
+
if (!value) {
|
|
21
|
+
throw new Error(`${name} requires a value.`);
|
|
22
|
+
}
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function normalizeNewlines(value) {
|
|
27
|
+
return value.replace(/\r\n/g, '\n');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function splitFrontmatter(markdown) {
|
|
31
|
+
const normalized = normalizeNewlines(markdown);
|
|
32
|
+
const match = normalized.match(/^---\n([\s\S]*?)\n---\n?/u);
|
|
33
|
+
if (!match) {
|
|
34
|
+
return { frontmatter: null, body: normalized };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
frontmatter: match[1],
|
|
39
|
+
body: normalized.slice(match[0].length),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function renderFrontmatter(fields) {
|
|
44
|
+
const entries = Object.entries(fields).filter(([, value]) => {
|
|
45
|
+
if (value === undefined || value === null) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (typeof value === 'string') {
|
|
50
|
+
return value.length > 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return true;
|
|
54
|
+
});
|
|
55
|
+
if (entries.length === 0) {
|
|
56
|
+
return '';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return [
|
|
60
|
+
'---',
|
|
61
|
+
...entries.map(([key, value]) => `${key}: ${value}`),
|
|
62
|
+
'---',
|
|
63
|
+
'',
|
|
64
|
+
].join('\n');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function renderPromptFile(fields, body) {
|
|
68
|
+
return `${renderFrontmatter(fields)}${body.trimStart()}`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function toRepoRelativePath(root, targetPath) {
|
|
72
|
+
const value = relative(root, targetPath).replace(/\\/g, '/');
|
|
73
|
+
return value.length > 0 ? value : '.';
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export async function assertDirectoryExists(path, description) {
|
|
77
|
+
let stats;
|
|
78
|
+
try {
|
|
79
|
+
stats = await stat(path);
|
|
80
|
+
} catch {
|
|
81
|
+
throw new Error(`${description} does not exist: ${path}`);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (!stats.isDirectory()) {
|
|
85
|
+
throw new Error(`${description} is not a directory: ${path}`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export async function collectVerifyCheck(target, id, fn) {
|
|
90
|
+
try {
|
|
91
|
+
const details = await fn();
|
|
92
|
+
target.push({
|
|
93
|
+
id,
|
|
94
|
+
status: 'ok',
|
|
95
|
+
...(details ?? {}),
|
|
96
|
+
});
|
|
97
|
+
} catch (error) {
|
|
98
|
+
target.push({
|
|
99
|
+
id,
|
|
100
|
+
status: 'error',
|
|
101
|
+
summary: error instanceof Error ? error.message : String(error),
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export async function ensureFile(path, description) {
|
|
107
|
+
let stats;
|
|
108
|
+
try {
|
|
109
|
+
stats = await stat(path);
|
|
110
|
+
} catch {
|
|
111
|
+
throw new Error(`${description} does not exist: ${path}`);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (!stats.isFile()) {
|
|
115
|
+
throw new Error(`${description} is not a file: ${path}`);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return stats;
|
|
119
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// sites-pinned: tests/shared/installer-host-compatibility.test.ts, tests/shared/install-bootstrap-opencode-stability.test.ts
|
|
2
|
+
// Project installs need all four operations. A missing or older build still
|
|
3
|
+
// permits loading the wrapper and reports the rebuild advice at the merge.
|
|
4
|
+
/** @type {Partial<typeof import('audit-tools/shared')>} */
|
|
5
|
+
const shared = await import('audit-tools/shared').catch(() => ({}));
|
|
6
|
+
/** @returns {never} */
|
|
7
|
+
export function unavailableProjectPermissions() {
|
|
8
|
+
throw new Error('audit-tools/shared is not available. Run "npm run build" before deploying OpenCode config.');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const {
|
|
12
|
+
mergeOpenCodeAgentPermissionRule = unavailableProjectPermissions,
|
|
13
|
+
withoutOpenCodeWildcard = unavailableProjectPermissions,
|
|
14
|
+
migrateOpenCodeGlobalExternalDirectory = unavailableProjectPermissions,
|
|
15
|
+
composeOpenCodeBashCeiling = unavailableProjectPermissions,
|
|
16
|
+
} = shared;
|
|
17
|
+
export const sharedOpenCodePermissions = [
|
|
18
|
+
mergeOpenCodeAgentPermissionRule,
|
|
19
|
+
withoutOpenCodeWildcard,
|
|
20
|
+
migrateOpenCodeGlobalExternalDirectory,
|
|
21
|
+
composeOpenCodeBashCeiling,
|
|
22
|
+
].every(helper => typeof helper === 'function' && helper !== unavailableProjectPermissions);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runArtifactTypes.d.ts","sourceRoot":"","sources":["../../../src/audit/io/runArtifactTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runArtifactTypes.js","sourceRoot":"","sources":["../../../src/audit/io/runArtifactTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { AccessMemory } from "audit-tools/shared";
|
|
2
|
-
import type { AuditResult } from "../types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Deterministically harvest a per-run access-memory record from the full ingested
|
|
5
|
-
* AuditResult ledger. Pure: the same ledger always yields a byte-identical record.
|
|
6
|
-
*
|
|
7
|
-
* Frequency (`covered_count`) = how many ledger results covered each path, over
|
|
8
|
-
* the RAW append-only ledger — deliberately including superseded re-dispatch /
|
|
9
|
-
* deepening records, not the supersession-resolved `selectCurrentResults` view.
|
|
10
|
-
* The signal is *attention*: a file audited multiple times (re-dispatched or
|
|
11
|
-
* deepened) got more attention and is a stronger continuity candidate, so raw
|
|
12
|
-
* touches is the right weight for a continuity bias. `total_ordinals` is the raw
|
|
13
|
-
* ledger length, so recency (`last_ordinal / total_ordinals`) stays in the same
|
|
14
|
-
* raw-ledger space and is self-consistent.
|
|
15
|
-
*
|
|
16
|
-
* Recency = the path's most recent touch measured as a STEP-ORDINAL (the covering
|
|
17
|
-
* result's index in the ledger), never wall-clock — so the signal is stable
|
|
18
|
-
* across machines/agents and cannot churn the artifact hash on clock skew. The
|
|
19
|
-
* ledger is append-only and idempotent (O2), so its array order is the run's step
|
|
20
|
-
* order and an idempotent replay is a no-op (no churn).
|
|
21
|
-
*
|
|
22
|
-
* Output arrays are content-sorted (paths by path, lenses lexically) so the
|
|
23
|
-
* serialized bytes are stable regardless of ledger iteration incidentals — the
|
|
24
|
-
* "extractors emit stable, content-derived array order" invariant, which keeps
|
|
25
|
-
* the artifact's content hash from churning the staleness DAG.
|
|
26
|
-
*
|
|
27
|
-
* `edited_count` and `symbols[]` are reserved: `edited_count` is populated by the
|
|
28
|
-
* remediate-parity harvest (RemediationBlock.touched_files), `symbols[]` by the
|
|
29
|
-
* `path::symbol` granularity increment. This audit-side path-level derive leaves
|
|
30
|
-
* `edited_count` at 0 and omits `symbols`.
|
|
31
|
-
*/
|
|
32
|
-
export declare function deriveAccessMemory(results: AuditResult[], options?: {
|
|
33
|
-
runId?: string;
|
|
34
|
-
}): AccessMemory;
|
|
35
|
-
//# sourceMappingURL=accessMemory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accessMemory.d.ts","sourceRoot":"","sources":["../../../src/audit/orchestrator/accessMemory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,oBAAoB,CAAC;AAEzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,WAAW,EAAE,EACtB,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/B,YAAY,CAqBd"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { deriveAccessMemoryFromEvents } from "audit-tools/shared";
|
|
2
|
-
/**
|
|
3
|
-
* Deterministically harvest a per-run access-memory record from the full ingested
|
|
4
|
-
* AuditResult ledger. Pure: the same ledger always yields a byte-identical record.
|
|
5
|
-
*
|
|
6
|
-
* Frequency (`covered_count`) = how many ledger results covered each path, over
|
|
7
|
-
* the RAW append-only ledger — deliberately including superseded re-dispatch /
|
|
8
|
-
* deepening records, not the supersession-resolved `selectCurrentResults` view.
|
|
9
|
-
* The signal is *attention*: a file audited multiple times (re-dispatched or
|
|
10
|
-
* deepened) got more attention and is a stronger continuity candidate, so raw
|
|
11
|
-
* touches is the right weight for a continuity bias. `total_ordinals` is the raw
|
|
12
|
-
* ledger length, so recency (`last_ordinal / total_ordinals`) stays in the same
|
|
13
|
-
* raw-ledger space and is self-consistent.
|
|
14
|
-
*
|
|
15
|
-
* Recency = the path's most recent touch measured as a STEP-ORDINAL (the covering
|
|
16
|
-
* result's index in the ledger), never wall-clock — so the signal is stable
|
|
17
|
-
* across machines/agents and cannot churn the artifact hash on clock skew. The
|
|
18
|
-
* ledger is append-only and idempotent (O2), so its array order is the run's step
|
|
19
|
-
* order and an idempotent replay is a no-op (no churn).
|
|
20
|
-
*
|
|
21
|
-
* Output arrays are content-sorted (paths by path, lenses lexically) so the
|
|
22
|
-
* serialized bytes are stable regardless of ledger iteration incidentals — the
|
|
23
|
-
* "extractors emit stable, content-derived array order" invariant, which keeps
|
|
24
|
-
* the artifact's content hash from churning the staleness DAG.
|
|
25
|
-
*
|
|
26
|
-
* `edited_count` and `symbols[]` are reserved: `edited_count` is populated by the
|
|
27
|
-
* remediate-parity harvest (RemediationBlock.touched_files), `symbols[]` by the
|
|
28
|
-
* `path::symbol` granularity increment. This audit-side path-level derive leaves
|
|
29
|
-
* `edited_count` at 0 and omits `symbols`.
|
|
30
|
-
*/
|
|
31
|
-
export function deriveAccessMemory(results, options = {}) {
|
|
32
|
-
const runId = options.runId ?? results.find((r) => r.run_id)?.run_id;
|
|
33
|
-
// Each covered file in each ledger result is one covered touch at that result's
|
|
34
|
-
// ledger ordinal. The shared core owns the deterministic accumulate/sort/serialize;
|
|
35
|
-
// this adapter only maps AuditResult → the normalized touch stream.
|
|
36
|
-
const events = [];
|
|
37
|
-
results.forEach((result, ordinal) => {
|
|
38
|
-
for (const coverage of result.file_coverage ?? []) {
|
|
39
|
-
if (!coverage?.path)
|
|
40
|
-
continue;
|
|
41
|
-
events.push({
|
|
42
|
-
path: coverage.path,
|
|
43
|
-
edited: false,
|
|
44
|
-
ordinal,
|
|
45
|
-
lens: result.lens,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
return deriveAccessMemoryFromEvents(events, {
|
|
50
|
-
totalOrdinals: results.length,
|
|
51
|
-
runId,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=accessMemory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accessMemory.js","sourceRoot":"","sources":["../../../src/audit/orchestrator/accessMemory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAsB,EACtB,UAA8B,EAAE;IAEhC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACrE,gFAAgF;IAChF,oFAAoF;IACpF,oEAAoE;IACpE,MAAM,MAAM,GAAuB,EAAE,CAAC;IACtC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;QAClC,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,aAAa,IAAI,EAAE,EAAE,CAAC;YAClD,IAAI,CAAC,QAAQ,EAAE,IAAI;gBAAE,SAAS;YAC9B,MAAM,CAAC,IAAI,CAAC;gBACV,IAAI,EAAE,QAAQ,CAAC,IAAI;gBACnB,MAAM,EAAE,KAAK;gBACb,OAAO;gBACP,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,4BAA4B,CAAC,MAAM,EAAE;QAC1C,aAAa,EAAE,OAAO,CAAC,MAAM;QAC7B,KAAK;KACN,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { normalizeGraphPath, HIGH_FAN_DEGREE_THRESHOLD, collectGraphEdges, graphEdgeConfidence, isConcreteGraphEdge, buildGraphDegreeIndex, isPacketExpansionEdge, buildFileToGroupKeys, } from "./reviewPacketGraphEdges.js";
|
|
2
|
-
export type { GraphDegreeIndex } from "./reviewPacketGraphEdges.js";
|
|
3
|
-
export { roundQuality, buildPacketGraphContext } from "./reviewPacketGraphContext.js";
|
|
4
|
-
//# sourceMappingURL=reviewPacketGraph.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reviewPacketGraph.d.ts","sourceRoot":"","sources":["../../../src/audit/orchestrator/reviewPacketGraph.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// Barrel re-export: reviewPacketGraph was split into three focused sub-modules.
|
|
2
|
-
// All external imports of "./reviewPacketGraph.js" continue to resolve here.
|
|
3
|
-
// Graph-edge primitives used for packet presentation and quality metrics.
|
|
4
|
-
export { normalizeGraphPath, HIGH_FAN_DEGREE_THRESHOLD, collectGraphEdges, graphEdgeConfidence, isConcreteGraphEdge, buildGraphDegreeIndex, isPacketExpansionEdge, buildFileToGroupKeys, } from "./reviewPacketGraphEdges.js";
|
|
5
|
-
// Packet-level graph context: key edges, boundary files, entrypoints, quality.
|
|
6
|
-
export { roundQuality, buildPacketGraphContext } from "./reviewPacketGraphContext.js";
|
|
7
|
-
//# sourceMappingURL=reviewPacketGraph.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reviewPacketGraph.js","sourceRoot":"","sources":["../../../src/audit/orchestrator/reviewPacketGraph.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,6EAA6E;AAE7E,0EAA0E;AAC1E,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AAGrC,+EAA+E;AAC/E,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AccessMemory } from "./types/accessMemory.js";
|
|
2
|
-
import type { GraphBundle } from "./types/graph.js";
|
|
3
|
-
export declare function computeContinuityScores(accessMemory: AccessMemory | undefined, graphBundle: GraphBundle | undefined): Map<string, number>;
|
|
4
|
-
/**
|
|
5
|
-
* Sum a work-unit's member-file continuity scores (rounded to fixed precision so
|
|
6
|
-
* ULP-level float differences can't reorder units). Higher = more of the unit's
|
|
7
|
-
* files are connected to already-touched code. Single-sourced so audit's
|
|
8
|
-
* per-packet mass and remediate's per-block mass reduce identically — both
|
|
9
|
-
* normalize each path with {@link normalizeGraphPath} to match the scorer's seed
|
|
10
|
-
* keys, and both round at 1e6 so the derived ordering is stable.
|
|
11
|
-
*/
|
|
12
|
-
export declare function continuityMassForPaths(paths: readonly string[], scores: Map<string, number>): number;
|
|
13
|
-
//# sourceMappingURL=continuityScore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"continuityScore.d.ts","sourceRoot":"","sources":["../../src/shared/continuityScore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAoEpD,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,YAAY,GAAG,SAAS,EACtC,WAAW,EAAE,WAAW,GAAG,SAAS,GACnC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA0FrB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAC1B,MAAM,CAMR"}
|