oasis_test_v2 2.2.46 → 2.2.47

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -5240,18 +5240,19 @@ async function probeCodexAppServer(bin, timeoutMs = 15e3) {
5240
5240
  if (config2 === void 0 || listState === "pending") return;
5241
5241
  finish({ config: config2, models: listState === "done" ? listed : null });
5242
5242
  };
5243
- const timer = setTimeout(() => finish(null), timeoutMs);
5243
+ const abort = () => finish(config2 === void 0 ? null : { config: config2, models: listState === "done" ? listed : null });
5244
+ const timer = setTimeout(abort, timeoutMs);
5244
5245
  const send = (id, method, params) => {
5245
5246
  try {
5246
5247
  child.stdin?.write(`${JSON.stringify({ jsonrpc: "2.0", id, method, params })}
5247
5248
  `);
5248
5249
  } catch {
5249
- finish(null);
5250
+ abort();
5250
5251
  }
5251
5252
  };
5252
- child.on("error", () => finish(null));
5253
- child.stdin?.on("error", () => finish(null));
5254
- child.on("close", () => finish(null));
5253
+ child.on("error", abort);
5254
+ child.stdin?.on("error", abort);
5255
+ child.on("close", abort);
5255
5256
  let buf = "";
5256
5257
  child.stdout?.on("data", (chunk) => {
5257
5258
  if (settled) return;
@@ -279036,7 +279037,7 @@ function shimScript() {
279036
279037
  }
279037
279038
 
279038
279039
  // src/index.ts
279039
- var PKG_VERSION = true ? "2.2.46" : "dev";
279040
+ var PKG_VERSION = true ? "2.2.47" : "dev";
279040
279041
  var LOCAL_BIN = localBin();
279041
279042
  var NPM_PREFIX = npmPrefix();
279042
279043
  var INSTANCE = DEFAULT_INSTANCE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis_test_v2",
3
- "version": "2.2.46",
3
+ "version": "2.2.47",
4
4
  "description": "Oasis node daemon + CLI — background daemon, auto-start, full server CLI",
5
5
  "bin": {
6
6
  "oasis": "./dist/index.js"
@@ -26,6 +26,6 @@
26
26
  "node": ">=20"
27
27
  },
28
28
  "oasisRelease": {
29
- "sourceHead": "71593b93fa3ef6950c616a185e2ed7b0ee7b88e7"
29
+ "sourceHead": "98d67615dd3606fcebb19d6561d2a5e7abe5ae31"
30
30
  }
31
31
  }