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.
@@ -73,8 +73,8 @@ import {
73
73
  timeout,
74
74
  unappliedPatchStack,
75
75
  workspaceValidationStatus
76
- } from "../chunk-HRVX2IYW.js";
77
- import "../chunk-TGOMLZ65.js";
76
+ } from "../chunk-INZBKOHY.js";
77
+ import "../chunk-L6KKKM66.js";
78
78
  export {
79
79
  AGENT_CONFIG_FILE_NAMES,
80
80
  NodeShell,
@@ -73,8 +73,8 @@ import {
73
73
  timeout,
74
74
  unappliedPatchStack,
75
75
  workspaceValidationStatus
76
- } from "../chunk-6ECUD4N3.mjs";
77
- import "../chunk-T5XJDGTQ.mjs";
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)("typeof __non_webpack_require__ === 'function' ? __non_webpack_require__ : undefined");
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)("typeof require === 'function' ? require : undefined");
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, import.meta.url);
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)("typeof process !== 'undefined' ? process.cwd() : ''");
279
+ return (0, eval)(
280
+ "typeof process !== 'undefined' ? process.cwd() : ''"
281
+ );
281
282
  } catch (e5) {
282
283
  return "";
283
284
  }
@@ -11,7 +11,7 @@ import {
11
11
  fromPromiseAbortable,
12
12
  race,
13
13
  withScopeAsync
14
- } from "./chunk-TGOMLZ65.js";
14
+ } from "./chunk-7F2R7A2V.mjs";
15
15
 
16
16
  // src/agent/core/state.ts
17
17
  var initialAgentState = (goal) => ({
@@ -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)("typeof __non_webpack_require__ === 'function' ? __non_webpack_require__ : undefined");
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)("typeof require === 'function' ? require : undefined");
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(import.meta.url);
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)("typeof process !== 'undefined' ? process.cwd() : ''");
279
+ return (0, eval)(
280
+ "typeof process !== 'undefined' ? process.cwd() : ''"
281
+ );
281
282
  } catch {
282
283
  return "";
283
284
  }
@@ -22,7 +22,7 @@ import {
22
22
  sync,
23
23
  unsafeGetCurrentRuntime,
24
24
  unsafeRunFoldWithEnv
25
- } from "./chunk-TGOMLZ65.js";
25
+ } from "./chunk-L6KKKM66.js";
26
26
 
27
27
  // src/core/stream/stream.ts
28
28
  var widenOpt = (opt) => opt._tag === "None" ? none : some(opt.value);
@@ -11,7 +11,7 @@ import {
11
11
  fromPromiseAbortable,
12
12
  race,
13
13
  withScopeAsync
14
- } from "./chunk-T5XJDGTQ.mjs";
14
+ } from "./chunk-L6KKKM66.js";
15
15
 
16
16
  // src/agent/core/state.ts
17
17
  var initialAgentState = (goal) => ({
@@ -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)("typeof __non_webpack_require__ === 'function' ? __non_webpack_require__ : undefined");
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)("typeof require === 'function' ? require : undefined");
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(import.meta.url);
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)("typeof process !== 'undefined' ? process.cwd() : ''");
279
+ return (0, eval)(
280
+ "typeof process !== 'undefined' ? process.cwd() : ''"
281
+ );
281
282
  } catch {
282
283
  return "";
283
284
  }