@ycodium-ai/agent-opencode 0.2.2130 → 0.2.2143

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 +14 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1526,6 +1526,11 @@ function mapPermissionDecision(reply) {
1526
1526
  }
1527
1527
  }
1528
1528
 
1529
+ // src/probe.ts
1530
+ import {
1531
+ ExecutorSpawnRefusedError as ExecutorSpawnRefusedError2
1532
+ } from "@ycodium-ai/plugin-api/executor";
1533
+
1529
1534
  // src/server.ts
1530
1535
  import * as NodeNet from "node:net";
1531
1536
  import * as NodeOS3 from "node:os";
@@ -6935,6 +6940,7 @@ var import_cross_spawn = __toESM(require_cross_spawn(), 1);
6935
6940
 
6936
6941
  // src/server.ts
6937
6942
  import {
6943
+ ExecutorSpawnRefusedError,
6938
6944
  mergeLaunchEnv,
6939
6945
  brainSlotEnvKeys
6940
6946
  } from "@ycodium-ai/plugin-api/executor";
@@ -7260,7 +7266,8 @@ async function runOpenCodeCommand(input) {
7260
7266
  async function withOneSecondRetry(run) {
7261
7267
  try {
7262
7268
  return await run();
7263
- } catch {
7269
+ } catch (error) {
7270
+ if (error instanceof ExecutorSpawnRefusedError) throw error;
7264
7271
  await new Promise((resolve2) => setTimeout(resolve2, 1e3));
7265
7272
  return await run();
7266
7273
  }
@@ -7311,7 +7318,8 @@ async function loadInventoryFromCli(input) {
7311
7318
  return command;
7312
7319
  });
7313
7320
  return parseAgentListCliOutput(result.stdout);
7314
- } catch {
7321
+ } catch (error) {
7322
+ if (error instanceof ExecutorSpawnRefusedError) throw error;
7315
7323
  return [];
7316
7324
  }
7317
7325
  };
@@ -7325,7 +7333,8 @@ async function loadInventoryFromCli(input) {
7325
7333
  return command;
7326
7334
  });
7327
7335
  return parseSkillsCliOutput(result.stdout);
7328
- } catch {
7336
+ } catch (error) {
7337
+ if (error instanceof ExecutorSpawnRefusedError) throw error;
7329
7338
  return [];
7330
7339
  }
7331
7340
  };
@@ -7424,6 +7433,7 @@ ${result.stderr}`);
7424
7433
  };
7425
7434
  }
7426
7435
  } catch (cause) {
7436
+ if (cause instanceof ExecutorSpawnRefusedError2) throw cause;
7427
7437
  return formatOpenCodeProbeError({ cause, isExternalServer: false, version });
7428
7438
  }
7429
7439
  }
@@ -7489,6 +7499,7 @@ ${result.stderr}`);
7489
7499
  ...OPENCODE_NATIVE_MODE_REPORT
7490
7500
  };
7491
7501
  } catch (cause) {
7502
+ if (cause instanceof ExecutorSpawnRefusedError2) throw cause;
7492
7503
  const mapped = formatOpenCodeProbeError({ cause, isExternalServer: isExternal, version });
7493
7504
  if (mapped.detail) {
7494
7505
  const hidden = hideGenericEffectText(mapped.detail);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-opencode",
3
- "version": "0.2.2130",
3
+ "version": "0.2.2143",
4
4
  "description": "OpenCode executor: OpenCode CLI via @opencode-ai/sdk/v2.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -23,7 +23,7 @@
23
23
  "@types/node": "24.12.4",
24
24
  "esbuild": "0.28.1",
25
25
  "vite-plus": "0.2.2",
26
- "@ycodium-ai/plugin-api": "0.2.2130"
26
+ "@ycodium-ai/plugin-api": "0.2.2143"
27
27
  },
28
28
  "ycodium": {
29
29
  "plugin": "./dist/index.js",