@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.
@@ -12490,7 +12490,7 @@ let er = class {
12490
12490
  this.runtimeConfig = ph.parse(e), this.appConfig = hh.parse({
12491
12491
  VITE_INJECT_AGIFLOW_APP_ENDPOINT: "https://agiflow.io",
12492
12492
  VITE_INJECT_AGIFLOW_APP_DOCKER_ENDPOINT: "https://agiflow.io",
12493
- VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.9",
12493
+ VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.10",
12494
12494
  VITE_AGENT_CLI_DOCKER_NETWORK: "",
12495
12495
  VITE_SAVE_RAW: "",
12496
12496
  VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
@@ -13221,6 +13221,9 @@ let da = class {
13221
13221
  throw this.logger.error(`GlobalClient request failed for session ${e}:`, i), i;
13222
13222
  }
13223
13223
  }
13224
+ async publish(e, t) {
13225
+ this.validateSessionId(e), this.logger.debug(`GlobalClient publish (fire-and-forget) for session ${e}`), await this.broker.publish(e, t);
13226
+ }
13224
13227
  registerService(e, t, r) {
13225
13228
  this.validateSessionId(e), this.logger.debug(`GlobalClient registering service ${t} for session ${e}`), this.broker.registerService(e, t, r);
13226
13229
  }
@@ -13637,12 +13640,15 @@ let pa = class {
13637
13640
  this.brokerHttpUrl = r.replace(/^ws:\/\//, "http://").replace(/^wss:\/\//, "https://"), this.logger.info(`RemoteMultiplexGlobalClient initialized with broker: ${this.brokerHttpUrl}`);
13638
13641
  }
13639
13642
  brokerHttpUrl;
13643
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13640
13644
  subscribeEventType(e, t, r) {
13641
13645
  this.logger.warn("RemoteMultiplexGlobalClient does not support subscribeEventType");
13642
13646
  }
13647
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13643
13648
  unsubscribeEventType(e, t, r) {
13644
13649
  this.logger.warn("RemoteMultiplexGlobalClient does not support unsubscribeEventType");
13645
13650
  }
13651
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13646
13652
  async publishEventType(e, t, r) {
13647
13653
  this.logger.warn("RemoteMultiplexGlobalClient does not support publishEventType");
13648
13654
  }
@@ -13679,9 +13685,40 @@ let pa = class {
13679
13685
  throw this.logger.error(`RemoteGlobalClient request failed for session ${e}:`, n), n;
13680
13686
  }
13681
13687
  }
13688
+ /**
13689
+ * Send RPC request to host broker via HTTP (fire-and-forget)
13690
+ * Used for AgentWsService methods that don't need a response
13691
+ */
13692
+ async publish(e, t) {
13693
+ this.validateSessionId(e);
13694
+ const r = this.generateCorrelationId();
13695
+ try {
13696
+ this.logger.debug(`RemoteGlobalClient publish (fire-and-forget) for session ${e}`), fetch(this.brokerHttpUrl, {
13697
+ method: "POST",
13698
+ headers: {
13699
+ "Content-Type": "application/json",
13700
+ "X-Session-Id": e,
13701
+ "X-Correlation-Id": r
13702
+ },
13703
+ body: JSON.stringify({
13704
+ correlationId: r,
13705
+ event: t,
13706
+ timestamp: Date.now()
13707
+ }),
13708
+ signal: AbortSignal.timeout(5e3)
13709
+ // Shorter timeout for fire-and-forget
13710
+ }).catch((i) => {
13711
+ this.logger.debug(`RemoteGlobalClient publish failed for session ${e}:`, i);
13712
+ });
13713
+ } catch (i) {
13714
+ this.logger.debug(`RemoteGlobalClient publish error for session ${e}:`, i);
13715
+ }
13716
+ }
13717
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13682
13718
  registerService(e, t, r) {
13683
13719
  this.logger.warn("RemoteMultiplexGlobalClient does not support registerService");
13684
13720
  }
13721
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13685
13722
  unregisterService(e, t) {
13686
13723
  this.logger.warn("RemoteMultiplexGlobalClient does not support unregisterService");
13687
13724
  }
@@ -12484,7 +12484,7 @@ let er = class {
12484
12484
  this.runtimeConfig = fh.parse(e), this.appConfig = mh.parse({
12485
12485
  VITE_INJECT_AGIFLOW_APP_ENDPOINT: "https://agiflow.io",
12486
12486
  VITE_INJECT_AGIFLOW_APP_DOCKER_ENDPOINT: "https://agiflow.io",
12487
- VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.9",
12487
+ VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.10",
12488
12488
  VITE_AGENT_CLI_DOCKER_NETWORK: "",
12489
12489
  VITE_SAVE_RAW: "",
12490
12490
  VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
@@ -13215,6 +13215,9 @@ let la = class {
13215
13215
  throw this.logger.error(`GlobalClient request failed for session ${e}:`, i), i;
13216
13216
  }
13217
13217
  }
13218
+ async publish(e, t) {
13219
+ this.validateSessionId(e), this.logger.debug(`GlobalClient publish (fire-and-forget) for session ${e}`), await this.broker.publish(e, t);
13220
+ }
13218
13221
  registerService(e, t, r) {
13219
13222
  this.validateSessionId(e), this.logger.debug(`GlobalClient registering service ${t} for session ${e}`), this.broker.registerService(e, t, r);
13220
13223
  }
@@ -13634,12 +13637,15 @@ let pa = class {
13634
13637
  this.brokerHttpUrl = r.replace(/^ws:\/\//, "http://").replace(/^wss:\/\//, "https://"), this.logger.info(`RemoteMultiplexGlobalClient initialized with broker: ${this.brokerHttpUrl}`);
13635
13638
  }
13636
13639
  brokerHttpUrl;
13640
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13637
13641
  subscribeEventType(e, t, r) {
13638
13642
  this.logger.warn("RemoteMultiplexGlobalClient does not support subscribeEventType");
13639
13643
  }
13644
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13640
13645
  unsubscribeEventType(e, t, r) {
13641
13646
  this.logger.warn("RemoteMultiplexGlobalClient does not support unsubscribeEventType");
13642
13647
  }
13648
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13643
13649
  async publishEventType(e, t, r) {
13644
13650
  this.logger.warn("RemoteMultiplexGlobalClient does not support publishEventType");
13645
13651
  }
@@ -13676,9 +13682,40 @@ let pa = class {
13676
13682
  throw this.logger.error(`RemoteGlobalClient request failed for session ${e}:`, n), n;
13677
13683
  }
13678
13684
  }
13685
+ /**
13686
+ * Send RPC request to host broker via HTTP (fire-and-forget)
13687
+ * Used for AgentWsService methods that don't need a response
13688
+ */
13689
+ async publish(e, t) {
13690
+ this.validateSessionId(e);
13691
+ const r = this.generateCorrelationId();
13692
+ try {
13693
+ this.logger.debug(`RemoteGlobalClient publish (fire-and-forget) for session ${e}`), fetch(this.brokerHttpUrl, {
13694
+ method: "POST",
13695
+ headers: {
13696
+ "Content-Type": "application/json",
13697
+ "X-Session-Id": e,
13698
+ "X-Correlation-Id": r
13699
+ },
13700
+ body: JSON.stringify({
13701
+ correlationId: r,
13702
+ event: t,
13703
+ timestamp: Date.now()
13704
+ }),
13705
+ signal: AbortSignal.timeout(5e3)
13706
+ // Shorter timeout for fire-and-forget
13707
+ }).catch((i) => {
13708
+ this.logger.debug(`RemoteGlobalClient publish failed for session ${e}:`, i);
13709
+ });
13710
+ } catch (i) {
13711
+ this.logger.debug(`RemoteGlobalClient publish error for session ${e}:`, i);
13712
+ }
13713
+ }
13714
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13679
13715
  registerService(e, t, r) {
13680
13716
  this.logger.warn("RemoteMultiplexGlobalClient does not support registerService");
13681
13717
  }
13718
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13682
13719
  unregisterService(e, t) {
13683
13720
  this.logger.warn("RemoteMultiplexGlobalClient does not support unregisterService");
13684
13721
  }
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { bv as z, bl as H, bw as P, bm as M } from "./index-B-6QlXul.mjs";
2
+ import { bw as z, bm as H, bx as P, bn as M } from "./index-DJ_5nSHk.mjs";
3
3
  import Q from "node:events";
4
4
  import X from "node:child_process";
5
5
  import Z from "node:path";
package/dist/daemon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bg as g, bh as O, bi as e, bj as C, bk as T, bl as y, bm as w, bn as A, bo as I, bp as B, bq as M, br as P, bs as _, bt as L, bu as F } from "./index-B-6QlXul.mjs";
1
+ import { bh as g, bi as O, bj as e, bk as C, bl as T, bm as y, bn as w, bo as A, bp as I, bq as B, br as M, bs as P, bt as _, bu as L, bv as F } from "./index-DJ_5nSHk.mjs";
2
2
  import { useQueryClient as R, useQuery as q, useMutation as E, QueryClientProvider as z, QueryClient as K } from "@tanstack/react-query";
3
3
  import { useDispatch as W, useSelector as N, Provider as $ } from "react-redux";
4
4
  import { useRef as U, useEffect as V, useState as D, useMemo as G } from "react";
@@ -0,0 +1,60 @@
1
+ import { A as a, a as t, b as n, c as S, d as m, e as o, f as E, g as c, h as A, i as g, j as h, k as v, l as u, m as i, n as r, o as R, p, q as D, r as T, s as M, t as q, u as O, v as d, w as k, x as N, y as _, z as P, B as I, C as l, D as C, E as U, F as G, G as L, H as Y, I as f, J as B, K as V, L as x, M as y, N as z, O as b, P as j, Q as w, R as F, S as H, T as J, U as K, V as Q, W, X, Y as Z, Z as $, _ as ee, $ as se, a0 as ae, a1 as te } from "./index-DJ_5nSHk.mjs";
2
+ export {
3
+ a as AGENT_EVENT_TYPES,
4
+ t as AGENT_STATUS,
5
+ n as AGENT_TYPES,
6
+ S as AgentConfigSchema,
7
+ m as AgentSessionDirectControlRequestEventSchema,
8
+ o as AgentSessionErrorAckEventSchema,
9
+ E as AgentSessionErrorRequestEventSchema,
10
+ c as AgentSessionErrorResponseEventSchema,
11
+ A as AgentSessionIdlePromptRequestEventSchema,
12
+ g as AgentSessionMessageDeletedAckEventSchema,
13
+ h as AgentSessionMessageDeletedEventSchema,
14
+ v as AgentSessionMessageInputAckEventSchema,
15
+ u as AgentSessionMessageInputRequestEventSchema,
16
+ i as AgentSessionMessageInputResponseEventSchema,
17
+ r as AgentSessionMessageOutputAckEventSchema,
18
+ R as AgentSessionMessageOutputEndedEventSchema,
19
+ p as AgentSessionMessageOutputPermissionRequestedEventSchema,
20
+ D as AgentSessionMessageOutputRequestEventSchema,
21
+ T as AgentSessionMessageOutputResponseEventSchema,
22
+ M as AgentSessionMessageOutputStartedEventSchema,
23
+ q as AgentSessionMessageStdinRequestEventSchema,
24
+ O as AgentSessionMessageStdoutResponseEventSchema,
25
+ d as AgentSessionMessageStreamChunkEventSchema,
26
+ k as AgentSessionResizeRequestEventSchema,
27
+ N as AgentSessionStatusAckEventSchema,
28
+ _ as AgentSessionStatusRequestEventSchema,
29
+ P as AgentSessionStatusResponseEventSchema,
30
+ I as AgentSessionStopAgentRequestEventSchema,
31
+ l as AgentStatusSchema,
32
+ C as AgentTypeSchema,
33
+ U as BaseAgentSessionEventSchema,
34
+ G as BaseDaemonEventSchema,
35
+ L as COMMANDS,
36
+ Y as DAEMON_EVENT_TYPES,
37
+ f as DAEMON_STATUS,
38
+ B as DaemonErrorRequestEventSchema,
39
+ V as DaemonErrorResponseEventSchema,
40
+ x as DaemonListAgentSessionsAckEventSchema,
41
+ y as DaemonListAgentSessionsRequestEventSchema,
42
+ z as DaemonListAgentSessionsResponseEventSchema,
43
+ b as DaemonStartAgentAckEventSchema,
44
+ j as DaemonStartAgentRequestEventSchema,
45
+ w as DaemonStartAgentResponseEventSchema,
46
+ F as DaemonStatusRequestEventSchema,
47
+ H as DaemonStatusResponseEventSchema,
48
+ J as DaemonStatusSchema,
49
+ K as DaemonStopAgentAckEventSchema,
50
+ Q as DaemonStopAgentRequestEventSchema,
51
+ W as DaemonStopAgentResponseEventSchema,
52
+ X as DaemonTerminateAckEventSchema,
53
+ Z as DaemonTerminateRequestEventSchema,
54
+ $ as DaemonTerminateResponseEventSchema,
55
+ ee as EventTargetSchema,
56
+ se as OUTPUT_STREAMS,
57
+ ae as OutputStreamSchema,
58
+ te as TraceIdSchema
59
+ };
60
+ //# sourceMappingURL=index-BYi9XYLR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BYi9XYLR.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,4 +1,4 @@
1
- import { aj as s, ai as t, aa as o, af as c, ae as S, a1 as m, a5 as r, ah as n, a9 as h, a7 as g, am as l, a8 as p, ad as M, ak as P, ag as T, a6 as u, a2 as i, ab as C, ac as v, a4 as I, a3 as d, al as x, an as A, ao as R, aq as f, ap as q, ar as V } from "./index-B-6QlXul.mjs";
1
+ import { ak as s, aj as t, ab as o, ag as c, af as S, a2 as m, a6 as r, ai as n, aa as h, a8 as g, an as l, a9 as p, ae as M, al as P, ah as T, a7 as u, a3 as i, ac as C, ad as v, a5 as I, a4 as d, am as x, ao as A, ap as R, ar as f, aq as q, as as V } from "./index-DJ_5nSHk.mjs";
2
2
  export {
3
3
  s as AgentMessageCreateSchema,
4
4
  t as AgentMessageTypeSchema,
@@ -28,4 +28,4 @@ export {
28
28
  q as createTextPart,
29
29
  V as createToolInvocationInput
30
30
  };
31
- //# sourceMappingURL=index-BXTun-Sm.mjs.map
31
+ //# sourceMappingURL=index-CJx1mjmc.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CJx1mjmc.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}