refactor: replace overloaded surface terminology

This commit is contained in:
Turtle
2026-07-24 19:54:25 +08:00
parent c172faed37
commit 0c708cb10d
626 changed files with 1396 additions and 1397 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ import type {} from '@deepseek-ai/dsh-system-prompt'
import { computeHunkDiffs, diffsFromMeta } from './diff.ts'
import { remediateFsError } from './error.ts'
import { sessionResolveOptions } from './session-cwd.ts'
import type { FsSandboxSurface } from './sandbox.ts'
import type { FsSandboxController } from './sandbox.ts'
/**
* Validate value constraints the schema DSL can't express: only a non-blank
@@ -57,9 +57,9 @@ interface WriteToolArgs {
/**
* Register the `write` tool and its system-prompt guidance.
* @param ctx - the plugin context; registrations are effects scoped to it, and execution uses its `fs` service.
* @param sandbox - the shared sandbox-escalation surface (advertisement, mode stamping, denial mapping).
* @param sandbox - the shared sandbox-escalation API (advertisement, mode stamping, denial mapping).
*/
export function applyWriteTool(ctx: Context, sandbox: FsSandboxSurface): void {
export function applyWriteTool(ctx: Context, sandbox: FsSandboxController): void {
ctx.systemPrompt.section({
name: 'tool:write',
order: 101,