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
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const test = require('tape')
|
|
4
|
-
const fastURI = require('..')
|
|
5
|
-
|
|
6
|
-
function encodeCharacter (value, index, lowercaseHex) {
|
|
7
|
-
let hex = value.charCodeAt(index).toString(16)
|
|
8
|
-
if (!lowercaseHex) hex = hex.toUpperCase()
|
|
9
|
-
return value.slice(0, index) + '%' + hex + value.slice(index + 1)
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function mailtoState (component) {
|
|
13
|
-
return {
|
|
14
|
-
to: component.to,
|
|
15
|
-
subject: component.subject,
|
|
16
|
-
body: component.body,
|
|
17
|
-
headers: component.headers && { ...component.headers }
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
test('mailto parsing classifies decoded, case-insensitive reserved field names', (t) => {
|
|
22
|
-
const cases = [
|
|
23
|
-
{ name: 'to', value: 'attacker@evil.test', property: 'to' },
|
|
24
|
-
{ name: 'subject', value: 'injected subject', property: 'subject' },
|
|
25
|
-
{ name: 'body', value: 'injected body', property: 'body' }
|
|
26
|
-
]
|
|
27
|
-
|
|
28
|
-
for (const entry of cases) {
|
|
29
|
-
const variants = new Set([entry.name.toUpperCase()])
|
|
30
|
-
for (let i = 0; i < entry.name.length; i++) {
|
|
31
|
-
variants.add(encodeCharacter(entry.name, i, false))
|
|
32
|
-
variants.add(encodeCharacter(entry.name, i, true))
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
for (const name of variants) {
|
|
36
|
-
const parsed = fastURI.parse(`mailto:alice@example.test?${name}=${entry.value}`)
|
|
37
|
-
if (entry.property === 'to') {
|
|
38
|
-
t.deepEqual(parsed.to, ['alice@example.test', entry.value], name + ' is classified as a recipient')
|
|
39
|
-
} else {
|
|
40
|
-
t.equal(parsed[entry.property], entry.value, name + ' is classified as ' + entry.property)
|
|
41
|
-
}
|
|
42
|
-
t.equal(parsed.headers, undefined, name + ' is not exposed as a generic header')
|
|
43
|
-
|
|
44
|
-
const reparsed = fastURI.parse(fastURI.serialize(parsed))
|
|
45
|
-
t.deepEqual(mailtoState(reparsed), mailtoState(parsed), name + ' keeps its meaning after a roundtrip')
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
t.end()
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
test('mailto generic field names are decoded exactly once across roundtrips', (t) => {
|
|
53
|
-
const cases = [
|
|
54
|
-
['%2574o', '%74o'],
|
|
55
|
-
['%2573ubject', '%73ubject'],
|
|
56
|
-
['%2562ody', '%62ody'],
|
|
57
|
-
['x%2520y', 'x%20y'],
|
|
58
|
-
['%26to', '&to'],
|
|
59
|
-
['%25GGto', '%GGto']
|
|
60
|
-
]
|
|
61
|
-
|
|
62
|
-
for (const [encodedName, decodedName] of cases) {
|
|
63
|
-
let serialized = `mailto:alice@example.test?${encodedName}=value`
|
|
64
|
-
for (let round = 0; round < 3; round++) {
|
|
65
|
-
const parsed = fastURI.parse(serialized)
|
|
66
|
-
t.deepEqual({ ...parsed.headers }, { [decodedName]: 'value' }, encodedName + ' stays generic in round ' + round)
|
|
67
|
-
t.deepEqual(parsed.to, ['alice@example.test'], encodedName + ' does not add a recipient in round ' + round)
|
|
68
|
-
t.equal(parsed.subject, undefined, encodedName + ' does not set a subject in round ' + round)
|
|
69
|
-
t.equal(parsed.body, undefined, encodedName + ' does not set a body in round ' + round)
|
|
70
|
-
serialized = fastURI.serialize(parsed)
|
|
71
|
-
}
|
|
72
|
-
t.equal(serialized, `mailto:alice@example.test?${encodedName}=value`, encodedName + ' serializes idempotently')
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
t.equal(
|
|
76
|
-
fastURI.serialize({ scheme: 'mailto', to: ['alice@example.test'], headers: { '%74o': 'value' } }),
|
|
77
|
-
'mailto:alice@example.test?%2574o=value',
|
|
78
|
-
'a percent sequence in a decoded component key is encoded as data'
|
|
79
|
-
)
|
|
80
|
-
t.end()
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
test('mailto serialization canonicalizes reserved generic header names', (t) => {
|
|
84
|
-
const serialized = fastURI.serialize({
|
|
85
|
-
scheme: 'mailto',
|
|
86
|
-
to: ['alice@example.test'],
|
|
87
|
-
subject: 'safe subject',
|
|
88
|
-
body: 'safe body',
|
|
89
|
-
headers: {
|
|
90
|
-
TO: 'attacker@evil.test',
|
|
91
|
-
Subject: 'hidden subject',
|
|
92
|
-
BODY: 'hidden body',
|
|
93
|
-
cc: 'copy@example.test'
|
|
94
|
-
}
|
|
95
|
-
})
|
|
96
|
-
|
|
97
|
-
t.equal(
|
|
98
|
-
serialized,
|
|
99
|
-
'mailto:alice@example.test,attacker@evil.test?subject=safe%20subject&body=safe%20body&cc=copy@example.test',
|
|
100
|
-
'dedicated properties override header variants and all recipients are visible in the path'
|
|
101
|
-
)
|
|
102
|
-
|
|
103
|
-
const parsed = fastURI.parse(serialized)
|
|
104
|
-
t.deepEqual(parsed.to, ['alice@example.test', 'attacker@evil.test'], 'canonical recipients are classified consistently')
|
|
105
|
-
t.equal(parsed.subject, 'safe subject', 'the dedicated subject wins')
|
|
106
|
-
t.equal(parsed.body, 'safe body', 'the dedicated body wins')
|
|
107
|
-
t.deepEqual({ ...parsed.headers }, { cc: 'copy@example.test' }, 'only generic headers remain generic')
|
|
108
|
-
|
|
109
|
-
const empty = fastURI.serialize({
|
|
110
|
-
scheme: 'mailto',
|
|
111
|
-
to: ['alice@example.test'],
|
|
112
|
-
subject: '',
|
|
113
|
-
body: '',
|
|
114
|
-
headers: { Subject: 'hidden subject', BODY: 'hidden body' }
|
|
115
|
-
})
|
|
116
|
-
t.equal(empty, 'mailto:alice@example.test?subject=&body=', 'explicit empty properties override header variants')
|
|
117
|
-
const emptyParsed = fastURI.parse(empty)
|
|
118
|
-
t.equal(emptyParsed.subject, '', 'an empty subject round-trips')
|
|
119
|
-
t.equal(emptyParsed.body, '', 'an empty body round-trips')
|
|
120
|
-
t.end()
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
test('mailto duplicate reserved fields have deterministic parsing semantics', (t) => {
|
|
124
|
-
const parsed = fastURI.parse(
|
|
125
|
-
'mailto:alice@example.test?subject=first&%53UBJECT=last&body=first&%42ODY=last&to=one@example.test&%54O=two@example.test'
|
|
126
|
-
)
|
|
127
|
-
|
|
128
|
-
t.equal(parsed.subject, 'last', 'the last subject wins')
|
|
129
|
-
t.equal(parsed.body, 'last', 'the last body wins')
|
|
130
|
-
t.deepEqual(
|
|
131
|
-
parsed.to,
|
|
132
|
-
['alice@example.test', 'one@example.test', 'two@example.test'],
|
|
133
|
-
'all recipient fields are accumulated'
|
|
134
|
-
)
|
|
135
|
-
t.equal(parsed.headers, undefined, 'no reserved spelling remains generic')
|
|
136
|
-
t.end()
|
|
137
|
-
})
|
|
138
|
-
|
|
139
|
-
test('encoded reserved field names expose decoded control characters immediately', (t) => {
|
|
140
|
-
const input = 'mailto:alice@example.test?%73ubject=hello%0D%0Aworld'
|
|
141
|
-
const parsed = fastURI.parse(input)
|
|
142
|
-
|
|
143
|
-
t.equal(parsed.subject, 'hello\r\nworld', 'the first parse exposes CRLF in the dedicated property')
|
|
144
|
-
t.equal(parsed.headers, undefined, 'the subject is not hidden as a generic header')
|
|
145
|
-
t.equal(
|
|
146
|
-
fastURI.parse(fastURI.serialize(parsed)).subject,
|
|
147
|
-
parsed.subject,
|
|
148
|
-
'the decoded subject remains stable after a roundtrip'
|
|
149
|
-
)
|
|
150
|
-
t.end()
|
|
151
|
-
})
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const test = require('tape')
|
|
4
|
-
const fastURI = require('..')
|
|
5
|
-
|
|
6
|
-
test('scheme is normalized to lowercase (RFC 3986 §6.2.2.1)', (t) => {
|
|
7
|
-
// parse lowercases the scheme, consistent with how it already lowercases the host
|
|
8
|
-
t.equal(fastURI.parse('HTTP://EXAMPLE.com/Path').scheme, 'http', 'parse lowercases an uppercase scheme')
|
|
9
|
-
t.equal(fastURI.parse('HtTpS://example.com').scheme, 'https', 'parse lowercases a mixed-case scheme')
|
|
10
|
-
|
|
11
|
-
// normalize emits a lowercase scheme (matches the already-lowercased host)
|
|
12
|
-
t.equal(fastURI.normalize('HTTP://EXAMPLE.com/p'), 'http://example.com/p', 'normalize lowercases the scheme')
|
|
13
|
-
t.equal(fastURI.normalize('HtTp://Example.COM/'), 'http://example.com/', 'normalize lowercases a mixed-case scheme')
|
|
14
|
-
|
|
15
|
-
t.end()
|
|
16
|
-
})
|
|
Binary file
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import uri, {
|
|
2
|
-
type URIComponent,
|
|
3
|
-
} from '..'
|
|
4
|
-
import { expect } from 'tstyche'
|
|
5
|
-
|
|
6
|
-
const parsed = uri.parse('foo')
|
|
7
|
-
expect(parsed).type.toBe<URIComponent>()
|
|
8
|
-
|
|
9
|
-
const parsed2 = uri.parse('foo', {
|
|
10
|
-
domainHost: true,
|
|
11
|
-
scheme: 'https',
|
|
12
|
-
unicodeSupport: false
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
expect(parsed2).type.toBe<URIComponent>()
|
|
16
|
-
|
|
17
|
-
const mailtoComponent: URIComponent = {
|
|
18
|
-
scheme: 'mailto',
|
|
19
|
-
to: ['user@example.org'],
|
|
20
|
-
subject: 'Hello',
|
|
21
|
-
body: 'Message',
|
|
22
|
-
headers: { cc: 'other@example.org' }
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
expect(uri.serialize(mailtoComponent, { unicodeSupport: true })).type.toBe<string>()
|
|
26
|
-
|
|
27
|
-
const parsedMailto = uri.parse('mailto:user@example.org')
|
|
28
|
-
expect(parsedMailto.to).type.toBe<string[] | undefined>()
|
|
29
|
-
expect(parsedMailto.subject).type.toBe<string | undefined>()
|
|
30
|
-
expect(parsedMailto.body).type.toBe<string | undefined>()
|
|
31
|
-
expect(parsedMailto.headers).type.toBe<{ [hfname: string]: string } | undefined>()
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# protobuf.js Extensions
|
|
2
|
-
|
|
3
|
-
## descriptor
|
|
4
|
-
|
|
5
|
-
Optional `descriptor.proto` support for converting reflected protobuf.js roots and objects to and from descriptor messages.
|
|
6
|
-
|
|
7
|
-
```js
|
|
8
|
-
import protobuf from "protobufjs";
|
|
9
|
-
import descriptor from "protobufjs/ext/descriptor.js";
|
|
10
|
-
|
|
11
|
-
// Convert an existing root to a FileDescriptorSet message.
|
|
12
|
-
const root = ...;
|
|
13
|
-
const set = root.toDescriptor("proto2");
|
|
14
|
-
|
|
15
|
-
// Encode descriptor buffers.
|
|
16
|
-
const buffer = descriptor.FileDescriptorSet.encode(set).finish();
|
|
17
|
-
|
|
18
|
-
// Convert a FileDescriptorSet message or buffer back to a root.
|
|
19
|
-
const decodedRoot = protobuf.Root.fromDescriptor(buffer);
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
The extension requires reflection metadata and also works with `protobufjs/light.js` when schemas are loaded from JSON or otherwise provided as reflection objects.
|
|
23
|
-
|
|
24
|
-
Importing the extension adds `.fromDescriptor(descriptor[, editionOrContext])` and `#toDescriptor([syntaxOrEdition])` methods to reflection objects and exports the bundled descriptor types from `google.protobuf`. Descriptor inputs can be decoded messages, readers, or buffers of the corresponding descriptor messages. Direct object descriptor imports accept either an edition string or a descriptor context with `edition`, `features` and `keepCase`.
|
|
25
|
-
|
|
26
|
-
The conversion covers descriptor messages that correspond to protobuf.js reflection objects: files and file sets, messages, fields and map fields, oneofs, enums, services and methods. Descriptor-only metadata such as source locations, generated-code annotations and uninterpreted options remains available through the exported descriptor message types, but is not mapped onto reflection objects. File names are inferred when generating descriptors because roots do not retain exact file/package boundaries.
|
|
27
|
-
|
|
28
|
-
## protojson
|
|
29
|
-
|
|
30
|
-
Optional ProtoJSON support for reflected message types.
|
|
31
|
-
|
|
32
|
-
> [!NOTE]
|
|
33
|
-
> Specialized code generation for the `pbjs` static-module target is a potential future extension. If you need this for high-throughput JSON transcoding or REST fallbacks in production, consider getting in touch and supporting the codegen and conformance work.
|
|
34
|
-
|
|
35
|
-
```js
|
|
36
|
-
import protobuf from "protobufjs";
|
|
37
|
-
import protojson from "protobufjs/ext/protojson.js";
|
|
38
|
-
|
|
39
|
-
const root = ...;
|
|
40
|
-
const MyType = root.lookupType("MyType");
|
|
41
|
-
const message = protojson.fromJson(MyType, { value: 1 });
|
|
42
|
-
const json = protojson.toJson(MyType, message);
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
```js
|
|
46
|
-
const messageFromString = protojson.fromJsonString(MyType, '{"value":1}');
|
|
47
|
-
const jsonString = protojson.toJsonString(MyType, messageFromString);
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
Importing the extension has no prototype side effects. Calling `protojson.install()` installs `fromJson`, `fromJsonString`, `toJson` and `toJsonString` convenience methods on `protobuf.Type.prototype`. It works with `protobufjs/light.js` when schemas are loaded from JSON or otherwise provided as reflection objects.
|
|
51
|
-
|
|
52
|
-
Unknown fields can be ignored while parsing by passing `{ ignoreUnknownFields: true }` to `fromJson` or `fromJsonString`.
|
|
53
|
-
|
|
54
|
-
## textformat
|
|
55
|
-
|
|
56
|
-
Optional Text Format support for reflected message types.
|
|
57
|
-
|
|
58
|
-
```js
|
|
59
|
-
import protobuf from "protobufjs";
|
|
60
|
-
import textformat from "protobufjs/ext/textformat.js";
|
|
61
|
-
|
|
62
|
-
const root = ...;
|
|
63
|
-
const MyType = root.lookupType("MyType");
|
|
64
|
-
const message = textformat.fromText(MyType, "value: 1");
|
|
65
|
-
const text = textformat.toText(MyType, message);
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Importing the extension has no prototype side effects. Calling `textformat.install()` installs `fromText` and `toText` convenience methods on `protobuf.Type.prototype`. It works with `protobufjs/light.js` when schemas are loaded from JSON or otherwise provided as reflection objects.
|
|
69
|
-
|
|
70
|
-
Unknown fields can be printed with numeric field names by passing `{ unknowns: true }` to `toText`.
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import * as $protobuf from "..";
|
|
2
|
-
import {
|
|
3
|
-
IDescriptorProto,
|
|
4
|
-
IDescriptorContext,
|
|
5
|
-
IEnumDescriptorProto,
|
|
6
|
-
IFieldDescriptorProto,
|
|
7
|
-
IFileDescriptorSet,
|
|
8
|
-
IMethodDescriptorProto,
|
|
9
|
-
IOneofDescriptorProto,
|
|
10
|
-
IServiceDescriptorProto
|
|
11
|
-
} from "./descriptor.generated";
|
|
12
|
-
|
|
13
|
-
export * from "./descriptor.generated";
|
|
14
|
-
|
|
15
|
-
type DescriptorInput<T> = T | $protobuf.Reader | Uint8Array;
|
|
16
|
-
|
|
17
|
-
declare module ".." {
|
|
18
|
-
namespace Root {
|
|
19
|
-
/** Creates a root from a descriptor set. */
|
|
20
|
-
function fromDescriptor(descriptor: DescriptorInput<IFileDescriptorSet>, options?: { keepCase?: boolean }): $protobuf.Root;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface Root {
|
|
24
|
-
/** Converts this root to a descriptor set. */
|
|
25
|
-
toDescriptor(edition?: string): $protobuf.Message<IFileDescriptorSet> & IFileDescriptorSet;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
namespace Type {
|
|
29
|
-
/** Creates a type from a descriptor. */
|
|
30
|
-
function fromDescriptor(descriptor: DescriptorInput<IDescriptorProto>, editionOrContext?: string | IDescriptorContext): $protobuf.Type;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface Type {
|
|
34
|
-
/** Converts this type to a descriptor. */
|
|
35
|
-
toDescriptor(edition?: string): $protobuf.Message<IDescriptorProto> & IDescriptorProto;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
namespace Field {
|
|
39
|
-
/** Creates a field from a descriptor. */
|
|
40
|
-
function fromDescriptor(descriptor: DescriptorInput<IFieldDescriptorProto>, editionOrContext?: string | IDescriptorContext): $protobuf.Field;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface Field {
|
|
44
|
-
/** Converts this field to a descriptor. */
|
|
45
|
-
toDescriptor(edition?: string): $protobuf.Message<IFieldDescriptorProto> & IFieldDescriptorProto;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
namespace Enum {
|
|
49
|
-
/** Creates an enum from a descriptor. */
|
|
50
|
-
function fromDescriptor(descriptor: DescriptorInput<IEnumDescriptorProto>, editionOrContext?: string | IDescriptorContext): $protobuf.Enum;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface Enum {
|
|
54
|
-
/** Converts this enum to a descriptor. */
|
|
55
|
-
toDescriptor(): $protobuf.Message<IEnumDescriptorProto> & IEnumDescriptorProto;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
namespace OneOf {
|
|
59
|
-
/** Creates a oneof from a descriptor. */
|
|
60
|
-
function fromDescriptor(descriptor: DescriptorInput<IOneofDescriptorProto>, editionOrContext?: string | IDescriptorContext): $protobuf.OneOf;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface OneOf {
|
|
64
|
-
/** Converts this oneof to a descriptor. */
|
|
65
|
-
toDescriptor(): $protobuf.Message<IOneofDescriptorProto> & IOneofDescriptorProto;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
namespace Service {
|
|
69
|
-
/** Creates a service from a descriptor. */
|
|
70
|
-
function fromDescriptor(descriptor: DescriptorInput<IServiceDescriptorProto>, editionOrContext?: string | IDescriptorContext): $protobuf.Service;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface Service {
|
|
74
|
-
/** Converts this service to a descriptor. */
|
|
75
|
-
toDescriptor(): $protobuf.Message<IServiceDescriptorProto> & IServiceDescriptorProto;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
namespace Method {
|
|
79
|
-
/** Creates a method from a descriptor. */
|
|
80
|
-
function fromDescriptor(descriptor: DescriptorInput<IMethodDescriptorProto>, editionOrContext?: string | IDescriptorContext): $protobuf.Method;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface Method {
|
|
84
|
-
/** Converts this method to a descriptor. */
|
|
85
|
-
toDescriptor(): $protobuf.Message<IMethodDescriptorProto> & IMethodDescriptorProto;
|
|
86
|
-
}
|
|
87
|
-
}
|