import type { Sandbox } from "@daytonaio/sdk"; import type { PluginEnvironmentSyncResult, PluginSpan, PluginSyncOperation } from "@penclipai/plugin-sdk"; /** * Run one span-wrapped step through the plugin tracer. The pack step, the * transfer step, and each command round trip share this helper. It seeds the * provider family, runs the step, marks a thrown step failed, and always ends * the span. The host records the span with its true wall-clock width from the * worker timestamps, so the span shows real time in the trace. The tracer is a * no-op until the host injects a live tracer, so the span never changes the sync * control flow. * * `wallMsAttr` is optional. The `pack` and `transfer` spans pass it to keep * their existing `*.wall_ms` attribute. A per-round-trip span omits it, so it * carries no `*.wall_ms` attribute and relies on the native span width. * * `run` receives the live span, so a caller that needs to record an attribute * only known after the step completes (for example the compression byte * counts) can call `span.setAttribute` directly, without a second span. */ export declare function withProviderSpan(input: { name: string; wallMsAttr?: string; attributes?: Record; run: (span: PluginSpan) => Promise; }): Promise; /** * Host-side complete-mediation guard applied as defense-in-depth below the * orchestrator's own confinement. Every sandbox-side path (the sync target for * inbound, the sync source for outbound) MUST canonicalize inside the workspace * remote dir; absolute escapes and `..` traversal are rejected fail-closed before * any bytes move. Sandbox paths on the server are POSIX. */ export declare function assertConfinedSandboxPath(remoteDir: string, candidate: string, label: string): void; /** * Parse one `tar -tvf` verbose listing line into its leading type flag and the * trailing name-and-link-target field. The listing dialect depends on which tar * the host ships: GNU/busybox emit * ` /