brass-runtime 1.13.6 → 1.13.8
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 +231 -55
- package/dist/agent/cli/main.cjs +43 -43
- package/dist/agent/cli/main.js +2 -2
- package/dist/agent/cli/main.mjs +2 -2
- package/dist/agent/index.cjs +3 -3
- package/dist/agent/index.js +2 -2
- package/dist/agent/index.mjs +2 -2
- package/dist/{chunk-KT4IKCIU.cjs → chunk-2P4PD6D7.cjs} +10 -9
- package/dist/{chunk-HRVX2IYW.js → chunk-3R7ZYRK2.mjs} +1 -1
- package/dist/{chunk-TGOMLZ65.js → chunk-7F2R7A2V.mjs} +10 -9
- package/dist/{chunk-3IF374MG.js → chunk-ATHSSDUF.js} +1 -1
- package/dist/{chunk-6ECUD4N3.mjs → chunk-INZBKOHY.js} +1 -1
- package/dist/{chunk-T5XJDGTQ.mjs → chunk-L6KKKM66.js} +10 -9
- package/dist/{chunk-DB57UZBE.cjs → chunk-XDINDYNA.cjs} +134 -134
- package/dist/{chunk-QRPYH5J7.mjs → chunk-XNOTJSMZ.mjs} +1 -1
- package/dist/{chunk-AC4RFFVX.cjs → chunk-ZTDK2DLG.cjs} +68 -68
- package/dist/http/index.cjs +27 -27
- package/dist/http/index.js +2 -2
- package/dist/http/index.mjs +2 -2
- package/dist/index.cjs +113 -113
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -2
package/dist/agent/index.js
CHANGED
|
@@ -73,8 +73,8 @@ import {
|
|
|
73
73
|
timeout,
|
|
74
74
|
unappliedPatchStack,
|
|
75
75
|
workspaceValidationStatus
|
|
76
|
-
} from "../chunk-
|
|
77
|
-
import "../chunk-
|
|
76
|
+
} from "../chunk-INZBKOHY.js";
|
|
77
|
+
import "../chunk-L6KKKM66.js";
|
|
78
78
|
export {
|
|
79
79
|
AGENT_CONFIG_FILE_NAMES,
|
|
80
80
|
NodeShell,
|
package/dist/agent/index.mjs
CHANGED
|
@@ -73,8 +73,8 @@ import {
|
|
|
73
73
|
timeout,
|
|
74
74
|
unappliedPatchStack,
|
|
75
75
|
workspaceValidationStatus
|
|
76
|
-
} from "../chunk-
|
|
77
|
-
import "../chunk-
|
|
76
|
+
} from "../chunk-3R7ZYRK2.mjs";
|
|
77
|
+
import "../chunk-7F2R7A2V.mjs";
|
|
78
78
|
export {
|
|
79
79
|
AGENT_CONFIG_FILE_NAMES,
|
|
80
80
|
NodeShell,
|
|
@@ -232,15 +232,10 @@ function wasmModuleResolutionErrors() {
|
|
|
232
232
|
function wasmModuleCandidates(modulePath) {
|
|
233
233
|
if (modulePath) return [modulePath];
|
|
234
234
|
return [
|
|
235
|
-
// Installed package path. Useful when brass-runtime is bundled by webpack
|
|
236
|
-
// but the package still exists in node_modules at runtime.
|
|
237
235
|
"brass-runtime/wasm/pkg/brass_runtime_wasm_engine.js",
|
|
238
|
-
// Bundled package path: dist/index.(js|cjs) -> ../wasm/pkg/...
|
|
239
236
|
"../wasm/pkg/brass_runtime_wasm_engine.js",
|
|
240
|
-
// Source/test paths used by tsx/vitest before publishing.
|
|
241
237
|
"../../../wasm/pkg/brass_runtime_wasm_engine.js",
|
|
242
238
|
"../../../../../wasm/pkg/brass_runtime_wasm_engine.js",
|
|
243
|
-
// Local workspace fallback.
|
|
244
239
|
`${getCwd()}/wasm/pkg/brass_runtime_wasm_engine.js`
|
|
245
240
|
];
|
|
246
241
|
}
|
|
@@ -256,28 +251,34 @@ function getBestRequire() {
|
|
|
256
251
|
}
|
|
257
252
|
function getNonWebpackRequire() {
|
|
258
253
|
try {
|
|
259
|
-
return (0, eval)(
|
|
254
|
+
return (0, eval)(
|
|
255
|
+
"typeof __non_webpack_require__ === 'function' ? __non_webpack_require__ : undefined"
|
|
256
|
+
);
|
|
260
257
|
} catch (e2) {
|
|
261
258
|
return void 0;
|
|
262
259
|
}
|
|
263
260
|
}
|
|
264
261
|
function getRuntimeRequire() {
|
|
265
262
|
try {
|
|
266
|
-
return (0, eval)(
|
|
263
|
+
return (0, eval)(
|
|
264
|
+
"typeof require === 'function' ? require : undefined"
|
|
265
|
+
);
|
|
267
266
|
} catch (e3) {
|
|
268
267
|
return void 0;
|
|
269
268
|
}
|
|
270
269
|
}
|
|
271
270
|
function getCreateRequire() {
|
|
272
271
|
try {
|
|
273
|
-
return _module.createRequire.call(void 0,
|
|
272
|
+
return _module.createRequire.call(void 0, `${getCwd()}/package.json`);
|
|
274
273
|
} catch (e4) {
|
|
275
274
|
return void 0;
|
|
276
275
|
}
|
|
277
276
|
}
|
|
278
277
|
function getCwd() {
|
|
279
278
|
try {
|
|
280
|
-
return (0, eval)(
|
|
279
|
+
return (0, eval)(
|
|
280
|
+
"typeof process !== 'undefined' ? process.cwd() : ''"
|
|
281
|
+
);
|
|
281
282
|
} catch (e5) {
|
|
282
283
|
return "";
|
|
283
284
|
}
|
|
@@ -232,15 +232,10 @@ function wasmModuleResolutionErrors() {
|
|
|
232
232
|
function wasmModuleCandidates(modulePath) {
|
|
233
233
|
if (modulePath) return [modulePath];
|
|
234
234
|
return [
|
|
235
|
-
// Installed package path. Useful when brass-runtime is bundled by webpack
|
|
236
|
-
// but the package still exists in node_modules at runtime.
|
|
237
235
|
"brass-runtime/wasm/pkg/brass_runtime_wasm_engine.js",
|
|
238
|
-
// Bundled package path: dist/index.(js|cjs) -> ../wasm/pkg/...
|
|
239
236
|
"../wasm/pkg/brass_runtime_wasm_engine.js",
|
|
240
|
-
// Source/test paths used by tsx/vitest before publishing.
|
|
241
237
|
"../../../wasm/pkg/brass_runtime_wasm_engine.js",
|
|
242
238
|
"../../../../../wasm/pkg/brass_runtime_wasm_engine.js",
|
|
243
|
-
// Local workspace fallback.
|
|
244
239
|
`${getCwd()}/wasm/pkg/brass_runtime_wasm_engine.js`
|
|
245
240
|
];
|
|
246
241
|
}
|
|
@@ -256,28 +251,34 @@ function getBestRequire() {
|
|
|
256
251
|
}
|
|
257
252
|
function getNonWebpackRequire() {
|
|
258
253
|
try {
|
|
259
|
-
return (0, eval)(
|
|
254
|
+
return (0, eval)(
|
|
255
|
+
"typeof __non_webpack_require__ === 'function' ? __non_webpack_require__ : undefined"
|
|
256
|
+
);
|
|
260
257
|
} catch {
|
|
261
258
|
return void 0;
|
|
262
259
|
}
|
|
263
260
|
}
|
|
264
261
|
function getRuntimeRequire() {
|
|
265
262
|
try {
|
|
266
|
-
return (0, eval)(
|
|
263
|
+
return (0, eval)(
|
|
264
|
+
"typeof require === 'function' ? require : undefined"
|
|
265
|
+
);
|
|
267
266
|
} catch {
|
|
268
267
|
return void 0;
|
|
269
268
|
}
|
|
270
269
|
}
|
|
271
270
|
function getCreateRequire() {
|
|
272
271
|
try {
|
|
273
|
-
return createRequire(
|
|
272
|
+
return createRequire(`${getCwd()}/package.json`);
|
|
274
273
|
} catch {
|
|
275
274
|
return void 0;
|
|
276
275
|
}
|
|
277
276
|
}
|
|
278
277
|
function getCwd() {
|
|
279
278
|
try {
|
|
280
|
-
return (0, eval)(
|
|
279
|
+
return (0, eval)(
|
|
280
|
+
"typeof process !== 'undefined' ? process.cwd() : ''"
|
|
281
|
+
);
|
|
281
282
|
} catch {
|
|
282
283
|
return "";
|
|
283
284
|
}
|
|
@@ -232,15 +232,10 @@ function wasmModuleResolutionErrors() {
|
|
|
232
232
|
function wasmModuleCandidates(modulePath) {
|
|
233
233
|
if (modulePath) return [modulePath];
|
|
234
234
|
return [
|
|
235
|
-
// Installed package path. Useful when brass-runtime is bundled by webpack
|
|
236
|
-
// but the package still exists in node_modules at runtime.
|
|
237
235
|
"brass-runtime/wasm/pkg/brass_runtime_wasm_engine.js",
|
|
238
|
-
// Bundled package path: dist/index.(js|cjs) -> ../wasm/pkg/...
|
|
239
236
|
"../wasm/pkg/brass_runtime_wasm_engine.js",
|
|
240
|
-
// Source/test paths used by tsx/vitest before publishing.
|
|
241
237
|
"../../../wasm/pkg/brass_runtime_wasm_engine.js",
|
|
242
238
|
"../../../../../wasm/pkg/brass_runtime_wasm_engine.js",
|
|
243
|
-
// Local workspace fallback.
|
|
244
239
|
`${getCwd()}/wasm/pkg/brass_runtime_wasm_engine.js`
|
|
245
240
|
];
|
|
246
241
|
}
|
|
@@ -256,28 +251,34 @@ function getBestRequire() {
|
|
|
256
251
|
}
|
|
257
252
|
function getNonWebpackRequire() {
|
|
258
253
|
try {
|
|
259
|
-
return (0, eval)(
|
|
254
|
+
return (0, eval)(
|
|
255
|
+
"typeof __non_webpack_require__ === 'function' ? __non_webpack_require__ : undefined"
|
|
256
|
+
);
|
|
260
257
|
} catch {
|
|
261
258
|
return void 0;
|
|
262
259
|
}
|
|
263
260
|
}
|
|
264
261
|
function getRuntimeRequire() {
|
|
265
262
|
try {
|
|
266
|
-
return (0, eval)(
|
|
263
|
+
return (0, eval)(
|
|
264
|
+
"typeof require === 'function' ? require : undefined"
|
|
265
|
+
);
|
|
267
266
|
} catch {
|
|
268
267
|
return void 0;
|
|
269
268
|
}
|
|
270
269
|
}
|
|
271
270
|
function getCreateRequire() {
|
|
272
271
|
try {
|
|
273
|
-
return createRequire(
|
|
272
|
+
return createRequire(`${getCwd()}/package.json`);
|
|
274
273
|
} catch {
|
|
275
274
|
return void 0;
|
|
276
275
|
}
|
|
277
276
|
}
|
|
278
277
|
function getCwd() {
|
|
279
278
|
try {
|
|
280
|
-
return (0, eval)(
|
|
279
|
+
return (0, eval)(
|
|
280
|
+
"typeof process !== 'undefined' ? process.cwd() : ''"
|
|
281
|
+
);
|
|
281
282
|
} catch {
|
|
282
283
|
return "";
|
|
283
284
|
}
|