@herbertgao/pi-extensions 2026.10.11 → 2026.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/node_modules/@herbertgao/pi-agency/README.md +5 -3
- package/node_modules/@herbertgao/pi-agency/package.json +1 -1
- package/node_modules/@herbertgao/pi-agency/src/index.ts +51 -7
- package/node_modules/@herbertgao/pi-cc-extensions/README.en.md +6 -8
- package/node_modules/@herbertgao/pi-cc-extensions/README.md +6 -8
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/config/panel.ts +11 -2
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/footer.ts +28 -6
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/feature/shell/prompt-editor.ts +33 -12
- package/node_modules/@herbertgao/pi-cc-extensions/extensions/renderer/compact-mode.ts +16 -3
- package/node_modules/@herbertgao/pi-cc-extensions/package.json +4 -4
- package/node_modules/@herbertgao/pi-subagents/CHANGELOG.md +6 -0
- package/node_modules/@herbertgao/pi-subagents/package.json +1 -1
- package/node_modules/@herbertgao/pi-subagents/src/agent-color.ts +11 -2
- package/node_modules/@herbertgao/pi-subagents/src/index.ts +10 -5
- package/node_modules/@herbertgao/pi-subagents/src/ui/agent-widget.ts +3 -2
- package/node_modules/@herbertgao/pi-subagents/src/ui/conversation-viewer.ts +1 -1
- package/node_modules/@herbertgao/pi-subagents/src/ui/fleet-list.ts +1 -0
- package/node_modules/@herbertgao/sol-pi/README.md +1 -1
- package/node_modules/@herbertgao/sol-pi/agents-install.md +2 -2
- package/node_modules/@narumitw/pi-btw/README.md +14 -5
- package/node_modules/@narumitw/pi-btw/dist/index.ts +1067 -560
- package/node_modules/@narumitw/pi-btw/dist/index.ts.map +4 -4
- package/node_modules/@narumitw/pi-btw/docs/core-alignment.md +277 -0
- package/node_modules/@narumitw/pi-btw/docs/native-appearance.md +857 -0
- package/node_modules/@narumitw/pi-btw/docs/workflows.md +34 -13
- package/node_modules/@narumitw/pi-btw/package.json +4 -4
- package/node_modules/@narumitw/pi-btw/src/btw.ts +152 -108
- package/node_modules/@narumitw/pi-btw/src/conversation-chrome.ts +93 -0
- package/node_modules/@narumitw/pi-btw/src/fullscreen-renderer.ts +329 -0
- package/node_modules/@narumitw/pi-btw/src/fullscreen-ui.ts +109 -315
- package/node_modules/@narumitw/pi-btw/src/keybindings.ts +100 -22
- package/node_modules/@narumitw/pi-btw/src/menu.ts +42 -27
- package/node_modules/@narumitw/pi-btw/src/session-lifetime.ts +66 -0
- package/node_modules/@narumitw/pi-btw/src/transcript-pager.ts +366 -164
- package/node_modules/@narumitw/pi-btw/src/workspace-layout.ts +96 -36
- package/node_modules/pi-lens/CHANGELOG.md +281 -0
- package/node_modules/pi-lens/README.md +13 -1
- package/node_modules/pi-lens/dist/{chunk-SS36ZX4J.js → chunk-24AKHFGP.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-JSQFTSC6.js → chunk-2FN63LPV.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-5UCAH366.js → chunk-2KXTHF3M.js} +20 -20
- package/node_modules/pi-lens/dist/{chunk-EU63SDCG.js → chunk-3DA2JDOL.js} +367 -281
- package/node_modules/pi-lens/dist/{chunk-RWWYJ623.js → chunk-3KAZU3VR.js} +1 -1
- package/node_modules/pi-lens/dist/chunk-3PTHXJXR.js +28 -0
- package/node_modules/pi-lens/dist/chunk-3QED2P4V.js +31 -0
- package/node_modules/pi-lens/dist/{chunk-N2H3ZPZY.js → chunk-3RKP3FMS.js} +1 -0
- package/node_modules/pi-lens/dist/{chunk-XVF2VVXP.js → chunk-5HSRT26B.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-MXGY6KPT.js → chunk-5IUSNGOC.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-EJIUXPBX.js → chunk-5OFV52AM.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-AW7R2GWG.js → chunk-5VSF4UUQ.js} +12 -7
- package/node_modules/pi-lens/dist/{chunk-6STA6Z7I.js → chunk-5WRPDP2A.js} +18 -18
- package/node_modules/pi-lens/dist/{chunk-YIUAVF7E.js → chunk-6DLWKFEX.js} +35 -34
- package/node_modules/pi-lens/dist/{chunk-WOA4LN2R.js → chunk-7D6L4MTX.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-GAEGEPOC.js → chunk-7HXE67BN.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-AGSS7277.js +84 -0
- package/node_modules/pi-lens/dist/{chunk-R3PCY3YS.js → chunk-AMERCH6V.js} +13 -13
- package/node_modules/pi-lens/dist/{chunk-WU567RSC.js → chunk-ATKJFDQN.js} +14 -10
- package/node_modules/pi-lens/dist/{chunk-VSSBEUFT.js → chunk-AWSCPCN2.js} +16 -16
- package/node_modules/pi-lens/dist/{chunk-VCHXCQFG.js → chunk-BWD5EPKO.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-H6MF6EVN.js → chunk-CT4MN5IU.js} +1200 -230
- package/node_modules/pi-lens/dist/{chunk-FCSOVF55.js → chunk-CUHSHSB6.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-CHOW74WE.js → chunk-CYRKQRPM.js} +7 -10
- package/node_modules/pi-lens/dist/{chunk-Q7DUK4LX.js → chunk-DEL2U6CM.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-6C7JWPCP.js → chunk-DGUKIYSI.js} +26 -23
- package/node_modules/pi-lens/dist/{chunk-PHDMFAKM.js → chunk-DUO2TU77.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-MRXKYPCS.js → chunk-EBC36LNN.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-CSHFH5IN.js → chunk-ED36RF6Y.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-76MWC2K6.js → chunk-EUXZEFTV.js} +90 -97
- package/node_modules/pi-lens/dist/{chunk-QOZXJ4NA.js → chunk-FM4RDMKT.js} +11 -8
- package/node_modules/pi-lens/dist/{chunk-ACXEQZOU.js → chunk-GAQ7OQG6.js} +31 -28
- package/node_modules/pi-lens/dist/{chunk-XAGLWMJ4.js → chunk-GL5LUMZE.js} +23 -23
- package/node_modules/pi-lens/dist/{chunk-BKE7E7TC.js → chunk-GMX5OS7B.js} +9 -9
- package/node_modules/pi-lens/dist/{chunk-ZHFZWTZV.js → chunk-GSLNCYGG.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-3W7IEVVL.js → chunk-GSM5UU7A.js} +26 -34
- package/node_modules/pi-lens/dist/{chunk-724UL2TJ.js → chunk-GXFV6MYU.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-HAD7QRQI.js +30 -0
- package/node_modules/pi-lens/dist/{chunk-QOBUHWHX.js → chunk-HRNHZA3N.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-VWCXW2E7.js → chunk-HWCCCQNX.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-7DYBLXYA.js → chunk-HYGZEMX6.js} +3 -3
- package/node_modules/pi-lens/dist/chunk-IJYGIDF4.js +186 -0
- package/node_modules/pi-lens/dist/{chunk-4W4VLAPJ.js → chunk-IQWN5JCP.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-SQ4TVJBR.js → chunk-IUE7SSKV.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-IBGIOBEE.js → chunk-IWDLU6K3.js} +68 -5
- package/node_modules/pi-lens/dist/{chunk-XCJN5IJU.js → chunk-IYNJ6YPZ.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-JAU72XNY.js → chunk-J64T55EI.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-2BBLFX75.js → chunk-J6MPGQTS.js} +5 -5
- package/node_modules/pi-lens/dist/chunk-JORED7EX.js +44 -0
- package/node_modules/pi-lens/dist/{chunk-6SDEP3AJ.js → chunk-JUKMK5Y4.js} +8 -8
- package/node_modules/pi-lens/dist/{chunk-FMSO6RDZ.js → chunk-JW3YWBVB.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-L3BLXZG7.js → chunk-KAPJINKN.js} +30 -69
- package/node_modules/pi-lens/dist/{chunk-2B73ZPOK.js → chunk-KN35K52N.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-C34ZXZ7O.js → chunk-KUA4OJ5Y.js} +24 -11
- package/node_modules/pi-lens/dist/chunk-KYUB6QDC.js +72 -0
- package/node_modules/pi-lens/dist/{chunk-67WMNWEE.js → chunk-LLJNQKQW.js} +12 -10
- package/node_modules/pi-lens/dist/chunk-LZSEQW6A.js +57 -0
- package/node_modules/pi-lens/dist/{chunk-ZANLILYD.js → chunk-M2IFVFWU.js} +2 -2
- package/node_modules/pi-lens/dist/chunk-M2UD3LPU.js +88 -0
- package/node_modules/pi-lens/dist/{chunk-XIJZVPD5.js → chunk-MBKQHGA7.js} +15 -15
- package/node_modules/pi-lens/dist/{chunk-P7266HLM.js → chunk-MPNJLASA.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-6GFRNVYR.js → chunk-MZGQNL3Y.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-ZWFS3OEF.js → chunk-N5FLEO7W.js} +33 -32
- package/node_modules/pi-lens/dist/{chunk-3JNKMP3B.js → chunk-O4NWQT6I.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-T6CPIZNT.js → chunk-OHKJ7PQF.js} +33 -32
- package/node_modules/pi-lens/dist/{chunk-VRZP76YM.js → chunk-P63GXC37.js} +4 -1
- package/node_modules/pi-lens/dist/{chunk-XTMJ7XDT.js → chunk-POMLXPMY.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-QQNQ7SJW.js → chunk-QBFBRV2B.js} +10 -4
- package/node_modules/pi-lens/dist/{chunk-CMMHNUZ2.js → chunk-R3T7CLQ2.js} +60 -38
- package/node_modules/pi-lens/dist/{chunk-23WOO7TX.js → chunk-R7YOCSNV.js} +10 -10
- package/node_modules/pi-lens/dist/{chunk-2CD5RS6M.js → chunk-RKBXZN3A.js} +23 -2
- package/node_modules/pi-lens/dist/{chunk-OCAGUNBC.js → chunk-RKKOYPRA.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-52FUZI6K.js → chunk-RMLC67LF.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-XMSXXAHW.js → chunk-ROYSX2S5.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-M6HSLBWY.js → chunk-RVK72CZX.js} +6507 -7514
- package/node_modules/pi-lens/dist/{chunk-FLKWCIZH.js → chunk-S2HEXIWI.js} +5 -5
- package/node_modules/pi-lens/dist/{chunk-UZ3TUTRV.js → chunk-S67KYG37.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-VCO24T4L.js → chunk-SD4I7ZO4.js} +14 -14
- package/node_modules/pi-lens/dist/{chunk-Z527N6YQ.js → chunk-SKAMFC7A.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-MQLUAEOC.js → chunk-SRYEJNES.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-BRGDSBJE.js → chunk-SYE6T2EB.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-GXW6K4YJ.js → chunk-T57LYLZT.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-ZXYDQ3TZ.js → chunk-T7FEBKXN.js} +48 -15
- package/node_modules/pi-lens/dist/{chunk-3EFKIGZN.js → chunk-TIQ2PKDW.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-QILIYSJF.js → chunk-TLX72JTG.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-TYM6OUIT.js → chunk-TOY6QKOH.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-IZSHAIJ7.js → chunk-TRETHTQO.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-3VPVG5SU.js → chunk-U44DJXQP.js} +10 -6
- package/node_modules/pi-lens/dist/{chunk-PNQDPDRC.js → chunk-UA7ZXYDR.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-OXXKQCSV.js → chunk-UBOQLVT2.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-QGQ5CCCG.js → chunk-UMS2MFPZ.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-QHJ6DQ2R.js → chunk-US7ECLD7.js} +55 -13
- package/node_modules/pi-lens/dist/{chunk-AB3YYG6N.js → chunk-UZ2XCLYS.js} +8 -8
- package/node_modules/pi-lens/dist/chunk-V35JG4JB.js +2667 -0
- package/node_modules/pi-lens/dist/{chunk-N3X6Q4YT.js → chunk-VOOAPROD.js} +3 -3
- package/node_modules/pi-lens/dist/{chunk-SAEFPSB6.js → chunk-W66O5E25.js} +21 -11
- package/node_modules/pi-lens/dist/{chunk-KBG47GHP.js → chunk-WMYE35PX.js} +15 -11
- package/node_modules/pi-lens/dist/{chunk-5NGR67U5.js → chunk-XBJVAEEO.js} +32 -5
- package/node_modules/pi-lens/dist/{chunk-YYOIQFRS.js → chunk-XHJBS436.js} +122 -44
- package/node_modules/pi-lens/dist/{chunk-GBPP5P7X.js → chunk-XTBDCR27.js} +4 -4
- package/node_modules/pi-lens/dist/{chunk-4UNXBNE2.js → chunk-XTFDJI3T.js} +11 -11
- package/node_modules/pi-lens/dist/{chunk-UXGETRP4.js → chunk-XYURS6EN.js} +13 -12
- package/node_modules/pi-lens/dist/{chunk-RPLINGVB.js → chunk-Y6GZHWSJ.js} +6 -6
- package/node_modules/pi-lens/dist/{chunk-2VUQMUMT.js → chunk-YCWYO6TQ.js} +41 -38
- package/node_modules/pi-lens/dist/{chunk-77M37OKR.js → chunk-YH5MVY2U.js} +7 -7
- package/node_modules/pi-lens/dist/{chunk-AOHZU2BM.js → chunk-YNE3RP52.js} +1 -1
- package/node_modules/pi-lens/dist/{chunk-YSZNHOBY.js → chunk-ZHH37KZL.js} +12 -12
- package/node_modules/pi-lens/dist/{chunk-ZGDGW2V3.js → chunk-ZIVJBOO3.js} +2 -2
- package/node_modules/pi-lens/dist/{chunk-RXCOMYPY.js → chunk-ZVUL7QYY.js} +29 -28
- package/node_modules/pi-lens/dist/index.js +11052 -5852
- package/node_modules/pi-lens/dist/mcp/analyze-cli.js +10 -9
- package/node_modules/pi-lens/dist/mcp/cli.js +41 -38
- package/node_modules/pi-lens/dist/mcp/server.js +1120 -474
- package/node_modules/pi-lens/dist/mcp/worker.js +61 -58
- package/node_modules/pi-lens/dist/probes/installer.js +19 -19
- package/node_modules/pi-lens/dist/workers/project-snapshot-persist-worker.js +28 -9
- package/node_modules/pi-lens/dist/workers/review-graph-persist-worker.js +1 -1
- package/node_modules/pi-lens/docs/configuration.md +11 -0
- package/node_modules/pi-lens/docs/engineering-principles.md +32 -0
- package/node_modules/pi-lens/docs/lsp-capability-matrix.md +1 -1
- package/node_modules/pi-lens/docs/lsp-idle-eviction.md +15 -26
- package/node_modules/pi-lens/docs/pi-lens-fixer.md +117 -13
- package/node_modules/pi-lens/docs/pi-lens-merge-policy.md +97 -7
- package/node_modules/pi-lens/docs/pi-lens-monitor.md +8 -2
- package/node_modules/pi-lens/docs/pi-lens-retro.md +4 -1
- package/node_modules/pi-lens/docs/pi-lens-reviewer.md +112 -4
- package/node_modules/pi-lens/docs/pi-lens-subagent.md +22 -14
- package/node_modules/pi-lens/docs/release-qa-baseline.md +3 -1
- package/node_modules/pi-lens/docs/servercapabilities.md +9 -19
- package/node_modules/pi-lens/package.json +7 -5
- package/node_modules/pi-lens/scripts/download-grammars.js +40 -7
- package/node_modules/pi-lens/scripts/lib/latency-log-phases.mjs +95 -0
- package/node_modules/pi-lens/scripts/rpc-load-check.mjs +570 -81
- package/node_modules/pi-provider-qoder/dist/index.js +545 -221
- package/node_modules/pi-provider-qoder/package.json +1 -1
- package/node_modules/pi-web-access/CHANGELOG.md +39 -0
- package/node_modules/pi-web-access/README.md +83 -12
- package/node_modules/pi-web-access/anysearch.ts +4 -3
- package/node_modules/pi-web-access/bocha.ts +4 -3
- package/node_modules/pi-web-access/brightdata-unlocker.ts +3 -2
- package/node_modules/pi-web-access/brightdata.ts +4 -3
- package/node_modules/pi-web-access/ceramic.ts +3 -2
- package/node_modules/pi-web-access/curator-page.ts +3 -1
- package/node_modules/pi-web-access/curator-server.ts +1 -0
- package/node_modules/pi-web-access/deepseek.ts +179 -6
- package/node_modules/pi-web-access/dist/index.js +1118 -688
- package/node_modules/pi-web-access/dist/mcp-cli.js +1081 -667
- package/node_modules/pi-web-access/extract.ts +58 -6
- package/node_modules/pi-web-access/gemini-search.ts +29 -6
- package/node_modules/pi-web-access/index.ts +20 -3
- package/node_modules/pi-web-access/jina-search.ts +6 -4
- package/node_modules/pi-web-access/kagi.ts +5 -4
- package/node_modules/pi-web-access/keenable.ts +3 -2
- package/node_modules/pi-web-access/linkup.ts +170 -0
- package/node_modules/pi-web-access/mistral-search.ts +4 -3
- package/node_modules/pi-web-access/ollama.ts +5 -4
- package/node_modules/pi-web-access/package.json +1 -1
- package/node_modules/pi-web-access/parallel.ts +7 -7
- package/node_modules/pi-web-access/perplexity.ts +5 -3
- package/node_modules/pi-web-access/querit.ts +4 -3
- package/node_modules/pi-web-access/search1api.ts +4 -3
- package/node_modules/pi-web-access/searchinfinity.ts +4 -3
- package/node_modules/pi-web-access/serpapi.ts +7 -5
- package/node_modules/pi-web-access/serpbase.ts +5 -4
- package/node_modules/pi-web-access/serpdive.ts +4 -3
- package/node_modules/pi-web-access/serper.ts +6 -4
- package/node_modules/pi-web-access/serply.ts +3 -2
- package/node_modules/pi-web-access/utils.ts +24 -1
- package/node_modules/pi-web-access/valyu.ts +4 -3
- package/node_modules/pi-web-access/web-tool-core.ts +5 -0
- package/node_modules/pi-web-access/xai-search.ts +49 -7
- package/node_modules/pi-web-access/xcrawl.ts +4 -3
- package/node_modules/pi-web-access/you.ts +3 -2
- package/package.json +10 -10
- package/node_modules/pi-lens/dist/chunk-3YN6V5TV.js +0 -85
- package/node_modules/pi-lens/dist/chunk-466Z26MG.js +0 -30
- package/node_modules/pi-lens/dist/chunk-EC47DWFA.js +0 -56
- package/node_modules/pi-lens/dist/chunk-KDERNTCQ.js +0 -28
- package/node_modules/pi-lens/dist/chunk-KSX3TXSZ.js +0 -69
- package/node_modules/pi-lens/dist/chunk-LOP6GRPH.js +0 -31
- package/node_modules/pi-lens/dist/chunk-UOPVJQ4N.js +0 -103
- /package/node_modules/pi-lens/dist/{chunk-FC4RP4I2.js → chunk-6HWVI6MI.js} +0 -0
|
@@ -25,7 +25,8 @@ import { getWebSearchConfigPath } from "./utils.ts";
|
|
|
25
25
|
|
|
26
26
|
const XAI_RESPONSES_URL = "https://api.x.ai/v1/responses";
|
|
27
27
|
const CONFIG_PATH = getWebSearchConfigPath();
|
|
28
|
-
const
|
|
28
|
+
const DEFAULT_SEARCH_TIMEOUT_MS = 60_000;
|
|
29
|
+
const MAX_SEARCH_TIMEOUT_MS = 600_000;
|
|
29
30
|
|
|
30
31
|
// Ordered best-first. pi's builtin xai catalog is small and xAI retires models
|
|
31
32
|
// briskly, so this is a preference list, not an assumption: the first one the
|
|
@@ -40,7 +41,9 @@ const DEFAULT_XAI_SEARCH_TOOLS = ["web_search"] as const satisfies readonly XaiS
|
|
|
40
41
|
|
|
41
42
|
interface WebSearchConfig {
|
|
42
43
|
xaiApiKey?: unknown;
|
|
44
|
+
xaiResponsesUrl?: unknown;
|
|
43
45
|
xaiSearchModel?: unknown;
|
|
46
|
+
xaiSearchTimeoutMs?: unknown;
|
|
44
47
|
xaiSearchTools?: unknown;
|
|
45
48
|
}
|
|
46
49
|
|
|
@@ -79,6 +82,33 @@ function resolveConfiguredSearchModel(value: unknown): string | undefined {
|
|
|
79
82
|
return value.trim();
|
|
80
83
|
}
|
|
81
84
|
|
|
85
|
+
// A custom endpoint (for example a gateway relaying to a Grok subscription)
|
|
86
|
+
// only ever receives the configured xAI API key, never Pi's xAI sign-in.
|
|
87
|
+
function resolveConfiguredResponsesUrl(value: unknown): string | undefined {
|
|
88
|
+
if (value === undefined) return undefined;
|
|
89
|
+
if (typeof value !== "string" || value.trim().length === 0) {
|
|
90
|
+
throw new Error(`xaiResponsesUrl in ${CONFIG_PATH} must be an absolute http(s) URL`);
|
|
91
|
+
}
|
|
92
|
+
let url: URL;
|
|
93
|
+
try {
|
|
94
|
+
url = new URL(value.trim());
|
|
95
|
+
} catch {
|
|
96
|
+
throw new Error(`xaiResponsesUrl in ${CONFIG_PATH} must be an absolute http(s) URL`);
|
|
97
|
+
}
|
|
98
|
+
if (url.protocol !== "https:" && url.protocol !== "http:") {
|
|
99
|
+
throw new Error(`xaiResponsesUrl in ${CONFIG_PATH} must use http or https`);
|
|
100
|
+
}
|
|
101
|
+
return url.toString();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function resolveConfiguredSearchTimeoutMs(value: unknown): number {
|
|
105
|
+
if (value === undefined) return DEFAULT_SEARCH_TIMEOUT_MS;
|
|
106
|
+
if (typeof value !== "number" || !Number.isInteger(value) || value <= 0) {
|
|
107
|
+
throw new Error(`xaiSearchTimeoutMs in ${CONFIG_PATH} must be a positive integer`);
|
|
108
|
+
}
|
|
109
|
+
return Math.min(value, MAX_SEARCH_TIMEOUT_MS);
|
|
110
|
+
}
|
|
111
|
+
|
|
82
112
|
function resolveConfiguredSearchTools(value: unknown): XaiSearchTool[] {
|
|
83
113
|
if (value === undefined) return [...DEFAULT_XAI_SEARCH_TOOLS];
|
|
84
114
|
if (!Array.isArray(value) || value.length === 0) {
|
|
@@ -138,7 +168,7 @@ export async function resolveXaiAuth(ctx?: ExtensionContext, signal?: AbortSigna
|
|
|
138
168
|
const config = loadConfig();
|
|
139
169
|
const modelOverride = resolveConfiguredSearchModel(config.xaiSearchModel);
|
|
140
170
|
const tools = resolveConfiguredSearchTools(config.xaiSearchTools);
|
|
141
|
-
if (ctx) {
|
|
171
|
+
if (ctx && resolveConfiguredResponsesUrl(config.xaiResponsesUrl) === undefined) {
|
|
142
172
|
const auth = await resolvePiAuth(ctx, modelOverride, tools);
|
|
143
173
|
if (auth) return auth;
|
|
144
174
|
}
|
|
@@ -161,13 +191,16 @@ export async function resolveXaiAuth(ctx?: ExtensionContext, signal?: AbortSigna
|
|
|
161
191
|
export async function isXaiSearchAvailable(ctx?: ExtensionContext): Promise<boolean> {
|
|
162
192
|
let config: WebSearchConfig;
|
|
163
193
|
let tools: XaiSearchTool[];
|
|
194
|
+
let customUrl: string | undefined;
|
|
164
195
|
try {
|
|
165
196
|
config = loadConfig();
|
|
166
197
|
tools = resolveConfiguredSearchTools(config.xaiSearchTools);
|
|
198
|
+
customUrl = resolveConfiguredResponsesUrl(config.xaiResponsesUrl);
|
|
199
|
+
resolveConfiguredSearchTimeoutMs(config.xaiSearchTimeoutMs);
|
|
167
200
|
} catch {
|
|
168
201
|
return false;
|
|
169
202
|
}
|
|
170
|
-
if (ctx && await resolvePiAuth(ctx, undefined, tools)) return true;
|
|
203
|
+
if (ctx && customUrl === undefined && await resolvePiAuth(ctx, undefined, tools)) return true;
|
|
171
204
|
return hasCredentialSource({
|
|
172
205
|
provider: "xAI",
|
|
173
206
|
configuredValue: config.xaiApiKey,
|
|
@@ -330,9 +363,18 @@ export async function searchWithXai(
|
|
|
330
363
|
options: SearchOptions = {},
|
|
331
364
|
ctx?: ExtensionContext,
|
|
332
365
|
): Promise<SearchResponse> {
|
|
333
|
-
const
|
|
366
|
+
const config = loadConfig();
|
|
367
|
+
const tools = resolveConfiguredSearchTools(config.xaiSearchTools);
|
|
368
|
+
const customUrl = resolveConfiguredResponsesUrl(config.xaiResponsesUrl);
|
|
369
|
+
const timeoutMs = resolveConfiguredSearchTimeoutMs(config.xaiSearchTimeoutMs);
|
|
334
370
|
const auth = await resolveXaiAuth(ctx, options.signal);
|
|
335
371
|
if (!auth) {
|
|
372
|
+
if (customUrl) {
|
|
373
|
+
throw new Error(
|
|
374
|
+
`xAI search unavailable: xaiResponsesUrl is set, so Pi's xAI sign-in is not used. ` +
|
|
375
|
+
`Set xaiApiKey in ${CONFIG_PATH} or the XAI_API_KEY environment variable to the key for that endpoint.`,
|
|
376
|
+
);
|
|
377
|
+
}
|
|
336
378
|
throw new Error(
|
|
337
379
|
"xAI search unavailable. Either:\n" +
|
|
338
380
|
" 1. Use /login to sign in with a SuperGrok or X Premium subscription\n" +
|
|
@@ -343,7 +385,7 @@ export async function searchWithXai(
|
|
|
343
385
|
|
|
344
386
|
const activityId = activityMonitor.logStart({ type: "api", query });
|
|
345
387
|
try {
|
|
346
|
-
const response = await fetch(XAI_RESPONSES_URL, {
|
|
388
|
+
const response = await fetch(customUrl ?? XAI_RESPONSES_URL, {
|
|
347
389
|
method: "POST",
|
|
348
390
|
headers: {
|
|
349
391
|
...toRequestHeaders(auth.headers),
|
|
@@ -356,8 +398,8 @@ export async function searchWithXai(
|
|
|
356
398
|
tools: tools.map((type) => ({ type })),
|
|
357
399
|
}),
|
|
358
400
|
signal: options.signal
|
|
359
|
-
? AbortSignal.any([AbortSignal.timeout(
|
|
360
|
-
: AbortSignal.timeout(
|
|
401
|
+
? AbortSignal.any([AbortSignal.timeout(timeoutMs), options.signal])
|
|
402
|
+
: AbortSignal.timeout(timeoutMs),
|
|
361
403
|
});
|
|
362
404
|
|
|
363
405
|
if (!response.ok) {
|
|
@@ -5,7 +5,7 @@ import type { SearchOptions, SearchResponse } from "./perplexity.ts";
|
|
|
5
5
|
import { formatSearchResultsAsAnswer } from "./search-answer-formatting.ts";
|
|
6
6
|
import { normalizeSearchResultCount } from "./search-result-count-normalization.ts";
|
|
7
7
|
import { hasCredentialSource, redactCredential, resolveCredential } from "./credential-source.ts";
|
|
8
|
-
import { getWebSearchConfigPath } from "./utils.ts";
|
|
8
|
+
import { getWebSearchConfigPath, resolveProviderApiUrl, fetchWithCredentialRedirects } from "./utils.ts";
|
|
9
9
|
|
|
10
10
|
const XCRAWL_API_URL = "https://run.xcrawl.com/v1/serp";
|
|
11
11
|
const CONFIG_PATH = getWebSearchConfigPath();
|
|
@@ -14,6 +14,7 @@ const CONFIG_PATH = getWebSearchConfigPath();
|
|
|
14
14
|
const SEARCH_TIMEOUT_MS = 60_000;
|
|
15
15
|
|
|
16
16
|
interface WebSearchConfig {
|
|
17
|
+
xcrawlBaseUrl?: unknown;
|
|
17
18
|
xcrawlApiKey?: unknown;
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -173,7 +174,7 @@ export async function searchWithXCrawl(query: string, options: SearchOptions = {
|
|
|
173
174
|
let response: Response;
|
|
174
175
|
|
|
175
176
|
try {
|
|
176
|
-
response = await
|
|
177
|
+
response = await fetchWithCredentialRedirects(resolveProviderApiUrl("xcrawl", XCRAWL_API_URL, loadConfig().xcrawlBaseUrl), {
|
|
177
178
|
method: "POST",
|
|
178
179
|
headers: {
|
|
179
180
|
Authorization: `Bearer ${apiKey}`,
|
|
@@ -183,7 +184,7 @@ export async function searchWithXCrawl(query: string, options: SearchOptions = {
|
|
|
183
184
|
signal: options.signal
|
|
184
185
|
? AbortSignal.any([timeoutSignal, options.signal])
|
|
185
186
|
: timeoutSignal,
|
|
186
|
-
});
|
|
187
|
+
}, ["Authorization"]);
|
|
187
188
|
} catch (err) {
|
|
188
189
|
const message = errorMessage(err);
|
|
189
190
|
if (options.signal?.aborted) {
|
|
@@ -5,13 +5,14 @@ import type { SearchOptions, SearchResponse } from "./perplexity.ts";
|
|
|
5
5
|
import { formatSearchResultsAsAnswer } from "./search-answer-formatting.ts";
|
|
6
6
|
import { normalizeSearchResultCount } from "./search-result-count-normalization.ts";
|
|
7
7
|
import { hasCredentialSource, redactCredential, resolveCredential } from "./credential-source.ts";
|
|
8
|
-
import { fetchWithCredentialRedirects, getWebSearchConfigPath } from "./utils.ts";
|
|
8
|
+
import { fetchWithCredentialRedirects, getWebSearchConfigPath, resolveProviderApiUrl } from "./utils.ts";
|
|
9
9
|
|
|
10
10
|
const YOU_SEARCH_URL = "https://ydc-index.io/v1/search";
|
|
11
11
|
const CONFIG_PATH = getWebSearchConfigPath();
|
|
12
12
|
const SEARCH_TIMEOUT_MS = 60_000;
|
|
13
13
|
|
|
14
14
|
interface WebSearchConfig {
|
|
15
|
+
youBaseUrl?: unknown;
|
|
15
16
|
youApiKey?: unknown;
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -100,7 +101,7 @@ export async function searchWithYou(query: string, options: SearchOptions = {}):
|
|
|
100
101
|
let response: Response;
|
|
101
102
|
let entries: unknown[];
|
|
102
103
|
try {
|
|
103
|
-
response = await fetchWithCredentialRedirects(YOU_SEARCH_URL, {
|
|
104
|
+
response = await fetchWithCredentialRedirects(resolveProviderApiUrl("you", YOU_SEARCH_URL, loadConfig().youBaseUrl), {
|
|
104
105
|
method: "POST",
|
|
105
106
|
headers: { Accept: "application/json", "Content-Type": "application/json", "X-API-Key": apiKey },
|
|
106
107
|
body: JSON.stringify(body),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herbertgao/pi-extensions",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.13",
|
|
4
4
|
"description": "Aggregate installer for HerbertGao-maintained Pi extensions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"extensions",
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
"postpack": "node ../../scripts/aggregate-bundle.mjs restore"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ast-grep/cli": "0.
|
|
39
|
-
"@ast-grep/napi": "^0.
|
|
38
|
+
"@ast-grep/cli": "0.50.0",
|
|
39
|
+
"@ast-grep/napi": "^0.50.0",
|
|
40
40
|
"@dietrichgebert/ponytail": "5.3.2",
|
|
41
|
-
"@herbertgao/pi-agency": "0.1.
|
|
41
|
+
"@herbertgao/pi-agency": "0.1.2",
|
|
42
42
|
"@herbertgao/pi-bark": "0.2.1",
|
|
43
|
-
"@herbertgao/pi-cc-extensions": "1.0.
|
|
44
|
-
"@herbertgao/pi-subagents": "0.22.0-local.
|
|
43
|
+
"@herbertgao/pi-cc-extensions": "1.0.9-local.2",
|
|
44
|
+
"@herbertgao/pi-subagents": "0.22.0-local.2",
|
|
45
45
|
"@herbertgao/sol-pi": "0.4.2",
|
|
46
46
|
"@juicesharp/rpiv-ask-user-question": "2.13.9",
|
|
47
47
|
"@juicesharp/rpiv-config": "^2.13.9",
|
|
48
48
|
"@modelcontextprotocol/sdk": "^1.32.1",
|
|
49
49
|
"@mozilla/readability": "^0.6.0",
|
|
50
50
|
"@napi-rs/keyring": "^2.1.0",
|
|
51
|
-
"@narumitw/pi-btw": "0.
|
|
51
|
+
"@narumitw/pi-btw": "0.62.0",
|
|
52
52
|
"@narumitw/pi-caffeinate": "0.49.12",
|
|
53
53
|
"@narumitw/pi-tui-kit": "^0.64.0",
|
|
54
54
|
"@pi-plugins/fast-mode": "0.1.14",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"nanoid": "^5.0.0",
|
|
73
73
|
"p-limit": "^6.1.0",
|
|
74
74
|
"pi-antigravity": "0.11.0",
|
|
75
|
-
"pi-lens": "4.4.
|
|
75
|
+
"pi-lens": "4.4.4",
|
|
76
76
|
"pi-next-cue": "1.0.7",
|
|
77
|
-
"pi-provider-qoder": "0.6.
|
|
77
|
+
"pi-provider-qoder": "0.6.5",
|
|
78
78
|
"pi-typesafe": "0.10.0",
|
|
79
|
-
"pi-web-access": "0.
|
|
79
|
+
"pi-web-access": "0.44.0",
|
|
80
80
|
"pidusage": "^4.0.1",
|
|
81
81
|
"promise.try": "^2.0.1",
|
|
82
82
|
"turndown": "^7.2.0",
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
_getWarmWordIndexCacheStateForTests,
|
|
4
|
-
_resetWarmWordIndexCacheForTests,
|
|
5
|
-
acquireWarmWordIndex,
|
|
6
|
-
analyzeFile,
|
|
7
|
-
summarizeWarningTiers
|
|
8
|
-
} from "./chunk-H6MF6EVN.js";
|
|
9
|
-
import "./chunk-OXXKQCSV.js";
|
|
10
|
-
import "./chunk-EJIUXPBX.js";
|
|
11
|
-
import "./chunk-2CD5RS6M.js";
|
|
12
|
-
import "./chunk-FC4RP4I2.js";
|
|
13
|
-
import "./chunk-UZ3TUTRV.js";
|
|
14
|
-
import "./chunk-XMSXXAHW.js";
|
|
15
|
-
import "./chunk-77M37OKR.js";
|
|
16
|
-
import "./chunk-CSHFH5IN.js";
|
|
17
|
-
import "./chunk-VCHXCQFG.js";
|
|
18
|
-
import "./chunk-3EFKIGZN.js";
|
|
19
|
-
import "./chunk-MRXKYPCS.js";
|
|
20
|
-
import "./chunk-7DYBLXYA.js";
|
|
21
|
-
import "./chunk-AB3YYG6N.js";
|
|
22
|
-
import "./chunk-YSZNHOBY.js";
|
|
23
|
-
import "./chunk-RPLINGVB.js";
|
|
24
|
-
import "./chunk-XCJN5IJU.js";
|
|
25
|
-
import "./chunk-76MWC2K6.js";
|
|
26
|
-
import "./chunk-GXW6K4YJ.js";
|
|
27
|
-
import "./chunk-2B73ZPOK.js";
|
|
28
|
-
import "./chunk-YYOIQFRS.js";
|
|
29
|
-
import "./chunk-3MED75HT.js";
|
|
30
|
-
import "./chunk-M6HSLBWY.js";
|
|
31
|
-
import "./chunk-IBGIOBEE.js";
|
|
32
|
-
import "./chunk-XIMYZ3JA.js";
|
|
33
|
-
import "./chunk-EU63SDCG.js";
|
|
34
|
-
import "./chunk-VWCXW2E7.js";
|
|
35
|
-
import "./chunk-FCSOVF55.js";
|
|
36
|
-
import "./chunk-PNQDPDRC.js";
|
|
37
|
-
import "./chunk-ZXYDQ3TZ.js";
|
|
38
|
-
import "./chunk-5W3R6LFT.js";
|
|
39
|
-
import "./chunk-QHJ6DQ2R.js";
|
|
40
|
-
import "./chunk-Z54ZSOBZ.js";
|
|
41
|
-
import "./chunk-724UL2TJ.js";
|
|
42
|
-
import "./chunk-QOZXJ4NA.js";
|
|
43
|
-
import "./chunk-GBPP5P7X.js";
|
|
44
|
-
import "./chunk-P7266HLM.js";
|
|
45
|
-
import "./chunk-MQLUAEOC.js";
|
|
46
|
-
import "./chunk-52FUZI6K.js";
|
|
47
|
-
import "./chunk-SAEFPSB6.js";
|
|
48
|
-
import "./chunk-GAEGEPOC.js";
|
|
49
|
-
import "./chunk-Z3CCVDUB.js";
|
|
50
|
-
import "./chunk-L3BLXZG7.js";
|
|
51
|
-
import "./chunk-2BEMIWEW.js";
|
|
52
|
-
import "./chunk-ACXEQZOU.js";
|
|
53
|
-
import "./chunk-Q7DUK4LX.js";
|
|
54
|
-
import "./chunk-AW7R2GWG.js";
|
|
55
|
-
import "./chunk-RWWYJ623.js";
|
|
56
|
-
import "./chunk-VRZP76YM.js";
|
|
57
|
-
import "./chunk-QOBUHWHX.js";
|
|
58
|
-
import "./chunk-QILIYSJF.js";
|
|
59
|
-
import "./chunk-6C7JWPCP.js";
|
|
60
|
-
import "./chunk-5NGR67U5.js";
|
|
61
|
-
import "./chunk-C34ZXZ7O.js";
|
|
62
|
-
import "./chunk-BW5KFIQC.js";
|
|
63
|
-
import "./chunk-QYF5S6P6.js";
|
|
64
|
-
import "./chunk-PHDMFAKM.js";
|
|
65
|
-
import "./chunk-2BBLFX75.js";
|
|
66
|
-
import "./chunk-XVF2VVXP.js";
|
|
67
|
-
import "./chunk-ZANLILYD.js";
|
|
68
|
-
import "./chunk-2EECBNC5.js";
|
|
69
|
-
import "./chunk-JAU72XNY.js";
|
|
70
|
-
import "./chunk-XTMJ7XDT.js";
|
|
71
|
-
import "./chunk-JMYYOTQG.js";
|
|
72
|
-
import "./chunk-QQNQ7SJW.js";
|
|
73
|
-
import "./chunk-AOHZU2BM.js";
|
|
74
|
-
import "./chunk-LJDODBBZ.js";
|
|
75
|
-
import "./chunk-CHOW74WE.js";
|
|
76
|
-
import "./chunk-ABBOA7UD.js";
|
|
77
|
-
import "./chunk-N2H3ZPZY.js";
|
|
78
|
-
import "./chunk-NXL4FFQQ.js";
|
|
79
|
-
export {
|
|
80
|
-
_getWarmWordIndexCacheStateForTests,
|
|
81
|
-
_resetWarmWordIndexCacheForTests,
|
|
82
|
-
acquireWarmWordIndex,
|
|
83
|
-
analyzeFile,
|
|
84
|
-
summarizeWarningTiers
|
|
85
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
importFactProvider,
|
|
4
|
-
importFactsApplyTo
|
|
5
|
-
} from "./chunk-XCJN5IJU.js";
|
|
6
|
-
import "./chunk-GXW6K4YJ.js";
|
|
7
|
-
import "./chunk-QHJ6DQ2R.js";
|
|
8
|
-
import "./chunk-Z54ZSOBZ.js";
|
|
9
|
-
import "./chunk-724UL2TJ.js";
|
|
10
|
-
import "./chunk-QOZXJ4NA.js";
|
|
11
|
-
import "./chunk-VRZP76YM.js";
|
|
12
|
-
import "./chunk-C34ZXZ7O.js";
|
|
13
|
-
import "./chunk-PHDMFAKM.js";
|
|
14
|
-
import "./chunk-2BBLFX75.js";
|
|
15
|
-
import "./chunk-XVF2VVXP.js";
|
|
16
|
-
import "./chunk-ZANLILYD.js";
|
|
17
|
-
import "./chunk-2EECBNC5.js";
|
|
18
|
-
import "./chunk-JAU72XNY.js";
|
|
19
|
-
import "./chunk-XTMJ7XDT.js";
|
|
20
|
-
import "./chunk-JMYYOTQG.js";
|
|
21
|
-
import "./chunk-QQNQ7SJW.js";
|
|
22
|
-
import "./chunk-AOHZU2BM.js";
|
|
23
|
-
import "./chunk-LJDODBBZ.js";
|
|
24
|
-
import "./chunk-ABBOA7UD.js";
|
|
25
|
-
import "./chunk-N2H3ZPZY.js";
|
|
26
|
-
import "./chunk-NXL4FFQQ.js";
|
|
27
|
-
export {
|
|
28
|
-
importFactProvider,
|
|
29
|
-
importFactsApplyTo
|
|
30
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
DependencyChecker,
|
|
4
|
-
buildMadgeArgs,
|
|
5
|
-
resetMadgeManagedPathMemo
|
|
6
|
-
} from "./chunk-AB3YYG6N.js";
|
|
7
|
-
import "./chunk-YSZNHOBY.js";
|
|
8
|
-
import "./chunk-RPLINGVB.js";
|
|
9
|
-
import {
|
|
10
|
-
mapWithConcurrency
|
|
11
|
-
} from "./chunk-XIMYZ3JA.js";
|
|
12
|
-
import "./chunk-EU63SDCG.js";
|
|
13
|
-
import "./chunk-VWCXW2E7.js";
|
|
14
|
-
import "./chunk-FCSOVF55.js";
|
|
15
|
-
import "./chunk-PNQDPDRC.js";
|
|
16
|
-
import "./chunk-ZXYDQ3TZ.js";
|
|
17
|
-
import "./chunk-724UL2TJ.js";
|
|
18
|
-
import "./chunk-QOZXJ4NA.js";
|
|
19
|
-
import "./chunk-P7266HLM.js";
|
|
20
|
-
import "./chunk-52FUZI6K.js";
|
|
21
|
-
import "./chunk-SAEFPSB6.js";
|
|
22
|
-
import "./chunk-GAEGEPOC.js";
|
|
23
|
-
import "./chunk-Z3CCVDUB.js";
|
|
24
|
-
import "./chunk-2BEMIWEW.js";
|
|
25
|
-
import "./chunk-ACXEQZOU.js";
|
|
26
|
-
import "./chunk-Q7DUK4LX.js";
|
|
27
|
-
import "./chunk-AW7R2GWG.js";
|
|
28
|
-
import "./chunk-RWWYJ623.js";
|
|
29
|
-
import "./chunk-VRZP76YM.js";
|
|
30
|
-
import "./chunk-QOBUHWHX.js";
|
|
31
|
-
import "./chunk-QILIYSJF.js";
|
|
32
|
-
import "./chunk-6C7JWPCP.js";
|
|
33
|
-
import "./chunk-5NGR67U5.js";
|
|
34
|
-
import "./chunk-C34ZXZ7O.js";
|
|
35
|
-
import "./chunk-BW5KFIQC.js";
|
|
36
|
-
import "./chunk-QYF5S6P6.js";
|
|
37
|
-
import "./chunk-PHDMFAKM.js";
|
|
38
|
-
import "./chunk-2BBLFX75.js";
|
|
39
|
-
import "./chunk-XVF2VVXP.js";
|
|
40
|
-
import "./chunk-ZANLILYD.js";
|
|
41
|
-
import "./chunk-2EECBNC5.js";
|
|
42
|
-
import "./chunk-JAU72XNY.js";
|
|
43
|
-
import "./chunk-XTMJ7XDT.js";
|
|
44
|
-
import "./chunk-JMYYOTQG.js";
|
|
45
|
-
import "./chunk-QQNQ7SJW.js";
|
|
46
|
-
import "./chunk-AOHZU2BM.js";
|
|
47
|
-
import "./chunk-LJDODBBZ.js";
|
|
48
|
-
import "./chunk-ABBOA7UD.js";
|
|
49
|
-
import "./chunk-N2H3ZPZY.js";
|
|
50
|
-
import "./chunk-NXL4FFQQ.js";
|
|
51
|
-
export {
|
|
52
|
-
DependencyChecker,
|
|
53
|
-
buildMadgeArgs,
|
|
54
|
-
mapWithConcurrency,
|
|
55
|
-
resetMadgeManagedPathMemo
|
|
56
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
GovulncheckClient,
|
|
4
|
-
parseGovulncheckJson
|
|
5
|
-
} from "./chunk-SQ4TVJBR.js";
|
|
6
|
-
import "./chunk-UZ3TUTRV.js";
|
|
7
|
-
import "./chunk-3EFKIGZN.js";
|
|
8
|
-
import "./chunk-RWWYJ623.js";
|
|
9
|
-
import "./chunk-VRZP76YM.js";
|
|
10
|
-
import "./chunk-C34ZXZ7O.js";
|
|
11
|
-
import "./chunk-BW5KFIQC.js";
|
|
12
|
-
import "./chunk-2BBLFX75.js";
|
|
13
|
-
import "./chunk-XVF2VVXP.js";
|
|
14
|
-
import "./chunk-ZANLILYD.js";
|
|
15
|
-
import "./chunk-2EECBNC5.js";
|
|
16
|
-
import "./chunk-JAU72XNY.js";
|
|
17
|
-
import "./chunk-XTMJ7XDT.js";
|
|
18
|
-
import "./chunk-JMYYOTQG.js";
|
|
19
|
-
import "./chunk-QQNQ7SJW.js";
|
|
20
|
-
import "./chunk-AOHZU2BM.js";
|
|
21
|
-
import "./chunk-LJDODBBZ.js";
|
|
22
|
-
import "./chunk-ABBOA7UD.js";
|
|
23
|
-
import "./chunk-N2H3ZPZY.js";
|
|
24
|
-
import "./chunk-NXL4FFQQ.js";
|
|
25
|
-
export {
|
|
26
|
-
GovulncheckClient,
|
|
27
|
-
parseGovulncheckJson
|
|
28
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
adaptLspService,
|
|
4
|
-
getLSPService,
|
|
5
|
-
groupFilesByPrimaryServer,
|
|
6
|
-
hasAuxiliaryLspPublishedForRoot,
|
|
7
|
-
notifyExternalFileChange,
|
|
8
|
-
peekLSPService,
|
|
9
|
-
resetLSPService,
|
|
10
|
-
resyncGitChangedFiles,
|
|
11
|
-
runPerServerGroups
|
|
12
|
-
} from "./chunk-M6HSLBWY.js";
|
|
13
|
-
import "./chunk-IBGIOBEE.js";
|
|
14
|
-
import "./chunk-XIMYZ3JA.js";
|
|
15
|
-
import "./chunk-EU63SDCG.js";
|
|
16
|
-
import "./chunk-VWCXW2E7.js";
|
|
17
|
-
import "./chunk-FCSOVF55.js";
|
|
18
|
-
import "./chunk-PNQDPDRC.js";
|
|
19
|
-
import "./chunk-ZXYDQ3TZ.js";
|
|
20
|
-
import "./chunk-QHJ6DQ2R.js";
|
|
21
|
-
import "./chunk-Z54ZSOBZ.js";
|
|
22
|
-
import "./chunk-724UL2TJ.js";
|
|
23
|
-
import "./chunk-QOZXJ4NA.js";
|
|
24
|
-
import "./chunk-GBPP5P7X.js";
|
|
25
|
-
import "./chunk-P7266HLM.js";
|
|
26
|
-
import "./chunk-MQLUAEOC.js";
|
|
27
|
-
import "./chunk-52FUZI6K.js";
|
|
28
|
-
import "./chunk-SAEFPSB6.js";
|
|
29
|
-
import "./chunk-GAEGEPOC.js";
|
|
30
|
-
import "./chunk-Z3CCVDUB.js";
|
|
31
|
-
import "./chunk-L3BLXZG7.js";
|
|
32
|
-
import "./chunk-2BEMIWEW.js";
|
|
33
|
-
import "./chunk-ACXEQZOU.js";
|
|
34
|
-
import "./chunk-Q7DUK4LX.js";
|
|
35
|
-
import "./chunk-AW7R2GWG.js";
|
|
36
|
-
import "./chunk-RWWYJ623.js";
|
|
37
|
-
import "./chunk-VRZP76YM.js";
|
|
38
|
-
import "./chunk-QOBUHWHX.js";
|
|
39
|
-
import "./chunk-QILIYSJF.js";
|
|
40
|
-
import "./chunk-6C7JWPCP.js";
|
|
41
|
-
import "./chunk-5NGR67U5.js";
|
|
42
|
-
import "./chunk-C34ZXZ7O.js";
|
|
43
|
-
import "./chunk-BW5KFIQC.js";
|
|
44
|
-
import "./chunk-QYF5S6P6.js";
|
|
45
|
-
import "./chunk-PHDMFAKM.js";
|
|
46
|
-
import "./chunk-2BBLFX75.js";
|
|
47
|
-
import "./chunk-XVF2VVXP.js";
|
|
48
|
-
import "./chunk-ZANLILYD.js";
|
|
49
|
-
import "./chunk-2EECBNC5.js";
|
|
50
|
-
import "./chunk-JAU72XNY.js";
|
|
51
|
-
import "./chunk-XTMJ7XDT.js";
|
|
52
|
-
import "./chunk-JMYYOTQG.js";
|
|
53
|
-
import "./chunk-QQNQ7SJW.js";
|
|
54
|
-
import "./chunk-AOHZU2BM.js";
|
|
55
|
-
import "./chunk-LJDODBBZ.js";
|
|
56
|
-
import "./chunk-ABBOA7UD.js";
|
|
57
|
-
import "./chunk-N2H3ZPZY.js";
|
|
58
|
-
import "./chunk-NXL4FFQQ.js";
|
|
59
|
-
export {
|
|
60
|
-
adaptLspService,
|
|
61
|
-
getLSPService,
|
|
62
|
-
groupFilesByPrimaryServer,
|
|
63
|
-
hasAuxiliaryLspPublishedForRoot,
|
|
64
|
-
notifyExternalFileChange,
|
|
65
|
-
peekLSPService,
|
|
66
|
-
resetLSPService,
|
|
67
|
-
resyncGitChangedFiles,
|
|
68
|
-
runPerServerGroups
|
|
69
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
calcCyclomaticComplexity,
|
|
4
|
-
functionFactProvider
|
|
5
|
-
} from "./chunk-76MWC2K6.js";
|
|
6
|
-
import "./chunk-GXW6K4YJ.js";
|
|
7
|
-
import "./chunk-5W3R6LFT.js";
|
|
8
|
-
import "./chunk-QHJ6DQ2R.js";
|
|
9
|
-
import "./chunk-Z54ZSOBZ.js";
|
|
10
|
-
import "./chunk-724UL2TJ.js";
|
|
11
|
-
import "./chunk-QOZXJ4NA.js";
|
|
12
|
-
import "./chunk-VRZP76YM.js";
|
|
13
|
-
import "./chunk-C34ZXZ7O.js";
|
|
14
|
-
import "./chunk-PHDMFAKM.js";
|
|
15
|
-
import "./chunk-2BBLFX75.js";
|
|
16
|
-
import "./chunk-XVF2VVXP.js";
|
|
17
|
-
import "./chunk-ZANLILYD.js";
|
|
18
|
-
import "./chunk-2EECBNC5.js";
|
|
19
|
-
import "./chunk-JAU72XNY.js";
|
|
20
|
-
import "./chunk-XTMJ7XDT.js";
|
|
21
|
-
import "./chunk-JMYYOTQG.js";
|
|
22
|
-
import "./chunk-QQNQ7SJW.js";
|
|
23
|
-
import "./chunk-AOHZU2BM.js";
|
|
24
|
-
import "./chunk-LJDODBBZ.js";
|
|
25
|
-
import "./chunk-ABBOA7UD.js";
|
|
26
|
-
import "./chunk-N2H3ZPZY.js";
|
|
27
|
-
import "./chunk-NXL4FFQQ.js";
|
|
28
|
-
export {
|
|
29
|
-
calcCyclomaticComplexity,
|
|
30
|
-
functionFactProvider
|
|
31
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { createRequire as __pilensCreateRequire } from "node:module"; const require = __pilensCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
stagePathFor
|
|
4
|
-
} from "./chunk-LJDODBBZ.js";
|
|
5
|
-
|
|
6
|
-
// dist/clients/gzip-stage-write.js
|
|
7
|
-
import * as fs from "node:fs";
|
|
8
|
-
import * as path from "node:path";
|
|
9
|
-
import { Readable } from "node:stream";
|
|
10
|
-
import { pipeline } from "node:stream/promises";
|
|
11
|
-
import { parentPort } from "node:worker_threads";
|
|
12
|
-
import { createGzip } from "node:zlib";
|
|
13
|
-
async function writeGzipStageFile(data, stagePath, testDelayMs, options) {
|
|
14
|
-
const startedAt = performance.now();
|
|
15
|
-
const tmpPath = stagePathFor(stagePath);
|
|
16
|
-
try {
|
|
17
|
-
if (testDelayMs) {
|
|
18
|
-
await new Promise((resolve) => setTimeout(resolve, testDelayMs));
|
|
19
|
-
}
|
|
20
|
-
const serializeStarted = performance.now();
|
|
21
|
-
const body = data instanceof Uint8Array ? data : JSON.stringify(data);
|
|
22
|
-
const serializeMs = performance.now() - serializeStarted;
|
|
23
|
-
const rawBytes = Buffer.byteLength(body);
|
|
24
|
-
const semanticFingerprint = options?.semanticFingerprint?.(body);
|
|
25
|
-
if (semanticFingerprint !== void 0 && options?.skipIfFingerprints?.includes(semanticFingerprint)) {
|
|
26
|
-
return {
|
|
27
|
-
rawBytes,
|
|
28
|
-
gzBytes: 0,
|
|
29
|
-
serializeMs,
|
|
30
|
-
writeMs: 0,
|
|
31
|
-
durationMs: performance.now() - startedAt,
|
|
32
|
-
semanticFingerprint,
|
|
33
|
-
skippedUnchanged: true
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
const writeStarted = performance.now();
|
|
37
|
-
await fs.promises.mkdir(path.dirname(stagePath), { recursive: true });
|
|
38
|
-
const chunks = function* () {
|
|
39
|
-
const chunkSize = 256 * 1024;
|
|
40
|
-
let offset = 0;
|
|
41
|
-
while (offset < body.length) {
|
|
42
|
-
let end = Math.min(offset + chunkSize, body.length);
|
|
43
|
-
if (typeof body === "string" && end < body.length) {
|
|
44
|
-
const last = body.charCodeAt(end - 1);
|
|
45
|
-
if (last >= 55296 && last <= 56319)
|
|
46
|
-
end--;
|
|
47
|
-
}
|
|
48
|
-
yield typeof body === "string" ? body.slice(offset, end) : body.subarray(offset, end);
|
|
49
|
-
offset = end;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
await pipeline(Readable.from(chunks()), createGzip(), fs.createWriteStream(tmpPath));
|
|
53
|
-
await fs.promises.rename(tmpPath, stagePath);
|
|
54
|
-
const writeMs = performance.now() - writeStarted;
|
|
55
|
-
const gzBytes = (await fs.promises.stat(stagePath)).size;
|
|
56
|
-
return {
|
|
57
|
-
rawBytes,
|
|
58
|
-
gzBytes,
|
|
59
|
-
serializeMs,
|
|
60
|
-
writeMs,
|
|
61
|
-
durationMs: performance.now() - startedAt,
|
|
62
|
-
semanticFingerprint
|
|
63
|
-
};
|
|
64
|
-
} catch (err) {
|
|
65
|
-
await fs.promises.rm(tmpPath, { force: true }).catch(() => {
|
|
66
|
-
});
|
|
67
|
-
throw err;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function serveGzipStageWorker(buildBaseResult, options) {
|
|
71
|
-
const port = parentPort;
|
|
72
|
-
if (!port) {
|
|
73
|
-
throw new Error("gzip stage persist worker requires a parent port");
|
|
74
|
-
}
|
|
75
|
-
port.on("message", (request) => {
|
|
76
|
-
void (async () => {
|
|
77
|
-
const result = {
|
|
78
|
-
...buildBaseResult(request)
|
|
79
|
-
};
|
|
80
|
-
try {
|
|
81
|
-
const fingerprint = options?.semanticFingerprint;
|
|
82
|
-
const metrics = await writeGzipStageFile(request.data, request.stagePath, request.testDelayMs, {
|
|
83
|
-
semanticFingerprint: fingerprint ? (body) => fingerprint(request, body) : void 0,
|
|
84
|
-
skipIfFingerprints: options?.skipIfFingerprints?.(request)
|
|
85
|
-
});
|
|
86
|
-
result.rawBytes = metrics.rawBytes;
|
|
87
|
-
result.gzBytes = metrics.gzBytes;
|
|
88
|
-
result.serializeMs = metrics.serializeMs;
|
|
89
|
-
result.writeMs = metrics.writeMs;
|
|
90
|
-
result.durationMs = metrics.durationMs;
|
|
91
|
-
result.semanticFingerprint = metrics.semanticFingerprint;
|
|
92
|
-
result.skippedUnchanged = metrics.skippedUnchanged;
|
|
93
|
-
} catch (err) {
|
|
94
|
-
result.error = err instanceof Error ? err.message : String(err);
|
|
95
|
-
}
|
|
96
|
-
port.postMessage(result);
|
|
97
|
-
})();
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
serveGzipStageWorker
|
|
103
|
-
};
|
|
File without changes
|