0sec-cli 0.21.4 → 0.22.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/0.js +56 -56
- package/README.md +48 -63
- package/chunks/{adapt-loop-IGBRQAXO.js → adapt-loop-J6QCZZTB.js} +4 -4
- package/chunks/{artifact-scraper-LNQJUORS.js → artifact-scraper-MFKT6OI4.js} +2 -2
- package/chunks/{assumption-mining-4MJTP6H5.js → assumption-mining-646LYSJY.js} +16 -16
- package/chunks/{chunk-Z3IKZX3X.js → chunk-23DG5YKS.js} +1 -1
- package/chunks/{chunk-2WSXFFJZ.js → chunk-3E2KALZ5.js} +2 -2
- package/chunks/{chunk-TF46UWFU.js → chunk-4G7OVYJX.js} +1 -1
- package/chunks/{chunk-E2UOY5PJ.js → chunk-5BTJMINS.js} +12 -70
- package/chunks/{chunk-QZVG3BG4.js → chunk-5IBCBQEH.js} +1 -2
- package/chunks/{chunk-YA4PUM4H.js → chunk-7XCKYNLO.js} +1 -1
- package/chunks/{chunk-BACXRTQ4.js → chunk-AV2LG2L7.js} +87 -767
- package/chunks/{chunk-IMGWPNQM.js → chunk-BCSRRQG5.js} +76 -593
- package/chunks/{chunk-NOPBXZUV.js → chunk-BOUGKEKA.js} +1 -1
- package/chunks/{chunk-RF5QGKLR.js → chunk-CPWA6RWE.js} +3 -3
- package/chunks/{chunk-P6YG6TEZ.js → chunk-DKSCN2AB.js} +1 -1
- package/chunks/{chunk-YPOA3W4O.js → chunk-GOEA3NW6.js} +877 -110
- package/chunks/{chunk-ANDKY54G.js → chunk-HHPWRY2M.js} +4019 -7299
- package/chunks/{chunk-NDJU5ZZ7.js → chunk-IFME676H.js} +3 -3
- package/chunks/{chunk-HBKCGJAV.js → chunk-IVQV574Y.js} +1 -1
- package/chunks/{chunk-W4JOXE4N.js → chunk-IXT64DV5.js} +709 -1929
- package/chunks/{chunk-PC6RCKQV.js → chunk-KAU6NLGP.js} +59 -26
- package/chunks/{chunk-FAH6V4QM.js → chunk-LGCASF2C.js} +1117 -2291
- package/chunks/{chunk-CAJJRUTV.js → chunk-NLH4LMWH.js} +1 -1
- package/chunks/chunk-OHHCGDJ2.js +5523 -0
- package/chunks/{chunk-YHWWF4QY.js → chunk-OSBPGWTE.js} +3 -3
- package/chunks/{chunk-G34QP2XW.js → chunk-TM74SSHC.js} +1 -1
- package/chunks/{chunk-VOAXLO4A.js → chunk-TO35Y326.js} +5 -721
- package/chunks/{chunk-FWAYJ2IV.js → chunk-TV27OWIW.js} +8 -8
- package/chunks/chunk-UELXHK2Y.js +1950 -0
- package/chunks/{chunk-CL5KAUM6.js → chunk-V6GHX34G.js} +274 -8
- package/chunks/{chunk-WZISK5VC.js → chunk-VWITLWXB.js} +53 -7
- package/chunks/{chunk-ER3SUMYJ.js → chunk-W6UWZFKL.js} +0 -195
- package/chunks/chunk-WSDDGFA6.js +114 -0
- package/chunks/{chunk-5T6D5BVY.js → chunk-WZRVS7SB.js} +1 -1
- package/chunks/chunk-X7LAEEUW.js +2143 -0
- package/chunks/chunk-XA2O4WXA.js +1228 -0
- package/chunks/{chunk-Y5H6E24H.js → chunk-XCISCI4T.js} +1 -1
- package/chunks/{chunk-WPQLBN4S.js → chunk-XDKB2P5X.js} +1 -1
- package/chunks/{chunk-SBMB4OL3.js → chunk-YL6YAGLL.js} +62 -8
- package/chunks/{chunk-O6SD4A36.js → chunk-ZKQ2I3S2.js} +1 -1
- package/chunks/{codex-models-TYYV4JNN.js → codex-models-NHQW45SO.js} +5 -3
- package/chunks/{commands-WF5RG4I2.js → commands-N6GN5SBF.js} +2152 -3643
- package/chunks/{db-U3WQZVAO.js → db-5IWEJUYV.js} +3 -3
- package/chunks/{disclose-67GZCDBO.js → disclose-LDNKAVRH.js} +10 -8
- package/chunks/{dist-ACC3DZUZ.js → dist-BS4CY4RG.js} +3 -1
- package/chunks/{dist-EVTN3UTT.js → dist-FSS7MBDF.js} +2 -2
- package/chunks/{dist-F6X62TQK.js → dist-L3XJWWZ6.js} +225 -192
- package/chunks/{eval-runner-SA6OUGHZ.js → eval-runner-EMEGF24P.js} +11 -11
- package/chunks/{exploit-agent-36Q7XQFP.js → exploit-agent-KW4EB7BE.js} +1 -1
- package/chunks/{exploit-autoclimb-J4OTSTZ6.js → exploit-autoclimb-CXJ2ERRO.js} +1 -1
- package/chunks/{exploit-climb-PYEJDIC4.js → exploit-climb-TJWLY4XC.js} +2 -2
- package/chunks/fix-UUKPXCFB.js +26 -0
- package/chunks/{harness-GDUMKGSE.js → harness-C5HOKIEV.js} +3 -3
- package/chunks/{hunt-scan-UDJSCISU.js → hunt-scan-KZZ444V2.js} +14 -14
- package/chunks/{identity-JTIVJSV7.js → identity-62SVRW4H.js} +1 -1
- package/chunks/{kernel-primitive-F2IXUFAX.js → kernel-primitive-Z77IR7YS.js} +2 -2
- package/chunks/{kernel-vm-runner-276LHIOV.js → kernel-vm-runner-JW77P276.js} +2 -2
- package/chunks/{memsafety-scan-NHUOGTEX.js → memsafety-scan-FCPAXIZE.js} +2 -2
- package/chunks/{native-loop-3BSYVDUI.js → native-loop-P6P5GYVJ.js} +10 -10
- package/chunks/{npm-detectors-VIYJXKFQ.js → npm-detectors-Z2ZIQCN4.js} +2 -2
- package/chunks/orchestrate-DWWUT5RC.js +58 -0
- package/chunks/{process-PNMC36JI.js → process-N245QIQG.js} +1 -4
- package/chunks/{run-CBGE6DRQ.js → run-GAFKBCTN.js} +14935 -17598
- package/chunks/{runtime-PXO5G6UV.js → runtime-H7YBR5IZ.js} +4 -5
- package/chunks/{scope-NJHIDDTN.js → scope-QWY4VQZ7.js} +4 -1
- package/chunks/{session-store-46WBZM22.js → session-store-XIDFGG7K.js} +2 -2
- package/chunks/{variant-candidates-UH2WC2HA.js → variant-candidates-7D4F5E4H.js} +3 -3
- package/chunks/{web-recon-prepass-SFXU44SS.js → web-recon-prepass-VXXBPDAV.js} +3 -3
- package/cli-path-traversal-fixture.js +352 -0
- package/dashboard/assets/bot-Bg1Tp9_d.js +1 -0
- package/dashboard/assets/dist-B_dDCPbu.js +1 -0
- package/dashboard/assets/findings-page-mayGhNx6.js +5 -0
- package/dashboard/assets/format--susmHX7.js +1 -0
- package/dashboard/assets/input-TuVPR3Zl.js +1 -0
- package/dashboard/assets/jsx-runtime-MGseXjj5.js +3 -0
- package/dashboard/assets/live-page-HWWHX99U.js +1 -0
- package/dashboard/assets/meta-tile-ckHo-w7k.js +1 -0
- package/dashboard/assets/operations-BxZ0OoXO.js +10 -0
- package/dashboard/assets/operations-app-D3d35rgo.js +46 -0
- package/dashboard/assets/overview-page-W_4IteEr.js +1 -0
- package/dashboard/assets/page-header-Bw9AJgBV.js +1 -0
- package/dashboard/assets/scans-page-CgzVXHnn.js +1 -0
- package/dashboard/assets/siren-KQj8QAnJ.js +1 -0
- package/dashboard/assets/table-8EDklulN.js +1 -0
- package/dashboard/assets/tabs-CFHPOwg8.js +1 -0
- package/dashboard/index.html +2 -3
- package/node_modules/node-addon-api/LICENSE.md +9 -0
- package/node_modules/node-addon-api/README.md +95 -0
- package/node_modules/node-addon-api/common.gypi +21 -0
- package/node_modules/node-addon-api/except.gypi +25 -0
- package/node_modules/node-addon-api/index.js +14 -0
- package/node_modules/node-addon-api/napi-inl.deprecated.h +186 -0
- package/node_modules/node-addon-api/napi-inl.h +7250 -0
- package/node_modules/node-addon-api/napi.h +3463 -0
- package/node_modules/node-addon-api/node_addon_api.gyp +42 -0
- package/node_modules/node-addon-api/node_api.gyp +9 -0
- package/node_modules/node-addon-api/noexcept.gypi +26 -0
- package/node_modules/node-addon-api/nothing.c +0 -0
- package/node_modules/node-addon-api/package-support.json +21 -0
- package/node_modules/node-addon-api/package.json +481 -0
- package/node_modules/node-addon-api/tools/README.md +73 -0
- package/node_modules/node-addon-api/tools/check-napi.js +99 -0
- package/node_modules/node-addon-api/tools/clang-format.js +71 -0
- package/node_modules/node-addon-api/tools/conversion.js +301 -0
- package/node_modules/node-gyp-build/LICENSE +21 -0
- package/node_modules/node-gyp-build/README.md +58 -0
- package/node_modules/node-gyp-build/SECURITY.md +5 -0
- package/node_modules/node-gyp-build/bin.js +84 -0
- package/node_modules/node-gyp-build/build-test.js +19 -0
- package/node_modules/node-gyp-build/index.js +6 -0
- package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
- package/node_modules/node-gyp-build/optional.js +7 -0
- package/node_modules/node-gyp-build/package.json +43 -0
- package/node_modules/tree-sitter/LICENSE +21 -0
- package/node_modules/tree-sitter/README.md +90 -0
- package/node_modules/tree-sitter/binding.gyp +76 -0
- package/node_modules/tree-sitter/index.js +895 -0
- package/node_modules/tree-sitter/package.json +62 -0
- package/node_modules/tree-sitter/prebuilds/darwin-arm64/tree-sitter.node +0 -0
- package/node_modules/tree-sitter/prebuilds/darwin-x64/tree-sitter.node +0 -0
- package/node_modules/tree-sitter/prebuilds/linux-x64/tree-sitter.node +0 -0
- package/node_modules/tree-sitter/prebuilds/win32-x64/tree-sitter.node +0 -0
- package/node_modules/tree-sitter/src/addon_data.h +47 -0
- package/node_modules/tree-sitter/src/binding.cc +35 -0
- package/node_modules/tree-sitter/src/conversions.cc +140 -0
- package/node_modules/tree-sitter/src/conversions.h +22 -0
- package/node_modules/tree-sitter/src/language.cc +106 -0
- package/node_modules/tree-sitter/src/language.h +17 -0
- package/node_modules/tree-sitter/src/logger.cc +70 -0
- package/node_modules/tree-sitter/src/logger.h +19 -0
- package/node_modules/tree-sitter/src/lookaheaditerator.cc +122 -0
- package/node_modules/tree-sitter/src/lookaheaditerator.h +33 -0
- package/node_modules/tree-sitter/src/node.cc +1056 -0
- package/node_modules/tree-sitter/src/node.h +30 -0
- package/node_modules/tree-sitter/src/parser.cc +298 -0
- package/node_modules/tree-sitter/src/parser.h +35 -0
- package/node_modules/tree-sitter/src/query.cc +383 -0
- package/node_modules/tree-sitter/src/query.h +39 -0
- package/node_modules/tree-sitter/src/tree.cc +307 -0
- package/node_modules/tree-sitter/src/tree.h +45 -0
- package/node_modules/tree-sitter/src/tree_cursor.cc +213 -0
- package/node_modules/tree-sitter/src/tree_cursor.h +52 -0
- package/node_modules/tree-sitter/tree-sitter.d.ts +211 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/LICENSE +21 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/README.md +21 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/README.md +6 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +1266 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +48 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +41 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +290 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +68 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +146 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +11 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +501 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +36 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +21 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +221 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +299 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +52 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +419 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +49 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +14 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +774 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +2151 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +230 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +62 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +4134 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +34 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +95 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +899 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +133 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +1060 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +382 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +165 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +31 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +714 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +48 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +414 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +29 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +448 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +1 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +733 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +881 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +50 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +23 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +109 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +1294 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +1823 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +31 -0
- package/node_modules/tree-sitter/vendor/tree-sitter/test/fixtures/grammars/.gitkeep +0 -0
- package/node_modules/tree-sitter-c/LICENSE +21 -0
- package/node_modules/tree-sitter-c/README.md +18 -0
- package/node_modules/tree-sitter-c/binding.gyp +20 -0
- package/node_modules/tree-sitter-c/bindings/node/binding.cc +20 -0
- package/node_modules/tree-sitter-c/bindings/node/index.d.ts +28 -0
- package/node_modules/tree-sitter-c/bindings/node/index.js +7 -0
- package/node_modules/tree-sitter-c/grammar.js +1463 -0
- package/node_modules/tree-sitter-c/package.json +108 -0
- package/node_modules/tree-sitter-c/prebuilds/darwin-arm64/tree-sitter-c.node +0 -0
- package/node_modules/tree-sitter-c/prebuilds/darwin-x64/tree-sitter-c.node +0 -0
- package/node_modules/tree-sitter-c/prebuilds/linux-x64/tree-sitter-c.node +0 -0
- package/node_modules/tree-sitter-c/prebuilds/win32-x64/tree-sitter-c.node +0 -0
- package/node_modules/tree-sitter-c/queries/highlights.scm +81 -0
- package/node_modules/tree-sitter-c/queries/tags.scm +9 -0
- package/node_modules/tree-sitter-c/src/grammar.json +9682 -0
- package/node_modules/tree-sitter-c/src/node-types.json +4556 -0
- package/node_modules/tree-sitter-c/src/parser.c +113852 -0
- package/node_modules/tree-sitter-c/src/tree_sitter/alloc.h +54 -0
- package/node_modules/tree-sitter-c/src/tree_sitter/array.h +290 -0
- package/node_modules/tree-sitter-c/src/tree_sitter/parser.h +265 -0
- package/package.json +10 -3
- package/vendor/tree-sitter-0.21.1-node24.json +16 -0
- package/vendor/tree-sitter-0.21.1-node24.tgz +0 -0
- package/chunks/chunk-CGHCEN7W.js +0 -169
- package/chunks/chunk-CXKDWFNO.js +0 -102
- package/chunks/chunk-GIQKESMN.js +0 -687
- package/chunks/chunk-HPQZHOIU.js +0 -67
- package/chunks/chunk-PD2BBBKT.js +0 -245
- package/chunks/chunk-WF5W75WY.js +0 -1070
- package/chunks/fix-J2KBRJDV.js +0 -12
- package/chunks/orchestrate-DHBFRTSI.js +0 -59
- package/chunks/replay-runner-LK2XFIVG.js +0 -39
- package/dashboard/assets/bot-yILPnRgD.js +0 -1
- package/dashboard/assets/chevron-down-BeDJ-Vka.js +0 -1
- package/dashboard/assets/circle-alert-BEnMBMT-.js +0 -1
- package/dashboard/assets/client-DRYsuOGl.js +0 -9
- package/dashboard/assets/copy-Bi5vzoF9.js +0 -1
- package/dashboard/assets/desktop-BT7RkC4q.js +0 -32
- package/dashboard/assets/desktop-OaBI0E0e.css +0 -1
- package/dashboard/assets/dist-CmX-h7a4.js +0 -1
- package/dashboard/assets/dist-DAwYQmf_.js +0 -45
- package/dashboard/assets/findings-page-B4rwF6fZ.js +0 -5
- package/dashboard/assets/format-LNQSSpn6.js +0 -1
- package/dashboard/assets/jsx-runtime-C7oxC63R.js +0 -1
- package/dashboard/assets/live-page-DoNwpPAO.js +0 -1
- package/dashboard/assets/meta-tile-BMtBC-Qq.js +0 -1
- package/dashboard/assets/operations-app-ER0gg7GN.js +0 -2
- package/dashboard/assets/operations-e2CGYKB1.js +0 -4
- package/dashboard/assets/overview-page-CmeWH17A.js +0 -1
- package/dashboard/assets/page-header-CIJyycfz.js +0 -1
- package/dashboard/assets/play-Dwo-9xt6.js +0 -1
- package/dashboard/assets/scans-page-CuhzWhHx.js +0 -1
- package/dashboard/assets/search-CiooTLck.js +0 -1
- package/dashboard/assets/siren-CCBwTSuk.js +0 -1
- package/dashboard/assets/table-BgsSBdke.js +0 -1
- package/dashboard/assets/tabs-vn6v7Bk6.js +0 -1
- package/dashboard/desktop.html +0 -21
package/0.js
CHANGED
|
@@ -3,8 +3,9 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
Command,
|
|
6
|
+
launchConfiguredWorkbench,
|
|
6
7
|
runStartupUpdate
|
|
7
|
-
} from "./chunks/chunk-
|
|
8
|
+
} from "./chunks/chunk-V6GHX34G.js";
|
|
8
9
|
import {
|
|
9
10
|
resolveEngagement,
|
|
10
11
|
setHerdrSink
|
|
@@ -15,67 +16,64 @@ import {
|
|
|
15
16
|
installProcessPresentationStreamBridge,
|
|
16
17
|
maybeLoadCodexAuth,
|
|
17
18
|
presentationEventBus
|
|
18
|
-
} from "./chunks/chunk-
|
|
19
|
-
import {
|
|
20
|
-
source_default
|
|
21
|
-
} from "./chunks/chunk-HLFS6WV2.js";
|
|
19
|
+
} from "./chunks/chunk-GOEA3NW6.js";
|
|
22
20
|
import {
|
|
23
21
|
createHerdrEventSink,
|
|
24
22
|
maybeSubscribeOperationalEventSink
|
|
25
|
-
} from "./chunks/chunk-
|
|
26
|
-
import "./chunks/chunk-
|
|
27
|
-
import
|
|
28
|
-
|
|
23
|
+
} from "./chunks/chunk-LGCASF2C.js";
|
|
24
|
+
import "./chunks/chunk-XCISCI4T.js";
|
|
25
|
+
import {
|
|
26
|
+
source_default
|
|
27
|
+
} from "./chunks/chunk-HLFS6WV2.js";
|
|
29
28
|
import "./chunks/chunk-QCUFBVIZ.js";
|
|
30
|
-
import "./chunks/chunk-
|
|
31
|
-
import "./chunks/chunk-
|
|
29
|
+
import "./chunks/chunk-3E2KALZ5.js";
|
|
30
|
+
import "./chunks/chunk-TM74SSHC.js";
|
|
32
31
|
import "./chunks/chunk-2WNCI664.js";
|
|
33
|
-
import "./chunks/chunk-
|
|
32
|
+
import "./chunks/chunk-23DG5YKS.js";
|
|
34
33
|
import "./chunks/chunk-DQTNI3KY.js";
|
|
35
|
-
import "./chunks/chunk-
|
|
36
|
-
import "./chunks/chunk-
|
|
37
|
-
import "./chunks/chunk-
|
|
34
|
+
import "./chunks/chunk-7XCKYNLO.js";
|
|
35
|
+
import "./chunks/chunk-ZKQ2I3S2.js";
|
|
36
|
+
import "./chunks/chunk-CPWA6RWE.js";
|
|
37
|
+
import "./chunks/chunk-4G7OVYJX.js";
|
|
38
38
|
import "./chunks/chunk-AZ7L3HFD.js";
|
|
39
|
-
import "./chunks/chunk-
|
|
40
|
-
import "./chunks/chunk-
|
|
41
|
-
import
|
|
42
|
-
analyticsPipeline,
|
|
43
|
-
configureRunContributionsFromEnvironment
|
|
44
|
-
} from "./chunks/chunk-ANDKY54G.js";
|
|
45
|
-
import "./chunks/chunk-CAJJRUTV.js";
|
|
39
|
+
import "./chunks/chunk-OSBPGWTE.js";
|
|
40
|
+
import "./chunks/chunk-5BTJMINS.js";
|
|
41
|
+
import "./chunks/chunk-HHPWRY2M.js";
|
|
46
42
|
import "./chunks/chunk-K2PWUPUI.js";
|
|
47
|
-
import "./chunks/chunk-
|
|
43
|
+
import "./chunks/chunk-YL6YAGLL.js";
|
|
48
44
|
import "./chunks/chunk-2OQOQ2FZ.js";
|
|
49
45
|
import "./chunks/chunk-UEX7PFSE.js";
|
|
50
|
-
import "./chunks/chunk-
|
|
51
|
-
import "./chunks/chunk-
|
|
52
|
-
import "./chunks/chunk-
|
|
53
|
-
import "./chunks/chunk-WF5W75WY.js";
|
|
54
|
-
import "./chunks/chunk-QZVG3BG4.js";
|
|
55
|
-
import "./chunks/chunk-SQCBHFWN.js";
|
|
56
|
-
import "./chunks/chunk-NDJU5ZZ7.js";
|
|
57
|
-
import "./chunks/chunk-ER3SUMYJ.js";
|
|
46
|
+
import "./chunks/chunk-NLH4LMWH.js";
|
|
47
|
+
import "./chunks/chunk-WZRVS7SB.js";
|
|
48
|
+
import "./chunks/chunk-XA2O4WXA.js";
|
|
58
49
|
import {
|
|
50
|
+
analyticsPipeline,
|
|
51
|
+
configureRunContributionsFromEnvironment,
|
|
59
52
|
eventBus,
|
|
60
|
-
maybeSubscribeCloudEventSink,
|
|
61
53
|
presentationEventSink
|
|
62
|
-
} from "./chunks/chunk-
|
|
54
|
+
} from "./chunks/chunk-OHHCGDJ2.js";
|
|
55
|
+
import "./chunks/chunk-SQCBHFWN.js";
|
|
56
|
+
import "./chunks/chunk-GVD6SJGH.js";
|
|
57
|
+
import "./chunks/chunk-IFME676H.js";
|
|
58
|
+
import "./chunks/chunk-W6UWZFKL.js";
|
|
63
59
|
import "./chunks/chunk-FHC2B7LN.js";
|
|
64
|
-
import "./chunks/chunk-
|
|
60
|
+
import "./chunks/chunk-DKSCN2AB.js";
|
|
65
61
|
import "./chunks/chunk-UFHN6RIU.js";
|
|
66
|
-
import "./chunks/chunk-
|
|
67
|
-
import "./chunks/chunk-
|
|
68
|
-
import "./chunks/chunk-
|
|
69
|
-
import "./chunks/chunk-
|
|
62
|
+
import "./chunks/chunk-VWITLWXB.js";
|
|
63
|
+
import "./chunks/chunk-TO35Y326.js";
|
|
64
|
+
import "./chunks/chunk-IXT64DV5.js";
|
|
65
|
+
import "./chunks/chunk-UELXHK2Y.js";
|
|
66
|
+
import "./chunks/chunk-XDKB2P5X.js";
|
|
70
67
|
import "./chunks/chunk-V36HVTUL.js";
|
|
71
68
|
import "./chunks/chunk-4VGLO2YS.js";
|
|
72
69
|
import "./chunks/chunk-6YNKRUMC.js";
|
|
73
|
-
import "./chunks/chunk-
|
|
74
|
-
import "./chunks/chunk-
|
|
75
|
-
import "./chunks/chunk-
|
|
70
|
+
import "./chunks/chunk-X7LAEEUW.js";
|
|
71
|
+
import "./chunks/chunk-5IBCBQEH.js";
|
|
72
|
+
import "./chunks/chunk-WSDDGFA6.js";
|
|
73
|
+
import "./chunks/chunk-AV2LG2L7.js";
|
|
76
74
|
import {
|
|
77
75
|
VERSION
|
|
78
|
-
} from "./chunks/chunk-
|
|
76
|
+
} from "./chunks/chunk-KAU6NLGP.js";
|
|
79
77
|
import "./chunks/chunk-VIT5ALXF.js";
|
|
80
78
|
import "./chunks/chunk-VCSFCHAJ.js";
|
|
81
79
|
|
|
@@ -101,7 +99,7 @@ import { fileURLToPath } from "node:url";
|
|
|
101
99
|
var BYPASS_ENV = "ZERO_ALLOW_STALE_SOURCE_DIST";
|
|
102
100
|
function currentBuildCommit() {
|
|
103
101
|
if (true) {
|
|
104
|
-
return "
|
|
102
|
+
return "d29fd0b05ad8414024f6f030e31a8155c467ef96";
|
|
105
103
|
}
|
|
106
104
|
return void 0;
|
|
107
105
|
}
|
|
@@ -187,10 +185,18 @@ function enforceSourceDistFreshness(opts = {}) {
|
|
|
187
185
|
}
|
|
188
186
|
|
|
189
187
|
// packages/cli/src/index.ts
|
|
188
|
+
try {
|
|
189
|
+
const workbenchExitCode = await launchConfiguredWorkbench(process.argv.slice(2));
|
|
190
|
+
if (workbenchExitCode !== void 0) process.exit(workbenchExitCode);
|
|
191
|
+
} catch (error) {
|
|
192
|
+
process.stderr.write(`[0] ${error instanceof Error ? error.message : String(error)}
|
|
193
|
+
`);
|
|
194
|
+
process.exit(125);
|
|
195
|
+
}
|
|
196
|
+
var isWorkbenchManagement = process.argv[2] === "workbench" || process.argv[2] === "config";
|
|
190
197
|
installConsolePresentationBridge();
|
|
191
198
|
installProcessPresentationStreamBridge();
|
|
192
|
-
maybeLoadCodexAuth();
|
|
193
|
-
maybeSubscribeCloudEventSink();
|
|
199
|
+
if (!isWorkbenchManagement) maybeLoadCodexAuth();
|
|
194
200
|
try {
|
|
195
201
|
getSettings();
|
|
196
202
|
} catch {
|
|
@@ -207,9 +213,9 @@ var herdrSink = createHerdrEventSink();
|
|
|
207
213
|
if (herdrSink) eventBus.subscribe(herdrSink);
|
|
208
214
|
setHerdrSink(herdrSink);
|
|
209
215
|
enforceSourceDistFreshness({ entryUrl: import.meta.url });
|
|
210
|
-
await runStartupUpdate(VERSION);
|
|
216
|
+
if (!isWorkbenchManagement) await runStartupUpdate(VERSION);
|
|
211
217
|
async function buildProgram() {
|
|
212
|
-
const c = await import("./chunks/commands-
|
|
218
|
+
const c = await import("./chunks/commands-N6GN5SBF.js");
|
|
213
219
|
const program = new Command();
|
|
214
220
|
program.name("0").description("Open-source multi-model security research harness").version(VERSION).enablePositionalOptions();
|
|
215
221
|
c.registerScanCommand(program);
|
|
@@ -220,8 +226,6 @@ async function buildProgram() {
|
|
|
220
226
|
c.registerSecureCommand(program);
|
|
221
227
|
c.registerReviewCommand(program);
|
|
222
228
|
c.registerFixCommand(program);
|
|
223
|
-
c.registerConnectCommand(program);
|
|
224
|
-
c.registerGuideCommand(program);
|
|
225
229
|
c.registerAuditCommand(program);
|
|
226
230
|
c.registerDoctorCommand(program);
|
|
227
231
|
c.registerDashboardCommand(program);
|
|
@@ -249,8 +253,6 @@ async function buildProgram() {
|
|
|
249
253
|
c.registerUpgradeCommand(program);
|
|
250
254
|
c.registerDepsCommand(program);
|
|
251
255
|
c.registerH1Command(program);
|
|
252
|
-
c.registerAuthCommand(program);
|
|
253
|
-
c.registerHostedCommand(program);
|
|
254
256
|
c.registerIntelCommand(program);
|
|
255
257
|
c.registerReconCommand(program);
|
|
256
258
|
c.registerConsoleCommand(program);
|
|
@@ -270,16 +272,14 @@ async function buildProgram() {
|
|
|
270
272
|
c.registerThemeCommand(program);
|
|
271
273
|
c.registerEvolveCommand(program);
|
|
272
274
|
c.registerConfigCommand(program);
|
|
273
|
-
c.
|
|
274
|
-
c.registerProjectSetupCommand(program);
|
|
275
|
-
c.registerAuditSkillsCommand(program);
|
|
275
|
+
c.registerWorkbenchCommand(program);
|
|
276
276
|
c.registerHackstoreCommand(program);
|
|
277
277
|
return program;
|
|
278
278
|
}
|
|
279
279
|
async function showInteractiveMenu() {
|
|
280
280
|
const { isBunRuntime } = await import("./chunks/runtime-XFWJTBUO.js");
|
|
281
281
|
if (isBunRuntime()) {
|
|
282
|
-
const { showOpenTuiHome } = await import("./chunks/run-
|
|
282
|
+
const { showOpenTuiHome } = await import("./chunks/run-GAFKBCTN.js");
|
|
283
283
|
await showOpenTuiHome();
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
@@ -302,7 +302,7 @@ process.once("beforeExit", () => {
|
|
|
302
302
|
});
|
|
303
303
|
});
|
|
304
304
|
var userArgs = process.argv.slice(2);
|
|
305
|
-
var knownCommands = ["scan", "resume", "replay", "history", "findings", "secure", "
|
|
305
|
+
var knownCommands = ["scan", "resume", "replay", "history", "findings", "secure", "review", "fix", "audit", "deps", "doctor", "dashboard", "tui", "watch", "orchestrate", "db", "mcp-server", "triage", "eval", "bench", "ingest", "kernel", "disclose", "verify", "exploit", "hunt", "recency-hunt", "deep-review", "lens-synth", "memsafety", "assumption-hunt", "specdrift", "protocol-check", "cve", "upgrade", "update", "h1", "intel", "recon", "js-recon", "npm-discovery", "identity", "adgraph", "entragraph", "cloud", "xnu-fuzz", "research", "radar", "timeline", "console", "agent-assure", "binary", "plugin", "theme", "config", "workbench", "evolve", "hackstore", "hack", "store", "help"];
|
|
306
306
|
if (userArgs.length === 0) {
|
|
307
307
|
showInteractiveMenu().catch((err) => {
|
|
308
308
|
console.error(source_default.red(err instanceof Error ? err.message : String(err)));
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://0.security/">
|
|
3
|
-
<img src="assets/readme-cover.png" alt="
|
|
3
|
+
<img src="assets/readme-cover.png" alt="0security terminal security research workflow" width="100%">
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -13,13 +13,12 @@
|
|
|
13
13
|
|
|
14
14
|
<p align="center">
|
|
15
15
|
<strong>The open-source, self-evolving, multi-model harness for security research.</strong><br/>
|
|
16
|
-
<sub>The Swiss Applied AI & Cybersecurity Research Lab</sub><br/>
|
|
16
|
+
<sub>Backed by Y Combinator · The Swiss Applied AI & Cybersecurity Research Lab</sub><br/>
|
|
17
17
|
<a href="https://0.security/">0.security</a> ·
|
|
18
18
|
<a href="https://docs.0.security/">Documentation</a> ·
|
|
19
19
|
<a href="https://github.com/0sec-labs/foxguard">FoxGuard</a>
|
|
20
20
|
</p>
|
|
21
21
|
|
|
22
|
-
|
|
23
22
|
<p align="center">
|
|
24
23
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-1A1815?style=flat-square&labelColor=1A1815" alt="License: MIT OR Apache-2.0"></a>
|
|
25
24
|
<a href="https://github.com/0sec-labs/0/releases/latest"><img src="https://img.shields.io/github/v/release/0sec-labs/0?style=flat-square&labelColor=1A1815&color=1A1815" alt="Latest release"></a>
|
|
@@ -30,88 +29,74 @@
|
|
|
30
29
|
<img src="assets/security-cycle-diagram.webp" alt="Zero studies, finds, fixes, reports, and improves." width="100%">
|
|
31
30
|
</p>
|
|
32
31
|
|
|
32
|
+
## Security research, in your workspace
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
[public disclosures and upstream fixes](https://0.security/research/#disclosures)
|
|
38
|
-
including research in the Linux kernel.
|
|
34
|
+
0 is an open-source, multi-model harness for investigating software security:
|
|
35
|
+
read code, run tools, investigate findings and review proposed fixes.
|
|
36
|
+
Built by the Swiss Applied AI & Cybersecurity Research Lab, it supports our
|
|
37
|
+
[public disclosures and upstream fixes](https://0.security/research/#disclosures).
|
|
39
38
|
|
|
40
39
|
## Get started
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Copy this prompt into your coding agent:
|
|
45
|
-
|
|
46
|
-
> Set up the 0.security harness using https://0.security/harness/setup.md and read https://0.security/llms.txt for the documentation index. Confirm my targets and scope before testing, and ask before changing files.
|
|
47
|
-
|
|
48
|
-
### Quick install
|
|
41
|
+
Install on Apple Silicon macOS or x64/ARM64 Linux, then open 0:
|
|
49
42
|
|
|
50
43
|
```bash
|
|
51
44
|
curl -fsSL https://raw.githubusercontent.com/0sec-labs/0/main/install.sh | bash
|
|
45
|
+
export PATH="$HOME/.0/bin:$PATH"
|
|
52
46
|
0
|
|
53
47
|
```
|
|
54
48
|
|
|
55
|
-
Bring your model access and configure connections in the terminal. Run locally
|
|
56
|
-
or through the CLI in CI/CD, inspect findings and verification results, and
|
|
57
|
-
export reports as JSON, Markdown or SARIF.
|
|
58
|
-
|
|
59
|
-
[Setup guide](https://0.security/harness/setup.md) ·
|
|
60
|
-
[Research workflows](https://docs.0.security/research-workflows/) ·
|
|
61
|
-
[Documentation](https://docs.0.security/)
|
|
62
|
-
|
|
63
|
-
## Built for security research
|
|
64
49
|
|
|
65
|
-
- **Open research.** Benchmark-led agent design and A/B-tested attack strategies,
|
|
66
|
-
with public findings that others can inspect.
|
|
67
|
-
- **Extensible tools.** Use the in-house security linter, connect your own tools,
|
|
68
|
-
and let agents write and run tools for the investigation.
|
|
69
|
-
- **Adaptive agents.** Delegate focused investigations to subagents with fresh
|
|
70
|
-
context and bounded budgets, then collect their findings. See the
|
|
71
|
-
[agent loop](https://docs.0.security/agent-loop/) and
|
|
72
|
-
[worker monitoring](https://docs.0.security/console/#monitoring-subagents).
|
|
73
|
-
- **Multi-model harness.** Bring the models you prefer into one security workflow.
|
|
74
|
-
Combine deterministic steps with adaptive investigations.
|
|
75
|
-
- **Evaluated self-improvement.** Propose changes, evaluate them, and select better
|
|
76
|
-
versions for future runs. Learn more about the
|
|
77
|
-
[improvement plane](https://docs.0.security/improvement-plane/).
|
|
78
50
|
|
|
79
|
-
|
|
51
|
+
## Work locally, extend deliberately
|
|
80
52
|
|
|
81
|
-
|
|
53
|
+
- Describe an authorized repository and investigation goal in chat, or use
|
|
54
|
+
`0 review ./authorized-repo` for a source review.
|
|
55
|
+
- Review findings and proposed changes.
|
|
56
|
+
Follow the [research workflows](https://docs.0.security/research-workflows/)
|
|
57
|
+
for deeper investigations.
|
|
58
|
+
- Connect your tools through [MCP and integrations](https://docs.0.security/integrations/).
|
|
59
|
+
Browse `/hackstore`, or [build and locally install an extension](https://docs.0.security/hackstore/).
|
|
60
|
+
Community plugins run as local processes; review them before enabling.
|
|
82
61
|
|
|
83
|
-
|
|
84
|
-
a purpose-built attack runtime and a curated offensive toolchain. These hosted
|
|
85
|
-
capabilities are separate from running the open-source harness with your own
|
|
86
|
-
model access. [Explore 0.security](https://0.security/).
|
|
62
|
+
## Why 0?
|
|
87
63
|
|
|
88
|
-
|
|
64
|
+
Use the models you want. Bring the tools you need. Make the workflow your own.
|
|
65
|
+
0 brings security investigations and fixes into one terminal workspace, with
|
|
66
|
+
focused agents and an extensible toolchain. The harness is open source and
|
|
67
|
+
runs under your control.
|
|
89
68
|
|
|
90
|
-
|
|
91
|
-
itself; we believe it should secure itself, too. Our goal is security that
|
|
92
|
-
finds and fixes vulnerabilities as software changes, so people can focus on
|
|
93
|
-
what they want to create.
|
|
69
|
+
## Guides
|
|
94
70
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
71
|
+
- [Quick start and installation](https://docs.0.security/getting-started/)
|
|
72
|
+
- [Models and provider connections](https://docs.0.security/api-keys/)
|
|
73
|
+
- [Console, sessions and agents](https://docs.0.security/console/)
|
|
74
|
+
- [Plugins and Hackstore publishing](https://docs.0.security/hackstore/)
|
|
75
|
+
- [Scope and authorization](https://docs.0.security/scope/)
|
|
76
|
+
- [GitHub Actions](https://docs.0.security/ci/github-action/)
|
|
77
|
+
- [Troubleshooting](https://docs.0.security/troubleshooting/)
|
|
99
78
|
|
|
100
|
-
|
|
101
|
-
[Explore our research](https://0.security/research/)
|
|
79
|
+
## Status and safety
|
|
102
80
|
|
|
103
|
-
|
|
81
|
+
This is a **research preview**, not a guarantee of coverage or correctness.
|
|
82
|
+
Review results and generated fixes before applying them. Tool making and
|
|
83
|
+
[evaluated self-improvement](https://docs.0.security/improvement-plane/) are research workflows.
|
|
104
84
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
85
|
+
Only test systems you own or are authorized to assess. The optional
|
|
86
|
+
[scope plugin](https://docs.0.security/scope/) is disabled by default:
|
|
87
|
+
enable it explicitly with `0 plugin enable scope` and configure your boundaries.
|
|
88
|
+
The default console uses YOLO mode; use `0 console --mode standard` for
|
|
109
89
|
|
|
110
|
-
## Contributing
|
|
90
|
+
## Contributing and license
|
|
111
91
|
|
|
112
|
-
|
|
92
|
+
Build and extend the harness with [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
113
93
|
Report security issues through [SECURITY.md](SECURITY.md).
|
|
94
|
+
Licensed under [MIT](LICENSE-MIT) OR [Apache-2.0](LICENSE).
|
|
114
95
|
|
|
115
|
-
##
|
|
96
|
+
## Acknowledgments
|
|
116
97
|
|
|
117
|
-
|
|
98
|
+
Thanks to the teams behind [OpenTUI](https://github.com/anomalyco/opentui),
|
|
99
|
+
[Bun](https://bun.sh/) and [React](https://react.dev/) for the interface stack,
|
|
100
|
+
and [Models.dev](https://models.dev/) and [LiteLLM](https://github.com/BerriAI/litellm)
|
|
101
|
+
for model metadata and pricing estimates. Thank you to everyone contributing
|
|
102
|
+
code, reporting bugs and sharing ideas.
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
adaptAndVerify,
|
|
6
6
|
applyUnifiedDiff,
|
|
7
7
|
renderAdaptationPrompt
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-CPWA6RWE.js";
|
|
9
|
+
import "./chunk-NLH4LMWH.js";
|
|
10
|
+
import "./chunk-WZRVS7SB.js";
|
|
11
|
+
import "./chunk-KAU6NLGP.js";
|
|
12
12
|
import "./chunk-VIT5ALXF.js";
|
|
13
13
|
import "./chunk-VCSFCHAJ.js";
|
|
14
14
|
export {
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
parseUbuntuTracker,
|
|
15
15
|
scoreCodeCandidate,
|
|
16
16
|
scoreRepoCandidate
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-XDKB2P5X.js";
|
|
18
|
+
import "./chunk-KAU6NLGP.js";
|
|
19
19
|
import "./chunk-VIT5ALXF.js";
|
|
20
20
|
import "./chunk-VCSFCHAJ.js";
|
|
21
21
|
export {
|
|
@@ -24,29 +24,29 @@ import {
|
|
|
24
24
|
scoreDualViewWeaponizability,
|
|
25
25
|
storeAssumptionModel,
|
|
26
26
|
subjectSelfEnforces
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OSBPGWTE.js";
|
|
28
28
|
import {
|
|
29
29
|
composeGate,
|
|
30
30
|
makeSkepticVerifier
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-CAJJRUTV.js";
|
|
31
|
+
} from "./chunk-5BTJMINS.js";
|
|
32
|
+
import "./chunk-HHPWRY2M.js";
|
|
34
33
|
import "./chunk-K2PWUPUI.js";
|
|
35
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-YL6YAGLL.js";
|
|
36
35
|
import "./chunk-2OQOQ2FZ.js";
|
|
37
36
|
import "./chunk-UEX7PFSE.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-NLH4LMWH.js";
|
|
38
|
+
import "./chunk-WZRVS7SB.js";
|
|
39
|
+
import "./chunk-OHHCGDJ2.js";
|
|
40
|
+
import "./chunk-IFME676H.js";
|
|
41
|
+
import "./chunk-W6UWZFKL.js";
|
|
42
|
+
import "./chunk-VWITLWXB.js";
|
|
43
|
+
import "./chunk-IXT64DV5.js";
|
|
44
|
+
import "./chunk-UELXHK2Y.js";
|
|
46
45
|
import "./chunk-4VGLO2YS.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-X7LAEEUW.js";
|
|
47
|
+
import "./chunk-5IBCBQEH.js";
|
|
48
|
+
import "./chunk-AV2LG2L7.js";
|
|
49
|
+
import "./chunk-KAU6NLGP.js";
|
|
50
50
|
import "./chunk-VIT5ALXF.js";
|
|
51
51
|
import "./chunk-VCSFCHAJ.js";
|
|
52
52
|
export {
|
|
@@ -3,7 +3,7 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
allowlistedChildEnv
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5IBCBQEH.js";
|
|
7
7
|
|
|
8
8
|
// packages/core/dist/stages/npm-detectors/osv-lookup.js
|
|
9
9
|
var DEFAULT_ENDPOINT = "https://api.osv.dev/v1/querybatch";
|
|
@@ -4,10 +4,10 @@ const require = __0CreateRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
getToolsForRole,
|
|
6
6
|
runNativeAgentLoop
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HHPWRY2M.js";
|
|
8
8
|
import {
|
|
9
9
|
LlmApiRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AV2LG2L7.js";
|
|
11
11
|
|
|
12
12
|
// packages/core/dist/eval-runner.js
|
|
13
13
|
import { randomUUID } from "node:crypto";
|
|
@@ -3,7 +3,7 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
LlmApiRuntime
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AV2LG2L7.js";
|
|
7
7
|
|
|
8
8
|
// packages/core/dist/stages/variant-candidates.js
|
|
9
9
|
import { execFileSync } from "node:child_process";
|
|
@@ -5,46 +5,46 @@ import {
|
|
|
5
5
|
BUDGET_WARNING_HARD,
|
|
6
6
|
BUDGET_WARNING_SOFT,
|
|
7
7
|
ToolExecutor,
|
|
8
|
-
analyticsPipeline,
|
|
9
8
|
buildToolCallLogEntry,
|
|
10
9
|
buildToolCallsPayload,
|
|
11
10
|
computeBudgetWarningTurns,
|
|
12
11
|
formatJitSkillsInstruction,
|
|
13
|
-
getCloudSinkConfig,
|
|
14
12
|
getToolsForRole,
|
|
15
13
|
newCorrelationId,
|
|
16
14
|
parseFindingsFromCliOutput,
|
|
17
|
-
postFinding,
|
|
18
15
|
registerSignalCleanup,
|
|
19
|
-
reportUnsupportedContributionMode,
|
|
20
16
|
runNativeAgentLoop,
|
|
21
17
|
toolCallPreview
|
|
22
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HHPWRY2M.js";
|
|
23
19
|
import {
|
|
24
20
|
WafDetector
|
|
25
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YL6YAGLL.js";
|
|
26
22
|
import {
|
|
27
23
|
RECIPE_LIBRARY
|
|
28
24
|
} from "./chunk-UEX7PFSE.js";
|
|
25
|
+
import {
|
|
26
|
+
analyticsPipeline,
|
|
27
|
+
reportUnsupportedContributionMode
|
|
28
|
+
} from "./chunk-OHHCGDJ2.js";
|
|
29
29
|
import {
|
|
30
30
|
createRuntime,
|
|
31
31
|
detectAvailableRuntimes,
|
|
32
32
|
pickRuntimeForStage
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IFME676H.js";
|
|
34
34
|
import {
|
|
35
35
|
osecDB
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-VWITLWXB.js";
|
|
37
37
|
import {
|
|
38
38
|
CLI_RUNTIME_TYPES
|
|
39
39
|
} from "./chunk-4VGLO2YS.js";
|
|
40
40
|
import {
|
|
41
41
|
LlmApiRuntime,
|
|
42
42
|
features
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AV2LG2L7.js";
|
|
44
44
|
import {
|
|
45
45
|
estimateCost,
|
|
46
46
|
modelProvider
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-KAU6NLGP.js";
|
|
48
48
|
import {
|
|
49
49
|
external_exports
|
|
50
50
|
} from "./chunk-VIT5ALXF.js";
|
|
@@ -3919,59 +3919,6 @@ function persistSession(db, state, config, sessionId, status) {
|
|
|
3919
3919
|
});
|
|
3920
3920
|
}
|
|
3921
3921
|
|
|
3922
|
-
// packages/core/dist/agent/cloud-inbox.js
|
|
3923
|
-
var POLL_MS = 3e3;
|
|
3924
|
-
function startCloudInboxPoller(config) {
|
|
3925
|
-
const buffer = [];
|
|
3926
|
-
let stopped = false;
|
|
3927
|
-
const headers = {
|
|
3928
|
-
"X-0-Scan-Id": config.scanId
|
|
3929
|
-
};
|
|
3930
|
-
if (config.token)
|
|
3931
|
-
headers["Authorization"] = `Bearer ${config.token}`;
|
|
3932
|
-
const url = `${config.sinkUrl.replace(/\/+$/, "")}/scans/${encodeURIComponent(config.scanId)}/inbox`;
|
|
3933
|
-
const poll = async () => {
|
|
3934
|
-
if (stopped)
|
|
3935
|
-
return;
|
|
3936
|
-
try {
|
|
3937
|
-
const res = await fetch(url, { headers });
|
|
3938
|
-
if (!res.ok)
|
|
3939
|
-
return;
|
|
3940
|
-
const rows = await res.json();
|
|
3941
|
-
if (!Array.isArray(rows))
|
|
3942
|
-
return;
|
|
3943
|
-
for (const r of rows) {
|
|
3944
|
-
if (r.role === "human" && typeof r.body === "string" && r.body.trim().length > 0) {
|
|
3945
|
-
const prefix = r.kind === "approval" ? "[Operator approval]" : "[Operator steer]";
|
|
3946
|
-
buffer.push(`${prefix}: ${r.body.trim()}`);
|
|
3947
|
-
}
|
|
3948
|
-
}
|
|
3949
|
-
} catch {
|
|
3950
|
-
}
|
|
3951
|
-
};
|
|
3952
|
-
const handle = setInterval(() => void poll(), POLL_MS);
|
|
3953
|
-
if (typeof handle.unref === "function") {
|
|
3954
|
-
handle.unref();
|
|
3955
|
-
}
|
|
3956
|
-
return {
|
|
3957
|
-
drain() {
|
|
3958
|
-
if (buffer.length === 0)
|
|
3959
|
-
return [];
|
|
3960
|
-
return buffer.splice(0, buffer.length);
|
|
3961
|
-
},
|
|
3962
|
-
stop() {
|
|
3963
|
-
stopped = true;
|
|
3964
|
-
clearInterval(handle);
|
|
3965
|
-
}
|
|
3966
|
-
};
|
|
3967
|
-
}
|
|
3968
|
-
function maybeStartCloudInboxPoller() {
|
|
3969
|
-
const cfg = getCloudSinkConfig();
|
|
3970
|
-
if (!cfg)
|
|
3971
|
-
return null;
|
|
3972
|
-
return startCloudInboxPoller(cfg);
|
|
3973
|
-
}
|
|
3974
|
-
|
|
3975
3922
|
// packages/core/dist/secure/project-context.js
|
|
3976
3923
|
import { createHash as createHash2 } from "node:crypto";
|
|
3977
3924
|
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
@@ -4207,7 +4154,7 @@ async function runAnalysisAgent(opts) {
|
|
|
4207
4154
|
},
|
|
4208
4155
|
required: ["findings", "summary"]
|
|
4209
4156
|
};
|
|
4210
|
-
const { ProcessRuntime } = await import("./process-
|
|
4157
|
+
const { ProcessRuntime } = await import("./process-N245QIQG.js");
|
|
4211
4158
|
const codexHome = runtimeType === "codex" && isEphemeralScope(scopePath) ? createEphemeralCodexHome() : void 0;
|
|
4212
4159
|
const cliRuntime = new ProcessRuntime({
|
|
4213
4160
|
type: runtimeType,
|
|
@@ -4316,7 +4263,6 @@ async function runAnalysisAgent(opts) {
|
|
|
4316
4263
|
if (supportsNative) {
|
|
4317
4264
|
const turnBudget = getMaxTurns(role, config.depth, "native", purpose);
|
|
4318
4265
|
const maxTurns2 = Math.min(opts.maxTurns ?? turnBudget, opts.singleAgent ? 20 : turnBudget);
|
|
4319
|
-
const cloudInbox = maybeStartCloudInboxPoller();
|
|
4320
4266
|
const agentState2 = await runNativeAgentLoop({
|
|
4321
4267
|
config: {
|
|
4322
4268
|
role,
|
|
@@ -4329,7 +4275,7 @@ async function runAnalysisAgent(opts) {
|
|
|
4329
4275
|
target,
|
|
4330
4276
|
scanId,
|
|
4331
4277
|
scopePath,
|
|
4332
|
-
codebaseLearning:
|
|
4278
|
+
codebaseLearning: scopedSourceAudit && purpose === "research",
|
|
4333
4279
|
sessionId,
|
|
4334
4280
|
costCeilingUsd: config.costCeilingUsd,
|
|
4335
4281
|
costModel: config.model,
|
|
@@ -4337,7 +4283,6 @@ async function runAnalysisAgent(opts) {
|
|
|
4337
4283
|
},
|
|
4338
4284
|
runtime: apiRuntime,
|
|
4339
4285
|
db,
|
|
4340
|
-
getPendingUserMessages: cloudInbox?.drain,
|
|
4341
4286
|
onFindingSaved: (finding) => {
|
|
4342
4287
|
if (purpose === "verify" && opts.singleAgent)
|
|
4343
4288
|
return;
|
|
@@ -4346,7 +4291,6 @@ async function runAnalysisAgent(opts) {
|
|
|
4346
4291
|
message: `[${finding.severity}] ${finding.title}`,
|
|
4347
4292
|
data: finding
|
|
4348
4293
|
});
|
|
4349
|
-
void postFinding(finding, getCloudSinkConfig());
|
|
4350
4294
|
try {
|
|
4351
4295
|
analyticsPipeline.recordFinding({
|
|
4352
4296
|
severity: finding.severity,
|
|
@@ -4477,7 +4421,6 @@ async function runAnalysisAgent(opts) {
|
|
|
4477
4421
|
message: `[${finding.severity}] ${finding.title}`,
|
|
4478
4422
|
data: finding
|
|
4479
4423
|
});
|
|
4480
|
-
void postFinding(finding, getCloudSinkConfig());
|
|
4481
4424
|
try {
|
|
4482
4425
|
analyticsPipeline.recordFinding({
|
|
4483
4426
|
severity: finding.severity,
|
|
@@ -5908,7 +5851,6 @@ export {
|
|
|
5908
5851
|
describeRefuterChoice,
|
|
5909
5852
|
scoreGeometry,
|
|
5910
5853
|
runAgentLoop,
|
|
5911
|
-
maybeStartCloudInboxPoller,
|
|
5912
5854
|
prepareProjectContext,
|
|
5913
5855
|
PROJECT_OBSERVATION_PROMPT,
|
|
5914
5856
|
captureProjectSuggestions,
|
|
@@ -96,8 +96,7 @@ var CHILD_ENV_ALLOWLIST = [
|
|
|
96
96
|
"AUTH_CURL_FLAG",
|
|
97
97
|
// Existing child-runtime configuration contract; each name is non-secret.
|
|
98
98
|
"ZERO_FEATURE_JIT_SKILLS",
|
|
99
|
-
"ZERO_BASH_TIMEOUT_MS"
|
|
100
|
-
"ZERO_CLOUD_SCAN_ID"
|
|
99
|
+
"ZERO_BASH_TIMEOUT_MS"
|
|
101
100
|
];
|
|
102
101
|
function allowlistedChildEnv(extras = {}, env = process.env) {
|
|
103
102
|
const out = {};
|