@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.
- package/dist/claudeNotification.js +168 -131
- package/dist/claudePermissionRequest.js +230 -193
- package/dist/claudePostToolUse.js +38 -1
- package/dist/claudePreToolUse.js +704 -667
- package/dist/claudeSessionEnd.js +175 -138
- package/dist/claudeSessionStart.js +38 -1
- package/dist/claudeStop.js +38 -1
- package/dist/cli.js +1 -1
- package/dist/daemon.js +1 -1
- package/dist/index-BYi9XYLR.mjs +60 -0
- package/dist/index-BYi9XYLR.mjs.map +1 -0
- package/dist/{index-BXTun-Sm.mjs → index-CJx1mjmc.mjs} +2 -2
- package/dist/index-CJx1mjmc.mjs.map +1 -0
- package/dist/{index-B-6QlXul.mjs → index-DJ_5nSHk.mjs} +7148 -6680
- package/dist/index-DJ_5nSHk.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-B-6QlXul.mjs.map +0 -1
- package/dist/index-BXTun-Sm.mjs.map +0 -1
- package/dist/index-ovmNbtD-.mjs +0 -59
- package/dist/index-ovmNbtD-.mjs.map +0 -1
|
@@ -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.
|
|
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
|
}
|