@agiflowai/agent-cli 0.1.10 → 0.1.11

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.
@@ -12482,7 +12482,7 @@ let er = class {
12482
12482
  this.runtimeConfig = vh.parse(e), this.appConfig = ph.parse({
12483
12483
  VITE_INJECT_AGIFLOW_APP_ENDPOINT: "https://agiflow.io",
12484
12484
  VITE_INJECT_AGIFLOW_APP_DOCKER_ENDPOINT: "https://agiflow.io",
12485
- VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.9",
12485
+ VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.10",
12486
12486
  VITE_AGENT_CLI_DOCKER_NETWORK: "",
12487
12487
  VITE_SAVE_RAW: "",
12488
12488
  VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
@@ -13213,6 +13213,9 @@ let da = class {
13213
13213
  throw this.logger.error(`GlobalClient request failed for session ${e}:`, i), i;
13214
13214
  }
13215
13215
  }
13216
+ async publish(e, t) {
13217
+ this.validateSessionId(e), this.logger.debug(`GlobalClient publish (fire-and-forget) for session ${e}`), await this.broker.publish(e, t);
13218
+ }
13216
13219
  registerService(e, t, r) {
13217
13220
  this.validateSessionId(e), this.logger.debug(`GlobalClient registering service ${t} for session ${e}`), this.broker.registerService(e, t, r);
13218
13221
  }
@@ -13632,12 +13635,15 @@ let ha = class {
13632
13635
  this.brokerHttpUrl = r.replace(/^ws:\/\//, "http://").replace(/^wss:\/\//, "https://"), this.logger.info(`RemoteMultiplexGlobalClient initialized with broker: ${this.brokerHttpUrl}`);
13633
13636
  }
13634
13637
  brokerHttpUrl;
13638
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13635
13639
  subscribeEventType(e, t, r) {
13636
13640
  this.logger.warn("RemoteMultiplexGlobalClient does not support subscribeEventType");
13637
13641
  }
13642
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13638
13643
  unsubscribeEventType(e, t, r) {
13639
13644
  this.logger.warn("RemoteMultiplexGlobalClient does not support unsubscribeEventType");
13640
13645
  }
13646
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13641
13647
  async publishEventType(e, t, r) {
13642
13648
  this.logger.warn("RemoteMultiplexGlobalClient does not support publishEventType");
13643
13649
  }
@@ -13674,9 +13680,40 @@ let ha = class {
13674
13680
  throw this.logger.error(`RemoteGlobalClient request failed for session ${e}:`, n), n;
13675
13681
  }
13676
13682
  }
13683
+ /**
13684
+ * Send RPC request to host broker via HTTP (fire-and-forget)
13685
+ * Used for AgentWsService methods that don't need a response
13686
+ */
13687
+ async publish(e, t) {
13688
+ this.validateSessionId(e);
13689
+ const r = this.generateCorrelationId();
13690
+ try {
13691
+ this.logger.debug(`RemoteGlobalClient publish (fire-and-forget) for session ${e}`), fetch(this.brokerHttpUrl, {
13692
+ method: "POST",
13693
+ headers: {
13694
+ "Content-Type": "application/json",
13695
+ "X-Session-Id": e,
13696
+ "X-Correlation-Id": r
13697
+ },
13698
+ body: JSON.stringify({
13699
+ correlationId: r,
13700
+ event: t,
13701
+ timestamp: Date.now()
13702
+ }),
13703
+ signal: AbortSignal.timeout(5e3)
13704
+ // Shorter timeout for fire-and-forget
13705
+ }).catch((i) => {
13706
+ this.logger.debug(`RemoteGlobalClient publish failed for session ${e}:`, i);
13707
+ });
13708
+ } catch (i) {
13709
+ this.logger.debug(`RemoteGlobalClient publish error for session ${e}:`, i);
13710
+ }
13711
+ }
13712
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13677
13713
  registerService(e, t, r) {
13678
13714
  this.logger.warn("RemoteMultiplexGlobalClient does not support registerService");
13679
13715
  }
13716
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13680
13717
  unregisterService(e, t) {
13681
13718
  this.logger.warn("RemoteMultiplexGlobalClient does not support unregisterService");
13682
13719
  }