opencode-immune 1.0.52 → 1.0.53

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/plugin.js +4 -1
  2. package/package.json +1 -1
package/dist/plugin.js CHANGED
@@ -11,7 +11,7 @@ import { execFile } from "child_process";
11
11
  // ═══════════════════════════════════════════════════════════════════════════════
12
12
  // PLUGIN VERSION CHECK
13
13
  // ═══════════════════════════════════════════════════════════════════════════════
14
- const PLUGIN_VERSION = "1.0.52";
14
+ const PLUGIN_VERSION = "1.0.53";
15
15
  const PLUGIN_PACKAGE_NAME = "opencode-immune";
16
16
  const PLUGIN_DIRNAME = dirname(fileURLToPath(import.meta.url));
17
17
  /**
@@ -148,6 +148,9 @@ async function createManagedUltraworkSession(state, title) {
148
148
  title,
149
149
  permission: ULTRAWORK_SESSION_PERMISSION,
150
150
  });
151
+ if (result.error || !result.response.ok) {
152
+ throw new Error(`session.create failed with status ${result.response.status}: ${JSON.stringify(result.error ?? null)}`);
153
+ }
151
154
  const sessionID = result?.data?.id;
152
155
  if (!sessionID)
153
156
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-immune",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin: session recovery, auto-retry, multi-cycle automation, context monitoring",
6
6
  "exports": {