@zenera/neo 1.1.55 → 1.1.56

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/types.d.ts CHANGED
@@ -229,6 +229,7 @@ export declare const MEMORY_GREP_TOOL = "memory_grep";
229
229
  export declare const MEMORY_LOAD_TOOL = "memory_load";
230
230
  export declare const MEMORY_COMMIT_TOOL = "memory_commit";
231
231
  export declare const MEMORY_FORGET_TOOL = "memory_forget";
232
+ export declare const MEMORY_COPY_FILE_TOOL = "memory_copy_file";
232
233
  export declare const SKILL_SEARCH_TOOL = "skill_search";
233
234
  export declare const SKILL_LOAD_TOOL = "skill_load";
234
235
  export declare function parseArgs(raw: string): Record<string, unknown>;
package/dist/types.js CHANGED
@@ -169,6 +169,7 @@ export const MEMORY_GREP_TOOL = 'memory_grep';
169
169
  export const MEMORY_LOAD_TOOL = 'memory_load';
170
170
  export const MEMORY_COMMIT_TOOL = 'memory_commit';
171
171
  export const MEMORY_FORGET_TOOL = 'memory_forget';
172
+ export const MEMORY_COPY_FILE_TOOL = 'memory_copy_file';
172
173
  export const SKILL_SEARCH_TOOL = 'skill_search';
173
174
  export const SKILL_LOAD_TOOL = 'skill_load';
174
175
  export function parseArgs(raw) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenera/neo",
3
- "version": "1.1.55",
3
+ "version": "1.1.56",
4
4
  "description": "A multi-agent runtime for Node.js: agents, models, tools, skills, memory and an append-only trajectory.",
5
5
  "keywords": [
6
6
  "agents",
@@ -62,6 +62,7 @@
62
62
  "prepack": "tsc -b"
63
63
  },
64
64
  "dependencies": {
65
+ "@zenera/sandbox": "^1.1.56",
65
66
  "graphology": "^0.26.0",
66
67
  "yaml": "^2.9.1",
67
68
  "zod": "^4.6.7"
@@ -1,79 +0,0 @@
1
- import { type AnyTool } from '../types.ts';
2
- /** Where a project's `assets/` directory appears in the agent's namespace. */
3
- export declare const ASSETS_MOUNT = "/assets";
4
- /** ...and where its skill catalog does, so a skill's scripts can be run. */
5
- export declare const SKILLS_MOUNT = "/skills";
6
- /**
7
- * A second tree the agent can reach, under a name of its own. Structurally the
8
- * same as a `SandboxMount` on purpose: one directory is one mount, and the host
9
- * hands the identical array to the file tools and to the container so that both
10
- * call it by the same name.
11
- */
12
- export interface WorkspaceMount {
13
- /** absolute host path; must already exist */
14
- host: string;
15
- /** absolute path the agent names it by, e.g. `/assets` */
16
- at: string;
17
- /** defaults to true — an extra tree is reference material unless said otherwise */
18
- readOnly?: boolean;
19
- }
20
- export interface WorkspaceOptions {
21
- root: string;
22
- /** refuse every mutating tool; `zen run --read-only` */
23
- readOnly?: boolean;
24
- /**
25
- * An absolute path the root is *also* known by, because something else has
26
- * mounted it there — the sandbox bind-mounts the workspace at `/workspace`,
27
- * so `run_command` returns compiler errors, stack traces and `pwd` output
28
- * naming files under a prefix the file tools would otherwise refuse. Set
29
- * it and both spellings reach the same file.
30
- */
31
- mount?: string;
32
- /** further trees, each under its own name; read-only unless one says otherwise */
33
- mounts?: readonly WorkspaceMount[];
34
- }
35
- export declare class Workspace {
36
- #private;
37
- readonly root: string;
38
- readonly readOnly: boolean;
39
- readonly mount: string | undefined;
40
- /** the extra trees, resolved — the primary root is not among them */
41
- readonly mounts: readonly Required<WorkspaceMount>[];
42
- constructor(opts: WorkspaceOptions);
43
- /**
44
- * The one gate. Returns an absolute path inside one of the roots, or throws.
45
- *
46
- * A path that does not exist yet cannot be realpath'd, so the nearest
47
- * existing ancestor is resolved instead and the remainder appended — which
48
- * is exactly what a create needs and closes the same hole a create opens.
49
- */
50
- within(input: string, opts?: {
51
- write?: boolean;
52
- }): string;
53
- /** Where a path sits under its own root, in posix form. `.` is that root. */
54
- rel(path: string): string;
55
- /**
56
- * How a path is written back to the model, and the reason `mount` is not
57
- * only about what comes in. A shell in the sandbox prints the mounted name
58
- * — `find` returns /workspace/src/a.ts — so if the file tools answered with
59
- * `src/a.ts` the model would be holding two vocabularies for one tree and
60
- * would have to translate between them to feed one tool's output to the
61
- * other. With a mount configured every path in and every path out is the
62
- * mounted one, and copying a path from a command's output into read_file
63
- * is exact. Without one, everything stays relative as before.
64
- */
65
- show(path: string): string;
66
- /** Whether a resolved path *is* one of the roots. Nothing may move or delete one. */
67
- isRoot(path: string): boolean;
68
- mutable(): void;
69
- }
70
- export type FileFormat = 'text' | 'binary' | 'image' | 'audio' | 'video' | 'pdf' | 'archive';
71
- export interface FileInfo {
72
- name: string;
73
- kind: 'file' | 'dir' | 'link' | 'other';
74
- format?: FileFormat;
75
- bytes?: number;
76
- lines?: number;
77
- }
78
- export declare function workspaceTools<TCtx = unknown>(opts: WorkspaceOptions): AnyTool<TCtx>[];
79
- //# sourceMappingURL=workspace.d.ts.map