@modelrelay/sdk 8.0.0 → 8.1.0

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/node.d.cts CHANGED
@@ -4,10 +4,10 @@ import { e as Tool, l as ToolRegistry } from './tools-DHCGz_lx.cjs';
4
4
  * Local filesystem tool pack for client-side tool execution.
5
5
  *
6
6
  * Implements tools.v0 contract:
7
- * - fs.read_file - Read workspace-relative files
8
- * - fs.list_files - List files recursively
9
- * - fs.search - Regex search (ripgrep or JS fallback)
10
- * - fs.edit - Replace exact string matches in a file
7
+ * - fs_read_file - Read workspace-relative files
8
+ * - fs_list_files - List files recursively
9
+ * - fs_search - Regex search (ripgrep or JS fallback)
10
+ * - fs_edit - Replace exact string matches in a file
11
11
  *
12
12
  * Safety features:
13
13
  * - Root sandbox with symlink resolution
@@ -21,10 +21,10 @@ import { e as Tool, l as ToolRegistry } from './tools-DHCGz_lx.cjs';
21
21
 
22
22
  /** Reserved tool names from tools.v0 specification. */
23
23
  declare const ToolNames: {
24
- readonly FS_READ_FILE: "fs.read_file";
25
- readonly FS_LIST_FILES: "fs.list_files";
26
- readonly FS_SEARCH: "fs.search";
27
- readonly FS_EDIT: "fs.edit";
24
+ readonly FS_READ_FILE: "fs_read_file";
25
+ readonly FS_LIST_FILES: "fs_list_files";
26
+ readonly FS_SEARCH: "fs_search";
27
+ readonly FS_EDIT: "fs_edit";
28
28
  };
29
29
  /** Default size limits and caps from wire contract. */
30
30
  declare const FSDefaults: {
@@ -99,7 +99,7 @@ declare class LocalFSToolPack {
99
99
  */
100
100
  registerInto(registry: ToolRegistry): ToolRegistry;
101
101
  /**
102
- * Creates a new ToolRegistry with fs.* tools pre-registered.
102
+ * Creates a new ToolRegistry with fs_* tools pre-registered.
103
103
  */
104
104
  toRegistry(): ToolRegistry;
105
105
  private readFile;
@@ -144,7 +144,7 @@ declare class LocalFSToolPack {
144
144
  */
145
145
  declare function createLocalFSToolPack(options: LocalFSToolPackOptions): LocalFSToolPack;
146
146
  /**
147
- * Creates a ToolRegistry with fs.* tools pre-registered.
147
+ * Creates a ToolRegistry with fs_* tools pre-registered.
148
148
  * Shorthand for createLocalFSToolPack(options).toRegistry().
149
149
  *
150
150
  * @example
package/dist/node.d.ts CHANGED
@@ -4,10 +4,10 @@ import { e as Tool, l as ToolRegistry } from './tools-DHCGz_lx.js';
4
4
  * Local filesystem tool pack for client-side tool execution.
5
5
  *
6
6
  * Implements tools.v0 contract:
7
- * - fs.read_file - Read workspace-relative files
8
- * - fs.list_files - List files recursively
9
- * - fs.search - Regex search (ripgrep or JS fallback)
10
- * - fs.edit - Replace exact string matches in a file
7
+ * - fs_read_file - Read workspace-relative files
8
+ * - fs_list_files - List files recursively
9
+ * - fs_search - Regex search (ripgrep or JS fallback)
10
+ * - fs_edit - Replace exact string matches in a file
11
11
  *
12
12
  * Safety features:
13
13
  * - Root sandbox with symlink resolution
@@ -21,10 +21,10 @@ import { e as Tool, l as ToolRegistry } from './tools-DHCGz_lx.js';
21
21
 
22
22
  /** Reserved tool names from tools.v0 specification. */
23
23
  declare const ToolNames: {
24
- readonly FS_READ_FILE: "fs.read_file";
25
- readonly FS_LIST_FILES: "fs.list_files";
26
- readonly FS_SEARCH: "fs.search";
27
- readonly FS_EDIT: "fs.edit";
24
+ readonly FS_READ_FILE: "fs_read_file";
25
+ readonly FS_LIST_FILES: "fs_list_files";
26
+ readonly FS_SEARCH: "fs_search";
27
+ readonly FS_EDIT: "fs_edit";
28
28
  };
29
29
  /** Default size limits and caps from wire contract. */
30
30
  declare const FSDefaults: {
@@ -99,7 +99,7 @@ declare class LocalFSToolPack {
99
99
  */
100
100
  registerInto(registry: ToolRegistry): ToolRegistry;
101
101
  /**
102
- * Creates a new ToolRegistry with fs.* tools pre-registered.
102
+ * Creates a new ToolRegistry with fs_* tools pre-registered.
103
103
  */
104
104
  toRegistry(): ToolRegistry;
105
105
  private readFile;
@@ -144,7 +144,7 @@ declare class LocalFSToolPack {
144
144
  */
145
145
  declare function createLocalFSToolPack(options: LocalFSToolPackOptions): LocalFSToolPack;
146
146
  /**
147
- * Creates a ToolRegistry with fs.* tools pre-registered.
147
+ * Creates a ToolRegistry with fs_* tools pre-registered.
148
148
  * Shorthand for createLocalFSToolPack(options).toRegistry().
149
149
  *
150
150
  * @example
package/dist/node.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  ToolArgumentError,
4
4
  ToolRegistry,
5
5
  ToolTypes
6
- } from "./chunk-SJC7Q4NK.js";
6
+ } from "./chunk-URFLODQC.js";
7
7
  import "./chunk-MLKGABMK.js";
8
8
 
9
9
  // src/tools_local_fs.ts
@@ -11,10 +11,10 @@ import { promises as fs } from "fs";
11
11
  import * as path from "path";
12
12
  import { spawn } from "child_process";
13
13
  var ToolNames = {
14
- FS_READ_FILE: "fs.read_file",
15
- FS_LIST_FILES: "fs.list_files",
16
- FS_SEARCH: "fs.search",
17
- FS_EDIT: "fs.edit"
14
+ FS_READ_FILE: "fs_read_file",
15
+ FS_LIST_FILES: "fs_list_files",
16
+ FS_SEARCH: "fs_search",
17
+ FS_EDIT: "fs_edit"
18
18
  };
19
19
  var FSDefaults = {
20
20
  MAX_READ_BYTES: 64e3,
@@ -178,7 +178,7 @@ var LocalFSToolPack = class {
178
178
  return registry;
179
179
  }
180
180
  /**
181
- * Creates a new ToolRegistry with fs.* tools pre-registered.
181
+ * Creates a new ToolRegistry with fs_* tools pre-registered.
182
182
  */
183
183
  toRegistry() {
184
184
  return this.registerInto(new ToolRegistry());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelrelay/sdk",
3
- "version": "8.0.0",
3
+ "version": "8.1.0",
4
4
  "description": "TypeScript SDK for the ModelRelay API",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",