@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/api-CyuI9lx0.d.cts +6249 -0
- package/dist/api-CyuI9lx0.d.ts +6249 -0
- package/dist/api-R_gUMD1L.d.cts +6243 -0
- package/dist/api-R_gUMD1L.d.ts +6243 -0
- package/dist/billing/index.d.cts +1 -1
- package/dist/billing/index.d.ts +1 -1
- package/dist/chunk-URFLODQC.js +1199 -0
- package/dist/index.cjs +89 -14
- package/dist/index.d.cts +30 -8
- package/dist/index.d.ts +30 -8
- package/dist/index.js +88 -14
- package/dist/node.cjs +6 -6
- package/dist/node.d.cts +10 -10
- package/dist/node.d.ts +10 -10
- package/dist/node.js +6 -6
- package/package.json +1 -1
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
|
-
* -
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
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: "
|
|
25
|
-
readonly FS_LIST_FILES: "
|
|
26
|
-
readonly FS_SEARCH: "
|
|
27
|
-
readonly 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
|
|
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
|
|
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
|
-
* -
|
|
8
|
-
* -
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
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: "
|
|
25
|
-
readonly FS_LIST_FILES: "
|
|
26
|
-
readonly FS_SEARCH: "
|
|
27
|
-
readonly 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
|
|
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
|
|
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-
|
|
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: "
|
|
15
|
-
FS_LIST_FILES: "
|
|
16
|
-
FS_SEARCH: "
|
|
17
|
-
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
|
|
181
|
+
* Creates a new ToolRegistry with fs_* tools pre-registered.
|
|
182
182
|
*/
|
|
183
183
|
toRegistry() {
|
|
184
184
|
return this.registerInto(new ToolRegistry());
|