@taewooopark/agent-blackbox 0.43.0 → 0.44.0

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/cli.js +25 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1107,8 +1107,8 @@ function removeManagedBlock(content) {
1107
1107
  // apps/daemon/dist/cli.js
1108
1108
  import { spawn as spawn2 } from "node:child_process";
1109
1109
  import { existsSync } from "node:fs";
1110
- import { fileURLToPath } from "node:url";
1111
- import { dirname as dirname3, resolve } from "node:path";
1110
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
1111
+ import { dirname as dirname4, resolve } from "node:path";
1112
1112
 
1113
1113
  // apps/daemon/dist/dashboardServer.js
1114
1114
  import { createReadStream } from "node:fs";
@@ -1177,6 +1177,11 @@ async function startDashboardServer(options) {
1177
1177
  };
1178
1178
  }
1179
1179
 
1180
+ // apps/daemon/dist/index.js
1181
+ import { readFileSync } from "node:fs";
1182
+ import { dirname as dirname3, join as join5 } from "node:path";
1183
+ import { fileURLToPath } from "node:url";
1184
+
1180
1185
  // packages/storage/src/ndjson.ts
1181
1186
  import { appendFile, mkdir, readFile as readFile2 } from "node:fs/promises";
1182
1187
  import { dirname } from "node:path";
@@ -1992,14 +1997,30 @@ function isNodeError2(error) {
1992
1997
  }
1993
1998
 
1994
1999
  // apps/daemon/dist/index.js
1995
- var AGENT_BLACKBOX_DAEMON_VERSION = "0.1.0";
2000
+ function resolvePackageVersion() {
2001
+ let dir = dirname3(fileURLToPath(import.meta.url));
2002
+ for (let i = 0; i < 6; i += 1) {
2003
+ try {
2004
+ const pkg = JSON.parse(readFileSync(join5(dir, "package.json"), "utf8"));
2005
+ if (typeof pkg.version === "string" && pkg.version.length > 0)
2006
+ return pkg.version;
2007
+ } catch {
2008
+ }
2009
+ const parent = dirname3(dir);
2010
+ if (parent === dir)
2011
+ break;
2012
+ dir = parent;
2013
+ }
2014
+ return "0.0.0";
2015
+ }
2016
+ var AGENT_BLACKBOX_DAEMON_VERSION = resolvePackageVersion();
1996
2017
  function describeDaemon() {
1997
2018
  return "Agent-Blackbox daemon: local ingest, replay, and dashboard bridge.";
1998
2019
  }
1999
2020
 
2000
2021
  // apps/daemon/dist/cli.js
2001
2022
  var args = process.argv.slice(2);
2002
- var cliDir = dirname3(fileURLToPath(import.meta.url));
2023
+ var cliDir = dirname4(fileURLToPath2(import.meta.url));
2003
2024
  var repoRoot = resolve(cliDir, "../../..");
2004
2025
  var firstExisting = (paths) => paths.find((p) => existsSync(p));
2005
2026
  var dashboardDistDir = firstExisting([resolve(cliDir, "dashboard"), resolve(repoRoot, "apps/dashboard/dist")]) ?? resolve(repoRoot, "apps/dashboard/dist");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taewooopark/agent-blackbox",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "Local-first flight recorder + context-efficiency profiler for coding agents (OpenCode). Run with npx.",
5
5
  "type": "module",
6
6
  "license": "MIT",