@openai/codex-security 0.8.3 → 0.10.0
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 +36 -746
- package/_bundled_plugin/.codex-plugin/plugin.json +2 -0
- package/_bundled_plugin/.mcp.json +7 -1
- package/_bundled_plugin/examples/completed-scan/findings.json +16 -4
- package/_bundled_plugin/examples/completed-scan/report.md +11 -8
- package/_bundled_plugin/examples/completed-scan/scan-manifest.json +4 -2
- package/_bundled_plugin/mcp/fzstd-LICENSE.txt +21 -0
- package/_bundled_plugin/mcp/helpers.mjs +2 -11
- package/_bundled_plugin/mcp/helpers.mjs.br +0 -0
- package/_bundled_plugin/mcp/native/THIRD_PARTY_NOTICES.txt +3 -210
- package/_bundled_plugin/mcp/native/darwin-arm64/unix.node +0 -0
- package/_bundled_plugin/mcp/native/darwin-x64/unix.node +0 -0
- package/_bundled_plugin/mcp/native/linux-arm64-gnu/unix.node +0 -0
- package/_bundled_plugin/mcp/native/linux-arm64-musl/unix.node +0 -0
- package/_bundled_plugin/mcp/native/linux-x64-gnu/unix.node +0 -0
- package/_bundled_plugin/mcp/native/linux-x64-musl/unix.node +0 -0
- package/_bundled_plugin/mcp/native/win32-arm64/windows.node +0 -0
- package/_bundled_plugin/mcp/native/win32-x64/windows.node +0 -0
- package/_bundled_plugin/mcp/package.json +1 -0
- package/_bundled_plugin/mcp/permission-profile-preflight.mjs +5 -2
- package/_bundled_plugin/mcp/server.mjs +2 -11
- package/_bundled_plugin/mcp/server.mjs.br +0 -0
- package/_bundled_plugin/mcp/session-decompression.mjs +712 -0
- package/_bundled_plugin/references/artifact-storage.md +1 -1
- package/_bundled_plugin/references/baseline-auditor.md +18 -0
- package/_bundled_plugin/references/core-scan.md +5 -42
- package/_bundled_plugin/references/default-severity-rubric.md +9 -4
- package/_bundled_plugin/references/final-report.md +5 -3
- package/_bundled_plugin/references/finding-detail-fields.md +18 -18
- package/_bundled_plugin/references/focused-investigator.md +13 -0
- package/_bundled_plugin/references/sarif-adapter.md +8 -2
- package/_bundled_plugin/references/scan-artifacts.md +21 -12
- package/_bundled_plugin/references/scan-contract.md +27 -33
- package/_bundled_plugin/references/scan-prologue.md +2 -2
- package/_bundled_plugin/references/scan-runtime.md +4 -2
- package/_bundled_plugin/references/security-guidance.md +14 -1
- package/_bundled_plugin/references/validate-scan-findings.md +3 -0
- package/_bundled_plugin/schemas/tools/scan-draft.schema.json +2 -2
- package/_bundled_plugin/scripts/check_deep_scan_target.py +97 -0
- package/_bundled_plugin/scripts/codex_profile.mjs +7 -1
- package/_bundled_plugin/scripts/deep_scan_config.py +20 -1
- package/_bundled_plugin/scripts/deep_scan_workbench.py +192 -352
- package/_bundled_plugin/scripts/dispatch_inventory_tool +7 -0
- package/_bundled_plugin/scripts/filesystem_identity.py +1 -0
- package/_bundled_plugin/scripts/finalize_scan_contract.py +182 -230
- package/_bundled_plugin/scripts/finding_preview.py +20 -0
- package/_bundled_plugin/scripts/launch_codex_security_mcp +55 -16
- package/_bundled_plugin/scripts/legacy_findings.py +148 -0
- package/_bundled_plugin/scripts/posix_scan_local_files.py +37 -1
- package/_bundled_plugin/scripts/read_codex_session.mjs +21 -0
- package/_bundled_plugin/scripts/report_projection.py +81 -43
- package/_bundled_plugin/scripts/review_state.py +8 -2
- package/_bundled_plugin/scripts/servicenow_avit.py +20 -0
- package/_bundled_plugin/scripts/snapshot_sqlite.py +9 -2
- package/_bundled_plugin/scripts/threat_model_projection.py +22 -26
- package/_bundled_plugin/scripts/validate_scan_contract.py +7 -1
- package/_bundled_plugin/scripts/windows_scan_local_files.py +582 -20
- package/_bundled_plugin/scripts/workbench/__init__.py +1 -1
- package/_bundled_plugin/scripts/workbench/handoff.py +100 -23
- package/_bundled_plugin/scripts/workbench/retained_coverage.py +30 -51
- package/_bundled_plugin/scripts/workbench/retained_records.py +18 -30
- package/_bundled_plugin/scripts/workbench/runtime_toml.py +4 -1
- package/_bundled_plugin/scripts/workbench/saved_coverage.py +9 -17
- package/_bundled_plugin/scripts/workbench/saved_outputs.py +9 -0
- package/_bundled_plugin/scripts/workbench/saved_sources.py +47 -40
- package/_bundled_plugin/scripts/workbench/storage.py +91 -7
- package/_bundled_plugin/scripts/workbench_cli.py +54 -14
- package/_bundled_plugin/scripts/workbench_constants.py +12 -0
- package/_bundled_plugin/scripts/workbench_coverage_receipts.py +3 -3
- package/_bundled_plugin/scripts/workbench_db.py +562 -303
- package/_bundled_plugin/scripts/workbench_feedback.py +57 -11
- package/_bundled_plugin/scripts/workbench_finding_index.py +1 -0
- package/_bundled_plugin/scripts/workbench_finding_workflows.py +4 -0
- package/_bundled_plugin/scripts/workbench_native_indexes.py +238 -41
- package/_bundled_plugin/scripts/workbench_progress.py +169 -4
- package/_bundled_plugin/scripts/workbench_publication.py +16 -13
- package/_bundled_plugin/scripts/workbench_remediation.py +155 -2
- package/_bundled_plugin/scripts/workbench_saved_results.py +176 -81
- package/_bundled_plugin/scripts/workbench_scan_history.py +398 -174
- package/_bundled_plugin/scripts/workbench_scan_start.py +224 -31
- package/_bundled_plugin/scripts/workbench_scan_usage.py +675 -73
- package/_bundled_plugin/scripts/workbench_schema.py +258 -63
- package/_bundled_plugin/scripts/workbench_setup.py +14 -2
- package/_bundled_plugin/scripts/workbench_source_excerpt.py +13 -0
- package/_bundled_plugin/scripts/workbench_source_scopes.py +18 -0
- package/_bundled_plugin/scripts/workbench_target.py +594 -136
- package/_bundled_plugin/scripts/workbench_target_state.py +1110 -21
- package/_bundled_plugin/scripts/workbench_validation.py +43 -3
- package/_bundled_plugin/shared/workbench-history-repairs.json +77 -35
- package/_bundled_plugin/shared/workbench-migrations.json +100 -0
- package/_bundled_plugin/skills/cloud-findings/SKILL.md +5 -5
- package/_bundled_plugin/skills/deep-security-scan/SKILL.md +7 -50
- package/_bundled_plugin/skills/fix-finding/SKILL.md +2 -1
- package/_bundled_plugin/skills/publish-findings/SKILL.md +24 -153
- package/_bundled_plugin/skills/publish-findings/agents/openai.yaml +2 -2
- package/_bundled_plugin/skills/publish-findings/references/checkmarx-import.md +37 -0
- package/_bundled_plugin/skills/publish-findings/references/wiz-import.md +3 -3
- package/_bundled_plugin/skills/publish-findings/scripts/collect_checkmarx.py +409 -0
- package/_bundled_plugin/skills/publish-findings/scripts/collect_continuum.py +224 -0
- package/_bundled_plugin/skills/publish-findings/scripts/collector_paths.py +63 -0
- package/_bundled_plugin/skills/security-scan/SKILL.md +9 -46
- package/_bundled_plugin/skills/security-scan/agents/openai.yaml +2 -2
- package/_bundled_plugin/skills/security-scan/references/desktop-scan.md +3 -21
- package/_bundled_plugin/skills/security-scan/references/managed-scan.md +11 -0
- package/_bundled_plugin/skills/security-scan/references/scan-results.md +15 -0
- package/_bundled_plugin/skills/security-scan/references/scoped-paths.md +23 -0
- package/_bundled_plugin/skills/security-scan/references/sdk-files.md +24 -0
- package/_bundled_plugin/skills/threat-model-visualize/scripts/build_explorer.py +22 -1
- package/_bundled_plugin/skills/triage-finding/references/ticket-intake.md +6 -2
- package/bin/codex-security.mjs +2 -2
- package/dist/api.d.ts +45 -5
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1192 -427
- package/dist/api.js.map +1 -1
- package/dist/armorcode-findings.d.ts +9 -0
- package/dist/armorcode-findings.d.ts.map +1 -0
- package/dist/armorcode-findings.js +145 -0
- package/dist/armorcode-findings.js.map +1 -0
- package/dist/artifact-export.d.ts +2 -0
- package/dist/artifact-export.d.ts.map +1 -1
- package/dist/artifact-export.js +29 -13
- package/dist/artifact-export.js.map +1 -1
- package/dist/auth.d.ts +6 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +37 -18
- package/dist/auth.js.map +1 -1
- package/dist/batch-cost.d.ts +18 -0
- package/dist/batch-cost.d.ts.map +1 -0
- package/dist/batch-cost.js +41 -0
- package/dist/batch-cost.js.map +1 -0
- package/dist/bedrock-oss-pricing.d.ts +6 -0
- package/dist/bedrock-oss-pricing.d.ts.map +1 -0
- package/dist/bedrock-oss-pricing.js +58 -0
- package/dist/bedrock-oss-pricing.js.map +1 -0
- package/dist/bedrock-pricing.d.ts +15 -0
- package/dist/bedrock-pricing.d.ts.map +1 -0
- package/dist/bedrock-pricing.js +117 -0
- package/dist/bedrock-pricing.js.map +1 -0
- package/dist/blackduck-findings.d.ts +1 -1
- package/dist/blackduck-findings.d.ts.map +1 -1
- package/dist/blackduck-findings.js +24 -22
- package/dist/blackduck-findings.js.map +1 -1
- package/dist/bulk-scan-discovery.d.ts.map +1 -1
- package/dist/bulk-scan-discovery.js +4 -4
- package/dist/bulk-scan-discovery.js.map +1 -1
- package/dist/bundled-plugin.d.ts +4 -0
- package/dist/bundled-plugin.d.ts.map +1 -0
- package/dist/bundled-plugin.js +23 -0
- package/dist/bundled-plugin.js.map +1 -0
- package/dist/checkmarx-evidence.d.ts +19 -0
- package/dist/checkmarx-evidence.d.ts.map +1 -0
- package/dist/checkmarx-evidence.js +36 -0
- package/dist/checkmarx-evidence.js.map +1 -0
- package/dist/checkmarx-findings.d.ts +4 -0
- package/dist/checkmarx-findings.d.ts.map +1 -0
- package/dist/checkmarx-findings.js +27 -0
- package/dist/checkmarx-findings.js.map +1 -0
- package/dist/checkmarx-one.d.ts +4 -0
- package/dist/checkmarx-one.d.ts.map +1 -0
- package/dist/checkmarx-one.js +53 -0
- package/dist/checkmarx-one.js.map +1 -0
- package/dist/checkmarx-repository.d.ts +12 -0
- package/dist/checkmarx-repository.d.ts.map +1 -0
- package/dist/checkmarx-repository.js +181 -0
- package/dist/checkmarx-repository.js.map +1 -0
- package/dist/checkmarx-xml.d.ts +12 -0
- package/dist/checkmarx-xml.d.ts.map +1 -0
- package/dist/checkmarx-xml.js +196 -0
- package/dist/checkmarx-xml.js.map +1 -0
- package/dist/classify-scan-severity.d.ts +1 -1
- package/dist/classify-scan-severity.d.ts.map +1 -1
- package/dist/classify-scan-severity.js +11 -3
- package/dist/classify-scan-severity.js.map +1 -1
- package/dist/classify-severity-records.d.ts +1 -9
- package/dist/classify-severity-records.d.ts.map +1 -1
- package/dist/classify-severity-records.js +3 -13
- package/dist/classify-severity-records.js.map +1 -1
- package/dist/classify-severity.d.ts.map +1 -1
- package/dist/classify-severity.js +11 -10
- package/dist/classify-severity.js.map +1 -1
- package/dist/cli-argument.d.ts +4 -0
- package/dist/cli-argument.d.ts.map +1 -0
- package/dist/cli-argument.js +17 -0
- package/dist/cli-argument.js.map +1 -0
- package/dist/cli-help.d.ts +1 -1
- package/dist/cli-help.d.ts.map +1 -1
- package/dist/cli-help.js +71 -29
- package/dist/cli-help.js.map +1 -1
- package/dist/cli-hook.d.ts +3 -0
- package/dist/cli-hook.d.ts.map +1 -0
- package/dist/cli-hook.js +87 -0
- package/dist/cli-hook.js.map +1 -0
- package/dist/cli-integrations.d.ts +13 -0
- package/dist/cli-integrations.d.ts.map +1 -0
- package/dist/cli-integrations.js +333 -0
- package/dist/cli-integrations.js.map +1 -0
- package/dist/cli-mcp.d.ts +15 -0
- package/dist/cli-mcp.d.ts.map +1 -0
- package/dist/cli-mcp.js +178 -0
- package/dist/cli-mcp.js.map +1 -0
- package/dist/cli-token-view.d.ts +10 -0
- package/dist/cli-token-view.d.ts.map +1 -0
- package/dist/cli-token-view.js +41 -0
- package/dist/cli-token-view.js.map +1 -0
- package/dist/cli.d.ts +16 -8
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +3382 -2017
- package/dist/cli.js.map +1 -1
- package/dist/cloud-publish.d.ts.map +1 -1
- package/dist/cloud-publish.js +35 -33
- package/dist/cloud-publish.js.map +1 -1
- package/dist/codex-sdk-environment.d.ts +6 -0
- package/dist/codex-sdk-environment.d.ts.map +1 -1
- package/dist/codex-sdk-environment.js +19 -0
- package/dist/codex-sdk-environment.js.map +1 -1
- package/dist/command-words.d.ts +3 -0
- package/dist/command-words.d.ts.map +1 -0
- package/dist/command-words.js +46 -0
- package/dist/command-words.js.map +1 -0
- package/dist/component-scan.d.ts +19 -4
- package/dist/component-scan.d.ts.map +1 -1
- package/dist/component-scan.js +67 -9
- package/dist/component-scan.js.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +130 -67
- package/dist/config.js.map +1 -1
- package/dist/continuum-findings.d.ts +1 -1
- package/dist/continuum-findings.d.ts.map +1 -1
- package/dist/continuum-findings.js +149 -19
- package/dist/continuum-findings.js.map +1 -1
- package/dist/contract-values.d.ts +2 -0
- package/dist/contract-values.d.ts.map +1 -1
- package/dist/contract-values.js +12 -9
- package/dist/contract-values.js.map +1 -1
- package/dist/cost-model.d.ts +13 -1
- package/dist/cost-model.d.ts.map +1 -1
- package/dist/cost-model.js +66 -112
- package/dist/cost-model.js.map +1 -1
- package/dist/cost.d.ts +42 -3
- package/dist/cost.d.ts.map +1 -1
- package/dist/cost.js +484 -149
- package/dist/cost.js.map +1 -1
- package/dist/custom-publish.d.ts +4 -0
- package/dist/custom-publish.d.ts.map +1 -1
- package/dist/custom-publish.js +40 -3
- package/dist/custom-publish.js.map +1 -1
- package/dist/custom-validation-prompt.d.ts +1 -1
- package/dist/custom-validation-prompt.d.ts.map +1 -1
- package/dist/custom-validation-prompt.js +29 -19
- package/dist/custom-validation-prompt.js.map +1 -1
- package/dist/deduplication/local.d.ts +4 -2
- package/dist/deduplication/local.d.ts.map +1 -1
- package/dist/deduplication/local.js +9 -2
- package/dist/deduplication/local.js.map +1 -1
- package/dist/deduplication/refusal.d.ts.map +1 -1
- package/dist/deduplication/refusal.js +26 -5
- package/dist/deduplication/refusal.js.map +1 -1
- package/dist/deduplication/scan.d.ts +5 -0
- package/dist/deduplication/scan.d.ts.map +1 -1
- package/dist/deduplication/scan.js +24 -7
- package/dist/deduplication/scan.js.map +1 -1
- package/dist/deep-config.d.ts +0 -1
- package/dist/deep-config.d.ts.map +1 -1
- package/dist/deep-config.js +22 -33
- package/dist/deep-config.js.map +1 -1
- package/dist/deep-scan-defaults.d.ts +2 -0
- package/dist/deep-scan-defaults.d.ts.map +1 -1
- package/dist/deep-scan-defaults.js +28 -1
- package/dist/deep-scan-defaults.js.map +1 -1
- package/dist/deep-scan.d.ts +2 -0
- package/dist/deep-scan.d.ts.map +1 -1
- package/dist/deep-scan.js +44 -19
- package/dist/deep-scan.js.map +1 -1
- package/dist/default-severity-rubric.d.ts +1 -1
- package/dist/default-severity-rubric.d.ts.map +1 -1
- package/dist/default-severity-rubric.js +1 -1
- package/dist/default-severity-rubric.js.map +1 -1
- package/dist/endor-findings.d.ts +3 -1
- package/dist/endor-findings.d.ts.map +1 -1
- package/dist/endor-findings.js +86 -45
- package/dist/endor-findings.js.map +1 -1
- package/dist/errors.d.ts +4 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +15 -4
- package/dist/errors.js.map +1 -1
- package/dist/executable-path.d.ts +3 -0
- package/dist/executable-path.d.ts.map +1 -1
- package/dist/executable-path.js +26 -0
- package/dist/executable-path.js.map +1 -1
- package/dist/external-findings-import.d.ts +5 -3
- package/dist/external-findings-import.d.ts.map +1 -1
- package/dist/external-findings-import.js +19 -7
- package/dist/external-findings-import.js.map +1 -1
- package/dist/external-findings-local.d.ts +69 -5
- package/dist/external-findings-local.d.ts.map +1 -1
- package/dist/external-findings-local.js +537 -108
- package/dist/external-findings-local.js.map +1 -1
- package/dist/external-findings-publish.d.ts +13 -6
- package/dist/external-findings-publish.d.ts.map +1 -1
- package/dist/external-findings-publish.js +895 -1142
- package/dist/external-findings-publish.js.map +1 -1
- package/dist/external-findings-read.d.ts +21 -2
- package/dist/external-findings-read.d.ts.map +1 -1
- package/dist/external-findings-read.js +130 -68
- package/dist/external-findings-read.js.map +1 -1
- package/dist/external-findings.d.ts +15 -3
- package/dist/external-findings.d.ts.map +1 -1
- package/dist/external-findings.js +54 -2
- package/dist/external-findings.js.map +1 -1
- package/dist/external-import-contract.d.ts +8 -12
- package/dist/external-import-contract.d.ts.map +1 -1
- package/dist/external-import-contract.js +51 -184
- package/dist/external-import-contract.js.map +1 -1
- package/dist/external-import-models.d.ts +1 -1
- package/dist/external-import-models.d.ts.map +1 -1
- package/dist/external-import-models.js.map +1 -1
- package/dist/feedback.d.ts.map +1 -1
- package/dist/feedback.js +5 -4
- package/dist/feedback.js.map +1 -1
- package/dist/finding-prompt.d.ts +5 -0
- package/dist/finding-prompt.d.ts.map +1 -0
- package/dist/finding-prompt.js +32 -0
- package/dist/finding-prompt.js.map +1 -0
- package/dist/findings-client.d.ts +1 -0
- package/dist/findings-client.d.ts.map +1 -1
- package/dist/findings-client.js +27 -3
- package/dist/findings-client.js.map +1 -1
- package/dist/github-advisories.d.ts.map +1 -1
- package/dist/github-advisories.js +0 -2
- package/dist/github-advisories.js.map +1 -1
- package/dist/github-dependabot-findings.d.ts.map +1 -1
- package/dist/github-dependabot-findings.js +18 -8
- package/dist/github-dependabot-findings.js.map +1 -1
- package/dist/github-findings.d.ts +4 -1
- package/dist/github-findings.d.ts.map +1 -1
- package/dist/github-findings.js +73 -316
- package/dist/github-findings.js.map +1 -1
- package/dist/hosted-git-remotes.d.ts +5 -0
- package/dist/hosted-git-remotes.d.ts.map +1 -0
- package/dist/hosted-git-remotes.js +285 -0
- package/dist/hosted-git-remotes.js.map +1 -0
- package/dist/hosted-git-repository.d.ts +28 -0
- package/dist/hosted-git-repository.d.ts.map +1 -0
- package/dist/hosted-git-repository.js +222 -0
- package/dist/hosted-git-repository.js.map +1 -0
- package/dist/hosted-remediation.d.ts +1 -0
- package/dist/hosted-remediation.d.ts.map +1 -1
- package/dist/hosted-remediation.js +23 -3
- package/dist/hosted-remediation.js.map +1 -1
- package/dist/hosted-scan-protocol.js +2 -2
- package/dist/hosted-scan-protocol.js.map +1 -1
- package/dist/hosted-scan.d.ts.map +1 -1
- package/dist/hosted-scan.js +16 -11
- package/dist/hosted-scan.js.map +1 -1
- package/dist/hosted-scanner-http.d.ts +21 -0
- package/dist/hosted-scanner-http.d.ts.map +1 -0
- package/dist/hosted-scanner-http.js +204 -0
- package/dist/hosted-scanner-http.js.map +1 -0
- package/dist/import-scan.d.ts.map +1 -1
- package/dist/import-scan.js +3 -0
- package/dist/import-scan.js.map +1 -1
- package/dist/index.d.ts +21 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/inspector-findings.d.ts.map +1 -1
- package/dist/inspector-findings.js +52 -86
- package/dist/inspector-findings.js.map +1 -1
- package/dist/knowledge-base.d.ts +1 -1
- package/dist/knowledge-base.d.ts.map +1 -1
- package/dist/knowledge-base.js +102 -32
- package/dist/knowledge-base.js.map +1 -1
- package/dist/linear.d.ts +11 -0
- package/dist/linear.d.ts.map +1 -1
- package/dist/linear.js.map +1 -1
- package/dist/local-git-metadata.d.ts +5 -2
- package/dist/local-git-metadata.d.ts.map +1 -1
- package/dist/local-git-metadata.js +8 -5
- package/dist/local-git-metadata.js.map +1 -1
- package/dist/multiscan.d.ts +10 -4
- package/dist/multiscan.d.ts.map +1 -1
- package/dist/multiscan.js +217 -102
- package/dist/multiscan.js.map +1 -1
- package/dist/native-json-findings.d.ts +2 -1
- package/dist/native-json-findings.d.ts.map +1 -1
- package/dist/native-json-findings.js +12 -2
- package/dist/native-json-findings.js.map +1 -1
- package/dist/opengrep-findings.d.ts +5 -2
- package/dist/opengrep-findings.d.ts.map +1 -1
- package/dist/opengrep-findings.js +54 -33
- package/dist/opengrep-findings.js.map +1 -1
- package/dist/operation-telemetry.d.ts +104 -0
- package/dist/operation-telemetry.d.ts.map +1 -0
- package/dist/operation-telemetry.js +293 -0
- package/dist/operation-telemetry.js.map +1 -0
- package/dist/plugin-python-probe.d.ts +4 -0
- package/dist/plugin-python-probe.d.ts.map +1 -0
- package/dist/plugin-python-probe.js +10 -0
- package/dist/plugin-python-probe.js.map +1 -0
- package/dist/private-finding-import.d.ts +99 -9
- package/dist/private-finding-import.d.ts.map +1 -1
- package/dist/private-finding-import.js +116 -152
- package/dist/private-finding-import.js.map +1 -1
- package/dist/project-config.d.ts.map +1 -1
- package/dist/project-config.js +53 -13
- package/dist/project-config.js.map +1 -1
- package/dist/prompt-files.d.ts +7 -2
- package/dist/prompt-files.d.ts.map +1 -1
- package/dist/prompt-files.js +42 -20
- package/dist/prompt-files.js.map +1 -1
- package/dist/provider-profile.d.ts +1 -1
- package/dist/provider-profile.d.ts.map +1 -1
- package/dist/provider-profile.js +12 -10
- package/dist/provider-profile.js.map +1 -1
- package/dist/publication-telemetry.d.ts +45 -0
- package/dist/publication-telemetry.d.ts.map +1 -0
- package/dist/publication-telemetry.js +50 -0
- package/dist/publication-telemetry.js.map +1 -0
- package/dist/publication.d.ts +1 -1
- package/dist/publication.d.ts.map +1 -1
- package/dist/publication.js.map +1 -1
- package/dist/publish.d.ts +4 -0
- package/dist/publish.d.ts.map +1 -1
- package/dist/publish.js +42 -2
- package/dist/publish.js.map +1 -1
- package/dist/record.d.ts +1 -5
- package/dist/record.d.ts.map +1 -1
- package/dist/record.js +3 -51
- package/dist/record.js.map +1 -1
- package/dist/remediation.d.ts +1 -4
- package/dist/remediation.d.ts.map +1 -1
- package/dist/remediation.js +6 -8
- package/dist/remediation.js.map +1 -1
- package/dist/request-metadata.d.ts +3 -0
- package/dist/request-metadata.d.ts.map +1 -1
- package/dist/request-metadata.js +9 -0
- package/dist/request-metadata.js.map +1 -1
- package/dist/result.d.ts +4 -0
- package/dist/result.d.ts.map +1 -1
- package/dist/result.js +1 -1
- package/dist/result.js.map +1 -1
- package/dist/retry-windows-rename.d.ts +8 -0
- package/dist/retry-windows-rename.d.ts.map +1 -0
- package/dist/retry-windows-rename.js +24 -0
- package/dist/retry-windows-rename.js.map +1 -0
- package/dist/runtime.d.ts +54 -6
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +1084 -256
- package/dist/runtime.js.map +1 -1
- package/dist/saved-scan-bootstrap.d.ts +7 -1
- package/dist/saved-scan-bootstrap.d.ts.map +1 -1
- package/dist/saved-scan-bootstrap.js +269 -114
- package/dist/saved-scan-bootstrap.js.map +1 -1
- package/dist/scan-activity.d.ts.map +1 -1
- package/dist/scan-activity.js +141 -56
- package/dist/scan-activity.js.map +1 -1
- package/dist/scan-archive-path.d.ts +2 -0
- package/dist/scan-archive-path.d.ts.map +1 -0
- package/dist/scan-archive-path.js +5 -0
- package/dist/scan-archive-path.js.map +1 -0
- package/dist/scan-comparison.d.ts +10 -5
- package/dist/scan-comparison.d.ts.map +1 -1
- package/dist/scan-comparison.js +66 -17
- package/dist/scan-comparison.js.map +1 -1
- package/dist/scan-dashboard.d.ts +7 -6
- package/dist/scan-dashboard.d.ts.map +1 -1
- package/dist/scan-dashboard.js +92 -43
- package/dist/scan-dashboard.js.map +1 -1
- package/dist/scan-executor.d.ts +10 -1
- package/dist/scan-executor.d.ts.map +1 -1
- package/dist/scan-executor.js +24 -2
- package/dist/scan-executor.js.map +1 -1
- package/dist/scan-history-renderer.d.ts +1 -0
- package/dist/scan-history-renderer.d.ts.map +1 -1
- package/dist/scan-history-renderer.js +34 -28
- package/dist/scan-history-renderer.js.map +1 -1
- package/dist/scan-logs.d.ts +12 -0
- package/dist/scan-logs.d.ts.map +1 -1
- package/dist/scan-logs.js +131 -78
- package/dist/scan-logs.js.map +1 -1
- package/dist/scan-measurement.d.ts +26 -0
- package/dist/scan-measurement.d.ts.map +1 -0
- package/dist/scan-measurement.js +77 -0
- package/dist/scan-measurement.js.map +1 -0
- package/dist/scan-progress.d.ts +1 -0
- package/dist/scan-progress.d.ts.map +1 -1
- package/dist/scan-progress.js +3 -0
- package/dist/scan-progress.js.map +1 -1
- package/dist/scan-sessions.d.ts.map +1 -1
- package/dist/scan-sessions.js +4 -1
- package/dist/scan-sessions.js.map +1 -1
- package/dist/scan-settings.d.ts +1 -1
- package/dist/scan-settings.d.ts.map +1 -1
- package/dist/scan-settings.js +1 -24
- package/dist/scan-settings.js.map +1 -1
- package/dist/scanner-import.d.ts +25 -13
- package/dist/scanner-import.d.ts.map +1 -1
- package/dist/scanner-import.js +216 -97
- package/dist/scanner-import.js.map +1 -1
- package/dist/scanner-repository-url.d.ts +4 -1
- package/dist/scanner-repository-url.d.ts.map +1 -1
- package/dist/scanner-repository-url.js +10 -6
- package/dist/scanner-repository-url.js.map +1 -1
- package/dist/security-policy.d.ts +1 -1
- package/dist/security-policy.d.ts.map +1 -1
- package/dist/security-policy.js +26 -6
- package/dist/security-policy.js.map +1 -1
- package/dist/semgrep-findings.d.ts +6 -3
- package/dist/semgrep-findings.d.ts.map +1 -1
- package/dist/semgrep-findings.js +72 -42
- package/dist/semgrep-findings.js.map +1 -1
- package/dist/semgrep-guardian-findings.d.ts +38 -0
- package/dist/semgrep-guardian-findings.d.ts.map +1 -0
- package/dist/semgrep-guardian-findings.js +165 -0
- package/dist/semgrep-guardian-findings.js.map +1 -0
- package/dist/semgrep-platform-collector.d.ts +26 -0
- package/dist/semgrep-platform-collector.d.ts.map +1 -0
- package/dist/semgrep-platform-collector.js +108 -0
- package/dist/semgrep-platform-collector.js.map +1 -0
- package/dist/semgrep-platform-findings.d.ts +157 -6
- package/dist/semgrep-platform-findings.d.ts.map +1 -1
- package/dist/semgrep-platform-findings.js +766 -103
- package/dist/semgrep-platform-findings.js.map +1 -1
- package/dist/server/api.d.ts +1 -1
- package/dist/server/api.d.ts.map +1 -1
- package/dist/server/api.js.map +1 -1
- package/dist/server/embedding-tokenizer.cdx.json +33 -0
- package/dist/server/embedding-tokenizer.d.ts +2 -0
- package/dist/server/embedding-tokenizer.d.ts.map +1 -0
- package/dist/server/embedding-tokenizer.js +322 -0
- package/dist/server/embedding-tokenizer.js.map +6 -0
- package/dist/server/embeddings.d.ts +16 -2
- package/dist/server/embeddings.d.ts.map +1 -1
- package/dist/server/embeddings.js +35 -5
- package/dist/server/embeddings.js.map +1 -1
- package/dist/session-lines.d.ts +5 -0
- package/dist/session-lines.d.ts.map +1 -0
- package/dist/session-lines.js +60 -0
- package/dist/session-lines.js.map +1 -0
- package/dist/severity-review.d.ts +3 -1
- package/dist/severity-review.d.ts.map +1 -1
- package/dist/severity-review.js +3 -2
- package/dist/severity-review.js.map +1 -1
- package/dist/skill-authentication.d.ts +1 -0
- package/dist/skill-authentication.d.ts.map +1 -1
- package/dist/skill-authentication.js +1 -0
- package/dist/skill-authentication.js.map +1 -1
- package/dist/snyk-findings.d.ts +9 -2
- package/dist/snyk-findings.d.ts.map +1 -1
- package/dist/snyk-findings.js +90 -70
- package/dist/snyk-findings.js.map +1 -1
- package/dist/snyk-rest-findings.d.ts +59 -0
- package/dist/snyk-rest-findings.d.ts.map +1 -0
- package/dist/snyk-rest-findings.js +879 -0
- package/dist/snyk-rest-findings.js.map +1 -0
- package/dist/snyk-token-origin.d.ts +4 -0
- package/dist/snyk-token-origin.d.ts.map +1 -0
- package/dist/snyk-token-origin.js +82 -0
- package/dist/snyk-token-origin.js.map +1 -0
- package/dist/sonar-collector.d.ts.map +1 -1
- package/dist/sonar-collector.js +0 -3
- package/dist/sonar-collector.js.map +1 -1
- package/dist/sonar-findings.d.ts +1 -1
- package/dist/sonar-findings.d.ts.map +1 -1
- package/dist/sonar-findings.js +2 -4
- package/dist/sonar-findings.js.map +1 -1
- package/dist/sonar-import.d.ts +3 -0
- package/dist/sonar-import.d.ts.map +1 -1
- package/dist/sonar-import.js +30 -34
- package/dist/sonar-import.js.map +1 -1
- package/dist/stored-finding-projection.d.ts +6 -0
- package/dist/stored-finding-projection.d.ts.map +1 -0
- package/dist/stored-finding-projection.js +104 -0
- package/dist/stored-finding-projection.js.map +1 -0
- package/dist/stored-findings-publication.d.ts +23 -0
- package/dist/stored-findings-publication.d.ts.map +1 -0
- package/dist/stored-findings-publication.js +169 -0
- package/dist/stored-findings-publication.js.map +1 -0
- package/dist/target-drift.d.ts +9 -0
- package/dist/target-drift.d.ts.map +1 -0
- package/dist/target-drift.js +27 -0
- package/dist/target-drift.js.map +1 -0
- package/dist/targets.d.ts +8 -1
- package/dist/targets.d.ts.map +1 -1
- package/dist/targets.js +131 -42
- package/dist/targets.js.map +1 -1
- package/dist/tenable-findings.d.ts +6 -0
- package/dist/tenable-findings.d.ts.map +1 -0
- package/dist/tenable-findings.js +122 -0
- package/dist/tenable-findings.js.map +1 -0
- package/dist/terminal-stream.d.ts +13 -0
- package/dist/terminal-stream.d.ts.map +1 -0
- package/dist/terminal-stream.js +35 -0
- package/dist/terminal-stream.js.map +1 -0
- package/dist/trivy-findings.d.ts +19 -0
- package/dist/trivy-findings.d.ts.map +1 -0
- package/dist/trivy-findings.js +424 -0
- package/dist/trivy-findings.js.map +1 -0
- package/dist/trivy-import.d.ts +19 -0
- package/dist/trivy-import.d.ts.map +1 -0
- package/dist/trivy-import.js +151 -0
- package/dist/trivy-import.js.map +1 -0
- package/dist/trusted-executable.d.ts +6 -0
- package/dist/trusted-executable.d.ts.map +1 -1
- package/dist/trusted-executable.js +140 -37
- package/dist/trusted-executable.js.map +1 -1
- package/dist/validation-records.js +1 -1
- package/dist/validation-records.js.map +1 -1
- package/dist/veracode-findings.d.ts +1 -1
- package/dist/veracode-findings.d.ts.map +1 -1
- package/dist/veracode-findings.js +19 -6
- package/dist/veracode-findings.js.map +1 -1
- package/dist/version.d.ts +3 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +184 -32
- package/dist/version.js.map +1 -1
- package/dist/vertex-pricing.d.ts +8 -0
- package/dist/vertex-pricing.d.ts.map +1 -0
- package/dist/vertex-pricing.js +20 -0
- package/dist/vertex-pricing.js.map +1 -0
- package/dist/windows-path.d.ts +1 -0
- package/dist/windows-path.d.ts.map +1 -1
- package/dist/windows-path.js +26 -1
- package/dist/windows-path.js.map +1 -1
- package/dist/wiz-findings.d.ts +6 -2
- package/dist/wiz-findings.d.ts.map +1 -1
- package/dist/wiz-findings.js +65 -89
- package/dist/wiz-findings.js.map +1 -1
- package/docs/classify-severity-records.md +27 -12
- package/docs/cli.md +853 -639
- package/docs/dedupe-records.md +44 -24
- package/docs/findings-service.md +84 -44
- package/docs/hosted-remediation.md +27 -11
- package/docs/hosted-scans.md +50 -42
- package/docs/sdk.md +903 -0
- package/docs/telemetry.md +236 -0
- package/docs/validate-records.md +78 -44
- package/package.json +23 -16
- package/schemas/external-findings.schema.json +4 -1
- package/_bundled_plugin/mcp/helpers.mjs.br.part-000 +0 -0
- package/_bundled_plugin/mcp/helpers.mjs.br.part-001 +0 -0
- package/_bundled_plugin/mcp/server.mjs.br.part-000 +0 -0
- package/_bundled_plugin/mcp/server.mjs.br.part-001 +0 -0
- package/_bundled_plugin/mcp/server.mjs.br.part-002 +0 -0
- package/_bundled_plugin/schemas/tools/deep-reducer.schema.json +0 -96
- package/dist/external-imports-feature.d.ts +0 -6
- package/dist/external-imports-feature.d.ts.map +0 -1
- package/dist/external-imports-feature.js +0 -51
- package/dist/external-imports-feature.js.map +0 -1
- package/dist/finding-normalization.d.ts +0 -5
- package/dist/finding-normalization.d.ts.map +0 -1
- package/dist/finding-normalization.js +0 -155
- package/dist/finding-normalization.js.map +0 -1
- package/dist/reader-selection.d.ts +0 -13
- package/dist/reader-selection.d.ts.map +0 -1
- package/dist/reader-selection.js +0 -81
- package/dist/reader-selection.js.map +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Identify the selected source checkout and paths it controls."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import stat
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def is_link(info: os.stat_result) -> bool:
|
|
9
|
+
return stat.S_ISLNK(info.st_mode) or (
|
|
10
|
+
os.name == "nt" and info.st_reparse_tag == stat.IO_REPARSE_TAG_MOUNT_POINT
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def source_root(target: Path | None) -> Path | None:
|
|
15
|
+
if target is not None and (not target.is_absolute() or not target.is_dir()):
|
|
16
|
+
raise ValueError("Select an existing absolute source directory.")
|
|
17
|
+
source = (target or Path.cwd()).resolve()
|
|
18
|
+
# A nested checkout or submodule is still part of the enclosing source tree.
|
|
19
|
+
for parent in (*reversed(source.parents), source):
|
|
20
|
+
marker = parent / ".git"
|
|
21
|
+
try:
|
|
22
|
+
info = marker.lstat()
|
|
23
|
+
if stat.S_ISDIR(info.st_mode) and not is_link(info):
|
|
24
|
+
info = (marker / "HEAD").lstat()
|
|
25
|
+
except (FileNotFoundError, NotADirectoryError):
|
|
26
|
+
continue
|
|
27
|
+
if stat.S_ISREG(info.st_mode) or is_link(info):
|
|
28
|
+
return parent
|
|
29
|
+
return source if target is not None else None
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def in_source(path: Path, source: Path | None) -> bool:
|
|
33
|
+
if source is None:
|
|
34
|
+
return False
|
|
35
|
+
if path.is_relative_to(source):
|
|
36
|
+
return True
|
|
37
|
+
identity = source.stat()
|
|
38
|
+
current = Path()
|
|
39
|
+
parts = list(reversed(path.absolute().parts))
|
|
40
|
+
active_links = set()
|
|
41
|
+
while parts:
|
|
42
|
+
part = parts.pop()
|
|
43
|
+
if isinstance(part, Path):
|
|
44
|
+
# The link target's components have all been checked.
|
|
45
|
+
active_links.remove(part)
|
|
46
|
+
continue
|
|
47
|
+
current = current.parent if part == ".." else current / part
|
|
48
|
+
if current == source:
|
|
49
|
+
return True
|
|
50
|
+
try:
|
|
51
|
+
info = current.lstat()
|
|
52
|
+
except (FileNotFoundError, NotADirectoryError):
|
|
53
|
+
continue
|
|
54
|
+
if os.path.samestat(info, identity):
|
|
55
|
+
return True
|
|
56
|
+
if is_link(info):
|
|
57
|
+
if current in active_links:
|
|
58
|
+
raise OSError(f"Symbolic link loop at {current}")
|
|
59
|
+
active_links.add(current)
|
|
60
|
+
parts.append(current)
|
|
61
|
+
parts.extend(reversed(current.readlink().parts))
|
|
62
|
+
current = current.parent
|
|
63
|
+
return False
|
|
@@ -1,58 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: security-scan
|
|
3
|
-
description: "
|
|
3
|
+
description: "Find vulnerabilities in the current source of a whole repository or selected paths. This is the default single-pass audit. Use the diff skill for PR, commit, branch, or working-tree changes and the deep skill for an explicitly requested deep scan."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Security Scan
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Find vulnerabilities an attacker could actually exploit. Start from code that accepts untrusted input or exercises authority. Follow it to the operation it controls. Check the real enforcement point, its callers, and the strongest evidence that the suspected attack is blocked. For an exposed credential, the relevant path is who can read it and what access it grants.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Use [the core audit](../../references/core-scan.md) for the independent baseline, focused investigations, and validation. Give reviewers the authorized source and security context. Keep scan administration in the parent. Report findings with source lines and concrete impact. Record what you reviewed and what remains uncertain.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
## Run the audit
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Before reading target source, bind the requested target and scope:
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
- If the SDK supplied `CODEX_SECURITY_SCAN_ID` and `CODEX_SECURITY_SCAN_DIR`, use that registered scan. Follow its launch instructions, or the [SDK handoff](references/scan-results.md) if the SDK provided no instructions.
|
|
17
|
+
- For a scan without an SDK handoff, use the managed scan tools. With a supplied scan ID, call `get_codex_security_scan_context` using its handoff token when supplied. Without a scan ID, a confirmed Codex desktop host calls `start_codex_security_prompt_only_scan` with `mode: "standard"`. Other hosts call `start_codex_security_standard_scan`. Pass the requested target, scope and exact user context. If deferred, look up just the named tool. Require a running Standard scan. Keep its target, scope, phase and token, follow the [account access advisory](../../references/access-advisory.md) only when directed at launch, and begin the source review. Use [managed scan progress](references/managed-scan.md) at the next phase change.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
Keep the target read-only and review its current source offline. Preserve exact user context as analysis data. Only the parent may read an explicitly supplied URL, once, if the user explicitly authorized that read. Do not follow links. Keep an existing investigation allowance unchanged across workers and resumes. Only if the user requests a time limit in this conversation and none was supplied, render [the time budget](../../references/investigation-time-budget.md) once before source review using the requested minutes and actual UTC start and deadline.
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
1. Resolve the authorized target, scope, scan directory, and source context. Preserve the supplied threat model, applicable inherited `SECURITY.md` guidance, and optional `CODEX_SECURITY_KNOWLEDGE_BASE`. When `CODEX_SECURITY_TARGET_PATHS_FILE` is supplied, run the SDK's primary inventory command exactly as supplied to resolve every requested file and non-ignored directory descendant before review. For `make-hosted-repo-scope-input`, use the path it reports. Run the supplied recovery command only if that inventory is missing or unreadable in a later shell. If the host does not supply an inventory command, run `<plugin_dir>/scripts/launch_codex_security_mcp --helper make-repo-scope-input --repo <repo_root> --scopes-file "$CODEX_SECURITY_TARGET_PATHS_FILE" --out <scan_dir>/scoped-source-input.jsonl` or use the [PowerShell command](#windows-scoped-input) on Windows. Pass the resulting inventory to the core audit without widening scope; do not print, modify, or evaluate the scope file.
|
|
23
|
-
2. Read `../../references/core-scan.md` and perform the audit within the resolved scope and configured limits. Retain its semantic `scope`, `threatModel`, `findings`, and `reviewState`, including source evidence, validation, attack paths, calibrated severity/confidence, and unresolved work.
|
|
24
|
-
3. Save semantic checkpoints throughout the audit as described below. For an SDK-owned scan with a bound semantic draft tool, save the first `complete: false` checkpoint as soon as the threat model is available, then checkpoint new findings and decisions and submit `complete: true` when review finishes. Without that tool, retain the model in an early unsealed canonical draft and update `scan-manifest.json` and `findings.json` using `../../references/scan-contract.md` and the SDK's exact identity and directory. Omit `scan.sealedAt` and `scan.artifacts`. Put review bookkeeping in `scan.reviewState` and set `scan.mode` to `scoped_path` for requested scopes or `repository` otherwise. On SDK file-authored paths, run the supplied scope-binding command when a target-paths file is present.
|
|
25
|
-
4. Verify both canonical JSON files exist. Return control for an SDK-owned scan; the SDK owns finalization and report generation. For other host-backed scans, call `complete_codex_security_scan({ scanId, handoffClaimToken? })` once and return after it succeeds and `report.md` exists. If completion fails, surface its exact error and preserve the scan for continuation. Do not hand-author reports or reread complete canonical findings unless requested. Report complete measured token usage only; leave pending usage to the host and identify unavailable counts.
|
|
26
|
-
|
|
27
|
-
Keep discovery, validation, and attack-path reasoning within this Standard workflow. Do not invoke separate phase skills, Deep-only tools, ranking phases, or per-file/per-candidate ledgers. Once assigned review and concrete follow-ups are settled, finish the configured audit with honest limitations rather than waiting for unspecified worker updates.
|
|
28
|
-
|
|
29
|
-
## Semantic Checkpoints
|
|
30
|
-
|
|
31
|
-
For a host-backed scan, use `record_codex_security_scan_draft({ scanId, complete, handoffClaimToken?, scope?, threatModel, findings, reviewState })`. Save a `complete: false` checkpoint as soon as the threat model is available, with no findings when none exist yet. Checkpoint new findings and decisions, then submit an accepted `complete: true` draft when review finishes. Let the host derive authoritative metadata and identities.
|
|
32
|
-
|
|
33
|
-
Preserve saved surface IDs and unfinished candidates; close completed generic tasks using `reviewState.resolvedDeferred: [{ id, reason }]` with their saved IDs. Follow `../../references/final-report.md` for rejected drafts and interrupted writes, preserving the same scan.
|
|
34
|
-
|
|
35
|
-
## Windows Scope Binding
|
|
36
|
-
|
|
37
|
-
Use the SDK-supplied command when available. For another explicitly permitted file-authored invocation, replace the placeholders below with literal paths, doubling single quotes within them. Keep the supplied scope-file environment value unchanged:
|
|
38
|
-
|
|
39
|
-
```powershell
|
|
40
|
-
$env:scopePluginRoot = Convert-Path -LiteralPath '<plugin_dir>' -ErrorAction Stop
|
|
41
|
-
$env:scopeScanDir = Convert-Path -LiteralPath '<scan_dir>' -ErrorAction Stop
|
|
42
|
-
$env:scopeTargetPaths = Convert-Path -LiteralPath $env:CODEX_SECURITY_TARGET_PATHS_FILE -ErrorAction Stop
|
|
43
|
-
cmd.exe /d /v:off /s /c '""%scopePluginRoot%\scripts\launch_codex_security_mcp.cmd" --helper bind-repo-scopes --scopes-file "%scopeTargetPaths%" --manifest "%scopeScanDir%\scan-manifest.json""'
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
These are temporary shell variables. Resolve paths against PowerShell's current location, including UNC shares. Missing paths stop the command. CMD expands these references once, preserving literal `%` and `!` in paths.
|
|
47
|
-
|
|
48
|
-
## Windows Scoped Input
|
|
49
|
-
|
|
50
|
-
Use the following PowerShell command to generate the source inventory when the host does not supply one.
|
|
51
|
-
|
|
52
|
-
```powershell
|
|
53
|
-
$env:scopePluginRoot = Convert-Path -LiteralPath '<plugin_dir>' -ErrorAction Stop
|
|
54
|
-
$env:scopeRepository = Convert-Path -LiteralPath '<repo_root>' -ErrorAction Stop
|
|
55
|
-
$env:scopeScanDir = Convert-Path -LiteralPath '<scan_dir>' -ErrorAction Stop
|
|
56
|
-
$env:scopeTargetPaths = Convert-Path -LiteralPath $env:CODEX_SECURITY_TARGET_PATHS_FILE -ErrorAction Stop
|
|
57
|
-
cmd.exe /d /v:off /s /c '""%scopePluginRoot%\scripts\launch_codex_security_mcp.cmd" --helper make-repo-scope-input --repo "%scopeRepository%\." --scopes-file "%scopeTargetPaths%" --out "%scopeScanDir%\scoped-source-input.jsonl""'
|
|
58
|
-
```
|
|
21
|
+
Start the independent audit while mapping the repository. At the first usable threat model, follow [save scan results](references/scan-results.md). Checkpoint candidates as they arrive. Once assigned reviews return, validate each distinct broken control once and submit the findings and honest coverage to the same scan. The SDK owns finalization for its scans.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "Security Scan"
|
|
3
|
-
short_description: "
|
|
4
|
-
default_prompt: "
|
|
3
|
+
short_description: "Find vulnerabilities in a repository or selected paths"
|
|
4
|
+
default_prompt: "Use $security-scan to find exploitable vulnerabilities in this repository and show the source evidence."
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Desktop scan results
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Read this only for a confirmed Codex desktop scan. Honor the handoff’s requirements for per-finding write-ups before completing the scan. After completion, link the generated report and canonical artifacts.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Resolve the target, requested scope, and exact user context. Continue a supplied `scanId` through `get_codex_security_scan_context`, passing its `handoffClaimToken` when present. Otherwise call `start_codex_security_prompt_only_scan` once with `mode: "standard"`, `targetPath`, `scope`, and optional `userContext`.
|
|
8
|
-
|
|
9
|
-
Preserve the authoritative `scan.scanId`, `scan.scanDir`, scope, exact `userContext`, and handoff token. If startup fails or returns malformed context, report the error without creating a replacement scan, opening setup, or switching to a terminal workflow.
|
|
10
|
-
|
|
11
|
-
## Progress
|
|
12
|
-
|
|
13
|
-
Use `update_codex_security_scan_progress({ scanId, handoffClaimToken, phase })` at real phase transitions: `threat_model` before mapping security boundaries, `discovery` before investigation, `validation` before validation, `attack_path` before reachability assessment, and `reporting` before final draft assembly. Preserve the current phase when work overlaps; never move backward or repeat completed work. Use returned `scan.userContext` for the new phase and its workers.
|
|
14
|
-
|
|
15
|
-
Report meaningful completed-review batches. Increase the investigator total before dispatching a new assignment; the independent baseline auditor is not part of that total. Capture completed source-backed investigations as coverage surfaces before increasing `review_receipts`. Use actual findings and artifact completion for later counts, without extra receipt files.
|
|
16
|
-
|
|
17
|
-
Model-only checkpoints preserve the current phase. Checkpoints with findings or reviewed surfaces advance to at least `discovery`; a final draft advances to `reporting`. Publish earlier transitions when they occur.
|
|
18
|
-
|
|
19
|
-
## Completion and Review Comments
|
|
20
|
-
|
|
21
|
-
Use the parent skill's semantic checkpoint and completion workflow, including any host-required write-up handoff. Link the generated report and canonical artifacts after successful completion.
|
|
22
|
-
|
|
23
|
-
For each reported finding, emit one `::code-comment{title="[<priority-label>] <title>" body="<explanation>" file="<absolute path>" start=<line> end=<line> priority=<priority-number> confidence=<0-to-1>}` at the tightest root-control location, or the most relevant source location when no root control is identifiable. Map `critical`, `high`, `medium`, and `low` to `P0/0`, `P1/1`, `P2/2`, and `P3/3`. Keep comments consistent with the generated report.
|
|
5
|
+
On desktop, emit one `::code-comment{title="[<priority-label>] <title>" body="<explanation>" file="<absolute path>" start=<line> end=<line> priority=<priority-number> confidence=<0-to-1>}` per finding at its tightest root control or most relevant affected location. Map critical, high, medium, and low to P0/0, P1/1, P2/2, and P3/3 respectively.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Start or resume a managed Standard scan
|
|
2
|
+
|
|
3
|
+
Use the bound scan’s target, scope, user context, ID, directory and token for every update. If the handoff failed or identifies a different mode, stop before source review. Resume the saved phase. For an older handoff still in preflight, advance it to `threat_model` once.
|
|
4
|
+
|
|
5
|
+
If the host supplies a target-paths file without a prepared inventory, resolve it using [scoped paths](scoped-paths.md) before review.
|
|
6
|
+
|
|
7
|
+
## During review
|
|
8
|
+
|
|
9
|
+
Advance the current scan with `update_codex_security_scan_progress` at real forward transitions. Publish `discovery` before dispatch, `validation` before checking candidates, `attack_path` before reachability assessment, and `reporting` before final assembly. Keep the current phase when work overlaps. When bound, persist user-requested context changes through `update_codex_security_scan_context` with the complete replacement and token. Use the returned `structuredContent.scan.userContext` from each progress transition for that phase and its workers.
|
|
10
|
+
|
|
11
|
+
Increase the investigator total before dispatching new assignments, excluding the independent baseline. Record completed investigations as coverage surfaces before advancing their `review_receipts` count. Advance other counts only when the corresponding work exists. Publish meaningful batches without creating receipt files.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Save results to the registered scan
|
|
2
|
+
|
|
3
|
+
When the SDK supplies only a registered environment, use `CODEX_SECURITY_REPOSITORY` as the target. If `CODEX_SECURITY_TARGET_PATHS_FILE` is set, use the supplied source inventory or [resolve it](scoped-paths.md) before review. Emit the SDK's standalone `CODEX_SECURITY_SCAN_PROGRESS {"phase":"discovery","filesCompleted":3,"filesTotal":8}` at discovery start, meaningful review batches, and later phase transitions using the actual phase, distinct completed paths and scoped total or host estimate.
|
|
4
|
+
|
|
5
|
+
For a scan with bound progress and context tools, persist user-requested context edits with the current handoff token. Use each real forward phase transition’s returned `scan.userContext` for that phase and its workers. Without a bound context tool, retain the original context.
|
|
6
|
+
|
|
7
|
+
At the first usable threat model, call `record_codex_security_scan_draft` with the scan ID, handoff token when required, `complete: false`, the model, and empty findings if none are validated yet. The workbench writes the canonical artifacts and derives target metadata and finding identities. If the SDK supplied the scan and no draft tool is bound, follow the [SDK file handoff](sdk-files.md) through completion instead. Other hosts require the draft tool.
|
|
8
|
+
|
|
9
|
+
Checkpoint returned candidates before merging or validating them. Keep their original evidence under `reviewState.deferred` until resolved. Reuse saved surface IDs. Preserve validation decisions, counterevidence, and unfinished questions as directed by the core audit. Use [artifact storage](../../../references/artifact-storage.md) for supplemental evidence. A caller-supplied custom validation handoff determines which candidates are provisional.
|
|
10
|
+
|
|
11
|
+
When assigned work finishes, submit one accepted `complete: true` draft with scope, threat model, findings, and `reviewState`. Close finished generic tasks in `reviewState.resolvedDeferred` with their saved ID and a reason. Keep unresolved work. For rejected drafts and interrupted writes, follow [Errors And Recovery](../../../references/final-report.md#errors-and-recovery).
|
|
12
|
+
|
|
13
|
+
Verify `scan-manifest.json` and `findings.json` exist. For an SDK-owned scan, return now. The SDK seals the results and generates the reports. For another managed scan, follow any [desktop handoff](desktop-scan.md) if on desktop, then call `complete_codex_security_scan` once with the same ID and token. On success, link the generated `report.md` and canonical artifacts. Retrieve full findings only if requested. Report only complete measured usage. Leave pending usage to the host and identify other incomplete counts as unavailable.
|
|
14
|
+
|
|
15
|
+
If completion fails, surface the error and preserve the durable scan. Cancel only at the user's request. Fail the scan only for a confirmed unrecoverable blocker after recovery is exhausted. Leave unfinished work resumable.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Scoped source input
|
|
2
|
+
|
|
3
|
+
For SDK scans, generate the inventory in the scan shell for both file and directory scopes. Use a prepared inventory when another host supplies one. Run a supplied inventory command as given. For `make-hosted-repo-scope-input`, use the path it reports. Run the supplied recovery command only if that path is missing or unreadable in a later shell.
|
|
4
|
+
|
|
5
|
+
For an SDK scan with a target-paths file, run the command for the current shell using the registered environment. Other hosts can pass the bound plugin, repository, scope-file and scan-directory paths as environment values for this command, or invoke the launcher with the same arguments as separate values.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
"$CODEX_SECURITY_PLUGIN_ROOT/scripts/launch_codex_security_mcp" --helper make-repo-scope-input --repo "$CODEX_SECURITY_REPOSITORY" --scopes-file "$CODEX_SECURITY_TARGET_PATHS_FILE" --out "$CODEX_SECURITY_SCAN_DIR/scoped-source-input.jsonl"
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Treat the scope file as data. Do not print, modify, or evaluate it. The inventory includes directly requested files and non-ignored descendants of requested directories. Pass it to reviewers without widening scope. For an SDK scan, immediately after the initial helper succeeds, emit the parent's standalone `CODEX_SECURITY_SCAN_PROGRESS` line with phase `discovery`, zero files completed, and the helper's reported count as the total. Emit it before reviewing any files or dispatching workers. Determine coverage from the registered scope and the files actually reviewed. If resolution fails, surface the error and stop before source review.
|
|
12
|
+
|
|
13
|
+
## Windows Scoped Input
|
|
14
|
+
|
|
15
|
+
PowerShell resolves the registered paths against its current location, including UNC shares, before calling CMD.
|
|
16
|
+
|
|
17
|
+
```powershell
|
|
18
|
+
$env:scopePluginRoot = Convert-Path -LiteralPath $env:CODEX_SECURITY_PLUGIN_ROOT -ErrorAction Stop
|
|
19
|
+
$env:scopeRepository = Convert-Path -LiteralPath $env:CODEX_SECURITY_REPOSITORY -ErrorAction Stop
|
|
20
|
+
$env:scopeScanDir = Convert-Path -LiteralPath $env:CODEX_SECURITY_SCAN_DIR -ErrorAction Stop
|
|
21
|
+
$env:scopeTargetPaths = Convert-Path -LiteralPath $env:CODEX_SECURITY_TARGET_PATHS_FILE -ErrorAction Stop
|
|
22
|
+
cmd.exe /d /v:off /s /c '""%scopePluginRoot%\scripts\launch_codex_security_mcp.cmd" --helper make-repo-scope-input --repo "%scopeRepository%\." --scopes-file "%scopeTargetPaths%" --out "%scopeScanDir%\scoped-source-input.jsonl""'
|
|
23
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SDK scans without a bound draft tool
|
|
2
|
+
|
|
3
|
+
Write unsealed `scan-manifest.json` and `findings.json` in the exact `CODEX_SECURITY_SCAN_DIR`. Put review bookkeeping in `scan.reviewState`. Save the model in an early draft even if findings are empty. Update these files at subsequent checkpoints and at the final handoff. Use [the scan contract](../../../references/scan-contract.md) for unsealed fields. Each finding needs a stable `identity.anchor`. The SDK derives final IDs and fingerprints. Use the completed-scan examples for shape only.
|
|
4
|
+
|
|
5
|
+
Use the registered `CODEX_SECURITY_SCAN_ID` and the exact SDK values for `scan.target`: `CODEX_SECURITY_TARGET_ID`, `CODEX_SECURITY_TARGET_DISPLAY_NAME`, `CODEX_SECURITY_TARGET_KIND`, and the supplied revision and snapshot digest (`CODEX_SECURITY_TARGET_REVISION`, `CODEX_SECURITY_TARGET_SNAPSHOT_DIGEST`). Omit the digest for `git_revision`. Set the producer name to `codex-security-plugin`. Omit `scan.sealedAt` and `scan.artifacts`.
|
|
6
|
+
|
|
7
|
+
For a scoped target set `scan.mode` to `scoped_path`. After writing the manifest, run the supplied scope-binding command. If the SDK supplies only the registered environment, bind the exact scope file with the command for your shell.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
"$CODEX_SECURITY_PLUGIN_ROOT/scripts/launch_codex_security_mcp" --helper bind-repo-scopes --scopes-file "$CODEX_SECURITY_TARGET_PATHS_FILE" --manifest "$CODEX_SECURITY_SCAN_DIR/scan-manifest.json"
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
In PowerShell, resolve the registered paths from the current location before calling CMD.
|
|
14
|
+
|
|
15
|
+
```powershell
|
|
16
|
+
$env:scopePluginRoot = Convert-Path -LiteralPath $env:CODEX_SECURITY_PLUGIN_ROOT -ErrorAction Stop
|
|
17
|
+
$env:scopeScanDir = Convert-Path -LiteralPath $env:CODEX_SECURITY_SCAN_DIR -ErrorAction Stop
|
|
18
|
+
$env:scopeTargetPaths = Convert-Path -LiteralPath $env:CODEX_SECURITY_TARGET_PATHS_FILE -ErrorAction Stop
|
|
19
|
+
cmd.exe /d /v:off /s /c '""%scopePluginRoot%\scripts\launch_codex_security_mcp.cmd" --helper bind-repo-scopes --scopes-file "%scopeTargetPaths%" --manifest "%scopeScanDir%\scan-manifest.json""'
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
For a whole repository set `scan.mode` to `repository`.
|
|
23
|
+
|
|
24
|
+
Verify both files exist and return control to the SDK. It generates the report and threat model and seals the scan.
|
|
@@ -16,7 +16,20 @@ def require(condition, message):
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
def validate(model, assessment_bytes: bytes):
|
|
19
|
+
"""Check the explorer graph and its citations against the assessment before rendering.
|
|
20
|
+
|
|
21
|
+
Args:
|
|
22
|
+
model (dict): Parsed explorer JSON containing the graph, scenarios, and evidence.
|
|
23
|
+
assessment_bytes (bytes): Original UTF-8 bytes used to match quotations, line ranges,
|
|
24
|
+
and the optional assessment digest. Preserve the original line endings.
|
|
25
|
+
|
|
26
|
+
Raises:
|
|
27
|
+
ValueError: A graph relationship, layout value, or evidence check fails.
|
|
28
|
+
KeyError: A required field is missing when accessed by name.
|
|
29
|
+
"""
|
|
30
|
+
|
|
19
31
|
def indexed(key, default=None):
|
|
32
|
+
"""Index a model collection by its unique, nonempty string IDs."""
|
|
20
33
|
items = model.get(key, default)
|
|
21
34
|
require(isinstance(items, list), f"{key} must be a list")
|
|
22
35
|
ids = [item.get("id") for item in items]
|
|
@@ -148,6 +161,7 @@ def validate(model, assessment_bytes: bytes):
|
|
|
148
161
|
source_roles(model.get("participants", []), "participants", participant=True)
|
|
149
162
|
|
|
150
163
|
def chain(item, scenario_id, route_id):
|
|
164
|
+
"""Return the edge IDs of a connected route after checking its assessment references."""
|
|
151
165
|
ids = item.get("edges", [])
|
|
152
166
|
require(
|
|
153
167
|
isinstance(ids, list) and ids and all(i in edges for i in ids),
|
|
@@ -163,6 +177,7 @@ def validate(model, assessment_bytes: bytes):
|
|
|
163
177
|
return ids
|
|
164
178
|
|
|
165
179
|
def applicable_routes(control, routes, sources):
|
|
180
|
+
"""Return the routes selected by both the control and any sources it targets."""
|
|
166
181
|
return [
|
|
167
182
|
route
|
|
168
183
|
for route in routes
|
|
@@ -482,6 +497,7 @@ def validate(model, assessment_bytes: bytes):
|
|
|
482
497
|
|
|
483
498
|
|
|
484
499
|
def embedded(value):
|
|
500
|
+
"""Encode a value as JSON for an HTML script element, escaping HTML delimiters."""
|
|
485
501
|
return (
|
|
486
502
|
json.dumps(value, ensure_ascii=False, allow_nan=False)
|
|
487
503
|
.replace("<", "\\u003c")
|
|
@@ -491,7 +507,10 @@ def embedded(value):
|
|
|
491
507
|
|
|
492
508
|
|
|
493
509
|
def enters_node(start, end, node):
|
|
494
|
-
"""
|
|
510
|
+
"""Return whether the segment between two (x, y) points enters the open node rectangle.
|
|
511
|
+
|
|
512
|
+
Contact with an edge or corner alone is allowed when routing a connector.
|
|
513
|
+
"""
|
|
495
514
|
enter, leave = 0, 1
|
|
496
515
|
for a, b, low, size in zip(start, end, (node["x"], node["y"]), (node["w"], node["h"])):
|
|
497
516
|
high = low + size
|
|
@@ -505,6 +524,7 @@ def enters_node(start, end, node):
|
|
|
505
524
|
|
|
506
525
|
|
|
507
526
|
def connector_warnings(model):
|
|
527
|
+
"""Yield layout warnings for diagonal end bends and connectors that enter node interiors."""
|
|
508
528
|
for edge in model["edges"]:
|
|
509
529
|
segments = [(a, b) for a, b in pairwise(edge["points"]) if a != b]
|
|
510
530
|
diagonal = [a[0] != b[0] and a[1] != b[1] for a, b in segments]
|
|
@@ -518,6 +538,7 @@ def connector_warnings(model):
|
|
|
518
538
|
|
|
519
539
|
|
|
520
540
|
def main():
|
|
541
|
+
"""Validate the assessment and model, write a self-contained HTML file, and print layout warnings."""
|
|
521
542
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
522
543
|
parser.add_argument("model", type=Path)
|
|
523
544
|
parser.add_argument("--assessment", required=True, type=Path)
|
|
@@ -6,7 +6,11 @@ Retrieve the requested content before normalization. Do not infer inaccessible t
|
|
|
6
6
|
|
|
7
7
|
By default, use the native [Atlassian](app://asdk_app_6a83901dde988191b3f3cefdcc19acfa) app for Jira. Resolve identity and site with `atlassianUserInfo` and `getAccessibleAtlassianResources`; keep that connection and site for the selected set. Ask when the source is ambiguous.
|
|
8
8
|
|
|
9
|
-
Use
|
|
9
|
+
Use `getJiraIssue` for a single issue. For collections, use `searchJiraIssuesUsingJql` and follow `nextPageToken` until `isLast` is true.
|
|
10
|
+
|
|
11
|
+
When the request includes comments, use `listJiraIssueComments` and advance `startAt` until `isLast` is true. Preserve each comment’s visibility and whether it is an internal note.
|
|
12
|
+
|
|
13
|
+
Use only read operations for intake. Discover deferred metadata through `discover` and `executeRead`.
|
|
10
14
|
|
|
11
15
|
Use natural-language search to discover a site, project, issue family, or first key from a vague request, then use JQL or exact fetches. Keep user-supplied JQL intact. Order queries you build by a stable field and preserve the JQL as provenance. Jira text search tokenizes punctuation: if an exact marker gives no results, search a stable token and filter summaries for the exact family when those fields are authorized.
|
|
12
16
|
|
|
@@ -16,7 +20,7 @@ For Linear, use the native app by default. If the user selects an authenticated
|
|
|
16
20
|
|
|
17
21
|
## Linear parents and sub-issues
|
|
18
22
|
|
|
19
|
-
Fetch the supplied parent.
|
|
23
|
+
Fetch the supplied parent. For requested sub-issues, use `list_issues` with `parentId` and follow every page of direct children. Repeat for each parent at deeper requested levels.
|
|
20
24
|
|
|
21
25
|
Honor the requested collection scope across depths. If it is unclear whether descendants are included, show the available set and clarify once rather than asking at every level. Fetch each selected issue's full content before triage.
|
|
22
26
|
|
package/bin/codex-security.mjs
CHANGED
|
@@ -11,8 +11,8 @@ async function launch() {
|
|
|
11
11
|
throw new Error("Cannot resolve CLI entrypoint.");
|
|
12
12
|
}
|
|
13
13
|
const cli = join(dirname(realpathSync(entrypoint)), "..", "dist", "cli.js");
|
|
14
|
-
const {
|
|
15
|
-
return await
|
|
14
|
+
const { runCli } = await import(pathToFileURL(cli).href);
|
|
15
|
+
return await runCli();
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
void launch().then(
|
package/dist/api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { VerificationModeSchema } from "./remediation.js";
|
|
4
4
|
import { CodexLoginHandle, type AccountStatus } from "./auth.js";
|
|
5
5
|
import { type CodexSecurityConfig, type JsonObject, type ScanModelConfiguration } from "./config.js";
|
|
6
|
-
import { type ScanCost, type ScanSessionEvent, type ScanUsageObservation, type ScanWorkerEvent } from "./cost.js";
|
|
6
|
+
import { type ScanCost, type ScanUsageMeasurement, type ScanSessionEvent, type ScanUsageObservation, type ScanWorkerEvent } from "./cost.js";
|
|
7
7
|
import type { ScanTokenUsage } from "./cost-model.js";
|
|
8
8
|
import { type DeepScanProgress } from "./scan-progress.js";
|
|
9
9
|
import { type SeverityRubricSnapshot } from "./severity-rubric.js";
|
|
@@ -15,8 +15,37 @@ import { ScanResult } from "./result.js";
|
|
|
15
15
|
import { type SecurityPolicyDraft, type SecurityPolicyOptions, type SecurityPolicyPreflight } from "./security-policy.js";
|
|
16
16
|
import { type ScanActivity } from "./scan-activity.js";
|
|
17
17
|
import { type ScanProgress, type ScanWorkerStatus } from "./worker-progress.js";
|
|
18
|
+
import { type OperationTelemetryEvent } from "./operation-telemetry.js";
|
|
19
|
+
import { definedEnvironment } from "./codex-sdk-environment.js";
|
|
18
20
|
import { importAmbientAuth, type ProcessEnvironment } from "./runtime.js";
|
|
19
21
|
import { type NormalizedTarget, type ScanMode } from "./targets.js";
|
|
22
|
+
declare const scanLifecycleSchema: z.ZodObject<{
|
|
23
|
+
scanId: z.ZodString;
|
|
24
|
+
mode: z.ZodEnum<{
|
|
25
|
+
deep: "deep";
|
|
26
|
+
diff: "diff";
|
|
27
|
+
import: "import";
|
|
28
|
+
standard: "standard";
|
|
29
|
+
}>;
|
|
30
|
+
startedAt: z.ZodString;
|
|
31
|
+
status: z.ZodEnum<{
|
|
32
|
+
canceled: "canceled";
|
|
33
|
+
completed: "completed";
|
|
34
|
+
failed: "failed";
|
|
35
|
+
running: "running";
|
|
36
|
+
}>;
|
|
37
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
38
|
+
hasReportableFindings: z.ZodNullable<z.ZodBoolean>;
|
|
39
|
+
surface: z.ZodNullable<z.ZodEnum<{
|
|
40
|
+
cli: "cli";
|
|
41
|
+
plugin: "plugin";
|
|
42
|
+
sdk: "sdk";
|
|
43
|
+
}>>;
|
|
44
|
+
packageVersion: z.ZodNullable<z.ZodString>;
|
|
45
|
+
pluginVersion: z.ZodNullable<z.ZodString>;
|
|
46
|
+
mock: z.ZodNullable<z.ZodBoolean>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type ScanLifecycle = Readonly<z.infer<typeof scanLifecycleSchema>>;
|
|
20
49
|
export interface ScanOptions extends ScanSettings {
|
|
21
50
|
/** Explicit policy for the initial scan and its workers. */
|
|
22
51
|
severityRubric?: SeverityRubricSnapshot;
|
|
@@ -32,6 +61,10 @@ export interface ScanOptions extends ScanSettings {
|
|
|
32
61
|
parentScanId?: string;
|
|
33
62
|
expectedPluginVersion?: string;
|
|
34
63
|
onCost?: (cost: Readonly<ScanCost>, maxCostUsd?: number) => void;
|
|
64
|
+
/** Observed subtotals and coverage changes, including loss of completeness. */
|
|
65
|
+
onMeasurement?: (measurement: Readonly<ScanUsageMeasurement>) => void;
|
|
66
|
+
/** Content-free local operation receipts. Hosts own remote export and acknowledgement. */
|
|
67
|
+
onTelemetry?: (event: Readonly<OperationTelemetryEvent>) => void;
|
|
35
68
|
/** Observed tokens, including models without a price estimate. */
|
|
36
69
|
onUsage?: (usage: Readonly<ScanTokenUsage>) => void;
|
|
37
70
|
/** The last reportable token total's measurement time and latest account limits from this scan's sessions. */
|
|
@@ -39,6 +72,9 @@ export interface ScanOptions extends ScanSettings {
|
|
|
39
72
|
onBudgetApproaching?: (budget: ScanBudget) => number | undefined | Promise<number | undefined>;
|
|
40
73
|
onOutputArchived?: (archiveDir: string) => void;
|
|
41
74
|
onOutputDirReady?: (scanDir: string) => void;
|
|
75
|
+
/** Best-effort snapshots at fresh registration and observed terminal state.
|
|
76
|
+
* Resume preserves the scan ID and only reports a terminal outcome. */
|
|
77
|
+
onLifecycle?: (scan: ScanLifecycle) => void;
|
|
42
78
|
onAuthentication?: (authentication: ScanAuthentication) => void;
|
|
43
79
|
onTrustedAccessStatus?: (status: ScanTrustedAccessStatus) => void;
|
|
44
80
|
onScanStarted?: () => void;
|
|
@@ -61,7 +97,7 @@ export interface ScanOptions extends ScanSettings {
|
|
|
61
97
|
onObserverError?: (observer: ScanObserverName, error: unknown) => void;
|
|
62
98
|
signal?: AbortSignal;
|
|
63
99
|
}
|
|
64
|
-
export interface ValidationOptions extends Pick<ScanOptions, "auth" | "cyberAccessProgram" | "knowledgeBasePaths" | "outputDir" | "safetyIdentifier" | "signal"> {
|
|
100
|
+
export interface ValidationOptions extends Pick<ScanOptions, "auth" | "cyberAccessProgram" | "knowledgeBasePaths" | "outputDir" | "safetyIdentifier" | "signal" | "onTelemetry" | "onObserverError"> {
|
|
65
101
|
repositoryPath: string;
|
|
66
102
|
/** Finding text or a JSON-serializable object. Strings are never file paths. */
|
|
67
103
|
finding: string | object;
|
|
@@ -79,7 +115,7 @@ export interface ValidationResult extends z.infer<typeof validationResponseSchem
|
|
|
79
115
|
outputDir: string;
|
|
80
116
|
threadId: string | null;
|
|
81
117
|
}
|
|
82
|
-
export interface PatchOptions extends Pick<ScanOptions, "auth" | "safetyIdentifier" | "signal" | "onAuthentication" | "onActivity" | "onSessionEvent" | "onCost" | "onReconnect" | "onWarning" | "onObserverError"> {
|
|
118
|
+
export interface PatchOptions extends Pick<ScanOptions, "auth" | "safetyIdentifier" | "signal" | "onAuthentication" | "onActivity" | "onSessionEvent" | "onCost" | "onMeasurement" | "onTelemetry" | "onReconnect" | "onWarning" | "onObserverError"> {
|
|
83
119
|
repositoryPath: string;
|
|
84
120
|
/** Finding text or a JSON-serializable object. Strings are never file paths. */
|
|
85
121
|
finding: string | object;
|
|
@@ -146,7 +182,7 @@ export interface ScanBudget {
|
|
|
146
182
|
cost: Readonly<ScanCost>;
|
|
147
183
|
signal: AbortSignal;
|
|
148
184
|
}
|
|
149
|
-
type ScanObserverName = "onAuthentication" | "onCost" | "onUsage" | "onUsageObservation" | "onOutputArchived" | "onOutputDirReady" | "onScanRegistered" | "onScanStarted" | "onTrustedAccessStatus" | "onReconnect" | "onActivity" | "onSessionEvent" | "onProgress" | "onDeepProgress" | "onWorkerStatus" | "onWorkerEvent" | "onStage" | "onWarning";
|
|
185
|
+
type ScanObserverName = "onAuthentication" | "onCost" | "onUsage" | "onMeasurement" | "onTelemetry" | "onUsageObservation" | "onOutputArchived" | "onOutputDirReady" | "onScanRegistered" | "onLifecycle" | "onScanStarted" | "onTrustedAccessStatus" | "onReconnect" | "onActivity" | "onSessionEvent" | "onProgress" | "onDeepProgress" | "onWorkerStatus" | "onWorkerEvent" | "onStage" | "onWarning";
|
|
150
186
|
export interface ScanPreflight extends DeepScanOptions, ScanModelConfiguration {
|
|
151
187
|
maxTimeMinutes?: number;
|
|
152
188
|
repository: string;
|
|
@@ -154,6 +190,7 @@ export interface ScanPreflight extends DeepScanOptions, ScanModelConfiguration {
|
|
|
154
190
|
mode: ScanMode;
|
|
155
191
|
knowledgeBasePaths?: string[];
|
|
156
192
|
outputDir: string | null;
|
|
193
|
+
stateDirectory?: string;
|
|
157
194
|
archiveDir?: string;
|
|
158
195
|
authentication: ScanAuthentication;
|
|
159
196
|
modelProvider?: string;
|
|
@@ -189,7 +226,9 @@ export declare class CodexSecurity {
|
|
|
189
226
|
close(): Promise<void>;
|
|
190
227
|
[Symbol.asyncDispose](): Promise<void>;
|
|
191
228
|
}
|
|
192
|
-
export declare function listRepositoryFindings(workbench: (args: readonly string[]) => Promise<JsonObject>,
|
|
229
|
+
export declare function listRepositoryFindings(workbench: (args: readonly string[]) => Promise<JsonObject>, target: string | {
|
|
230
|
+
repository: string;
|
|
231
|
+
}, status?: "open" | "all"): Promise<JsonObject[] | undefined>;
|
|
193
232
|
export declare function createSecurity(config?: CodexSecurityConfig): CodexSecurity;
|
|
194
233
|
export declare function scanCodexHome(environment: ProcessEnvironment): string;
|
|
195
234
|
export declare function initialCredentialsAvailable(environment: ProcessEnvironment, ambientHome: string, isolatedHome: string, importer?: typeof importAmbientAuth): Promise<boolean>;
|
|
@@ -199,5 +238,6 @@ export declare function formatEnvironmentVariableRemovalGuidance(names: readonly
|
|
|
199
238
|
export declare function classifyConnectionFailure(error: unknown): "rate_limited" | "unauthorized" | "forbidden" | "network_error" | "timeout" | "unknown";
|
|
200
239
|
export declare function scanRuntimeCodexConfig(config: JsonObject, protectedCredentialHome?: string): JsonObject;
|
|
201
240
|
export declare function scanPreflightCodexConfig(config: JsonObject): JsonObject;
|
|
241
|
+
export { definedEnvironment };
|
|
202
242
|
export declare function environmentValue(environment: ProcessEnvironment, requested: string): string | undefined;
|
|
203
243
|
//# sourceMappingURL=api.d.ts.map
|
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";AAgDA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAEL,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAS1B,OAAO,EAKL,gBAAgB,EAKhB,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AAMnB,OAAO,EAkBL,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,sBAAsB,EAE5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,oBAAoB,EAEzB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACrB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAsB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE1E,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAShF,OAAO,EAKL,KAAK,sBAAsB,EAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAIL,KAAK,eAAe,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKL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