@ptkl/toolkit 1.3.0 → 1.3.2
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/commands/forge.js +34 -6
- package/dist/lib/kortex/__tests__/fixtures/providers/conformance.test.js +120 -0
- package/dist/lib/kortex/__tests__/fixtures/sse-and-persistence.test.js +172 -0
- package/dist/lib/kortex/__tests__/legacy-compatibility.test.js +273 -0
- package/dist/lib/kortex/__tests__/phase-1-conversion.test.js +154 -0
- package/dist/lib/kortex/__tests__/phase-2-runtime.test.js +100 -0
- package/dist/lib/kortex/__tests__/phase-3-provider.test.js +48 -0
- package/dist/lib/kortex/config/loader.js +129 -0
- package/dist/lib/kortex/config/schema.js +60 -0
- package/dist/lib/kortex/controller.js +60 -0
- package/dist/lib/kortex/conversation/legacy-conversion.js +141 -0
- package/dist/lib/kortex/conversation/types.js +13 -0
- package/dist/lib/kortex/events/index.js +1 -0
- package/dist/lib/kortex/events/reducer.js +86 -0
- package/dist/lib/kortex/events/types.js +7 -0
- package/dist/lib/kortex/events/writer.js +76 -0
- package/dist/lib/kortex/mcp/index.js +1 -0
- package/dist/lib/kortex/orchestration/index.js +1 -0
- package/dist/lib/kortex/orchestration/manager-worker.js +88 -0
- package/dist/lib/kortex/orchestration/peer-collaboration.js +59 -0
- package/dist/lib/kortex/orchestration/plan.js +133 -0
- package/dist/lib/kortex/orchestration/scheduler.js +124 -0
- package/dist/lib/kortex/persistence/index.js +1 -0
- package/dist/lib/kortex/persistence/run-journal.js +94 -0
- package/dist/lib/kortex/providers/anthropic.js +34 -0
- package/dist/lib/kortex/providers/index.js +1 -0
- package/dist/lib/kortex/providers/openai-compatible.js +190 -0
- package/dist/lib/kortex/providers/protokol.js +204 -0
- package/dist/lib/kortex/providers/registry.js +61 -0
- package/dist/lib/kortex/providers/types.js +13 -0
- package/dist/lib/kortex/runtime/agent-runner.js +241 -0
- package/dist/lib/kortex/runtime/approval-queue.js +95 -0
- package/dist/lib/kortex/runtime/budget-controller.js +105 -0
- package/dist/lib/kortex/runtime/index.js +1 -0
- package/dist/lib/kortex/runtime/tool-runtime.js +66 -0
- package/dist/lib/kortex/runtime/workspace.js +52 -0
- package/dist/lib/kortex/tools/index.js +1 -0
- package/dist/lib/kortex/tools.js +226 -34
- package/dist/lib/kortex/types.js +7 -0
- package/dist/lib/kortex/ui/index.js +1 -0
- package/package.json +6 -4
package/dist/lib/kortex/tools.js
CHANGED
|
@@ -1,6 +1,65 @@
|
|
|
1
|
-
import { readFileSync, writeFileSync, existsSync, statSync, readdirSync, mkdirSync } from 'node:fs';
|
|
2
|
-
import { execSync } from 'node:child_process';
|
|
1
|
+
import { readFileSync, writeFileSync, existsSync, statSync, readdirSync, mkdirSync, realpathSync } from 'node:fs';
|
|
2
|
+
import { execSync, spawnSync, spawn } from 'node:child_process';
|
|
3
3
|
import { resolve, dirname, relative } from 'node:path';
|
|
4
|
+
const toolRiskMap = {
|
|
5
|
+
read_file: 'read',
|
|
6
|
+
write_file: 'write',
|
|
7
|
+
edit_file: 'write',
|
|
8
|
+
list_directory: 'read',
|
|
9
|
+
search_files: 'read',
|
|
10
|
+
bash: 'execute',
|
|
11
|
+
git_status: 'read',
|
|
12
|
+
git_diff: 'read',
|
|
13
|
+
git_log: 'read',
|
|
14
|
+
git_commit: 'destructive',
|
|
15
|
+
git_branch: 'write', // create/switch mutate refs
|
|
16
|
+
};
|
|
17
|
+
export function getToolRisk(name) {
|
|
18
|
+
// MCP tool names follow mcp_<server>_<name> — default to external
|
|
19
|
+
if (name.startsWith('mcp_'))
|
|
20
|
+
return 'external';
|
|
21
|
+
return toolRiskMap[name] ?? 'execute';
|
|
22
|
+
}
|
|
23
|
+
export function validateToolArgs(toolName, args, schema) {
|
|
24
|
+
const errors = [];
|
|
25
|
+
if (!schema.properties)
|
|
26
|
+
return errors; // no schema to validate against
|
|
27
|
+
// Check required fields
|
|
28
|
+
const required = schema.required ?? [];
|
|
29
|
+
for (const field of required) {
|
|
30
|
+
if (args[field] === undefined || args[field] === null) {
|
|
31
|
+
errors.push({ path: field, message: `Required field "${field}" is missing` });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
// Type-check known properties
|
|
35
|
+
for (const [field, value] of Object.entries(args)) {
|
|
36
|
+
const propSchema = schema.properties[field];
|
|
37
|
+
if (!propSchema) {
|
|
38
|
+
// If the schema defines specific properties, warn about unknowns
|
|
39
|
+
if (Object.keys(schema.properties).length > 0) {
|
|
40
|
+
errors.push({ path: field, message: `Unknown field "${field}"` });
|
|
41
|
+
}
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
const expectedType = propSchema.type;
|
|
45
|
+
if (expectedType === 'string' && typeof value !== 'string') {
|
|
46
|
+
errors.push({ path: field, message: `Expected string, got ${typeof value}` });
|
|
47
|
+
}
|
|
48
|
+
else if (expectedType === 'number' && typeof value !== 'number') {
|
|
49
|
+
errors.push({ path: field, message: `Expected number, got ${typeof value}` });
|
|
50
|
+
}
|
|
51
|
+
else if (expectedType === 'array' && !Array.isArray(value)) {
|
|
52
|
+
errors.push({ path: field, message: `Expected array, got ${typeof value}` });
|
|
53
|
+
}
|
|
54
|
+
else if (expectedType === 'object' && (typeof value !== 'object' || Array.isArray(value) || value === null)) {
|
|
55
|
+
errors.push({ path: field, message: `Expected object, got ${typeof value}` });
|
|
56
|
+
}
|
|
57
|
+
else if (expectedType === 'boolean' && typeof value !== 'boolean') {
|
|
58
|
+
errors.push({ path: field, message: `Expected boolean, got ${typeof value}` });
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return errors;
|
|
62
|
+
}
|
|
4
63
|
const MAX_OUTPUT = 100_000;
|
|
5
64
|
function clampOutput(text) {
|
|
6
65
|
if (text.length <= MAX_OUTPUT)
|
|
@@ -10,6 +69,52 @@ function clampOutput(text) {
|
|
|
10
69
|
function resolvePath(cwd, filePath) {
|
|
11
70
|
return resolve(cwd, filePath);
|
|
12
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Canonicalize a file path and validate it stays inside the workspace root.
|
|
74
|
+
*
|
|
75
|
+
* - Rejects `..` traversal that escapes cwd.
|
|
76
|
+
* - Rejects symlink escape for existing paths.
|
|
77
|
+
* - For a new path, validates its closest existing parent directory.
|
|
78
|
+
*
|
|
79
|
+
* This is a safety boundary, not a sandbox. bash / MCP tools are not
|
|
80
|
+
* constrained by this check — they run with the user's OS permissions.
|
|
81
|
+
*/
|
|
82
|
+
function resolveSafePath(cwd, filePath) {
|
|
83
|
+
const cleaned = filePath.replace(/[<>]/g, '').trim();
|
|
84
|
+
const resolved = resolve(cwd, cleaned);
|
|
85
|
+
// Reject paths that escape cwd
|
|
86
|
+
const cwdCanonical = resolve(cwd);
|
|
87
|
+
if (!resolved.startsWith(cwdCanonical)) {
|
|
88
|
+
throw new Error(`Path "${filePath}" escapes the working directory`);
|
|
89
|
+
}
|
|
90
|
+
// For existing paths, resolve symlinks
|
|
91
|
+
if (existsSync(resolved)) {
|
|
92
|
+
try {
|
|
93
|
+
const real = realpathSync(resolved);
|
|
94
|
+
if (!real.startsWith(realpathSync(cwd))) {
|
|
95
|
+
throw new Error(`Path "${filePath}" escapes the working directory via symlink`);
|
|
96
|
+
}
|
|
97
|
+
return real;
|
|
98
|
+
}
|
|
99
|
+
catch {
|
|
100
|
+
throw new Error(`Path "${filePath}" cannot be resolved`);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// For new paths, validate closest existing parent
|
|
104
|
+
const parent = dirname(resolved);
|
|
105
|
+
if (parent !== resolved && existsSync(parent)) {
|
|
106
|
+
try {
|
|
107
|
+
const realParent = realpathSync(parent);
|
|
108
|
+
if (!realParent.startsWith(realpathSync(cwd))) {
|
|
109
|
+
throw new Error(`Path "${filePath}" escapes the working directory`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch {
|
|
113
|
+
throw new Error(`Path "${filePath}" cannot be resolved`);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return resolved;
|
|
117
|
+
}
|
|
13
118
|
export function getToolDefinitions() {
|
|
14
119
|
return [
|
|
15
120
|
// ── File system ──
|
|
@@ -181,7 +286,13 @@ export function getToolDefinitions() {
|
|
|
181
286
|
}
|
|
182
287
|
// ── File system executors ──
|
|
183
288
|
function execReadFile(cwd, args) {
|
|
184
|
-
|
|
289
|
+
let fullPath;
|
|
290
|
+
try {
|
|
291
|
+
fullPath = resolveSafePath(cwd, args.path);
|
|
292
|
+
}
|
|
293
|
+
catch (e) {
|
|
294
|
+
return `Error: ${e.message}`;
|
|
295
|
+
}
|
|
185
296
|
if (!existsSync(fullPath))
|
|
186
297
|
return `Error: file not found: ${args.path}`;
|
|
187
298
|
const stat = statSync(fullPath);
|
|
@@ -196,7 +307,13 @@ function execReadFile(cwd, args) {
|
|
|
196
307
|
return clampOutput(numbered);
|
|
197
308
|
}
|
|
198
309
|
function execWriteFile(cwd, args) {
|
|
199
|
-
|
|
310
|
+
let fullPath;
|
|
311
|
+
try {
|
|
312
|
+
fullPath = resolveSafePath(cwd, args.path);
|
|
313
|
+
}
|
|
314
|
+
catch (e) {
|
|
315
|
+
return `Error: ${e.message}`;
|
|
316
|
+
}
|
|
200
317
|
const dir = dirname(fullPath);
|
|
201
318
|
if (!existsSync(dir))
|
|
202
319
|
mkdirSync(dir, { recursive: true });
|
|
@@ -204,7 +321,13 @@ function execWriteFile(cwd, args) {
|
|
|
204
321
|
return `File written: ${args.path}`;
|
|
205
322
|
}
|
|
206
323
|
function execEditFile(cwd, args) {
|
|
207
|
-
|
|
324
|
+
let fullPath;
|
|
325
|
+
try {
|
|
326
|
+
fullPath = resolveSafePath(cwd, args.path);
|
|
327
|
+
}
|
|
328
|
+
catch (e) {
|
|
329
|
+
return `Error: ${e.message}`;
|
|
330
|
+
}
|
|
208
331
|
if (!existsSync(fullPath))
|
|
209
332
|
return `Error: file not found: ${args.path}`;
|
|
210
333
|
const content = readFileSync(fullPath, 'utf-8');
|
|
@@ -219,7 +342,13 @@ function execEditFile(cwd, args) {
|
|
|
219
342
|
}
|
|
220
343
|
function execListDirectory(cwd, args) {
|
|
221
344
|
const rawPath = (args.path || '.').replace(/[<>]/g, '').trim() || '.';
|
|
222
|
-
|
|
345
|
+
let targetPath;
|
|
346
|
+
try {
|
|
347
|
+
targetPath = resolveSafePath(cwd, rawPath);
|
|
348
|
+
}
|
|
349
|
+
catch (e) {
|
|
350
|
+
return `Error: ${e.message}`;
|
|
351
|
+
}
|
|
223
352
|
if (!existsSync(targetPath))
|
|
224
353
|
return `Error: path not found: ${args.path || '.'}`;
|
|
225
354
|
const maxDepth = args.depth ?? 3;
|
|
@@ -261,13 +390,16 @@ function execListDirectory(cwd, args) {
|
|
|
261
390
|
}
|
|
262
391
|
function execSearchFiles(cwd, args) {
|
|
263
392
|
const searchPath = args.path || '.';
|
|
264
|
-
|
|
393
|
+
const grepArgs = ['-r', '-n', args.pattern, searchPath];
|
|
265
394
|
if (args.include)
|
|
266
|
-
|
|
267
|
-
cmd += ' 2>/dev/null | head -100';
|
|
395
|
+
grepArgs.push('--include', args.include);
|
|
268
396
|
try {
|
|
269
|
-
const
|
|
270
|
-
|
|
397
|
+
const result = spawnSync('grep', grepArgs, { cwd, timeout: 15_000, encoding: 'utf-8', maxBuffer: 1024 * 1024 * 5 });
|
|
398
|
+
if (result.status === 0) {
|
|
399
|
+
return clampOutput(result.stdout || 'No matches found.');
|
|
400
|
+
}
|
|
401
|
+
// grep exits 1 when no match — not an error
|
|
402
|
+
return 'No matches found.';
|
|
271
403
|
}
|
|
272
404
|
catch {
|
|
273
405
|
return 'No matches found.';
|
|
@@ -295,62 +427,65 @@ function execBash(cwd, args) {
|
|
|
295
427
|
// ── Git executors ──
|
|
296
428
|
function git(cwd, args) {
|
|
297
429
|
try {
|
|
298
|
-
const
|
|
430
|
+
const result = spawnSync('git', args, {
|
|
299
431
|
cwd,
|
|
300
432
|
timeout: 15_000,
|
|
301
433
|
encoding: 'utf-8',
|
|
302
434
|
maxBuffer: 1024 * 1024 * 5,
|
|
303
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
304
435
|
});
|
|
305
|
-
return clampOutput(
|
|
436
|
+
return clampOutput(result.stdout?.trim() || '(no output)');
|
|
306
437
|
}
|
|
307
438
|
catch (err) {
|
|
308
|
-
const stdout = err.stdout || '';
|
|
309
439
|
const stderr = err.stderr || '';
|
|
310
|
-
return clampOutput(`Error: ${stderr
|
|
440
|
+
return clampOutput(`Error: ${stderr}`.trim());
|
|
311
441
|
}
|
|
312
442
|
}
|
|
313
443
|
function execGitStatus(cwd) {
|
|
314
|
-
return git(cwd, 'status');
|
|
444
|
+
return git(cwd, ['status']);
|
|
315
445
|
}
|
|
316
446
|
function execGitDiff(cwd, args) {
|
|
317
447
|
const target = args.target || 'unstaged';
|
|
318
|
-
const
|
|
319
|
-
if (target === 'staged')
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
448
|
+
const gitArgs = ['diff'];
|
|
449
|
+
if (target === 'staged') {
|
|
450
|
+
gitArgs.push('--cached');
|
|
451
|
+
}
|
|
452
|
+
else if (target !== 'unstaged') {
|
|
453
|
+
gitArgs.push(target);
|
|
454
|
+
}
|
|
455
|
+
if (args.path)
|
|
456
|
+
gitArgs.push('--', args.path);
|
|
457
|
+
return git(cwd, gitArgs);
|
|
324
458
|
}
|
|
325
459
|
function execGitLog(cwd, args) {
|
|
326
|
-
const
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
460
|
+
const gitArgs = ['log', '--oneline', '--decorate', '-n', String(args.count ?? 10)];
|
|
461
|
+
if (args.branch)
|
|
462
|
+
gitArgs.push(args.branch);
|
|
463
|
+
if (args.path)
|
|
464
|
+
gitArgs.push('--', args.path);
|
|
465
|
+
return git(cwd, gitArgs);
|
|
330
466
|
}
|
|
331
467
|
function execGitCommit(cwd, args) {
|
|
332
468
|
if (args.files && args.files.length > 0) {
|
|
333
|
-
|
|
334
|
-
git(cwd, `add ${fileList}`);
|
|
469
|
+
git(cwd, ['add', ...args.files]);
|
|
335
470
|
}
|
|
336
471
|
else {
|
|
337
|
-
git(cwd, 'add -A');
|
|
472
|
+
git(cwd, ['add', '-A']);
|
|
338
473
|
}
|
|
339
|
-
return git(cwd,
|
|
474
|
+
return git(cwd, ['commit', '-m', args.message]);
|
|
340
475
|
}
|
|
341
476
|
function execGitBranch(cwd, args) {
|
|
342
477
|
const action = args.action || 'list';
|
|
343
478
|
switch (action) {
|
|
344
479
|
case 'list':
|
|
345
|
-
return git(cwd, 'branch -a');
|
|
480
|
+
return git(cwd, ['branch', '-a']);
|
|
346
481
|
case 'create':
|
|
347
482
|
if (!args.name)
|
|
348
483
|
return 'Error: branch name is required';
|
|
349
|
-
return git(cwd,
|
|
484
|
+
return git(cwd, ['checkout', '-b', args.name]);
|
|
350
485
|
case 'switch':
|
|
351
486
|
if (!args.name)
|
|
352
487
|
return 'Error: branch name is required';
|
|
353
|
-
return git(cwd,
|
|
488
|
+
return git(cwd, ['checkout', args.name]);
|
|
354
489
|
default:
|
|
355
490
|
return `Error: unknown action "${action}"`;
|
|
356
491
|
}
|
|
@@ -404,3 +539,60 @@ export function executeTool(cwd, call) {
|
|
|
404
539
|
}
|
|
405
540
|
return { tool_call_id: call.id, name: call.function.name, content };
|
|
406
541
|
}
|
|
542
|
+
// ── Async tool execution (Phase 0: bash only; remaining tools migrate alongside Session) ──
|
|
543
|
+
/**
|
|
544
|
+
* async execBash — uses spawn() and supports AbortSignal for cancellation.
|
|
545
|
+
* The shell is still used to interpret pipes, redirects, and compound commands.
|
|
546
|
+
*/
|
|
547
|
+
export async function execBashAsync(cwd, args, signal) {
|
|
548
|
+
const timeoutMs = args.timeout ?? 30_000;
|
|
549
|
+
return new Promise((resolve) => {
|
|
550
|
+
const chunks = [];
|
|
551
|
+
const errChunks = [];
|
|
552
|
+
const child = spawn(args.command, [], {
|
|
553
|
+
cwd,
|
|
554
|
+
shell: true,
|
|
555
|
+
signal,
|
|
556
|
+
timeout: timeoutMs,
|
|
557
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
558
|
+
});
|
|
559
|
+
child.stdout.on('data', (chunk) => chunks.push(chunk.toString()));
|
|
560
|
+
child.stderr.on('data', (chunk) => errChunks.push(chunk.toString()));
|
|
561
|
+
child.on('error', (err) => {
|
|
562
|
+
if (err.code === 'ABORT_ERR' || err.message.includes('aborted')) {
|
|
563
|
+
resolve(clampOutput('(cancelled)'));
|
|
564
|
+
}
|
|
565
|
+
else {
|
|
566
|
+
resolve(clampOutput(`Error: ${err.message}`));
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
child.on('exit', (code) => {
|
|
570
|
+
const stdout = chunks.join('');
|
|
571
|
+
const stderr = errChunks.join('');
|
|
572
|
+
if (code === 0) {
|
|
573
|
+
resolve(clampOutput(stdout || '(no output)'));
|
|
574
|
+
}
|
|
575
|
+
else {
|
|
576
|
+
resolve(clampOutput(`Exit code: ${code}\n${stdout}\n${stderr}`.trim()));
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Async tool dispatcher. Bash calls run asynchronously with cancellation support;
|
|
583
|
+
* all other tools fall through to the synchronous executeTool.
|
|
584
|
+
*/
|
|
585
|
+
export async function executeToolAsync(cwd, call, signal) {
|
|
586
|
+
if (call.function.name === 'bash') {
|
|
587
|
+
let args;
|
|
588
|
+
try {
|
|
589
|
+
args = JSON.parse(call.function.arguments);
|
|
590
|
+
}
|
|
591
|
+
catch {
|
|
592
|
+
return { tool_call_id: call.id, name: call.function.name, content: 'Error: invalid JSON arguments' };
|
|
593
|
+
}
|
|
594
|
+
const content = await execBashAsync(cwd, args, signal);
|
|
595
|
+
return { tool_call_id: call.id, name: call.function.name, content };
|
|
596
|
+
}
|
|
597
|
+
return executeTool(cwd, call);
|
|
598
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ptkl/toolkit",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "A command-line toolkit for managing Protokol platform applications, profiles, functions, and components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"protokol",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"homepage": "https://your-gitea-instance.com/your-org/protokol-toolkit#readme",
|
|
23
23
|
"type": "module",
|
|
24
24
|
"scripts": {
|
|
25
|
-
"test": "
|
|
25
|
+
"test": "vitest run",
|
|
26
|
+
"test:watch": "vitest",
|
|
26
27
|
"build": "npx tsc",
|
|
27
28
|
"postbuild": "chmod +x dist/bin/toolkit.js",
|
|
28
29
|
"toolkit": "tsc --build && node dist/bin/toolkit",
|
|
@@ -37,7 +38,6 @@
|
|
|
37
38
|
"@babel/standalone": "^7.26.10",
|
|
38
39
|
"@inquirer/password": "^4.0.21",
|
|
39
40
|
"@ptkl/sdk": "^1.14.0",
|
|
40
|
-
"@ptkl/toolkit": "file:",
|
|
41
41
|
"@rollup/plugin-babel": "^6.1.0",
|
|
42
42
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
43
43
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"marked": "^15.0.12",
|
|
60
60
|
"marked-terminal": "^7.3.0",
|
|
61
61
|
"open": "^10.1.2",
|
|
62
|
+
"openai": "^7.1.0",
|
|
62
63
|
"react": "^18.3.1",
|
|
63
64
|
"rollup": "^4.34.6",
|
|
64
65
|
"sass": "^1.95.1",
|
|
@@ -73,7 +74,8 @@
|
|
|
73
74
|
"@types/node": "^22.3.0",
|
|
74
75
|
"@types/react": "^18.3.29",
|
|
75
76
|
"@types/ws": "^8.5.12",
|
|
76
|
-
"typescript": "^5.5.4"
|
|
77
|
+
"typescript": "^5.5.4",
|
|
78
|
+
"vitest": "^4.1.10"
|
|
77
79
|
},
|
|
78
80
|
"files": [
|
|
79
81
|
"dist"
|