forgex-agent 0.5.7 → 0.5.8

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/main.js +6 -2
  2. package/package.json +1 -1
package/main.js CHANGED
@@ -5074,7 +5074,7 @@ function loadConfig(options = {}) {
5074
5074
  (root) => resolveFrom(cwd, root)
5075
5075
  );
5076
5076
  const auditLogPath = resolveFrom(cwd, value.security.auditLogPath ?? join(".forgex", "audit.jsonl"));
5077
- const dbPath = resolveFrom(cwd, value.session.dbPath);
5077
+ const dbPath = resolveEventLogPath(cwd, value.session.dbPath);
5078
5078
  const remoteHosts = value.security.remoteHosts.map((host) => ({
5079
5079
  ...host,
5080
5080
  privateKeyPath: resolveFrom(cwd, host.privateKeyPath)
@@ -5247,6 +5247,10 @@ function resolveFrom(cwd, target) {
5247
5247
  const expanded = expandHome(target);
5248
5248
  return isAbsolute(expanded) ? expanded : resolve(cwd, expanded);
5249
5249
  }
5250
+ function resolveEventLogPath(cwd, target) {
5251
+ const resolved = resolveFrom(cwd, target);
5252
+ return resolved.toLowerCase().endsWith(".db") ? `${resolved.slice(0, -3)}.jsonl` : resolved;
5253
+ }
5250
5254
  function resolveWorktreeRoot(configured, cwd, env) {
5251
5255
  const fromEnv = env.FORGEX_WORKTREE_ROOT?.trim();
5252
5256
  if (fromEnv) return resolveFrom(cwd, fromEnv);
@@ -16604,7 +16608,7 @@ function applyApiKey(runtime, key) {
16604
16608
  }
16605
16609
 
16606
16610
  // apps/cli/src/version.ts
16607
- var VERSION = "0.5.7";
16611
+ var VERSION = "0.5.8";
16608
16612
 
16609
16613
  // apps/cli/src/ui/input-edit.ts
16610
16614
  function applyInputKey(state, char, key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forgex-agent",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "ForgeX - TUI-first coding & DevOps agent runtime",
5
5
  "license": "MIT",
6
6
  "type": "module",