API reference
files-patch
Import
Section titled “Import”import * as api from "@fungi.computer/knapsack/files-patch";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| constant | patchInputSchema | Browser-safe patch contracts shared by native Files tools and Computer HTTP. |
| constant | patchOutputSchema | Native patch completion, cancellation or failure, including an optional mismatch. |
patchInputSchemaconstant
Section titled “patchInputSchema”const patchInputSchema: ZodLazy< ZodObject< { patch: ZodString; }, $strict >>;Browser-safe patch contracts shared by native Files tools and Computer HTTP.
patchOutputSchemaconstant
Section titled “patchOutputSchema”const patchOutputSchema: ZodLazy<ZodUnion<readonly [ZodObject<{ status: ZodEnum<{ completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; exitCode: ZodNumber; stdout: ZodString; stderr: ZodString; truncated: ZodUnion<readonly [ZodLiteral<false>, ZodArray<ZodObject<{ stream: ZodEnum<...>; keptBytes: ZodNumber; totalBytes: ZodNumber; }, $strict>>]>;}, $strict>, ZodObject<{ status: ZodEnum<{ completed: "completed"; failed: "failed"; cancelled: "cancelled"; }>; exitCode: ZodNumber; stdout: ZodString; stderr: ZodString; truncated: ZodUnion<readonly [ZodLiteral<false>, ZodArray<ZodObject<{ stream: ZodEnum<...>; keptBytes: ZodNumber; totalBytes: ZodNumber; }, $strict>>]>; error: ZodObject<{ kind: ZodLiteral<"mismatch">; }, $strict>;}, $strict>]>>;Native patch completion, cancellation or failure, including an optional mismatch.