@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 +1 -1
- package/src/commands/init.ts +5 -1
- package/src/commands/serve.ts +4 -2
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ag-eco/agentplate-cli",
|
|
3
|
-
"version": "0.13.
|
|
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",
|
package/src/commands/init.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|
package/src/commands/serve.ts
CHANGED
|
@@ -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
|
-
|
|
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(
|
|
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