@proxysoul/soulforge 1.3.0 → 1.3.1

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/index.js CHANGED
@@ -331599,13 +331599,14 @@ function disposeIOClient() {
331599
331599
  _instance2?.dispose();
331600
331600
  _instance2 = null;
331601
331601
  }
331602
- var IS_BUNDLED, _instance2 = null, IOClient;
331602
+ var IS_COMPILED, IS_DIST, _instance2 = null, IOClient;
331603
331603
  var init_io_client = __esm(() => {
331604
331604
  init_workers();
331605
- IS_BUNDLED = import.meta.url.includes("$bunfs");
331605
+ IS_COMPILED = import.meta.url.includes("$bunfs");
331606
+ IS_DIST = !IS_COMPILED && import.meta.dir.includes("/dist");
331606
331607
  IOClient = class IOClient extends WorkerClient {
331607
331608
  constructor() {
331608
- const workerPath = IS_BUNDLED ? join18(homedir12(), ".soulforge", "workers", "io.worker.js") : join18(import.meta.dir, "io.worker.ts");
331609
+ const workerPath = IS_COMPILED ? join18(homedir12(), ".soulforge", "workers", "io.worker.js") : IS_DIST ? join18(import.meta.dir, "workers", "io.worker.js") : join18(import.meta.dir, "io.worker.ts");
331609
331610
  super(workerPath, undefined, {
331610
331611
  smol: true
331611
331612
  });
@@ -360334,10 +360335,11 @@ var init_prompts = __esm(() => {
360334
360335
  // src/core/workers/intelligence-client.ts
360335
360336
  import { homedir as homedir15 } from "os";
360336
360337
  import { join as join26 } from "path";
360337
- var IS_BUNDLED2, IntelligenceClient;
360338
+ var IS_COMPILED2, IS_DIST2, IntelligenceClient;
360338
360339
  var init_intelligence_client = __esm(() => {
360339
360340
  init_workers();
360340
- IS_BUNDLED2 = import.meta.url.includes("$bunfs");
360341
+ IS_COMPILED2 = import.meta.url.includes("$bunfs");
360342
+ IS_DIST2 = !IS_COMPILED2 && import.meta.dir.includes("/dist");
360341
360343
  IntelligenceClient = class IntelligenceClient extends WorkerClient {
360342
360344
  _isReady = false;
360343
360345
  _cwd;
@@ -360356,7 +360358,7 @@ var init_intelligence_client = __esm(() => {
360356
360358
  onStaleSymbols = null;
360357
360359
  static SCAN_TIMEOUT = 300000;
360358
360360
  constructor(cwd2) {
360359
- const workerPath = IS_BUNDLED2 ? join26(homedir15(), ".soulforge", "workers", "intelligence.worker.js") : join26(import.meta.dir, "intelligence.worker.ts");
360361
+ const workerPath = IS_COMPILED2 ? join26(homedir15(), ".soulforge", "workers", "intelligence.worker.js") : IS_DIST2 ? join26(import.meta.dir, "workers", "intelligence.worker.js") : join26(import.meta.dir, "intelligence.worker.ts");
360360
360362
  super(workerPath, {
360361
360363
  cwd: cwd2
360362
360364
  });
@@ -440049,12 +440051,12 @@ function getTSClient() {
440049
440051
  }
440050
440052
  return _tsClient;
440051
440053
  }
440052
- var IS_BUNDLED3, bundledAssets, coreAssetsDir, MARKDOWN_INJECTION_MAP, TS_ALIASES, EXTRA_FILETYPES, theme, _syntaxStyle = null, _tsClient = null;
440054
+ var IS_BUNDLED, bundledAssets, coreAssetsDir, MARKDOWN_INJECTION_MAP, TS_ALIASES, EXTRA_FILETYPES, theme, _syntaxStyle = null, _tsClient = null;
440053
440055
  var init_syntax = __esm(async () => {
440054
440056
  await init_core4();
440055
- IS_BUNDLED3 = import.meta.url.includes("$bunfs");
440057
+ IS_BUNDLED = import.meta.url.includes("$bunfs");
440056
440058
  bundledAssets = join41(homedir20(), ".soulforge", "opentui-assets");
440057
- if (IS_BUNDLED3) {
440059
+ if (IS_BUNDLED) {
440058
440060
  coreAssetsDir = bundledAssets;
440059
440061
  } else {
440060
440062
  try {