maka-agent 0.2.0-dev.30.20260912 → 0.2.0-dev.31.20260913
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/THIRD_PARTY_NOTICES.txt +392 -0
- package/dist/acp/maka-acp-agent.js +8 -2
- package/dist/acp/prompt-content.js +225 -0
- package/dist/acp/session-event-mapper.js +103 -0
- package/dist/acp/session-registry.js +654 -17
- package/dist/acp/stdio-server.js +10 -1
- package/dist/cli-core.js +1 -1
- package/dist/pi-transcript-tools.js +3 -2
- package/dist/pi-transcript.js +12 -2
- package/dist/runtime-host-session-channel.js +63 -9
- package/native/runtime-host-windows-task-launcher/prebuilds/win32-x64/maka-runtime-host-task-launcher.exe +0 -0
- package/node_modules/@maka/core/dist/artifacts.js +6 -0
- package/node_modules/@maka/core/dist/attachments.js +7 -2
- package/node_modules/@maka/core/dist/durable-tool-result-projection.js +3 -1
- package/node_modules/@maka/core/dist/events.js +21 -0
- package/node_modules/@maka/core/dist/goal.js +44 -2
- package/node_modules/@maka/core/dist/permission.js +0 -1
- package/node_modules/@maka/core/dist/runtime-boundary.js +73 -29
- package/node_modules/@maka/core/dist/runtime-event.js +6 -3
- package/node_modules/@maka/core/dist/runtime-handoff.js +10 -2
- package/node_modules/@maka/core/dist/runtime-logical-execution.js +39 -14
- package/node_modules/@maka/core/dist/tool-result-archive-evidence.js +3 -1
- package/node_modules/@maka/core/dist/tool-result-record-schema.js +2 -1
- package/node_modules/@maka/core/dist/unified-diff.js +33 -26
- package/node_modules/@maka/runtime/dist/ai-sdk-compaction.js +49 -178
- package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +7 -2
- package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +15 -53
- package/node_modules/@maka/runtime/dist/bash-model-output.js +7 -1
- package/node_modules/@maka/runtime/dist/bash-tail-buffer.js +13 -52
- package/node_modules/@maka/runtime/dist/builtin-tools.js +59 -111
- package/node_modules/@maka/runtime/dist/child-fd-input.js +3 -2
- package/node_modules/@maka/runtime/dist/context-budget-policy.js +1 -11
- package/node_modules/@maka/runtime/dist/context-budget.js +12 -1
- package/node_modules/@maka/runtime/dist/conversation-copy.js +104 -9
- package/node_modules/@maka/runtime/dist/filesystem-executor.js +10 -6
- package/node_modules/@maka/runtime/dist/filesystem-worker/client.js +77 -19
- package/node_modules/@maka/runtime/dist/filesystem-worker/launch-spec.js +66 -55
- package/node_modules/@maka/runtime/dist/filesystem-worker/operations.js +34 -97
- package/node_modules/@maka/runtime/dist/filesystem-worker/protocol.js +25 -10
- package/node_modules/@maka/runtime/dist/filesystem-worker/worker-entry.js +2 -0
- package/node_modules/@maka/runtime/dist/glob-search.js +74 -0
- package/node_modules/@maka/runtime/dist/goal-continuation.js +78 -8
- package/node_modules/@maka/runtime/dist/goal-state.js +7 -0
- package/node_modules/@maka/runtime/dist/grep-search.js +155 -0
- package/node_modules/@maka/runtime/dist/ledger-tool-result-archive-reader.js +84 -94
- package/node_modules/@maka/runtime/dist/model-history.js +25 -3
- package/node_modules/@maka/runtime/dist/pipe-tail-collector.js +6 -9
- package/node_modules/@maka/runtime/dist/read-page.js +231 -0
- package/node_modules/@maka/runtime/dist/request-projection.js +2 -15
- package/node_modules/@maka/runtime/dist/ripgrep-executable.js +62 -0
- package/node_modules/@maka/runtime/dist/ripgrep-guidance.js +81 -0
- package/node_modules/@maka/runtime/dist/runtime-event-read-model.js +187 -20
- package/node_modules/@maka/runtime/dist/runtime-read-model.js +2 -1
- package/node_modules/@maka/runtime/dist/sandbox/linux-profile-path.js +7 -1
- package/node_modules/@maka/runtime/dist/sandbox/linux-sandbox.js +20 -5
- package/node_modules/@maka/runtime/dist/session-manager.js +6 -6
- package/node_modules/@maka/runtime/dist/session-recap.js +9 -5
- package/node_modules/@maka/runtime/dist/shell-exec.js +7 -25
- package/node_modules/@maka/runtime/dist/shell-run-manager.js +1 -1
- package/node_modules/@maka/runtime/dist/shell-run-tool-result.js +1 -1
- package/node_modules/@maka/runtime/dist/shell-tools.js +6 -12
- package/node_modules/@maka/runtime/dist/tool-availability.js +0 -1
- package/node_modules/@maka/runtime/dist/tool-output.js +1 -1
- package/node_modules/@maka/runtime/dist/tool-result-archive-capability.js +24 -36
- package/node_modules/@maka/runtime/dist/tool-result-archive-resource.js +32 -527
- package/node_modules/@maka/runtime/dist/tool-result-archive-transition.js +17 -119
- package/node_modules/@maka/runtime/dist/tool-result-archive.js +7 -25
- package/node_modules/@maka/runtime/dist/tool-runtime.js +7 -5
- package/node_modules/@maka/runtime/dist/workers/filesystem-worker.js +6933 -3681
- package/node_modules/@maka/runtime/dist/workspace-executor.js +20 -24
- package/node_modules/@maka/runtime/package.json +2 -0
- package/node_modules/@maka/runtime-host/dist/client/host-handoff-copy.js +185 -191
- package/node_modules/@maka/runtime-host/dist/client/reconnecting-connection.js +3 -0
- package/node_modules/@maka/runtime-host/dist/protocol/index.js +5 -1
- package/node_modules/@maka/runtime-host/dist/protocol/message.js +2 -2
- package/node_modules/@maka/runtime-host/dist/protocol/operations.js +1 -0
- package/node_modules/@maka/runtime-host/dist/protocol/session-continuity.js +2 -2
- package/node_modules/@maka/runtime-host/dist/protocol/turn.js +10 -2
- package/node_modules/@maka/runtime-host/dist/protocol/workhub-coordination.js +38 -0
- package/node_modules/@maka/runtime-host/dist/server/execution-artifacts.js +2 -8
- package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +2 -0
- package/node_modules/@maka/runtime-host/dist/server/goal-coordinator.js +81 -7
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-tool-profile.js +13 -13
- package/node_modules/@maka/runtime-host/dist/server/interaction-coordinator.js +65 -0
- package/node_modules/@maka/runtime-host/dist/server/root-turn-coordinator.js +1 -0
- package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +5 -2
- package/node_modules/@maka/runtime-host/dist/server/session-transcript-reader.js +88 -72
- package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-action-gate.js +21 -4
- package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-coordinator.js +145 -1
- package/node_modules/@maka/storage/dist/agent-run-store.js +5 -2
- package/node_modules/@maka/storage/dist/execution-stores.js +2 -1
- package/node_modules/@maka/storage/dist/runtime-transcript-query.js +27 -14
- package/node_modules/@maka/storage/dist/sqlite-runtime-store.js +69 -3
- package/node_modules/balanced-match/LICENSE.md +23 -0
- package/node_modules/balanced-match/README.md +57 -0
- package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/balanced-match/package.json +68 -0
- package/node_modules/brace-expansion/LICENSE +23 -0
- package/node_modules/brace-expansion/README.md +105 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +289 -0
- package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/brace-expansion/dist/esm/index.js +285 -0
- package/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/brace-expansion/package.json +64 -0
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1203 -0
- package/node_modules/glob/dist/commonjs/glob.js +248 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.js +223 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/esm/glob.js +244 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.min.js +4 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.js +219 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/package.json +98 -0
- package/node_modules/minimatch/LICENSE.md +55 -0
- package/node_modules/minimatch/README.md +528 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/minimatch/package.json +73 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +636 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/path-scurry/node_modules/lru-cache/README.md +469 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
- package/node_modules/path-scurry/package.json +72 -0
- package/package.json +1 -1
- package/node_modules/@maka/runtime/dist/active-tool-result-prune.js +0 -248
- package/node_modules/@maka/runtime/dist/active-tool-result-working-set.js +0 -218
- package/node_modules/@maka/runtime/dist/archive-read-tool.js +0 -115
|
@@ -20,11 +20,9 @@ import { z } from 'zod';
|
|
|
20
20
|
import { jsonSchema, zodSchema } from 'ai';
|
|
21
21
|
import { encodedTerminalInputActionsByteLength, normalizeTerminalInputActionDefaults, parseTerminalInputAction, TERMINAL_INPUT_MODIFIERS, TERMINAL_INPUT_NAMED_KEYS, TERMINAL_MOUSE_BUTTONS, TERMINAL_MOUSE_EVENTS, TERMINAL_MOUSE_SCROLL_DIRECTIONS, } from '@maka/core/terminal-input';
|
|
22
22
|
import { isActiveShellRunStatus } from '@maka/core/shell-run';
|
|
23
|
-
import { redactSecrets } from '@maka/core/redaction';
|
|
24
23
|
import { isLikelySandboxDenial } from './sandbox/detect.js';
|
|
25
24
|
import { runShellWithBoundedTail } from './shell-exec.js';
|
|
26
25
|
import { bashToolShellGuidance, bashToolTurnShellGuidance, defaultShellPlan, throwIfShellSetupFailed, } from './shell-detect.js';
|
|
27
|
-
import { truncateToolOutput } from './tool-output.js';
|
|
28
26
|
import { DEFAULT_BASH_TIMEOUT_MS, MAX_PTY_COLS, MAX_PTY_ROWS, MAX_FOREGROUND_BASH_TIMEOUT_MS, MAX_SHELL_RUN_RESOURCE_REF_CHARS, MAX_SHELL_RUN_TIMEOUT_MS, MAX_WRITE_STDIN_ACTIONS, MAX_WRITE_STDIN_INPUT_BYTES, MIN_PTY_COLS, MIN_PTY_ROWS, isShellRunResourceRef, isWellFormedTerminalInput, } from './shell-run-contract.js';
|
|
29
27
|
import { bashToolResultToModelOutput } from './bash-model-output.js';
|
|
30
28
|
import { BASH_REQUIRED_BOUNDARY_DESCRIPTION, bashBoundaryIntentSchema, preflightDeclaredSandboxBoundary, preprocessBashBoundaryDeclaration, refineBashBoundaryDeclaration, sandboxBoundaryExpansionSchema, selectedBashBoundaryExpansion, } from './sandbox-boundary-declaration.js';
|
|
@@ -473,23 +471,19 @@ function isEmptyProviderSize(value) {
|
|
|
473
471
|
entries.every(([, field]) => field === undefined || field === null || field === 0));
|
|
474
472
|
}
|
|
475
473
|
export function shapeTerminalResult(input) {
|
|
476
|
-
const stdout = redactSecrets(input.result.stdout);
|
|
477
|
-
const stderr = redactSecrets(input.result.stderr);
|
|
478
|
-
const stdoutView = truncateToolOutput(stdout, { direction: 'tail' });
|
|
479
|
-
const stderrView = truncateToolOutput(stderr, { direction: 'tail' });
|
|
480
474
|
return {
|
|
481
475
|
kind: 'terminal',
|
|
482
476
|
cwd: input.cwd,
|
|
483
|
-
cmd:
|
|
477
|
+
cmd: input.command,
|
|
484
478
|
status: terminalStatus(input.result),
|
|
485
479
|
exitCode: input.result.exitCode,
|
|
486
480
|
output: {
|
|
487
481
|
mode: 'pipes',
|
|
488
|
-
stdout:
|
|
489
|
-
stderr:
|
|
490
|
-
stdoutTruncated: Boolean(input.result.stdoutTruncated)
|
|
491
|
-
stderrTruncated: Boolean(input.result.stderrTruncated)
|
|
492
|
-
redacted:
|
|
482
|
+
stdout: input.result.stdout,
|
|
483
|
+
stderr: input.result.stderr,
|
|
484
|
+
stdoutTruncated: Boolean(input.result.stdoutTruncated),
|
|
485
|
+
stderrTruncated: Boolean(input.result.stderrTruncated),
|
|
486
|
+
redacted: false,
|
|
493
487
|
},
|
|
494
488
|
...(isLikelySandboxDenial({
|
|
495
489
|
stdout: input.result.stdout,
|
|
@@ -141,7 +141,7 @@ export function truncateToolOutput(text, options = {}) {
|
|
|
141
141
|
return { content: text, truncated: false, removed: 0, unit: 'lines' };
|
|
142
142
|
}
|
|
143
143
|
const unit = hitBytes ? 'bytes' : 'lines';
|
|
144
|
-
const marker = `...${removed} ${unit} truncated. ${OUTPUT_RECOVERY_HINT} ` +
|
|
144
|
+
const marker = `...${removed} ${unit} truncated. ${options.recoveryHint ?? OUTPUT_RECOVERY_HINT} ` +
|
|
145
145
|
'Otherwise work from the kept output above.';
|
|
146
146
|
const content = direction === 'head' ? `${preview}\n\n${marker}` : `${marker}\n\n${preview}`;
|
|
147
147
|
return { content, truncated: true, removed, unit };
|
|
@@ -16,45 +16,33 @@
|
|
|
16
16
|
* specific language governing permissions and limitations
|
|
17
17
|
* under the License.
|
|
18
18
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*
|
|
22
|
-
* When the context budget prunes a large tool result, the placeholder that
|
|
23
|
-
* replaces it is a runtime-generated protocol value naming `ArchiveRead` as the
|
|
24
|
-
* way back to the content. Writer, replay reader, ref-addressed reader and that
|
|
25
|
-
* decoder tool therefore share one authority: a host either archives and can
|
|
26
|
-
* read back, or does neither. Splitting them across backend options and tool
|
|
27
|
-
* options made "writer on, decoder absent" representable, and it shipped twice
|
|
28
|
-
* (#2025 and the child-agent path).
|
|
29
|
-
*
|
|
30
|
-
* Hosts supply only storage. The decoder travels with the capability and is
|
|
31
|
-
* bound by the backend, so which host remembered to register a tool is no
|
|
32
|
-
* longer part of the question.
|
|
33
|
-
*/
|
|
34
|
-
import { ARCHIVE_READ_TOOL_NAME, buildArchiveReadTool } from './archive-read-tool.js';
|
|
35
|
-
export { ARCHIVE_READ_TOOL_NAME };
|
|
19
|
+
import { readToolResultArchiveResource, } from './tool-result-archive-resource.js';
|
|
20
|
+
import { readParameters, resolveReadInput } from './read-page.js';
|
|
36
21
|
export function createToolResultArchiveCapability(services) {
|
|
37
|
-
return Object.freeze({
|
|
38
|
-
services: Object.freeze({ ...services }),
|
|
39
|
-
archiveReadTool: buildArchiveReadTool({
|
|
40
|
-
readArchivedToolResultResource: services.readArchivedToolResultResource,
|
|
41
|
-
}),
|
|
42
|
-
});
|
|
22
|
+
return Object.freeze({ services: Object.freeze({ ...services }) });
|
|
43
23
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Add the decoder to a session's tool set when — and only when — that session
|
|
46
|
-
* archives.
|
|
47
|
-
*
|
|
48
|
-
* No in-tree host binds `ArchiveRead` any more, so the dedup guard exists for
|
|
49
|
-
* tool sets this runtime does not own: an embedder's custom tool, or an agent
|
|
50
|
-
* definition that names it. Such a tool wins, which also means it — not this
|
|
51
|
-
* capability — is what the placeholder's ref will be handed to. Advertising two
|
|
52
|
-
* tools under one name would be worse.
|
|
53
|
-
*/
|
|
54
24
|
export function bindToolResultArchiveDecoder(tools, capability) {
|
|
55
25
|
if (!capability)
|
|
56
26
|
return [...tools];
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
27
|
+
const existing = tools.find((tool) => tool.name === 'Read');
|
|
28
|
+
const read = {
|
|
29
|
+
...existing,
|
|
30
|
+
name: 'Read',
|
|
31
|
+
activityKind: 'read',
|
|
32
|
+
description: existing
|
|
33
|
+
? existing.description + ' Also accepts Maka tool-result paths returned in this session.'
|
|
34
|
+
: 'Read a Maka tool-result address returned in this session. offset and limit are optional zero-based line pagination. Use the returned next object to continue. File access is not available.',
|
|
35
|
+
parameters: readParameters,
|
|
36
|
+
impl: async (input, ctx) => {
|
|
37
|
+
const { path } = resolveReadInput(input);
|
|
38
|
+
const prefix = 'maka://runtime/tool-results/';
|
|
39
|
+
if (!path.startsWith(prefix)) {
|
|
40
|
+
if (existing)
|
|
41
|
+
return existing.impl(input, ctx);
|
|
42
|
+
throw new Error('This Read tool only reads Maka tool-result addresses returned in this session. File access is not available.');
|
|
43
|
+
}
|
|
44
|
+
return readToolResultArchiveResource(capability.services, ctx.sessionId, input, ctx.abortSignal);
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
return [...tools.filter((tool) => tool.name !== 'Read'), read];
|
|
60
48
|
}
|