@evident-ai/cli 3.1.1-dev.186f6ef → 3.1.1-dev.5376764
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 +11 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1795,7 +1795,6 @@ function connectTunnel(options) {
|
|
|
1795
1795
|
onConnected,
|
|
1796
1796
|
onDisconnected,
|
|
1797
1797
|
onError,
|
|
1798
|
-
onRequest,
|
|
1799
1798
|
onResponse,
|
|
1800
1799
|
onInfo,
|
|
1801
1800
|
onDrainPing
|
|
@@ -1808,18 +1807,8 @@ function connectTunnel(options) {
|
|
|
1808
1807
|
Authorization: authHeader
|
|
1809
1808
|
}
|
|
1810
1809
|
});
|
|
1811
|
-
const streamStartTimes = /* @__PURE__ */ new Map();
|
|
1812
1810
|
const forwarder = new StreamForwarder(ws, port, {
|
|
1813
|
-
|
|
1814
|
-
if (path === TUNNEL_DRAIN_PING_PATH) return;
|
|
1815
|
-
streamStartTimes.set(sid, Date.now());
|
|
1816
|
-
onRequest?.(method, path, sid);
|
|
1817
|
-
},
|
|
1818
|
-
onHead: (sid, status) => {
|
|
1819
|
-
const startedAt = streamStartTimes.get(sid);
|
|
1820
|
-
streamStartTimes.delete(sid);
|
|
1821
|
-
onResponse?.(status, startedAt ? Date.now() - startedAt : 0, sid);
|
|
1822
|
-
},
|
|
1811
|
+
onHead: () => onResponse?.(),
|
|
1823
1812
|
onDrainPing: () => onDrainPing?.()
|
|
1824
1813
|
});
|
|
1825
1814
|
const connectionTimeout = setTimeout(() => {
|
|
@@ -1895,7 +1884,6 @@ function connectTunnel(options) {
|
|
|
1895
1884
|
ws.on("close", (code, reason) => {
|
|
1896
1885
|
const reasonStr = reason.toString() || upgradeRejection || (code === 1006 ? "abnormal closure" : "No reason provided");
|
|
1897
1886
|
forwarder.abortAll();
|
|
1898
|
-
streamStartTimes.clear();
|
|
1899
1887
|
onDisconnected?.(code, reasonStr);
|
|
1900
1888
|
});
|
|
1901
1889
|
});
|
|
@@ -4726,6 +4714,11 @@ async function run(options) {
|
|
|
4726
4714
|
{ command: "run" },
|
|
4727
4715
|
state.agentId
|
|
4728
4716
|
);
|
|
4717
|
+
const agentFlagNotice = "--agent is deprecated, use --runner instead; will be removed in a future release.";
|
|
4718
|
+
log2(state, agentFlagNotice, "warn");
|
|
4719
|
+
if (state.interactive && !state.json) {
|
|
4720
|
+
logActivity(state, { type: "info", level: "warn", message: agentFlagNotice });
|
|
4721
|
+
}
|
|
4729
4722
|
}
|
|
4730
4723
|
if (state.idleTimeout === null && (process.env.GITHUB_ACTIONS || process.env.CI)) {
|
|
4731
4724
|
log2(
|
|
@@ -4784,6 +4777,11 @@ async function run(options) {
|
|
|
4784
4777
|
{ command: "run" },
|
|
4785
4778
|
state.agentId
|
|
4786
4779
|
);
|
|
4780
|
+
const agentKeyNotice = "EVIDENT_AGENT_KEY is deprecated, use EVIDENT_RUNNER_KEY instead; will be removed in a future release.";
|
|
4781
|
+
log2(state, agentKeyNotice, "warn");
|
|
4782
|
+
if (state.interactive && !state.json) {
|
|
4783
|
+
logActivity(state, { type: "info", level: "warn", message: agentKeyNotice });
|
|
4784
|
+
}
|
|
4787
4785
|
}
|
|
4788
4786
|
if (!state.agentId) {
|
|
4789
4787
|
if (credentials2.authType === "agent_key") {
|