@saturn-universe/tools 0.0.0-stage → 0.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/LICENSE +661 -0
- package/dist/container-sandbox.d.ts +168 -0
- package/dist/container-sandbox.js +1241 -0
- package/dist/counter.d.ts +5 -0
- package/dist/counter.js +82 -0
- package/dist/data-review.d.ts +4 -0
- package/dist/data-review.js +146 -0
- package/dist/execution-backend.d.ts +55 -0
- package/dist/execution-backend.js +339 -0
- package/dist/executor.d.ts +25 -0
- package/dist/executor.js +978 -0
- package/dist/file-window.d.ts +3 -0
- package/dist/file-window.js +12 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +17 -0
- package/dist/mcp-headers.d.ts +3 -0
- package/dist/mcp-headers.js +51 -0
- package/dist/mcp-http.d.ts +3 -0
- package/dist/mcp-http.js +253 -0
- package/dist/mcp-stdio.d.ts +2 -0
- package/dist/mcp-stdio.js +147 -0
- package/dist/mcp-wire.d.ts +33 -0
- package/dist/mcp-wire.js +85 -0
- package/dist/mcp.d.ts +19 -0
- package/dist/mcp.js +325 -0
- package/dist/path-containment.d.ts +3 -0
- package/dist/path-containment.js +11 -0
- package/dist/planner.d.ts +3 -0
- package/dist/planner.js +162 -0
- package/dist/process-manager.d.ts +67 -0
- package/dist/process-manager.js +423 -0
- package/dist/process-output.d.ts +34 -0
- package/dist/process-output.js +162 -0
- package/dist/process-worker.d.ts +1 -0
- package/dist/process-worker.js +202 -0
- package/dist/registry.d.ts +33 -0
- package/dist/registry.js +227 -0
- package/dist/search.d.ts +9 -0
- package/dist/search.js +96 -0
- package/dist/team.d.ts +36 -0
- package/dist/team.js +284 -0
- package/dist/text-patch.d.ts +15 -0
- package/dist/text-patch.js +81 -0
- package/dist/todo.d.ts +3 -0
- package/dist/todo.js +105 -0
- package/dist/workspace-discovery.d.ts +42 -0
- package/dist/workspace-discovery.js +404 -0
- package/dist/workspace-snapshot.d.ts +28 -0
- package/dist/workspace-snapshot.js +371 -0
- package/dist/workspace.d.ts +22 -0
- package/dist/workspace.js +1819 -0
- package/package.json +16 -3
- package/README.md +0 -3
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import { createHash, randomUUID } from 'node:crypto';
|
|
3
|
+
import { copyFile, lstat, mkdir, open, readdir, readFile, realpath, rename, rm, unlink, } from 'node:fs/promises';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import { RuntimeError } from '@saturn-universe/core';
|
|
6
|
+
import { relativePathWithin } from './path-containment.js';
|
|
7
|
+
export const defaultMaxBranchCopyBytes = 50 * 1024 * 1024;
|
|
8
|
+
const safeIdPattern = /^[A-Za-z0-9._-]{1,64}$/;
|
|
9
|
+
const skippedDirs = new Set([
|
|
10
|
+
'.saturn',
|
|
11
|
+
'.git',
|
|
12
|
+
'node_modules',
|
|
13
|
+
'.pnpm-store',
|
|
14
|
+
'.tmp',
|
|
15
|
+
'dist',
|
|
16
|
+
'target',
|
|
17
|
+
'__pycache__',
|
|
18
|
+
'.venv',
|
|
19
|
+
'venv',
|
|
20
|
+
]);
|
|
21
|
+
function validateId(label, value) {
|
|
22
|
+
if (!safeIdPattern.test(value) || value === '.' || value === '..') {
|
|
23
|
+
throw new RuntimeError('INVALID_ARGUMENTS', `Invalid ${label}: "${value}"`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export function isManagedBranchWorkspace(rootDir, candidateDir) {
|
|
27
|
+
const relative = relativePathWithin(rootDir, candidateDir);
|
|
28
|
+
if (!relative)
|
|
29
|
+
return false;
|
|
30
|
+
const parts = relative.split(path.sep);
|
|
31
|
+
if (parts.length !== 4)
|
|
32
|
+
return false;
|
|
33
|
+
const [saturn, branches, searchId, branchId] = parts;
|
|
34
|
+
if (saturn.toLowerCase() !== '.saturn' || branches.toLowerCase() !== 'branches')
|
|
35
|
+
return false;
|
|
36
|
+
return (safeIdPattern.test(searchId) &&
|
|
37
|
+
searchId !== '.' &&
|
|
38
|
+
searchId !== '..' &&
|
|
39
|
+
safeIdPattern.test(branchId) &&
|
|
40
|
+
branchId !== '.' &&
|
|
41
|
+
branchId !== '..');
|
|
42
|
+
}
|
|
43
|
+
export function createWorkspaceSnapshotManager() {
|
|
44
|
+
return {
|
|
45
|
+
async createBranchWorkspace({ rootDir, searchId, branchId, mode, maxCopyBytes }) {
|
|
46
|
+
validateId('searchId', searchId);
|
|
47
|
+
validateId('branchId', branchId);
|
|
48
|
+
const canonicalRoot = await realpath(rootDir);
|
|
49
|
+
if (mode === 'readonly') {
|
|
50
|
+
return {
|
|
51
|
+
searchId,
|
|
52
|
+
branchId,
|
|
53
|
+
kind: 'shared_readonly',
|
|
54
|
+
workingDirectory: canonicalRoot,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
const branchDir = path.join(canonicalRoot, '.saturn', 'branches', searchId, branchId);
|
|
58
|
+
if (!isManagedBranchWorkspace(canonicalRoot, branchDir)) {
|
|
59
|
+
throw new RuntimeError('WORKSPACE_PATH_INVALID', 'Invalid branch workspace path');
|
|
60
|
+
}
|
|
61
|
+
const manifestPath = `${branchDir}.manifest.json`;
|
|
62
|
+
await unlink(manifestPath).catch(() => { });
|
|
63
|
+
const isGit = await isGitRepoRoot(canonicalRoot);
|
|
64
|
+
if (isGit) {
|
|
65
|
+
const hasCommit = await hasGitHead(canonicalRoot);
|
|
66
|
+
if (hasCommit) {
|
|
67
|
+
await removeWorktreeQuietly(canonicalRoot, branchDir);
|
|
68
|
+
await mkdir(path.dirname(branchDir), { recursive: true });
|
|
69
|
+
const added = await runGit(['worktree', 'add', '--detach', branchDir, 'HEAD'], canonicalRoot);
|
|
70
|
+
if (added.code === 0) {
|
|
71
|
+
await syncDirtyGitFiles(canonicalRoot, branchDir);
|
|
72
|
+
const canonicalBranch = await realpath(branchDir);
|
|
73
|
+
const baseManifest = await collectManifest(canonicalBranch);
|
|
74
|
+
await writeManifestFile(`${canonicalBranch}.manifest.json`, baseManifest);
|
|
75
|
+
return {
|
|
76
|
+
searchId,
|
|
77
|
+
branchId,
|
|
78
|
+
kind: 'git_worktree',
|
|
79
|
+
workingDirectory: canonicalBranch,
|
|
80
|
+
baseManifest,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
await rm(branchDir, { recursive: true, force: true });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const limit = maxCopyBytes ?? defaultMaxBranchCopyBytes;
|
|
87
|
+
const scan = await scanWorkspaceFiles(canonicalRoot, limit);
|
|
88
|
+
if (scan.exceeded) {
|
|
89
|
+
return {
|
|
90
|
+
searchId,
|
|
91
|
+
branchId,
|
|
92
|
+
kind: 'shared_readonly',
|
|
93
|
+
workingDirectory: canonicalRoot,
|
|
94
|
+
degradedToReadonly: true,
|
|
95
|
+
degradeReason: 'SIZE_LIMIT_EXCEEDED',
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
await rm(branchDir, { recursive: true, force: true });
|
|
99
|
+
await mkdir(branchDir, { recursive: true });
|
|
100
|
+
const baseManifest = {};
|
|
101
|
+
for (const file of scan.files) {
|
|
102
|
+
const src = path.join(canonicalRoot, file.relPath);
|
|
103
|
+
const dest = path.join(branchDir, file.relPath);
|
|
104
|
+
await mkdir(path.dirname(dest), { recursive: true });
|
|
105
|
+
await copyFile(src, dest);
|
|
106
|
+
baseManifest[toPosix(file.relPath)] = await sha256File(dest);
|
|
107
|
+
}
|
|
108
|
+
const canonicalBranch = await realpath(branchDir);
|
|
109
|
+
await writeManifestFile(`${canonicalBranch}.manifest.json`, baseManifest);
|
|
110
|
+
return {
|
|
111
|
+
searchId,
|
|
112
|
+
branchId,
|
|
113
|
+
kind: 'shallow_copy',
|
|
114
|
+
workingDirectory: canonicalBranch,
|
|
115
|
+
baseManifest,
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
async mergeBranchWorkspace(handle, rootDir) {
|
|
119
|
+
if (handle.kind === 'shared_readonly') {
|
|
120
|
+
return { mergedFiles: [] };
|
|
121
|
+
}
|
|
122
|
+
const canonicalRoot = await realpath(rootDir);
|
|
123
|
+
if (!isManagedBranchWorkspace(canonicalRoot, handle.workingDirectory)) {
|
|
124
|
+
throw new RuntimeError('WORKSPACE_PATH_INVALID', 'Branch directory is not managed by this workspace');
|
|
125
|
+
}
|
|
126
|
+
const canonicalBranch = await realpath(handle.workingDirectory);
|
|
127
|
+
const baseManifest = handle.baseManifest ?? (await readManifestFile(`${canonicalBranch}.manifest.json`));
|
|
128
|
+
if (!baseManifest) {
|
|
129
|
+
return { mergedFiles: [] };
|
|
130
|
+
}
|
|
131
|
+
const currentManifest = await collectManifest(canonicalBranch);
|
|
132
|
+
const mergedFiles = [];
|
|
133
|
+
for (const [relPosix, digest] of Object.entries(currentManifest)) {
|
|
134
|
+
if (baseManifest[relPosix] === digest)
|
|
135
|
+
continue;
|
|
136
|
+
const src = path.join(canonicalBranch, ...relPosix.split('/'));
|
|
137
|
+
const dest = path.join(canonicalRoot, ...relPosix.split('/'));
|
|
138
|
+
if (!isInsideRoot(canonicalRoot, dest))
|
|
139
|
+
continue;
|
|
140
|
+
await atomicCopyFile(src, dest);
|
|
141
|
+
mergedFiles.push(relPosix);
|
|
142
|
+
}
|
|
143
|
+
for (const relPosix of Object.keys(baseManifest)) {
|
|
144
|
+
if (Object.hasOwn(currentManifest, relPosix))
|
|
145
|
+
continue;
|
|
146
|
+
const target = path.join(canonicalRoot, ...relPosix.split('/'));
|
|
147
|
+
if (!isInsideRoot(canonicalRoot, target))
|
|
148
|
+
continue;
|
|
149
|
+
try {
|
|
150
|
+
await unlink(target);
|
|
151
|
+
mergedFiles.push(relPosix);
|
|
152
|
+
}
|
|
153
|
+
catch (error) {
|
|
154
|
+
if (error.code !== 'ENOENT')
|
|
155
|
+
throw error;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
mergedFiles.sort();
|
|
159
|
+
return { mergedFiles };
|
|
160
|
+
},
|
|
161
|
+
async cleanupBranchWorkspace(handle, rootDir) {
|
|
162
|
+
if (handle.kind === 'shared_readonly')
|
|
163
|
+
return;
|
|
164
|
+
const canonicalRoot = await realpath(rootDir);
|
|
165
|
+
if (!isManagedBranchWorkspace(canonicalRoot, handle.workingDirectory)) {
|
|
166
|
+
throw new RuntimeError('WORKSPACE_PATH_INVALID', 'Branch directory is not managed by this workspace');
|
|
167
|
+
}
|
|
168
|
+
const resolvedBranch = path.resolve(handle.workingDirectory);
|
|
169
|
+
await unlink(`${resolvedBranch}.manifest.json`).catch(() => { });
|
|
170
|
+
if (handle.kind === 'git_worktree') {
|
|
171
|
+
await removeWorktreeQuietly(canonicalRoot, resolvedBranch);
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
await rm(resolvedBranch, { recursive: true, force: true });
|
|
175
|
+
}
|
|
176
|
+
const searchParent = path.dirname(resolvedBranch);
|
|
177
|
+
try {
|
|
178
|
+
await rm(searchParent, { recursive: false });
|
|
179
|
+
}
|
|
180
|
+
catch {
|
|
181
|
+
// Ignore non-empty or missing parent search directory
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
function toPosix(relPath) {
|
|
187
|
+
return relPath.split(path.sep).join('/');
|
|
188
|
+
}
|
|
189
|
+
function isInsideRoot(root, target) {
|
|
190
|
+
const rel = relativePathWithin(root, target);
|
|
191
|
+
return Boolean(rel && rel.split(path.sep).every((part) => !/^(\.saturn|\.git|\.env)$/i.test(part)));
|
|
192
|
+
}
|
|
193
|
+
async function writeManifestFile(manifestPath, manifest) {
|
|
194
|
+
await mkdir(path.dirname(manifestPath), { recursive: true });
|
|
195
|
+
const temporary = `${manifestPath}.${randomUUID()}.tmp`;
|
|
196
|
+
const handle = await open(temporary, 'wx', 0o644);
|
|
197
|
+
try {
|
|
198
|
+
try {
|
|
199
|
+
await handle.writeFile(JSON.stringify(manifest), 'utf8');
|
|
200
|
+
}
|
|
201
|
+
finally {
|
|
202
|
+
await handle.close();
|
|
203
|
+
}
|
|
204
|
+
await rename(temporary, manifestPath);
|
|
205
|
+
}
|
|
206
|
+
finally {
|
|
207
|
+
await unlink(temporary).catch(() => { });
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
async function readManifestFile(manifestPath) {
|
|
211
|
+
try {
|
|
212
|
+
const raw = await readFile(manifestPath, 'utf8');
|
|
213
|
+
const parsed = JSON.parse(raw);
|
|
214
|
+
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed))
|
|
215
|
+
return undefined;
|
|
216
|
+
return parsed;
|
|
217
|
+
}
|
|
218
|
+
catch {
|
|
219
|
+
return undefined;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
async function sha256File(filePath) {
|
|
223
|
+
const buf = await readFile(filePath);
|
|
224
|
+
return createHash('sha256').update(buf).digest('hex');
|
|
225
|
+
}
|
|
226
|
+
async function atomicCopyFile(src, dest) {
|
|
227
|
+
await mkdir(path.dirname(dest), { recursive: true });
|
|
228
|
+
const content = await readFile(src);
|
|
229
|
+
const srcStat = await lstat(src);
|
|
230
|
+
const temporary = path.join(path.dirname(dest), `.saturn-merge-${randomUUID()}`);
|
|
231
|
+
const handle = await open(temporary, 'wx', srcStat.mode & 0o777);
|
|
232
|
+
try {
|
|
233
|
+
try {
|
|
234
|
+
await handle.writeFile(content);
|
|
235
|
+
}
|
|
236
|
+
finally {
|
|
237
|
+
await handle.close();
|
|
238
|
+
}
|
|
239
|
+
await rename(temporary, dest);
|
|
240
|
+
}
|
|
241
|
+
finally {
|
|
242
|
+
await unlink(temporary).catch(() => { });
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
async function scanWorkspaceFiles(rootDir, maxBytes) {
|
|
246
|
+
const files = [];
|
|
247
|
+
let totalBytes = 0;
|
|
248
|
+
async function walk(currentDir) {
|
|
249
|
+
const entries = await readdir(currentDir, { withFileTypes: true });
|
|
250
|
+
for (const entry of entries) {
|
|
251
|
+
if (skippedDirs.has(entry.name) || /^\.env$/i.test(entry.name))
|
|
252
|
+
continue;
|
|
253
|
+
const fullPath = path.join(currentDir, entry.name);
|
|
254
|
+
const info = await lstat(fullPath);
|
|
255
|
+
if (info.isSymbolicLink())
|
|
256
|
+
continue;
|
|
257
|
+
if (info.isDirectory()) {
|
|
258
|
+
if (await walk(fullPath))
|
|
259
|
+
return true;
|
|
260
|
+
}
|
|
261
|
+
else if (info.isFile()) {
|
|
262
|
+
totalBytes += info.size;
|
|
263
|
+
if (totalBytes > maxBytes)
|
|
264
|
+
return true;
|
|
265
|
+
files.push({ relPath: path.relative(rootDir, fullPath), size: info.size });
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return false;
|
|
269
|
+
}
|
|
270
|
+
const exceeded = await walk(rootDir);
|
|
271
|
+
return { exceeded, files };
|
|
272
|
+
}
|
|
273
|
+
async function collectManifest(dir) {
|
|
274
|
+
const manifest = {};
|
|
275
|
+
async function walk(currentDir) {
|
|
276
|
+
const entries = await readdir(currentDir, { withFileTypes: true });
|
|
277
|
+
for (const entry of entries) {
|
|
278
|
+
if (skippedDirs.has(entry.name) || /^\.env$/i.test(entry.name))
|
|
279
|
+
continue;
|
|
280
|
+
const fullPath = path.join(currentDir, entry.name);
|
|
281
|
+
const info = await lstat(fullPath);
|
|
282
|
+
if (info.isSymbolicLink())
|
|
283
|
+
continue;
|
|
284
|
+
if (info.isDirectory()) {
|
|
285
|
+
await walk(fullPath);
|
|
286
|
+
}
|
|
287
|
+
else if (info.isFile()) {
|
|
288
|
+
const rel = toPosix(path.relative(dir, fullPath));
|
|
289
|
+
manifest[rel] = await sha256File(fullPath);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
await walk(dir);
|
|
294
|
+
return manifest;
|
|
295
|
+
}
|
|
296
|
+
async function runGit(args, cwd) {
|
|
297
|
+
return new Promise((resolve) => {
|
|
298
|
+
const child = spawn('git', args, {
|
|
299
|
+
cwd,
|
|
300
|
+
shell: false,
|
|
301
|
+
windowsHide: true,
|
|
302
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
303
|
+
});
|
|
304
|
+
const out = [];
|
|
305
|
+
child.stdout.on('data', (chunk) => out.push(chunk));
|
|
306
|
+
child.on('error', () => resolve({ code: null, stdout: '' }));
|
|
307
|
+
child.once('close', (code) => resolve({ code, stdout: Buffer.concat(out).toString('utf8') }));
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
async function isGitRepoRoot(rootDir) {
|
|
311
|
+
const inside = await runGit(['rev-parse', '--is-inside-work-tree'], rootDir);
|
|
312
|
+
if (inside.code !== 0 || inside.stdout.trim() !== 'true')
|
|
313
|
+
return false;
|
|
314
|
+
const top = await runGit(['rev-parse', '--show-toplevel'], rootDir);
|
|
315
|
+
if (top.code !== 0)
|
|
316
|
+
return false;
|
|
317
|
+
try {
|
|
318
|
+
const realTop = await realpath(top.stdout.trim());
|
|
319
|
+
const realRoot = await realpath(rootDir);
|
|
320
|
+
return process.platform === 'win32'
|
|
321
|
+
? realTop.toLowerCase() === realRoot.toLowerCase()
|
|
322
|
+
: realTop === realRoot;
|
|
323
|
+
}
|
|
324
|
+
catch {
|
|
325
|
+
return false;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
async function hasGitHead(rootDir) {
|
|
329
|
+
const head = await runGit(['rev-parse', '--verify', 'HEAD'], rootDir);
|
|
330
|
+
return head.code === 0;
|
|
331
|
+
}
|
|
332
|
+
async function syncDirtyGitFiles(rootDir, branchDir) {
|
|
333
|
+
const status = await runGit(['status', '--porcelain=v1', '-z', '-uall'], rootDir);
|
|
334
|
+
if (status.code !== 0 || !status.stdout)
|
|
335
|
+
return;
|
|
336
|
+
const tokens = status.stdout.split('\0').filter(Boolean);
|
|
337
|
+
for (let i = 0; i < tokens.length; i++) {
|
|
338
|
+
const token = tokens[i];
|
|
339
|
+
const xy = token.slice(0, 2);
|
|
340
|
+
const filePath = token.slice(3);
|
|
341
|
+
if (xy.includes('R') || xy.includes('C')) {
|
|
342
|
+
const oldPath = tokens[++i];
|
|
343
|
+
if (oldPath && isInsideRoot(rootDir, path.join(rootDir, oldPath))) {
|
|
344
|
+
await unlink(path.join(branchDir, oldPath)).catch(() => { });
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
const src = path.join(rootDir, filePath);
|
|
348
|
+
const dest = path.join(branchDir, filePath);
|
|
349
|
+
if (!isInsideRoot(rootDir, src))
|
|
350
|
+
continue;
|
|
351
|
+
if (xy.includes('D')) {
|
|
352
|
+
await unlink(dest).catch(() => { });
|
|
353
|
+
continue;
|
|
354
|
+
}
|
|
355
|
+
try {
|
|
356
|
+
const info = await lstat(src);
|
|
357
|
+
if (info.isSymbolicLink() || !info.isFile())
|
|
358
|
+
continue;
|
|
359
|
+
await mkdir(path.dirname(dest), { recursive: true });
|
|
360
|
+
await copyFile(src, dest);
|
|
361
|
+
}
|
|
362
|
+
catch {
|
|
363
|
+
// Skip transient or unreadable dirty path
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
async function removeWorktreeQuietly(rootDir, branchDir) {
|
|
368
|
+
await runGit(['worktree', 'remove', '--force', branchDir], rootDir);
|
|
369
|
+
await rm(branchDir, { recursive: true, force: true });
|
|
370
|
+
await runGit(['worktree', 'prune'], rootDir);
|
|
371
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ToolBinding } from '@saturn-universe/core';
|
|
2
|
+
import type { ExecutionBackend } from './execution-backend.js';
|
|
3
|
+
import type { ProcessManager } from './process-manager.js';
|
|
4
|
+
export declare const processTimeoutMs = 30000;
|
|
5
|
+
export declare const maxShellTimeoutMs = 300000;
|
|
6
|
+
export declare const outsideWorkspacePrefix = "outside_workspace:";
|
|
7
|
+
export declare const containerReadonlyPrefix = "container_ro:";
|
|
8
|
+
export declare const readonlyCommandAllowlist: Set<string>;
|
|
9
|
+
export interface WorkspaceToolsOptions {
|
|
10
|
+
readonly processManager?: ProcessManager;
|
|
11
|
+
readonly executionBackend?: ExecutionBackend;
|
|
12
|
+
readonly patchTools?: boolean;
|
|
13
|
+
/** Register the original frozen v1 process definitions for old Run snapshots. */
|
|
14
|
+
readonly legacyProcessTools?: boolean;
|
|
15
|
+
/** Register the expanded process definitions for tool set 6. */
|
|
16
|
+
readonly expandedProcessArgs?: boolean;
|
|
17
|
+
/** Disable new definitions when registering historical tool sets. */
|
|
18
|
+
readonly phase1?: boolean;
|
|
19
|
+
/** Register the current discovery and implicit revision definitions. */
|
|
20
|
+
readonly phase2?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function createWorkspaceTools(root: string, versionedFiles?: boolean, options?: WorkspaceToolsOptions): ToolBinding[];
|