@getpaseo/protocol 0.1.87 → 0.1.88
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/binary-frames/file-transfer.d.ts +1 -1
- package/dist/binary-frames/file-transfer.js +2 -4
- package/dist/binary-frames/terminal.d.ts +1 -1
- package/dist/binary-frames/terminal.js +2 -4
- package/dist/client-capabilities.d.ts +1 -0
- package/dist/client-capabilities.js +6 -0
- package/dist/messages.d.ts +285 -14
- package/dist/messages.js +16 -18
- package/dist/provider-config.d.ts +23 -23
- package/dist/provider-config.js +14 -28
- package/dist/schedule/rpc-schemas.d.ts +73 -0
- package/dist/schedule/types.d.ts +13 -0
- package/dist/schedule/types.js +1 -0
- package/dist/terminal-snapshot.js +19 -6
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ export declare const FileBeginMetadataSchema: z.ZodObject<{
|
|
|
10
10
|
size: z.ZodNumber;
|
|
11
11
|
encoding: z.ZodEnum<["utf-8", "binary"]>;
|
|
12
12
|
modifiedAt: z.ZodString;
|
|
13
|
-
}, "
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
size: number;
|
|
15
15
|
modifiedAt: string;
|
|
16
16
|
encoding: "binary" | "utf-8";
|
|
@@ -5,14 +5,12 @@ export const FileTransferOpcode = {
|
|
|
5
5
|
FileChunk: 0x11,
|
|
6
6
|
FileEnd: 0x12,
|
|
7
7
|
};
|
|
8
|
-
export const FileBeginMetadataSchema = z
|
|
9
|
-
.object({
|
|
8
|
+
export const FileBeginMetadataSchema = z.object({
|
|
10
9
|
mime: z.string().min(1),
|
|
11
10
|
size: z.number().int().nonnegative(),
|
|
12
11
|
encoding: z.enum(["utf-8", "binary"]),
|
|
13
12
|
modifiedAt: z.string(),
|
|
14
|
-
})
|
|
15
|
-
.strict();
|
|
13
|
+
});
|
|
16
14
|
export function encodeFileTransferFrame(input) {
|
|
17
15
|
const requestId = encodeRequestId(input.requestId);
|
|
18
16
|
if (input.opcode === FileTransferOpcode.FileBegin) {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { TerminalStateSchema } from "../messages.js";
|
|
3
|
-
export const TerminalStreamResizeSchema = z
|
|
4
|
-
.object({
|
|
3
|
+
export const TerminalStreamResizeSchema = z.object({
|
|
5
4
|
rows: z.number().int().positive(),
|
|
6
5
|
cols: z.number().int().positive(),
|
|
7
|
-
})
|
|
8
|
-
.strict();
|
|
6
|
+
});
|
|
9
7
|
export const TerminalStreamOpcode = {
|
|
10
8
|
Output: 0x01,
|
|
11
9
|
Input: 0x02,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const CLIENT_CAPS: {
|
|
2
2
|
readonly reasoningMergeEnum: "reasoning_merge_enum";
|
|
3
3
|
readonly customModeIcons: "custom_mode_icons";
|
|
4
|
+
readonly terminalReflowableSnapshot: "terminal_reflowable_snapshot";
|
|
4
5
|
};
|
|
5
6
|
export type ClientCapability = (typeof CLIENT_CAPS)[keyof typeof CLIENT_CAPS];
|
|
6
7
|
//# sourceMappingURL=client-capabilities.d.ts.map
|
|
@@ -5,5 +5,11 @@ export const CLIENT_CAPS = {
|
|
|
5
5
|
// outside the legacy set to "ShieldCheck" when this cap is absent. Drop the
|
|
6
6
|
// gate when floor >= v0.1.84.
|
|
7
7
|
customModeIcons: "custom_mode_icons",
|
|
8
|
+
// COMPAT(terminalReflowableSnapshot): added in v0.1.88. The daemon attaches
|
|
9
|
+
// per-row soft-wrap flags (gridWrapped/scrollbackWrapped) to terminal snapshots
|
|
10
|
+
// only when the client advertises this, so restored content can reflow on resize.
|
|
11
|
+
// Old clients use a strict TerminalState schema and would reject the extra fields.
|
|
12
|
+
// Drop the gate (always send the flags) when floor >= v0.1.88.
|
|
13
|
+
terminalReflowableSnapshot: "terminal_reflowable_snapshot",
|
|
8
14
|
};
|
|
9
15
|
//# sourceMappingURL=client-capabilities.js.map
|