0sec-cli 0.22.0 → 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 +27 -27
- package/chunks/{adapt-loop-7I57LXXR.js → adapt-loop-J6QCZZTB.js} +4 -4
- package/chunks/{artifact-scraper-PYZ3RU3O.js → artifact-scraper-MFKT6OI4.js} +2 -2
- package/chunks/{assumption-mining-MFLF43IR.js → assumption-mining-646LYSJY.js} +12 -12
- package/chunks/{chunk-RSIUX3RW.js → chunk-3E2KALZ5.js} +2 -2
- package/chunks/{chunk-HUNAPTKV.js → chunk-4G7OVYJX.js} +1 -1
- package/chunks/{chunk-UV5QWZGE.js → chunk-5BTJMINS.js} +7 -7
- package/chunks/{chunk-VMRRNRMR.js → chunk-7XCKYNLO.js} +1 -1
- package/chunks/{chunk-2GV4HQKE.js → chunk-AV2LG2L7.js} +2 -2
- package/chunks/{chunk-CAYANSH6.js → chunk-BCSRRQG5.js} +21 -31
- package/chunks/{chunk-MICHDTBK.js → chunk-BOUGKEKA.js} +1 -1
- package/chunks/{chunk-RRD4XXPU.js → chunk-CPWA6RWE.js} +3 -3
- package/chunks/{chunk-YIQSGNAA.js → chunk-GOEA3NW6.js} +5 -5
- package/chunks/{chunk-SJBCK2EI.js → chunk-HHPWRY2M.js} +25 -25
- package/chunks/{chunk-5MWAG3FT.js → chunk-IFME676H.js} +1 -1
- package/chunks/{chunk-LCRTAQN2.js → chunk-IVQV574Y.js} +1 -1
- package/chunks/{chunk-76KSBWOQ.js → chunk-KAU6NLGP.js} +1 -1
- package/chunks/{chunk-EGZGZFAH.js → chunk-LGCASF2C.js} +24 -23
- package/chunks/{chunk-OAYUPGF6.js → chunk-NLH4LMWH.js} +1 -1
- package/chunks/{chunk-RE5EZDG2.js → chunk-OHHCGDJ2.js} +2 -2
- package/chunks/{chunk-UU7PQP6N.js → chunk-OSBPGWTE.js} +3 -3
- package/chunks/{chunk-OWLJYJ5O.js → chunk-TV27OWIW.js} +6 -6
- package/chunks/{chunk-7UFUALR2.js → chunk-V6GHX34G.js} +4 -4
- package/chunks/{chunk-VNRY6AWF.js → chunk-VWITLWXB.js} +1 -1
- package/chunks/{chunk-IO7R7WBM.js → chunk-WSDDGFA6.js} +1 -1
- package/chunks/{chunk-XFCTUKXR.js → chunk-WZRVS7SB.js} +1 -1
- package/chunks/{chunk-7DEHG7YT.js → chunk-X7LAEEUW.js} +1 -1
- package/chunks/{chunk-HR2TU42B.js → chunk-XA2O4WXA.js} +2 -2
- package/chunks/{chunk-LYUAM3TG.js → chunk-XCISCI4T.js} +1 -1
- package/chunks/{chunk-LPTRPRZR.js → chunk-XDKB2P5X.js} +1 -1
- package/chunks/{chunk-TZFIAMWZ.js → chunk-YL6YAGLL.js} +1 -1
- package/chunks/{chunk-DM5C5L5D.js → chunk-ZKQ2I3S2.js} +1 -1
- package/chunks/{codex-models-7TLJSY3L.js → codex-models-NHQW45SO.js} +3 -3
- package/chunks/{commands-NEI7L3QA.js → commands-N6GN5SBF.js} +83 -83
- package/chunks/{db-5AP3JB4W.js → db-5IWEJUYV.js} +3 -3
- package/chunks/{dist-DD4H6HMQ.js → dist-BS4CY4RG.js} +1 -1
- package/chunks/{dist-5YHYNLI3.js → dist-FSS7MBDF.js} +2 -2
- package/chunks/{dist-3FNZIBB4.js → dist-L3XJWWZ6.js} +24 -22
- package/chunks/{eval-runner-43BO2C4T.js → eval-runner-EMEGF24P.js} +8 -8
- package/chunks/{exploit-agent-N4A5ELBK.js → exploit-agent-KW4EB7BE.js} +1 -1
- package/chunks/{exploit-autoclimb-N7P6KIF5.js → exploit-autoclimb-CXJ2ERRO.js} +1 -1
- package/chunks/{exploit-climb-WNEJUB5W.js → exploit-climb-TJWLY4XC.js} +2 -2
- package/chunks/{fix-Z452M4EC.js → fix-UUKPXCFB.js} +4 -4
- package/chunks/{harness-QJJJVSG4.js → harness-C5HOKIEV.js} +3 -3
- package/chunks/{hunt-scan-K6D2V3PX.js → hunt-scan-KZZ444V2.js} +10 -10
- package/chunks/{kernel-primitive-TKUACPKD.js → kernel-primitive-Z77IR7YS.js} +2 -2
- package/chunks/{kernel-vm-runner-RAAO2PGT.js → kernel-vm-runner-JW77P276.js} +2 -2
- package/chunks/{native-loop-2ZRJENZ3.js → native-loop-P6P5GYVJ.js} +7 -7
- package/chunks/{orchestrate-2GWGNTBF.js → orchestrate-DWWUT5RC.js} +23 -23
- package/chunks/{run-U3XU4CTC.js → run-GAFKBCTN.js} +20305 -20336
- package/chunks/{runtime-G75TEWQY.js → runtime-H7YBR5IZ.js} +3 -3
- package/chunks/{scope-WXI46UHJ.js → scope-QWY4VQZ7.js} +2 -2
- package/chunks/{session-store-27L3ZU73.js → session-store-XIDFGG7K.js} +2 -2
- package/chunks/{variant-candidates-YWZORZMK.js → variant-candidates-7D4F5E4H.js} +3 -3
- package/chunks/{web-recon-prepass-YVMFXCIK.js → web-recon-prepass-VXXBPDAV.js} +3 -3
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@ import { createRequire as __0CreateRequire } from "node:module";
|
|
|
3
3
|
const require = __0CreateRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
registerOrchestrateCommand
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TV27OWIW.js";
|
|
7
7
|
import {
|
|
8
8
|
registerDbCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IVQV574Y.js";
|
|
10
10
|
import {
|
|
11
11
|
canUseOpenTui,
|
|
12
12
|
isBunRuntime
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
resolveFindingChatIntent,
|
|
30
30
|
runUnified,
|
|
31
31
|
startCodexDeviceAuth
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-BCSRRQG5.js";
|
|
33
|
+
import "./chunk-BOUGKEKA.js";
|
|
34
34
|
import {
|
|
35
35
|
Command,
|
|
36
36
|
InvalidArgumentError,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
selectWorkbenchProfile,
|
|
45
45
|
workbenchConfigPath,
|
|
46
46
|
workbenchNetworkEnabled
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-V6GHX34G.js";
|
|
48
48
|
import {
|
|
49
49
|
DEFAULT_SETTINGS,
|
|
50
50
|
DEFAULT_THEME_NAME,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
validateTheme,
|
|
77
77
|
writeInstalledTheme,
|
|
78
78
|
writePresentationLine
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-GOEA3NW6.js";
|
|
80
80
|
import {
|
|
81
81
|
AjvJsonSchemaValidator,
|
|
82
82
|
CallToolRequestSchema,
|
|
@@ -205,12 +205,12 @@ import {
|
|
|
205
205
|
toScopeFile,
|
|
206
206
|
withVariantFeatureFlags,
|
|
207
207
|
writeAgentActionEvidenceBundle
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-LGCASF2C.js";
|
|
209
209
|
import {
|
|
210
210
|
RateLimiter,
|
|
211
211
|
enumerateJsChunkUrls,
|
|
212
212
|
parseRateLimitFlag
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-XCISCI4T.js";
|
|
214
214
|
import {
|
|
215
215
|
source_default
|
|
216
216
|
} from "./chunk-HLFS6WV2.js";
|
|
@@ -222,7 +222,7 @@ import {
|
|
|
222
222
|
import {
|
|
223
223
|
getEvalCategories,
|
|
224
224
|
runEval
|
|
225
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-3E2KALZ5.js";
|
|
226
226
|
import {
|
|
227
227
|
oracleForCategory
|
|
228
228
|
} from "./chunk-TM74SSHC.js";
|
|
@@ -237,15 +237,15 @@ import {
|
|
|
237
237
|
DETECTOR_REGISTRY,
|
|
238
238
|
resolveDetectors
|
|
239
239
|
} from "./chunk-DQTNI3KY.js";
|
|
240
|
-
import "./chunk-
|
|
241
|
-
import "./chunk-
|
|
240
|
+
import "./chunk-7XCKYNLO.js";
|
|
241
|
+
import "./chunk-ZKQ2I3S2.js";
|
|
242
242
|
import {
|
|
243
243
|
adaptAndVerify
|
|
244
|
-
} from "./chunk-
|
|
245
|
-
import "./chunk-
|
|
244
|
+
} from "./chunk-CPWA6RWE.js";
|
|
245
|
+
import "./chunk-4G7OVYJX.js";
|
|
246
246
|
import "./chunk-AZ7L3HFD.js";
|
|
247
|
-
import "./chunk-
|
|
248
|
-
import "./chunk-
|
|
247
|
+
import "./chunk-OSBPGWTE.js";
|
|
248
|
+
import "./chunk-5BTJMINS.js";
|
|
249
249
|
import {
|
|
250
250
|
DockerRunner,
|
|
251
251
|
LocalShellRunner,
|
|
@@ -277,7 +277,7 @@ import {
|
|
|
277
277
|
runSmolvmPocSteps,
|
|
278
278
|
targetRequiresScope,
|
|
279
279
|
validateAwsCredentials
|
|
280
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-HHPWRY2M.js";
|
|
281
281
|
import "./chunk-K2PWUPUI.js";
|
|
282
282
|
import {
|
|
283
283
|
buildIntelDossier,
|
|
@@ -285,14 +285,14 @@ import {
|
|
|
285
285
|
searchAdvisories,
|
|
286
286
|
searchSimilar,
|
|
287
287
|
searchTargetHistory
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-YL6YAGLL.js";
|
|
289
289
|
import "./chunk-2OQOQ2FZ.js";
|
|
290
290
|
import "./chunk-UEX7PFSE.js";
|
|
291
|
-
import "./chunk-
|
|
292
|
-
import "./chunk-
|
|
291
|
+
import "./chunk-NLH4LMWH.js";
|
|
292
|
+
import "./chunk-WZRVS7SB.js";
|
|
293
293
|
import {
|
|
294
294
|
runSourceFix
|
|
295
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-XA2O4WXA.js";
|
|
296
296
|
import {
|
|
297
297
|
DEFAULT_WORKBENCH_BROKER_LIMITS,
|
|
298
298
|
appendImprovementLedgerEntry,
|
|
@@ -305,7 +305,7 @@ import {
|
|
|
305
305
|
resolveSmolvmRuntime,
|
|
306
306
|
runWorkbenchBrokerProgram,
|
|
307
307
|
verifyImprovementLedger
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-OHHCGDJ2.js";
|
|
309
309
|
import {
|
|
310
310
|
runHttpConformanceCheck
|
|
311
311
|
} from "./chunk-SQCBHFWN.js";
|
|
@@ -314,7 +314,7 @@ import {
|
|
|
314
314
|
} from "./chunk-GVD6SJGH.js";
|
|
315
315
|
import {
|
|
316
316
|
createRuntime
|
|
317
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-IFME676H.js";
|
|
318
318
|
import "./chunk-W6UWZFKL.js";
|
|
319
319
|
import {
|
|
320
320
|
buildAdGraph,
|
|
@@ -333,7 +333,7 @@ import {
|
|
|
333
333
|
resolveOsecDbPath,
|
|
334
334
|
resolveOsecRunStorage,
|
|
335
335
|
writeOsecRunReport
|
|
336
|
-
} from "./chunk-
|
|
336
|
+
} from "./chunk-VWITLWXB.js";
|
|
337
337
|
import {
|
|
338
338
|
DISCLOSURE_STATUSES,
|
|
339
339
|
IncompleteEvidenceError,
|
|
@@ -366,7 +366,7 @@ import {
|
|
|
366
366
|
import {
|
|
367
367
|
findCveArtifacts,
|
|
368
368
|
normaliseCveId
|
|
369
|
-
} from "./chunk-
|
|
369
|
+
} from "./chunk-XDKB2P5X.js";
|
|
370
370
|
import {
|
|
371
371
|
prepare
|
|
372
372
|
} from "./chunk-V36HVTUL.js";
|
|
@@ -377,13 +377,13 @@ import {
|
|
|
377
377
|
getScopeEnforcementState,
|
|
378
378
|
isScopeEnforcementEnabled,
|
|
379
379
|
loadScope
|
|
380
|
-
} from "./chunk-
|
|
380
|
+
} from "./chunk-X7LAEEUW.js";
|
|
381
381
|
import "./chunk-5IBCBQEH.js";
|
|
382
|
-
import "./chunk-
|
|
382
|
+
import "./chunk-WSDDGFA6.js";
|
|
383
383
|
import {
|
|
384
384
|
LlmApiRuntime,
|
|
385
385
|
features
|
|
386
|
-
} from "./chunk-
|
|
386
|
+
} from "./chunk-AV2LG2L7.js";
|
|
387
387
|
import {
|
|
388
388
|
AgentActionScenarioSchema,
|
|
389
389
|
DEFAULT_AUTONOMY_MODE,
|
|
@@ -400,7 +400,7 @@ import {
|
|
|
400
400
|
parseAgentActionEvidenceManifest,
|
|
401
401
|
pocStepArraySchema,
|
|
402
402
|
reportSummarySchema
|
|
403
|
-
} from "./chunk-
|
|
403
|
+
} from "./chunk-KAU6NLGP.js";
|
|
404
404
|
import {
|
|
405
405
|
ZodOptional,
|
|
406
406
|
external_exports
|
|
@@ -533,7 +533,7 @@ function registerScanCommand(program) {
|
|
|
533
533
|
).option("--base <branch>", "Base branch for `--emit pr` (default: main)").option("--dry-run", "For `--emit pr`: print git/gh commands instead of running them. Auto-enabled if `gh auth status` fails.", false).option("--emit-out-dir <path>", "Directory for `--emit pr` rollup files (default: system temp)").option("--resume <run-id>", "Resume a previous run from its journal on disk (0#374). Locates the run's journal, rehydrates agent state, and continues from the last entry.").option("--branch-from <entry-index>", "Branch the journal at the given entry index before resuming (requires --resume). Copies entries 0..N into a new run and resumes from there.").option("--verbose", "Show detailed output", false).option("--replay", "Replay the last scan's results", false).action(async (opts) => {
|
|
534
534
|
if (opts.replay) {
|
|
535
535
|
try {
|
|
536
|
-
const { osecDB: osecDB2 } = await import("./dist-
|
|
536
|
+
const { osecDB: osecDB2 } = await import("./dist-FSS7MBDF.js");
|
|
537
537
|
const db = new osecDB2(opts.dbPath);
|
|
538
538
|
const scans = db.listScans(1);
|
|
539
539
|
if (scans.length === 0) {
|
|
@@ -662,7 +662,7 @@ function registerScanCommand(program) {
|
|
|
662
662
|
process.exit(2);
|
|
663
663
|
}
|
|
664
664
|
try {
|
|
665
|
-
const { loadScope: loadScope2 } = await import("./dist-
|
|
665
|
+
const { loadScope: loadScope2 } = await import("./dist-L3XJWWZ6.js");
|
|
666
666
|
const policy = loadScope2(scopeFile);
|
|
667
667
|
const verdict = scopeEnforcement.enabled ? policy.match(String(opts.target)) : void 0;
|
|
668
668
|
if (verdict && !verdict.allowed) {
|
|
@@ -689,7 +689,7 @@ function registerScanCommand(program) {
|
|
|
689
689
|
loadScope: loadScope2,
|
|
690
690
|
resolveAttribution: resolveAttribution2,
|
|
691
691
|
extractAttributionFromScopeJson: extractAttributionFromScopeJson2
|
|
692
|
-
} = await import("./dist-
|
|
692
|
+
} = await import("./dist-L3XJWWZ6.js");
|
|
693
693
|
const policy = scopeFile ? loadScope2(scopeFile) : void 0;
|
|
694
694
|
resolveAttribution2({
|
|
695
695
|
scopeFileBlock: policy ? extractAttributionFromScopeJson2(policy.raw) : void 0,
|
|
@@ -707,7 +707,7 @@ function registerScanCommand(program) {
|
|
|
707
707
|
loadScope: loadScope2,
|
|
708
708
|
resolveEngagementProfile: resolveEngagementProfile2,
|
|
709
709
|
extractEngagementFromScopeJson: extractEngagementFromScopeJson2
|
|
710
|
-
} = await import("./dist-
|
|
710
|
+
} = await import("./dist-L3XJWWZ6.js");
|
|
711
711
|
const policy = scopeFile ? loadScope2(scopeFile) : void 0;
|
|
712
712
|
resolveEngagementProfile2({
|
|
713
713
|
scopeFileBlock: policy ? extractEngagementFromScopeJson2(policy.raw) : void 0,
|
|
@@ -736,7 +736,7 @@ function registerScanCommand(program) {
|
|
|
736
736
|
const rateLimit = opts.rateLimit;
|
|
737
737
|
if (rateLimit !== void 0 && rateLimit !== "") {
|
|
738
738
|
try {
|
|
739
|
-
const { parseRateLimitFlag: parseRateLimitFlag2 } = await import("./dist-
|
|
739
|
+
const { parseRateLimitFlag: parseRateLimitFlag2 } = await import("./dist-L3XJWWZ6.js");
|
|
740
740
|
parseRateLimitFlag2(rateLimit);
|
|
741
741
|
} catch (err) {
|
|
742
742
|
console.error(source_default.red(err instanceof Error ? err.message : String(err)));
|
|
@@ -905,7 +905,7 @@ function registerResumeCommand(program) {
|
|
|
905
905
|
|
|
906
906
|
// packages/cli/src/commands/replay.ts
|
|
907
907
|
async function replayScan(opts) {
|
|
908
|
-
const { osecDB: osecDB2 } = await import("./dist-
|
|
908
|
+
const { osecDB: osecDB2 } = await import("./dist-FSS7MBDF.js");
|
|
909
909
|
const db = new osecDB2(opts.dbPath);
|
|
910
910
|
const requestedScan = opts.scan;
|
|
911
911
|
let scanRecord;
|
|
@@ -974,7 +974,7 @@ function registerReplayCommand(program) {
|
|
|
974
974
|
try {
|
|
975
975
|
const { isBunRuntime: isBunRuntime2, canUseOpenTui: canUseOpenTui2 } = await import("./runtime-XFWJTBUO.js");
|
|
976
976
|
if (isBunRuntime2() && canUseOpenTui2()) {
|
|
977
|
-
const { showOpenTuiReplay } = await import("./run-
|
|
977
|
+
const { showOpenTuiReplay } = await import("./run-GAFKBCTN.js");
|
|
978
978
|
await showOpenTuiReplay({ dbPath: opts.dbPath, scanId: opts.scan });
|
|
979
979
|
return;
|
|
980
980
|
}
|
|
@@ -995,7 +995,7 @@ function registerHistoryCommand(program) {
|
|
|
995
995
|
const limit2 = Number.parseInt(opts.limit ?? "10", 10);
|
|
996
996
|
const { isBunRuntime: isBunRuntime2, canUseOpenTui: canUseOpenTui2 } = await import("./runtime-XFWJTBUO.js");
|
|
997
997
|
if (opts.dbPath && isBunRuntime2() && canUseOpenTui2()) {
|
|
998
|
-
const { showOpenTuiHistory } = await import("./run-
|
|
998
|
+
const { showOpenTuiHistory } = await import("./run-GAFKBCTN.js");
|
|
999
999
|
await showOpenTuiHistory({ dbPath: opts.dbPath, limit: limit2 });
|
|
1000
1000
|
return;
|
|
1001
1001
|
}
|
|
@@ -1186,7 +1186,7 @@ function registerFindingsCommand(program) {
|
|
|
1186
1186
|
const selectedDbPath = resolveDbPath(resolved);
|
|
1187
1187
|
const { isBunRuntime: isBunRuntime2, canUseOpenTui: canUseOpenTui2 } = await import("./runtime-XFWJTBUO.js");
|
|
1188
1188
|
if (selectedDbPath && isBunRuntime2() && canUseOpenTui2()) {
|
|
1189
|
-
const { showOpenTuiFindings } = await import("./run-
|
|
1189
|
+
const { showOpenTuiFindings } = await import("./run-GAFKBCTN.js");
|
|
1190
1190
|
await showOpenTuiFindings({
|
|
1191
1191
|
dbPath: selectedDbPath,
|
|
1192
1192
|
scan: resolved.scan,
|
|
@@ -1209,7 +1209,7 @@ function registerFindingsCommand(program) {
|
|
|
1209
1209
|
const selectedDbPath = resolveDbPath(resolved);
|
|
1210
1210
|
const { isBunRuntime: isBunRuntime2, canUseOpenTui: canUseOpenTui2 } = await import("./runtime-XFWJTBUO.js");
|
|
1211
1211
|
if (selectedDbPath && isBunRuntime2() && canUseOpenTui2()) {
|
|
1212
|
-
const { showOpenTuiFindings } = await import("./run-
|
|
1212
|
+
const { showOpenTuiFindings } = await import("./run-GAFKBCTN.js");
|
|
1213
1213
|
await showOpenTuiFindings({
|
|
1214
1214
|
dbPath: selectedDbPath,
|
|
1215
1215
|
scan: resolved.scan,
|
|
@@ -1267,7 +1267,7 @@ function registerFindingsCommand(program) {
|
|
|
1267
1267
|
console.log(` ${source_default.dim(finding.evidenceAnalysis)}`);
|
|
1268
1268
|
}
|
|
1269
1269
|
{
|
|
1270
|
-
const { summarizeTriageProvenance, formatTriageProvenance } = await import("./dist-
|
|
1270
|
+
const { summarizeTriageProvenance, formatTriageProvenance } = await import("./dist-L3XJWWZ6.js");
|
|
1271
1271
|
const provenance = summarizeTriageProvenance({
|
|
1272
1272
|
...finding,
|
|
1273
1273
|
layerVerdicts: parseLayerVerdicts(finding.layerVerdicts)
|
|
@@ -1387,7 +1387,7 @@ import { existsSync as existsSync3 } from "node:fs";
|
|
|
1387
1387
|
var VALID_BUILD_SYSTEMS = /* @__PURE__ */ new Set(["autotools", "cmake", "meson", "auto"]);
|
|
1388
1388
|
var VALID_SANITIZERS = /* @__PURE__ */ new Set(["asan", "ubsan", "msan"]);
|
|
1389
1389
|
async function runHarnessTier2(args2) {
|
|
1390
|
-
const { buildTier2Harness, extractCorpus } = await import("./dist-
|
|
1390
|
+
const { buildTier2Harness, extractCorpus } = await import("./dist-L3XJWWZ6.js");
|
|
1391
1391
|
const repoAbs = resolve2(args2.repo);
|
|
1392
1392
|
if (!existsSync3(repoAbs)) {
|
|
1393
1393
|
throw new Error(`Tier-2: repo path '${repoAbs}' does not exist.`);
|
|
@@ -1483,7 +1483,7 @@ async function runHarnessTier3(args2) {
|
|
|
1483
1483
|
buildTier2Harness,
|
|
1484
1484
|
extractCorpus,
|
|
1485
1485
|
runTier3Validation
|
|
1486
|
-
} = await import("./dist-
|
|
1486
|
+
} = await import("./dist-L3XJWWZ6.js");
|
|
1487
1487
|
const repoAbs = resolve3(args2.repo);
|
|
1488
1488
|
if (!existsSync4(repoAbs)) {
|
|
1489
1489
|
throw new Error(`Tier-3: repo path '${repoAbs}' does not exist.`);
|
|
@@ -1703,7 +1703,7 @@ function registerReviewCommand(program) {
|
|
|
1703
1703
|
let seedFindings;
|
|
1704
1704
|
const seedPath = opts.seedFindings;
|
|
1705
1705
|
if (seedPath) {
|
|
1706
|
-
const { readSeedFindings } = await import("./dist-
|
|
1706
|
+
const { readSeedFindings } = await import("./dist-L3XJWWZ6.js");
|
|
1707
1707
|
seedFindings = readSeedFindings(seedPath);
|
|
1708
1708
|
console.log(
|
|
1709
1709
|
source_default.cyan(
|
|
@@ -1719,7 +1719,7 @@ function registerReviewCommand(program) {
|
|
|
1719
1719
|
);
|
|
1720
1720
|
}
|
|
1721
1721
|
if (fixCommit) {
|
|
1722
|
-
const { huntAppFixVariants, appFixVariantsToSeedFindings } = await import("./dist-
|
|
1722
|
+
const { huntAppFixVariants, appFixVariantsToSeedFindings } = await import("./dist-L3XJWWZ6.js");
|
|
1723
1723
|
const result = huntAppFixVariants({
|
|
1724
1724
|
repoPath: repo,
|
|
1725
1725
|
fixCommit
|
|
@@ -2024,7 +2024,7 @@ function registerDoctorCommand(program) {
|
|
|
2024
2024
|
program.command("doctor").description("Check local runtime prerequisites and suggest the next command").action(async () => {
|
|
2025
2025
|
const { isBunRuntime: isBunRuntime2, canUseOpenTui: canUseOpenTui2 } = await import("./runtime-XFWJTBUO.js");
|
|
2026
2026
|
if (isBunRuntime2() && canUseOpenTui2()) {
|
|
2027
|
-
const { showOpenTuiDoctor } = await import("./run-
|
|
2027
|
+
const { showOpenTuiDoctor } = await import("./run-GAFKBCTN.js");
|
|
2028
2028
|
await showOpenTuiDoctor();
|
|
2029
2029
|
return;
|
|
2030
2030
|
}
|
|
@@ -3351,7 +3351,7 @@ data: ${JSON.stringify(event)}
|
|
|
3351
3351
|
`);
|
|
3352
3352
|
}
|
|
3353
3353
|
async function handleApiRequest(req, res, pathname, dbPath, controlToken) {
|
|
3354
|
-
const { osecDB: osecDB2 } = await import("./dist-
|
|
3354
|
+
const { osecDB: osecDB2 } = await import("./dist-FSS7MBDF.js");
|
|
3355
3355
|
if (isPresentationEventsStreamPath(pathname)) {
|
|
3356
3356
|
if (req.method !== "GET") {
|
|
3357
3357
|
json(res, 405, { error: "Method not allowed" });
|
|
@@ -3405,7 +3405,7 @@ async function handleApiRequest(req, res, pathname, dbPath, controlToken) {
|
|
|
3405
3405
|
return true;
|
|
3406
3406
|
}
|
|
3407
3407
|
if (controlPath.action === "recover-stale-workers") {
|
|
3408
|
-
const { recoverStaleWorkers } = await import("./orchestrate-
|
|
3408
|
+
const { recoverStaleWorkers } = await import("./orchestrate-DWWUT5RC.js");
|
|
3409
3409
|
const body = await readJson(req);
|
|
3410
3410
|
const recovered = recoverStaleWorkers(
|
|
3411
3411
|
dbPath,
|
|
@@ -3489,8 +3489,8 @@ async function handleApiRequest(req, res, pathname, dbPath, controlToken) {
|
|
|
3489
3489
|
return true;
|
|
3490
3490
|
}
|
|
3491
3491
|
if (controlPath.action === "reset-database") {
|
|
3492
|
-
const { resetOsecDatabase } = await import("./dist-
|
|
3493
|
-
const { seedVerificationWorkbench } = await import("./db-
|
|
3492
|
+
const { resetOsecDatabase } = await import("./dist-FSS7MBDF.js");
|
|
3493
|
+
const { seedVerificationWorkbench } = await import("./db-5IWEJUYV.js");
|
|
3494
3494
|
const body = await readJson(req);
|
|
3495
3495
|
const seed = typeof body.seed === "string" ? body.seed.trim().toLowerCase() : "verification";
|
|
3496
3496
|
if (!["verification", "empty"].includes(seed)) {
|
|
@@ -3835,7 +3835,7 @@ function registerTuiCommand(program) {
|
|
|
3835
3835
|
program.command("tui").alias("watch").description("Open the unified engagement control plane (Bun-only)").action(async () => {
|
|
3836
3836
|
const { isBunRuntime: isBunRuntime2 } = await import("./runtime-XFWJTBUO.js");
|
|
3837
3837
|
if (isBunRuntime2()) {
|
|
3838
|
-
const { showOpenTuiHome } = await import("./run-
|
|
3838
|
+
const { showOpenTuiHome } = await import("./run-GAFKBCTN.js");
|
|
3839
3839
|
await showOpenTuiHome();
|
|
3840
3840
|
return;
|
|
3841
3841
|
}
|
|
@@ -5692,11 +5692,11 @@ function rowToFinding(row) {
|
|
|
5692
5692
|
};
|
|
5693
5693
|
}
|
|
5694
5694
|
async function openStore(dbPath) {
|
|
5695
|
-
const { MemoryStore } = await import("./dist-
|
|
5695
|
+
const { MemoryStore } = await import("./dist-L3XJWWZ6.js");
|
|
5696
5696
|
return new MemoryStore(dbPath);
|
|
5697
5697
|
}
|
|
5698
5698
|
async function loadFinding2(dbPath, findingId) {
|
|
5699
|
-
const { osecDB: osecDB2 } = await import("./dist-
|
|
5699
|
+
const { osecDB: osecDB2 } = await import("./dist-FSS7MBDF.js");
|
|
5700
5700
|
const db = new osecDB2(dbPath);
|
|
5701
5701
|
try {
|
|
5702
5702
|
const rows = db.listFindings({ limit: 5e3 });
|
|
@@ -5771,7 +5771,7 @@ async function runMemoryRemove(id, dbPath) {
|
|
|
5771
5771
|
async function runMarkFp(findingId, opts) {
|
|
5772
5772
|
const row = await loadFinding2(opts.dbPath, findingId);
|
|
5773
5773
|
const finding = rowToFinding(row);
|
|
5774
|
-
const { osecDB: osecDB2 } = await import("./dist-
|
|
5774
|
+
const { osecDB: osecDB2 } = await import("./dist-FSS7MBDF.js");
|
|
5775
5775
|
const db = new osecDB2(opts.dbPath);
|
|
5776
5776
|
try {
|
|
5777
5777
|
db.updateFindingTriage(row.id, "suppressed", opts.reason);
|
|
@@ -9486,7 +9486,7 @@ function registerIngestCommand(program) {
|
|
|
9486
9486
|
reviewKernelCrashSubsystems,
|
|
9487
9487
|
verifyStandaloneKernelReproducer,
|
|
9488
9488
|
verifyKernelCrash
|
|
9489
|
-
} = await import("./dist-
|
|
9489
|
+
} = await import("./dist-L3XJWWZ6.js");
|
|
9490
9490
|
let kernelBuild;
|
|
9491
9491
|
if (opts.kernelTree) {
|
|
9492
9492
|
kernelBuild = prepareKernelVmArtifacts({
|
|
@@ -9909,7 +9909,7 @@ function registerKernelCommand(program) {
|
|
|
9909
9909
|
checkAlreadyFixed,
|
|
9910
9910
|
rankKernelHypothesesWithJev,
|
|
9911
9911
|
verifyStaticKernelFinding
|
|
9912
|
-
} = await import("./dist-
|
|
9912
|
+
} = await import("./dist-L3XJWWZ6.js");
|
|
9913
9913
|
const noveltyExcluded = opts.upstreamTree ? findings.flatMap((finding) => {
|
|
9914
9914
|
const path = finding.reviewAnnotation?.path ?? finding.evidence.request.match(/([^\s:]+\.[ch]):\d+/)?.[1];
|
|
9915
9915
|
if (!path) return [];
|
|
@@ -9956,7 +9956,7 @@ function registerKernelCommand(program) {
|
|
|
9956
9956
|
try {
|
|
9957
9957
|
const config = jevConfigFromEnvironment("kernel", process.env);
|
|
9958
9958
|
if (!config) throw new Error("Jev commit prepass requires ZERO_JEV_FEATURES=kernel and a configured provider");
|
|
9959
|
-
const { rankKernelCommitsWithJev } = await import("./dist-
|
|
9959
|
+
const { rankKernelCommitsWithJev } = await import("./dist-L3XJWWZ6.js");
|
|
9960
9960
|
const result = await rankKernelCommitsWithJev({
|
|
9961
9961
|
tree: opts.tree,
|
|
9962
9962
|
evaluator: createJevEvaluator(config),
|
|
@@ -9980,7 +9980,7 @@ function registerKernelCommand(program) {
|
|
|
9980
9980
|
try {
|
|
9981
9981
|
const config = jevConfigFromEnvironment("kernel", process.env);
|
|
9982
9982
|
if (!config) throw new Error("Jev source prepass requires ZERO_JEV_FEATURES=kernel and a configured provider");
|
|
9983
|
-
const { runKernelSourceJevPrepass } = await import("./dist-
|
|
9983
|
+
const { runKernelSourceJevPrepass } = await import("./dist-L3XJWWZ6.js");
|
|
9984
9984
|
const result = await runKernelSourceJevPrepass({
|
|
9985
9985
|
tree: opts.tree,
|
|
9986
9986
|
subtree: opts.subtree,
|
|
@@ -10014,7 +10014,7 @@ function registerKernelCommand(program) {
|
|
|
10014
10014
|
if (crashes.length === 0) throw new Error("Crash input must be a CrashRecord[] or an object with a crashes array");
|
|
10015
10015
|
const records = crashes.filter((c) => !!c && typeof c === "object" && "id" in c && "summary" in c && typeof c.id === "string" && typeof c.summary === "string");
|
|
10016
10016
|
if (records.length !== crashes.length) throw new Error("Every crash record requires string id and summary fields");
|
|
10017
|
-
const { rankCrashesWithJev, crashSummaryFromTriage } = await import("./dist-
|
|
10017
|
+
const { rankCrashesWithJev, crashSummaryFromTriage } = await import("./dist-L3XJWWZ6.js");
|
|
10018
10018
|
const result = await rankCrashesWithJev(
|
|
10019
10019
|
records,
|
|
10020
10020
|
createJevEvaluator(config)
|
|
@@ -10042,7 +10042,7 @@ function registerKernelCommand(program) {
|
|
|
10042
10042
|
const details = parsePositiveInt(opts.details, "--details", 100);
|
|
10043
10043
|
const detailDelayMs = parsePositiveInt(opts.detailDelay, "--detail-delay", 5e3);
|
|
10044
10044
|
const subsystems = opts.subsystems.split(",").map((value) => value.trim()).filter(Boolean);
|
|
10045
|
-
const { defaultSyzbotFetcher, mineSyzbotQueue, toHuntCandidates } = await import("./dist-
|
|
10045
|
+
const { defaultSyzbotFetcher, mineSyzbotQueue, toHuntCandidates } = await import("./dist-L3XJWWZ6.js");
|
|
10046
10046
|
const result = await mineSyzbotQueue({
|
|
10047
10047
|
fetch: defaultSyzbotFetcher,
|
|
10048
10048
|
fetchDetail: defaultSyzbotFetcher,
|
|
@@ -10100,7 +10100,7 @@ function registerKernelCommand(program) {
|
|
|
10100
10100
|
`Invalid output format '${opts.output}'. Valid: ${VALID_OUTPUT_FORMATS2.join(", ")}`
|
|
10101
10101
|
);
|
|
10102
10102
|
}
|
|
10103
|
-
const { runKernelVariantHunt } = await import("./dist-
|
|
10103
|
+
const { runKernelVariantHunt } = await import("./dist-L3XJWWZ6.js");
|
|
10104
10104
|
const report = await runKernelVariantHunt({
|
|
10105
10105
|
tree: opts.tree,
|
|
10106
10106
|
advisory: opts.advisory,
|
|
@@ -10203,7 +10203,7 @@ function resolveOutputDir(opts, scanId) {
|
|
|
10203
10203
|
return join10(homedir2(), "0", "disclosures", `scan-${scanId.slice(0, 8)}`);
|
|
10204
10204
|
}
|
|
10205
10205
|
async function disclose(findingId, opts) {
|
|
10206
|
-
const { osecDB: osecDB2 } = await import("./dist-
|
|
10206
|
+
const { osecDB: osecDB2 } = await import("./dist-FSS7MBDF.js");
|
|
10207
10207
|
const db = new osecDB2(opts.dbPath);
|
|
10208
10208
|
try {
|
|
10209
10209
|
let routeDroppedFinding2 = function(args2) {
|
|
@@ -10965,7 +10965,7 @@ function parseDurationMs(raw) {
|
|
|
10965
10965
|
}
|
|
10966
10966
|
}
|
|
10967
10967
|
async function runKernelFindingVerify(opts) {
|
|
10968
|
-
const { verifyStaticKernelFinding, applyVerificationToFinding } = await import("./dist-
|
|
10968
|
+
const { verifyStaticKernelFinding, applyVerificationToFinding } = await import("./dist-L3XJWWZ6.js");
|
|
10969
10969
|
const rawFinding = readJson2(opts.findingPath, "finding");
|
|
10970
10970
|
let finding;
|
|
10971
10971
|
try {
|
|
@@ -11520,7 +11520,7 @@ async function runExploit(opts) {
|
|
|
11520
11520
|
classifyPrimitiveFromDmesg,
|
|
11521
11521
|
describeKernelPrimitive,
|
|
11522
11522
|
runWeaponization
|
|
11523
|
-
} = await import("./dist-
|
|
11523
|
+
} = await import("./dist-L3XJWWZ6.js");
|
|
11524
11524
|
const rawFinding = readJson3(opts.findingPath, "finding");
|
|
11525
11525
|
let finding;
|
|
11526
11526
|
try {
|
|
@@ -11583,7 +11583,7 @@ async function runExploit(opts) {
|
|
|
11583
11583
|
}
|
|
11584
11584
|
async function exploitAction(opts) {
|
|
11585
11585
|
if (opts.agent) {
|
|
11586
|
-
const { agentFromExploitOpts } = await import("./exploit-agent-
|
|
11586
|
+
const { agentFromExploitOpts } = await import("./exploit-agent-KW4EB7BE.js");
|
|
11587
11587
|
process.exitCode = await agentFromExploitOpts({
|
|
11588
11588
|
...opts.task ? { task: opts.task } : {},
|
|
11589
11589
|
...opts.flagPath ? { flagPath: opts.flagPath } : {},
|
|
@@ -11598,7 +11598,7 @@ async function exploitAction(opts) {
|
|
|
11598
11598
|
return;
|
|
11599
11599
|
}
|
|
11600
11600
|
if (opts.autoclimb) {
|
|
11601
|
-
const { autoclimbFromExploitOpts } = await import("./exploit-autoclimb-
|
|
11601
|
+
const { autoclimbFromExploitOpts } = await import("./exploit-autoclimb-CXJ2ERRO.js");
|
|
11602
11602
|
process.exitCode = await autoclimbFromExploitOpts({
|
|
11603
11603
|
...opts.bugSpec ? { bugSpec: opts.bugSpec } : {},
|
|
11604
11604
|
...opts.bootScript ? { bootScript: opts.bootScript } : {},
|
|
@@ -11612,7 +11612,7 @@ async function exploitAction(opts) {
|
|
|
11612
11612
|
throw new Error("missing required flag: --finding <path>");
|
|
11613
11613
|
}
|
|
11614
11614
|
if (opts.climb) {
|
|
11615
|
-
const { runClimb } = await import("./exploit-climb-
|
|
11615
|
+
const { runClimb } = await import("./exploit-climb-TJWLY4XC.js");
|
|
11616
11616
|
let loopBoots = 8;
|
|
11617
11617
|
if (opts.loopBoots !== void 0) {
|
|
11618
11618
|
loopBoots = parseInt(opts.loopBoots, 10);
|
|
@@ -11785,7 +11785,7 @@ async function runHunt(opts) {
|
|
|
11785
11785
|
makeLloreJudge,
|
|
11786
11786
|
makeHuntProveStage,
|
|
11787
11787
|
prepare: prepare2
|
|
11788
|
-
} = await import("./dist-
|
|
11788
|
+
} = await import("./dist-L3XJWWZ6.js");
|
|
11789
11789
|
const log = opts.log ?? (() => {
|
|
11790
11790
|
});
|
|
11791
11791
|
const runtime = opts.runtime ?? "api";
|
|
@@ -12133,7 +12133,7 @@ function parseWitnessMode(raw) {
|
|
|
12133
12133
|
}
|
|
12134
12134
|
async function recencyAction(opts) {
|
|
12135
12135
|
if (!opts.tree) throw new Error("missing required flag: --tree <kernel source tree>");
|
|
12136
|
-
const { runRecencyHunt, renderRecencyReportMarkdown } = await import("./dist-
|
|
12136
|
+
const { runRecencyHunt, renderRecencyReportMarkdown } = await import("./dist-L3XJWWZ6.js");
|
|
12137
12137
|
const tree = resolve16(opts.tree);
|
|
12138
12138
|
const runtime = opts.runtime ?? "api";
|
|
12139
12139
|
const modelDir = opts.modelDir ? resolve16(opts.modelDir) : join12(tree, ".recency-models");
|
|
@@ -12473,7 +12473,7 @@ async function runDeepReview(opts) {
|
|
|
12473
12473
|
cairoVerifyLenses,
|
|
12474
12474
|
moveFinderLenses,
|
|
12475
12475
|
moveVerifyLenses
|
|
12476
|
-
} = await import("./dist-
|
|
12476
|
+
} = await import("./dist-L3XJWWZ6.js");
|
|
12477
12477
|
const costLedger = new ScanCostLedger();
|
|
12478
12478
|
const scanStartedAt = Date.now();
|
|
12479
12479
|
const log = opts.log ?? (() => {
|
|
@@ -12519,7 +12519,7 @@ async function runDeepReview(opts) {
|
|
|
12519
12519
|
let lanes = null;
|
|
12520
12520
|
let allocateAcrossLanes;
|
|
12521
12521
|
if (opts.useThreatModel) {
|
|
12522
|
-
const threatModule = await import("./dist-
|
|
12522
|
+
const threatModule = await import("./dist-L3XJWWZ6.js");
|
|
12523
12523
|
allocateAcrossLanes = threatModule.allocateCandidatesAcrossLanes;
|
|
12524
12524
|
const rtType = runtime !== "auto" ? runtime : "api";
|
|
12525
12525
|
const plannerRuntime = threatModule.createRuntime({
|
|
@@ -12903,7 +12903,7 @@ function resolveArtifactDir(value, sourceRoot) {
|
|
|
12903
12903
|
return canonicalArtifactDir;
|
|
12904
12904
|
}
|
|
12905
12905
|
async function runMemSafety(opts) {
|
|
12906
|
-
const { prepare: prepare2, runMemSafetyScan } = await import("./dist-
|
|
12906
|
+
const { prepare: prepare2, runMemSafetyScan } = await import("./dist-L3XJWWZ6.js");
|
|
12907
12907
|
const log = opts.log ?? (() => {
|
|
12908
12908
|
});
|
|
12909
12909
|
const prepared = await prepare2(
|
|
@@ -13110,7 +13110,7 @@ function parseWitnessMode2(raw) {
|
|
|
13110
13110
|
return m;
|
|
13111
13111
|
}
|
|
13112
13112
|
async function runAssumptionHuntCli(sourceRoot, opts) {
|
|
13113
|
-
const { runAssumptionHunt, makeSkepticVerifier } = await import("./dist-
|
|
13113
|
+
const { runAssumptionHunt, makeSkepticVerifier } = await import("./dist-L3XJWWZ6.js");
|
|
13114
13114
|
const log = (m) => process.stderr.write(m + "\n");
|
|
13115
13115
|
const runtime = opts.runtime ?? "api";
|
|
13116
13116
|
const root = resolve19(sourceRoot);
|
|
@@ -14561,7 +14561,7 @@ function registerConsoleCommand(program) {
|
|
|
14561
14561
|
let resumedTarget;
|
|
14562
14562
|
let openResumePicker = false;
|
|
14563
14563
|
if (opts.continue || opts.resume !== void 0) {
|
|
14564
|
-
const { listSessions, loadSession } = await import("./session-store-
|
|
14564
|
+
const { listSessions, loadSession } = await import("./session-store-XIDFGG7K.js");
|
|
14565
14565
|
const idArg = typeof opts.resume === "string" ? opts.resume.trim() : "";
|
|
14566
14566
|
if (idArg || opts.continue) {
|
|
14567
14567
|
let stored = idArg ? loadSession(idArg) : null;
|
|
@@ -14642,7 +14642,7 @@ turn failed: ${err instanceof Error ? err.message : String(err)}`));
|
|
|
14642
14642
|
console.log(source_default.dim(`MCP: connected ${mcpHost.serverIds().length} server(s) \u2014 ${mcpHost.registeredTools().length} tool(s)`));
|
|
14643
14643
|
}
|
|
14644
14644
|
if (useOpenTui) {
|
|
14645
|
-
const { showOpenTuiConsole, showOpenTuiResume } = await import("./run-
|
|
14645
|
+
const { showOpenTuiConsole, showOpenTuiResume } = await import("./run-GAFKBCTN.js");
|
|
14646
14646
|
const baseOptions = {
|
|
14647
14647
|
target: focusedTarget,
|
|
14648
14648
|
scope,
|
|
@@ -14886,8 +14886,8 @@ function printHelp() {
|
|
|
14886
14886
|
}
|
|
14887
14887
|
console.log(source_default.dim(" Modes: Standard runs automatically in scope and can request a narrow session-only extension; Co-pilot adds approval for every non-read-only tool; YOLO runs only inside an explicit configured scope and never requests extensions."));
|
|
14888
14888
|
console.log(source_default.dim(" The Node fallback cannot approve scope extensions or Co-pilot actions; use the Bun TUI for those approvals."));
|
|
14889
|
-
console.log(source_default.dim("
|
|
14890
|
-
console.log(source_default.dim("
|
|
14889
|
+
console.log(source_default.dim(" Non-slash input is sent to the engine as an operator message; unknown slash commands stay local.\n"));
|
|
14890
|
+
console.log(source_default.dim(" Other commands require the Bun TUI. Switch agents in the inline chat worklist."));
|
|
14891
14891
|
console.log(source_default.dim(" Run the bare `0` command for the full interactive experience.\n"));
|
|
14892
14892
|
}
|
|
14893
14893
|
function findCategory(name) {
|
|
@@ -15908,7 +15908,7 @@ function print(value) {
|
|
|
15908
15908
|
function registerResearchCommand(program) {
|
|
15909
15909
|
const research = program.command("research").description("Run target-specific engines through the shared evidence research plane");
|
|
15910
15910
|
research.command("pipeline").description("Run the existing web/AI/source/package pipeline through the shared evidence plane").requiredOption("--target <target>", "URL, local path, repository, package, or image").option("--target-type <type>", "url, web-app, source-code, npm-package, pypi-package, cargo-package, or oci-image").option("--profile <profile>", "Source review profile").option("--depth <depth>", "quick, default, or deep", "default").option("--runtime <runtime>", "auto, api, claude, codex, gemini, or ollama", "auto").option("--artifact-root <path>", "Research artifact root", ".0-research").action(async (opts) => {
|
|
15911
|
-
const { UnifiedPipelineResearchAdapter, runResearch } = await import("./dist-
|
|
15911
|
+
const { UnifiedPipelineResearchAdapter, runResearch } = await import("./dist-L3XJWWZ6.js");
|
|
15912
15912
|
const allowedTypes = /* @__PURE__ */ new Set(["url", "web-app", "source-code", "npm-package", "pypi-package", "cargo-package", "oci-image"]);
|
|
15913
15913
|
if (opts.targetType && !allowedTypes.has(opts.targetType)) throw new Error(`unsupported --target-type ${opts.targetType}`);
|
|
15914
15914
|
print(await runResearch(
|
|
@@ -15931,7 +15931,7 @@ function registerResearchCommand(program) {
|
|
|
15931
15931
|
));
|
|
15932
15932
|
});
|
|
15933
15933
|
research.command("mobile").description("Run passive mobile intake; indicators remain hypotheses and only scoped adapters may hand off targets").requiredOption("--target <path>", "Extracted APK/IPA directory or metadata file").option("--artifact-root <path>", "Research artifact root", ".0-research").action(async (opts) => {
|
|
15934
|
-
const { MobileStaticResearchAdapter, runResearch } = await import("./dist-
|
|
15934
|
+
const { MobileStaticResearchAdapter, runResearch } = await import("./dist-L3XJWWZ6.js");
|
|
15935
15935
|
const targetPath = resolve23(opts.target);
|
|
15936
15936
|
print(await runResearch(
|
|
15937
15937
|
new MobileStaticResearchAdapter(),
|
|
@@ -15940,7 +15940,7 @@ function registerResearchCommand(program) {
|
|
|
15940
15940
|
));
|
|
15941
15941
|
});
|
|
15942
15942
|
research.command("linux-matrix").description("Import externally executed vulnerable-vs-patched boot logs; 0 validates and hashes them but does not execute boots").requiredOption("--matrix <path>", "Versioned external boot-matrix manifest JSON").requiredOption("--finding <path>", "Existing Finding JSON to bind the proof to").option("--artifact-root <path>", "Research artifact root", ".0-research").action(async (opts) => {
|
|
15943
|
-
const { LinuxBootMatrixImportAdapter, runResearch } = await import("./dist-
|
|
15943
|
+
const { LinuxBootMatrixImportAdapter, runResearch } = await import("./dist-L3XJWWZ6.js");
|
|
15944
15944
|
const matrix = resolve23(opts.matrix);
|
|
15945
15945
|
const finding = JSON.parse(readFileSync20(resolve23(opts.finding), "utf8"));
|
|
15946
15946
|
const result = await runResearch(
|
|
@@ -15952,7 +15952,7 @@ function registerResearchCommand(program) {
|
|
|
15952
15952
|
print(result);
|
|
15953
15953
|
});
|
|
15954
15954
|
research.command("linux").description("Run a supplied Linux kernel reproducer through the shared N-boot evidence gate").requiredOption("--kernel-tree <path>", "Linux source tree").requiredOption("--reproducer <path>", "C reproducer or syzkaller .syz program").requiredOption("--finding <path>", "Existing Finding JSON to bind the proof to").requiredOption("--expected-signature <literal>", "Literal crash signature that every counted boot must contain").option("--boots <n>", "Fresh boots", "3").option("--min-hits <n>", "Required reproducing boots", "2").option("--artifact-root <path>", "Research artifact root", ".0-research").action(async (opts) => {
|
|
15955
|
-
const { LinuxKernelResearchAdapter, runResearch } = await import("./dist-
|
|
15955
|
+
const { LinuxKernelResearchAdapter, runResearch } = await import("./dist-L3XJWWZ6.js");
|
|
15956
15956
|
const kernelTree = resolve23(opts.kernelTree);
|
|
15957
15957
|
const reproducer = resolve23(opts.reproducer);
|
|
15958
15958
|
const finding = JSON.parse(readFileSync20(resolve23(opts.finding), "utf8"));
|
|
@@ -16081,7 +16081,7 @@ function registerTimelineCommand(program) {
|
|
|
16081
16081
|
process.exitCode = 2;
|
|
16082
16082
|
return;
|
|
16083
16083
|
}
|
|
16084
|
-
const { osecDB: osecDB2 } = await import("./dist-
|
|
16084
|
+
const { osecDB: osecDB2 } = await import("./dist-FSS7MBDF.js");
|
|
16085
16085
|
const db = new osecDB2(opts.dbPath);
|
|
16086
16086
|
let scan2;
|
|
16087
16087
|
let rows;
|
|
@@ -16657,7 +16657,7 @@ var MAX_SOURCE_BYTES = 4 * 1024 * 1024;
|
|
|
16657
16657
|
var cachedCore;
|
|
16658
16658
|
async function defaultCorePort() {
|
|
16659
16659
|
if (cachedCore) return cachedCore;
|
|
16660
|
-
const mod = await import("./dist-
|
|
16660
|
+
const mod = await import("./dist-L3XJWWZ6.js");
|
|
16661
16661
|
cachedCore = {
|
|
16662
16662
|
validatePluginManifest: mod.validatePluginManifest,
|
|
16663
16663
|
reservedToolNames: Object.values(mod.TOOL_DEFINITIONS).map((tool) => tool.name),
|
|
@@ -16996,7 +16996,7 @@ function registerHackstoreCommand(program) {
|
|
|
16996
16996
|
var cachedCore2;
|
|
16997
16997
|
async function defaultCorePort2() {
|
|
16998
16998
|
if (cachedCore2) return cachedCore2;
|
|
16999
|
-
const mod = await import("./dist-
|
|
16999
|
+
const mod = await import("./dist-L3XJWWZ6.js");
|
|
17000
17000
|
cachedCore2 = mod;
|
|
17001
17001
|
return mod;
|
|
17002
17002
|
}
|
|
@@ -17547,7 +17547,7 @@ var EXIT_USER_ERROR5 = 1;
|
|
|
17547
17547
|
var cachedCore3;
|
|
17548
17548
|
async function defaultThemeCorePort() {
|
|
17549
17549
|
if (cachedCore3) return cachedCore3;
|
|
17550
|
-
const mod = await import("./dist-
|
|
17550
|
+
const mod = await import("./dist-L3XJWWZ6.js");
|
|
17551
17551
|
cachedCore3 = mod;
|
|
17552
17552
|
return mod;
|
|
17553
17553
|
}
|
|
@@ -4,10 +4,10 @@ const require = __0CreateRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
registerDbCommand,
|
|
6
6
|
seedVerificationWorkbench
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IVQV574Y.js";
|
|
8
8
|
import "./chunk-HLFS6WV2.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-VWITLWXB.js";
|
|
10
|
+
import "./chunk-KAU6NLGP.js";
|
|
11
11
|
import "./chunk-VIT5ALXF.js";
|
|
12
12
|
import "./chunk-VCSFCHAJ.js";
|
|
13
13
|
export {
|