@cotal-ai/connector-opencode 0.77.0 → 0.77.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
@@ -185,6 +185,9 @@ function materialEnv(opts) {
185
185
  return {};
186
186
  return { [LAUNCH_MATERIAL_ENV3]: writeLaunchMaterial(material) };
187
187
  }
188
+ function launchArmsEvents(opts) {
189
+ return opts.events !== false || opts.eventsRequired === true;
190
+ }
188
191
 
189
192
  // ../connector-core/dist/agui.js
190
193
  import { AGUI_FRAME_KIND, AGUI_EVENT_TYPE, isAguiFramePart } from "@cotal-ai/core";
@@ -15015,7 +15018,7 @@ var opencodeConnector = {
15015
15018
  COTAL_NAME: opts.name
15016
15019
  };
15017
15020
  if (opts.resolvedBinaries?.opencode) env.COTAL_OPENCODE_RESOLVED_BIN = opts.resolvedBinaries.opencode;
15018
- if (opts.events !== false) {
15021
+ if (launchArmsEvents(opts)) {
15019
15022
  env.COTAL_EVENTS = "1";
15020
15023
  if (!opts.workspaceRoot)
15021
15024
  throw new Error(