@agiflowai/agent-cli 0.2.6 → 0.2.8
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/CHANGELOG.md +8 -0
- package/dist/claudeNotification.js +1 -1
- package/dist/claudePermissionRequest.js +1 -1
- package/dist/claudePostToolUse.js +1 -1
- package/dist/claudePreToolUse.js +1 -1
- package/dist/claudeSessionEnd.js +1 -1
- package/dist/claudeSessionStart.js +1 -1
- package/dist/claudeStop.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/daemon.js +1 -1
- package/dist/{index-CPSRdi5k.mjs → index-B_WqaHDe.mjs} +30 -11
- package/dist/index-B_WqaHDe.mjs.map +1 -0
- package/dist/{index-BKpNk4j3.mjs → index-BoyNKd-d.mjs} +2 -2
- package/dist/index-BoyNKd-d.mjs.map +1 -0
- package/dist/{index-T6apYL3S.mjs → index-C3DrOR0R.mjs} +2 -2
- package/dist/index-C3DrOR0R.mjs.map +1 -0
- package/dist/index.js +2 -2
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/index-BKpNk4j3.mjs.map +0 -1
- package/dist/index-CPSRdi5k.mjs.map +0 -1
- package/dist/index-T6apYL3S.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -12491,7 +12491,7 @@ let er = class {
|
|
|
12491
12491
|
this.runtimeConfig = vh.parse(e), this.appConfig = ph.parse({
|
|
12492
12492
|
VITE_INJECT_AGIFLOW_APP_ENDPOINT: "https://agiflow.io",
|
|
12493
12493
|
VITE_INJECT_AGIFLOW_APP_DOCKER_ENDPOINT: "https://agiflow.io",
|
|
12494
|
-
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.
|
|
12494
|
+
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.7",
|
|
12495
12495
|
VITE_AGENT_CLI_DOCKER_NETWORK: "",
|
|
12496
12496
|
VITE_SAVE_RAW: "",
|
|
12497
12497
|
VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
|
|
@@ -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.2.
|
|
12493
|
+
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.7",
|
|
12494
12494
|
VITE_AGENT_CLI_DOCKER_NETWORK: "",
|
|
12495
12495
|
VITE_SAVE_RAW: "",
|
|
12496
12496
|
VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
|
|
@@ -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.2.
|
|
12485
|
+
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.7",
|
|
12486
12486
|
VITE_AGENT_CLI_DOCKER_NETWORK: "",
|
|
12487
12487
|
VITE_SAVE_RAW: "",
|
|
12488
12488
|
VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
|
package/dist/claudePreToolUse.js
CHANGED
|
@@ -12410,7 +12410,7 @@ let Kn = class {
|
|
|
12410
12410
|
this.runtimeConfig = dh.parse(e), this.appConfig = fh.parse({
|
|
12411
12411
|
VITE_INJECT_AGIFLOW_APP_ENDPOINT: "https://agiflow.io",
|
|
12412
12412
|
VITE_INJECT_AGIFLOW_APP_DOCKER_ENDPOINT: "https://agiflow.io",
|
|
12413
|
-
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.
|
|
12413
|
+
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.7",
|
|
12414
12414
|
VITE_AGENT_CLI_DOCKER_NETWORK: "",
|
|
12415
12415
|
VITE_SAVE_RAW: "",
|
|
12416
12416
|
VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
|
package/dist/claudeSessionEnd.js
CHANGED
|
@@ -12410,7 +12410,7 @@ let Wn = class {
|
|
|
12410
12410
|
this.runtimeConfig = ch.parse(e), this.appConfig = lh.parse({
|
|
12411
12411
|
VITE_INJECT_AGIFLOW_APP_ENDPOINT: "https://agiflow.io",
|
|
12412
12412
|
VITE_INJECT_AGIFLOW_APP_DOCKER_ENDPOINT: "https://agiflow.io",
|
|
12413
|
-
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.
|
|
12413
|
+
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.7",
|
|
12414
12414
|
VITE_AGENT_CLI_DOCKER_NETWORK: "",
|
|
12415
12415
|
VITE_SAVE_RAW: "",
|
|
12416
12416
|
VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
|
|
@@ -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.2.
|
|
12493
|
+
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.7",
|
|
12494
12494
|
VITE_AGENT_CLI_DOCKER_NETWORK: "",
|
|
12495
12495
|
VITE_SAVE_RAW: "",
|
|
12496
12496
|
VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
|
package/dist/claudeStop.js
CHANGED
|
@@ -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.2.
|
|
12487
|
+
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.7",
|
|
12488
12488
|
VITE_AGENT_CLI_DOCKER_NETWORK: "",
|
|
12489
12489
|
VITE_SAVE_RAW: "",
|
|
12490
12490
|
VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { bw as z, bm as H, bx as P, bn as M } from "./index-
|
|
2
|
+
import { bw as z, bm as H, bx as P, bn as M } from "./index-B_WqaHDe.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,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i, Fragment as F } from "react/jsx-runtime";
|
|
2
|
-
import { bi as b, bj as V, bk as Y, bl as $, bm as S, bn as D, bo as X, bp as H, bq as J, br as Z, bs as ee, bt as re, bu as ne, bv as oe } from "./index-
|
|
2
|
+
import { bi as b, bj as V, bk as Y, bl as $, bm as S, bn as D, bo as X, bp as H, bq as J, br as Z, bs as ee, bt as re, bu as ne, bv as oe } from "./index-B_WqaHDe.mjs";
|
|
3
3
|
import { useQueryClient as ie, useQuery as te, useMutation as M, QueryClientProvider as ce, QueryClient as le } from "@tanstack/react-query";
|
|
4
4
|
import { useDispatch as de, useSelector as u, shallowEqual as ae, Provider as se } from "react-redux";
|
|
5
5
|
import P, { useRef as L, useEffect as _, useState as C, useCallback as ue, useMemo as he } from "react";
|
|
@@ -12494,7 +12494,7 @@ let Vo = class {
|
|
|
12494
12494
|
this.runtimeConfig = xv.parse(t), this.appConfig = iw.parse({
|
|
12495
12495
|
VITE_INJECT_AGIFLOW_APP_ENDPOINT: "https://agiflow.io",
|
|
12496
12496
|
VITE_INJECT_AGIFLOW_APP_DOCKER_ENDPOINT: "https://agiflow.io",
|
|
12497
|
-
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.
|
|
12497
|
+
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.7",
|
|
12498
12498
|
VITE_AGENT_CLI_DOCKER_NETWORK: "",
|
|
12499
12499
|
VITE_SAVE_RAW: "",
|
|
12500
12500
|
VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
|
|
@@ -13350,7 +13350,9 @@ const nt = Ie({
|
|
|
13350
13350
|
apiKey: z().optional(),
|
|
13351
13351
|
endpoint: z().optional()
|
|
13352
13352
|
}).optional(),
|
|
13353
|
-
gitClone: Pw.optional()
|
|
13353
|
+
gitClone: Pw.optional(),
|
|
13354
|
+
apiUrl: z().optional(),
|
|
13355
|
+
serverUrl: z().optional()
|
|
13354
13356
|
}), ap = nt.extend({
|
|
13355
13357
|
eventType: ee(Ge.START_AGENT).default(Ge.START_AGENT),
|
|
13356
13358
|
command: ee(oe.REQUEST).default(oe.REQUEST),
|
|
@@ -13931,11 +13933,22 @@ let Su = class {
|
|
|
13931
13933
|
const r = qR(e);
|
|
13932
13934
|
this.containers.set(e, r);
|
|
13933
13935
|
const i = r.get($e.AgentConfigService), n = t.payload.agentConfig ? JSON.parse(JSON.stringify(t.payload.agentConfig)) : {};
|
|
13934
|
-
i.initializeAgentSession(
|
|
13936
|
+
if (i.initializeAgentSession(
|
|
13935
13937
|
ii(t.payload.agentType),
|
|
13936
13938
|
e,
|
|
13937
13939
|
n
|
|
13938
|
-
)
|
|
13940
|
+
), n.apiUrl || n.serverUrl) {
|
|
13941
|
+
const d = n.apiUrl, h = n.serverUrl || n.apiUrl;
|
|
13942
|
+
d && (i.setHttpOptions({
|
|
13943
|
+
apiUrl: d,
|
|
13944
|
+
agentSessionId: e
|
|
13945
|
+
}), this.logger.debug(`HTTP options set with apiUrl: ${d}`)), h && (i.setWsOptions({
|
|
13946
|
+
serverUrl: h,
|
|
13947
|
+
agentSessionId: e,
|
|
13948
|
+
reconnectInterval: 5e3
|
|
13949
|
+
// Default reconnect interval
|
|
13950
|
+
}), this.logger.debug(`WebSocket options set with serverUrl: ${h}`));
|
|
13951
|
+
}
|
|
13939
13952
|
const o = /* @__PURE__ */ new Set(), s = r.get($e.AgentWsService);
|
|
13940
13953
|
this.broker.registerService(e, $e.AgentWsService.description, s), o.add($e.AgentWsService.description), this.broker.registerWsService(e, s);
|
|
13941
13954
|
const a = r.get($e.AgentHttpService);
|
|
@@ -14656,7 +14669,8 @@ let Zo = class {
|
|
|
14656
14669
|
};
|
|
14657
14670
|
}
|
|
14658
14671
|
async getOrganizationId() {
|
|
14659
|
-
|
|
14672
|
+
const t = await this.load();
|
|
14673
|
+
return t?.organizationId ? t.organizationId : process.env.AGENT_ORGANIZATION_ID ? process.env.AGENT_ORGANIZATION_ID : this.subEnvManager?.organizationId ? this.subEnvManager.organizationId : null;
|
|
14660
14674
|
}
|
|
14661
14675
|
async getDeviceId() {
|
|
14662
14676
|
return (await this.load())?.deviceId || null;
|
|
@@ -19701,7 +19715,7 @@ let Bu = class {
|
|
|
19701
19715
|
const t = this.agentConfigService.getStoredAgentSessionId();
|
|
19702
19716
|
if (t)
|
|
19703
19717
|
try {
|
|
19704
|
-
const { createGetAgentStatus: e } = await Promise.resolve().then(() => gT), { createSendAgentStatus: r } = await Promise.resolve().then(() => hI), { AGENT_STATUS: i } = await import("./index-
|
|
19718
|
+
const { createGetAgentStatus: e } = await Promise.resolve().then(() => gT), { createSendAgentStatus: r } = await Promise.resolve().then(() => hI), { AGENT_STATUS: i } = await import("./index-BoyNKd-d.mjs"), n = e(t, t), a = (await this.multiplexClient.request(n))?.payload?.result || i.IDLE;
|
|
19705
19719
|
await this.multiplexClient.publish(
|
|
19706
19720
|
r(t, {
|
|
19707
19721
|
agentType: this.agentConfigService.getAgentType() ?? void 0,
|
|
@@ -20951,7 +20965,7 @@ let Mu = class {
|
|
|
20951
20965
|
* Returns environment variables configured in the agent profile
|
|
20952
20966
|
*/
|
|
20953
20967
|
async fetchAgentProfileEnvironment(t) {
|
|
20954
|
-
const e = await this.getAuthHeaders(), r = await this.context.getOrganizationId();
|
|
20968
|
+
const e = await this.getAuthHeaders(), r = this.agentConfig.getOrganizationId() || await this.context.getOrganizationId();
|
|
20955
20969
|
if (!r)
|
|
20956
20970
|
throw new Error("Organization ID is required for fetching agent profile environment");
|
|
20957
20971
|
try {
|
|
@@ -21628,7 +21642,7 @@ let Qo = class {
|
|
|
21628
21642
|
* Middleware layers wrap around this with setup (BEFORE) and cleanup (AFTER)
|
|
21629
21643
|
*/
|
|
21630
21644
|
async launchPty(t) {
|
|
21631
|
-
const { AGENT_STATUS: e } = await import("./index-
|
|
21645
|
+
const { AGENT_STATUS: e } = await import("./index-BoyNKd-d.mjs"), r = t.metadata.agentCommand, i = t.metadata.agentArgs;
|
|
21632
21646
|
if (!r)
|
|
21633
21647
|
throw new Error("launchPty requires metadata.agentCommand to be set by middleware");
|
|
21634
21648
|
const n = await this.getAgentEnvironmentVariablesForContext(t);
|
|
@@ -22779,7 +22793,7 @@ class TT extends cy {
|
|
|
22779
22793
|
if (!e.length) return;
|
|
22780
22794
|
const i = (/* @__PURE__ */ new Date()).toISOString();
|
|
22781
22795
|
try {
|
|
22782
|
-
const { createSelectComponent: n, createToolInvocationInput: o } = await import("./index-
|
|
22796
|
+
const { createSelectComponent: n, createToolInvocationInput: o } = await import("./index-C3DrOR0R.mjs"), { createRequestApproval: s } = await Promise.resolve().then(() => Bi), a = e.map((_) => ({ label: _.text, value: _.number, selected: !!_.selected })), u = n(a), c = o(!1, u), f = s(r.agentSessionId, {
|
|
22783
22797
|
toolName: "selectOption",
|
|
22784
22798
|
toolArgs: { timestamp: i, options: a },
|
|
22785
22799
|
input: c
|
|
@@ -25046,7 +25060,12 @@ let qu = class {
|
|
|
25046
25060
|
sessionAlias: i,
|
|
25047
25061
|
dockerImage: a.dockerImage,
|
|
25048
25062
|
mcps: a.mcps,
|
|
25049
|
-
hooks: a.hooks
|
|
25063
|
+
hooks: a.hooks,
|
|
25064
|
+
// Include apiUrl and serverUrl for HTTP/WS configuration
|
|
25065
|
+
// These will be used by AgentManager to initialize AgentConfigService
|
|
25066
|
+
apiUrl: e,
|
|
25067
|
+
serverUrl: e
|
|
25068
|
+
// WebSocket service uses same URL as HTTP (protocol converted automatically)
|
|
25050
25069
|
}), f = {
|
|
25051
25070
|
id: r,
|
|
25052
25071
|
label: i,
|
|
@@ -42719,4 +42738,4 @@ export {
|
|
|
42719
42738
|
fw as y,
|
|
42720
42739
|
Iv as z
|
|
42721
42740
|
};
|
|
42722
|
-
//# sourceMappingURL=index-
|
|
42741
|
+
//# sourceMappingURL=index-B_WqaHDe.mjs.map
|