tesseract-agent 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. package/dist-bundle/cli.js +11 -2
  2. package/package.json +1 -1
@@ -5840,9 +5840,10 @@ var require_main = __commonJS({
5840
5840
  });
5841
5841
 
5842
5842
  // src/cli.ts
5843
+ import { readFileSync as readFileSync4 } from "node:fs";
5843
5844
  import { fileURLToPath as fileURLToPath2 } from "node:url";
5844
5845
  import { homedir as homedir6 } from "node:os";
5845
- import { join as join12 } from "node:path";
5846
+ import { dirname as dirname8, join as join12 } from "node:path";
5846
5847
  import { createInterface } from "node:readline/promises";
5847
5848
 
5848
5849
  // ../../packages/host-core/dist/control-link.js
@@ -8303,7 +8304,15 @@ async function logs(instanceId, follow) {
8303
8304
  }
8304
8305
 
8305
8306
  // src/cli.ts
8306
- var CLI_VERSION = process.env.CCB_DAEMON_VERSION ?? "0.2.1";
8307
+ function pkgVersion() {
8308
+ try {
8309
+ const p = join12(dirname8(fileURLToPath2(import.meta.url)), "..", "package.json");
8310
+ return JSON.parse(readFileSync4(p, "utf8")).version ?? "0.0.0";
8311
+ } catch {
8312
+ return "0.0.0";
8313
+ }
8314
+ }
8315
+ var CLI_VERSION = process.env.CCB_DAEMON_VERSION ?? pkgVersion();
8307
8316
  function parseFlags(argv) {
8308
8317
  const out = {};
8309
8318
  for (let i = 0; i < argv.length; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tesseract-agent",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "license": "UNLICENSED",
5
5
  "publishConfig": {
6
6
  "access": "public"