@evident-ai/cli 3.0.1-dev.ced5d3d → 3.0.1-dev.d307bdc

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
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/index.ts
4
- import { createRequire } from "module";
5
4
  import { Command } from "commander";
6
5
 
7
6
  // src/commands/login.ts
@@ -716,13 +715,13 @@ async function waitForOpenCodeHealth(port, timeoutMs = 3e4) {
716
715
 
717
716
  // src/lib/opencode/opencode-version-gate.ts
718
717
  var QUEUE_VALIDATED_OPENCODE_VERSIONS = ["1.17.11"];
719
- function isQueueValidatedVersion(version2) {
720
- if (!version2) return false;
721
- return QUEUE_VALIDATED_OPENCODE_VERSIONS.includes(version2);
718
+ function isQueueValidatedVersion(version) {
719
+ if (!version) return false;
720
+ return QUEUE_VALIDATED_OPENCODE_VERSIONS.includes(version);
722
721
  }
723
- function buildOpenCodeVersionWarning(version2) {
724
- if (isQueueValidatedVersion(version2)) return null;
725
- const detected = version2 ? `v${version2}` : "unknown";
722
+ function buildOpenCodeVersionWarning(version) {
723
+ if (isQueueValidatedVersion(version)) return null;
724
+ const detected = version ? `v${version}` : "unknown";
726
725
  const validated = QUEUE_VALIDATED_OPENCODE_VERSIONS.map((v) => `v${v}`).join(", ");
727
726
  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.`;
728
727
  }
@@ -2890,8 +2889,8 @@ async function run(options) {
2890
2889
  state.opencodeProcess = oc.process;
2891
2890
  state.opencodeVersion = oc.version;
2892
2891
  state.opencodeConnected = oc.process !== null || oc.version !== null;
2893
- const version2 = state.opencodeVersion ? ` (v${state.opencodeVersion})` : "";
2894
- ocSpinner?.succeed(`OpenCode running on port ${state.port}${version2}`);
2892
+ const version = state.opencodeVersion ? ` (v${state.opencodeVersion})` : "";
2893
+ ocSpinner?.succeed(`OpenCode running on port ${state.port}${version}`);
2895
2894
  const versionWarning = buildOpenCodeVersionWarning(state.opencodeVersion);
2896
2895
  if (versionWarning) {
2897
2896
  log2(state, versionWarning, false);
@@ -3043,9 +3042,8 @@ async function run(options) {
3043
3042
  }
3044
3043
 
3045
3044
  // src/index.ts
3046
- var { version } = createRequire(import.meta.url)("../package.json");
3047
3045
  var program = new Command();
3048
- program.name("evident").description("Run OpenCode locally and connect it to Evident").version(version).option(
3046
+ program.name("evident").description("Run OpenCode locally and connect it to Evident").version("0.1.0").option(
3049
3047
  "--endpoint <url>",
3050
3048
  "Evident API base URL (default: production; e.g. http://localhost:3001)"
3051
3049
  ).option("--tunnel <url>", "Tunnel WebSocket URL (default: production; e.g. ws://localhost:8787)").hook("preAction", (thisCommand) => {