@zenera/cli 1.1.57 → 1.1.59

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.
@@ -1,4 +1,4 @@
1
- import type { Workspace } from '@zenera/neo';
1
+ import { type Workspace } from '@zenera/neo';
2
2
  import type { Block, Span } from './wrap.ts';
3
3
  export interface Mounts {
4
4
  /** every name a tree is reached by, longest first */
@@ -8,7 +8,12 @@ export interface Mounts {
8
8
  /** the host file a workspace-relative path names, only when that file exists */
9
9
  file(path: string): string | undefined;
10
10
  }
11
- /** Exactly the trees the file tools reach, under the same containment rule. */
11
+ /**
12
+ * Exactly the trees the file tools reach, under the same containment: a name
13
+ * becomes a link only where the files are on this machine, and only to where
14
+ * the fs itself would go — a symlink out of a tree is no more a link than it is
15
+ * a file the tools reach.
16
+ */
12
17
  export declare function mountsOf(files: Workspace): Mounts;
13
18
  /** The host `file:` url a mounted path names, or nothing. */
14
19
  export declare function mountUrl(token: string, mounts: Mounts): string | undefined;
package/dist/tui/links.js CHANGED
@@ -1,11 +1,22 @@
1
+ import { RootedFs } from '@zenera/neo';
1
2
  import { statSync } from 'node:fs';
2
3
  import { pathToFileURL } from 'node:url';
3
- /** Exactly the trees the file tools reach, under the same containment rule. */
4
+ /**
5
+ * Exactly the trees the file tools reach, under the same containment: a name
6
+ * becomes a link only where the files are on this machine, and only to where
7
+ * the fs itself would go — a symlink out of a tree is no more a link than it is
8
+ * a file the tools reach.
9
+ */
4
10
  export function mountsOf(files) {
5
- const names = [...(files.mount ? [files.mount] : []), ...files.mounts.map((m) => m.at)];
11
+ const fs = files.fs instanceof RootedFs ? files.fs : undefined;
12
+ const names = files.mount ? files.trees() : files.trees().slice(1);
6
13
  const resolve = (path) => {
14
+ const at = files.locate(path)?.at;
15
+ if (!fs || !at) {
16
+ return undefined;
17
+ }
7
18
  try {
8
- return files.within(path);
19
+ return fs.hostPath(at);
9
20
  }
10
21
  catch {
11
22
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenera/cli",
3
- "version": "1.1.57",
3
+ "version": "1.1.59",
4
4
  "description": "Command-line front end for @zenera/neo: agentic projects you can run, share and commit.",
5
5
  "keywords": [
6
6
  "agents",
@@ -54,9 +54,9 @@
54
54
  "@google/genai": "^2.30.0",
55
55
  "@inkjs/ui": "^2.0.0",
56
56
  "@openrouter/sdk": "^1.4.25",
57
- "@zenera/engine": "^1.1.57",
58
- "@zenera/neo": "^1.1.57",
59
- "@zenera/view": "^1.1.57",
57
+ "@zenera/engine": "^1.1.59",
58
+ "@zenera/neo": "^1.1.59",
59
+ "@zenera/view": "^1.1.59",
60
60
  "google-auth-library": "^10.0.0",
61
61
  "ink": "^7.1.1",
62
62
  "openai": "^6.0.0",