@evident-ai/cli 3.1.1-dev.186f6ef → 3.1.1-dev.3a785a9

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 CHANGED
@@ -734,7 +734,7 @@ function buildOpenCodeVersionWarning(version2) {
734
734
  if (isQueueValidatedVersion(version2)) return null;
735
735
  const detected = version2 ? `v${version2}` : "unknown";
736
736
  const validated = QUEUE_VALIDATED_OPENCODE_VERSIONS.map((v) => `v${v}`).join(", ");
737
- return `Warning: opencode ${detected} is not a queue-validated version (validated: ${validated}). Native message queuing \u2014 which channel (Slack/WhatsApp) message handling relies on \u2014 is unverified on this version; queued/follow-up messages may behave unexpectedly. Continuing anyway. Bumping the validated set requires re-running the queue validation.`;
737
+ return `Warning: opencode ${detected} is not a queue-validated version (validated: ${validated}). Native message queuing \u2014 which channel (Slack) message handling relies on \u2014 is unverified on this version; queued/follow-up messages may behave unexpectedly. Continuing anyway. Bumping the validated set requires re-running the queue validation.`;
738
738
  }
739
739
 
740
740
  // src/lib/opencode/process.ts
@@ -1228,6 +1228,11 @@ async function getModelAttachmentCapability(port, model) {
1228
1228
  }
1229
1229
  const entry = provider.models[modelId];
1230
1230
  if (!entry || typeof entry !== "object") return null;
1231
+ if (entry.capabilities && typeof entry.capabilities === "object") {
1232
+ if (typeof entry.capabilities.attachment === "boolean") {
1233
+ return entry.capabilities.attachment;
1234
+ }
1235
+ }
1231
1236
  return typeof entry.attachment === "boolean" ? entry.attachment : null;
1232
1237
  } catch (err) {
1233
1238
  console.error(
@@ -1795,7 +1800,6 @@ function connectTunnel(options) {
1795
1800
  onConnected,
1796
1801
  onDisconnected,
1797
1802
  onError,
1798
- onRequest,
1799
1803
  onResponse,
1800
1804
  onInfo,
1801
1805
  onDrainPing
@@ -1808,18 +1812,8 @@ function connectTunnel(options) {
1808
1812
  Authorization: authHeader
1809
1813
  }
1810
1814
  });
1811
- const streamStartTimes = /* @__PURE__ */ new Map();
1812
1815
  const forwarder = new StreamForwarder(ws, port, {
1813
- onOpen: (sid, method, path) => {
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
- },
1816
+ onHead: () => onResponse?.(),
1823
1817
  onDrainPing: () => onDrainPing?.()
1824
1818
  });
1825
1819
  const connectionTimeout = setTimeout(() => {
@@ -1895,7 +1889,6 @@ function connectTunnel(options) {
1895
1889
  ws.on("close", (code, reason) => {
1896
1890
  const reasonStr = reason.toString() || upgradeRejection || (code === 1006 ? "abnormal closure" : "No reason provided");
1897
1891
  forwarder.abortAll();
1898
- streamStartTimes.clear();
1899
1892
  onDisconnected?.(code, reasonStr);
1900
1893
  });
1901
1894
  });
@@ -4726,6 +4719,11 @@ async function run(options) {
4726
4719
  { command: "run" },
4727
4720
  state.agentId
4728
4721
  );
4722
+ const agentFlagNotice = "--agent is deprecated, use --runner instead; will be removed in a future release.";
4723
+ log2(state, agentFlagNotice, "warn");
4724
+ if (state.interactive && !state.json) {
4725
+ logActivity(state, { type: "info", level: "warn", message: agentFlagNotice });
4726
+ }
4729
4727
  }
4730
4728
  if (state.idleTimeout === null && (process.env.GITHUB_ACTIONS || process.env.CI)) {
4731
4729
  log2(
@@ -4784,6 +4782,11 @@ async function run(options) {
4784
4782
  { command: "run" },
4785
4783
  state.agentId
4786
4784
  );
4785
+ const agentKeyNotice = "EVIDENT_AGENT_KEY is deprecated, use EVIDENT_RUNNER_KEY instead; will be removed in a future release.";
4786
+ log2(state, agentKeyNotice, "warn");
4787
+ if (state.interactive && !state.json) {
4788
+ logActivity(state, { type: "info", level: "warn", message: agentKeyNotice });
4789
+ }
4787
4790
  }
4788
4791
  if (!state.agentId) {
4789
4792
  if (credentials2.authType === "agent_key") {