@zenera/cli 1.3.10 → 1.3.11
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/dist/tui/links.js +6 -11
- package/package.json +6 -6
package/dist/tui/links.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { agentFilePath } from '@zenera/engine';
|
|
1
2
|
import { RootedFs } from '@zenera/neo';
|
|
2
3
|
import { statSync } from 'node:fs';
|
|
3
4
|
import { pathToFileURL } from 'node:url';
|
|
@@ -38,17 +39,11 @@ const TRAILING = /[.,;:!?'"]+$/;
|
|
|
38
39
|
export function mountUrl(token, mounts) {
|
|
39
40
|
let path = token;
|
|
40
41
|
let fragment = '';
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
path = path.slice(0, cut);
|
|
47
|
-
}
|
|
48
|
-
try {
|
|
49
|
-
path = decodeURIComponent(path);
|
|
50
|
-
}
|
|
51
|
-
catch {
|
|
42
|
+
if (token.startsWith(FILE)) {
|
|
43
|
+
// Read as a chat's file route reads it (@zenera/engine), keeping the fragment.
|
|
44
|
+
fragment = /[?#].*$/.exec(token.slice(FILE.length))?.[0] ?? '';
|
|
45
|
+
path = agentFilePath(token);
|
|
46
|
+
if (!path) {
|
|
52
47
|
return undefined;
|
|
53
48
|
}
|
|
54
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenera/cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.11",
|
|
4
4
|
"description": "Command-line front end for @zenera/neo: agentic projects you can run, share and commit.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"@google/genai": "^2.30.0",
|
|
57
57
|
"@inkjs/ui": "^2.0.0",
|
|
58
58
|
"@openrouter/sdk": "^1.4.25",
|
|
59
|
-
"@zenera/engine": "^1.3.
|
|
60
|
-
"@zenera/neo": "^1.3.
|
|
61
|
-
"@zenera/sandbox": "^1.3.
|
|
62
|
-
"@zenera/server": "^1.3.
|
|
63
|
-
"@zenera/view": "^1.3.
|
|
59
|
+
"@zenera/engine": "^1.3.11",
|
|
60
|
+
"@zenera/neo": "^1.3.11",
|
|
61
|
+
"@zenera/sandbox": "^1.3.11",
|
|
62
|
+
"@zenera/server": "^1.3.11",
|
|
63
|
+
"@zenera/view": "^1.3.11",
|
|
64
64
|
"google-auth-library": "^10.0.0",
|
|
65
65
|
"ink": "^7.1.1",
|
|
66
66
|
"openai": "^6.0.0",
|