@phnx-labs/agents-cli 1.23.27 → 1.23.28
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/CHANGELOG.md +4 -0
- package/dist/lib/projects.js +15 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.23.28
|
|
4
|
+
|
|
5
|
+
- **A folder two projects claim equally belongs to neither.** When two projects share the deepest root that holds a folder (rush and prix both rooted at one monorepo), `agents projects view`/`status --path` and session attribution now answer no project there instead of whichever project file sorts first, so the AGI EXT Project panel asks you to pick rather than quietly showing the wrong one. Each project's own `defaultPath` still resolves to it. Source: cli/src/lib/projects.ts
|
|
6
|
+
|
|
3
7
|
## 1.23.27
|
|
4
8
|
|
|
5
9
|
- **A Claude session started in a symlinked folder shows its real state (PHNX-4387).** `agents ps` and the session feed looked for the transcript under the folder's path as typed, while Claude stores it under the folder's real path, so such a session showed "Running · no transcript" forever. They now look under both and take the newest; `agents run` and project memory sync use the real path too. Source: `cli/src/lib/session/active.ts`, `cli/src/lib/project-key.ts`, `cli/src/lib/exec.ts`, `cli/src/lib/memory.ts`.
|
package/dist/lib/projects.js
CHANGED
|
@@ -327,25 +327,23 @@ export function projectNameForCwd(cwd, defs) {
|
|
|
327
327
|
if (!cwd)
|
|
328
328
|
return undefined;
|
|
329
329
|
const abs = path.resolve(localizeHome(expandLocalHome(cwd)));
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
weakBest = name;
|
|
340
|
-
weakLen = root.length;
|
|
330
|
+
const deepest = (weak) => {
|
|
331
|
+
let name;
|
|
332
|
+
let len = -1;
|
|
333
|
+
for (const r of projectRootsAbs(defs)) {
|
|
334
|
+
if (!!r.weak !== weak || !isUnder(abs, r.abs))
|
|
335
|
+
continue;
|
|
336
|
+
if (r.abs.length > len) {
|
|
337
|
+
name = r.name;
|
|
338
|
+
len = r.abs.length;
|
|
341
339
|
}
|
|
340
|
+
else if (r.abs.length === len && r.name !== name)
|
|
341
|
+
name = undefined;
|
|
342
342
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
348
|
-
return best ?? weakBest;
|
|
343
|
+
return { name, len };
|
|
344
|
+
};
|
|
345
|
+
const strong = deepest(false);
|
|
346
|
+
return strong.len >= 0 ? strong.name : deepest(true).name;
|
|
349
347
|
}
|
|
350
348
|
let projectDefsMemo = null;
|
|
351
349
|
function projectDefsStamp() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/agents-cli",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.28",
|
|
4
4
|
"description": "One CLI for all your AI coding agents - versions, config, cloud dispatch, sessions, and teams (now with first-class Grok Build CLI support)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|