@ag-eco/agentplate-cli 0.13.3 → 0.13.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ag-eco/agentplate-cli",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "Multi-agent orchestration for AI coding agents — spawn workers in git worktrees via tmux, coordinate through SQLite mail, merge with tiered conflict resolution. Pluggable runtime adapters for Claude Code, Pi, and more.",
5
5
  "author": "Jaymin West",
6
6
  "license": "MIT",
@@ -96,7 +96,11 @@ const SIBLING_TOOLS: SiblingTool[] = [
96
96
  * tool's entrypoint resolved inside this package. PATH-independent.
97
97
  */
98
98
  function toolArgv(tool: SiblingTool, ...cmd: string[]): string[] {
99
- const entryPath = new URL(tool.entry, import.meta.url).pathname;
99
+ // Resolve via import.meta.dir (a decoded filesystem path) rather than
100
+ // `new URL(...).pathname`, which percent-encodes — a path like
101
+ // `/Users/Jane Doe/...` would become `/Users/Jane%20Doe/...` and fail to
102
+ // spawn, surfacing as a spurious "loam/sprout/trellis unavailable" error.
103
+ const entryPath = join(import.meta.dir, tool.entry);
100
104
  return [process.execPath, entryPath, ...cmd];
101
105
  }
102
106
 
@@ -139,13 +139,15 @@ export function resolveUiDistPath(
139
139
  ): string {
140
140
  const projectDist = join(projectRoot, "ui", "dist");
141
141
  if (_exists(projectDist)) return projectDist;
142
- return new URL("../../ui/dist", import.meta.url).pathname;
142
+ // import.meta.dir is a decoded filesystem path; `new URL(...).pathname` would
143
+ // percent-encode spaces/special chars in the install path and 404 the SPA.
144
+ return join(import.meta.dir, "..", "..", "ui", "dist");
143
145
  }
144
146
 
145
147
  /** Read the package version once at module load to avoid circular imports with index.ts. */
146
148
  const _pkgVersion = (): string => {
147
149
  try {
148
- const raw = readFileSync(new URL("../../package.json", import.meta.url).pathname, "utf-8");
150
+ const raw = readFileSync(join(import.meta.dir, "..", "..", "package.json"), "utf-8");
149
151
  return (JSON.parse(raw) as { version: string }).version;
150
152
  } catch {
151
153
  return "unknown";
package/src/version.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Single source of truth for the package version, shared by every bundled bin
3
3
  * (ap/agentplate, lm/loam, sr, tl). Updated by scripts/version-bump.ts.
4
4
  */
5
- export const VERSION = "0.13.3";
5
+ export const VERSION = "0.13.4";