audit-tools 0.39.14 → 0.40.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/README.md +28 -29
- package/dist/audit/cli/args.d.ts +2 -57
- package/dist/audit/cli/args.d.ts.map +1 -1
- package/dist/audit/cli/args.js +16 -250
- package/dist/audit/cli/args.js.map +1 -1
- package/dist/audit/cli/auditStep.d.ts +8 -5
- package/dist/audit/cli/auditStep.d.ts.map +1 -1
- package/dist/audit/cli/auditStep.js +32 -144
- package/dist/audit/cli/auditStep.js.map +1 -1
- package/dist/audit/cli/cleanup.js +4 -4
- package/dist/audit/cli/cleanup.js.map +1 -1
- package/dist/audit/cli/cliHelpers.d.ts +1 -10
- package/dist/audit/cli/cliHelpers.d.ts.map +1 -1
- package/dist/audit/cli/cliHelpers.js +1 -10
- package/dist/audit/cli/cliHelpers.js.map +1 -1
- package/dist/audit/cli/conceptualDispatch.d.ts +8 -32
- package/dist/audit/cli/conceptualDispatch.d.ts.map +1 -1
- package/dist/audit/cli/conceptualDispatch.js +11 -50
- package/dist/audit/cli/conceptualDispatch.js.map +1 -1
- package/dist/audit/cli/confirmIntentStep.js +3 -3
- package/dist/audit/cli/confirmIntentStep.js.map +1 -1
- package/dist/audit/cli/dispatch/hostHandoff.d.ts +74 -0
- package/dist/audit/cli/dispatch/hostHandoff.d.ts.map +1 -0
- package/dist/audit/cli/dispatch/hostHandoff.js +588 -0
- package/dist/audit/cli/dispatch/hostHandoff.js.map +1 -0
- package/dist/audit/cli/dispatch/packetFilter.d.ts +12 -86
- package/dist/audit/cli/dispatch/packetFilter.d.ts.map +1 -1
- package/dist/audit/cli/dispatch/packetFilter.js +6 -161
- package/dist/audit/cli/dispatch/packetFilter.js.map +1 -1
- package/dist/audit/cli/dispatch.d.ts +7 -115
- package/dist/audit/cli/dispatch.d.ts.map +1 -1
- package/dist/audit/cli/dispatch.js +7 -711
- package/dist/audit/cli/dispatch.js.map +1 -1
- package/dist/audit/cli/envelope.d.ts +4 -20
- package/dist/audit/cli/envelope.d.ts.map +1 -1
- package/dist/audit/cli/envelope.js +5 -33
- package/dist/audit/cli/envelope.js.map +1 -1
- package/dist/audit/cli/forceSynthesisCommand.d.ts +3 -16
- package/dist/audit/cli/forceSynthesisCommand.d.ts.map +1 -1
- package/dist/audit/cli/forceSynthesisCommand.js +3 -74
- package/dist/audit/cli/forceSynthesisCommand.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 +36 -314
- package/dist/audit/cli/nextStepCommand.js.map +1 -1
- package/dist/audit/cli/nextStepHelpers.d.ts +2 -75
- package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
- package/dist/audit/cli/nextStepHelpers.js +37 -419
- package/dist/audit/cli/nextStepHelpers.js.map +1 -1
- package/dist/audit/cli/prompts.d.ts +2 -67
- package/dist/audit/cli/prompts.d.ts.map +1 -1
- package/dist/audit/cli/prompts.js +33 -304
- package/dist/audit/cli/prompts.js.map +1 -1
- package/dist/audit/cli/reviewRun.d.ts +6 -35
- package/dist/audit/cli/reviewRun.d.ts.map +1 -1
- package/dist/audit/cli/reviewRun.js +78 -172
- package/dist/audit/cli/reviewRun.js.map +1 -1
- package/dist/audit/cli/semanticReviewStep.d.ts +5 -26
- package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
- package/dist/audit/cli/semanticReviewStep.js +70 -171
- 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 +0 -16
- package/dist/audit/cli/statusCommand.js.map +1 -1
- package/dist/audit/cli/steps.d.ts +39 -40
- package/dist/audit/cli/steps.d.ts.map +1 -1
- package/dist/audit/cli/steps.js.map +1 -1
- package/dist/audit/cli/validateCommand.d.ts.map +1 -1
- package/dist/audit/cli/validateCommand.js +12 -37
- package/dist/audit/cli/validateCommand.js.map +1 -1
- package/dist/audit/cli.d.ts.map +1 -1
- package/dist/audit/cli.js +3 -47
- package/dist/audit/cli.js.map +1 -1
- package/dist/audit/contracts/workerSchemas.d.ts +138 -195
- package/dist/audit/contracts/workerSchemas.d.ts.map +1 -1
- package/dist/audit/contracts/workerSchemas.js +2 -41
- package/dist/audit/contracts/workerSchemas.js.map +1 -1
- package/dist/audit/contracts/wrapperResponse.d.ts +54 -64
- package/dist/audit/contracts/wrapperResponse.d.ts.map +1 -1
- package/dist/audit/contracts/wrapperResponse.js +6 -8
- package/dist/audit/contracts/wrapperResponse.js.map +1 -1
- package/dist/audit/io/artifacts.d.ts +2 -9
- package/dist/audit/io/artifacts.d.ts.map +1 -1
- package/dist/audit/io/artifacts.js +6 -11
- package/dist/audit/io/artifacts.js.map +1 -1
- package/dist/audit/io/runArtifactTypes.d.ts +4 -6
- package/dist/audit/io/runArtifactTypes.d.ts.map +1 -1
- package/dist/audit/io/runArtifacts.d.ts +3 -23
- package/dist/audit/io/runArtifacts.d.ts.map +1 -1
- package/dist/audit/io/runArtifacts.js +18 -170
- package/dist/audit/io/runArtifacts.js.map +1 -1
- package/dist/audit/orchestrator/advance.js +4 -4
- package/dist/audit/orchestrator/advance.js.map +1 -1
- package/dist/audit/orchestrator/advanceTypes.d.ts +2 -6
- package/dist/audit/orchestrator/advanceTypes.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.d.ts +0 -14
- package/dist/audit/orchestrator/designReviewPrompt.d.ts.map +1 -1
- package/dist/audit/orchestrator/designReviewPrompt.js +1 -59
- package/dist/audit/orchestrator/designReviewPrompt.js.map +1 -1
- package/dist/audit/orchestrator/executorRunners.d.ts +2 -2
- package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.js +5 -15
- package/dist/audit/orchestrator/executorRunners.js.map +1 -1
- package/dist/audit/orchestrator/executors.d.ts.map +1 -1
- package/dist/audit/orchestrator/executors.js +1 -9
- package/dist/audit/orchestrator/executors.js.map +1 -1
- package/dist/audit/orchestrator/fileAnchors.js +1 -1
- package/dist/audit/orchestrator/fileAnchors.js.map +1 -1
- package/dist/audit/orchestrator/graphEdgeCache.js +1 -1
- package/dist/audit/orchestrator/ingestionExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/ingestionExecutors.js +37 -8
- package/dist/audit/orchestrator/ingestionExecutors.js.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts +2 -19
- package/dist/audit/orchestrator/intentCheckpointExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentCheckpointExecutor.js +0 -64
- package/dist/audit/orchestrator/intentCheckpointExecutor.js.map +1 -1
- package/dist/audit/orchestrator/intentEquivalenceExecutor.d.ts +3 -6
- package/dist/audit/orchestrator/intentEquivalenceExecutor.d.ts.map +1 -1
- package/dist/audit/orchestrator/intentEquivalenceExecutor.js +4 -7
- package/dist/audit/orchestrator/intentEquivalenceExecutor.js.map +1 -1
- package/dist/audit/orchestrator/intentInterpreter.d.ts +1 -1
- package/dist/audit/orchestrator/partitionTaskGraph.d.ts +11 -43
- package/dist/audit/orchestrator/partitionTaskGraph.d.ts.map +1 -1
- package/dist/audit/orchestrator/partitionTaskGraph.js +48 -101
- package/dist/audit/orchestrator/partitionTaskGraph.js.map +1 -1
- package/dist/audit/orchestrator/pendingTasks.d.ts +5 -7
- package/dist/audit/orchestrator/pendingTasks.d.ts.map +1 -1
- package/dist/audit/orchestrator/pendingTasks.js +4 -2
- 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 +18 -21
- package/dist/audit/orchestrator/planningExecutors.js.map +1 -1
- package/dist/audit/orchestrator/requeueCommand.d.ts +6 -6
- package/dist/audit/orchestrator/resultBaseline.d.ts +4 -3
- package/dist/audit/orchestrator/resultBaseline.d.ts.map +1 -1
- package/dist/audit/orchestrator/resultBaseline.js +4 -3
- package/dist/audit/orchestrator/resultBaseline.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraph.d.ts +1 -2
- package/dist/audit/orchestrator/reviewPacketGraph.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraph.js +2 -6
- package/dist/audit/orchestrator/reviewPacketGraph.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts +0 -2
- package/dist/audit/orchestrator/reviewPacketGraphEdges.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketGraphEdges.js +2 -65
- package/dist/audit/orchestrator/reviewPacketGraphEdges.js.map +1 -1
- package/dist/audit/orchestrator/reviewPacketSizing.d.ts +0 -1
- package/dist/audit/orchestrator/reviewPacketSizing.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPacketSizing.js +0 -1
- package/dist/audit/orchestrator/reviewPacketSizing.js.map +1 -1
- package/dist/audit/orchestrator/reviewPackets.d.ts +5 -68
- package/dist/audit/orchestrator/reviewPackets.d.ts.map +1 -1
- package/dist/audit/orchestrator/reviewPackets.js +55 -278
- package/dist/audit/orchestrator/reviewPackets.js.map +1 -1
- package/dist/audit/orchestrator/runtimeCommand.d.ts.map +1 -1
- package/dist/audit/orchestrator/runtimeCommand.js +4 -4
- package/dist/audit/orchestrator/runtimeCommand.js.map +1 -1
- package/dist/audit/orchestrator/state.d.ts.map +1 -1
- package/dist/audit/orchestrator/state.js +1 -35
- package/dist/audit/orchestrator/state.js.map +1 -1
- package/dist/audit/orchestrator/structureExecutors.d.ts +0 -1
- package/dist/audit/orchestrator/structureExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/structureExecutors.js +0 -45
- package/dist/audit/orchestrator/structureExecutors.js.map +1 -1
- package/dist/audit/orchestrator/synthesisExecutors.d.ts +4 -6
- package/dist/audit/orchestrator/synthesisExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/synthesisExecutors.js +1 -3
- package/dist/audit/orchestrator/synthesisExecutors.js.map +1 -1
- package/dist/audit/orchestrator/taskAffinityGraph.d.ts +55 -21
- package/dist/audit/orchestrator/taskAffinityGraph.d.ts.map +1 -1
- package/dist/audit/orchestrator/taskAffinityGraph.js +67 -29
- package/dist/audit/orchestrator/taskAffinityGraph.js.map +1 -1
- package/dist/audit/reporting/scoreShared.js +1 -1
- package/dist/audit/reporting/scoreShared.js.map +1 -1
- package/dist/audit/reporting/synthesis.d.ts +2 -20
- package/dist/audit/reporting/synthesis.d.ts.map +1 -1
- package/dist/audit/reporting/synthesis.js +7 -28
- package/dist/audit/reporting/synthesis.js.map +1 -1
- package/dist/audit/reporting/workBlocks.d.ts +12 -12
- package/dist/audit/reporting/workBlocks.d.ts.map +1 -1
- package/dist/audit/reporting/workBlocks.js +195 -180
- package/dist/audit/reporting/workBlocks.js.map +1 -1
- package/dist/audit/supervisor/operatorHandoff.d.ts +8 -22
- package/dist/audit/supervisor/operatorHandoff.d.ts.map +1 -1
- package/dist/audit/supervisor/operatorHandoff.js +44 -116
- package/dist/audit/supervisor/operatorHandoff.js.map +1 -1
- package/dist/audit/supervisor/runLedger.d.ts.map +1 -1
- package/dist/audit/supervisor/runLedger.js +0 -1
- package/dist/audit/supervisor/runLedger.js.map +1 -1
- package/dist/audit/types/analyzerCapability.d.ts +12 -12
- package/dist/audit/types/auditScope.d.ts +4 -19
- package/dist/audit/types/auditScope.d.ts.map +1 -1
- package/dist/audit/types/auditScope.js +2 -13
- package/dist/audit/types/auditScope.js.map +1 -1
- package/dist/audit/types/designAssessment.d.ts +0 -8
- package/dist/audit/types/designAssessment.d.ts.map +1 -1
- package/dist/audit/types/reviewPlanning.d.ts +24 -29
- package/dist/audit/types/reviewPlanning.d.ts.map +1 -1
- package/dist/audit/types/reviewPlanning.js +2 -7
- package/dist/audit/types/reviewPlanning.js.map +1 -1
- package/dist/audit/types.d.ts +90 -120
- package/dist/audit/types.d.ts.map +1 -1
- package/dist/audit/types.js +2 -21
- package/dist/audit/types.js.map +1 -1
- package/dist/audit/validation/anchorGrounding.d.ts +22 -10
- package/dist/audit/validation/anchorGrounding.d.ts.map +1 -1
- package/dist/audit/validation/anchorGrounding.js +0 -13
- package/dist/audit/validation/anchorGrounding.js.map +1 -1
- package/dist/audit/validation/auditResults.d.ts +0 -33
- package/dist/audit/validation/auditResults.d.ts.map +1 -1
- package/dist/audit/validation/auditResults.js +1 -114
- package/dist/audit/validation/auditResults.js.map +1 -1
- package/dist/remediate/index.d.ts +0 -8
- package/dist/remediate/index.d.ts.map +1 -1
- package/dist/remediate/index.js +2 -127
- package/dist/remediate/index.js.map +1 -1
- package/dist/remediate/intake.d.ts +6 -6
- package/dist/remediate/phases/close.d.ts +5 -17
- package/dist/remediate/phases/close.d.ts.map +1 -1
- package/dist/remediate/phases/close.js +30 -258
- package/dist/remediate/phases/close.js.map +1 -1
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts +4 -4
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.d.ts.map +1 -1
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.js +14 -11
- package/dist/remediate/phases/closeVerifyAnalyzerLeads.js.map +1 -1
- package/dist/remediate/phases/constants.d.ts +0 -1
- package/dist/remediate/phases/constants.d.ts.map +1 -1
- package/dist/remediate/phases/constants.js +0 -1
- package/dist/remediate/phases/constants.js.map +1 -1
- package/dist/remediate/phases/plan.d.ts +5 -30
- package/dist/remediate/phases/plan.d.ts.map +1 -1
- package/dist/remediate/phases/plan.js +34 -185
- package/dist/remediate/phases/plan.js.map +1 -1
- package/dist/remediate/phases/triage.d.ts.map +1 -1
- package/dist/remediate/phases/triage.js +33 -57
- package/dist/remediate/phases/triage.js.map +1 -1
- package/dist/remediate/review/autonomousGate.js +1 -1
- package/dist/remediate/review/autonomousGate.js.map +1 -1
- package/dist/remediate/state/closingActions.d.ts +1 -1
- package/dist/remediate/state/closingActions.d.ts.map +1 -1
- package/dist/remediate/state/closingActions.js +0 -1
- package/dist/remediate/state/closingActions.js.map +1 -1
- package/dist/remediate/state/store.d.ts +16 -45
- package/dist/remediate/state/store.d.ts.map +1 -1
- package/dist/remediate/state/store.js +12 -0
- package/dist/remediate/state/store.js.map +1 -1
- package/dist/remediate/state/types.d.ts +58 -30
- package/dist/remediate/state/types.d.ts.map +1 -1
- package/dist/remediate/state/types.js +22 -2
- package/dist/remediate/state/types.js.map +1 -1
- package/dist/remediate/steps/contractPipeline.d.ts +1 -8
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.js +122 -144
- package/dist/remediate/steps/contractPipeline.js.map +1 -1
- package/dist/remediate/steps/dispatch/common.d.ts +0 -42
- package/dist/remediate/steps/dispatch/common.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/common.js +1 -96
- package/dist/remediate/steps/dispatch/common.js.map +1 -1
- package/dist/remediate/steps/dispatch/dagNodeFields.d.ts +0 -12
- package/dist/remediate/steps/dispatch/dagNodeFields.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/dagNodeFields.js +4 -18
- package/dist/remediate/steps/dispatch/dagNodeFields.js.map +1 -1
- package/dist/remediate/steps/dispatch/hostHandoff.d.ts +78 -0
- package/dist/remediate/steps/dispatch/hostHandoff.d.ts.map +1 -0
- package/dist/remediate/steps/dispatch/hostHandoff.js +909 -0
- package/dist/remediate/steps/dispatch/hostHandoff.js.map +1 -0
- package/dist/remediate/steps/dispatch/implementPrompt.d.ts +0 -38
- package/dist/remediate/steps/dispatch/implementPrompt.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/implementPrompt.js +3 -479
- package/dist/remediate/steps/dispatch/implementPrompt.js.map +1 -1
- package/dist/remediate/steps/dispatch/marshal.d.ts +5 -38
- package/dist/remediate/steps/dispatch/marshal.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/marshal.js +4 -1332
- package/dist/remediate/steps/dispatch/marshal.js.map +1 -1
- package/dist/remediate/steps/dispatch/verifyCommands.d.ts +1 -13
- package/dist/remediate/steps/dispatch/verifyCommands.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/verifyCommands.js +1 -21
- package/dist/remediate/steps/dispatch/verifyCommands.js.map +1 -1
- package/dist/remediate/steps/dispatch/writeScope.d.ts +6 -107
- package/dist/remediate/steps/dispatch/writeScope.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/writeScope.js +32 -286
- package/dist/remediate/steps/dispatch/writeScope.js.map +1 -1
- package/dist/remediate/steps/dispatch.d.ts +7 -12
- package/dist/remediate/steps/dispatch.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch.js +6 -8
- package/dist/remediate/steps/dispatch.js.map +1 -1
- package/dist/remediate/steps/gateCommands.d.ts +0 -29
- package/dist/remediate/steps/gateCommands.d.ts.map +1 -1
- package/dist/remediate/steps/gateCommands.js +0 -35
- package/dist/remediate/steps/gateCommands.js.map +1 -1
- package/dist/remediate/steps/nextStep.d.ts +9 -408
- package/dist/remediate/steps/nextStep.d.ts.map +1 -1
- package/dist/remediate/steps/nextStep.js +226 -1679
- package/dist/remediate/steps/nextStep.js.map +1 -1
- package/dist/remediate/steps/prompts.d.ts.map +1 -1
- package/dist/remediate/steps/prompts.js +1 -2
- package/dist/remediate/steps/prompts.js.map +1 -1
- package/dist/remediate/steps/sessionConfigLoad.d.ts +3 -42
- package/dist/remediate/steps/sessionConfigLoad.d.ts.map +1 -1
- package/dist/remediate/steps/sessionConfigLoad.js +3 -37
- package/dist/remediate/steps/sessionConfigLoad.js.map +1 -1
- package/dist/remediate/steps/stepUtils.d.ts +10 -47
- package/dist/remediate/steps/stepUtils.d.ts.map +1 -1
- package/dist/remediate/steps/stepUtils.js +11 -67
- package/dist/remediate/steps/stepUtils.js.map +1 -1
- package/dist/remediate/steps/types.d.ts +2 -81
- package/dist/remediate/steps/types.d.ts.map +1 -1
- package/dist/remediate/steps/types.js.map +1 -1
- package/dist/remediate/utils/fileIntegrity.d.ts.map +1 -1
- package/dist/remediate/utils/fileIntegrity.js +57 -5
- package/dist/remediate/utils/fileIntegrity.js.map +1 -1
- package/dist/remediate/validation/contractPipeline.d.ts +1 -1
- package/dist/remediate/validation/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/validation/contractPipeline.js +1 -1
- package/dist/remediate/validation/contractPipeline.js.map +1 -1
- package/dist/remediate/validation/contractPipelineGates.d.ts +1 -39
- package/dist/remediate/validation/contractPipelineGates.d.ts.map +1 -1
- package/dist/remediate/validation/contractPipelineGates.js +1 -67
- package/dist/remediate/validation/contractPipelineGates.js.map +1 -1
- package/dist/shared/affinityArtifacts.d.ts +42 -0
- package/dist/shared/affinityArtifacts.d.ts.map +1 -0
- package/dist/shared/affinityArtifacts.js +142 -0
- package/dist/shared/affinityArtifacts.js.map +1 -0
- package/dist/shared/analyzerPolicy.d.ts +40 -0
- package/dist/shared/analyzerPolicy.d.ts.map +1 -0
- package/dist/shared/analyzerPolicy.js +102 -0
- package/dist/shared/analyzerPolicy.js.map +1 -0
- package/dist/shared/analyzers/acquisitionEngine.d.ts +1 -1
- package/dist/shared/analyzers/acquisitionEngine.d.ts.map +1 -1
- package/dist/shared/analyzers/types.d.ts +20 -20
- package/dist/shared/artifactFreshness.d.ts.map +1 -1
- package/dist/shared/artifactFreshness.js +5 -4
- package/dist/shared/artifactFreshness.js.map +1 -1
- package/dist/shared/constitutionalDocPaths.d.ts.map +1 -1
- package/dist/shared/constitutionalDocPaths.js +0 -1
- package/dist/shared/constitutionalDocPaths.js.map +1 -1
- package/dist/shared/contentKey.d.ts +1 -42
- package/dist/shared/contentKey.d.ts.map +1 -1
- package/dist/shared/contentKey.js +1 -45
- package/dist/shared/contentKey.js.map +1 -1
- package/dist/shared/decompose/charterExtraction.d.ts +20 -20
- package/dist/shared/decompose/contentCoherence.d.ts +382 -0
- package/dist/shared/decompose/contentCoherence.d.ts.map +1 -0
- package/dist/shared/decompose/contentCoherence.js +290 -0
- package/dist/shared/decompose/contentCoherence.js.map +1 -0
- package/dist/shared/decompose/systemicChallenge.d.ts +4 -4
- package/dist/shared/friction/frictionRecord.js +1 -1
- package/dist/shared/friction/frictionRecord.js.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.d.ts +13 -175
- package/dist/shared/friction/stepBoundaryCapture.d.ts.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.js +6 -232
- package/dist/shared/friction/stepBoundaryCapture.js.map +1 -1
- package/dist/shared/friction/triage.d.ts +3 -3
- package/dist/shared/friction/triage.d.ts.map +1 -1
- package/dist/shared/friction/triage.js +3 -20
- package/dist/shared/friction/triage.js.map +1 -1
- package/dist/shared/hostAssets.d.ts +3 -5
- package/dist/shared/hostAssets.d.ts.map +1 -1
- package/dist/shared/hostAssets.js +6 -7
- package/dist/shared/hostAssets.js.map +1 -1
- package/dist/shared/index.d.ts +21 -154
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +13 -132
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/io/artifactName.js +2 -2
- package/dist/shared/io/artifactName.js.map +1 -1
- package/dist/shared/io/auditToolsPaths.d.ts +2 -2
- package/dist/shared/io/auditToolsPaths.js +2 -2
- package/dist/shared/io/fileLock.d.ts.map +1 -0
- package/dist/shared/io/fileLock.js.map +1 -0
- package/dist/shared/io/json.d.ts +1 -1
- package/dist/shared/io/json.js +1 -1
- package/dist/shared/io/lockedJsonStore.d.ts +1 -1
- package/dist/shared/io/lockedJsonStore.js +4 -4
- package/dist/shared/io/lockedJsonStore.js.map +1 -1
- package/dist/shared/io/nodeWorktreeGuard.d.ts +14 -15
- package/dist/shared/io/nodeWorktreeGuard.d.ts.map +1 -1
- package/dist/shared/io/nodeWorktreeGuard.js +14 -15
- package/dist/shared/io/nodeWorktreeGuard.js.map +1 -1
- package/dist/shared/io/pathContainment.d.ts +3 -5
- package/dist/shared/io/pathContainment.d.ts.map +1 -1
- package/dist/shared/io/pathContainment.js.map +1 -1
- package/dist/shared/io/pathIdentity.d.ts.map +1 -0
- package/dist/shared/io/pathIdentity.js.map +1 -0
- package/dist/shared/io/stateDir.d.ts +3 -6
- package/dist/shared/io/stateDir.d.ts.map +1 -1
- package/dist/shared/io/stateDir.js +3 -6
- package/dist/shared/io/stateDir.js.map +1 -1
- package/dist/shared/io/stepContractWriter.d.ts +3 -3
- package/dist/shared/io/stepContractWriter.js +3 -3
- package/dist/shared/loopCorePaths.d.ts.map +1 -1
- package/dist/shared/loopCorePaths.js +6 -14
- package/dist/shared/loopCorePaths.js.map +1 -1
- package/dist/shared/observability/runLog.d.ts +1 -2
- package/dist/shared/observability/runLog.d.ts.map +1 -1
- package/dist/shared/observability/runLog.js.map +1 -1
- package/dist/shared/prompts.d.ts +5 -7
- package/dist/shared/prompts.d.ts.map +1 -1
- package/dist/shared/prompts.js +2 -3
- package/dist/shared/prompts.js.map +1 -1
- package/dist/shared/reporting/auditDeliverable.d.ts.map +1 -1
- package/dist/shared/reporting/auditDeliverable.js +37 -2
- package/dist/shared/reporting/auditDeliverable.js.map +1 -1
- package/dist/shared/sessionConfig.d.ts +30 -0
- package/dist/shared/sessionConfig.d.ts.map +1 -0
- package/dist/shared/sessionConfig.js +78 -0
- package/dist/shared/sessionConfig.js.map +1 -0
- package/dist/shared/stableStringify.d.ts +0 -12
- package/dist/shared/stableStringify.d.ts.map +1 -1
- package/dist/shared/stableStringify.js +4 -1
- package/dist/shared/stableStringify.js.map +1 -1
- package/dist/shared/tokens.d.ts +0 -11
- package/dist/shared/tokens.d.ts.map +1 -1
- package/dist/shared/tokens.js +2 -32
- package/dist/shared/tokens.js.map +1 -1
- package/dist/shared/tooling/allowlistedExec.d.ts +1 -1
- package/dist/shared/tooling/allowlistedExec.js +4 -4
- package/dist/shared/tooling/allowlistedExec.js.map +1 -1
- package/dist/shared/tooling/exec.d.ts +6 -6
- package/dist/shared/tooling/exec.d.ts.map +1 -1
- package/dist/shared/tooling/exec.js +9 -11
- package/dist/shared/tooling/exec.js.map +1 -1
- package/dist/shared/tooling/projectTestAdmission.d.ts +1 -1
- package/dist/shared/tooling/projectTestAdmission.js +3 -3
- package/dist/shared/tooling/projectTestAdmission.js.map +1 -1
- package/dist/shared/types/accessMemory.d.ts +6 -6
- package/dist/shared/types/charter.d.ts +19 -19
- package/dist/shared/types/charter.js +3 -3
- package/dist/shared/types/contractPipeline/verification.d.ts +0 -2
- package/dist/shared/types/contractPipeline/verification.d.ts.map +1 -1
- package/dist/shared/types/contractPipeline.d.ts +12 -1
- package/dist/shared/types/contractPipeline.d.ts.map +1 -1
- package/dist/shared/types/contractPipeline.js.map +1 -1
- package/dist/shared/types/executionRecord.d.ts +58 -0
- package/dist/shared/types/executionRecord.d.ts.map +1 -0
- package/dist/shared/types/executionRecord.js +26 -0
- package/dist/shared/types/executionRecord.js.map +1 -0
- package/dist/shared/types/finding.d.ts +671 -43
- package/dist/shared/types/finding.d.ts.map +1 -1
- package/dist/shared/types/finding.js +47 -13
- package/dist/shared/types/finding.js.map +1 -1
- package/dist/shared/types/intentCheckpoint.d.ts +30 -31
- package/dist/shared/types/intentCheckpoint.d.ts.map +1 -1
- package/dist/shared/types/intentCheckpoint.js +2 -3
- package/dist/shared/types/intentCheckpoint.js.map +1 -1
- package/dist/shared/types/remediationOutcome.d.ts +6 -6
- package/dist/shared/types/runLedger.d.ts +0 -1
- package/dist/shared/types/runLedger.d.ts.map +1 -1
- package/dist/shared/types/stepContract.d.ts +0 -6
- package/dist/shared/types/stepContract.d.ts.map +1 -1
- package/dist/shared/types/stepContract.js +0 -1
- package/dist/shared/types/stepContract.js.map +1 -1
- package/dist/shared/validation/findingsReport.d.ts +17 -1
- package/dist/shared/validation/findingsReport.d.ts.map +1 -1
- package/dist/shared/validation/findingsReport.js +137 -1
- package/dist/shared/validation/findingsReport.js.map +1 -1
- package/docs/audit-pkg/contracts.md +75 -201
- package/docs/audit-pkg/development.md +8 -7
- package/docs/audit-pkg/operator-guide.md +72 -174
- package/docs/audit-pkg/product.md +9 -14
- package/docs/audit-pkg/release.md +10 -21
- package/opencode.json +0 -34
- package/package.json +3 -5
- package/schemas/audit_result.schema.json +1 -17
- package/schemas/audit_results.schema.json +1 -17
- package/schemas/finding.schema.json +1 -1
- package/scripts/audit/postinstall.mjs +0 -8
- package/scripts/remediate/postinstall.mjs +27 -12
- package/skills/audit-code/SKILL.md +32 -150
- package/skills/audit-code/audit-code.prompt.md +24 -86
- package/skills/remediate-code/SKILL.md +27 -64
- package/skills/remediate-code/remediate-code.prompt.md +22 -79
- package/wrapper/audit-code-wrapper-install-hosts.mjs +3 -5
- package/wrapper/audit-code-wrapper-install-renderers.mjs +2 -2
- package/wrapper/audit-code-wrapper-lib.mjs +3 -23
- package/wrapper/audit-code-wrapper-opencode.mjs +21 -16
- package/wrapper/remediate-code-wrapper-install-hosts.mjs +5 -6
- package/wrapper/remediate-code-wrapper-install-renderers.mjs +1 -2
- package/wrapper/remediate-code-wrapper-opencode.mjs +31 -10
- package/dist/audit/cli/advanceAuditCommand.d.ts +0 -2
- package/dist/audit/cli/advanceAuditCommand.d.ts.map +0 -1
- package/dist/audit/cli/advanceAuditCommand.js +0 -104
- package/dist/audit/cli/advanceAuditCommand.js.map +0 -1
- package/dist/audit/cli/dispatch/hostFanoutGate.d.ts +0 -36
- package/dist/audit/cli/dispatch/hostFanoutGate.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/hostFanoutGate.js +0 -28
- package/dist/audit/cli/dispatch/hostFanoutGate.js.map +0 -1
- package/dist/audit/cli/dispatch/packetPrompt.d.ts +0 -49
- package/dist/audit/cli/dispatch/packetPrompt.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/packetPrompt.js +0 -355
- package/dist/audit/cli/dispatch/packetPrompt.js.map +0 -1
- package/dist/audit/cli/dispatch/paths.d.ts +0 -7
- package/dist/audit/cli/dispatch/paths.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/paths.js +0 -32
- package/dist/audit/cli/dispatch/paths.js.map +0 -1
- package/dist/audit/cli/dispatch/pausePersist.d.ts +0 -111
- package/dist/audit/cli/dispatch/pausePersist.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/pausePersist.js +0 -252
- package/dist/audit/cli/dispatch/pausePersist.js.map +0 -1
- package/dist/audit/cli/dispatch/quotaPool.d.ts +0 -142
- package/dist/audit/cli/dispatch/quotaPool.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/quotaPool.js +0 -233
- package/dist/audit/cli/dispatch/quotaPool.js.map +0 -1
- package/dist/audit/cli/dispatch/sizingWindow.d.ts +0 -40
- package/dist/audit/cli/dispatch/sizingWindow.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/sizingWindow.js +0 -35
- package/dist/audit/cli/dispatch/sizingWindow.js.map +0 -1
- package/dist/audit/cli/dispatch/tierRouting.d.ts +0 -64
- package/dist/audit/cli/dispatch/tierRouting.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/tierRouting.js +0 -172
- package/dist/audit/cli/dispatch/tierRouting.js.map +0 -1
- package/dist/audit/cli/dispatch/tokenUsageObservation.d.ts +0 -91
- package/dist/audit/cli/dispatch/tokenUsageObservation.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/tokenUsageObservation.js +0 -218
- package/dist/audit/cli/dispatch/tokenUsageObservation.js.map +0 -1
- package/dist/audit/cli/dispatch/types.d.ts +0 -144
- package/dist/audit/cli/dispatch/types.d.ts.map +0 -1
- package/dist/audit/cli/dispatch/types.js +0 -15
- package/dist/audit/cli/dispatch/types.js.map +0 -1
- package/dist/audit/cli/dispatchAttempted.d.ts +0 -26
- package/dist/audit/cli/dispatchAttempted.d.ts.map +0 -1
- package/dist/audit/cli/dispatchAttempted.js +0 -71
- package/dist/audit/cli/dispatchAttempted.js.map +0 -1
- package/dist/audit/cli/dispatchStatusCommand.d.ts +0 -2
- package/dist/audit/cli/dispatchStatusCommand.d.ts.map +0 -1
- package/dist/audit/cli/dispatchStatusCommand.js +0 -81
- package/dist/audit/cli/dispatchStatusCommand.js.map +0 -1
- package/dist/audit/cli/hybridDispatch.d.ts +0 -68
- package/dist/audit/cli/hybridDispatch.d.ts.map +0 -1
- package/dist/audit/cli/hybridDispatch.js +0 -85
- package/dist/audit/cli/hybridDispatch.js.map +0 -1
- package/dist/audit/cli/mergeAndIngestCommand.d.ts +0 -165
- package/dist/audit/cli/mergeAndIngestCommand.d.ts.map +0 -1
- package/dist/audit/cli/mergeAndIngestCommand.js +0 -945
- package/dist/audit/cli/mergeAndIngestCommand.js.map +0 -1
- package/dist/audit/cli/ownerTokens.d.ts +0 -21
- package/dist/audit/cli/ownerTokens.d.ts.map +0 -1
- package/dist/audit/cli/ownerTokens.js +0 -86
- package/dist/audit/cli/ownerTokens.js.map +0 -1
- package/dist/audit/cli/prepareDispatchCommand.d.ts +0 -34
- package/dist/audit/cli/prepareDispatchCommand.d.ts.map +0 -1
- package/dist/audit/cli/prepareDispatchCommand.js +0 -69
- package/dist/audit/cli/prepareDispatchCommand.js.map +0 -1
- package/dist/audit/cli/quotaCommand.d.ts +0 -2
- package/dist/audit/cli/quotaCommand.d.ts.map +0 -1
- package/dist/audit/cli/quotaCommand.js +0 -68
- package/dist/audit/cli/quotaCommand.js.map +0 -1
- package/dist/audit/cli/rollingAuditDispatch.d.ts +0 -206
- package/dist/audit/cli/rollingAuditDispatch.d.ts.map +0 -1
- package/dist/audit/cli/rollingAuditDispatch.js +0 -633
- package/dist/audit/cli/rollingAuditDispatch.js.map +0 -1
- package/dist/audit/cli/scoreTokensCommand.d.ts +0 -18
- package/dist/audit/cli/scoreTokensCommand.d.ts.map +0 -1
- package/dist/audit/cli/scoreTokensCommand.js +0 -129
- package/dist/audit/cli/scoreTokensCommand.js.map +0 -1
- package/dist/audit/cli/submitPacketCommand.d.ts +0 -2
- package/dist/audit/cli/submitPacketCommand.d.ts.map +0 -1
- package/dist/audit/cli/submitPacketCommand.js +0 -139
- package/dist/audit/cli/submitPacketCommand.js.map +0 -1
- package/dist/audit/cli/validateResultCommand.d.ts +0 -2
- package/dist/audit/cli/validateResultCommand.d.ts.map +0 -1
- package/dist/audit/cli/validateResultCommand.js +0 -105
- package/dist/audit/cli/validateResultCommand.js.map +0 -1
- package/dist/audit/cli/waveManifest.d.ts +0 -41
- package/dist/audit/cli/waveManifest.d.ts.map +0 -1
- package/dist/audit/cli/waveManifest.js +0 -42
- package/dist/audit/cli/waveManifest.js.map +0 -1
- package/dist/audit/cli/workPartitionRuntime.d.ts +0 -11
- package/dist/audit/cli/workPartitionRuntime.d.ts.map +0 -1
- package/dist/audit/cli/workPartitionRuntime.js +0 -39
- package/dist/audit/cli/workPartitionRuntime.js.map +0 -1
- package/dist/audit/cli/workerRunCommand.d.ts +0 -16
- package/dist/audit/cli/workerRunCommand.d.ts.map +0 -1
- package/dist/audit/cli/workerRunCommand.js +0 -153
- package/dist/audit/cli/workerRunCommand.js.map +0 -1
- package/dist/audit/contracts/schemaEnforcedEmit.d.ts +0 -75
- package/dist/audit/contracts/schemaEnforcedEmit.d.ts.map +0 -1
- package/dist/audit/contracts/schemaEnforcedEmit.js +0 -131
- package/dist/audit/contracts/schemaEnforcedEmit.js.map +0 -1
- package/dist/audit/orchestrator/reviewPacketGraphClustering.d.ts +0 -4
- package/dist/audit/orchestrator/reviewPacketGraphClustering.d.ts.map +0 -1
- package/dist/audit/orchestrator/reviewPacketGraphClustering.js +0 -473
- package/dist/audit/orchestrator/reviewPacketGraphClustering.js.map +0 -1
- package/dist/audit/orchestrator/rollingDispatch.d.ts +0 -64
- package/dist/audit/orchestrator/rollingDispatch.d.ts.map +0 -1
- package/dist/audit/orchestrator/rollingDispatch.js +0 -147
- package/dist/audit/orchestrator/rollingDispatch.js.map +0 -1
- package/dist/audit/orchestrator/unionFind.d.ts +0 -8
- package/dist/audit/orchestrator/unionFind.d.ts.map +0 -1
- package/dist/audit/orchestrator/unionFind.js +0 -43
- package/dist/audit/orchestrator/unionFind.js.map +0 -1
- package/dist/audit/prompts/renderWorkerPrompt.d.ts +0 -3
- package/dist/audit/prompts/renderWorkerPrompt.d.ts.map +0 -1
- package/dist/audit/prompts/renderWorkerPrompt.js +0 -87
- package/dist/audit/prompts/renderWorkerPrompt.js.map +0 -1
- package/dist/audit/providers/constants.d.ts +0 -2
- package/dist/audit/providers/constants.d.ts.map +0 -1
- package/dist/audit/providers/constants.js +0 -2
- package/dist/audit/providers/constants.js.map +0 -1
- package/dist/audit/providers/index.d.ts +0 -19
- package/dist/audit/providers/index.d.ts.map +0 -1
- package/dist/audit/providers/index.js +0 -23
- package/dist/audit/providers/index.js.map +0 -1
- package/dist/audit/quota/discoveredLimits.d.ts +0 -39
- package/dist/audit/quota/discoveredLimits.d.ts.map +0 -1
- package/dist/audit/quota/discoveredLimits.js +0 -96
- package/dist/audit/quota/discoveredLimits.js.map +0 -1
- package/dist/audit/quota/hostLimits.d.ts +0 -7
- package/dist/audit/quota/hostLimits.d.ts.map +0 -1
- package/dist/audit/quota/hostLimits.js +0 -6
- package/dist/audit/quota/hostLimits.js.map +0 -1
- package/dist/audit/quota/index.d.ts +0 -12
- package/dist/audit/quota/index.d.ts.map +0 -1
- package/dist/audit/quota/index.js +0 -19
- package/dist/audit/quota/index.js.map +0 -1
- package/dist/audit/reporting/scoreTokens.d.ts +0 -112
- package/dist/audit/reporting/scoreTokens.d.ts.map +0 -1
- package/dist/audit/reporting/scoreTokens.js +0 -188
- package/dist/audit/reporting/scoreTokens.js.map +0 -1
- package/dist/audit/supervisor/sessionConfig.d.ts +0 -19
- package/dist/audit/supervisor/sessionConfig.d.ts.map +0 -1
- package/dist/audit/supervisor/sessionConfig.js +0 -98
- package/dist/audit/supervisor/sessionConfig.js.map +0 -1
- package/dist/audit/types/activeDispatch.d.ts +0 -83
- package/dist/audit/types/activeDispatch.d.ts.map +0 -1
- package/dist/audit/types/activeDispatch.js +0 -3
- package/dist/audit/types/activeDispatch.js.map +0 -1
- package/dist/audit/types/workerSession.d.ts +0 -28
- package/dist/audit/types/workerSession.d.ts.map +0 -1
- package/dist/audit/types/workerSession.js +0 -5
- package/dist/audit/types/workerSession.js.map +0 -1
- package/dist/audit/validation/sessionConfig.d.ts +0 -7
- package/dist/audit/validation/sessionConfig.d.ts.map +0 -1
- package/dist/audit/validation/sessionConfig.js +0 -84
- package/dist/audit/validation/sessionConfig.js.map +0 -1
- package/dist/remediate/dispatch/amendmentClaim.d.ts +0 -48
- package/dist/remediate/dispatch/amendmentClaim.d.ts.map +0 -1
- package/dist/remediate/dispatch/amendmentClaim.js +0 -67
- package/dist/remediate/dispatch/amendmentClaim.js.map +0 -1
- package/dist/remediate/dispatch/ownershipRegistry.d.ts +0 -266
- package/dist/remediate/dispatch/ownershipRegistry.d.ts.map +0 -1
- package/dist/remediate/dispatch/ownershipRegistry.js +0 -515
- package/dist/remediate/dispatch/ownershipRegistry.js.map +0 -1
- package/dist/remediate/phases/workerTasks.d.ts +0 -21
- package/dist/remediate/phases/workerTasks.d.ts.map +0 -1
- package/dist/remediate/phases/workerTasks.js +0 -31
- package/dist/remediate/phases/workerTasks.js.map +0 -1
- package/dist/remediate/providers/constants.d.ts +0 -2
- package/dist/remediate/providers/constants.d.ts.map +0 -1
- package/dist/remediate/providers/constants.js +0 -2
- package/dist/remediate/providers/constants.js.map +0 -1
- package/dist/remediate/providers/index.d.ts +0 -19
- package/dist/remediate/providers/index.d.ts.map +0 -1
- package/dist/remediate/providers/index.js +0 -23
- package/dist/remediate/providers/index.js.map +0 -1
- package/dist/remediate/quota/hostLimits.d.ts +0 -7
- package/dist/remediate/quota/hostLimits.d.ts.map +0 -1
- package/dist/remediate/quota/hostLimits.js +0 -6
- package/dist/remediate/quota/hostLimits.js.map +0 -1
- package/dist/remediate/quota/index.d.ts +0 -8
- package/dist/remediate/quota/index.d.ts.map +0 -1
- package/dist/remediate/quota/index.js +0 -12
- package/dist/remediate/quota/index.js.map +0 -1
- package/dist/remediate/steps/dispatch/acceptNode.d.ts +0 -328
- package/dist/remediate/steps/dispatch/acceptNode.d.ts.map +0 -1
- package/dist/remediate/steps/dispatch/acceptNode.js +0 -722
- package/dist/remediate/steps/dispatch/acceptNode.js.map +0 -1
- package/dist/remediate/steps/dispatch/acceptReconcile.d.ts +0 -66
- package/dist/remediate/steps/dispatch/acceptReconcile.d.ts.map +0 -1
- package/dist/remediate/steps/dispatch/acceptReconcile.js +0 -154
- package/dist/remediate/steps/dispatch/acceptReconcile.js.map +0 -1
- package/dist/remediate/steps/dispatch/nodeArtifacts.d.ts +0 -41
- package/dist/remediate/steps/dispatch/nodeArtifacts.d.ts.map +0 -1
- package/dist/remediate/steps/dispatch/nodeArtifacts.js +0 -81
- package/dist/remediate/steps/dispatch/nodeArtifacts.js.map +0 -1
- package/dist/remediate/steps/dispatch/waveScheduling.d.ts +0 -123
- package/dist/remediate/steps/dispatch/waveScheduling.d.ts.map +0 -1
- package/dist/remediate/steps/dispatch/waveScheduling.js +0 -213
- package/dist/remediate/steps/dispatch/waveScheduling.js.map +0 -1
- package/dist/remediate/steps/dispatch/worktreeLifecycle.d.ts +0 -239
- package/dist/remediate/steps/dispatch/worktreeLifecycle.d.ts.map +0 -1
- package/dist/remediate/steps/dispatch/worktreeLifecycle.js +0 -875
- package/dist/remediate/steps/dispatch/worktreeLifecycle.js.map +0 -1
- package/dist/remediate/steps/providerNodeDispatch.d.ts +0 -57
- package/dist/remediate/steps/providerNodeDispatch.d.ts.map +0 -1
- package/dist/remediate/steps/providerNodeDispatch.js +0 -97
- package/dist/remediate/steps/providerNodeDispatch.js.map +0 -1
- package/dist/remediate/steps/rollingSession.d.ts +0 -283
- package/dist/remediate/steps/rollingSession.d.ts.map +0 -1
- package/dist/remediate/steps/rollingSession.js +0 -718
- package/dist/remediate/steps/rollingSession.js.map +0 -1
- package/dist/remediate/types/workerSession.d.ts +0 -35
- package/dist/remediate/types/workerSession.d.ts.map +0 -1
- package/dist/remediate/types/workerSession.js +0 -5
- package/dist/remediate/types/workerSession.js.map +0 -1
- package/dist/shared/config/resolveSessionConfig.d.ts +0 -75
- package/dist/shared/config/resolveSessionConfig.d.ts.map +0 -1
- package/dist/shared/config/resolveSessionConfig.js +0 -126
- package/dist/shared/config/resolveSessionConfig.js.map +0 -1
- package/dist/shared/data/model-statics.generated.json +0 -18939
- package/dist/shared/decompose/workPartition.d.ts +0 -66
- package/dist/shared/decompose/workPartition.d.ts.map +0 -1
- package/dist/shared/decompose/workPartition.js +0 -523
- package/dist/shared/decompose/workPartition.js.map +0 -1
- package/dist/shared/dispatch/admissionLeaseReconcile.d.ts +0 -20
- package/dist/shared/dispatch/admissionLeaseReconcile.d.ts.map +0 -1
- package/dist/shared/dispatch/admissionLeaseReconcile.js +0 -36
- package/dist/shared/dispatch/admissionLeaseReconcile.js.map +0 -1
- package/dist/shared/dispatch/admissionLoop.d.ts +0 -875
- package/dist/shared/dispatch/admissionLoop.d.ts.map +0 -1
- package/dist/shared/dispatch/admissionLoop.js +0 -692
- package/dist/shared/dispatch/admissionLoop.js.map +0 -1
- package/dist/shared/dispatch/coordinator.d.ts +0 -189
- package/dist/shared/dispatch/coordinator.d.ts.map +0 -1
- package/dist/shared/dispatch/coordinator.js +0 -258
- package/dist/shared/dispatch/coordinator.js.map +0 -1
- package/dist/shared/dispatch/costRank.d.ts +0 -25
- package/dist/shared/dispatch/costRank.d.ts.map +0 -1
- package/dist/shared/dispatch/costRank.js +0 -34
- package/dist/shared/dispatch/costRank.js.map +0 -1
- package/dist/shared/dispatch/dispatchDecisionLog.d.ts +0 -142
- package/dist/shared/dispatch/dispatchDecisionLog.d.ts.map +0 -1
- package/dist/shared/dispatch/dispatchDecisionLog.js +0 -65
- package/dist/shared/dispatch/dispatchDecisionLog.js.map +0 -1
- package/dist/shared/dispatch/dispatchQuotaContract.d.ts +0 -1052
- package/dist/shared/dispatch/dispatchQuotaContract.d.ts.map +0 -1
- package/dist/shared/dispatch/dispatchQuotaContract.js +0 -75
- package/dist/shared/dispatch/dispatchQuotaContract.js.map +0 -1
- package/dist/shared/dispatch/hostDispatchWall.d.ts +0 -107
- package/dist/shared/dispatch/hostDispatchWall.d.ts.map +0 -1
- package/dist/shared/dispatch/hostDispatchWall.js +0 -90
- package/dist/shared/dispatch/hostDispatchWall.js.map +0 -1
- package/dist/shared/dispatch/hybridDispatch.d.ts +0 -94
- package/dist/shared/dispatch/hybridDispatch.d.ts.map +0 -1
- package/dist/shared/dispatch/hybridDispatch.js +0 -60
- package/dist/shared/dispatch/hybridDispatch.js.map +0 -1
- package/dist/shared/dispatch/ownershipScheduler.d.ts +0 -101
- package/dist/shared/dispatch/ownershipScheduler.d.ts.map +0 -1
- package/dist/shared/dispatch/ownershipScheduler.js +0 -151
- package/dist/shared/dispatch/ownershipScheduler.js.map +0 -1
- package/dist/shared/dispatch/pathIdentity.d.ts.map +0 -1
- package/dist/shared/dispatch/pathIdentity.js.map +0 -1
- package/dist/shared/dispatch/providerDispatchPrep.d.ts +0 -65
- package/dist/shared/dispatch/providerDispatchPrep.d.ts.map +0 -1
- package/dist/shared/dispatch/providerDispatchPrep.js +0 -66
- package/dist/shared/dispatch/providerDispatchPrep.js.map +0 -1
- package/dist/shared/dispatch/providerLaunchFinalize.d.ts +0 -54
- package/dist/shared/dispatch/providerLaunchFinalize.d.ts.map +0 -1
- package/dist/shared/dispatch/providerLaunchFinalize.js +0 -275
- package/dist/shared/dispatch/providerLaunchFinalize.js.map +0 -1
- package/dist/shared/dispatch/rollingDispatch.d.ts +0 -598
- package/dist/shared/dispatch/rollingDispatch.d.ts.map +0 -1
- package/dist/shared/dispatch/rollingDispatch.js +0 -1488
- package/dist/shared/dispatch/rollingDispatch.js.map +0 -1
- package/dist/shared/dispatch/settledPools.d.ts +0 -55
- package/dist/shared/dispatch/settledPools.d.ts.map +0 -1
- package/dist/shared/dispatch/settledPools.js +0 -74
- package/dist/shared/dispatch/settledPools.js.map +0 -1
- package/dist/shared/dispatch/tierRank.d.ts +0 -53
- package/dist/shared/dispatch/tierRank.d.ts.map +0 -1
- package/dist/shared/dispatch/tierRank.js +0 -69
- package/dist/shared/dispatch/tierRank.js.map +0 -1
- package/dist/shared/dispatch/unifiedRolling.d.ts +0 -219
- package/dist/shared/dispatch/unifiedRolling.d.ts.map +0 -1
- package/dist/shared/dispatch/unifiedRolling.js +0 -214
- package/dist/shared/dispatch/unifiedRolling.js.map +0 -1
- package/dist/shared/friction/blindDispatchFriction.d.ts +0 -26
- package/dist/shared/friction/blindDispatchFriction.d.ts.map +0 -1
- package/dist/shared/friction/blindDispatchFriction.js +0 -41
- package/dist/shared/friction/blindDispatchFriction.js.map +0 -1
- package/dist/shared/io/tokenUsageLedger.d.ts +0 -58
- package/dist/shared/io/tokenUsageLedger.d.ts.map +0 -1
- package/dist/shared/io/tokenUsageLedger.js +0 -53
- package/dist/shared/io/tokenUsageLedger.js.map +0 -1
- package/dist/shared/providers/agyProvider.d.ts +0 -23
- package/dist/shared/providers/agyProvider.d.ts.map +0 -1
- package/dist/shared/providers/agyProvider.js +0 -63
- package/dist/shared/providers/agyProvider.js.map +0 -1
- package/dist/shared/providers/auditorSources.d.ts +0 -152
- package/dist/shared/providers/auditorSources.d.ts.map +0 -1
- package/dist/shared/providers/auditorSources.js +0 -391
- package/dist/shared/providers/auditorSources.js.map +0 -1
- package/dist/shared/providers/claudeCodeProvider.d.ts +0 -56
- package/dist/shared/providers/claudeCodeProvider.d.ts.map +0 -1
- package/dist/shared/providers/claudeCodeProvider.js +0 -67
- package/dist/shared/providers/claudeCodeProvider.js.map +0 -1
- package/dist/shared/providers/claudeWorkerProvider.d.ts +0 -71
- package/dist/shared/providers/claudeWorkerProvider.d.ts.map +0 -1
- package/dist/shared/providers/claudeWorkerProvider.js +0 -142
- package/dist/shared/providers/claudeWorkerProvider.js.map +0 -1
- package/dist/shared/providers/codexProvider.d.ts +0 -37
- package/dist/shared/providers/codexProvider.d.ts.map +0 -1
- package/dist/shared/providers/codexProvider.js +0 -85
- package/dist/shared/providers/codexProvider.js.map +0 -1
- package/dist/shared/providers/constants.d.ts +0 -4
- package/dist/shared/providers/constants.d.ts.map +0 -1
- package/dist/shared/providers/constants.js +0 -5
- package/dist/shared/providers/constants.js.map +0 -1
- package/dist/shared/providers/dispatchExclusion.d.ts +0 -44
- package/dist/shared/providers/dispatchExclusion.d.ts.map +0 -1
- package/dist/shared/providers/dispatchExclusion.js +0 -63
- package/dist/shared/providers/dispatchExclusion.js.map +0 -1
- package/dist/shared/providers/identity.d.ts +0 -48
- package/dist/shared/providers/identity.d.ts.map +0 -1
- package/dist/shared/providers/identity.js +0 -51
- package/dist/shared/providers/identity.js.map +0 -1
- package/dist/shared/providers/inProcessWorkers.d.ts +0 -42
- package/dist/shared/providers/inProcessWorkers.d.ts.map +0 -1
- package/dist/shared/providers/inProcessWorkers.js +0 -64
- package/dist/shared/providers/inProcessWorkers.js.map +0 -1
- package/dist/shared/providers/openAiCompatibleProvider.d.ts +0 -132
- package/dist/shared/providers/openAiCompatibleProvider.d.ts.map +0 -1
- package/dist/shared/providers/openAiCompatibleProvider.js +0 -875
- package/dist/shared/providers/openAiCompatibleProvider.js.map +0 -1
- package/dist/shared/providers/opencodeLaunch.d.ts +0 -30
- package/dist/shared/providers/opencodeLaunch.d.ts.map +0 -1
- package/dist/shared/providers/opencodeLaunch.js +0 -72
- package/dist/shared/providers/opencodeLaunch.js.map +0 -1
- package/dist/shared/providers/opencodeProvider.d.ts +0 -27
- package/dist/shared/providers/opencodeProvider.d.ts.map +0 -1
- package/dist/shared/providers/opencodeProvider.js +0 -63
- package/dist/shared/providers/opencodeProvider.js.map +0 -1
- package/dist/shared/providers/orchestratorBindings.d.ts +0 -75
- package/dist/shared/providers/orchestratorBindings.d.ts.map +0 -1
- package/dist/shared/providers/orchestratorBindings.js +0 -66
- package/dist/shared/providers/orchestratorBindings.js.map +0 -1
- package/dist/shared/providers/providerDiagnostics.d.ts +0 -11
- package/dist/shared/providers/providerDiagnostics.d.ts.map +0 -1
- package/dist/shared/providers/providerDiagnostics.js +0 -28
- package/dist/shared/providers/providerDiagnostics.js.map +0 -1
- package/dist/shared/providers/providerFactory.d.ts +0 -173
- package/dist/shared/providers/providerFactory.d.ts.map +0 -1
- package/dist/shared/providers/providerFactory.js +0 -374
- package/dist/shared/providers/providerFactory.js.map +0 -1
- package/dist/shared/providers/providerKeyedFactory.d.ts +0 -14
- package/dist/shared/providers/providerKeyedFactory.d.ts.map +0 -1
- package/dist/shared/providers/providerKeyedFactory.js +0 -16
- package/dist/shared/providers/providerKeyedFactory.js.map +0 -1
- package/dist/shared/providers/providerPathGuard.d.ts +0 -101
- package/dist/shared/providers/providerPathGuard.d.ts.map +0 -1
- package/dist/shared/providers/providerPathGuard.js +0 -177
- package/dist/shared/providers/providerPathGuard.js.map +0 -1
- package/dist/shared/providers/reviewSnapshot.d.ts +0 -55
- package/dist/shared/providers/reviewSnapshot.d.ts.map +0 -1
- package/dist/shared/providers/reviewSnapshot.js +0 -112
- package/dist/shared/providers/reviewSnapshot.js.map +0 -1
- package/dist/shared/providers/spawnLoggedCommand.d.ts +0 -10
- package/dist/shared/providers/spawnLoggedCommand.d.ts.map +0 -1
- package/dist/shared/providers/spawnLoggedCommand.js +0 -345
- package/dist/shared/providers/spawnLoggedCommand.js.map +0 -1
- package/dist/shared/providers/subprocessTemplateProvider.d.ts +0 -19
- package/dist/shared/providers/subprocessTemplateProvider.d.ts.map +0 -1
- package/dist/shared/providers/subprocessTemplateProvider.js +0 -91
- package/dist/shared/providers/subprocessTemplateProvider.js.map +0 -1
- package/dist/shared/providers/types.d.ts +0 -144
- package/dist/shared/providers/types.d.ts.map +0 -1
- package/dist/shared/providers/types.js +0 -2
- package/dist/shared/providers/types.js.map +0 -1
- package/dist/shared/providers/workerCommandProvider.d.ts +0 -10
- package/dist/shared/providers/workerCommandProvider.d.ts.map +0 -1
- package/dist/shared/providers/workerCommandProvider.js +0 -20
- package/dist/shared/providers/workerCommandProvider.js.map +0 -1
- package/dist/shared/providers/workerTaskLaunch.d.ts +0 -32
- package/dist/shared/providers/workerTaskLaunch.d.ts.map +0 -1
- package/dist/shared/providers/workerTaskLaunch.js +0 -27
- package/dist/shared/providers/workerTaskLaunch.js.map +0 -1
- package/dist/shared/quota/accountId.d.ts +0 -107
- package/dist/shared/quota/accountId.d.ts.map +0 -1
- package/dist/shared/quota/accountId.js +0 -151
- package/dist/shared/quota/accountId.js.map +0 -1
- package/dist/shared/quota/antigravityQuotaSource.d.ts +0 -44
- package/dist/shared/quota/antigravityQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/antigravityQuotaSource.js +0 -103
- package/dist/shared/quota/antigravityQuotaSource.js.map +0 -1
- package/dist/shared/quota/apiPool.d.ts +0 -322
- package/dist/shared/quota/apiPool.d.ts.map +0 -1
- package/dist/shared/quota/apiPool.js +0 -751
- package/dist/shared/quota/apiPool.js.map +0 -1
- package/dist/shared/quota/capacity.d.ts +0 -667
- package/dist/shared/quota/capacity.d.ts.map +0 -1
- package/dist/shared/quota/capacity.js +0 -507
- package/dist/shared/quota/capacity.js.map +0 -1
- package/dist/shared/quota/claimLease.d.ts +0 -32
- package/dist/shared/quota/claimLease.d.ts.map +0 -1
- package/dist/shared/quota/claimLease.js +0 -73
- package/dist/shared/quota/claimLease.js.map +0 -1
- package/dist/shared/quota/claimRegistry.d.ts +0 -118
- package/dist/shared/quota/claimRegistry.d.ts.map +0 -1
- package/dist/shared/quota/claimRegistry.js +0 -246
- package/dist/shared/quota/claimRegistry.js.map +0 -1
- package/dist/shared/quota/claudeCodeJsonLines.d.ts +0 -15
- package/dist/shared/quota/claudeCodeJsonLines.d.ts.map +0 -1
- package/dist/shared/quota/claudeCodeJsonLines.js +0 -34
- package/dist/shared/quota/claudeCodeJsonLines.js.map +0 -1
- package/dist/shared/quota/claudeOAuthQuotaSource.d.ts +0 -97
- package/dist/shared/quota/claudeOAuthQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/claudeOAuthQuotaSource.js +0 -385
- package/dist/shared/quota/claudeOAuthQuotaSource.js.map +0 -1
- package/dist/shared/quota/codexHostConfig.d.ts +0 -17
- package/dist/shared/quota/codexHostConfig.d.ts.map +0 -1
- package/dist/shared/quota/codexHostConfig.js +0 -43
- package/dist/shared/quota/codexHostConfig.js.map +0 -1
- package/dist/shared/quota/codexQuotaSource.d.ts +0 -52
- package/dist/shared/quota/codexQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/codexQuotaSource.js +0 -106
- package/dist/shared/quota/codexQuotaSource.js.map +0 -1
- package/dist/shared/quota/compositeQuotaSource.d.ts +0 -83
- package/dist/shared/quota/compositeQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/compositeQuotaSource.js +0 -152
- package/dist/shared/quota/compositeQuotaSource.js.map +0 -1
- package/dist/shared/quota/copilotQuotaSource.d.ts +0 -57
- package/dist/shared/quota/copilotQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/copilotQuotaSource.js +0 -143
- package/dist/shared/quota/copilotQuotaSource.js.map +0 -1
- package/dist/shared/quota/coverage.d.ts +0 -45
- package/dist/shared/quota/coverage.d.ts.map +0 -1
- package/dist/shared/quota/coverage.js +0 -77
- package/dist/shared/quota/coverage.js.map +0 -1
- package/dist/shared/quota/dispatchDriverPrompt.d.ts +0 -15
- package/dist/shared/quota/dispatchDriverPrompt.d.ts.map +0 -1
- package/dist/shared/quota/dispatchDriverPrompt.js +0 -40
- package/dist/shared/quota/dispatchDriverPrompt.js.map +0 -1
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.d.ts +0 -7
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.d.ts.map +0 -1
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.js +0 -33
- package/dist/shared/quota/errorParsers/claudeCodeErrorParser.js.map +0 -1
- package/dist/shared/quota/errorParsers/genericErrorParser.d.ts +0 -10
- package/dist/shared/quota/errorParsers/genericErrorParser.d.ts.map +0 -1
- package/dist/shared/quota/errorParsers/genericErrorParser.js +0 -8
- package/dist/shared/quota/errorParsers/genericErrorParser.js.map +0 -1
- package/dist/shared/quota/errorParsers/index.d.ts +0 -6
- package/dist/shared/quota/errorParsers/index.d.ts.map +0 -1
- package/dist/shared/quota/errorParsers/index.js +0 -16
- package/dist/shared/quota/errorParsers/index.js.map +0 -1
- package/dist/shared/quota/errorParsing.d.ts +0 -97
- package/dist/shared/quota/errorParsing.d.ts.map +0 -1
- package/dist/shared/quota/errorParsing.js +0 -333
- package/dist/shared/quota/errorParsing.js.map +0 -1
- package/dist/shared/quota/fileLock.d.ts.map +0 -1
- package/dist/shared/quota/fileLock.js.map +0 -1
- package/dist/shared/quota/hostLimits.d.ts +0 -31
- package/dist/shared/quota/hostLimits.d.ts.map +0 -1
- package/dist/shared/quota/hostLimits.js +0 -74
- package/dist/shared/quota/hostLimits.js.map +0 -1
- package/dist/shared/quota/hostPool.d.ts +0 -115
- package/dist/shared/quota/hostPool.d.ts.map +0 -1
- package/dist/shared/quota/hostPool.js +0 -104
- package/dist/shared/quota/hostPool.js.map +0 -1
- package/dist/shared/quota/hostSessionQuotaSource.d.ts +0 -150
- package/dist/shared/quota/hostSessionQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/hostSessionQuotaSource.js +0 -250
- package/dist/shared/quota/hostSessionQuotaSource.js.map +0 -1
- package/dist/shared/quota/httpQuotaSource.d.ts +0 -122
- package/dist/shared/quota/httpQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/httpQuotaSource.js +0 -155
- package/dist/shared/quota/httpQuotaSource.js.map +0 -1
- package/dist/shared/quota/learnedQuotaSource.d.ts +0 -20
- package/dist/shared/quota/learnedQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/learnedQuotaSource.js +0 -46
- package/dist/shared/quota/learnedQuotaSource.js.map +0 -1
- package/dist/shared/quota/limits.d.ts +0 -39
- package/dist/shared/quota/limits.d.ts.map +0 -1
- package/dist/shared/quota/limits.js +0 -158
- package/dist/shared/quota/limits.js.map +0 -1
- package/dist/shared/quota/modelStatics.d.ts +0 -32
- package/dist/shared/quota/modelStatics.d.ts.map +0 -1
- package/dist/shared/quota/modelStatics.js +0 -117
- package/dist/shared/quota/modelStatics.js.map +0 -1
- package/dist/shared/quota/openCodeQuotaSource.d.ts +0 -18
- package/dist/shared/quota/openCodeQuotaSource.d.ts.map +0 -1
- package/dist/shared/quota/openCodeQuotaSource.js +0 -84
- package/dist/shared/quota/openCodeQuotaSource.js.map +0 -1
- package/dist/shared/quota/packetCost.d.ts +0 -27
- package/dist/shared/quota/packetCost.d.ts.map +0 -1
- package/dist/shared/quota/packetCost.js +0 -45
- package/dist/shared/quota/packetCost.js.map +0 -1
- package/dist/shared/quota/quotaCoverageNudge.d.ts +0 -26
- package/dist/shared/quota/quotaCoverageNudge.d.ts.map +0 -1
- package/dist/shared/quota/quotaCoverageNudge.js +0 -82
- package/dist/shared/quota/quotaCoverageNudge.js.map +0 -1
- package/dist/shared/quota/quotaSource.d.ts +0 -224
- package/dist/shared/quota/quotaSource.d.ts.map +0 -1
- package/dist/shared/quota/quotaSource.js +0 -125
- package/dist/shared/quota/quotaSource.js.map +0 -1
- package/dist/shared/quota/recordStore.d.ts +0 -25
- package/dist/shared/quota/recordStore.d.ts.map +0 -1
- package/dist/shared/quota/recordStore.js +0 -65
- package/dist/shared/quota/recordStore.js.map +0 -1
- package/dist/shared/quota/reservationLedger.d.ts +0 -183
- package/dist/shared/quota/reservationLedger.d.ts.map +0 -1
- package/dist/shared/quota/reservationLedger.js +0 -319
- package/dist/shared/quota/reservationLedger.js.map +0 -1
- package/dist/shared/quota/scheduler.d.ts +0 -262
- package/dist/shared/quota/scheduler.d.ts.map +0 -1
- package/dist/shared/quota/scheduler.js +0 -628
- package/dist/shared/quota/scheduler.js.map +0 -1
- package/dist/shared/quota/slidingWindow.d.ts +0 -5
- package/dist/shared/quota/slidingWindow.d.ts.map +0 -1
- package/dist/shared/quota/slidingWindow.js +0 -29
- package/dist/shared/quota/slidingWindow.js.map +0 -1
- package/dist/shared/quota/state.d.ts +0 -204
- package/dist/shared/quota/state.d.ts.map +0 -1
- package/dist/shared/quota/state.js +0 -480
- package/dist/shared/quota/state.js.map +0 -1
- package/dist/shared/quota/tokenBudgetView.d.ts +0 -17
- package/dist/shared/quota/tokenBudgetView.d.ts.map +0 -1
- package/dist/shared/quota/tokenBudgetView.js +0 -77
- package/dist/shared/quota/tokenBudgetView.js.map +0 -1
- package/dist/shared/quota/types.d.ts +0 -235
- package/dist/shared/quota/types.d.ts.map +0 -1
- package/dist/shared/quota/types.js +0 -58
- package/dist/shared/quota/types.js.map +0 -1
- package/dist/shared/quota/windowConstraints.d.ts +0 -56
- package/dist/shared/quota/windowConstraints.d.ts.map +0 -1
- package/dist/shared/quota/windowConstraints.js +0 -71
- package/dist/shared/quota/windowConstraints.js.map +0 -1
- package/dist/shared/repair/brokeredDispatch.d.ts +0 -151
- package/dist/shared/repair/brokeredDispatch.d.ts.map +0 -1
- package/dist/shared/repair/brokeredDispatch.js +0 -182
- package/dist/shared/repair/brokeredDispatch.js.map +0 -1
- package/dist/shared/repair/emitValidateRepair.d.ts +0 -124
- package/dist/shared/repair/emitValidateRepair.d.ts.map +0 -1
- package/dist/shared/repair/emitValidateRepair.js +0 -180
- package/dist/shared/repair/emitValidateRepair.js.map +0 -1
- package/dist/shared/repair/index.d.ts +0 -10
- package/dist/shared/repair/index.d.ts.map +0 -1
- package/dist/shared/repair/index.js +0 -3
- package/dist/shared/repair/index.js.map +0 -1
- package/dist/shared/rolling/pausedState.d.ts +0 -201
- package/dist/shared/rolling/pausedState.d.ts.map +0 -1
- package/dist/shared/rolling/pausedState.js +0 -197
- package/dist/shared/rolling/pausedState.js.map +0 -1
- package/dist/shared/types/attributionContract.d.ts +0 -198
- package/dist/shared/types/attributionContract.d.ts.map +0 -1
- package/dist/shared/types/attributionContract.js +0 -332
- package/dist/shared/types/attributionContract.js.map +0 -1
- package/dist/shared/types/auditorDescriptor.d.ts +0 -119
- package/dist/shared/types/auditorDescriptor.d.ts.map +0 -1
- package/dist/shared/types/auditorDescriptor.js +0 -29
- package/dist/shared/types/auditorDescriptor.js.map +0 -1
- package/dist/shared/types/rollingDispatch.d.ts +0 -222
- package/dist/shared/types/rollingDispatch.d.ts.map +0 -1
- package/dist/shared/types/rollingDispatch.js +0 -19
- package/dist/shared/types/rollingDispatch.js.map +0 -1
- package/dist/shared/types/sessionConfig.d.ts +0 -778
- package/dist/shared/types/sessionConfig.d.ts.map +0 -1
- package/dist/shared/types/sessionConfig.js +0 -393
- package/dist/shared/types/sessionConfig.js.map +0 -1
- package/dist/shared/validation/sessionConfig.d.ts +0 -59
- package/dist/shared/validation/sessionConfig.d.ts.map +0 -1
- package/dist/shared/validation/sessionConfig.js +0 -631
- package/dist/shared/validation/sessionConfig.js.map +0 -1
- /package/dist/shared/{quota → io}/fileLock.d.ts +0 -0
- /package/dist/shared/{quota → io}/fileLock.js +0 -0
- /package/dist/shared/{dispatch → io}/pathIdentity.d.ts +0 -0
- /package/dist/shared/{dispatch → io}/pathIdentity.js +0 -0
package/README.md
CHANGED
|
@@ -34,10 +34,9 @@ human-readable render (markdown):
|
|
|
34
34
|
- Keep tasks tightly bound and well defined, so the gap between weak and strong models shrinks.
|
|
35
35
|
- Batch work into logical units of reasonable size — rigor balanced against token cost, not 100 agents
|
|
36
36
|
for 100 files.
|
|
37
|
-
- Keep everything IDE-, provider-, model-, OS-, shell- and language-agnostic:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
ecosystem.
|
|
37
|
+
- Keep everything IDE-, provider-, model-, OS-, shell- and language-agnostic: outside the product
|
|
38
|
+
contract or abstracted, never baked in. The host owns semantic execution; audit-tools detects repo
|
|
39
|
+
structure and normalizes analyzer output into shared contracts, never forks planning per ecosystem.
|
|
41
40
|
- Auditing and remediating are not two tools — they are two cases of ONE logical core, drawn read-only or
|
|
42
41
|
write-and-apply. The boundary between them is continuously being dissolved, and re-introducing it is the
|
|
43
42
|
most persistent mistake made against this project; a difference between the two is a policy axis of the
|
|
@@ -67,10 +66,10 @@ Running `/audit-code` inside a repo then bootstraps any remaining per-repo host
|
|
|
67
66
|
## Usage
|
|
68
67
|
|
|
69
68
|
The tools are meant to be run as slash-commands inside a host agent. Just invoke the
|
|
70
|
-
command
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
command—there are no provider, model, or quota flags. audit-tools plans bounded work and
|
|
70
|
+
emits self-contained host workloads; the host chooses how to execute them, writes the bound
|
|
71
|
+
result records, and returns them for strict validation and ingestion. The agent you're
|
|
72
|
+
conversing with works through the persisted workflow and stops only for a real decision.
|
|
74
73
|
|
|
75
74
|
**Audit a code base:**
|
|
76
75
|
|
|
@@ -128,22 +127,21 @@ a summary before anything is committed.
|
|
|
128
127
|
clarifications, and tries to front-load those questions so it can run uninterrupted.
|
|
129
128
|
- **Runs are resumable.** State persists to `.audit-tools/` in the target repo, so an
|
|
130
129
|
interrupted run picks up where it left off.
|
|
131
|
-
- **
|
|
132
|
-
|
|
130
|
+
- **The host owns execution.** It can run independent work items in parallel using whatever
|
|
131
|
+
native subagent or collaboration facilities are available in the current session.
|
|
133
132
|
- **Effort scales to the work.** Trivial work gets light review; risky or complex work
|
|
134
133
|
gets deeper scrutiny.
|
|
135
|
-
- **
|
|
136
|
-
|
|
134
|
+
- **Results are untrusted input.** Prompt bindings, file coverage, worktree identity, commit
|
|
135
|
+
evidence, and test evidence are checked before host-produced work changes persisted state.
|
|
137
136
|
|
|
138
137
|
### The pipelines, step by step
|
|
139
138
|
|
|
140
139
|
**audit-code:**
|
|
141
140
|
|
|
142
|
-
1. **
|
|
143
|
-
2. **Understand the repo** — deterministically maps files, public surfaces, the dependency
|
|
141
|
+
1. **Understand the repo** — deterministically maps files, public surfaces, the dependency
|
|
144
142
|
graph, critical flows, and a risk register; runs available static analyzers and auto-fixes.
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
2. **Confirm intent** — you review the scope and pick the review lenses.
|
|
144
|
+
3. **Map the subsystems** — deterministically clusters the code into real subsystems by
|
|
147
145
|
overlaying how it actually behaves (call/import, co-change, shared state) against how it's
|
|
148
146
|
declared to be organized (directories, docs, comments), and flags where the two disagree:
|
|
149
147
|
a tightly-coupled cluster no declared boundary owns, or a declared purpose smeared across
|
|
@@ -151,14 +149,15 @@ a summary before anything is committed.
|
|
|
151
149
|
charter — what it's *stated* to do versus what the code *reveals* it does — and surfaces the
|
|
152
150
|
gaps, then triangulates any charter question still worth resolving into a clear yes/no before
|
|
153
151
|
moving on.
|
|
154
|
-
|
|
152
|
+
4. **Review the design** — two parallel passes: a contract pass (invariants, boundaries,
|
|
155
153
|
obligations) and a conceptual pass (philosophy, alternatives, better directions). On a deeper
|
|
156
154
|
review it also runs a second-order adversarial pass over the whole codebase asking "is there a
|
|
157
155
|
fundamentally better way to do this?", looping until a round turns up nothing new.
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
5. **Plan** — turns the risk register into bounded, prioritized review tasks and emits a
|
|
157
|
+
complete, provider-neutral host workload.
|
|
158
|
+
6. **Review through the host** — the conversation host assigns the bounded items, then
|
|
159
|
+
audit-tools validates and ingests the bound result records and deep-dives selectively.
|
|
160
|
+
7. **Synthesize** — consolidates everything into `audit-findings.json` + `audit-report.md`,
|
|
162
161
|
then layers on a narrative (themes, executive summary, top risks).
|
|
163
162
|
|
|
164
163
|
The numbering is a conceptual grouping, not the literal execution sequence — the authoritative
|
|
@@ -167,21 +166,21 @@ steps (e.g. deterministic subsystem clustering runs before the intent checkpoint
|
|
|
167
166
|
|
|
168
167
|
**remediate-code:**
|
|
169
168
|
|
|
170
|
-
1. **
|
|
171
|
-
2. **Intake** — reads the findings and/or free-form intent, validates the input, and drafts a
|
|
169
|
+
1. **Intake** — reads the findings and/or free-form intent, validates the input, and drafts a
|
|
172
170
|
summary with any open questions.
|
|
173
|
-
|
|
171
|
+
2. **Confirm intent** — you confirm scope, answer open questions, and set the closing action
|
|
174
172
|
(commit, push, open PR, publish, or halt).
|
|
175
|
-
|
|
173
|
+
3. **Design the change** — decomposes the work into modules, drafts a contract per module in
|
|
176
174
|
parallel, detects and reconciles seams (where one module's output must match another's
|
|
177
175
|
input), then derives obligations and a test plan. Riskier changes get an independent
|
|
178
176
|
critic-and-judge pass.
|
|
179
|
-
|
|
177
|
+
4. **Review the findings** — presents every finding bucketed by how much of your judgment it
|
|
180
178
|
needs (strategic / concrete / mechanical); you approve or decline each before anything
|
|
181
179
|
proceeds to implementation.
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
180
|
+
5. **Implement through the host** — emits all eligible provider-neutral work items. The host
|
|
181
|
+
performs the edits and returns prompt-bound commit and test evidence; audit-tools validates
|
|
182
|
+
that evidence before accepting completion.
|
|
183
|
+
6. **Close** — previews the file list and commit message for your confirmation (unless
|
|
185
184
|
pre-authorized), then runs the closing action and writes `remediation-outcomes.json` +
|
|
186
185
|
`remediation-report.md`.
|
|
187
186
|
|
package/dist/audit/cli/args.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { artifactNameForId, isCanonicalResultFilename,
|
|
1
|
+
import { artifactNameForId, isCanonicalResultFilename, quotePromptCommandArg, toPromptPathToken } from "audit-tools/shared";
|
|
2
2
|
export declare const DIRECT_CLI_DEFAULTS: {
|
|
3
3
|
rootDir: string;
|
|
4
4
|
artifactsDir: string;
|
|
@@ -7,73 +7,18 @@ export declare const DIRECT_CLI_DEFAULTS: {
|
|
|
7
7
|
export declare function getFlag(argv: string[], name: string, fallback?: string): string | undefined;
|
|
8
8
|
export declare function hasFlag(argv: string[], name: string): boolean;
|
|
9
9
|
export declare function optionalBooleanEnv(value: string | undefined): boolean | undefined;
|
|
10
|
-
export declare function resolveHostDispatchCapability(options: {
|
|
11
|
-
explicit?: boolean;
|
|
12
|
-
sessionConfig: SessionConfig;
|
|
13
|
-
env?: NodeJS.ProcessEnv;
|
|
14
|
-
}): boolean;
|
|
15
|
-
export declare function fromBase64Url(value: string): string;
|
|
16
10
|
export { digestId, safeArtifactStem } from "audit-tools/shared";
|
|
17
11
|
export { artifactNameForId, isCanonicalResultFilename };
|
|
18
12
|
export declare const quoteCommandArg: typeof quotePromptCommandArg;
|
|
19
|
-
/**
|
|
20
|
-
* Normalize a generated command token to POSIX path separators. These command
|
|
21
|
-
* strings are embedded in step prompts and `allowed_commands` and run by the
|
|
22
|
-
* host — often through a bash-like shell, which treats `\` as an escape and
|
|
23
|
-
* silently corrupts Windows absolute paths (`node C:\a\b.mjs` collapses to
|
|
24
|
-
* `node C:ab.mjs`). Node accepts forward slashes on Windows, and `/` survives
|
|
25
|
-
* bash, PowerShell, and cmd alike. Only tokens that actually carry a backslash
|
|
26
|
-
* are touched, and no non-path argument in this CLI contains one, so this is a
|
|
27
|
-
* targeted normalization rather than a blanket rewrite.
|
|
28
|
-
*/
|
|
29
13
|
export declare const toPosixCommandToken: typeof toPromptPathToken;
|
|
30
14
|
export declare function renderCommand(argv: string[]): string;
|
|
31
|
-
export declare function taskResultPath(taskResultsDir: string, taskId: string): string;
|
|
32
|
-
export declare function packetPromptPath(taskResultsDir: string, packetId: string): string;
|
|
33
|
-
export declare function readStdinText(): Promise<string>;
|
|
34
15
|
export declare function normalizePositiveInteger(value: unknown): number | undefined;
|
|
35
16
|
export declare function parsePositiveIntegerFlag(argv: string[], name: string): number | undefined;
|
|
36
17
|
export declare function getRootDir(argv: string[]): string;
|
|
37
|
-
/**
|
|
38
|
-
* Resolve the artifacts dir. An explicit `--artifacts-dir` is honored verbatim
|
|
39
|
-
* (resolved against CWD). With NO `--artifacts-dir`, the default rebases onto
|
|
40
|
-
* `--root` via the shared `auditArtifactsDir()` helper — so `--root <X>` lands
|
|
41
|
-
* the default under `<X>/.audit-tools/audit`. Previously the default resolved
|
|
42
|
-
* the `.audit-tools/audit` literal against CWD independently of `--root`, so a
|
|
43
|
-
* bare `--root <X>` silently ignored `<X>` (the latent bug fixed here).
|
|
44
|
-
*/
|
|
45
18
|
export declare function getArtifactsDir(argv: string[]): string;
|
|
46
19
|
export declare function warnIfNotGitRepo(root: string): void;
|
|
47
20
|
export declare function getBatchResultsDir(argv: string[]): string | undefined;
|
|
48
|
-
export declare function getTimeoutMs(argv: string[]
|
|
49
|
-
export declare function getExplicitProvider(argv: string[]): string | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* B1: explicit conversation-host provider override (`--host-provider`). Names the
|
|
52
|
-
* auditor actually DRIVING this run, whose account meter the dispatch fan-out is
|
|
53
|
-
* charged to — a quota-ATTRIBUTION key, distinct from `--provider` (which may name
|
|
54
|
-
* a headless in-process backend that is only the per-packet worker). Normally left
|
|
55
|
-
* unset: the host is auto-detected from the run's own session env. Constrained to
|
|
56
|
-
* a known ProviderName so a typo fails LOUDLY here rather than silently mis-keying.
|
|
57
|
-
*/
|
|
58
|
-
export declare function getHostProvider(argv: string[]): HostProviderName | null;
|
|
59
|
-
export declare function getHostModel(argv: string[]): string | null;
|
|
60
|
-
/**
|
|
61
|
-
* Parse the current driver's dispatch-capability handshake, carried as ONE
|
|
62
|
-
* `--auditor <json>` flag (G1 collapsed the former N `--host-*` scalar flags onto
|
|
63
|
-
* `descriptor.self`; G2 folded the driver's provider identity + own host/IDE launch
|
|
64
|
-
* blocks onto `self` and resliced the per-backend dispatch blocks to a top-level
|
|
65
|
-
* `sources[]`). Malformed JSON or a non-object throws loudly so a mistyped handshake
|
|
66
|
-
* fails here rather than silently downgrading. `null` when the flag is absent.
|
|
67
|
-
*
|
|
68
|
-
* `--auditor @<path>` reads the JSON from a file instead. Inline JSON through a
|
|
69
|
-
* Windows `.cmd` shim is a known quoting trap (cmd's batch `%*` re-expansion
|
|
70
|
-
* mangles embedded quotes — the same class the submit-packet flow solved with a
|
|
71
|
-
* file), so a host on a hostile shell writes the handshake to a file and passes
|
|
72
|
-
* the `@` form.
|
|
73
|
-
* [[capability-is-per-auditor-not-per-audit]] [[unified-dispatch-worker-model]]
|
|
74
|
-
*/
|
|
75
|
-
export declare function getAuditorDescriptor(argv: string[]): AuditorDescriptor | null;
|
|
76
|
-
export declare function resolveRunProviderName(argv: string[], sessionConfig: SessionConfig): string;
|
|
21
|
+
export declare function getTimeoutMs(argv: string[]): number;
|
|
77
22
|
export declare function looksLikeCliFlag(value: string | undefined): boolean;
|
|
78
23
|
export declare function countLines(path: string): Promise<number>;
|
|
79
24
|
export declare function listBatchResultFiles(batchDir: string): Promise<string[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/args.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/args.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,iBAAiB,EAEjB,yBAAyB,EACzB,qBAAqB,EAGrB,iBAAiB,EAClB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAMF,wBAAgB,OAAO,CACrB,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM,GAAG,SAAS,CAMpB;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,OAAO,GAAG,SAAS,CAIrB;AAED,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,CAAC;AAExD,eAAO,MAAM,eAAe,8BAAwB,CAAC;AACrD,eAAO,MAAM,mBAAmB,0BAAoB,CAAC;AAErD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAEpD;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAK3E;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE,MAAM,GACX,MAAM,GAAG,SAAS,CAGpB;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAIjD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAKtD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAMnD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAGrE;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAKnD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEnE;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmB9D;AAED,wBAAsB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAkB9E"}
|
package/dist/audit/cli/args.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createReadStream, existsSync } from "node:fs";
|
|
2
2
|
import { readdir } from "node:fs/promises";
|
|
3
3
|
import { Buffer } from "node:buffer";
|
|
4
4
|
import { join, resolve } from "node:path";
|
|
5
|
-
import { artifactNameForId,
|
|
6
|
-
import { resolveFreshSessionProviderName } from "../providers/index.js";
|
|
5
|
+
import { artifactNameForId, auditArtifactsDir, isCanonicalResultFilename, quotePromptCommandArg, renderPromptCommand, resolveRepoRoot, toPromptPathToken, } from "audit-tools/shared";
|
|
7
6
|
export const DIRECT_CLI_DEFAULTS = {
|
|
8
7
|
rootDir: ".",
|
|
9
|
-
// Sentinel marking "no explicit --artifacts-dir". When this is the resolved
|
|
10
|
-
// value, getArtifactsDir rebases the default onto --root via the shared
|
|
11
|
-
// auditArtifactsDir() helper rather than resolving the literal against CWD —
|
|
12
|
-
// so `--root <X>` with no --artifacts-dir lands under <X>/.audit-tools/audit.
|
|
13
8
|
artifactsDir: ".audit-tools/audit",
|
|
14
|
-
timeoutMs: 30 * 60 * 1000,
|
|
9
|
+
timeoutMs: 30 * 60 * 1000,
|
|
15
10
|
};
|
|
16
11
|
function isLongFlagToken(value) {
|
|
17
12
|
return typeof value === "string" && value.startsWith("--");
|
|
@@ -35,59 +30,13 @@ export function optionalBooleanEnv(value) {
|
|
|
35
30
|
return false;
|
|
36
31
|
return undefined;
|
|
37
32
|
}
|
|
38
|
-
export function resolveHostDispatchCapability(options) {
|
|
39
|
-
// Single-sourced in shared so audit and remediate can't drift; audit supplies its
|
|
40
|
-
// own env var name.
|
|
41
|
-
return sharedResolveHostDispatchCapability({
|
|
42
|
-
explicit: options.explicit,
|
|
43
|
-
sessionConfig: options.sessionConfig,
|
|
44
|
-
envVarName: "AUDIT_CODE_HOST_CAN_DISPATCH",
|
|
45
|
-
env: options.env,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
export function fromBase64Url(value) {
|
|
49
|
-
return Buffer.from(value, "base64url").toString("utf8");
|
|
50
|
-
}
|
|
51
|
-
// Artifact naming moved to `audit-tools/shared` — remediate names its per-node run
|
|
52
|
-
// artifacts from the same primitive and must not import from audit. Re-exported
|
|
53
|
-
// here so this module's existing consumers are unchanged.
|
|
54
33
|
export { digestId, safeArtifactStem } from "audit-tools/shared";
|
|
55
34
|
export { artifactNameForId, isCanonicalResultFilename };
|
|
56
35
|
export const quoteCommandArg = quotePromptCommandArg;
|
|
57
|
-
/**
|
|
58
|
-
* Normalize a generated command token to POSIX path separators. These command
|
|
59
|
-
* strings are embedded in step prompts and `allowed_commands` and run by the
|
|
60
|
-
* host — often through a bash-like shell, which treats `\` as an escape and
|
|
61
|
-
* silently corrupts Windows absolute paths (`node C:\a\b.mjs` collapses to
|
|
62
|
-
* `node C:ab.mjs`). Node accepts forward slashes on Windows, and `/` survives
|
|
63
|
-
* bash, PowerShell, and cmd alike. Only tokens that actually carry a backslash
|
|
64
|
-
* are touched, and no non-path argument in this CLI contains one, so this is a
|
|
65
|
-
* targeted normalization rather than a blanket rewrite.
|
|
66
|
-
*/
|
|
67
36
|
export const toPosixCommandToken = toPromptPathToken;
|
|
68
37
|
export function renderCommand(argv) {
|
|
69
38
|
return renderPromptCommand(argv);
|
|
70
39
|
}
|
|
71
|
-
export function taskResultPath(taskResultsDir, taskId) {
|
|
72
|
-
return join(taskResultsDir, artifactNameForId(taskId, "json"));
|
|
73
|
-
}
|
|
74
|
-
export function packetPromptPath(taskResultsDir, packetId) {
|
|
75
|
-
return join(taskResultsDir, artifactNameForId(packetId, "prompt.md"));
|
|
76
|
-
}
|
|
77
|
-
export async function readStdinText() {
|
|
78
|
-
if (process.stdin.isTTY) {
|
|
79
|
-
return "";
|
|
80
|
-
}
|
|
81
|
-
return await new Promise((resolveInput, reject) => {
|
|
82
|
-
let input = "";
|
|
83
|
-
process.stdin.setEncoding("utf8");
|
|
84
|
-
process.stdin.on("data", (chunk) => {
|
|
85
|
-
input += chunk;
|
|
86
|
-
});
|
|
87
|
-
process.stdin.on("end", () => resolveInput(input));
|
|
88
|
-
process.stdin.on("error", reject);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
40
|
export function normalizePositiveInteger(value) {
|
|
92
41
|
if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) {
|
|
93
42
|
return undefined;
|
|
@@ -96,35 +45,19 @@ export function normalizePositiveInteger(value) {
|
|
|
96
45
|
}
|
|
97
46
|
export function parsePositiveIntegerFlag(argv, name) {
|
|
98
47
|
const raw = getFlag(argv, name);
|
|
99
|
-
|
|
100
|
-
return undefined;
|
|
101
|
-
}
|
|
102
|
-
return normalizePositiveInteger(Number(raw));
|
|
48
|
+
return raw === undefined ? undefined : normalizePositiveInteger(Number(raw));
|
|
103
49
|
}
|
|
104
50
|
export function getRootDir(argv) {
|
|
105
|
-
// Anchor the repo root away from a drifted cwd (never trust bare `--root .`):
|
|
106
|
-
// resolveRepoRoot climbs out of any `.audit-tools/` and re-anchors to the
|
|
107
|
-
// existing run's root / git toplevel. See src/shared/io/repoRoot.ts.
|
|
108
51
|
return resolveRepoRoot(getFlag(argv, "--root", DIRECT_CLI_DEFAULTS.rootDir));
|
|
109
52
|
}
|
|
110
|
-
/**
|
|
111
|
-
* Resolve the artifacts dir. An explicit `--artifacts-dir` is honored verbatim
|
|
112
|
-
* (resolved against CWD). With NO `--artifacts-dir`, the default rebases onto
|
|
113
|
-
* `--root` via the shared `auditArtifactsDir()` helper — so `--root <X>` lands
|
|
114
|
-
* the default under `<X>/.audit-tools/audit`. Previously the default resolved
|
|
115
|
-
* the `.audit-tools/audit` literal against CWD independently of `--root`, so a
|
|
116
|
-
* bare `--root <X>` silently ignored `<X>` (the latent bug fixed here).
|
|
117
|
-
*/
|
|
118
53
|
export function getArtifactsDir(argv) {
|
|
119
54
|
const explicit = getFlag(argv, "--artifacts-dir");
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
return auditArtifactsDir(getRootDir(argv));
|
|
55
|
+
return explicit === undefined
|
|
56
|
+
? auditArtifactsDir(getRootDir(argv))
|
|
57
|
+
: resolve(explicit);
|
|
124
58
|
}
|
|
125
59
|
export function warnIfNotGitRepo(root) {
|
|
126
|
-
|
|
127
|
-
if (!existsSync(gitEntry)) {
|
|
60
|
+
if (!existsSync(join(root, ".git"))) {
|
|
128
61
|
console.warn(`Warning: target directory '${root}' does not appear to be a git repository. Diff-based signals will be unavailable.`);
|
|
129
62
|
}
|
|
130
63
|
}
|
|
@@ -132,175 +65,15 @@ export function getBatchResultsDir(argv) {
|
|
|
132
65
|
const value = getFlag(argv, "--batch-results");
|
|
133
66
|
return value ? resolve(value) : undefined;
|
|
134
67
|
}
|
|
135
|
-
export function getTimeoutMs(argv
|
|
68
|
+
export function getTimeoutMs(argv) {
|
|
136
69
|
return (parsePositiveIntegerFlag(argv, "--timeout") ??
|
|
137
|
-
normalizePositiveInteger(sessionConfig.timeout_ms) ??
|
|
138
70
|
DIRECT_CLI_DEFAULTS.timeoutMs);
|
|
139
71
|
}
|
|
140
|
-
export function getExplicitProvider(argv) {
|
|
141
|
-
return getFlag(argv, "--provider");
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* B1: explicit conversation-host provider override (`--host-provider`). Names the
|
|
145
|
-
* auditor actually DRIVING this run, whose account meter the dispatch fan-out is
|
|
146
|
-
* charged to — a quota-ATTRIBUTION key, distinct from `--provider` (which may name
|
|
147
|
-
* a headless in-process backend that is only the per-packet worker). Normally left
|
|
148
|
-
* unset: the host is auto-detected from the run's own session env. Constrained to
|
|
149
|
-
* a known ProviderName so a typo fails LOUDLY here rather than silently mis-keying.
|
|
150
|
-
*/
|
|
151
|
-
export function getHostProvider(argv) {
|
|
152
|
-
const value = getFlag(argv, "--host-provider");
|
|
153
|
-
if (value === undefined)
|
|
154
|
-
return null;
|
|
155
|
-
assertHostProviderName(value);
|
|
156
|
-
return value;
|
|
157
|
-
}
|
|
158
|
-
export function getHostModel(argv) {
|
|
159
|
-
return getFlag(argv, "--host-model") ?? null;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Parse the current driver's dispatch-capability handshake, carried as ONE
|
|
163
|
-
* `--auditor <json>` flag (G1 collapsed the former N `--host-*` scalar flags onto
|
|
164
|
-
* `descriptor.self`; G2 folded the driver's provider identity + own host/IDE launch
|
|
165
|
-
* blocks onto `self` and resliced the per-backend dispatch blocks to a top-level
|
|
166
|
-
* `sources[]`). Malformed JSON or a non-object throws loudly so a mistyped handshake
|
|
167
|
-
* fails here rather than silently downgrading. `null` when the flag is absent.
|
|
168
|
-
*
|
|
169
|
-
* `--auditor @<path>` reads the JSON from a file instead. Inline JSON through a
|
|
170
|
-
* Windows `.cmd` shim is a known quoting trap (cmd's batch `%*` re-expansion
|
|
171
|
-
* mangles embedded quotes — the same class the submit-packet flow solved with a
|
|
172
|
-
* file), so a host on a hostile shell writes the handshake to a file and passes
|
|
173
|
-
* the `@` form.
|
|
174
|
-
* [[capability-is-per-auditor-not-per-audit]] [[unified-dispatch-worker-model]]
|
|
175
|
-
*/
|
|
176
|
-
export function getAuditorDescriptor(argv) {
|
|
177
|
-
const flagValue = getFlag(argv, "--auditor");
|
|
178
|
-
if (!flagValue)
|
|
179
|
-
return null;
|
|
180
|
-
let raw = flagValue;
|
|
181
|
-
if (flagValue.startsWith("@")) {
|
|
182
|
-
const filePath = flagValue.slice(1);
|
|
183
|
-
try {
|
|
184
|
-
raw = readFileSync(filePath, "utf8");
|
|
185
|
-
}
|
|
186
|
-
catch (err) {
|
|
187
|
-
throw new Error(`--auditor @${filePath}: cannot read the handshake file: ${err instanceof Error ? err.message : String(err)}`);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
let parsed;
|
|
191
|
-
try {
|
|
192
|
-
parsed = JSON.parse(raw);
|
|
193
|
-
}
|
|
194
|
-
catch (err) {
|
|
195
|
-
throw new Error(`--auditor must be a JSON object: ${err instanceof Error ? err.message : String(err)}`);
|
|
196
|
-
}
|
|
197
|
-
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
|
|
198
|
-
throw new Error("--auditor must be a JSON object.");
|
|
199
|
-
}
|
|
200
|
-
const obj = parsed;
|
|
201
|
-
const rawSelf = obj.self && typeof obj.self === "object" && !Array.isArray(obj.self)
|
|
202
|
-
? obj.self
|
|
203
|
-
: {};
|
|
204
|
-
// Validate each `self` field to exactly the strictness the retired `--host-*`
|
|
205
|
-
// parsers enforced, so the `--auditor` transport is a faithful collapse — not a
|
|
206
|
-
// validation downgrade. The roster is re-validated through the SAME shared
|
|
207
|
-
// `parseHostModelRoster` the `--host-models` flag used (loud throw on a malformed
|
|
208
|
-
// roster: a mistyped handshake fails at the CLI boundary, never silently deep in
|
|
209
|
-
// dispatch budget resolution). Scalars mirror `parsePositiveIntegerFlag`
|
|
210
|
-
// (silent-drop of a non-positive-int, leaving the value unknown or allowing a
|
|
211
|
-
// lower-priority authoritative source to resolve it);
|
|
212
|
-
// booleans/model_id mirror their old parsers (drop a non-boolean / blank id).
|
|
213
|
-
const self = {};
|
|
214
|
-
// `self.provider` is the driver's identity + quota-attribution key: a mistyped
|
|
215
|
-
// value would mis-charge dispatch fan-out to the wrong account, so it throws
|
|
216
|
-
// loudly here (same strictness as the retired `--host-provider` parser).
|
|
217
|
-
if (rawSelf.provider !== undefined) {
|
|
218
|
-
if (typeof rawSelf.provider !== "string") {
|
|
219
|
-
throw new Error("--auditor `self.provider` must be a string.");
|
|
220
|
-
}
|
|
221
|
-
assertHostProviderName(rawSelf.provider);
|
|
222
|
-
self.provider = rawSelf.provider;
|
|
223
|
-
}
|
|
224
|
-
if (typeof rawSelf.model_id === "string" && rawSelf.model_id.trim().length > 0) {
|
|
225
|
-
self.model_id = rawSelf.model_id.trim();
|
|
226
|
-
}
|
|
227
|
-
if (rawSelf.roster !== undefined) {
|
|
228
|
-
self.roster = parseHostModelRoster(JSON.stringify(rawSelf.roster));
|
|
229
|
-
}
|
|
230
|
-
const contextTokens = normalizePositiveInteger(rawSelf.context_tokens);
|
|
231
|
-
if (contextTokens !== undefined)
|
|
232
|
-
self.context_tokens = contextTokens;
|
|
233
|
-
const outputTokens = normalizePositiveInteger(rawSelf.output_tokens);
|
|
234
|
-
if (outputTokens !== undefined)
|
|
235
|
-
self.output_tokens = outputTokens;
|
|
236
|
-
const maxActiveSubagents = normalizePositiveInteger(rawSelf.max_active_subagents);
|
|
237
|
-
if (maxActiveSubagents !== undefined)
|
|
238
|
-
self.max_active_subagents = maxActiveSubagents;
|
|
239
|
-
const parallelWorkers = normalizePositiveInteger(rawSelf.parallel_workers);
|
|
240
|
-
if (parallelWorkers !== undefined)
|
|
241
|
-
self.parallel_workers = parallelWorkers;
|
|
242
|
-
if (typeof rawSelf.can_dispatch_subagents === "boolean") {
|
|
243
|
-
self.can_dispatch_subagents = rawSelf.can_dispatch_subagents;
|
|
244
|
-
}
|
|
245
|
-
if (typeof rawSelf.can_restrict_subagent_tools === "boolean") {
|
|
246
|
-
self.can_restrict_subagent_tools = rawSelf.can_restrict_subagent_tools;
|
|
247
|
-
}
|
|
248
|
-
if (typeof rawSelf.can_select_subagent_model === "boolean") {
|
|
249
|
-
self.can_select_subagent_model = rawSelf.can_select_subagent_model;
|
|
250
|
-
}
|
|
251
|
-
// The driver's OWN launch transport (only the host/IDE providers that are NOT
|
|
252
|
-
// generic dispatchable sources). Passed through structurally like the retired
|
|
253
|
-
// inventory blocks; deep-validated downstream by the session-config validator when
|
|
254
|
-
// resolved. A non-object is dropped rather than throwing (mirrors the old
|
|
255
|
-
// pass-through), since these are optional operator tuning, not identity keys.
|
|
256
|
-
for (const key of ["claude_code", "vscode_task", "antigravity"]) {
|
|
257
|
-
const block = rawSelf[key];
|
|
258
|
-
if (block && typeof block === "object" && !Array.isArray(block)) {
|
|
259
|
-
self[key] = block;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
const rawSources = obj.sources;
|
|
263
|
-
if (rawSources !== undefined &&
|
|
264
|
-
rawSources !== null &&
|
|
265
|
-
!Array.isArray(rawSources)) {
|
|
266
|
-
throw new Error("--auditor `sources` must be a JSON array.");
|
|
267
|
-
}
|
|
268
|
-
const sources = Array.isArray(rawSources)
|
|
269
|
-
? rawSources
|
|
270
|
-
: undefined;
|
|
271
|
-
// Validate the descriptor's DISPATCH content through the SAME shape/injection checks
|
|
272
|
-
// the disk-load boundary applies (`validateSessionConfig`): descriptor `sources` +
|
|
273
|
-
// launch blocks are host-supplied and must be mechanically validated, never trusted
|
|
274
|
-
// (auditor-agnostic robustness — the descriptor is now the channel that carries what
|
|
275
|
-
// the repo config used to). A malformed source `quota` (the C1 over-sizing guard) or a
|
|
276
|
-
// command-injection-shaped launch command fails HERE at the parse boundary, not deep in
|
|
277
|
-
// dispatch. `provider` is left unset for this check so a launch-block source does not
|
|
278
|
-
// trip the "required section" validation. Errors throw; warnings are not surfaced here
|
|
279
|
-
// (a descriptor cannot be persisted, so there is nothing durable to flag).
|
|
280
|
-
const descriptorDispatchErrors = validateSessionConfig({
|
|
281
|
-
...(sources !== undefined ? { sources } : {}),
|
|
282
|
-
...(self.claude_code ? { claude_code: self.claude_code } : {}),
|
|
283
|
-
...(self.vscode_task ? { vscode_task: self.vscode_task } : {}),
|
|
284
|
-
...(self.antigravity ? { antigravity: self.antigravity } : {}),
|
|
285
|
-
}).filter((issue) => issue.severity === "error");
|
|
286
|
-
if (descriptorDispatchErrors.length > 0) {
|
|
287
|
-
throw new Error(`--auditor descriptor is invalid:\n${formatValidationIssues(descriptorDispatchErrors).replace(/^ {2}/gm, "- ")}`);
|
|
288
|
-
}
|
|
289
|
-
return {
|
|
290
|
-
...(typeof obj.auditor_id === "string" ? { auditor_id: obj.auditor_id } : {}),
|
|
291
|
-
...(typeof obj.resolved_at === "number" ? { resolved_at: obj.resolved_at } : {}),
|
|
292
|
-
self,
|
|
293
|
-
...(sources !== undefined ? { sources } : {}),
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
export function resolveRunProviderName(argv, sessionConfig) {
|
|
297
|
-
return resolveFreshSessionProviderName(getExplicitProvider(argv), sessionConfig);
|
|
298
|
-
}
|
|
299
72
|
export function looksLikeCliFlag(value) {
|
|
300
73
|
return isLongFlagToken(value);
|
|
301
74
|
}
|
|
302
75
|
export async function countLines(path) {
|
|
303
|
-
return new Promise((
|
|
76
|
+
return await new Promise((resolveCount, reject) => {
|
|
304
77
|
let lines = 0;
|
|
305
78
|
let byteCount = 0;
|
|
306
79
|
let lastByte = -1;
|
|
@@ -308,33 +81,26 @@ export async function countLines(path) {
|
|
|
308
81
|
stream.on("data", (chunk) => {
|
|
309
82
|
const buffer = typeof chunk === "string" ? Buffer.from(chunk) : chunk;
|
|
310
83
|
byteCount += buffer.length;
|
|
311
|
-
for (
|
|
312
|
-
if (
|
|
313
|
-
lines
|
|
314
|
-
lastByte =
|
|
84
|
+
for (const byte of buffer) {
|
|
85
|
+
if (byte === 10)
|
|
86
|
+
lines += 1;
|
|
87
|
+
lastByte = byte;
|
|
315
88
|
}
|
|
316
89
|
});
|
|
317
90
|
stream.on("end", () => {
|
|
318
|
-
|
|
319
|
-
return resolve(0);
|
|
320
|
-
resolve(lastByte !== 10 ? lines + 1 : lines);
|
|
91
|
+
resolveCount(byteCount === 0 ? 0 : lastByte === 10 ? lines : lines + 1);
|
|
321
92
|
});
|
|
322
93
|
stream.on("error", reject);
|
|
323
94
|
});
|
|
324
95
|
}
|
|
325
96
|
export async function listBatchResultFiles(batchDir) {
|
|
326
97
|
const entries = await readdir(batchDir, { withFileTypes: true });
|
|
327
|
-
// Admit ONLY canonical result filenames (<stem>_<digest>[.suffix].json). A
|
|
328
|
-
// bare `*.json` filter would ingest any stray JSON co-located in the dir — a
|
|
329
|
-
// session-config, a schema pointer, an editor scratch file — as if it were an
|
|
330
|
-
// audit result. The canonical-name gate is the same one merge-and-ingest uses
|
|
331
|
-
// to tell real result files apart from spurious ones.
|
|
332
98
|
const files = entries
|
|
333
99
|
.filter((entry) => entry.isFile() &&
|
|
334
100
|
entry.name.toLowerCase().endsWith(".json") &&
|
|
335
101
|
isCanonicalResultFilename(entry.name))
|
|
336
102
|
.map((entry) => join(batchDir, entry.name))
|
|
337
|
-
.sort(
|
|
103
|
+
.sort();
|
|
338
104
|
if (files.length === 0) {
|
|
339
105
|
throw new Error(`No canonical audit result files (<stem>_<digest>.json) found in ${batchDir}.`);
|
|
340
106
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../../src/audit/cli/args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,iBA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CAAC,MAAM,EAAE;QACd,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;QAC1C,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,CACxC;SACA,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;SAC1C,IAAI,EAAE,CAAC;IAEV,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,mEAAmE,QAAQ,GAAG,CAC/E,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type SessionConfig, type WorkPartitionPolicy } from "audit-tools/shared";
|
|
2
1
|
import type { AdvanceAuditResult } from "../orchestrator/advanceTypes.js";
|
|
3
2
|
import type { ArtifactBundle } from "../io/artifacts.js";
|
|
4
3
|
import type { EdgeReasoningResults } from "../orchestrator/edgeReasoning.js";
|
|
4
|
+
import type { AuditResult } from "../types.js";
|
|
5
5
|
import type { AnalyzerSetting } from "audit-tools/shared";
|
|
6
6
|
import type { ExternalAnalyzerResults } from "audit-tools/shared";
|
|
7
7
|
import type { ExternalAcquisitionAdvanceOptions } from "../orchestrator/acquisitionExecutor.js";
|
|
@@ -10,6 +10,13 @@ export interface RunAuditStepOptions {
|
|
|
10
10
|
artifactsDir: string;
|
|
11
11
|
preferredExecutor?: string;
|
|
12
12
|
auditResultsPath?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Already-validated host-handoff results. This is the in-process counterpart
|
|
15
|
+
* to `auditResultsPath`: the zero-adapter host boundary validates and binds
|
|
16
|
+
* each untrusted result before handing the normalized AuditResult objects to
|
|
17
|
+
* the ordinary result-ingestion executor.
|
|
18
|
+
*/
|
|
19
|
+
auditResultsData?: AuditResult[];
|
|
13
20
|
runtimeUpdatesPath?: string;
|
|
14
21
|
/** Provide a file path OR an already-parsed object; path is only read when the object is absent. */
|
|
15
22
|
externalAnalyzerPath?: string;
|
|
@@ -32,10 +39,6 @@ export interface RunAuditStepOptions {
|
|
|
32
39
|
externalAcquisition?: ExternalAcquisitionAdvanceOptions;
|
|
33
40
|
since?: string;
|
|
34
41
|
runLog?: boolean;
|
|
35
|
-
/** Effective per-auditor dispatch inventory for semantic review. */
|
|
36
|
-
sessionConfig?: SessionConfig;
|
|
37
|
-
/** Current invocation's resolved partition capacity; transient and never persisted. */
|
|
38
|
-
workPartition?: Pick<WorkPartitionPolicy, "capacityTokens" | "availableParallelism">;
|
|
39
42
|
}
|
|
40
43
|
export declare function runAuditStep(options: RunAuditStepOptions): Promise<AdvanceAuditResult>;
|
|
41
44
|
export declare function ingestBatchAuditResults(options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditStep.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/auditStep.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auditStep.d.ts","sourceRoot":"","sources":["../../../src/audit/cli/auditStep.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAU7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAkD,MAAM,oBAAoB,CAAC;AAE1G,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC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