@introspection-ai/recipes 0.19.2 → 0.20.0
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/agents.d.ts +17 -1
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +15 -1
- package/dist/agents.js.map +1 -1
- package/dist/child-agent.d.ts +3 -1
- package/dist/child-agent.d.ts.map +1 -1
- package/dist/child-agent.js +1 -0
- package/dist/child-agent.js.map +1 -1
- package/dist/mcp-chunks/{auth-command-3K7V3VCW.js → auth-command-IQ4J332A.js} +26 -38
- package/dist/mcp-chunks/call-arguments-MCCBPJMY.js +15 -0
- package/dist/mcp-chunks/{call-command-OFPHPFM5.js → call-command-WPQ3MDOE.js} +74 -40
- package/dist/mcp-chunks/{chunk-LNSUME65.js → chunk-24FKKIXI.js} +29 -13
- package/dist/mcp-chunks/{chunk-HTZ2URXW.js → chunk-2CTVPSHF.js} +3 -3
- package/dist/mcp-chunks/{chunk-NCXEJ35U.js → chunk-3FB4ZJ4Z.js} +4 -4
- package/dist/mcp-chunks/{chunk-P3RN22HQ.js → chunk-3MIFROM7.js} +3 -2
- package/dist/mcp-chunks/{chunk-GFYTST6N.js → chunk-54UGGTOX.js} +1 -1
- package/dist/mcp-chunks/{chunk-L4VKBFYI.js → chunk-5HQYKAE7.js} +101 -16
- package/dist/mcp-chunks/{chunk-E6RVTWJY.js → chunk-5YBCGQA7.js} +1 -1
- package/dist/mcp-chunks/{chunk-6D6KPSXN.js → chunk-AJPFOQLF.js} +1 -1
- package/dist/mcp-chunks/{chunk-C2PQFLWS.js → chunk-B4XFULJ6.js} +15 -6
- package/dist/mcp-chunks/{chunk-HAO6PL7Z.js → chunk-DIIFWDZ7.js} +7 -7
- package/dist/mcp-chunks/{chunk-55JIHDU3.js → chunk-EEYUPDRX.js} +1 -1
- package/dist/mcp-chunks/{chunk-7A63PAGP.js → chunk-ETYYCEQF.js} +21 -5
- package/dist/mcp-chunks/{chunk-E6T37ED6.js → chunk-FNQV2ONG.js} +2 -2
- package/dist/mcp-chunks/{chunk-2JHHONW4.js → chunk-FW5QVG6V.js} +1 -1
- package/dist/mcp-chunks/{chunk-YCYSQA5V.js → chunk-FZ7K5EGL.js} +5 -5
- package/dist/mcp-chunks/{chunk-KSMY7PXI.js → chunk-G5C4WVDQ.js} +1 -1
- package/dist/mcp-chunks/{chunk-XRGLP3Z2.js → chunk-GPCLDF6U.js} +1 -1
- package/dist/mcp-chunks/{chunk-KSGYBW3F.js → chunk-GQHTGV5E.js} +72 -22
- package/dist/mcp-chunks/{chunk-64EP2BVO.js → chunk-HULRE4D2.js} +1 -1
- package/dist/mcp-chunks/{chunk-UENXT3NE.js → chunk-ILSK6AWI.js} +1 -1
- package/dist/mcp-chunks/{chunk-RBVYCKCD.js → chunk-ILULMM2E.js} +2 -2
- package/dist/mcp-chunks/{chunk-NZOIX6XW.js → chunk-ITJWLDF5.js} +2 -2
- package/dist/mcp-chunks/{chunk-XUF6KARU.js → chunk-IUFDFNNP.js} +1 -1
- package/dist/mcp-chunks/chunk-JJG2OEHI.js +12 -0
- package/dist/mcp-chunks/{chunk-YPJ5EHXR.js → chunk-K56RW4HB.js} +4 -4
- package/dist/mcp-chunks/{chunk-H7F5RZXS.js → chunk-KJ3CMHWS.js} +2 -1
- package/dist/mcp-chunks/{chunk-WXBPMFSN.js → chunk-LI4L4FOV.js} +91 -34
- package/dist/mcp-chunks/{chunk-ETWN4IIA.js → chunk-LYZRCACV.js} +6 -6
- package/dist/mcp-chunks/{chunk-ZBFZ5UFE.js → chunk-MDVNQ4HM.js} +3 -1
- package/dist/mcp-chunks/{chunk-3IZQW4H4.js → chunk-MNAVFYYV.js} +212 -18
- package/dist/mcp-chunks/{chunk-7DH57OKF.js → chunk-MWD5PZ4G.js} +2 -2
- package/dist/mcp-chunks/{chunk-YSPT6F7K.js → chunk-N2HVJU7X.js} +1 -1
- package/dist/mcp-chunks/{chunk-WWO5WGH5.js → chunk-NACLB5YH.js} +5 -5
- package/dist/mcp-chunks/{chunk-QJACOI2W.js → chunk-NMF5S5DC.js} +4 -2
- package/dist/mcp-chunks/{chunk-54EWGONA.js → chunk-NPU7EMGE.js} +10 -6
- package/dist/mcp-chunks/{chunk-SFREPU3D.js → chunk-NSZY5WLR.js} +1 -1
- package/dist/mcp-chunks/{chunk-7RDLPFIO.js → chunk-QK6LUI5Q.js} +2 -2
- package/dist/mcp-chunks/{chunk-XTL4MHFH.js → chunk-QONTHFPO.js} +11 -7
- package/dist/mcp-chunks/{chunk-YTKRAHO6.js → chunk-RDOD354S.js} +4 -4
- package/dist/mcp-chunks/{chunk-2MEHGB7D.js → chunk-RXSZ2W6Y.js} +1 -1
- package/dist/mcp-chunks/{chunk-UHOKCTZT.js → chunk-RYAUNXFA.js} +1 -1
- package/dist/mcp-chunks/{chunk-GIF7LOYU.js → chunk-SCD2NAX5.js} +2 -2
- package/dist/mcp-chunks/{chunk-F3LL4EBL.js → chunk-SHZVDY6Z.js} +1 -1
- package/dist/mcp-chunks/{chunk-CNDY7WB4.js → chunk-TAVMVGD5.js} +2 -2
- package/dist/mcp-chunks/{chunk-JAKI24KR.js → chunk-U23EY5DN.js} +1 -1
- package/dist/mcp-chunks/{chunk-SB2UUURE.js → chunk-UAIJZBGL.js} +10 -10
- package/dist/mcp-chunks/{chunk-PKOJCYNA.js → chunk-UDG3RHKX.js} +2 -2
- package/dist/mcp-chunks/{chunk-CA5WFJZA.js → chunk-VC6SKXTI.js} +1 -1
- package/dist/mcp-chunks/chunk-VJ2TSA5R.js +818 -0
- package/dist/mcp-chunks/{chunk-FWP4RACK.js → chunk-VREKED5H.js} +2 -2
- package/dist/mcp-chunks/{chunk-2FSDGCHW.js → chunk-WKUCIR2F.js} +374 -527
- package/dist/mcp-chunks/chunk-XRRT3SZM.js +1931 -0
- package/dist/mcp-chunks/{chunk-GSZOK5TS.js → chunk-YDJ7E2PH.js} +3 -3
- package/dist/mcp-chunks/{chunk-LICH4Q7A.js → chunk-ZI44YPFF.js} +4 -4
- package/dist/mcp-chunks/{chunk-DEUU7WSN.js → chunk-ZNKNF2BV.js} +2 -2
- package/dist/mcp-chunks/{chunk-DXPHJFSA.js → chunk-ZSKQI4TS.js} +4 -4
- package/dist/mcp-chunks/{cli-E4P6SZLQ.js → cli-Z7KV4PCE.js} +70 -69
- package/dist/mcp-chunks/client-B3FMQNGF.js +21 -0
- package/dist/mcp-chunks/{config-command-MWF3RHPQ.js → config-command-XXCDOB3M.js} +27 -27
- package/dist/mcp-chunks/daemon-command-BAREANTC.js +35 -0
- package/dist/mcp-chunks/{dist-ZIPUENTM.js → dist-V4UB7RTR.js} +547 -402
- package/dist/mcp-chunks/{emit-ts-command-GOVJJ64A.js → emit-ts-command-FEHTMXXB.js} +16 -16
- package/dist/mcp-chunks/{generate-cli-runner-L5OQIMEY.js → generate-cli-runner-OA6XL77R.js} +49 -42
- package/dist/mcp-chunks/{inspect-cli-command-7OMMREPE.js → inspect-cli-command-UQKKE5VO.js} +9 -9
- package/dist/mcp-chunks/{launch-BWXPLPB7.js → launch-KMPDJOUH.js} +1 -1
- package/dist/mcp-chunks/{lifecycle-B5UC65PT.js → lifecycle-R3IP22MJ.js} +1 -1
- package/dist/mcp-chunks/{list-command-ZO4HVFQK.js → list-command-7ENYKBF6.js} +31 -31
- package/dist/mcp-chunks/{output-utils-M3TJ2N4M.js → output-utils-N75TOWBX.js} +3 -3
- package/dist/mcp-chunks/{prompt-CH6TK0bC-C7OTKGRD.js → prompt-CH6TK0bC-NSBYYJZH.js} +1 -1
- package/dist/mcp-chunks/{record-command-VD3HUQIC.js → record-command-XHPCL7IG.js} +5 -5
- package/dist/mcp-chunks/{replay-command-AX6IN7YD.js → replay-command-CB56L3ZA.js} +6 -6
- package/dist/mcp-chunks/{resource-command-JEZ2DW2G.js → resource-command-STEBHVT7.js} +9 -9
- package/dist/mcp-chunks/{result-utils-3YHYGS45.js → result-utils-UONY2KNY.js} +3 -3
- package/dist/mcp-chunks/runtime-Z45IVD24.js +39 -0
- package/dist/mcp-chunks/{runtime-wrapper-UREU7GC3.js → runtime-wrapper-SYYAQVO6.js} +6 -6
- package/dist/mcp-chunks/{serve-command-M47YZ6JN.js → serve-command-VYSFRZFE.js} +35 -27
- package/dist/mcp-chunks/{timeouts-THZRYP4B.js → timeouts-T3JP3MUF.js} +5 -3
- package/dist/mcp-chunks/{vault-command-53P7MLCB.js → vault-command-AJ3X7GDI.js} +58 -12
- package/dist/mcp-chunks/{webapi-PHEQZQKH.js → webapi-BLTNWSB2.js} +68 -60
- package/dist/mcp-daemon.js +30 -28
- package/dist/mcp-run-worker.js +30 -28
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +2 -1
- package/dist/mcp.js.map +1 -1
- package/dist/pi-extension.d.ts +3 -0
- package/dist/pi-extension.d.ts.map +1 -1
- package/dist/pi-extension.js +27 -0
- package/dist/pi-extension.js.map +1 -1
- package/dist/run-controller.d.ts +3 -1
- package/dist/run-controller.d.ts.map +1 -1
- package/dist/run-controller.js +10 -0
- package/dist/run-controller.js.map +1 -1
- package/dist/session.d.ts +3 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +4 -1
- package/dist/session.js.map +1 -1
- package/docs/host-api.md +12 -0
- package/docs/pi-extension.md +10 -0
- package/package.json +11 -11
- package/vendor/introspection-recipe-check/win32-x64/introspection-recipe-check.exe +0 -0
- package/dist/mcp-chunks/call-arguments-TX3F2TEE.js +0 -15
- package/dist/mcp-chunks/chunk-SRZZQ6TL.js +0 -266
- package/dist/mcp-chunks/client-2EJC4PLL.js +0 -18
- package/dist/mcp-chunks/daemon-command-6CJ26MKI.js +0 -33
- package/dist/mcp-chunks/runtime-HSYVOME7.js +0 -37
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import "./chunk-LRKZP7DJ.js";
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
4
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/binding-CKyeQZen.mjs
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
var __create = Object.create;
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -93,94 +93,97 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
93
93
|
} catch (err) {
|
|
94
94
|
loadErrors.push(err);
|
|
95
95
|
}
|
|
96
|
-
else if (process.platform === "android")
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
96
|
+
else if (process.platform === "android") {
|
|
97
|
+
if (process.arch === "arm64") {
|
|
98
|
+
try {
|
|
99
|
+
return __require("./rolldown-binding.android-arm64.node");
|
|
100
|
+
} catch (e2) {
|
|
101
|
+
loadErrors.push(e2);
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
const binding = __require("@rolldown/binding-android-arm64");
|
|
105
|
+
const bindingPackageVersion = __require("@rolldown/binding-android-arm64/package.json").version;
|
|
106
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
107
|
+
return binding;
|
|
108
|
+
} catch (e2) {
|
|
109
|
+
loadErrors.push(e2);
|
|
110
|
+
}
|
|
111
|
+
} else if (process.arch === "arm") {
|
|
112
|
+
try {
|
|
113
|
+
return __require("./rolldown-binding.android-arm-eabi.node");
|
|
114
|
+
} catch (e2) {
|
|
115
|
+
loadErrors.push(e2);
|
|
116
|
+
}
|
|
117
|
+
try {
|
|
118
|
+
const binding = __require("@rolldown/binding-android-arm-eabi");
|
|
119
|
+
const bindingPackageVersion = __require("@rolldown/binding-android-arm-eabi/package.json").version;
|
|
120
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
121
|
+
return binding;
|
|
122
|
+
} catch (e2) {
|
|
123
|
+
loadErrors.push(e2);
|
|
124
|
+
}
|
|
125
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
|
|
126
|
+
} else if (process.platform === "win32") {
|
|
127
|
+
if (process.arch === "x64") {
|
|
128
|
+
if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
|
|
129
|
+
try {
|
|
130
|
+
return __require("./rolldown-binding.win32-x64-gnu.node");
|
|
131
|
+
} catch (e2) {
|
|
132
|
+
loadErrors.push(e2);
|
|
133
|
+
}
|
|
134
|
+
try {
|
|
135
|
+
const binding = __require("@rolldown/binding-win32-x64-gnu");
|
|
136
|
+
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-gnu/package.json").version;
|
|
137
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
138
|
+
return binding;
|
|
139
|
+
} catch (e2) {
|
|
140
|
+
loadErrors.push(e2);
|
|
141
|
+
}
|
|
142
|
+
} else {
|
|
143
|
+
try {
|
|
144
|
+
return __require("./rolldown-binding.win32-x64-msvc.node");
|
|
145
|
+
} catch (e2) {
|
|
146
|
+
loadErrors.push(e2);
|
|
147
|
+
}
|
|
148
|
+
try {
|
|
149
|
+
const binding = __require("@rolldown/binding-win32-x64-msvc");
|
|
150
|
+
const bindingPackageVersion = __require("@rolldown/binding-win32-x64-msvc/package.json").version;
|
|
151
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
152
|
+
return binding;
|
|
153
|
+
} catch (e2) {
|
|
154
|
+
loadErrors.push(e2);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
} else if (process.arch === "ia32") {
|
|
158
|
+
try {
|
|
159
|
+
return __require("./rolldown-binding.win32-ia32-msvc.node");
|
|
160
|
+
} catch (e2) {
|
|
161
|
+
loadErrors.push(e2);
|
|
162
|
+
}
|
|
163
|
+
try {
|
|
164
|
+
const binding = __require("@rolldown/binding-win32-ia32-msvc");
|
|
165
|
+
const bindingPackageVersion = __require("@rolldown/binding-win32-ia32-msvc/package.json").version;
|
|
166
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
167
|
+
return binding;
|
|
168
|
+
} catch (e2) {
|
|
169
|
+
loadErrors.push(e2);
|
|
170
|
+
}
|
|
171
|
+
} else if (process.arch === "arm64") {
|
|
172
|
+
try {
|
|
173
|
+
return __require("./rolldown-binding.win32-arm64-msvc.node");
|
|
174
|
+
} catch (e2) {
|
|
175
|
+
loadErrors.push(e2);
|
|
176
|
+
}
|
|
177
|
+
try {
|
|
178
|
+
const binding = __require("@rolldown/binding-win32-arm64-msvc");
|
|
179
|
+
const bindingPackageVersion = __require("@rolldown/binding-win32-arm64-msvc/package.json").version;
|
|
180
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
181
|
+
return binding;
|
|
182
|
+
} catch (e2) {
|
|
183
|
+
loadErrors.push(e2);
|
|
184
|
+
}
|
|
185
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Windows: ${process.arch}`));
|
|
186
|
+
} else if (process.platform === "darwin") {
|
|
184
187
|
try {
|
|
185
188
|
return __require("./rolldown-binding.darwin-universal.node");
|
|
186
189
|
} catch (e2) {
|
|
@@ -189,7 +192,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
189
192
|
try {
|
|
190
193
|
const binding = __require("@rolldown/binding-darwin-universal");
|
|
191
194
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-universal/package.json").version;
|
|
192
|
-
if (bindingPackageVersion !== "1.2.
|
|
195
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
193
196
|
return binding;
|
|
194
197
|
} catch (e2) {
|
|
195
198
|
loadErrors.push(e2);
|
|
@@ -203,7 +206,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
203
206
|
try {
|
|
204
207
|
const binding = __require("@rolldown/binding-darwin-x64");
|
|
205
208
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-x64/package.json").version;
|
|
206
|
-
if (bindingPackageVersion !== "1.2.
|
|
209
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
207
210
|
return binding;
|
|
208
211
|
} catch (e2) {
|
|
209
212
|
loadErrors.push(e2);
|
|
@@ -217,259 +220,267 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
217
220
|
try {
|
|
218
221
|
const binding = __require("@rolldown/binding-darwin-arm64");
|
|
219
222
|
const bindingPackageVersion = __require("@rolldown/binding-darwin-arm64/package.json").version;
|
|
220
|
-
if (bindingPackageVersion !== "1.2.
|
|
223
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
221
224
|
return binding;
|
|
222
225
|
} catch (e2) {
|
|
223
226
|
loadErrors.push(e2);
|
|
224
227
|
}
|
|
225
228
|
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on macOS: ${process.arch}`));
|
|
226
|
-
} else if (process.platform === "freebsd")
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
229
|
+
} else if (process.platform === "freebsd") {
|
|
230
|
+
if (process.arch === "x64") {
|
|
231
|
+
try {
|
|
232
|
+
return __require("./rolldown-binding.freebsd-x64.node");
|
|
233
|
+
} catch (e2) {
|
|
234
|
+
loadErrors.push(e2);
|
|
235
|
+
}
|
|
236
|
+
try {
|
|
237
|
+
const binding = __require("@rolldown/binding-freebsd-x64");
|
|
238
|
+
const bindingPackageVersion = __require("@rolldown/binding-freebsd-x64/package.json").version;
|
|
239
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
240
|
+
return binding;
|
|
241
|
+
} catch (e2) {
|
|
242
|
+
loadErrors.push(e2);
|
|
243
|
+
}
|
|
244
|
+
} else if (process.arch === "arm64") {
|
|
245
|
+
try {
|
|
246
|
+
return __require("./rolldown-binding.freebsd-arm64.node");
|
|
247
|
+
} catch (e2) {
|
|
248
|
+
loadErrors.push(e2);
|
|
249
|
+
}
|
|
250
|
+
try {
|
|
251
|
+
const binding = __require("@rolldown/binding-freebsd-arm64");
|
|
252
|
+
const bindingPackageVersion = __require("@rolldown/binding-freebsd-arm64/package.json").version;
|
|
253
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
254
|
+
return binding;
|
|
255
|
+
} catch (e2) {
|
|
256
|
+
loadErrors.push(e2);
|
|
257
|
+
}
|
|
258
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
|
|
259
|
+
} else if (process.platform === "linux") {
|
|
260
|
+
if (process.arch === "x64") {
|
|
261
|
+
if (isMusl()) {
|
|
262
|
+
try {
|
|
263
|
+
return __require("./rolldown-binding.linux-x64-musl.node");
|
|
264
|
+
} catch (e2) {
|
|
265
|
+
loadErrors.push(e2);
|
|
266
|
+
}
|
|
267
|
+
try {
|
|
268
|
+
const binding = __require("@rolldown/binding-linux-x64-musl");
|
|
269
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-musl/package.json").version;
|
|
270
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
271
|
+
return binding;
|
|
272
|
+
} catch (e2) {
|
|
273
|
+
loadErrors.push(e2);
|
|
274
|
+
}
|
|
275
|
+
} else {
|
|
276
|
+
try {
|
|
277
|
+
return __require("../rolldown-binding.linux-x64-gnu.node");
|
|
278
|
+
} catch (e2) {
|
|
279
|
+
loadErrors.push(e2);
|
|
280
|
+
}
|
|
281
|
+
try {
|
|
282
|
+
const binding = __require("@rolldown/binding-linux-x64-gnu");
|
|
283
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-x64-gnu/package.json").version;
|
|
284
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
285
|
+
return binding;
|
|
286
|
+
} catch (e2) {
|
|
287
|
+
loadErrors.push(e2);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
} else if (process.arch === "arm64") {
|
|
291
|
+
if (isMusl()) {
|
|
292
|
+
try {
|
|
293
|
+
return __require("./rolldown-binding.linux-arm64-musl.node");
|
|
294
|
+
} catch (e2) {
|
|
295
|
+
loadErrors.push(e2);
|
|
296
|
+
}
|
|
297
|
+
try {
|
|
298
|
+
const binding = __require("@rolldown/binding-linux-arm64-musl");
|
|
299
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-musl/package.json").version;
|
|
300
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
301
|
+
return binding;
|
|
302
|
+
} catch (e2) {
|
|
303
|
+
loadErrors.push(e2);
|
|
304
|
+
}
|
|
305
|
+
} else {
|
|
306
|
+
try {
|
|
307
|
+
return __require("./rolldown-binding.linux-arm64-gnu.node");
|
|
308
|
+
} catch (e2) {
|
|
309
|
+
loadErrors.push(e2);
|
|
310
|
+
}
|
|
311
|
+
try {
|
|
312
|
+
const binding = __require("@rolldown/binding-linux-arm64-gnu");
|
|
313
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-arm64-gnu/package.json").version;
|
|
314
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
315
|
+
return binding;
|
|
316
|
+
} catch (e2) {
|
|
317
|
+
loadErrors.push(e2);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
} else if (process.arch === "arm") {
|
|
321
|
+
if (isMusl()) {
|
|
322
|
+
try {
|
|
323
|
+
return __require("./rolldown-binding.linux-arm-musleabihf.node");
|
|
324
|
+
} catch (e2) {
|
|
325
|
+
loadErrors.push(e2);
|
|
326
|
+
}
|
|
327
|
+
try {
|
|
328
|
+
const binding = __require("@rolldown/binding-linux-arm-musleabihf");
|
|
329
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-musleabihf/package.json").version;
|
|
330
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
331
|
+
return binding;
|
|
332
|
+
} catch (e2) {
|
|
333
|
+
loadErrors.push(e2);
|
|
334
|
+
}
|
|
335
|
+
} else {
|
|
336
|
+
try {
|
|
337
|
+
return __require("./rolldown-binding.linux-arm-gnueabihf.node");
|
|
338
|
+
} catch (e2) {
|
|
339
|
+
loadErrors.push(e2);
|
|
340
|
+
}
|
|
341
|
+
try {
|
|
342
|
+
const binding = __require("@rolldown/binding-linux-arm-gnueabihf");
|
|
343
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-arm-gnueabihf/package.json").version;
|
|
344
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
345
|
+
return binding;
|
|
346
|
+
} catch (e2) {
|
|
347
|
+
loadErrors.push(e2);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
} else if (process.arch === "loong64") {
|
|
351
|
+
if (isMusl()) {
|
|
352
|
+
try {
|
|
353
|
+
return __require("./rolldown-binding.linux-loong64-musl.node");
|
|
354
|
+
} catch (e2) {
|
|
355
|
+
loadErrors.push(e2);
|
|
356
|
+
}
|
|
357
|
+
try {
|
|
358
|
+
const binding = __require("@rolldown/binding-linux-loong64-musl");
|
|
359
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-musl/package.json").version;
|
|
360
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
361
|
+
return binding;
|
|
362
|
+
} catch (e2) {
|
|
363
|
+
loadErrors.push(e2);
|
|
364
|
+
}
|
|
365
|
+
} else {
|
|
366
|
+
try {
|
|
367
|
+
return __require("./rolldown-binding.linux-loong64-gnu.node");
|
|
368
|
+
} catch (e2) {
|
|
369
|
+
loadErrors.push(e2);
|
|
370
|
+
}
|
|
371
|
+
try {
|
|
372
|
+
const binding = __require("@rolldown/binding-linux-loong64-gnu");
|
|
373
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-loong64-gnu/package.json").version;
|
|
374
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
375
|
+
return binding;
|
|
376
|
+
} catch (e2) {
|
|
377
|
+
loadErrors.push(e2);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
} else if (process.arch === "riscv64") {
|
|
381
|
+
if (isMusl()) {
|
|
382
|
+
try {
|
|
383
|
+
return __require("./rolldown-binding.linux-riscv64-musl.node");
|
|
384
|
+
} catch (e2) {
|
|
385
|
+
loadErrors.push(e2);
|
|
386
|
+
}
|
|
387
|
+
try {
|
|
388
|
+
const binding = __require("@rolldown/binding-linux-riscv64-musl");
|
|
389
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-musl/package.json").version;
|
|
390
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
391
|
+
return binding;
|
|
392
|
+
} catch (e2) {
|
|
393
|
+
loadErrors.push(e2);
|
|
394
|
+
}
|
|
395
|
+
} else {
|
|
396
|
+
try {
|
|
397
|
+
return __require("./rolldown-binding.linux-riscv64-gnu.node");
|
|
398
|
+
} catch (e2) {
|
|
399
|
+
loadErrors.push(e2);
|
|
400
|
+
}
|
|
401
|
+
try {
|
|
402
|
+
const binding = __require("@rolldown/binding-linux-riscv64-gnu");
|
|
403
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-riscv64-gnu/package.json").version;
|
|
404
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
405
|
+
return binding;
|
|
406
|
+
} catch (e2) {
|
|
407
|
+
loadErrors.push(e2);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
} else if (process.arch === "ppc64") {
|
|
411
|
+
try {
|
|
412
|
+
return __require("./rolldown-binding.linux-ppc64-gnu.node");
|
|
413
|
+
} catch (e2) {
|
|
414
|
+
loadErrors.push(e2);
|
|
415
|
+
}
|
|
416
|
+
try {
|
|
417
|
+
const binding = __require("@rolldown/binding-linux-ppc64-gnu");
|
|
418
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-ppc64-gnu/package.json").version;
|
|
419
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
420
|
+
return binding;
|
|
421
|
+
} catch (e2) {
|
|
422
|
+
loadErrors.push(e2);
|
|
423
|
+
}
|
|
424
|
+
} else if (process.arch === "s390x") {
|
|
425
|
+
try {
|
|
426
|
+
return __require("./rolldown-binding.linux-s390x-gnu.node");
|
|
427
|
+
} catch (e2) {
|
|
428
|
+
loadErrors.push(e2);
|
|
429
|
+
}
|
|
430
|
+
try {
|
|
431
|
+
const binding = __require("@rolldown/binding-linux-s390x-gnu");
|
|
432
|
+
const bindingPackageVersion = __require("@rolldown/binding-linux-s390x-gnu/package.json").version;
|
|
433
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
434
|
+
return binding;
|
|
435
|
+
} catch (e2) {
|
|
436
|
+
loadErrors.push(e2);
|
|
437
|
+
}
|
|
438
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Linux: ${process.arch}`));
|
|
439
|
+
} else if (process.platform === "openharmony") {
|
|
440
|
+
if (process.arch === "arm64") {
|
|
441
|
+
try {
|
|
442
|
+
return __require("./rolldown-binding.openharmony-arm64.node");
|
|
443
|
+
} catch (e2) {
|
|
444
|
+
loadErrors.push(e2);
|
|
445
|
+
}
|
|
446
|
+
try {
|
|
447
|
+
const binding = __require("@rolldown/binding-openharmony-arm64");
|
|
448
|
+
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm64/package.json").version;
|
|
449
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
450
|
+
return binding;
|
|
451
|
+
} catch (e2) {
|
|
452
|
+
loadErrors.push(e2);
|
|
453
|
+
}
|
|
454
|
+
} else if (process.arch === "x64") {
|
|
455
|
+
try {
|
|
456
|
+
return __require("./rolldown-binding.openharmony-x64.node");
|
|
457
|
+
} catch (e2) {
|
|
458
|
+
loadErrors.push(e2);
|
|
459
|
+
}
|
|
460
|
+
try {
|
|
461
|
+
const binding = __require("@rolldown/binding-openharmony-x64");
|
|
462
|
+
const bindingPackageVersion = __require("@rolldown/binding-openharmony-x64/package.json").version;
|
|
463
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
464
|
+
return binding;
|
|
465
|
+
} catch (e2) {
|
|
466
|
+
loadErrors.push(e2);
|
|
467
|
+
}
|
|
468
|
+
} else if (process.arch === "arm") {
|
|
469
|
+
try {
|
|
470
|
+
return __require("./rolldown-binding.openharmony-arm.node");
|
|
471
|
+
} catch (e2) {
|
|
472
|
+
loadErrors.push(e2);
|
|
473
|
+
}
|
|
474
|
+
try {
|
|
475
|
+
const binding = __require("@rolldown/binding-openharmony-arm");
|
|
476
|
+
const bindingPackageVersion = __require("@rolldown/binding-openharmony-arm/package.json").version;
|
|
477
|
+
if (bindingPackageVersion !== "1.2.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
478
|
+
return binding;
|
|
479
|
+
} catch (e2) {
|
|
480
|
+
loadErrors.push(e2);
|
|
481
|
+
}
|
|
482
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
|
|
483
|
+
} else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
|
|
473
484
|
}
|
|
474
485
|
function createLoadErrorChain(errors) {
|
|
475
486
|
return errors.reduce((previous, current) => {
|
|
@@ -553,7 +564,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
553
564
|
if (!candidateFailed) {
|
|
554
565
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
|
|
555
566
|
const bindingPackageVersion = __require("@rolldown/binding-wasm32-wasi/package.json").version;
|
|
556
|
-
if (bindingPackageVersion !== "1.2.
|
|
567
|
+
if (bindingPackageVersion !== "1.2.3") throw new Error(`WASI binding package version mismatch, expected 1.2.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
557
568
|
}
|
|
558
569
|
wasiBinding = __require("@rolldown/binding-wasm32-wasi");
|
|
559
570
|
nativeBinding = wasiBinding;
|
|
@@ -658,7 +669,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
658
669
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
659
670
|
}));
|
|
660
671
|
|
|
661
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
672
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/logs-DmYCAKcW.mjs
|
|
662
673
|
function spaces(index) {
|
|
663
674
|
let result = "";
|
|
664
675
|
while (index--) result += " ";
|
|
@@ -826,7 +837,7 @@ function augmentCodeLocation(properties, pos, source, id2) {
|
|
|
826
837
|
}
|
|
827
838
|
}
|
|
828
839
|
|
|
829
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
840
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/normalize-string-or-regex-DYjJ67tj.mjs
|
|
830
841
|
var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
831
842
|
var BuiltinPlugin = class {
|
|
832
843
|
name;
|
|
@@ -865,7 +876,7 @@ function isReadonlyArray(input) {
|
|
|
865
876
|
return Array.isArray(input);
|
|
866
877
|
}
|
|
867
878
|
|
|
868
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
879
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/misc-DOSKtd97.mjs
|
|
869
880
|
function arraify(value) {
|
|
870
881
|
return Array.isArray(value) ? value : [value];
|
|
871
882
|
}
|
|
@@ -887,7 +898,7 @@ function isPathFragment(name) {
|
|
|
887
898
|
return name[0] === "/" || name[0] === "." && (name[1] === "/" || name[1] === ".") || ABSOLUTE_PATH_REGEX.test(name);
|
|
888
899
|
}
|
|
889
900
|
|
|
890
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
901
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/error-BzLGqhSQ.mjs
|
|
891
902
|
function bindingifySourcemap(map) {
|
|
892
903
|
if (map == null) return;
|
|
893
904
|
return { inner: typeof map === "string" ? map : {
|
|
@@ -967,7 +978,7 @@ function joinNewLine(s1, s2) {
|
|
|
967
978
|
return s1.replace(/\n+$/, "") + "\n" + s2.replace(/^\n+/, "");
|
|
968
979
|
}
|
|
969
980
|
|
|
970
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
981
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/parse-CWXBoSKb.mjs
|
|
971
982
|
var import_binding2 = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
972
983
|
function wrap(result) {
|
|
973
984
|
let program, module, comments, errors;
|
|
@@ -1008,7 +1019,7 @@ function parseSync(filename, sourceText, options) {
|
|
|
1008
1019
|
return wrap((0, import_binding2.parseSync)(filename, sourceText, options));
|
|
1009
1020
|
}
|
|
1010
1021
|
|
|
1011
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
1022
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/parse-ast-index.mjs
|
|
1012
1023
|
function wrap2(result, filename, sourceText) {
|
|
1013
1024
|
if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
|
|
1014
1025
|
return result.program;
|
|
@@ -1044,7 +1055,7 @@ function parseAst(sourceText, options, filename) {
|
|
|
1044
1055
|
}), filename, sourceText);
|
|
1045
1056
|
}
|
|
1046
1057
|
|
|
1047
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
1058
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/bindingify-input-options-CMab5gbt.mjs
|
|
1048
1059
|
import fs from "node:fs";
|
|
1049
1060
|
import path from "node:path";
|
|
1050
1061
|
|
|
@@ -1131,10 +1142,10 @@ function exclude(expr) {
|
|
|
1131
1142
|
return new Exclude(expr);
|
|
1132
1143
|
}
|
|
1133
1144
|
|
|
1134
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
1145
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/bindingify-input-options-CMab5gbt.mjs
|
|
1135
1146
|
import fsp from "node:fs/promises";
|
|
1136
1147
|
import { fileURLToPath } from "node:url";
|
|
1137
|
-
var version = "1.2.
|
|
1148
|
+
var version = "1.2.3";
|
|
1138
1149
|
var VERSION = version;
|
|
1139
1150
|
var LOG_LEVEL_SILENT = "silent";
|
|
1140
1151
|
var LOG_LEVEL_WARN = "warn";
|
|
@@ -2761,7 +2772,125 @@ function extractHookUsage(plugin) {
|
|
|
2761
2772
|
if (plugin.hotUpdate) hookUsage.union(4194304);
|
|
2762
2773
|
return hookUsage;
|
|
2763
2774
|
}
|
|
2764
|
-
|
|
2775
|
+
var OVERLAP_TOLERANCE = 0.01;
|
|
2776
|
+
var recorders = /* @__PURE__ */ new WeakMap();
|
|
2777
|
+
function pluginTimingsRecorderFor(key) {
|
|
2778
|
+
let recorder = recorders.get(key);
|
|
2779
|
+
if (recorder === void 0) {
|
|
2780
|
+
recorder = {
|
|
2781
|
+
costs: /* @__PURE__ */ new Map(),
|
|
2782
|
+
busyMs: 0,
|
|
2783
|
+
inFlight: 0,
|
|
2784
|
+
busyStart: 0
|
|
2785
|
+
};
|
|
2786
|
+
recorders.set(key, recorder);
|
|
2787
|
+
}
|
|
2788
|
+
return recorder;
|
|
2789
|
+
}
|
|
2790
|
+
function costFor(recorder, owner, hookName) {
|
|
2791
|
+
let byHook = recorder.costs.get(owner.key);
|
|
2792
|
+
if (byHook === void 0) {
|
|
2793
|
+
byHook = /* @__PURE__ */ new Map();
|
|
2794
|
+
recorder.costs.set(owner.key, byHook);
|
|
2795
|
+
}
|
|
2796
|
+
let cost = byHook.get(hookName);
|
|
2797
|
+
if (cost === void 0) {
|
|
2798
|
+
cost = {
|
|
2799
|
+
owner: owner.name,
|
|
2800
|
+
kind: owner.kind,
|
|
2801
|
+
hookName,
|
|
2802
|
+
calls: 0,
|
|
2803
|
+
ms: 0,
|
|
2804
|
+
inFlight: 0,
|
|
2805
|
+
maxInFlight: 0,
|
|
2806
|
+
overlapMs: 0,
|
|
2807
|
+
lastChange: 0
|
|
2808
|
+
};
|
|
2809
|
+
byHook.set(hookName, cost);
|
|
2810
|
+
}
|
|
2811
|
+
return cost;
|
|
2812
|
+
}
|
|
2813
|
+
function markInFlightChange(cost, at) {
|
|
2814
|
+
if (cost.inFlight > 1) cost.overlapMs += (cost.inFlight - 1) * (at - cost.lastChange);
|
|
2815
|
+
cost.lastChange = at;
|
|
2816
|
+
}
|
|
2817
|
+
function settle(recorder, cost, started) {
|
|
2818
|
+
const ended = performance.now();
|
|
2819
|
+
markInFlightChange(cost, ended);
|
|
2820
|
+
cost.inFlight -= 1;
|
|
2821
|
+
cost.ms += ended - started;
|
|
2822
|
+
recorder.inFlight -= 1;
|
|
2823
|
+
if (recorder.inFlight === 0) recorder.busyMs += ended - recorder.busyStart;
|
|
2824
|
+
}
|
|
2825
|
+
function measureHookCost(recorder, owner, hookName, handler) {
|
|
2826
|
+
if (recorder === void 0) return handler;
|
|
2827
|
+
const cost = costFor(recorder, owner, hookName);
|
|
2828
|
+
return function(...args2) {
|
|
2829
|
+
const started = performance.now();
|
|
2830
|
+
markInFlightChange(cost, started);
|
|
2831
|
+
cost.calls += 1;
|
|
2832
|
+
cost.inFlight += 1;
|
|
2833
|
+
if (cost.inFlight > cost.maxInFlight) cost.maxInFlight = cost.inFlight;
|
|
2834
|
+
if (recorder.inFlight === 0) recorder.busyStart = started;
|
|
2835
|
+
recorder.inFlight += 1;
|
|
2836
|
+
let result;
|
|
2837
|
+
try {
|
|
2838
|
+
result = handler.apply(this, args2);
|
|
2839
|
+
} catch (error2) {
|
|
2840
|
+
settle(recorder, cost, started);
|
|
2841
|
+
throw error2;
|
|
2842
|
+
}
|
|
2843
|
+
if (typeof result?.then === "function") return result.then((value) => {
|
|
2844
|
+
settle(recorder, cost, started);
|
|
2845
|
+
return value;
|
|
2846
|
+
}, (error2) => {
|
|
2847
|
+
settle(recorder, cost, started);
|
|
2848
|
+
throw error2;
|
|
2849
|
+
});
|
|
2850
|
+
settle(recorder, cost, started);
|
|
2851
|
+
return result;
|
|
2852
|
+
};
|
|
2853
|
+
}
|
|
2854
|
+
var OUTPUT_OPTIONS_OWNER = {
|
|
2855
|
+
key: /* @__PURE__ */ Symbol("output options"),
|
|
2856
|
+
name: "output options",
|
|
2857
|
+
kind: "outputOption"
|
|
2858
|
+
};
|
|
2859
|
+
var INPUT_OPTIONS_OWNER = {
|
|
2860
|
+
key: /* @__PURE__ */ Symbol("input options"),
|
|
2861
|
+
name: "input options",
|
|
2862
|
+
kind: "inputOption"
|
|
2863
|
+
};
|
|
2864
|
+
function measureIfFunction(recorder, owner, hookName, value) {
|
|
2865
|
+
if (typeof value !== "function") return value;
|
|
2866
|
+
return measureHookCost(recorder, owner, hookName, value);
|
|
2867
|
+
}
|
|
2868
|
+
function summarizePluginTimings(key) {
|
|
2869
|
+
const recorder = recorders.get(key);
|
|
2870
|
+
if (recorder === void 0) return {
|
|
2871
|
+
busyMs: 0,
|
|
2872
|
+
rows: []
|
|
2873
|
+
};
|
|
2874
|
+
const rows = [];
|
|
2875
|
+
for (const byHook of recorder.costs.values()) for (const cost of byHook.values()) {
|
|
2876
|
+
if (cost.calls === 0) continue;
|
|
2877
|
+
rows.push({
|
|
2878
|
+
owner: cost.owner,
|
|
2879
|
+
kind: cost.kind,
|
|
2880
|
+
hook: cost.hookName,
|
|
2881
|
+
calls: cost.calls,
|
|
2882
|
+
ms: cost.ms,
|
|
2883
|
+
maxInFlight: cost.maxInFlight,
|
|
2884
|
+
overlapMs: cost.overlapMs,
|
|
2885
|
+
rankable: cost.overlapMs <= cost.ms * OVERLAP_TOLERANCE
|
|
2886
|
+
});
|
|
2887
|
+
}
|
|
2888
|
+
return {
|
|
2889
|
+
busyMs: recorder.busyMs,
|
|
2890
|
+
rows
|
|
2891
|
+
};
|
|
2892
|
+
}
|
|
2893
|
+
function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode, timings) {
|
|
2765
2894
|
const args2 = {
|
|
2766
2895
|
plugin,
|
|
2767
2896
|
options,
|
|
@@ -2795,7 +2924,7 @@ function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, nor
|
|
|
2795
2924
|
const { plugin: hotUpdate, meta: hotUpdateMeta } = bindingifyHotUpdate(args2);
|
|
2796
2925
|
const { plugin: closeWatcher, meta: closeWatcherMeta } = bindingifyCloseWatcher(args2);
|
|
2797
2926
|
let hookUsage = extractHookUsage(plugin).inner();
|
|
2798
|
-
|
|
2927
|
+
const result = {
|
|
2799
2928
|
name: plugin.name,
|
|
2800
2929
|
buildStart,
|
|
2801
2930
|
buildStartMeta,
|
|
@@ -2846,9 +2975,14 @@ function bindingifyPlugin(plugin, options, outputOptions, pluginContextData, nor
|
|
|
2846
2975
|
closeWatcher,
|
|
2847
2976
|
closeWatcherMeta,
|
|
2848
2977
|
hookUsage
|
|
2849
|
-
}
|
|
2978
|
+
};
|
|
2979
|
+
return wrapHandlers(result, {
|
|
2980
|
+
key: plugin,
|
|
2981
|
+
name: result.name,
|
|
2982
|
+
kind: "plugin"
|
|
2983
|
+
}, timings);
|
|
2850
2984
|
}
|
|
2851
|
-
function wrapHandlers(plugin) {
|
|
2985
|
+
function wrapHandlers(plugin, owner, timings) {
|
|
2852
2986
|
for (const hookName of [
|
|
2853
2987
|
"buildStart",
|
|
2854
2988
|
"resolveId",
|
|
@@ -2873,7 +3007,8 @@ function wrapHandlers(plugin) {
|
|
|
2873
3007
|
"hotUpdate",
|
|
2874
3008
|
"closeWatcher"
|
|
2875
3009
|
]) {
|
|
2876
|
-
const
|
|
3010
|
+
const raw = plugin[hookName];
|
|
3011
|
+
const handler = raw && measureHookCost(timings, owner, hookName, raw);
|
|
2877
3012
|
if (handler) plugin[hookName] = async (...args2) => {
|
|
2878
3013
|
try {
|
|
2879
3014
|
return await handler(...args2);
|
|
@@ -2908,13 +3043,13 @@ function normalizeTransformOptions(inputOptions) {
|
|
|
2908
3043
|
};
|
|
2909
3044
|
}
|
|
2910
3045
|
function getDefaultDevRuntime(host = "localhost", port = 3e3) {
|
|
2911
|
-
const runtimeEntry = fs.readFileSync(fileURLToPath(import.meta.resolve("
|
|
3046
|
+
const runtimeEntry = fs.readFileSync(fileURLToPath(import.meta.resolve("#runtime")), "utf8");
|
|
2912
3047
|
const runtimeHelperImportEnd = runtimeEntry.indexOf("\n");
|
|
2913
3048
|
if (!runtimeEntry.startsWith("import ") || runtimeHelperImportEnd === -1) throw new Error("Expected the standalone runtime to start with a helper import");
|
|
2914
3049
|
return `${runtimeEntry.slice(runtimeHelperImportEnd + 1)}
|
|
2915
3050
|
${fs.readFileSync(fileURLToPath(import.meta.resolve("#default-runtime")), "utf8").replaceAll("$ADDR", `${host}:${port}`)}`;
|
|
2916
3051
|
}
|
|
2917
|
-
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode) {
|
|
3052
|
+
function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode, timings) {
|
|
2918
3053
|
const plugins = rawPlugins.map((plugin) => {
|
|
2919
3054
|
if (getParallelPluginInfo(plugin)) return;
|
|
2920
3055
|
if (plugin instanceof BuiltinPlugin) switch (plugin.name) {
|
|
@@ -2923,20 +3058,20 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, pluginC
|
|
|
2923
3058
|
default:
|
|
2924
3059
|
return bindingifyBuiltInPlugin(plugin);
|
|
2925
3060
|
}
|
|
2926
|
-
return bindingifyPlugin(plugin, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode);
|
|
3061
|
+
return bindingifyPlugin(plugin, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode, timings);
|
|
2927
3062
|
});
|
|
2928
3063
|
const normalizedTransform = normalizeTransformOptions(inputOptions);
|
|
2929
3064
|
return {
|
|
2930
3065
|
input: bindingifyInput(inputOptions.input),
|
|
2931
3066
|
plugins,
|
|
2932
3067
|
cwd: inputOptions.cwd ?? process.cwd(),
|
|
2933
|
-
external: bindingifyExternal(inputOptions.external),
|
|
3068
|
+
external: bindingifyExternal(inputOptions.external, timings),
|
|
2934
3069
|
resolve: bindingifyResolve(inputOptions.resolve),
|
|
2935
3070
|
platform: inputOptions.platform,
|
|
2936
3071
|
shimMissingExports: inputOptions.shimMissingExports,
|
|
2937
3072
|
logLevel: bindingifyLogLevel(logLevel),
|
|
2938
3073
|
onLog,
|
|
2939
|
-
treeshake: bindingifyTreeshakeOptions(inputOptions.treeshake),
|
|
3074
|
+
treeshake: bindingifyTreeshakeOptions(inputOptions.treeshake, timings),
|
|
2940
3075
|
moduleTypes: inputOptions.moduleTypes,
|
|
2941
3076
|
define: normalizedTransform.define,
|
|
2942
3077
|
inject: bindingifyInject(normalizedTransform.inject),
|
|
@@ -2947,6 +3082,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, pluginC
|
|
|
2947
3082
|
dropLabels: normalizedTransform.dropLabels,
|
|
2948
3083
|
keepNames: outputOptions.keepNames,
|
|
2949
3084
|
checks: inputOptions.checks,
|
|
3085
|
+
pluginTimings: timings ? () => summarizePluginTimings(inputOptions) : void 0,
|
|
2950
3086
|
deferSyncScanData: () => {
|
|
2951
3087
|
let ret = [];
|
|
2952
3088
|
pluginContextData.moduleOptionMap.forEach((value, key) => {
|
|
@@ -2992,12 +3128,15 @@ function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
|
2992
3128
|
return import_binding3.BindingAttachDebugInfo.None;
|
|
2993
3129
|
}
|
|
2994
3130
|
}
|
|
2995
|
-
function bindingifyExternal(external) {
|
|
3131
|
+
function bindingifyExternal(external, timings) {
|
|
2996
3132
|
if (external) {
|
|
2997
|
-
if (typeof external === "function")
|
|
2998
|
-
|
|
2999
|
-
return
|
|
3000
|
-
|
|
3133
|
+
if (typeof external === "function") {
|
|
3134
|
+
const measured = measureHookCost(timings, INPUT_OPTIONS_OWNER, "external", external);
|
|
3135
|
+
return (id2, importer, isResolved) => {
|
|
3136
|
+
if (id2.startsWith("\0")) return false;
|
|
3137
|
+
return measured(id2, importer, isResolved) ?? false;
|
|
3138
|
+
};
|
|
3139
|
+
}
|
|
3001
3140
|
return arraify(external);
|
|
3002
3141
|
}
|
|
3003
3142
|
}
|
|
@@ -3094,11 +3233,7 @@ function bindingifyInput(input) {
|
|
|
3094
3233
|
}
|
|
3095
3234
|
function bindingifyWatch(watch2) {
|
|
3096
3235
|
if (watch2) {
|
|
3097
|
-
|
|
3098
|
-
const watcher = {
|
|
3099
|
-
...watch2.notify,
|
|
3100
|
-
...watch2.watcher
|
|
3101
|
-
};
|
|
3236
|
+
const watcher = watch2.watcher ?? {};
|
|
3102
3237
|
return {
|
|
3103
3238
|
buildDelay: watch2.buildDelay,
|
|
3104
3239
|
skipWrite: watch2.skipWrite,
|
|
@@ -3114,7 +3249,7 @@ function bindingifyWatch(watch2) {
|
|
|
3114
3249
|
};
|
|
3115
3250
|
}
|
|
3116
3251
|
}
|
|
3117
|
-
function bindingifyTreeshakeOptions(config) {
|
|
3252
|
+
function bindingifyTreeshakeOptions(config, timings) {
|
|
3118
3253
|
if (config === false) return;
|
|
3119
3254
|
if (config === true || config === void 0) return { moduleSideEffects: true };
|
|
3120
3255
|
let normalizedConfig = {
|
|
@@ -3147,7 +3282,7 @@ function bindingifyTreeshakeOptions(config) {
|
|
|
3147
3282
|
external: false,
|
|
3148
3283
|
sideEffects: true
|
|
3149
3284
|
}];
|
|
3150
|
-
else normalizedConfig.moduleSideEffects = config.moduleSideEffects;
|
|
3285
|
+
else normalizedConfig.moduleSideEffects = measureIfFunction(timings, INPUT_OPTIONS_OWNER, "treeshake.moduleSideEffects", config.moduleSideEffects);
|
|
3151
3286
|
return normalizedConfig;
|
|
3152
3287
|
}
|
|
3153
3288
|
function bindingifyMakeAbsoluteExternalsRelative(makeAbsoluteExternalsRelative) {
|
|
@@ -3169,7 +3304,7 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
3169
3304
|
};
|
|
3170
3305
|
}
|
|
3171
3306
|
|
|
3172
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
3307
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/create-bundler-option-BZD-ER-Z.mjs
|
|
3173
3308
|
import { Worker } from "node:worker_threads";
|
|
3174
3309
|
import path2, { sep } from "node:path";
|
|
3175
3310
|
import { formatWithOptions, styleText } from "node:util";
|
|
@@ -5776,7 +5911,7 @@ function createConsola(options = {}) {
|
|
|
5776
5911
|
defaults: { level },
|
|
5777
5912
|
stdout: process.stdout,
|
|
5778
5913
|
stderr: process.stderr,
|
|
5779
|
-
prompt: (...args2) => import("./prompt-CH6TK0bC-
|
|
5914
|
+
prompt: (...args2) => import("./prompt-CH6TK0bC-NSBYYJZH.js").then((m) => m.prompt(...args2)),
|
|
5780
5915
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
5781
5916
|
...options
|
|
5782
5917
|
});
|
|
@@ -5809,10 +5944,10 @@ function createTestingLogger() {
|
|
|
5809
5944
|
for (const type of types) ret[type] = (...args2) => console.log(...args2);
|
|
5810
5945
|
return ret;
|
|
5811
5946
|
}
|
|
5812
|
-
function bindingifyOutputOptions(outputOptions, pluginContextData) {
|
|
5947
|
+
function bindingifyOutputOptions(outputOptions, pluginContextData, timings) {
|
|
5813
5948
|
const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapFileNames, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
|
|
5814
5949
|
if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
|
|
5815
|
-
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData);
|
|
5950
|
+
const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks, pluginContextData, timings);
|
|
5816
5951
|
return {
|
|
5817
5952
|
dir,
|
|
5818
5953
|
file: file == null ? void 0 : file,
|
|
@@ -5822,25 +5957,25 @@ function bindingifyOutputOptions(outputOptions, pluginContextData) {
|
|
|
5822
5957
|
sourcemap: bindingifySourcemap2(sourcemap),
|
|
5823
5958
|
sourcemapBaseUrl,
|
|
5824
5959
|
sourcemapDebugIds,
|
|
5825
|
-
sourcemapFileNames,
|
|
5960
|
+
sourcemapFileNames: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapFileNames", sourcemapFileNames),
|
|
5826
5961
|
sourcemapExcludeSources,
|
|
5827
|
-
sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules
|
|
5828
|
-
sourcemapPathTransform,
|
|
5829
|
-
banner: bindingifyAddon(banner),
|
|
5830
|
-
footer: bindingifyAddon(footer),
|
|
5831
|
-
postBanner: bindingifyAddon(postBanner),
|
|
5832
|
-
postFooter: bindingifyAddon(postFooter),
|
|
5833
|
-
intro: bindingifyAddon(intro),
|
|
5834
|
-
outro: bindingifyAddon(outro),
|
|
5962
|
+
sourcemapIgnoreList: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapIgnoreList", sourcemapIgnoreList ?? /node_modules/),
|
|
5963
|
+
sourcemapPathTransform: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sourcemapPathTransform", sourcemapPathTransform),
|
|
5964
|
+
banner: bindingifyAddon(banner, "banner", timings),
|
|
5965
|
+
footer: bindingifyAddon(footer, "footer", timings),
|
|
5966
|
+
postBanner: bindingifyAddon(postBanner, "postBanner", timings),
|
|
5967
|
+
postFooter: bindingifyAddon(postFooter, "postFooter", timings),
|
|
5968
|
+
intro: bindingifyAddon(intro, "intro", timings),
|
|
5969
|
+
outro: bindingifyAddon(outro, "outro", timings),
|
|
5835
5970
|
extend: outputOptions.extend,
|
|
5836
|
-
globals,
|
|
5837
|
-
paths,
|
|
5971
|
+
globals: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "globals", globals),
|
|
5972
|
+
paths: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "paths", paths),
|
|
5838
5973
|
generatedCode,
|
|
5839
5974
|
esModule,
|
|
5840
5975
|
name,
|
|
5841
5976
|
assetFileNames: bindingifyAssetFilenames(assetFileNames),
|
|
5842
|
-
entryFileNames,
|
|
5843
|
-
chunkFileNames,
|
|
5977
|
+
entryFileNames: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "entryFileNames", entryFileNames),
|
|
5978
|
+
chunkFileNames: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "chunkFileNames", chunkFileNames),
|
|
5844
5979
|
plugins: [],
|
|
5845
5980
|
minify: outputOptions.minify,
|
|
5846
5981
|
externalLiveBindings: outputOptions.externalLiveBindings,
|
|
@@ -5861,9 +5996,12 @@ function bindingifyOutputOptions(outputOptions, pluginContextData) {
|
|
|
5861
5996
|
strict: outputOptions.strict
|
|
5862
5997
|
};
|
|
5863
5998
|
}
|
|
5864
|
-
function bindingifyAddon(configAddon) {
|
|
5999
|
+
function bindingifyAddon(configAddon, name, timings) {
|
|
5865
6000
|
if (configAddon == null || configAddon === "") return;
|
|
5866
|
-
if (typeof configAddon === "function")
|
|
6001
|
+
if (typeof configAddon === "function") {
|
|
6002
|
+
const measured = measureHookCost(timings, OUTPUT_OPTIONS_OWNER, name, configAddon);
|
|
6003
|
+
return async (chunk) => measured(transformRenderedChunk(chunk));
|
|
6004
|
+
}
|
|
5867
6005
|
return configAddon;
|
|
5868
6006
|
}
|
|
5869
6007
|
function bindingifyFormat(format) {
|
|
@@ -5917,7 +6055,7 @@ function bindingifyComments(comments) {
|
|
|
5917
6055
|
if (typeof comments === "boolean") return comments;
|
|
5918
6056
|
return comments;
|
|
5919
6057
|
}
|
|
5920
|
-
function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, advancedChunks, manualChunks, pluginContextData) {
|
|
6058
|
+
function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, advancedChunks, manualChunks, pluginContextData, timings) {
|
|
5921
6059
|
let inlineDynamicImports;
|
|
5922
6060
|
let effectiveChunksOption;
|
|
5923
6061
|
if (codeSplitting === false) {
|
|
@@ -5960,10 +6098,11 @@ function bindingifyCodeSplitting(codeSplitting, inlineDynamicImportsOption, adva
|
|
|
5960
6098
|
advancedChunksResult = {
|
|
5961
6099
|
...restOptions,
|
|
5962
6100
|
groups: groups?.map((group) => {
|
|
5963
|
-
const { name, ...restGroup } = group;
|
|
6101
|
+
const { name, test, ...restGroup } = group;
|
|
5964
6102
|
return {
|
|
5965
6103
|
...restGroup,
|
|
5966
|
-
|
|
6104
|
+
test: typeof test === "function" ? measureHookCost(timings, OUTPUT_OPTIONS_OWNER, "codeSplitting groups[].test", test) : test,
|
|
6105
|
+
name: typeof name === "function" ? measureHookCost(timings, OUTPUT_OPTIONS_OWNER, "codeSplitting groups[].name", (id2, ctx) => name(id2, new ChunkingContextImpl(ctx, pluginContextData))) : name
|
|
5967
6106
|
};
|
|
5968
6107
|
})
|
|
5969
6108
|
};
|
|
@@ -6036,7 +6175,7 @@ var availableParallelism = () => {
|
|
|
6036
6175
|
}
|
|
6037
6176
|
return Math.min(availableParallelism2, 8);
|
|
6038
6177
|
};
|
|
6039
|
-
async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
|
|
6178
|
+
async function createBundlerOptions(inputOptions, outputOptions, watchMode, measureTimings = false) {
|
|
6040
6179
|
const inputPlugins = await normalizePluginOption(inputOptions.plugins);
|
|
6041
6180
|
const outputPlugins = await normalizePluginOption(outputOptions.plugins);
|
|
6042
6181
|
const logLevel = inputOptions.logLevel || "info";
|
|
@@ -6046,14 +6185,20 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
|
|
|
6046
6185
|
const normalizedInputPlugins = normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX);
|
|
6047
6186
|
const normalizedOutputPlugins = normalizePlugins(hookOutputPlugins, ANONYMOUS_OUTPUT_PLUGIN_PREFIX);
|
|
6048
6187
|
let plugins = [...normalizedInputPlugins, ...checkOutputPluginOption(normalizedOutputPlugins, onLog)];
|
|
6188
|
+
const timings = measureTimings && inputOptions.checks?.pluginTimings !== false ? pluginTimingsRecorderFor(inputOptions) : void 0;
|
|
6189
|
+
if (timings) outputOptions = {
|
|
6190
|
+
...outputOptions,
|
|
6191
|
+
assetFileNames: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "assetFileNames", outputOptions.assetFileNames),
|
|
6192
|
+
sanitizeFileName: measureIfFunction(timings, OUTPUT_OPTIONS_OWNER, "sanitizeFileName", outputOptions.sanitizeFileName)
|
|
6193
|
+
};
|
|
6049
6194
|
const parallelPluginInitResult = await initializeParallelPlugins(plugins);
|
|
6050
6195
|
if (inputOptions.experimental?.strictExecutionOrder !== void 0) console.warn("`experimental.strictExecutionOrder` has been stabilized and moved to `output.strictExecutionOrder`. Please update your configuration.");
|
|
6051
6196
|
try {
|
|
6052
6197
|
const pluginContextData = new PluginContextData(onLog, outputOptions, normalizedInputPlugins, normalizedOutputPlugins);
|
|
6053
6198
|
return {
|
|
6054
6199
|
bundlerOptions: {
|
|
6055
|
-
inputOptions: bindingifyInputOptions(plugins, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode),
|
|
6056
|
-
outputOptions: bindingifyOutputOptions(outputOptions, pluginContextData),
|
|
6200
|
+
inputOptions: bindingifyInputOptions(plugins, inputOptions, outputOptions, pluginContextData, normalizedOutputPlugins, onLog, logLevel, watchMode, timings),
|
|
6201
|
+
outputOptions: bindingifyOutputOptions(outputOptions, pluginContextData, timings),
|
|
6057
6202
|
parallelPluginsRegistry: parallelPluginInitResult?.registry
|
|
6058
6203
|
},
|
|
6059
6204
|
inputOptions,
|
|
@@ -6066,7 +6211,7 @@ async function createBundlerOptions(inputOptions, outputOptions, watchMode) {
|
|
|
6066
6211
|
}
|
|
6067
6212
|
}
|
|
6068
6213
|
|
|
6069
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
6214
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/watch-BW4p8Vif.mjs
|
|
6070
6215
|
var signals = [];
|
|
6071
6216
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
6072
6217
|
if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
@@ -6349,7 +6494,7 @@ function warnMultiplePollingOptions(bundlerOptions) {
|
|
|
6349
6494
|
let found = false;
|
|
6350
6495
|
for (const option of bundlerOptions) {
|
|
6351
6496
|
const watch2 = option.inputOptions.watch;
|
|
6352
|
-
const watcher = watch2 && typeof watch2 === "object" ? watch2.watcher
|
|
6497
|
+
const watcher = watch2 && typeof watch2 === "object" ? watch2.watcher : void 0;
|
|
6353
6498
|
if (watcher && (watcher.usePolling != null || watcher.pollInterval != null)) {
|
|
6354
6499
|
if (found) {
|
|
6355
6500
|
option.onLog(LOG_LEVEL_WARN, logMultipleWatcherOption());
|
|
@@ -6365,7 +6510,7 @@ function watch(input) {
|
|
|
6365
6510
|
return emitter;
|
|
6366
6511
|
}
|
|
6367
6512
|
|
|
6368
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
6513
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/rolldown-I5b6h5Km.mjs
|
|
6369
6514
|
var import_binding6 = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
6370
6515
|
var RolldownOutputImpl = class extends PlainObjectLike {
|
|
6371
6516
|
bindingOutputs;
|
|
@@ -6479,7 +6624,7 @@ var RolldownBuild = class {
|
|
|
6479
6624
|
async #build(isWrite, outputOptions) {
|
|
6480
6625
|
validateOption("output", outputOptions);
|
|
6481
6626
|
await this.#stopWorkers?.();
|
|
6482
|
-
const option = await createBundlerOptions(this.#inputOptions, outputOptions, false);
|
|
6627
|
+
const option = await createBundlerOptions(this.#inputOptions, outputOptions, false, true);
|
|
6483
6628
|
try {
|
|
6484
6629
|
this.#stopWorkers = option.stopWorkers;
|
|
6485
6630
|
let output;
|
|
@@ -6497,12 +6642,12 @@ var rolldown = async (input) => {
|
|
|
6497
6642
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
6498
6643
|
};
|
|
6499
6644
|
|
|
6500
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
6645
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/shared/define-config-Demdg3_4.mjs
|
|
6501
6646
|
function defineConfig(config) {
|
|
6502
6647
|
return config;
|
|
6503
6648
|
}
|
|
6504
6649
|
|
|
6505
|
-
// node_modules/.pnpm/rolldown@1.2.
|
|
6650
|
+
// node_modules/.pnpm/rolldown@1.2.3/node_modules/rolldown/dist/index.mjs
|
|
6506
6651
|
import { isMainThread } from "node:worker_threads";
|
|
6507
6652
|
var import_binding7 = /* @__PURE__ */ __toESM(require_binding(), 1);
|
|
6508
6653
|
if (isMainThread) {
|