nexus-agents 14.0.1 → 14.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ast-rule-runner-3DNARGI6.js → ast-rule-runner-2PEUHSHO.js} +5 -5
- package/dist/{child-mcp-config-JDA622RX.js → child-mcp-config-AYVMLJDV.js} +4 -4
- package/dist/{chunk-IXL2W6E3.js → chunk-236T3AOZ.js} +4 -4
- package/dist/{chunk-OVVJGCB7.js → chunk-5QNWRC7B.js} +2 -2
- package/dist/{chunk-P4L4CEJX.js → chunk-B5RDZLU3.js} +4 -4
- package/dist/{chunk-IMRAE2LB.js → chunk-CZSEUZFE.js} +2 -2
- package/dist/{chunk-OAX3TSGU.js → chunk-DCPN7F5J.js} +2 -2
- package/dist/{chunk-O3D6HEXJ.js → chunk-DXDKAVWV.js} +5 -5
- package/dist/{chunk-O6SI3EVF.js → chunk-FEAWCZ7E.js} +2 -2
- package/dist/{chunk-L2JOGUR3.js → chunk-GDCIDLUF.js} +13 -12
- package/dist/{chunk-L2JOGUR3.js.map → chunk-GDCIDLUF.js.map} +1 -1
- package/dist/{chunk-RTO52ZBC.js → chunk-GPZQVYKV.js} +2 -2
- package/dist/{chunk-IIUEAOTT.js → chunk-GR4BMQAS.js} +9 -7
- package/dist/chunk-GR4BMQAS.js.map +1 -0
- package/dist/{chunk-NZDRN4NL.js → chunk-H6SGSQJM.js} +2 -2
- package/dist/{chunk-TKF3X3RI.js → chunk-HJJRUYNR.js} +7 -6
- package/dist/chunk-HJJRUYNR.js.map +1 -0
- package/dist/{chunk-2FOPXY3L.js → chunk-IZSJWIHK.js} +39 -9
- package/dist/chunk-IZSJWIHK.js.map +1 -0
- package/dist/{chunk-V3X7QGN3.js → chunk-JV3UBRRA.js} +2 -2
- package/dist/{chunk-2UWQ2GEG.js → chunk-KXWLZDQR.js} +5 -5
- package/dist/{chunk-QSABRS3I.js → chunk-LBVPKHHU.js} +3 -3
- package/dist/{chunk-UZ3KUNPN.js → chunk-LC34UPDQ.js} +2 -2
- package/dist/{chunk-UW54ACTR.js → chunk-LE6TQVXF.js} +2 -2
- package/dist/{chunk-SVGX2YBK.js → chunk-MFUJU7RO.js} +3 -3
- package/dist/{chunk-MO7WRW77.js → chunk-MQSSTTZU.js} +4 -4
- package/dist/{chunk-K7JTBFP3.js → chunk-OQR2C64M.js} +5 -5
- package/dist/{chunk-OFC642UR.js → chunk-P3CFDAW5.js} +2 -2
- package/dist/{chunk-TG23XP5G.js → chunk-PG6NTUTS.js} +8 -8
- package/dist/{chunk-MWPS5QGR.js → chunk-PQ3V2SYP.js} +2 -2
- package/dist/{chunk-IUQWX4N2.js → chunk-Q6R3JTXH.js} +3 -3
- package/dist/{chunk-2AWX7DYU.js → chunk-SNSV6GGV.js} +10 -10
- package/dist/{chunk-IT5TIGRD.js → chunk-SQPFJLCI.js} +3 -3
- package/dist/{chunk-CZVV33JI.js → chunk-TV6RX3ZL.js} +4 -4
- package/dist/{chunk-HFYXNFXG.js → chunk-TYIIAIXA.js} +7 -7
- package/dist/{chunk-VSVDAN2A.js → chunk-VH4T4O5L.js} +2 -2
- package/dist/{chunk-FSCDQZ2A.js → chunk-WWBYNWYB.js} +4 -4
- package/dist/{chunk-4IKJME6O.js → chunk-YE3T4X2U.js} +4 -4
- package/dist/{chunk-PEVU52PM.js → chunk-YSEMHACQ.js} +36 -36
- package/dist/{cli-circuit-breaker-KBPM3UE7.js → cli-circuit-breaker-HWMTEEYI.js} +5 -5
- package/dist/{cli-readiness-5WZ4ASF5.js → cli-readiness-6C6E2T2O.js} +9 -9
- package/dist/{cli-server-gateway-J6SKTZVM.js → cli-server-gateway-HHRF22EB.js} +14 -14
- package/dist/cli.js +505 -409
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-H75KI2RS.js → composite-router-CX2W7RVA.js} +4 -4
- package/dist/{consensus-vote-YO6MOHVG.js → consensus-vote-CQGIWMYY.js} +17 -17
- package/dist/{context-retriever-R3YJAG7F.js → context-retriever-G4LMWEN5.js} +10 -10
- package/dist/{doctor-deep-IGFWT3TZ.js → doctor-deep-VOX7KVGK.js} +5 -5
- package/dist/{doctor-gateway-report-DPTKEJA7.js → doctor-gateway-report-GMYX62JU.js} +7 -7
- package/dist/{doctor-live-BE6JTA3J.js → doctor-live-AES3PON5.js} +14 -14
- package/dist/{expert-bridge-2FHVYPMM.js → expert-bridge-WEZXYIGA.js} +6 -6
- package/dist/{factory-AEKU72IJ.js → factory-L2DIM3PM.js} +7 -7
- package/dist/{factory-FOQWD6AW.js → factory-L6CLXVPW.js} +13 -13
- package/dist/{gemini-adapter-MSTCCLDO.js → gemini-adapter-CL7YW7UZ.js} +8 -8
- package/dist/{improvement-review-3I2L2PBA.js → improvement-review-EBC3I55P.js} +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +27 -27
- package/dist/{init-opencode-5CFNILZP.js → init-opencode-F6FV63VR.js} +6 -6
- package/dist/{issue-triage-ZO7YSQ5O.js → issue-triage-3EJ5DSGG.js} +7 -7
- package/dist/{model-config-helpers-253O7ABU.js → model-config-helpers-27GO3OEU.js} +3 -3
- package/dist/{openai-compat-adapter-HZGCBWE5.js → openai-compat-adapter-JJD7VWZC.js} +6 -6
- package/dist/{pr-reviewer-helpers-NQ3YK7PL.js → pr-reviewer-helpers-KGGKESLT.js} +5 -5
- package/dist/{registry-command-7U5HC6NB.js → registry-command-SQQNXDGS.js} +2 -2
- package/dist/{repo-security-plan-3BD76WQZ.js → repo-security-plan-CIGD7QBY.js} +4 -4
- package/dist/{research-helpers-synthesize-ZSCC5GNR.js → research-helpers-synthesize-HAQSK2RL.js} +6 -6
- package/dist/{routing-memory-BZF7JDET.js → routing-memory-AFHV5NDT.js} +4 -4
- package/dist/{session-memory-MF5D2MXZ.js → session-memory-RBY5SHFK.js} +5 -5
- package/dist/{setup-config-E3TNM4HV.js → setup-config-47NNRD4E.js} +5 -5
- package/dist/{setup-custom-api-6X6FUHNV.js → setup-custom-api-H74QY7EM.js} +5 -5
- package/dist/{tool-memory-A6XPMC7X.js → tool-memory-QESESDGS.js} +7 -7
- package/dist/{unified-registry-VMT3VCHF.js → unified-registry-HWZRXFQ6.js} +13 -13
- package/dist/{weather-report-5AUOIJSP.js → weather-report-QZLXDT5L.js} +4 -4
- package/node_modules/@protobufjs/aspromise/LICENSE +26 -0
- package/node_modules/@protobufjs/aspromise/README.md +13 -0
- package/node_modules/{protobufjs/src/util/aspromise.d.ts → @protobufjs/aspromise/index.d.ts} +13 -13
- package/node_modules/{protobufjs/src/util/aspromise.js → @protobufjs/aspromise/index.js} +52 -52
- package/node_modules/@protobufjs/aspromise/package.json +21 -0
- package/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
- package/node_modules/@protobufjs/base64/LICENSE +26 -0
- package/node_modules/@protobufjs/base64/README.md +19 -0
- package/node_modules/{protobufjs/src/util/base64.d.ts → @protobufjs/base64/index.d.ts} +32 -32
- package/node_modules/{protobufjs/src/util/base64.js → @protobufjs/base64/index.js} +139 -146
- package/node_modules/@protobufjs/base64/package.json +21 -0
- package/node_modules/@protobufjs/base64/tests/index.js +46 -0
- package/node_modules/@protobufjs/codegen/LICENSE +26 -0
- package/node_modules/@protobufjs/codegen/README.md +49 -0
- package/node_modules/{protobufjs/src/util/codegen.d.ts → @protobufjs/codegen/index.d.ts} +31 -31
- package/node_modules/{protobufjs/src/util/codegen.js → @protobufjs/codegen/index.js} +112 -120
- package/node_modules/@protobufjs/codegen/package.json +13 -0
- package/node_modules/@protobufjs/codegen/tests/index.js +13 -0
- package/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
- package/node_modules/@protobufjs/eventemitter/README.md +22 -0
- package/node_modules/{protobufjs/src/util/eventemitter.d.ts → @protobufjs/eventemitter/index.d.ts} +45 -45
- package/node_modules/{protobufjs/src/util/eventemitter.js → @protobufjs/eventemitter/index.js} +86 -86
- package/node_modules/@protobufjs/eventemitter/package.json +21 -0
- package/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
- package/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/fetch/LICENSE +26 -0
- package/node_modules/@protobufjs/fetch/README.md +13 -0
- package/node_modules/{protobufjs/src/util/fetch.d.ts → @protobufjs/fetch/index.d.ts} +56 -56
- package/node_modules/{protobufjs/src/util/fetch.js → @protobufjs/fetch/index.js} +112 -112
- package/node_modules/@protobufjs/fetch/package.json +27 -0
- package/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
- package/node_modules/@protobufjs/fetch/tests/index.js +158 -0
- package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
- package/node_modules/@protobufjs/float/LICENSE +26 -0
- package/node_modules/@protobufjs/float/README.md +102 -0
- package/node_modules/@protobufjs/float/bench/index.js +87 -0
- package/node_modules/@protobufjs/float/bench/suite.js +46 -0
- package/node_modules/{protobufjs/src/util/float.js → @protobufjs/float/index.js} +335 -335
- package/node_modules/@protobufjs/float/package.json +26 -0
- package/node_modules/@protobufjs/float/tests/index.js +100 -0
- package/node_modules/@protobufjs/path/LICENSE +26 -0
- package/node_modules/@protobufjs/path/README.md +19 -0
- package/node_modules/{protobufjs/src/util/path.d.ts → @protobufjs/path/index.d.ts} +22 -22
- package/node_modules/{protobufjs/src/util/path.js → @protobufjs/path/index.js} +65 -100
- package/node_modules/@protobufjs/path/package.json +21 -0
- package/node_modules/@protobufjs/path/tests/index.js +60 -0
- package/node_modules/@protobufjs/pool/.npmignore +3 -0
- package/node_modules/@protobufjs/pool/LICENSE +26 -0
- package/node_modules/@protobufjs/pool/README.md +13 -0
- package/node_modules/{protobufjs/src/util/pool.d.ts → @protobufjs/pool/index.d.ts} +32 -32
- package/node_modules/{protobufjs/src/util/pool.js → @protobufjs/pool/index.js} +48 -48
- package/node_modules/@protobufjs/pool/package.json +21 -0
- package/node_modules/@protobufjs/pool/tests/index.js +33 -0
- package/node_modules/@protobufjs/utf8/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/utf8/LICENSE +26 -0
- package/node_modules/@protobufjs/utf8/README.md +20 -0
- package/node_modules/{protobufjs/src/util/utf8.d.ts → @protobufjs/utf8/index.d.ts} +24 -24
- package/node_modules/@protobufjs/utf8/index.js +115 -0
- package/node_modules/@protobufjs/utf8/package.json +21 -0
- package/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
- package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
- package/node_modules/@protobufjs/utf8/tests/index.js +79 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +68 -0
- package/node_modules/@types/node/assert.d.ts +1077 -0
- package/node_modules/@types/node/async_hooks.d.ts +711 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/node_modules/@types/node/buffer.d.ts +1800 -0
- package/node_modules/@types/node/child_process.d.ts +1361 -0
- package/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@types/node/console.d.ts +93 -0
- package/node_modules/@types/node/constants.d.ts +14 -0
- package/node_modules/@types/node/crypto.d.ts +3964 -0
- package/node_modules/@types/node/dgram.d.ts +652 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +794 -0
- package/node_modules/@types/node/dns/promises.d.ts +497 -0
- package/node_modules/@types/node/dns.d.ts +876 -0
- package/node_modules/@types/node/domain.d.ts +150 -0
- package/node_modules/@types/node/events.d.ts +1008 -0
- package/node_modules/@types/node/ffi.d.ts +500 -0
- package/node_modules/@types/node/fs/promises.d.ts +1477 -0
- package/node_modules/@types/node/fs.d.ts +4803 -0
- package/node_modules/@types/node/globals.d.ts +150 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/node_modules/@types/node/http.d.ts +2218 -0
- package/node_modules/@types/node/http2.d.ts +2498 -0
- package/node_modules/@types/node/https.d.ts +400 -0
- package/node_modules/@types/node/index.d.ts +116 -0
- package/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@types/node/inspector.d.ts +265 -0
- package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
- package/node_modules/@types/node/module.d.ts +726 -0
- package/node_modules/@types/node/net.d.ts +1074 -0
- package/node_modules/@types/node/os.d.ts +498 -0
- package/node_modules/@types/node/package.json +140 -0
- package/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/node/path.d.ts +178 -0
- package/node_modules/@types/node/perf_hooks.d.ts +617 -0
- package/node_modules/@types/node/process.d.ts +2269 -0
- package/node_modules/@types/node/punycode.d.ts +89 -0
- package/node_modules/@types/node/querystring.d.ts +139 -0
- package/node_modules/@types/node/quic.d.ts +2191 -0
- package/node_modules/@types/node/readline/promises.d.ts +158 -0
- package/node_modules/@types/node/readline.d.ts +508 -0
- package/node_modules/@types/node/repl.d.ts +420 -0
- package/node_modules/@types/node/sea.d.ts +47 -0
- package/node_modules/@types/node/sqlite.d.ts +1140 -0
- package/node_modules/@types/node/stream/consumers.d.ts +114 -0
- package/node_modules/@types/node/stream/iter.d.ts +449 -0
- package/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/node_modules/@types/node/stream/web.d.ts +320 -0
- package/node_modules/@types/node/stream.d.ts +1806 -0
- package/node_modules/@types/node/string_decoder.d.ts +27 -0
- package/node_modules/@types/node/test/reporters.d.ts +60 -0
- package/node_modules/@types/node/test.d.ts +2558 -0
- package/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@types/node/timers.d.ts +149 -0
- package/node_modules/@types/node/tls.d.ts +1232 -0
- package/node_modules/@types/node/trace_events.d.ts +103 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +467 -0
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +118 -0
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +118 -0
- package/node_modules/@types/node/tty.d.ts +226 -0
- package/node_modules/@types/node/url.d.ts +556 -0
- package/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/node/util.d.ts +1680 -0
- package/node_modules/@types/node/v8.d.ts +1059 -0
- package/node_modules/@types/node/vfs.d.ts +211 -0
- package/node_modules/@types/node/vm.d.ts +1137 -0
- package/node_modules/@types/node/wasi.d.ts +131 -0
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +83 -0
- package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +119 -0
- package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/node/worker_threads.d.ts +672 -0
- package/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@types/node/zlib.d.ts +612 -0
- package/node_modules/fast-uri/.github/dependabot.yml +2 -42
- package/node_modules/fast-uri/.github/workflows/ci.yml +6 -54
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +1 -1
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/.github/workflows/release.yml +2 -1
- package/node_modules/fast-uri/README.md +10 -12
- package/node_modules/fast-uri/benchmark/benchmark.mjs +0 -71
- package/node_modules/fast-uri/index.js +20 -94
- package/node_modules/fast-uri/lib/schemes.js +4 -439
- package/node_modules/fast-uri/lib/utils.js +113 -230
- package/node_modules/fast-uri/package.json +5 -5
- package/node_modules/fast-uri/test/equal.test.js +0 -63
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +1 -23
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +1 -23
- package/node_modules/fast-uri/test/ipv6-validation.test.js +0 -160
- package/node_modules/fast-uri/test/parse.test.js +5 -150
- package/node_modules/fast-uri/test/relative-normalization-security.test.js +4 -0
- package/node_modules/fast-uri/test/scheme-validation.test.js +5 -3
- package/node_modules/fast-uri/test/security.test.js +2 -2
- package/node_modules/fast-uri/test/serialize.test.js +0 -144
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +3 -0
- package/node_modules/fast-uri/test/uri-js.test.js +9 -11
- package/node_modules/fast-uri/test/urn-full-input.test.js +0 -18
- package/node_modules/fast-uri/test/util.test.js +0 -9
- package/node_modules/fast-uri/tsconfig.json +7 -8
- package/node_modules/fast-uri/types/index.d.ts +9 -20
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/hono/README.md +2 -3
- package/node_modules/hono/dist/cjs/helper/css/common.js +8 -3
- package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
- package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
- package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +8 -0
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
- package/node_modules/hono/dist/cjs/utils/url.js +11 -6
- package/node_modules/hono/dist/helper/css/common.js +8 -3
- package/node_modules/hono/dist/helper/css/index.js +1 -1
- package/node_modules/hono/dist/helper/route/index.js +3 -1
- package/node_modules/hono/dist/jsx/base.js +1 -1
- package/node_modules/hono/dist/middleware/bearer-auth/index.js +8 -0
- package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
- package/node_modules/hono/dist/router/trie-router/node.js +2 -2
- package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
- package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
- package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
- package/node_modules/hono/dist/types/index.d.ts +1 -1
- package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
- package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
- package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
- package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
- package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
- package/node_modules/hono/dist/utils/url.js +11 -6
- package/node_modules/hono/package.json +1 -1
- package/node_modules/path-to-regexp/Readme.md +7 -1
- package/node_modules/path-to-regexp/dist/index.d.ts +12 -7
- package/node_modules/path-to-regexp/dist/index.js +99 -99
- package/node_modules/path-to-regexp/dist/index.js.map +1 -1
- package/node_modules/path-to-regexp/package.json +8 -9
- package/node_modules/protobufjs/README.md +562 -259
- package/node_modules/protobufjs/dist/light/protobuf.js +1915 -3267
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +1173 -2018
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +1982 -3483
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/ext/descriptor/README.md +70 -3
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +193 -0
- package/node_modules/protobufjs/ext/descriptor/index.js +1185 -1
- package/node_modules/protobufjs/ext/descriptor/test.js +54 -0
- package/node_modules/protobufjs/google/api/annotations.json +1 -3
- package/node_modules/protobufjs/google/api/http.json +1 -2
- package/node_modules/protobufjs/google/protobuf/api.json +6 -12
- package/node_modules/protobufjs/google/protobuf/descriptor.json +88 -194
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +9 -15
- package/node_modules/protobufjs/google/protobuf/source_context.json +1 -2
- package/node_modules/protobufjs/google/protobuf/type.json +7 -14
- package/node_modules/protobufjs/index.d.ts +685 -1077
- package/node_modules/protobufjs/package.json +51 -25
- package/node_modules/protobufjs/scripts/postinstall.js +32 -0
- package/node_modules/protobufjs/src/common.js +8 -14
- package/node_modules/protobufjs/src/converter.js +52 -90
- package/node_modules/protobufjs/src/decoder.js +67 -211
- package/node_modules/protobufjs/src/encoder.js +7 -27
- package/node_modules/protobufjs/src/enum.js +7 -33
- package/node_modules/protobufjs/src/field.js +20 -77
- package/node_modules/protobufjs/src/index-light.js +29 -29
- package/node_modules/protobufjs/src/index-minimal.js +13 -12
- package/node_modules/protobufjs/src/index.js +6 -6
- package/node_modules/protobufjs/src/mapfield.js +8 -26
- package/node_modules/protobufjs/src/message.js +11 -5
- package/node_modules/protobufjs/src/method.js +7 -30
- package/node_modules/protobufjs/src/namespace.js +10 -26
- package/node_modules/protobufjs/src/object.js +31 -44
- package/node_modules/protobufjs/src/oneof.js +1 -12
- package/node_modules/protobufjs/src/parse.js +67 -194
- package/node_modules/protobufjs/src/reader.js +58 -520
- package/node_modules/protobufjs/src/reader_buffer.js +5 -31
- package/node_modules/protobufjs/src/root.js +4 -16
- package/node_modules/protobufjs/src/rpc/service.js +5 -18
- package/node_modules/protobufjs/src/service.js +2 -15
- package/node_modules/protobufjs/src/tokenize.js +4 -20
- package/node_modules/protobufjs/src/type.js +37 -91
- package/node_modules/protobufjs/src/typescript.jsdoc +15 -0
- package/node_modules/protobufjs/src/util/longbits.js +6 -10
- package/node_modules/protobufjs/src/util/minimal.js +51 -71
- package/node_modules/protobufjs/src/util.js +17 -51
- package/node_modules/protobufjs/src/verifier.js +14 -19
- package/node_modules/protobufjs/src/wrappers.js +3 -2
- package/node_modules/protobufjs/src/writer.js +189 -428
- package/node_modules/protobufjs/src/writer_buffer.js +26 -41
- package/node_modules/protobufjs/tsconfig.json +5 -3
- package/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +30 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/undici-types/client.d.ts +134 -0
- package/node_modules/undici-types/connector.d.ts +37 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +30 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/node_modules/undici-types/dispatcher.d.ts +253 -0
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/undici-types/errors.d.ts +187 -0
- package/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/undici-types/fetch.d.ts +235 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/undici-types/handlers.d.ts +16 -0
- package/node_modules/undici-types/header.d.ts +165 -0
- package/node_modules/undici-types/index.d.ts +93 -0
- package/node_modules/undici-types/interceptors.d.ts +80 -0
- package/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/undici-types/mock-client.d.ts +27 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +98 -0
- package/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +29 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/undici-types/proxy-agent.d.ts +36 -0
- package/node_modules/undici-types/readable.d.ts +68 -0
- package/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
- package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/undici-types/webidl.d.ts +346 -0
- package/node_modules/undici-types/websocket.d.ts +188 -0
- package/package.json +16 -4
- package/dist/chunk-2FOPXY3L.js.map +0 -1
- package/dist/chunk-IIUEAOTT.js.map +0 -1
- package/dist/chunk-TKF3X3RI.js.map +0 -1
- package/node_modules/fast-uri/.github/workflows/ossf-scorecard.yml +0 -45
- package/node_modules/fast-uri/SECURITY.md +0 -222
- package/node_modules/fast-uri/benchmark/encoder.mjs +0 -54
- package/node_modules/fast-uri/test/c0-reference-security.test.js +0 -137
- package/node_modules/fast-uri/test/host-encoding.test.js +0 -60
- package/node_modules/fast-uri/test/mailto-authority-security.test.js +0 -125
- package/node_modules/fast-uri/test/mailto-field-name-security.test.js +0 -151
- package/node_modules/fast-uri/test/scheme-normalization.test.js +0 -16
- package/node_modules/fast-uri/test/security-utf8-encoding.test.js +0 -0
- package/node_modules/fast-uri/types/index.tst.ts +0 -31
- package/node_modules/protobufjs/ext/README.md +0 -70
- package/node_modules/protobufjs/ext/descriptor.d.ts +0 -87
- package/node_modules/protobufjs/ext/descriptor.generated.d.ts +0 -424
- package/node_modules/protobufjs/ext/descriptor.js +0 -1405
- package/node_modules/protobufjs/ext/protojson.LICENSE +0 -201
- package/node_modules/protobufjs/ext/protojson.d.ts +0 -20
- package/node_modules/protobufjs/ext/protojson.generated.d.ts +0 -49
- package/node_modules/protobufjs/ext/protojson.js +0 -972
- package/node_modules/protobufjs/ext/textformat.d.ts +0 -19
- package/node_modules/protobufjs/ext/textformat.generated.d.ts +0 -33
- package/node_modules/protobufjs/ext/textformat.js +0 -1280
- package/node_modules/protobufjs/google/protobuf/compiler/plugin.json +0 -126
- package/node_modules/protobufjs/google/protobuf/compiler/plugin.proto +0 -47
- package/node_modules/protobufjs/google/protobuf/json_enumvalue_options.json +0 -56
- package/node_modules/protobufjs/google/protobuf/json_enumvalue_options.proto +0 -31
- package/node_modules/protobufjs/src/typescript.js +0 -25
- package/node_modules/protobufjs/src/util/utf8.js +0 -164
- /package/dist/{ast-rule-runner-3DNARGI6.js.map → ast-rule-runner-2PEUHSHO.js.map} +0 -0
- /package/dist/{child-mcp-config-JDA622RX.js.map → child-mcp-config-AYVMLJDV.js.map} +0 -0
- /package/dist/{chunk-IXL2W6E3.js.map → chunk-236T3AOZ.js.map} +0 -0
- /package/dist/{chunk-OVVJGCB7.js.map → chunk-5QNWRC7B.js.map} +0 -0
- /package/dist/{chunk-P4L4CEJX.js.map → chunk-B5RDZLU3.js.map} +0 -0
- /package/dist/{chunk-IMRAE2LB.js.map → chunk-CZSEUZFE.js.map} +0 -0
- /package/dist/{chunk-OAX3TSGU.js.map → chunk-DCPN7F5J.js.map} +0 -0
- /package/dist/{chunk-O3D6HEXJ.js.map → chunk-DXDKAVWV.js.map} +0 -0
- /package/dist/{chunk-O6SI3EVF.js.map → chunk-FEAWCZ7E.js.map} +0 -0
- /package/dist/{chunk-RTO52ZBC.js.map → chunk-GPZQVYKV.js.map} +0 -0
- /package/dist/{chunk-NZDRN4NL.js.map → chunk-H6SGSQJM.js.map} +0 -0
- /package/dist/{chunk-V3X7QGN3.js.map → chunk-JV3UBRRA.js.map} +0 -0
- /package/dist/{chunk-2UWQ2GEG.js.map → chunk-KXWLZDQR.js.map} +0 -0
- /package/dist/{chunk-QSABRS3I.js.map → chunk-LBVPKHHU.js.map} +0 -0
- /package/dist/{chunk-UZ3KUNPN.js.map → chunk-LC34UPDQ.js.map} +0 -0
- /package/dist/{chunk-UW54ACTR.js.map → chunk-LE6TQVXF.js.map} +0 -0
- /package/dist/{chunk-SVGX2YBK.js.map → chunk-MFUJU7RO.js.map} +0 -0
- /package/dist/{chunk-MO7WRW77.js.map → chunk-MQSSTTZU.js.map} +0 -0
- /package/dist/{chunk-K7JTBFP3.js.map → chunk-OQR2C64M.js.map} +0 -0
- /package/dist/{chunk-OFC642UR.js.map → chunk-P3CFDAW5.js.map} +0 -0
- /package/dist/{chunk-TG23XP5G.js.map → chunk-PG6NTUTS.js.map} +0 -0
- /package/dist/{chunk-MWPS5QGR.js.map → chunk-PQ3V2SYP.js.map} +0 -0
- /package/dist/{chunk-IUQWX4N2.js.map → chunk-Q6R3JTXH.js.map} +0 -0
- /package/dist/{chunk-2AWX7DYU.js.map → chunk-SNSV6GGV.js.map} +0 -0
- /package/dist/{chunk-IT5TIGRD.js.map → chunk-SQPFJLCI.js.map} +0 -0
- /package/dist/{chunk-CZVV33JI.js.map → chunk-TV6RX3ZL.js.map} +0 -0
- /package/dist/{chunk-HFYXNFXG.js.map → chunk-TYIIAIXA.js.map} +0 -0
- /package/dist/{chunk-VSVDAN2A.js.map → chunk-VH4T4O5L.js.map} +0 -0
- /package/dist/{chunk-FSCDQZ2A.js.map → chunk-WWBYNWYB.js.map} +0 -0
- /package/dist/{chunk-4IKJME6O.js.map → chunk-YE3T4X2U.js.map} +0 -0
- /package/dist/{chunk-PEVU52PM.js.map → chunk-YSEMHACQ.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-KBPM3UE7.js.map → cli-circuit-breaker-HWMTEEYI.js.map} +0 -0
- /package/dist/{cli-readiness-5WZ4ASF5.js.map → cli-readiness-6C6E2T2O.js.map} +0 -0
- /package/dist/{cli-server-gateway-J6SKTZVM.js.map → cli-server-gateway-HHRF22EB.js.map} +0 -0
- /package/dist/{composite-router-H75KI2RS.js.map → composite-router-CX2W7RVA.js.map} +0 -0
- /package/dist/{consensus-vote-YO6MOHVG.js.map → consensus-vote-CQGIWMYY.js.map} +0 -0
- /package/dist/{context-retriever-R3YJAG7F.js.map → context-retriever-G4LMWEN5.js.map} +0 -0
- /package/dist/{doctor-deep-IGFWT3TZ.js.map → doctor-deep-VOX7KVGK.js.map} +0 -0
- /package/dist/{doctor-gateway-report-DPTKEJA7.js.map → doctor-gateway-report-GMYX62JU.js.map} +0 -0
- /package/dist/{doctor-live-BE6JTA3J.js.map → doctor-live-AES3PON5.js.map} +0 -0
- /package/dist/{expert-bridge-2FHVYPMM.js.map → expert-bridge-WEZXYIGA.js.map} +0 -0
- /package/dist/{factory-AEKU72IJ.js.map → factory-L2DIM3PM.js.map} +0 -0
- /package/dist/{factory-FOQWD6AW.js.map → factory-L6CLXVPW.js.map} +0 -0
- /package/dist/{gemini-adapter-MSTCCLDO.js.map → gemini-adapter-CL7YW7UZ.js.map} +0 -0
- /package/dist/{improvement-review-3I2L2PBA.js.map → improvement-review-EBC3I55P.js.map} +0 -0
- /package/dist/{init-opencode-5CFNILZP.js.map → init-opencode-F6FV63VR.js.map} +0 -0
- /package/dist/{issue-triage-ZO7YSQ5O.js.map → issue-triage-3EJ5DSGG.js.map} +0 -0
- /package/dist/{model-config-helpers-253O7ABU.js.map → model-config-helpers-27GO3OEU.js.map} +0 -0
- /package/dist/{openai-compat-adapter-HZGCBWE5.js.map → openai-compat-adapter-JJD7VWZC.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-NQ3YK7PL.js.map → pr-reviewer-helpers-KGGKESLT.js.map} +0 -0
- /package/dist/{registry-command-7U5HC6NB.js.map → registry-command-SQQNXDGS.js.map} +0 -0
- /package/dist/{repo-security-plan-3BD76WQZ.js.map → repo-security-plan-CIGD7QBY.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-ZSCC5GNR.js.map → research-helpers-synthesize-HAQSK2RL.js.map} +0 -0
- /package/dist/{routing-memory-BZF7JDET.js.map → routing-memory-AFHV5NDT.js.map} +0 -0
- /package/dist/{session-memory-MF5D2MXZ.js.map → session-memory-RBY5SHFK.js.map} +0 -0
- /package/dist/{setup-config-E3TNM4HV.js.map → setup-config-47NNRD4E.js.map} +0 -0
- /package/dist/{setup-custom-api-6X6FUHNV.js.map → setup-custom-api-H74QY7EM.js.map} +0 -0
- /package/dist/{tool-memory-A6XPMC7X.js.map → tool-memory-QESESDGS.js.map} +0 -0
- /package/dist/{unified-registry-VMT3VCHF.js.map → unified-registry-HWZRXFQ6.js.map} +0 -0
- /package/dist/{weather-report-5AUOIJSP.js.map → weather-report-QZLXDT5L.js.map} +0 -0
- /package/node_modules/{protobufjs/src/util/float.d.ts → @protobufjs/float/index.d.ts} +0 -0
package/dist/cli.js
CHANGED
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
symbols,
|
|
17
17
|
writeEmptyLine,
|
|
18
18
|
writeLine
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MQSSTTZU.js";
|
|
20
20
|
import {
|
|
21
21
|
runConfigInitSync
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GPZQVYKV.js";
|
|
23
23
|
import {
|
|
24
24
|
CATEGORY_DISPLAY_NAMES,
|
|
25
25
|
DEFAULT_PR_REVIEW_CONFIG,
|
|
@@ -40,8 +40,8 @@ import {
|
|
|
40
40
|
parseExpertReview,
|
|
41
41
|
reviewPostingBlock,
|
|
42
42
|
sumFindings
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-LE6TQVXF.js";
|
|
44
|
+
import "./chunk-LC34UPDQ.js";
|
|
45
45
|
import {
|
|
46
46
|
COMMAND_CATALOG,
|
|
47
47
|
EXIT_CODES,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
renderHelp,
|
|
57
57
|
resolveDefaultModelAdapter,
|
|
58
58
|
wireGateway
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-TYIIAIXA.js";
|
|
60
60
|
import {
|
|
61
61
|
detectCliBinary,
|
|
62
62
|
detectionRecoveryHint,
|
|
@@ -203,8 +203,8 @@ import {
|
|
|
203
203
|
validateWorkflow,
|
|
204
204
|
withPanelWorkspace,
|
|
205
205
|
wrapInMarkdownFence
|
|
206
|
-
} from "./chunk-
|
|
207
|
-
import "./chunk-
|
|
206
|
+
} from "./chunk-YSEMHACQ.js";
|
|
207
|
+
import "./chunk-H6SGSQJM.js";
|
|
208
208
|
import {
|
|
209
209
|
fenceExternalContent,
|
|
210
210
|
formatDiffs
|
|
@@ -225,14 +225,14 @@ import {
|
|
|
225
225
|
recordVoteDecisionCost,
|
|
226
226
|
registerConsensusVoteTool,
|
|
227
227
|
toRecordDecision
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-SNSV6GGV.js";
|
|
229
229
|
import {
|
|
230
230
|
allOf,
|
|
231
231
|
anyOf
|
|
232
232
|
} from "./chunk-EZNIYU5T.js";
|
|
233
233
|
import {
|
|
234
234
|
synthesizeResearch
|
|
235
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-SQPFJLCI.js";
|
|
236
236
|
import {
|
|
237
237
|
DRAFT_REPLY_BODY_MAX_LENGTH,
|
|
238
238
|
configureUntrustedInputFirewall,
|
|
@@ -243,7 +243,7 @@ import {
|
|
|
243
243
|
runUntrustedInputFirewall,
|
|
244
244
|
validateActionCorroboration,
|
|
245
245
|
validateAgentAction
|
|
246
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-YE3T4X2U.js";
|
|
247
247
|
import {
|
|
248
248
|
ReputationCache,
|
|
249
249
|
sanitizeInput
|
|
@@ -267,7 +267,7 @@ import {
|
|
|
267
267
|
renderPlanAsResearch,
|
|
268
268
|
runImprovementReview,
|
|
269
269
|
scanForSecrets
|
|
270
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-Q6R3JTXH.js";
|
|
271
271
|
import {
|
|
272
272
|
NODE_ENGINE_RANGE,
|
|
273
273
|
VERSION,
|
|
@@ -281,11 +281,11 @@ import {
|
|
|
281
281
|
stagePolicyFirewallForRollout,
|
|
282
282
|
toSdkCallback,
|
|
283
283
|
wrapToolWithTimeout
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-MFUJU7RO.js";
|
|
285
285
|
import "./chunk-KMGKOF5P.js";
|
|
286
286
|
import "./chunk-4GDMHCKX.js";
|
|
287
287
|
import "./chunk-I2THTVA4.js";
|
|
288
|
-
import "./chunk-
|
|
288
|
+
import "./chunk-VH4T4O5L.js";
|
|
289
289
|
import {
|
|
290
290
|
CodebaseIndexSchema,
|
|
291
291
|
PaperStatusSchema,
|
|
@@ -312,25 +312,25 @@ import {
|
|
|
312
312
|
loadSourcesRegistry,
|
|
313
313
|
rankDiscoveredItems,
|
|
314
314
|
saveSourcesRegistry
|
|
315
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-DXDKAVWV.js";
|
|
316
316
|
import {
|
|
317
317
|
loadPapersRegistry,
|
|
318
318
|
loadTechniquesRegistry,
|
|
319
319
|
savePapersRegistry
|
|
320
|
-
} from "./chunk-
|
|
320
|
+
} from "./chunk-PQ3V2SYP.js";
|
|
321
321
|
import {
|
|
322
322
|
getTsMorph
|
|
323
323
|
} from "./chunk-W654ME6B.js";
|
|
324
324
|
import {
|
|
325
325
|
resolveToken
|
|
326
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-CZSEUZFE.js";
|
|
327
327
|
import {
|
|
328
328
|
MemoryError,
|
|
329
329
|
configureToolMemory,
|
|
330
330
|
shutdownToolMemory
|
|
331
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-236T3AOZ.js";
|
|
332
332
|
import "./chunk-RGB5OTRZ.js";
|
|
333
|
-
import "./chunk-
|
|
333
|
+
import "./chunk-FEAWCZ7E.js";
|
|
334
334
|
import "./chunk-BFO2NZPO.js";
|
|
335
335
|
import {
|
|
336
336
|
BUILT_IN_EXPERTS
|
|
@@ -340,7 +340,7 @@ import {
|
|
|
340
340
|
} from "./chunk-MZWHXERV.js";
|
|
341
341
|
import {
|
|
342
342
|
shutdownExpertBridge
|
|
343
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-PG6NTUTS.js";
|
|
344
344
|
import {
|
|
345
345
|
CODEX_MCP_SERVER_UNAVAILABLE_REASON,
|
|
346
346
|
Client,
|
|
@@ -354,7 +354,7 @@ import {
|
|
|
354
354
|
createUnifiedRegistry,
|
|
355
355
|
getAvailableClis,
|
|
356
356
|
getGlobalRegistry
|
|
357
|
-
} from "./chunk-
|
|
357
|
+
} from "./chunk-GDCIDLUF.js";
|
|
358
358
|
import {
|
|
359
359
|
CUSTOM_API_DEFAULT_MODEL,
|
|
360
360
|
DEFAULTS
|
|
@@ -367,20 +367,20 @@ import {
|
|
|
367
367
|
} from "./chunk-EBKVMMWA.js";
|
|
368
368
|
import {
|
|
369
369
|
ensureGatewayDiscovered
|
|
370
|
-
} from "./chunk-
|
|
370
|
+
} from "./chunk-B5RDZLU3.js";
|
|
371
371
|
import {
|
|
372
372
|
createOpenAIAdapter,
|
|
373
373
|
discoverModels,
|
|
374
374
|
readOpenAICompatEndpoint,
|
|
375
375
|
readOpenAICompatEnv
|
|
376
|
-
} from "./chunk-
|
|
376
|
+
} from "./chunk-OQR2C64M.js";
|
|
377
377
|
import {
|
|
378
378
|
hostnameOf
|
|
379
|
-
} from "./chunk-
|
|
379
|
+
} from "./chunk-P3CFDAW5.js";
|
|
380
380
|
import {
|
|
381
381
|
CODEX_LEGACY_LANDLOCK_CONFIG,
|
|
382
382
|
codexSandboxPreflight
|
|
383
|
-
} from "./chunk-
|
|
383
|
+
} from "./chunk-TV6RX3ZL.js";
|
|
384
384
|
import "./chunk-ZI6OOIEI.js";
|
|
385
385
|
import "./chunk-RARMDUSM.js";
|
|
386
386
|
import "./chunk-ROYGBFVE.js";
|
|
@@ -390,18 +390,18 @@ import {
|
|
|
390
390
|
} from "./chunk-JZYTBKAP.js";
|
|
391
391
|
import {
|
|
392
392
|
SERVES_PROBE_PROMPT
|
|
393
|
-
} from "./chunk-
|
|
393
|
+
} from "./chunk-LBVPKHHU.js";
|
|
394
394
|
import {
|
|
395
395
|
ClaudeCliAdapter,
|
|
396
396
|
IN_FAMILY_FALLBACK_OPTION
|
|
397
|
-
} from "./chunk-
|
|
397
|
+
} from "./chunk-KXWLZDQR.js";
|
|
398
398
|
import {
|
|
399
399
|
NEXUS_SUBPROCESS_DEPTH_ENV,
|
|
400
400
|
readSubprocessDepth,
|
|
401
401
|
signalTrackedProcessTreesAsync
|
|
402
|
-
} from "./chunk-
|
|
403
|
-
import "./chunk-
|
|
404
|
-
import "./chunk-
|
|
402
|
+
} from "./chunk-GR4BMQAS.js";
|
|
403
|
+
import "./chunk-DCPN7F5J.js";
|
|
404
|
+
import "./chunk-HJJRUYNR.js";
|
|
405
405
|
import "./chunk-JHTL4P4L.js";
|
|
406
406
|
import {
|
|
407
407
|
AgentCapability,
|
|
@@ -486,7 +486,7 @@ import {
|
|
|
486
486
|
toError,
|
|
487
487
|
truncateText,
|
|
488
488
|
warmStartBandit
|
|
489
|
-
} from "./chunk-
|
|
489
|
+
} from "./chunk-IZSJWIHK.js";
|
|
490
490
|
import "./chunk-XBEKMUTO.js";
|
|
491
491
|
import {
|
|
492
492
|
findInTreeByCli,
|
|
@@ -498,13 +498,13 @@ import {
|
|
|
498
498
|
getDefaultModelForCli,
|
|
499
499
|
getInTreeCapabilitiesMatrix,
|
|
500
500
|
lookupInTreeCapability
|
|
501
|
-
} from "./chunk-
|
|
501
|
+
} from "./chunk-5QNWRC7B.js";
|
|
502
502
|
import {
|
|
503
503
|
DEFAULT_MODEL_PER_CLI,
|
|
504
504
|
getDefaultRegistry,
|
|
505
505
|
normaliseModelId,
|
|
506
506
|
resolveModelIdentitySync
|
|
507
|
-
} from "./chunk-
|
|
507
|
+
} from "./chunk-JV3UBRRA.js";
|
|
508
508
|
import {
|
|
509
509
|
getLearningDir,
|
|
510
510
|
getOutcomesFile,
|
|
@@ -1922,7 +1922,7 @@ async function doctorCommand(options = {}) {
|
|
|
1922
1922
|
options.onResult?.(result);
|
|
1923
1923
|
printDoctorResults(result, void 0, options.deferSummary === true);
|
|
1924
1924
|
if (options.gateway === true || options.probe === true) {
|
|
1925
|
-
const { formatGatewayReport } = await import("./doctor-gateway-report-
|
|
1925
|
+
const { formatGatewayReport } = await import("./doctor-gateway-report-GMYX62JU.js");
|
|
1926
1926
|
for (const line of formatGatewayReport(result.gateway, result.clis)) {
|
|
1927
1927
|
process.stdout.write(line + "\n");
|
|
1928
1928
|
}
|
|
@@ -1947,7 +1947,7 @@ async function runDoctorFix(result) {
|
|
|
1947
1947
|
if (outcome.counted) fixCount++;
|
|
1948
1948
|
}
|
|
1949
1949
|
if (!result.configFile.found) {
|
|
1950
|
-
const { runConfigInitSync: runConfigInitSync2 } = await import("./setup-config-
|
|
1950
|
+
const { runConfigInitSync: runConfigInitSync2 } = await import("./setup-config-47NNRD4E.js");
|
|
1951
1951
|
const configResult = runConfigInitSync2(process.cwd(), false, false);
|
|
1952
1952
|
if (configResult.success && configResult.created) {
|
|
1953
1953
|
writeLine6(`\u2713 Generated config: ${configResult.path}`);
|
|
@@ -4592,11 +4592,11 @@ function calculateSummary(results) {
|
|
|
4592
4592
|
totalConfidence += result.confidence;
|
|
4593
4593
|
totalEvidence += result.evidenceQuality;
|
|
4594
4594
|
}
|
|
4595
|
-
const
|
|
4595
|
+
const count2 = results.length || 1;
|
|
4596
4596
|
return {
|
|
4597
4597
|
...counts,
|
|
4598
|
-
averageConfidence: totalConfidence /
|
|
4599
|
-
averageEvidenceQuality: totalEvidence /
|
|
4598
|
+
averageConfidence: totalConfidence / count2,
|
|
4599
|
+
averageEvidenceQuality: totalEvidence / count2
|
|
4600
4600
|
};
|
|
4601
4601
|
}
|
|
4602
4602
|
function parseOptions(args) {
|
|
@@ -5173,7 +5173,7 @@ Provide a structured review with:
|
|
|
5173
5173
|
* (Source: Issue #828 — Wire policy gate into production pipeline)
|
|
5174
5174
|
*/
|
|
5175
5175
|
async postReviewToGitHub(provider, pr, result, context) {
|
|
5176
|
-
const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-
|
|
5176
|
+
const { formatReviewComment: formatReviewComment2 } = await import("./pr-reviewer-helpers-KGGKESLT.js");
|
|
5177
5177
|
const formattedBody = formatReviewComment2(result);
|
|
5178
5178
|
const body = truncateText(formattedBody, DRAFT_REPLY_BODY_MAX_LENGTH, "\u2026[review truncated]");
|
|
5179
5179
|
const sources = buildReviewCitations(pr.files);
|
|
@@ -5375,6 +5375,26 @@ function safeExecSandboxed(commandString, options = {}) {
|
|
|
5375
5375
|
return null;
|
|
5376
5376
|
}
|
|
5377
5377
|
}
|
|
5378
|
+
function execSandboxed(commandString, options = {}) {
|
|
5379
|
+
const violation = validateCommandWithPolicy(commandString, options);
|
|
5380
|
+
if (violation !== null) {
|
|
5381
|
+
const msg = `Sandbox policy denied: ${violation.reason}`;
|
|
5382
|
+
logger6.warn(msg, { command: commandString });
|
|
5383
|
+
throw new Error(msg);
|
|
5384
|
+
}
|
|
5385
|
+
const execOptions = {
|
|
5386
|
+
encoding: "utf-8",
|
|
5387
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
5388
|
+
};
|
|
5389
|
+
if (options.cwd !== void 0) {
|
|
5390
|
+
execOptions.cwd = options.cwd;
|
|
5391
|
+
}
|
|
5392
|
+
if (options.stdin !== void 0) {
|
|
5393
|
+
execOptions.input = options.stdin;
|
|
5394
|
+
}
|
|
5395
|
+
const result = execSync(commandString, execOptions);
|
|
5396
|
+
return typeof result === "string" ? result.trim() : result.toString("utf-8").trim();
|
|
5397
|
+
}
|
|
5378
5398
|
|
|
5379
5399
|
// src/cli/review-demo-helpers.ts
|
|
5380
5400
|
var GITHUB_API_TIMEOUT_MS = API_TIMEOUTS.githubApiMs;
|
|
@@ -7462,8 +7482,8 @@ async function handlePrune(args, log, flags) {
|
|
|
7462
7482
|
if (!result.ok) {
|
|
7463
7483
|
throw new Error(result.error.message);
|
|
7464
7484
|
}
|
|
7465
|
-
const
|
|
7466
|
-
output(dryRun ? "Would delete " +
|
|
7485
|
+
const count2 = String(result.value);
|
|
7486
|
+
output(dryRun ? "Would delete " + count2 + " sessions." : "Deleted " + count2 + " sessions.");
|
|
7467
7487
|
}
|
|
7468
7488
|
async function sessionCommand(subcommand, args, logger22, flags = {}) {
|
|
7469
7489
|
const log = logger22 ?? createLogger({ component: "SessionCommand" });
|
|
@@ -7481,6 +7501,81 @@ async function sessionCommand(subcommand, args, logger22, flags = {}) {
|
|
|
7481
7501
|
import * as fs5 from "node:fs";
|
|
7482
7502
|
import * as path4 from "node:path";
|
|
7483
7503
|
|
|
7504
|
+
// src/cli/system-review-audit.ts
|
|
7505
|
+
import { z as z2 } from "zod";
|
|
7506
|
+
var MAX_AUDIT_OUTPUT_BYTES = 1024 * 1024;
|
|
7507
|
+
var count = z2.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER);
|
|
7508
|
+
var reportSchema = z2.object({
|
|
7509
|
+
error: z2.never().optional(),
|
|
7510
|
+
errors: z2.never().optional(),
|
|
7511
|
+
metadata: z2.object({
|
|
7512
|
+
vulnerabilities: z2.object({
|
|
7513
|
+
info: count,
|
|
7514
|
+
low: count,
|
|
7515
|
+
moderate: count,
|
|
7516
|
+
high: count,
|
|
7517
|
+
critical: count,
|
|
7518
|
+
total: count.optional()
|
|
7519
|
+
}).strict()
|
|
7520
|
+
})
|
|
7521
|
+
});
|
|
7522
|
+
function unavailable(reason, exitCode) {
|
|
7523
|
+
return { status: "unmeasured", reason, ...exitCode === void 0 ? {} : { exitCode } };
|
|
7524
|
+
}
|
|
7525
|
+
function knownExitCode(value) {
|
|
7526
|
+
return typeof value === "number" && Number.isInteger(value) && value >= 0 && value <= 255 ? value : void 0;
|
|
7527
|
+
}
|
|
7528
|
+
function wasTerminated(error) {
|
|
7529
|
+
const signal = "signal" in error && error.signal !== void 0 && error.signal !== null;
|
|
7530
|
+
const killed = "killed" in error && error.killed !== void 0 && error.killed !== false;
|
|
7531
|
+
return signal || killed;
|
|
7532
|
+
}
|
|
7533
|
+
function hasExecutionErrorCode(error) {
|
|
7534
|
+
return "code" in error && error.code !== void 0 && error.code !== 1;
|
|
7535
|
+
}
|
|
7536
|
+
function readFindingsOutput(error) {
|
|
7537
|
+
const exitCode = knownExitCode("status" in error ? error.status : void 0);
|
|
7538
|
+
if (exitCode !== 1 || wasTerminated(error) || hasExecutionErrorCode(error)) {
|
|
7539
|
+
return unavailable("execution-failed", exitCode);
|
|
7540
|
+
}
|
|
7541
|
+
if (!("stdout" in error) || typeof error.stdout !== "string") {
|
|
7542
|
+
return unavailable("execution-failed", exitCode);
|
|
7543
|
+
}
|
|
7544
|
+
return { stdout: error.stdout, exitCode };
|
|
7545
|
+
}
|
|
7546
|
+
function readExecution(execution) {
|
|
7547
|
+
if (typeof execution === "string") return { stdout: execution, exitCode: 0 };
|
|
7548
|
+
if (execution === void 0 || execution === null) return unavailable("missing-output");
|
|
7549
|
+
return typeof execution === "object" ? readFindingsOutput(execution) : unavailable("execution-failed");
|
|
7550
|
+
}
|
|
7551
|
+
function isConsistentTotal(computed, reported) {
|
|
7552
|
+
return Number.isSafeInteger(computed) && (reported === void 0 || reported === computed);
|
|
7553
|
+
}
|
|
7554
|
+
function parsePnpmAuditResult(execution) {
|
|
7555
|
+
const completed = readExecution(execution);
|
|
7556
|
+
if ("status" in completed) return completed;
|
|
7557
|
+
const { stdout, exitCode } = completed;
|
|
7558
|
+
if (Buffer.byteLength(stdout, "utf8") > MAX_AUDIT_OUTPUT_BYTES) {
|
|
7559
|
+
return unavailable("output-too-large", exitCode);
|
|
7560
|
+
}
|
|
7561
|
+
if (stdout.trim() === "") return unavailable("missing-output", exitCode);
|
|
7562
|
+
let raw;
|
|
7563
|
+
try {
|
|
7564
|
+
raw = JSON.parse(stdout);
|
|
7565
|
+
} catch {
|
|
7566
|
+
return unavailable("invalid-json", exitCode);
|
|
7567
|
+
}
|
|
7568
|
+
const parsed = reportSchema.safeParse(raw);
|
|
7569
|
+
if (!parsed.success) return unavailable("invalid-counts", exitCode);
|
|
7570
|
+
const { total: reportedTotal, ...counts } = parsed.data.metadata.vulnerabilities;
|
|
7571
|
+
const total = counts.info + counts.low + counts.moderate + counts.high + counts.critical;
|
|
7572
|
+
if (!isConsistentTotal(total, reportedTotal)) {
|
|
7573
|
+
return unavailable("invalid-counts", exitCode);
|
|
7574
|
+
}
|
|
7575
|
+
if (exitCode === 1 && total === 0) return unavailable("inconsistent-report", exitCode);
|
|
7576
|
+
return { status: "measured", exitCode, counts: { ...counts, total } };
|
|
7577
|
+
}
|
|
7578
|
+
|
|
7484
7579
|
// src/cli/system-review-types.ts
|
|
7485
7580
|
var SYSTEM_REVIEW_CONSTANTS = {
|
|
7486
7581
|
/** Time thresholds */
|
|
@@ -7535,7 +7630,7 @@ function calculateHealthScore(r) {
|
|
|
7535
7630
|
for (const d of r.docs) {
|
|
7536
7631
|
score -= d.status === "stale" ? DOC_STALE_PENALTY : d.status === "review" ? DOC_REVIEW_PENALTY : 0;
|
|
7537
7632
|
}
|
|
7538
|
-
score -= r.security.parseError === true ? SECURITY_UNMEASURED_PENALTY : r.security.high * SECURITY_HIGH_PENALTY + r.security.moderate * SECURITY_MODERATE_PENALTY;
|
|
7633
|
+
score -= r.security.parseError === true ? SECURITY_UNMEASURED_PENALTY : (r.security.high + (r.security.critical ?? 0)) * SECURITY_HIGH_PENALTY + r.security.moderate * SECURITY_MODERATE_PENALTY;
|
|
7539
7634
|
if (!r.quality.typecheckPass) score -= TYPECHECK_FAIL_PENALTY;
|
|
7540
7635
|
if (!r.quality.lintPass) score -= LINT_FAIL_PENALTY;
|
|
7541
7636
|
if (r.quality.coveragePercent !== null && r.quality.coveragePercent < COVERAGE_TARGET_PERCENT) {
|
|
@@ -7581,13 +7676,16 @@ function printPhase4(s) {
|
|
|
7581
7676
|
writeLine(`${colors.cyan}Phase 4: Security Audit${colors.reset}
|
|
7582
7677
|
`);
|
|
7583
7678
|
if (s.parseError === true) {
|
|
7584
|
-
writeLine(` ${formatStatus("warn")} Unmeasured \u2014 the audit did not
|
|
7679
|
+
writeLine(` ${formatStatus("warn")} Unmeasured \u2014 the audit did not produce a usable result`);
|
|
7585
7680
|
writeLine("");
|
|
7586
7681
|
return;
|
|
7587
7682
|
}
|
|
7588
7683
|
if (s.totalVulns === 0) {
|
|
7589
7684
|
writeLine(` ${formatStatus("pass")} No vulnerabilities found`);
|
|
7590
7685
|
} else {
|
|
7686
|
+
if ((s.critical ?? 0) > 0)
|
|
7687
|
+
writeLine(` ${formatStatus("fail")} Critical: ${String(s.critical)}`);
|
|
7688
|
+
if ((s.info ?? 0) > 0) writeLine(` ${formatStatus("pass")} Info: ${String(s.info)}`);
|
|
7591
7689
|
if (s.high > 0) writeLine(` ${formatStatus("fail")} High: ${String(s.high)}`);
|
|
7592
7690
|
if (s.moderate > 0) writeLine(` ${formatStatus("warn")} Moderate: ${String(s.moderate)}`);
|
|
7593
7691
|
if (s.low > 0) writeLine(` ${formatStatus("pass")} Low: ${String(s.low)}`);
|
|
@@ -7612,7 +7710,12 @@ function formatDocRow(d) {
|
|
|
7612
7710
|
return `| ${d.file} | ${String(d.daysSinceUpdate)} | ${statusIcon}${newerInfo} |`;
|
|
7613
7711
|
}
|
|
7614
7712
|
function formatSecurityCaveat(s) {
|
|
7615
|
-
return s.parseError === true ? "> **Unmeasured:** the audit did not
|
|
7713
|
+
return s.parseError === true ? "> **Unmeasured:** the audit did not produce a usable result \u2014 the counts below are defaults, not findings.\n\n" : "";
|
|
7714
|
+
}
|
|
7715
|
+
function formatAdditionalSeverities(s) {
|
|
7716
|
+
return (s.critical === void 0 ? "" : `- Critical: ${String(s.critical)}
|
|
7717
|
+
`) + (s.info === void 0 ? "" : `- Info: ${String(s.info)}
|
|
7718
|
+
`);
|
|
7616
7719
|
}
|
|
7617
7720
|
function createIssueBody(r) {
|
|
7618
7721
|
const now = new Date(getTimeProvider().now());
|
|
@@ -7648,7 +7751,7 @@ ${r.docs.map(formatDocRow).join("\n")}
|
|
|
7648
7751
|
|
|
7649
7752
|
### Phase 4: Security
|
|
7650
7753
|
|
|
7651
|
-
${formatSecurityCaveat(r.security)}- High: ${String(r.security.high)}
|
|
7754
|
+
${formatSecurityCaveat(r.security)}${formatAdditionalSeverities(r.security)}- High: ${String(r.security.high)}
|
|
7652
7755
|
- Moderate: ${String(r.security.moderate)}
|
|
7653
7756
|
- Low: ${String(r.security.low)}
|
|
7654
7757
|
|
|
@@ -7936,9 +8039,9 @@ var {
|
|
|
7936
8039
|
NOT_STARTED_TECHNIQUE_THRESHOLD,
|
|
7937
8040
|
HEALTH_SCORE_WARN_THRESHOLD: HEALTH_SCORE_WARN_THRESHOLD2
|
|
7938
8041
|
} = SYSTEM_REVIEW_CONSTANTS;
|
|
7939
|
-
function safeExec(command, cwd
|
|
8042
|
+
function safeExec(command, cwd) {
|
|
7940
8043
|
const context = command.startsWith("gh ") ? "gh" : command.startsWith("git ") ? "git" : command.startsWith("pnpm ") ? "write" : "read";
|
|
7941
|
-
return cwd !== void 0 ? safeExecSandboxed(command, { context, cwd
|
|
8044
|
+
return cwd !== void 0 ? safeExecSandboxed(command, { context, cwd }) : safeExecSandboxed(command, { context });
|
|
7942
8045
|
}
|
|
7943
8046
|
function parseGhIssueList(json, context) {
|
|
7944
8047
|
try {
|
|
@@ -8013,30 +8116,19 @@ function runPhase3() {
|
|
|
8013
8116
|
return { openCount, staleCount, byLabel };
|
|
8014
8117
|
}
|
|
8015
8118
|
function runPhase4(projectRoot) {
|
|
8016
|
-
|
|
8017
|
-
const out = safeExec("pnpm audit --json", projectRoot, true);
|
|
8018
|
-
if (out === null) {
|
|
8019
|
-
logger10.warn("pnpm audit command failed or returned null", { projectRoot });
|
|
8020
|
-
return { ...def, parseError: true };
|
|
8021
|
-
}
|
|
8119
|
+
let execution;
|
|
8022
8120
|
try {
|
|
8023
|
-
|
|
8024
|
-
const m = a.metadata?.vulnerabilities ?? {};
|
|
8025
|
-
return {
|
|
8026
|
-
totalVulns: m.total ?? 0,
|
|
8027
|
-
high: m.high ?? 0,
|
|
8028
|
-
moderate: m.moderate ?? 0,
|
|
8029
|
-
low: m.low ?? 0,
|
|
8030
|
-
parseError: false
|
|
8031
|
-
};
|
|
8121
|
+
execution = execSandboxed("pnpm audit --json", { context: "write", cwd: projectRoot });
|
|
8032
8122
|
} catch (error) {
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
});
|
|
8038
|
-
return {
|
|
8123
|
+
execution = error;
|
|
8124
|
+
}
|
|
8125
|
+
const audit = parsePnpmAuditResult(execution);
|
|
8126
|
+
if (audit.status === "unmeasured") {
|
|
8127
|
+
logger10.warn("Security audit is unmeasured", { reason: audit.reason, exitCode: audit.exitCode });
|
|
8128
|
+
return { totalVulns: 0, info: 0, critical: 0, high: 0, moderate: 0, low: 0, parseError: true };
|
|
8039
8129
|
}
|
|
8130
|
+
const { total: totalVulns, ...counts } = audit.counts;
|
|
8131
|
+
return { totalVulns, ...counts, parseError: false };
|
|
8040
8132
|
}
|
|
8041
8133
|
function runPhase5(projectRoot) {
|
|
8042
8134
|
const tc = safeExec("pnpm typecheck", projectRoot);
|
|
@@ -8068,12 +8160,16 @@ function getQualityItems(q) {
|
|
|
8068
8160
|
}
|
|
8069
8161
|
function getSecurityItems(security) {
|
|
8070
8162
|
if (security.parseError === true) {
|
|
8071
|
-
return ["WARNING: Security audit
|
|
8163
|
+
return ["WARNING: Security audit is unmeasured - verify pnpm audit manually"];
|
|
8164
|
+
}
|
|
8165
|
+
const items = [];
|
|
8166
|
+
if ((security.critical ?? 0) > 0) {
|
|
8167
|
+
items.push(`Address ${String(security.critical)} critical-severity vulnerabilities`);
|
|
8072
8168
|
}
|
|
8073
8169
|
if (security.high > 0) {
|
|
8074
|
-
|
|
8170
|
+
items.push(`Address ${String(security.high)} high-severity vulnerabilities`);
|
|
8075
8171
|
}
|
|
8076
|
-
return
|
|
8172
|
+
return items;
|
|
8077
8173
|
}
|
|
8078
8174
|
function getStaleDocItems(docs) {
|
|
8079
8175
|
const items = [];
|
|
@@ -8175,8 +8271,8 @@ function fallbackLabel({ role, fallback, toCli, toModel }) {
|
|
|
8175
8271
|
const to = inFamily ? toModel ?? toCli : toCli;
|
|
8176
8272
|
return `${role}: ${from}\u2192${to}, ${fallback.reason}`;
|
|
8177
8273
|
}
|
|
8178
|
-
function seatCount(
|
|
8179
|
-
return
|
|
8274
|
+
function seatCount(count2, label) {
|
|
8275
|
+
return count2 === 0 ? "" : `${String(count2)} ${count2 === 1 ? "seat" : "seats"} ${label}`;
|
|
8180
8276
|
}
|
|
8181
8277
|
function modelsLine(votes) {
|
|
8182
8278
|
const { distinctModels, distinctFamilies, unclassifiedSeats, unresolvedSeats, fallbacks } = panelDiversityOf(votes);
|
|
@@ -8680,7 +8776,7 @@ ${colors.bold}Nexus Agents Consensus Vote${colors.reset}`);
|
|
|
8680
8776
|
}
|
|
8681
8777
|
|
|
8682
8778
|
// src/cli/issue-command.ts
|
|
8683
|
-
import { z as
|
|
8779
|
+
import { z as z3 } from "zod";
|
|
8684
8780
|
|
|
8685
8781
|
// src/cli/issue-template-definitions.ts
|
|
8686
8782
|
var FEAT_TEMPLATE = {
|
|
@@ -8997,12 +9093,12 @@ function generateTemplateBody(type) {
|
|
|
8997
9093
|
}
|
|
8998
9094
|
|
|
8999
9095
|
// src/cli/issue-command.ts
|
|
9000
|
-
var GhIssueJsonSchema =
|
|
9001
|
-
number:
|
|
9002
|
-
title:
|
|
9003
|
-
body:
|
|
9004
|
-
state:
|
|
9005
|
-
labels:
|
|
9096
|
+
var GhIssueJsonSchema = z3.object({
|
|
9097
|
+
number: z3.number(),
|
|
9098
|
+
title: z3.string(),
|
|
9099
|
+
body: z3.string().nullable(),
|
|
9100
|
+
state: z3.string(),
|
|
9101
|
+
labels: z3.array(z3.object({ name: z3.string() }))
|
|
9006
9102
|
});
|
|
9007
9103
|
function fetchGitHubIssue(issueNumber) {
|
|
9008
9104
|
let output2;
|
|
@@ -9669,8 +9765,8 @@ import * as path7 from "node:path";
|
|
|
9669
9765
|
import * as yaml3 from "yaml";
|
|
9670
9766
|
|
|
9671
9767
|
// src/research/research-schemas.ts
|
|
9672
|
-
import { z as
|
|
9673
|
-
var ResearchTopicSchema =
|
|
9768
|
+
import { z as z4 } from "zod";
|
|
9769
|
+
var ResearchTopicSchema = z4.string().min(1);
|
|
9674
9770
|
var RESEARCH_TOPICS = [
|
|
9675
9771
|
"consensus",
|
|
9676
9772
|
"routing",
|
|
@@ -9701,95 +9797,95 @@ var TOPIC_DESCRIPTIONS = {
|
|
|
9701
9797
|
};
|
|
9702
9798
|
var PaperStatusSchema2 = PaperStatusSchema;
|
|
9703
9799
|
var TechniqueStatusSchema2 = TechniqueStatusSchema;
|
|
9704
|
-
var TechniquePrioritySchema =
|
|
9705
|
-
var TechniqueComplexitySchema =
|
|
9706
|
-
var RelevanceSchema =
|
|
9707
|
-
var PaperSourceSchema =
|
|
9708
|
-
var DecisionHistoryEntrySchema =
|
|
9709
|
-
date:
|
|
9710
|
-
decision:
|
|
9711
|
-
rationale:
|
|
9800
|
+
var TechniquePrioritySchema = z4.enum(["P1", "P2", "P3", "P4"]).nullable();
|
|
9801
|
+
var TechniqueComplexitySchema = z4.enum(["low", "medium", "high"]);
|
|
9802
|
+
var RelevanceSchema = z4.enum(["high", "medium", "low"]);
|
|
9803
|
+
var PaperSourceSchema = z4.enum(["arxiv", "conference", "journal", "preprint"]);
|
|
9804
|
+
var DecisionHistoryEntrySchema = z4.object({
|
|
9805
|
+
date: z4.string().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be YYYY-MM-DD format"),
|
|
9806
|
+
decision: z4.string().min(1),
|
|
9807
|
+
rationale: z4.string().min(1)
|
|
9712
9808
|
});
|
|
9713
|
-
var ResearchPaperSchema =
|
|
9809
|
+
var ResearchPaperSchema = z4.object({
|
|
9714
9810
|
/** Paper title (required) */
|
|
9715
|
-
title:
|
|
9811
|
+
title: z4.string().min(1),
|
|
9716
9812
|
/** Paper authors */
|
|
9717
|
-
authors:
|
|
9813
|
+
authors: z4.array(z4.string()).optional().default([]),
|
|
9718
9814
|
/** Source type */
|
|
9719
9815
|
source: PaperSourceSchema.optional(),
|
|
9720
9816
|
/** arXiv ID (e.g., '2501.06322') */
|
|
9721
|
-
arxiv_id:
|
|
9817
|
+
arxiv_id: z4.string().optional(),
|
|
9722
9818
|
/** URL to the paper */
|
|
9723
9819
|
// eslint-disable-next-line @typescript-eslint/no-deprecated -- z.url() fails at runtime despite being recommended
|
|
9724
|
-
url:
|
|
9820
|
+
url: z4.string().url().optional(),
|
|
9725
9821
|
/** Publication date (YYYY-MM format) */
|
|
9726
|
-
publication_date:
|
|
9822
|
+
publication_date: z4.string().optional(),
|
|
9727
9823
|
/** Publication venue */
|
|
9728
|
-
venue:
|
|
9824
|
+
venue: z4.string().nullable().optional(),
|
|
9729
9825
|
/**
|
|
9730
9826
|
* Research topics (array).
|
|
9731
9827
|
* First topic is considered primary for counting purposes.
|
|
9732
9828
|
*/
|
|
9733
|
-
topics:
|
|
9829
|
+
topics: z4.array(z4.string()).optional().default([]),
|
|
9734
9830
|
/** Tags for searching */
|
|
9735
|
-
tags:
|
|
9831
|
+
tags: z4.array(z4.string()).optional().default([]),
|
|
9736
9832
|
/** Date when the paper was reviewed (YYYY-MM-DD) */
|
|
9737
|
-
reviewed_date:
|
|
9833
|
+
reviewed_date: z4.string().optional(),
|
|
9738
9834
|
/** File where the paper is reviewed */
|
|
9739
|
-
reviewed_in:
|
|
9835
|
+
reviewed_in: z4.string().optional(),
|
|
9740
9836
|
/** Summary of the paper */
|
|
9741
|
-
summary:
|
|
9837
|
+
summary: z4.string().optional(),
|
|
9742
9838
|
/** Key findings from the paper */
|
|
9743
|
-
key_findings:
|
|
9839
|
+
key_findings: z4.array(z4.string()).optional().default([]),
|
|
9744
9840
|
/** Relevance to the project */
|
|
9745
9841
|
relevance: RelevanceSchema.optional(),
|
|
9746
9842
|
/** Techniques extracted from this paper */
|
|
9747
|
-
techniques_extracted:
|
|
9843
|
+
techniques_extracted: z4.array(z4.string()).optional().default([]),
|
|
9748
9844
|
/** Related GitHub issues */
|
|
9749
|
-
related_issues:
|
|
9845
|
+
related_issues: z4.array(z4.number().int().positive()).optional().default([]),
|
|
9750
9846
|
/** Implementation status */
|
|
9751
9847
|
implementation_status: PaperStatusSchema2.optional().default("not-started"),
|
|
9752
9848
|
// ── Quality Assessment (Issue #1571) ──────────────────────────
|
|
9753
9849
|
/** Citation count from Semantic Scholar (auto-fetched) */
|
|
9754
|
-
citation_count:
|
|
9850
|
+
citation_count: z4.number().nonnegative().optional(),
|
|
9755
9851
|
/** Venue quality tier: 3=top (NeurIPS/ICML/ICLR), 2=good, 1=workshop, 0=preprint */
|
|
9756
|
-
venue_tier:
|
|
9852
|
+
venue_tier: z4.number().min(0).max(3).optional(),
|
|
9757
9853
|
/** Whether the paper links to a code repository */
|
|
9758
|
-
has_code:
|
|
9854
|
+
has_code: z4.boolean().optional(),
|
|
9759
9855
|
/** Code repository URL (from Papers With Code or manual) */
|
|
9760
|
-
code_url:
|
|
9856
|
+
code_url: z4.string().optional(),
|
|
9761
9857
|
/** Rigor assessment tags (factual, verifiable signals) */
|
|
9762
|
-
rigor_tags:
|
|
9763
|
-
|
|
9858
|
+
rigor_tags: z4.array(
|
|
9859
|
+
z4.enum(["has-code", "has-dataset", "has-baselines", "peer-reviewed", "single-model-eval"])
|
|
9764
9860
|
).optional().default([]),
|
|
9765
9861
|
/** Composite quality score (0-10, auto-computed from signals) */
|
|
9766
|
-
quality_score:
|
|
9862
|
+
quality_score: z4.number().min(0).max(10).optional(),
|
|
9767
9863
|
/** Evidence confidence tier for extracted techniques */
|
|
9768
|
-
evidence_tier:
|
|
9864
|
+
evidence_tier: z4.enum(["high", "medium", "low"]).optional(),
|
|
9769
9865
|
/** Why this paper scored low — enables future re-review when conditions change */
|
|
9770
|
-
quality_notes:
|
|
9866
|
+
quality_notes: z4.string().optional(),
|
|
9771
9867
|
/** When quality was last assessed (ISO date) — enables periodic re-review */
|
|
9772
|
-
last_quality_check:
|
|
9868
|
+
last_quality_check: z4.string().optional()
|
|
9773
9869
|
});
|
|
9774
|
-
var IntegrationFileObjectSchema =
|
|
9775
|
-
path:
|
|
9776
|
-
type:
|
|
9777
|
-
required:
|
|
9870
|
+
var IntegrationFileObjectSchema = z4.object({
|
|
9871
|
+
path: z4.string(),
|
|
9872
|
+
type: z4.enum(["primary", "test", "types", "helpers"]).optional(),
|
|
9873
|
+
required: z4.boolean().default(true)
|
|
9778
9874
|
});
|
|
9779
|
-
var IntegrationFileSchema =
|
|
9780
|
-
var ResearchTechniqueSchema =
|
|
9875
|
+
var IntegrationFileSchema = z4.union([z4.string(), IntegrationFileObjectSchema]);
|
|
9876
|
+
var ResearchTechniqueSchema = z4.object({
|
|
9781
9877
|
/** Technique name (required) */
|
|
9782
|
-
name:
|
|
9878
|
+
name: z4.string().min(1),
|
|
9783
9879
|
/** Description of the technique (required) */
|
|
9784
|
-
description:
|
|
9880
|
+
description: z4.string().min(1),
|
|
9785
9881
|
/** Source papers (arXiv IDs or paper IDs) */
|
|
9786
|
-
source_papers:
|
|
9882
|
+
source_papers: z4.array(z4.string()).optional().default([]),
|
|
9787
9883
|
/** Primary topic (required) */
|
|
9788
9884
|
topic: ResearchTopicSchema,
|
|
9789
9885
|
/** Tags for searching */
|
|
9790
|
-
tags:
|
|
9886
|
+
tags: z4.array(z4.string()).optional().default([]),
|
|
9791
9887
|
/** Metrics associated with this technique */
|
|
9792
|
-
metrics:
|
|
9888
|
+
metrics: z4.record(z4.string(), z4.string()).optional().default({}),
|
|
9793
9889
|
/** Implementation status (required) */
|
|
9794
9890
|
status: TechniqueStatusSchema2,
|
|
9795
9891
|
/** Priority level */
|
|
@@ -9797,35 +9893,35 @@ var ResearchTechniqueSchema = z3.object({
|
|
|
9797
9893
|
/** Complexity level */
|
|
9798
9894
|
complexity: TechniqueComplexitySchema.optional(),
|
|
9799
9895
|
/** Files where this technique is implemented */
|
|
9800
|
-
integration_files:
|
|
9896
|
+
integration_files: z4.array(IntegrationFileSchema).optional().default([]),
|
|
9801
9897
|
/** GitHub issue number for implementation */
|
|
9802
|
-
implementation_issue:
|
|
9898
|
+
implementation_issue: z4.number().int().positive().nullable().optional().default(null),
|
|
9803
9899
|
/** Related PR numbers */
|
|
9804
|
-
related_prs:
|
|
9900
|
+
related_prs: z4.array(z4.number().int().positive()).optional().default([]),
|
|
9805
9901
|
/** Implementation notes */
|
|
9806
|
-
notes:
|
|
9902
|
+
notes: z4.string().optional(),
|
|
9807
9903
|
/** Dependent techniques */
|
|
9808
|
-
dependencies:
|
|
9904
|
+
dependencies: z4.array(z4.string()).optional().default([]),
|
|
9809
9905
|
/** Decision history */
|
|
9810
|
-
decision_history:
|
|
9906
|
+
decision_history: z4.array(DecisionHistoryEntrySchema).optional().default([]),
|
|
9811
9907
|
// ── Evaluation Plan (Issue #1576 Wave 6) ──────────────────────
|
|
9812
9908
|
/** Structured evaluation plan for keeping or removing the technique */
|
|
9813
|
-
evaluation_plan:
|
|
9814
|
-
success_criteria:
|
|
9815
|
-
evaluation_method:
|
|
9816
|
-
evaluation_deadline:
|
|
9817
|
-
removal_criteria:
|
|
9909
|
+
evaluation_plan: z4.object({
|
|
9910
|
+
success_criteria: z4.string().optional(),
|
|
9911
|
+
evaluation_method: z4.string().optional(),
|
|
9912
|
+
evaluation_deadline: z4.string().optional(),
|
|
9913
|
+
removal_criteria: z4.string().optional()
|
|
9818
9914
|
}).optional(),
|
|
9819
9915
|
/** Evaluation status: pending (not yet evaluated), passed, failed, deferred */
|
|
9820
|
-
evaluation_status:
|
|
9916
|
+
evaluation_status: z4.enum(["pending", "passed", "failed", "deferred"]).optional()
|
|
9821
9917
|
});
|
|
9822
|
-
var PapersRegistrySchema =
|
|
9823
|
-
schema_version:
|
|
9824
|
-
papers:
|
|
9918
|
+
var PapersRegistrySchema = z4.object({
|
|
9919
|
+
schema_version: z4.string(),
|
|
9920
|
+
papers: z4.record(z4.string(), ResearchPaperSchema)
|
|
9825
9921
|
});
|
|
9826
|
-
var TechniquesRegistrySchema =
|
|
9827
|
-
schema_version:
|
|
9828
|
-
techniques:
|
|
9922
|
+
var TechniquesRegistrySchema = z4.object({
|
|
9923
|
+
schema_version: z4.string(),
|
|
9924
|
+
techniques: z4.record(z4.string(), ResearchTechniqueSchema)
|
|
9829
9925
|
});
|
|
9830
9926
|
function getIntegrationFilePath(file) {
|
|
9831
9927
|
if (typeof file === "string") {
|
|
@@ -11555,43 +11651,43 @@ function validateIndex(index, currentFiles) {
|
|
|
11555
11651
|
}
|
|
11556
11652
|
|
|
11557
11653
|
// src/indexer/entrypoint-types.ts
|
|
11558
|
-
import { z as
|
|
11654
|
+
import { z as z5 } from "zod";
|
|
11559
11655
|
var ENTRYPOINT_SCHEMA_VERSION = "1.0";
|
|
11560
|
-
var OptionSpecSchema =
|
|
11561
|
-
name:
|
|
11562
|
-
type:
|
|
11563
|
-
description:
|
|
11564
|
-
required:
|
|
11565
|
-
default:
|
|
11566
|
-
short:
|
|
11656
|
+
var OptionSpecSchema = z5.object({
|
|
11657
|
+
name: z5.string(),
|
|
11658
|
+
type: z5.string(),
|
|
11659
|
+
description: z5.string().optional(),
|
|
11660
|
+
required: z5.boolean().optional(),
|
|
11661
|
+
default: z5.string().optional(),
|
|
11662
|
+
short: z5.string().optional()
|
|
11567
11663
|
});
|
|
11568
|
-
var ParameterSpecSchema =
|
|
11569
|
-
name:
|
|
11570
|
-
type:
|
|
11571
|
-
description:
|
|
11572
|
-
required:
|
|
11573
|
-
default:
|
|
11664
|
+
var ParameterSpecSchema = z5.object({
|
|
11665
|
+
name: z5.string(),
|
|
11666
|
+
type: z5.string(),
|
|
11667
|
+
description: z5.string().optional(),
|
|
11668
|
+
required: z5.boolean().optional(),
|
|
11669
|
+
default: z5.string().optional()
|
|
11574
11670
|
});
|
|
11575
|
-
var CliCommandSpecSchema =
|
|
11576
|
-
name:
|
|
11577
|
-
description:
|
|
11578
|
-
subcommands:
|
|
11579
|
-
options:
|
|
11580
|
-
source_file:
|
|
11581
|
-
source_line:
|
|
11671
|
+
var CliCommandSpecSchema = z5.object({
|
|
11672
|
+
name: z5.string(),
|
|
11673
|
+
description: z5.string(),
|
|
11674
|
+
subcommands: z5.array(z5.string()).readonly().optional(),
|
|
11675
|
+
options: z5.array(OptionSpecSchema).readonly().optional(),
|
|
11676
|
+
source_file: z5.string(),
|
|
11677
|
+
source_line: z5.number().int().positive()
|
|
11582
11678
|
});
|
|
11583
|
-
var McpToolSpecSchema =
|
|
11584
|
-
name:
|
|
11585
|
-
description:
|
|
11586
|
-
parameters:
|
|
11587
|
-
source_file:
|
|
11588
|
-
source_line:
|
|
11679
|
+
var McpToolSpecSchema = z5.object({
|
|
11680
|
+
name: z5.string(),
|
|
11681
|
+
description: z5.string(),
|
|
11682
|
+
parameters: z5.array(ParameterSpecSchema).readonly(),
|
|
11683
|
+
source_file: z5.string(),
|
|
11684
|
+
source_line: z5.number().int().positive()
|
|
11589
11685
|
});
|
|
11590
|
-
var EntrypointManifestSchema =
|
|
11591
|
-
schema_version:
|
|
11592
|
-
generated_at:
|
|
11593
|
-
cli_commands:
|
|
11594
|
-
mcp_tools:
|
|
11686
|
+
var EntrypointManifestSchema = z5.object({
|
|
11687
|
+
schema_version: z5.literal(ENTRYPOINT_SCHEMA_VERSION),
|
|
11688
|
+
generated_at: z5.string(),
|
|
11689
|
+
cli_commands: z5.array(CliCommandSpecSchema).readonly(),
|
|
11690
|
+
mcp_tools: z5.array(McpToolSpecSchema).readonly()
|
|
11595
11691
|
});
|
|
11596
11692
|
var DEFAULT_ENTRYPOINT_EXTRACTOR_OPTIONS = {
|
|
11597
11693
|
packageRoot: "packages/nexus-agents",
|
|
@@ -12933,7 +13029,7 @@ function probeGrammars(register, parse6, probes = GRAMMAR_PROBES) {
|
|
|
12933
13029
|
}
|
|
12934
13030
|
async function loadGrammarModules() {
|
|
12935
13031
|
const [{ ensurePolyglotLangs }, napi] = await Promise.all([
|
|
12936
|
-
import("./ast-rule-runner-
|
|
13032
|
+
import("./ast-rule-runner-2PEUHSHO.js"),
|
|
12937
13033
|
import("@ast-grep/napi")
|
|
12938
13034
|
]);
|
|
12939
13035
|
return { register: ensurePolyglotLangs, parse: napi.parse };
|
|
@@ -13242,12 +13338,12 @@ function checkConfigLoading() {
|
|
|
13242
13338
|
}
|
|
13243
13339
|
function checkExpertSystem() {
|
|
13244
13340
|
const expertTypes = Object.keys(BUILT_IN_EXPERTS);
|
|
13245
|
-
const
|
|
13246
|
-
if (
|
|
13341
|
+
const count2 = expertTypes.length;
|
|
13342
|
+
if (count2 >= 5) {
|
|
13247
13343
|
return {
|
|
13248
13344
|
name: "Expert System",
|
|
13249
13345
|
passed: true,
|
|
13250
|
-
message: `${String(
|
|
13346
|
+
message: `${String(count2)} expert types available`
|
|
13251
13347
|
};
|
|
13252
13348
|
}
|
|
13253
13349
|
return {
|
|
@@ -13574,9 +13670,9 @@ function aggregateFeatureImportance(banditStats) {
|
|
|
13574
13670
|
featureMap.set(fi.feature, { sum: existing.sum + fi.importance, count: existing.count + 1 });
|
|
13575
13671
|
}
|
|
13576
13672
|
}
|
|
13577
|
-
const topFeatures = Array.from(featureMap.entries()).map(([feature, { sum, count }]) => ({
|
|
13673
|
+
const topFeatures = Array.from(featureMap.entries()).map(([feature, { sum, count: count2 }]) => ({
|
|
13578
13674
|
feature,
|
|
13579
|
-
importance: sum /
|
|
13675
|
+
importance: sum / count2,
|
|
13580
13676
|
direction: sum >= 0 ? "positive" : "negative"
|
|
13581
13677
|
})).sort((a, b) => Math.abs(b.importance) - Math.abs(a.importance)).slice(0, 5);
|
|
13582
13678
|
return topFeatures;
|
|
@@ -13700,8 +13796,8 @@ function formatSummary2(result) {
|
|
|
13700
13796
|
lines.push(color("\u251C" + horizontalLine() + "\u2524", ANSI3.cyan));
|
|
13701
13797
|
return lines;
|
|
13702
13798
|
}
|
|
13703
|
-
function sampleLabel(source,
|
|
13704
|
-
return `${
|
|
13799
|
+
function sampleLabel(source, count2) {
|
|
13800
|
+
return `${count2.toLocaleString()} ${source === "bandit" ? "pulls" : "routings"}`;
|
|
13705
13801
|
}
|
|
13706
13802
|
function formatSelectionShare(model) {
|
|
13707
13803
|
if (model.routingSelectionCount === 0) return UNMEASURED_NO_ROUTINGS;
|
|
@@ -13936,30 +14032,30 @@ function gatherContextMetrics(context, options) {
|
|
|
13936
14032
|
import { existsSync as existsSync14 } from "node:fs";
|
|
13937
14033
|
|
|
13938
14034
|
// src/cli/setup-types.ts
|
|
13939
|
-
import { z as
|
|
13940
|
-
var SetupOptionsSchema =
|
|
14035
|
+
import { z as z6 } from "zod";
|
|
14036
|
+
var SetupOptionsSchema = z6.object({
|
|
13941
14037
|
/** Skip interactive prompts */
|
|
13942
|
-
nonInteractive:
|
|
14038
|
+
nonInteractive: z6.boolean().default(false),
|
|
13943
14039
|
/** Overwrite existing configurations */
|
|
13944
|
-
force:
|
|
14040
|
+
force: z6.boolean().default(false),
|
|
13945
14041
|
/** Skip MCP configuration */
|
|
13946
|
-
skipMcp:
|
|
14042
|
+
skipMcp: z6.boolean().default(false),
|
|
13947
14043
|
/** Skip CLAUDE.md/rules generation */
|
|
13948
|
-
skipRules:
|
|
14044
|
+
skipRules: z6.boolean().default(false),
|
|
13949
14045
|
/** Skip hooks configuration (Issue #416) */
|
|
13950
|
-
skipHooks:
|
|
14046
|
+
skipHooks: z6.boolean().default(false),
|
|
13951
14047
|
/** Skip config file generation (#1252) */
|
|
13952
|
-
skipConfig:
|
|
14048
|
+
skipConfig: z6.boolean().default(false),
|
|
13953
14049
|
/** Skip OpenCode MCP configuration (#1253) */
|
|
13954
|
-
skipOpencode:
|
|
14050
|
+
skipOpencode: z6.boolean().default(false),
|
|
13955
14051
|
/** Skip Codex CLI MCP configuration (#1263) */
|
|
13956
|
-
skipCodex:
|
|
14052
|
+
skipCodex: z6.boolean().default(false),
|
|
13957
14053
|
/** Show what would be done without making changes */
|
|
13958
|
-
dryRun:
|
|
14054
|
+
dryRun: z6.boolean().default(false),
|
|
13959
14055
|
/** Show detailed output */
|
|
13960
|
-
verbose:
|
|
14056
|
+
verbose: z6.boolean().default(false),
|
|
13961
14057
|
/** Target scope for MCP config */
|
|
13962
|
-
scope:
|
|
14058
|
+
scope: z6.enum(["user", "project"]).default("user")
|
|
13963
14059
|
});
|
|
13964
14060
|
|
|
13965
14061
|
// src/cli/setup-environment.ts
|
|
@@ -15212,8 +15308,8 @@ function printPermissionsSuggestion() {
|
|
|
15212
15308
|
function printDataDirSection(result) {
|
|
15213
15309
|
writeLine4(formatHeader("Data Directory"));
|
|
15214
15310
|
writeLine4("\u2500".repeat(40));
|
|
15215
|
-
const
|
|
15216
|
-
const msg =
|
|
15311
|
+
const count2 = result.dataDirsCreated ?? 0;
|
|
15312
|
+
const msg = count2 > 0 ? `${result.dryRun === true ? "Would create:" : "Created"} ${String(count2)} directories under ${result.dataDirPath ?? ""}` : `All directories already exist at ${result.dataDirPath ?? ""}`;
|
|
15217
15313
|
writeLine4(msg);
|
|
15218
15314
|
writeEmptyLine3();
|
|
15219
15315
|
}
|
|
@@ -15344,32 +15440,32 @@ function runSetupAndPrint(options) {
|
|
|
15344
15440
|
}
|
|
15345
15441
|
|
|
15346
15442
|
// src/cli/config-command-types.ts
|
|
15347
|
-
import { z as
|
|
15443
|
+
import { z as z7 } from "zod";
|
|
15348
15444
|
var CONFIG_ACTIONS = ["get", "set", "list", "reset", "export", "import"];
|
|
15349
15445
|
var CONFIG_FORMATS = ["json", "yaml"];
|
|
15350
|
-
var ConfigCommandOptionsSchema =
|
|
15446
|
+
var ConfigCommandOptionsSchema = z7.object({
|
|
15351
15447
|
/** Command action */
|
|
15352
|
-
action:
|
|
15448
|
+
action: z7.enum(CONFIG_ACTIONS),
|
|
15353
15449
|
/** Configuration key (dot notation supported) */
|
|
15354
|
-
key:
|
|
15450
|
+
key: z7.string().optional(),
|
|
15355
15451
|
/** Value to set */
|
|
15356
|
-
value:
|
|
15452
|
+
value: z7.string().optional(),
|
|
15357
15453
|
/** File path for import/export */
|
|
15358
|
-
file:
|
|
15454
|
+
file: z7.string().optional(),
|
|
15359
15455
|
/** Export format */
|
|
15360
|
-
format:
|
|
15456
|
+
format: z7.enum(CONFIG_FORMATS).default("json"),
|
|
15361
15457
|
/** Force overwrite without backup */
|
|
15362
|
-
force:
|
|
15458
|
+
force: z7.boolean().default(false),
|
|
15363
15459
|
/** Show verbose output */
|
|
15364
|
-
verbose:
|
|
15460
|
+
verbose: z7.boolean().default(false)
|
|
15365
15461
|
});
|
|
15366
|
-
var ParsedConfigKeySchema =
|
|
15462
|
+
var ParsedConfigKeySchema = z7.object({
|
|
15367
15463
|
/** Full key string */
|
|
15368
|
-
fullKey:
|
|
15464
|
+
fullKey: z7.string(),
|
|
15369
15465
|
/** Category portion */
|
|
15370
|
-
category:
|
|
15466
|
+
category: z7.string(),
|
|
15371
15467
|
/** Key within category */
|
|
15372
|
-
key:
|
|
15468
|
+
key: z7.string()
|
|
15373
15469
|
});
|
|
15374
15470
|
var ConfigCommandError = class extends Error {
|
|
15375
15471
|
code;
|
|
@@ -16051,8 +16147,8 @@ async function configCommand(options) {
|
|
|
16051
16147
|
}
|
|
16052
16148
|
|
|
16053
16149
|
// src/cli/hooks/hook-types.ts
|
|
16054
|
-
import { z as
|
|
16055
|
-
var HookEventName =
|
|
16150
|
+
import { z as z8 } from "zod";
|
|
16151
|
+
var HookEventName = z8.enum([
|
|
16056
16152
|
"SessionStart",
|
|
16057
16153
|
"UserPromptSubmit",
|
|
16058
16154
|
"PreToolUse",
|
|
@@ -16067,100 +16163,100 @@ var HookEventName = z7.enum([
|
|
|
16067
16163
|
"Notification",
|
|
16068
16164
|
"Setup"
|
|
16069
16165
|
]);
|
|
16070
|
-
var PermissionMode =
|
|
16166
|
+
var PermissionMode = z8.enum([
|
|
16071
16167
|
"default",
|
|
16072
16168
|
"plan",
|
|
16073
16169
|
"acceptEdits",
|
|
16074
16170
|
"dontAsk",
|
|
16075
16171
|
"bypassPermissions"
|
|
16076
16172
|
]);
|
|
16077
|
-
var HookInputBaseSchema =
|
|
16078
|
-
session_id:
|
|
16079
|
-
transcript_path:
|
|
16080
|
-
cwd:
|
|
16173
|
+
var HookInputBaseSchema = z8.object({
|
|
16174
|
+
session_id: z8.string(),
|
|
16175
|
+
transcript_path: z8.string(),
|
|
16176
|
+
cwd: z8.string(),
|
|
16081
16177
|
permission_mode: PermissionMode,
|
|
16082
16178
|
hook_event_name: HookEventName
|
|
16083
16179
|
});
|
|
16084
|
-
var SessionStartSource =
|
|
16180
|
+
var SessionStartSource = z8.enum(["startup", "resume", "clear", "compact"]);
|
|
16085
16181
|
var SessionStartInputSchema = HookInputBaseSchema.extend({
|
|
16086
|
-
hook_event_name:
|
|
16182
|
+
hook_event_name: z8.literal("SessionStart"),
|
|
16087
16183
|
source: SessionStartSource,
|
|
16088
|
-
model:
|
|
16089
|
-
agent_type:
|
|
16184
|
+
model: z8.string().optional(),
|
|
16185
|
+
agent_type: z8.string().optional()
|
|
16090
16186
|
});
|
|
16091
|
-
var SessionEndReason =
|
|
16187
|
+
var SessionEndReason = z8.enum(["clear", "logout", "prompt_input_exit", "other"]);
|
|
16092
16188
|
var SessionEndInputSchema = HookInputBaseSchema.extend({
|
|
16093
|
-
hook_event_name:
|
|
16189
|
+
hook_event_name: z8.literal("SessionEnd"),
|
|
16094
16190
|
reason: SessionEndReason
|
|
16095
16191
|
});
|
|
16096
16192
|
var PreToolUseInputSchema = HookInputBaseSchema.extend({
|
|
16097
|
-
hook_event_name:
|
|
16098
|
-
tool_name:
|
|
16099
|
-
tool_input:
|
|
16100
|
-
tool_use_id:
|
|
16193
|
+
hook_event_name: z8.literal("PreToolUse"),
|
|
16194
|
+
tool_name: z8.string(),
|
|
16195
|
+
tool_input: z8.record(z8.string(), z8.unknown()),
|
|
16196
|
+
tool_use_id: z8.string()
|
|
16101
16197
|
});
|
|
16102
16198
|
var PostToolUseInputSchema = HookInputBaseSchema.extend({
|
|
16103
|
-
hook_event_name:
|
|
16104
|
-
tool_name:
|
|
16105
|
-
tool_input:
|
|
16106
|
-
tool_response:
|
|
16107
|
-
tool_use_id:
|
|
16199
|
+
hook_event_name: z8.literal("PostToolUse"),
|
|
16200
|
+
tool_name: z8.string(),
|
|
16201
|
+
tool_input: z8.record(z8.string(), z8.unknown()),
|
|
16202
|
+
tool_response: z8.record(z8.string(), z8.unknown()),
|
|
16203
|
+
tool_use_id: z8.string()
|
|
16108
16204
|
});
|
|
16109
16205
|
var PostToolUseFailureInputSchema = HookInputBaseSchema.extend({
|
|
16110
|
-
hook_event_name:
|
|
16111
|
-
tool_name:
|
|
16112
|
-
tool_input:
|
|
16113
|
-
tool_use_id:
|
|
16114
|
-
error:
|
|
16206
|
+
hook_event_name: z8.literal("PostToolUseFailure"),
|
|
16207
|
+
tool_name: z8.string(),
|
|
16208
|
+
tool_input: z8.record(z8.string(), z8.unknown()),
|
|
16209
|
+
tool_use_id: z8.string(),
|
|
16210
|
+
error: z8.string().optional()
|
|
16115
16211
|
});
|
|
16116
16212
|
var StopInputSchema = HookInputBaseSchema.extend({
|
|
16117
|
-
hook_event_name:
|
|
16118
|
-
stop_hook_active:
|
|
16213
|
+
hook_event_name: z8.literal("Stop"),
|
|
16214
|
+
stop_hook_active: z8.boolean()
|
|
16119
16215
|
});
|
|
16120
16216
|
var SubagentStopInputSchema = HookInputBaseSchema.extend({
|
|
16121
|
-
hook_event_name:
|
|
16122
|
-
stop_hook_active:
|
|
16123
|
-
agent_id:
|
|
16124
|
-
agent_transcript_path:
|
|
16217
|
+
hook_event_name: z8.literal("SubagentStop"),
|
|
16218
|
+
stop_hook_active: z8.boolean(),
|
|
16219
|
+
agent_id: z8.string(),
|
|
16220
|
+
agent_transcript_path: z8.string()
|
|
16125
16221
|
});
|
|
16126
16222
|
var UserPromptSubmitInputSchema = HookInputBaseSchema.extend({
|
|
16127
|
-
hook_event_name:
|
|
16128
|
-
prompt:
|
|
16223
|
+
hook_event_name: z8.literal("UserPromptSubmit"),
|
|
16224
|
+
prompt: z8.string()
|
|
16129
16225
|
});
|
|
16130
|
-
var NotificationType =
|
|
16226
|
+
var NotificationType = z8.enum([
|
|
16131
16227
|
"permission_prompt",
|
|
16132
16228
|
"idle_prompt",
|
|
16133
16229
|
"auth_success",
|
|
16134
16230
|
"elicitation_dialog"
|
|
16135
16231
|
]);
|
|
16136
16232
|
var NotificationInputSchema = HookInputBaseSchema.extend({
|
|
16137
|
-
hook_event_name:
|
|
16138
|
-
message:
|
|
16233
|
+
hook_event_name: z8.literal("Notification"),
|
|
16234
|
+
message: z8.string(),
|
|
16139
16235
|
notification_type: NotificationType
|
|
16140
16236
|
});
|
|
16141
|
-
var PreCompactTrigger =
|
|
16237
|
+
var PreCompactTrigger = z8.enum(["manual", "auto"]);
|
|
16142
16238
|
var PreCompactInputSchema = HookInputBaseSchema.extend({
|
|
16143
|
-
hook_event_name:
|
|
16239
|
+
hook_event_name: z8.literal("PreCompact"),
|
|
16144
16240
|
trigger: PreCompactTrigger,
|
|
16145
|
-
custom_instructions:
|
|
16241
|
+
custom_instructions: z8.string().optional()
|
|
16146
16242
|
});
|
|
16147
|
-
var SetupTrigger =
|
|
16243
|
+
var SetupTrigger = z8.enum(["init", "maintenance"]);
|
|
16148
16244
|
var SetupInputSchema = HookInputBaseSchema.extend({
|
|
16149
|
-
hook_event_name:
|
|
16245
|
+
hook_event_name: z8.literal("Setup"),
|
|
16150
16246
|
trigger: SetupTrigger
|
|
16151
16247
|
});
|
|
16152
16248
|
var SubagentStartInputSchema = HookInputBaseSchema.extend({
|
|
16153
|
-
hook_event_name:
|
|
16154
|
-
agent_id:
|
|
16155
|
-
agent_type:
|
|
16249
|
+
hook_event_name: z8.literal("SubagentStart"),
|
|
16250
|
+
agent_id: z8.string(),
|
|
16251
|
+
agent_type: z8.string()
|
|
16156
16252
|
});
|
|
16157
16253
|
var PermissionRequestInputSchema = HookInputBaseSchema.extend({
|
|
16158
|
-
hook_event_name:
|
|
16159
|
-
tool_name:
|
|
16160
|
-
tool_input:
|
|
16161
|
-
tool_use_id:
|
|
16254
|
+
hook_event_name: z8.literal("PermissionRequest"),
|
|
16255
|
+
tool_name: z8.string(),
|
|
16256
|
+
tool_input: z8.record(z8.string(), z8.unknown()),
|
|
16257
|
+
tool_use_id: z8.string()
|
|
16162
16258
|
});
|
|
16163
|
-
var HookInputSchema =
|
|
16259
|
+
var HookInputSchema = z8.discriminatedUnion("hook_event_name", [
|
|
16164
16260
|
SessionStartInputSchema,
|
|
16165
16261
|
SessionEndInputSchema,
|
|
16166
16262
|
PreToolUseInputSchema,
|
|
@@ -16175,57 +16271,57 @@ var HookInputSchema = z7.discriminatedUnion("hook_event_name", [
|
|
|
16175
16271
|
SubagentStartInputSchema,
|
|
16176
16272
|
PermissionRequestInputSchema
|
|
16177
16273
|
]);
|
|
16178
|
-
var PermissionDecision =
|
|
16179
|
-
var HookDecision =
|
|
16180
|
-
var HookOutputBaseSchema =
|
|
16181
|
-
continue:
|
|
16182
|
-
stopReason:
|
|
16183
|
-
suppressOutput:
|
|
16184
|
-
systemMessage:
|
|
16274
|
+
var PermissionDecision = z8.enum(["allow", "deny", "ask"]);
|
|
16275
|
+
var HookDecision = z8.enum(["block"]);
|
|
16276
|
+
var HookOutputBaseSchema = z8.object({
|
|
16277
|
+
continue: z8.boolean().optional(),
|
|
16278
|
+
stopReason: z8.string().optional(),
|
|
16279
|
+
suppressOutput: z8.boolean().optional(),
|
|
16280
|
+
systemMessage: z8.string().optional()
|
|
16185
16281
|
});
|
|
16186
16282
|
var PreToolUseOutputSchema = HookOutputBaseSchema.extend({
|
|
16187
|
-
hookSpecificOutput:
|
|
16188
|
-
hookEventName:
|
|
16283
|
+
hookSpecificOutput: z8.object({
|
|
16284
|
+
hookEventName: z8.literal("PreToolUse"),
|
|
16189
16285
|
permissionDecision: PermissionDecision.optional(),
|
|
16190
|
-
permissionDecisionReason:
|
|
16191
|
-
updatedInput:
|
|
16192
|
-
additionalContext:
|
|
16286
|
+
permissionDecisionReason: z8.string().optional(),
|
|
16287
|
+
updatedInput: z8.record(z8.string(), z8.unknown()).optional(),
|
|
16288
|
+
additionalContext: z8.string().optional()
|
|
16193
16289
|
}).optional()
|
|
16194
16290
|
});
|
|
16195
16291
|
var PostToolUseOutputSchema = HookOutputBaseSchema.extend({
|
|
16196
16292
|
decision: HookDecision.optional(),
|
|
16197
|
-
reason:
|
|
16198
|
-
hookSpecificOutput:
|
|
16199
|
-
hookEventName:
|
|
16200
|
-
additionalContext:
|
|
16293
|
+
reason: z8.string().optional(),
|
|
16294
|
+
hookSpecificOutput: z8.object({
|
|
16295
|
+
hookEventName: z8.literal("PostToolUse"),
|
|
16296
|
+
additionalContext: z8.string().optional()
|
|
16201
16297
|
}).optional()
|
|
16202
16298
|
});
|
|
16203
16299
|
var StopOutputSchema = HookOutputBaseSchema.extend({
|
|
16204
16300
|
decision: HookDecision.optional(),
|
|
16205
|
-
reason:
|
|
16301
|
+
reason: z8.string().optional()
|
|
16206
16302
|
});
|
|
16207
16303
|
var UserPromptSubmitOutputSchema = HookOutputBaseSchema.extend({
|
|
16208
16304
|
decision: HookDecision.optional(),
|
|
16209
|
-
reason:
|
|
16210
|
-
hookSpecificOutput:
|
|
16211
|
-
hookEventName:
|
|
16212
|
-
additionalContext:
|
|
16305
|
+
reason: z8.string().optional(),
|
|
16306
|
+
hookSpecificOutput: z8.object({
|
|
16307
|
+
hookEventName: z8.literal("UserPromptSubmit"),
|
|
16308
|
+
additionalContext: z8.string().optional()
|
|
16213
16309
|
}).optional()
|
|
16214
16310
|
});
|
|
16215
16311
|
var SessionStartOutputSchema = HookOutputBaseSchema.extend({
|
|
16216
|
-
hookSpecificOutput:
|
|
16217
|
-
hookEventName:
|
|
16218
|
-
additionalContext:
|
|
16312
|
+
hookSpecificOutput: z8.object({
|
|
16313
|
+
hookEventName: z8.literal("SessionStart"),
|
|
16314
|
+
additionalContext: z8.string().optional()
|
|
16219
16315
|
}).optional()
|
|
16220
16316
|
});
|
|
16221
16317
|
var PermissionRequestOutputSchema = HookOutputBaseSchema.extend({
|
|
16222
|
-
hookSpecificOutput:
|
|
16223
|
-
hookEventName:
|
|
16224
|
-
decision:
|
|
16225
|
-
behavior:
|
|
16226
|
-
updatedInput:
|
|
16227
|
-
message:
|
|
16228
|
-
interrupt:
|
|
16318
|
+
hookSpecificOutput: z8.object({
|
|
16319
|
+
hookEventName: z8.literal("PermissionRequest"),
|
|
16320
|
+
decision: z8.object({
|
|
16321
|
+
behavior: z8.enum(["allow", "deny"]),
|
|
16322
|
+
updatedInput: z8.record(z8.string(), z8.unknown()).optional(),
|
|
16323
|
+
message: z8.string().optional(),
|
|
16324
|
+
interrupt: z8.boolean().optional()
|
|
16229
16325
|
})
|
|
16230
16326
|
}).optional()
|
|
16231
16327
|
});
|
|
@@ -16991,9 +17087,9 @@ function isPendingTask(task) {
|
|
|
16991
17087
|
}
|
|
16992
17088
|
function createBlockResult(pendingTasks, maxToShow) {
|
|
16993
17089
|
const taskList = formatPendingTasks(pendingTasks, maxToShow);
|
|
16994
|
-
const
|
|
17090
|
+
const count2 = String(pendingTasks.length);
|
|
16995
17091
|
return blockStop(
|
|
16996
|
-
`There are ${
|
|
17092
|
+
`There are ${count2} incomplete task(s):
|
|
16997
17093
|
${taskList}
|
|
16998
17094
|
Please complete or cancel these tasks before stopping.`
|
|
16999
17095
|
);
|
|
@@ -17861,8 +17957,8 @@ function scriptedIO() {
|
|
|
17861
17957
|
|
|
17862
17958
|
// src/governance/claims-registry.ts
|
|
17863
17959
|
import { parse as parseYaml2 } from "yaml";
|
|
17864
|
-
import { z as
|
|
17865
|
-
var VerificationMethodSchema =
|
|
17960
|
+
import { z as z9 } from "zod";
|
|
17961
|
+
var VerificationMethodSchema = z9.enum([
|
|
17866
17962
|
"file-exists",
|
|
17867
17963
|
"file-contains",
|
|
17868
17964
|
"source-contains-all",
|
|
@@ -17870,7 +17966,7 @@ var VerificationMethodSchema = z8.enum([
|
|
|
17870
17966
|
"manifest-tool-count",
|
|
17871
17967
|
"roadmap-status"
|
|
17872
17968
|
]);
|
|
17873
|
-
var ClaimStatusSchema =
|
|
17969
|
+
var ClaimStatusSchema = z9.enum([
|
|
17874
17970
|
"verified",
|
|
17875
17971
|
// backed by live evidence the runner checks every CI run
|
|
17876
17972
|
"partial",
|
|
@@ -17880,25 +17976,25 @@ var ClaimStatusSchema = z8.enum([
|
|
|
17880
17976
|
"stale"
|
|
17881
17977
|
// known-broken backing; tracked, must not regress to silent
|
|
17882
17978
|
]);
|
|
17883
|
-
var EvidenceTypeSchema =
|
|
17884
|
-
var VerificationSchema =
|
|
17979
|
+
var EvidenceTypeSchema = z9.enum(["test", "gate", "eval-artifact", "adr", "source"]);
|
|
17980
|
+
var VerificationSchema = z9.object({
|
|
17885
17981
|
method: VerificationMethodSchema,
|
|
17886
17982
|
/** Repo-root-relative path to the live backing evidence. */
|
|
17887
|
-
path:
|
|
17983
|
+
path: z9.string().min(1),
|
|
17888
17984
|
/**
|
|
17889
17985
|
* Expected value. Numeric for `enum-member-count` / `manifest-tool-count`,
|
|
17890
17986
|
* string for `file-contains` / `roadmap-status`. Unused by `file-exists`.
|
|
17891
17987
|
*/
|
|
17892
|
-
expected:
|
|
17988
|
+
expected: z9.union([z9.number().int().nonnegative(), z9.string().min(1)]).optional(),
|
|
17893
17989
|
/** Target symbol name (e.g. the exported `z.enum` const) for count methods. */
|
|
17894
|
-
symbol:
|
|
17990
|
+
symbol: z9.string().min(1).optional(),
|
|
17895
17991
|
/**
|
|
17896
17992
|
* Literal the claim's `subject` doc must contain (#3877). When present, the
|
|
17897
17993
|
* runner verifies the doc making the claim — not just the source of truth —
|
|
17898
17994
|
* so README/ARCHITECTURE drift fails the gate. Omit only for claims whose
|
|
17899
17995
|
* `subject` IS the verification `path` (e.g. `roadmap-status`).
|
|
17900
17996
|
*/
|
|
17901
|
-
subjectContains:
|
|
17997
|
+
subjectContains: z9.string().min(1).optional()
|
|
17902
17998
|
}).strict().superRefine((v, ctx) => {
|
|
17903
17999
|
const needsNumber = v.method === "enum-member-count" || v.method === "manifest-tool-count";
|
|
17904
18000
|
const needsString = v.method === "file-contains" || v.method === "source-contains-all" || v.method === "roadmap-status";
|
|
@@ -17924,24 +18020,24 @@ var VerificationSchema = z8.object({
|
|
|
17924
18020
|
});
|
|
17925
18021
|
}
|
|
17926
18022
|
});
|
|
17927
|
-
var ClaimEntrySchema =
|
|
18023
|
+
var ClaimEntrySchema = z9.object({
|
|
17928
18024
|
/** Stable, kebab-case identifier; never reused. */
|
|
17929
|
-
id:
|
|
18025
|
+
id: z9.string().regex(/^[a-z0-9]+(-[a-z0-9]+)*$/, "id must be kebab-case"),
|
|
17930
18026
|
/** Human-readable claim text (<=25 words). */
|
|
17931
|
-
claim:
|
|
18027
|
+
claim: z9.string().min(1).refine((s) => s.trim().split(/\s+/).length <= 25, "claim must be <=25 words"),
|
|
17932
18028
|
/** Repo-root-relative doc that makes the claim (e.g. README.md). */
|
|
17933
|
-
subject:
|
|
18029
|
+
subject: z9.string().min(1),
|
|
17934
18030
|
status: ClaimStatusSchema,
|
|
17935
18031
|
evidenceType: EvidenceTypeSchema,
|
|
17936
18032
|
verification: VerificationSchema,
|
|
17937
18033
|
/** ISO date (YYYY-MM-DD) the claim was last manually verified. */
|
|
17938
|
-
lastVerified:
|
|
18034
|
+
lastVerified: z9.string().regex(/^\d{4}-\d{2}-\d{2}$/, "lastVerified must be YYYY-MM-DD"),
|
|
17939
18035
|
/** Optional caveat surfaced in reports (required-ish for `partial`). */
|
|
17940
|
-
caveat:
|
|
18036
|
+
caveat: z9.string().optional()
|
|
17941
18037
|
}).strict();
|
|
17942
|
-
var ClaimsRegistrySchema =
|
|
17943
|
-
version:
|
|
17944
|
-
claims:
|
|
18038
|
+
var ClaimsRegistrySchema = z9.object({
|
|
18039
|
+
version: z9.number().int().positive(),
|
|
18040
|
+
claims: z9.array(ClaimEntrySchema).min(1).superRefine((claims, ctx) => {
|
|
17945
18041
|
const seen = /* @__PURE__ */ new Set();
|
|
17946
18042
|
for (const [i, c] of claims.entries()) {
|
|
17947
18043
|
if (seen.has(c.id)) {
|
|
@@ -18411,7 +18507,7 @@ import { readFileSync as readFileSync14 } from "node:fs";
|
|
|
18411
18507
|
// src/cli/release-validate-helpers.ts
|
|
18412
18508
|
import { execSync as execSync5 } from "node:child_process";
|
|
18413
18509
|
import { existsSync as existsSync16, readFileSync as readFileSync13 } from "node:fs";
|
|
18414
|
-
import { z as
|
|
18510
|
+
import { z as z10 } from "zod";
|
|
18415
18511
|
|
|
18416
18512
|
// src/cli/release-secret-scan.ts
|
|
18417
18513
|
import { execSync as execSync4 } from "node:child_process";
|
|
@@ -18435,12 +18531,12 @@ function scanRecentCommitsForSecrets(options = {}) {
|
|
|
18435
18531
|
}
|
|
18436
18532
|
|
|
18437
18533
|
// src/cli/release-validate-helpers.ts
|
|
18438
|
-
var NPM_AUDIT_REPORT_SCHEMA =
|
|
18439
|
-
metadata:
|
|
18440
|
-
vulnerabilities:
|
|
18441
|
-
moderate:
|
|
18442
|
-
high:
|
|
18443
|
-
critical:
|
|
18534
|
+
var NPM_AUDIT_REPORT_SCHEMA = z10.object({
|
|
18535
|
+
metadata: z10.object({
|
|
18536
|
+
vulnerabilities: z10.object({
|
|
18537
|
+
moderate: z10.number().int().nonnegative(),
|
|
18538
|
+
high: z10.number().int().nonnegative(),
|
|
18539
|
+
critical: z10.number().int().nonnegative()
|
|
18444
18540
|
})
|
|
18445
18541
|
})
|
|
18446
18542
|
});
|
|
@@ -20074,9 +20170,9 @@ function createSeededRng(seed) {
|
|
|
20074
20170
|
return ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
20075
20171
|
};
|
|
20076
20172
|
}
|
|
20077
|
-
function generateTasks(
|
|
20173
|
+
function generateTasks(count2, rng) {
|
|
20078
20174
|
const tasks = [];
|
|
20079
|
-
for (let i = 0; i <
|
|
20175
|
+
for (let i = 0; i < count2; i++) {
|
|
20080
20176
|
const catIdx = Math.floor(rng() * TASK_CATEGORIES.length);
|
|
20081
20177
|
const category = TASK_CATEGORIES[catIdx] ?? "code_generation";
|
|
20082
20178
|
tasks.push({
|
|
@@ -20980,7 +21076,7 @@ function startImprovementReviewScheduler(options) {
|
|
|
20980
21076
|
let running = false;
|
|
20981
21077
|
const runOnce = async () => {
|
|
20982
21078
|
try {
|
|
20983
|
-
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-
|
|
21079
|
+
const { runImprovementReview: runImprovementReview2, ImprovementReviewInputSchema: ImprovementReviewInputSchema2 } = await import("./improvement-review-EBC3I55P.js");
|
|
20984
21080
|
const input = ImprovementReviewInputSchema2.parse({ fileIssues });
|
|
20985
21081
|
const result = await runImprovementReview2(input, { logger: logger22 });
|
|
20986
21082
|
logger22.info("Scheduled improvement_review complete", {
|
|
@@ -21466,8 +21562,8 @@ async function initUpstreamServers(gatewayConfig, deps) {
|
|
|
21466
21562
|
servers: upstreamServers.length,
|
|
21467
21563
|
tools: tools.length
|
|
21468
21564
|
});
|
|
21469
|
-
const { z:
|
|
21470
|
-
const passthroughSchema =
|
|
21565
|
+
const { z: z16 } = await import("zod");
|
|
21566
|
+
const passthroughSchema = z16.looseObject({});
|
|
21471
21567
|
for (const tool of tools) {
|
|
21472
21568
|
registerSingleUpstreamTool(tool, manager, passthroughSchema, deps);
|
|
21473
21569
|
}
|
|
@@ -23064,7 +23160,7 @@ function adaptConfigToLibrary(config) {
|
|
|
23064
23160
|
}
|
|
23065
23161
|
function createBeliefPromoter() {
|
|
23066
23162
|
return async (event) => {
|
|
23067
|
-
const { getToolMemory } = await import("./tool-memory-
|
|
23163
|
+
const { getToolMemory } = await import("./tool-memory-QESESDGS.js");
|
|
23068
23164
|
const tm = getToolMemory();
|
|
23069
23165
|
await tm.recordBelief(
|
|
23070
23166
|
`skill:${event.name}`,
|
|
@@ -24234,7 +24330,7 @@ async function handleResearchCommand(args) {
|
|
|
24234
24330
|
}
|
|
24235
24331
|
}
|
|
24236
24332
|
async function handleRegistryCommand(args) {
|
|
24237
|
-
const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-
|
|
24333
|
+
const { registryCommand, isValidRegistrySubcommand, formatRegistryUsage } = await import("./registry-command-SQQNXDGS.js");
|
|
24238
24334
|
const subcommand = args.subcommand;
|
|
24239
24335
|
if (!isValidRegistrySubcommand(subcommand)) {
|
|
24240
24336
|
process.stdout.write(`${formatRegistryUsage()}
|
|
@@ -24302,12 +24398,12 @@ async function handleDoctorCommand(args) {
|
|
|
24302
24398
|
}
|
|
24303
24399
|
});
|
|
24304
24400
|
if (args.options.deep) {
|
|
24305
|
-
const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-
|
|
24401
|
+
const { runDeepDiagnostics: runDeepDiagnostics2, formatDeepDiagnostics: formatDeepDiagnostics2 } = await import("./doctor-deep-VOX7KVGK.js");
|
|
24306
24402
|
const diag = runDeepDiagnostics2();
|
|
24307
24403
|
process.stdout.write(formatDeepDiagnostics2(diag) + "\n");
|
|
24308
24404
|
}
|
|
24309
24405
|
if (args.options.live) {
|
|
24310
|
-
const { runLiveReadiness, formatLiveReadiness } = await import("./doctor-live-
|
|
24406
|
+
const { runLiveReadiness, formatLiveReadiness } = await import("./doctor-live-AES3PON5.js");
|
|
24311
24407
|
const report = await runLiveReadiness(cliListAdmits !== void 0 ? { cliListAdmits } : {});
|
|
24312
24408
|
process.stdout.write(formatLiveReadiness(report) + "\n");
|
|
24313
24409
|
if (doctorResult !== void 0) {
|
|
@@ -24470,20 +24566,20 @@ function handleWarmUpCommand(_args) {
|
|
|
24470
24566
|
return cliExit(EXIT_CODES.SUCCESS);
|
|
24471
24567
|
}
|
|
24472
24568
|
function handleE2EEvalCommand(args) {
|
|
24473
|
-
const
|
|
24474
|
-
const result = runE2EEval({ taskCount:
|
|
24569
|
+
const count2 = parsePositiveInt(args.positionals[1], 50);
|
|
24570
|
+
const result = runE2EEval({ taskCount: count2 });
|
|
24475
24571
|
process.stdout.write(formatE2EEvalResult(result) + "\n");
|
|
24476
24572
|
return cliExit(result.passed ? EXIT_CODES.SUCCESS : 1);
|
|
24477
24573
|
}
|
|
24478
24574
|
function handleRoutingABCommand(args) {
|
|
24479
|
-
const
|
|
24480
|
-
const result = runRoutingAB({ taskCount:
|
|
24575
|
+
const count2 = parsePositiveInt(args.positionals[1], 30);
|
|
24576
|
+
const result = runRoutingAB({ taskCount: count2 });
|
|
24481
24577
|
process.stdout.write(formatABReport(result) + "\n");
|
|
24482
24578
|
return cliExit(EXIT_CODES.SUCCESS);
|
|
24483
24579
|
}
|
|
24484
24580
|
function handleMemoryEvalCommand(args) {
|
|
24485
|
-
const
|
|
24486
|
-
const result = runMemoryEval(
|
|
24581
|
+
const count2 = parsePositiveInt(args.positionals[1], 50);
|
|
24582
|
+
const result = runMemoryEval(count2);
|
|
24487
24583
|
process.stdout.write(formatMemoryEvalReport(result) + "\n");
|
|
24488
24584
|
return cliExit(EXIT_CODES.SUCCESS);
|
|
24489
24585
|
}
|
|
@@ -25054,7 +25150,7 @@ async function runInitPortableFlow(args) {
|
|
|
25054
25150
|
return cliExit(result.success ? EXIT_CODES.SUCCESS : EXIT_CODES.SERVER_START_FAILED);
|
|
25055
25151
|
}
|
|
25056
25152
|
async function runInitOpencodeFlow(args) {
|
|
25057
|
-
const { runInitOpencode } = await import("./init-opencode-
|
|
25153
|
+
const { runInitOpencode } = await import("./init-opencode-F6FV63VR.js");
|
|
25058
25154
|
const opencodePath = args.options.opencode;
|
|
25059
25155
|
if (opencodePath === void 0 || opencodePath === "") {
|
|
25060
25156
|
process.stderr.write("Error: --opencode requires a path argument.\n");
|
|
@@ -25080,7 +25176,7 @@ async function runInitOpencodeFlow(args) {
|
|
|
25080
25176
|
return cliExit(EXIT_CODES.SUCCESS);
|
|
25081
25177
|
}
|
|
25082
25178
|
async function renderOpencodeValidate(opencodePath) {
|
|
25083
|
-
const { runOpencodeValidate } = await import("./init-opencode-
|
|
25179
|
+
const { runOpencodeValidate } = await import("./init-opencode-F6FV63VR.js");
|
|
25084
25180
|
const result = await runOpencodeValidate(opencodePath);
|
|
25085
25181
|
if (!result.ok) {
|
|
25086
25182
|
process.stderr.write(`init --opencode --validate: ${result.reason ?? "failed"}
|
|
@@ -25181,7 +25277,7 @@ function resolveCustomApiInput(args) {
|
|
|
25181
25277
|
async function runCustomApiSetup(args) {
|
|
25182
25278
|
const input = resolveCustomApiInput(args);
|
|
25183
25279
|
if (input === void 0) return EXIT_CODES.SERVER_START_FAILED;
|
|
25184
|
-
const { configureCustomApi } = await import("./setup-custom-api-
|
|
25280
|
+
const { configureCustomApi } = await import("./setup-custom-api-H74QY7EM.js");
|
|
25185
25281
|
const result = await configureCustomApi(input);
|
|
25186
25282
|
if (!result.ok) {
|
|
25187
25283
|
process.stderr.write(`\u2717 ${result.error.message}
|
|
@@ -25390,15 +25486,15 @@ function findPackageRoot(startDir) {
|
|
|
25390
25486
|
}
|
|
25391
25487
|
function countFiles(dir, pattern) {
|
|
25392
25488
|
if (!fs15.existsSync(dir)) return 0;
|
|
25393
|
-
let
|
|
25489
|
+
let count2 = 0;
|
|
25394
25490
|
for (const entry of fs15.readdirSync(dir, { withFileTypes: true })) {
|
|
25395
25491
|
if (entry.isDirectory() && entry.name !== "node_modules" && entry.name !== "dist") {
|
|
25396
|
-
|
|
25492
|
+
count2 += countFiles(path16.join(dir, entry.name), pattern);
|
|
25397
25493
|
} else if (entry.isFile() && pattern.test(entry.name)) {
|
|
25398
|
-
|
|
25494
|
+
count2++;
|
|
25399
25495
|
}
|
|
25400
25496
|
}
|
|
25401
|
-
return
|
|
25497
|
+
return count2;
|
|
25402
25498
|
}
|
|
25403
25499
|
function readVersion(pkgRoot) {
|
|
25404
25500
|
try {
|
|
@@ -25949,10 +26045,10 @@ async function measurePromotionEffectiveness(backend, logger22) {
|
|
|
25949
26045
|
});
|
|
25950
26046
|
return { retentionRate, itemsPromoted: promotedEntries.length, itemsRetained: retained };
|
|
25951
26047
|
}
|
|
25952
|
-
async function storeTestEntries(backend, importance,
|
|
26048
|
+
async function storeTestEntries(backend, importance, count2) {
|
|
25953
26049
|
const keys = [];
|
|
25954
26050
|
const metadata = { importance, tags: ["decay-test"] };
|
|
25955
|
-
for (let i = 0; i <
|
|
26051
|
+
for (let i = 0; i < count2; i++) {
|
|
25956
26052
|
const key = `${importance}-importance-${String(getTimeProvider().now())}-${String(i)}`;
|
|
25957
26053
|
const value = { importance, content: `${importance} value content #${String(i)}` };
|
|
25958
26054
|
const storeResult = await backend.store(key, value, metadata);
|
|
@@ -25987,10 +26083,10 @@ async function measureDecayAppropriateness(backend, logger22) {
|
|
|
25987
26083
|
}
|
|
25988
26084
|
|
|
25989
26085
|
// src/testing/memory-benchmark-synthetic.ts
|
|
25990
|
-
async function generateSyntheticTestCases(backend,
|
|
26086
|
+
async function generateSyntheticTestCases(backend, count2 = 50) {
|
|
25991
26087
|
const testCases = [];
|
|
25992
26088
|
const topics = ["typescript", "react", "nodejs", "testing", "security", "performance"];
|
|
25993
|
-
const entriesPerTopic = Math.ceil(
|
|
26089
|
+
const entriesPerTopic = Math.ceil(count2 / topics.length);
|
|
25994
26090
|
for (const topic of topics) {
|
|
25995
26091
|
const relevantKeys = /* @__PURE__ */ new Set();
|
|
25996
26092
|
for (let i = 0; i < entriesPerTopic; i++) {
|
|
@@ -27794,27 +27890,27 @@ function makeGhPrCreator() {
|
|
|
27794
27890
|
import { createHash as createHash4 } from "node:crypto";
|
|
27795
27891
|
import { readFileSync as readFileSync20 } from "node:fs";
|
|
27796
27892
|
import { isAbsolute as isAbsolute3 } from "node:path";
|
|
27797
|
-
import { z as
|
|
27893
|
+
import { z as z12 } from "zod";
|
|
27798
27894
|
|
|
27799
27895
|
// src/mcp/tools/remediation-review-sample.ts
|
|
27800
27896
|
import { createHash as createHash3, randomBytes, randomUUID as randomUUID2 } from "node:crypto";
|
|
27801
|
-
import { z as
|
|
27802
|
-
var PanelSnapshotSchema =
|
|
27803
|
-
soakRef:
|
|
27804
|
-
voteRecordId:
|
|
27805
|
-
soakRecordHash:
|
|
27806
|
-
sound:
|
|
27897
|
+
import { z as z11 } from "zod";
|
|
27898
|
+
var PanelSnapshotSchema = z11.object({
|
|
27899
|
+
soakRef: z11.string(),
|
|
27900
|
+
voteRecordId: z11.string().min(1),
|
|
27901
|
+
soakRecordHash: z11.string().regex(/^[a-f0-9]{64}$/),
|
|
27902
|
+
sound: z11.boolean()
|
|
27807
27903
|
});
|
|
27808
|
-
var ReviewSampleSchema =
|
|
27809
|
-
id:
|
|
27810
|
-
seed:
|
|
27811
|
-
owner:
|
|
27812
|
-
sampledAt:
|
|
27813
|
-
refs:
|
|
27904
|
+
var ReviewSampleSchema = z11.object({
|
|
27905
|
+
id: z11.string().min(1),
|
|
27906
|
+
seed: z11.string().min(1),
|
|
27907
|
+
owner: z11.string().trim().min(1),
|
|
27908
|
+
sampledAt: z11.string(),
|
|
27909
|
+
refs: z11.array(z11.string()),
|
|
27814
27910
|
/** Present on new draws; legacy draws remain readable. */
|
|
27815
|
-
randomRefs:
|
|
27816
|
-
mandatoryOverrideRefs:
|
|
27817
|
-
panels:
|
|
27911
|
+
randomRefs: z11.array(z11.string()).optional(),
|
|
27912
|
+
mandatoryOverrideRefs: z11.array(z11.string()).optional(),
|
|
27913
|
+
panels: z11.array(PanelSnapshotSchema)
|
|
27818
27914
|
}).refine(
|
|
27819
27915
|
(s) => new Set(s.refs).size === s.refs.length && s.refs.length === s.panels.length && s.refs.every((ref, i) => s.panels[i]?.soakRef === ref),
|
|
27820
27916
|
{ message: "Sample refs must be distinct and bound to panel snapshots" }
|
|
@@ -27839,9 +27935,9 @@ function getRemediationReviewSampleStore() {
|
|
|
27839
27935
|
return createRemediationReviewSampleStore();
|
|
27840
27936
|
}
|
|
27841
27937
|
function drawRemediationReviewSample(records, n, owner, seed = randomBytes(32).toString("hex"), samples = []) {
|
|
27842
|
-
|
|
27843
|
-
owner =
|
|
27844
|
-
|
|
27938
|
+
z11.number().int().positive().parse(n);
|
|
27939
|
+
owner = z11.string().trim().min(1).parse(owner);
|
|
27940
|
+
z11.string().min(1).parse(seed);
|
|
27845
27941
|
const current = currentRemediationJudgments(records);
|
|
27846
27942
|
const candidates = [...current.values()].filter((r) => r.judgeKind === "panel");
|
|
27847
27943
|
const unconfirmed = new Set(
|
|
@@ -28161,29 +28257,29 @@ function hashSoakRecordLine(line) {
|
|
|
28161
28257
|
function soakRefOf(record) {
|
|
28162
28258
|
return `${record.signalKey}::${record.timestamp}`;
|
|
28163
28259
|
}
|
|
28164
|
-
var ReviewRecordSchema =
|
|
28165
|
-
judgeKind:
|
|
28166
|
-
voteRecordId:
|
|
28260
|
+
var ReviewRecordSchema = z12.object({
|
|
28261
|
+
judgeKind: z12.enum(["human", "panel", "owner-sample"]).default("human"),
|
|
28262
|
+
voteRecordId: z12.string().min(1).optional(),
|
|
28167
28263
|
/** Exact absolute ledger used by the panel vote; absent legacy rows cannot verify. */
|
|
28168
|
-
voteLedgerPath:
|
|
28169
|
-
soakRecordHash:
|
|
28170
|
-
sampleId:
|
|
28264
|
+
voteLedgerPath: z12.string().refine(isAbsolute3, "Vote ledger path must be absolute").optional(),
|
|
28265
|
+
soakRecordHash: z12.string().regex(/^[a-f0-9]{64}$/).optional(),
|
|
28266
|
+
sampleId: z12.string().min(1).optional(),
|
|
28171
28267
|
/** Reference to the reviewed soak selection (`signalKey::timestamp`). */
|
|
28172
|
-
soakRef:
|
|
28268
|
+
soakRef: z12.string(),
|
|
28173
28269
|
/** ISO-8601 time the review was recorded. */
|
|
28174
|
-
reviewedAt:
|
|
28270
|
+
reviewedAt: z12.string(),
|
|
28175
28271
|
/** Always true — a persisted record is, by construction, a review. */
|
|
28176
|
-
reviewed:
|
|
28272
|
+
reviewed: z12.literal(true),
|
|
28177
28273
|
/** Whether the evaluator assessed the selection SOUND. */
|
|
28178
|
-
sound:
|
|
28274
|
+
sound: z12.boolean(),
|
|
28179
28275
|
/** Named evaluator who performed the review (required — the gate's named-evaluator criterion). */
|
|
28180
|
-
evaluator:
|
|
28276
|
+
evaluator: z12.string().min(1),
|
|
28181
28277
|
/** Named owner accepting enforcement, recorded at sign-off time (optional per record). */
|
|
28182
|
-
owner:
|
|
28278
|
+
owner: z12.string().min(1).optional(),
|
|
28183
28279
|
/** True only for the explicit sign-off operation; absent on legacy human rows. */
|
|
28184
|
-
ownerSignedOff:
|
|
28280
|
+
ownerSignedOff: z12.boolean().optional(),
|
|
28185
28281
|
/** Free-text note (secret-scrubbed). */
|
|
28186
|
-
note:
|
|
28282
|
+
note: z12.string().optional()
|
|
28187
28283
|
}).superRefine((record, ctx) => {
|
|
28188
28284
|
if (record.judgeKind === "panel" && (record.voteRecordId === void 0 || record.soakRecordHash === void 0 || record.evaluator !== `panel:${record.voteRecordId}` || record.owner !== void 0)) {
|
|
28189
28285
|
ctx.addIssue({
|
|
@@ -28495,12 +28591,12 @@ import { createHash as createHash5 } from "node:crypto";
|
|
|
28495
28591
|
import { mkdirSync as mkdirSync8, writeFileSync as writeFileSync10, rmSync as rmSync2, realpathSync as realpathSync2 } from "node:fs";
|
|
28496
28592
|
import { dirname as dirname12, join as join22 } from "node:path";
|
|
28497
28593
|
import { execFileSync as execFileSync6 } from "node:child_process";
|
|
28498
|
-
import { z as
|
|
28594
|
+
import { z as z14 } from "zod";
|
|
28499
28595
|
|
|
28500
28596
|
// src/mcp/tools/codepr-guards.ts
|
|
28501
28597
|
import { realpathSync } from "node:fs";
|
|
28502
28598
|
import { isAbsolute as isAbsolute4, resolve as resolve15, relative as relative4, sep, dirname as dirname11, basename as basename5 } from "node:path";
|
|
28503
|
-
import { z as
|
|
28599
|
+
import { z as z13 } from "zod";
|
|
28504
28600
|
function deny(reason, detail) {
|
|
28505
28601
|
return { ok: false, reason, detail };
|
|
28506
28602
|
}
|
|
@@ -28657,11 +28753,11 @@ function classifyPath(relPath) {
|
|
|
28657
28753
|
}
|
|
28658
28754
|
return { sensitive: false };
|
|
28659
28755
|
}
|
|
28660
|
-
var BlastRadiusLimitsSchema =
|
|
28756
|
+
var BlastRadiusLimitsSchema = z13.object({
|
|
28661
28757
|
/** Max number of files the change may touch. Default 20. */
|
|
28662
|
-
maxFiles:
|
|
28758
|
+
maxFiles: z13.number().int().positive().default(20),
|
|
28663
28759
|
/** Max total changed lines (added + removed across all files). Default 400. */
|
|
28664
|
-
maxLines:
|
|
28760
|
+
maxLines: z13.number().int().positive().default(400)
|
|
28665
28761
|
}).strict();
|
|
28666
28762
|
var DEFAULT_BLAST_RADIUS_LIMITS = Object.freeze(
|
|
28667
28763
|
BlastRadiusLimitsSchema.parse({})
|
|
@@ -28739,13 +28835,13 @@ function auditAutonomousEvent(logger22, record) {
|
|
|
28739
28835
|
}
|
|
28740
28836
|
return { ok: true };
|
|
28741
28837
|
}
|
|
28742
|
-
var ResourceBudgetLimitsSchema =
|
|
28838
|
+
var ResourceBudgetLimitsSchema = z13.object({
|
|
28743
28839
|
/** Wall-clock ceiling in ms. Default 600000 (10 min). */
|
|
28744
|
-
maxWallClockMs:
|
|
28840
|
+
maxWallClockMs: z13.number().int().positive().default(6e5),
|
|
28745
28841
|
/** Token ceiling. Default 200000. */
|
|
28746
|
-
maxTokens:
|
|
28842
|
+
maxTokens: z13.number().int().positive().default(2e5),
|
|
28747
28843
|
/** Tool-call ceiling. Default 200. */
|
|
28748
|
-
maxToolCalls:
|
|
28844
|
+
maxToolCalls: z13.number().int().positive().default(200)
|
|
28749
28845
|
}).strict();
|
|
28750
28846
|
var DEFAULT_RESOURCE_BUDGET_LIMITS = Object.freeze(
|
|
28751
28847
|
ResourceBudgetLimitsSchema.parse({})
|
|
@@ -28805,19 +28901,19 @@ function runGuard(name, fn) {
|
|
|
28805
28901
|
}
|
|
28806
28902
|
|
|
28807
28903
|
// src/mcp/tools/codepr-orchestrator.ts
|
|
28808
|
-
var ProposedChangeSchema =
|
|
28904
|
+
var ProposedChangeSchema = z14.object({
|
|
28809
28905
|
/** Repo-relative path the change would write. */
|
|
28810
|
-
relPath:
|
|
28906
|
+
relPath: z14.string().min(1),
|
|
28811
28907
|
/** The full new file content. */
|
|
28812
|
-
newContent:
|
|
28908
|
+
newContent: z14.string()
|
|
28813
28909
|
}).strict();
|
|
28814
|
-
var CodePrRunInputSchema =
|
|
28910
|
+
var CodePrRunInputSchema = z14.object({
|
|
28815
28911
|
/** Correlates all audit events for this run. */
|
|
28816
|
-
runId:
|
|
28912
|
+
runId: z14.string().min(1),
|
|
28817
28913
|
/** Hash of the source signal (fitness/improvement) that triggered the run. */
|
|
28818
|
-
sourceSignalHash:
|
|
28914
|
+
sourceSignalHash: z14.string().min(1),
|
|
28819
28915
|
/** The proposed change set. */
|
|
28820
|
-
changes:
|
|
28916
|
+
changes: z14.array(ProposedChangeSchema).min(1)
|
|
28821
28917
|
}).strict();
|
|
28822
28918
|
var ORCHESTRATOR_USAGE_ZERO = { wallClockMs: 0, tokens: 0, toolCalls: 0 };
|
|
28823
28919
|
function sha256(s) {
|
|
@@ -29036,22 +29132,22 @@ function planCodePrRun(input, logger22, options = {}) {
|
|
|
29036
29132
|
}
|
|
29037
29133
|
|
|
29038
29134
|
// src/mcp/tools/codepr-soak-store.ts
|
|
29039
|
-
import { z as
|
|
29040
|
-
var CodePrSoakRecordSchema =
|
|
29135
|
+
import { z as z15 } from "zod";
|
|
29136
|
+
var CodePrSoakRecordSchema = z15.object({
|
|
29041
29137
|
/** ISO-8601 capture time. */
|
|
29042
|
-
timestamp:
|
|
29138
|
+
timestamp: z15.string(),
|
|
29043
29139
|
/** Correlates the data point to the dry-run's orchestrator runId. */
|
|
29044
|
-
runId:
|
|
29140
|
+
runId: z15.string(),
|
|
29045
29141
|
/** The improvement signal's stable key that triggered the dry-run. */
|
|
29046
|
-
signalKey:
|
|
29142
|
+
signalKey: z15.string(),
|
|
29047
29143
|
/** Explicit provenance on new writes; absent only on legacy records. */
|
|
29048
|
-
origin:
|
|
29144
|
+
origin: z15.enum(["production", "test"]).optional(),
|
|
29049
29145
|
/** True when the dry-run plan succeeded with ZERO guard denial. */
|
|
29050
|
-
green:
|
|
29146
|
+
green: z15.boolean(),
|
|
29051
29147
|
/** The guard denial reason when `green` is false; omitted for a green plan. */
|
|
29052
|
-
denialReason:
|
|
29148
|
+
denialReason: z15.string().optional(),
|
|
29053
29149
|
/** Files the dry-run plan touched (0 on denial before the diff was realized). */
|
|
29054
|
-
filesTouched:
|
|
29150
|
+
filesTouched: z15.number().int().nonnegative()
|
|
29055
29151
|
}).strict();
|
|
29056
29152
|
var CODEPR_SOAK_MAX_RECORDS = 1e4;
|
|
29057
29153
|
function getCodePrSoakFile() {
|
|
@@ -30775,20 +30871,20 @@ function runSignOff(args) {
|
|
|
30775
30871
|
throw new Error("remediation-review sign-off: no reviews to sign off (mark selections first)");
|
|
30776
30872
|
}
|
|
30777
30873
|
const latest = signOffJudgments(existing, owner);
|
|
30778
|
-
let
|
|
30874
|
+
let count2 = 0;
|
|
30779
30875
|
for (const r of latest.values()) {
|
|
30780
30876
|
if (!store.record({ ...r, owner, ownerSignedOff: true }))
|
|
30781
30877
|
throw new Error("Sign-off persistence failed");
|
|
30782
|
-
|
|
30878
|
+
count2++;
|
|
30783
30879
|
}
|
|
30784
30880
|
const summary = readRemediationReviewSummary();
|
|
30785
30881
|
if (args.options.format === "json") {
|
|
30786
|
-
process.stdout.write(`${JSON.stringify({ owner, signedOff:
|
|
30882
|
+
process.stdout.write(`${JSON.stringify({ owner, signedOff: count2, summary }, null, 2)}
|
|
30787
30883
|
`);
|
|
30788
30884
|
return;
|
|
30789
30885
|
}
|
|
30790
30886
|
process.stdout.write(
|
|
30791
|
-
`owner sign-off recorded by ${owner} across ${String(
|
|
30887
|
+
`owner sign-off recorded by ${owner} across ${String(count2)} selection(s)
|
|
30792
30888
|
`
|
|
30793
30889
|
);
|
|
30794
30890
|
}
|
|
@@ -31501,7 +31597,7 @@ async function main() {
|
|
|
31501
31597
|
parsedArgs = { ...parsedArgs, command: "help" };
|
|
31502
31598
|
}
|
|
31503
31599
|
if (shouldBootstrapGateway(parsedArgs)) {
|
|
31504
|
-
const { wireGateway: wireGateway2 } = await import("./cli-server-gateway-
|
|
31600
|
+
const { wireGateway: wireGateway2 } = await import("./cli-server-gateway-HHRF22EB.js");
|
|
31505
31601
|
await wireGateway2(createLogger({ component: "nexus-cli" }));
|
|
31506
31602
|
}
|
|
31507
31603
|
await dispatchCommand(parsedArgs);
|