@av-pi-studio/protocol 0.0.100 → 0.0.102
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/messages.d.ts +19 -0
- package/dist/messages.js +7 -0
- package/package.json +1 -1
package/dist/messages.d.ts
CHANGED
|
@@ -49,12 +49,19 @@ export type Hello = z.infer<typeof helloSchema>;
|
|
|
49
49
|
/**
|
|
50
50
|
* The `server_info` payload carried by the `status` envelope. There is no dedicated welcome
|
|
51
51
|
* message — the server emits this after accepting the hello, then begins streaming.
|
|
52
|
+
*
|
|
53
|
+
* `homeDir` is the daemon host's home directory (`os.homedir()`), the authoritative value clients
|
|
54
|
+
* expand a `~`-prefixed `cwd`/path against. It is the daemon's home, not the client's: a browser on
|
|
55
|
+
* macOS may drive a Linux daemon (or vice versa), so a client MUST never derive it locally.
|
|
56
|
+
* Optional only for wire compatibility with daemons predating it — a client that gets no value
|
|
57
|
+
* leaves tilde paths unexpanded rather than guessing.
|
|
52
58
|
*/
|
|
53
59
|
export declare const serverInfoPayloadSchema: z.ZodObject<{
|
|
54
60
|
status: z.ZodLiteral<"server_info">;
|
|
55
61
|
serverId: z.ZodString;
|
|
56
62
|
hostname: z.ZodOptional<z.ZodString>;
|
|
57
63
|
version: z.ZodOptional<z.ZodString>;
|
|
64
|
+
homeDir: z.ZodOptional<z.ZodString>;
|
|
58
65
|
capabilities: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
59
66
|
features: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
60
67
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -62,6 +69,7 @@ export declare const serverInfoPayloadSchema: z.ZodObject<{
|
|
|
62
69
|
serverId: string;
|
|
63
70
|
hostname?: string | undefined;
|
|
64
71
|
version?: string | undefined;
|
|
72
|
+
homeDir?: string | undefined;
|
|
65
73
|
capabilities: Record<string, unknown>;
|
|
66
74
|
features: Record<string, unknown>;
|
|
67
75
|
}, {
|
|
@@ -69,6 +77,7 @@ export declare const serverInfoPayloadSchema: z.ZodObject<{
|
|
|
69
77
|
serverId: string;
|
|
70
78
|
hostname?: string | undefined;
|
|
71
79
|
version?: string | undefined;
|
|
80
|
+
homeDir?: string | undefined;
|
|
72
81
|
capabilities: Record<string, unknown>;
|
|
73
82
|
features: Record<string, unknown>;
|
|
74
83
|
}>;
|
|
@@ -81,6 +90,7 @@ export declare const statusSchema: z.ZodObject<{
|
|
|
81
90
|
serverId: z.ZodString;
|
|
82
91
|
hostname: z.ZodOptional<z.ZodString>;
|
|
83
92
|
version: z.ZodOptional<z.ZodString>;
|
|
93
|
+
homeDir: z.ZodOptional<z.ZodString>;
|
|
84
94
|
capabilities: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
85
95
|
features: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
86
96
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -88,6 +98,7 @@ export declare const statusSchema: z.ZodObject<{
|
|
|
88
98
|
serverId: string;
|
|
89
99
|
hostname?: string | undefined;
|
|
90
100
|
version?: string | undefined;
|
|
101
|
+
homeDir?: string | undefined;
|
|
91
102
|
capabilities: Record<string, unknown>;
|
|
92
103
|
features: Record<string, unknown>;
|
|
93
104
|
}, {
|
|
@@ -95,6 +106,7 @@ export declare const statusSchema: z.ZodObject<{
|
|
|
95
106
|
serverId: string;
|
|
96
107
|
hostname?: string | undefined;
|
|
97
108
|
version?: string | undefined;
|
|
109
|
+
homeDir?: string | undefined;
|
|
98
110
|
capabilities: Record<string, unknown>;
|
|
99
111
|
features: Record<string, unknown>;
|
|
100
112
|
}>;
|
|
@@ -105,6 +117,7 @@ export declare const statusSchema: z.ZodObject<{
|
|
|
105
117
|
serverId: string;
|
|
106
118
|
hostname?: string | undefined;
|
|
107
119
|
version?: string | undefined;
|
|
120
|
+
homeDir?: string | undefined;
|
|
108
121
|
capabilities: Record<string, unknown>;
|
|
109
122
|
features: Record<string, unknown>;
|
|
110
123
|
};
|
|
@@ -115,6 +128,7 @@ export declare const statusSchema: z.ZodObject<{
|
|
|
115
128
|
serverId: string;
|
|
116
129
|
hostname?: string | undefined;
|
|
117
130
|
version?: string | undefined;
|
|
131
|
+
homeDir?: string | undefined;
|
|
118
132
|
capabilities: Record<string, unknown>;
|
|
119
133
|
features: Record<string, unknown>;
|
|
120
134
|
};
|
|
@@ -21888,6 +21902,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
21888
21902
|
serverId: z.ZodString;
|
|
21889
21903
|
hostname: z.ZodOptional<z.ZodString>;
|
|
21890
21904
|
version: z.ZodOptional<z.ZodString>;
|
|
21905
|
+
homeDir: z.ZodOptional<z.ZodString>;
|
|
21891
21906
|
capabilities: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
21892
21907
|
features: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
21893
21908
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -21895,6 +21910,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
21895
21910
|
serverId: string;
|
|
21896
21911
|
hostname?: string | undefined;
|
|
21897
21912
|
version?: string | undefined;
|
|
21913
|
+
homeDir?: string | undefined;
|
|
21898
21914
|
capabilities: Record<string, unknown>;
|
|
21899
21915
|
features: Record<string, unknown>;
|
|
21900
21916
|
}, {
|
|
@@ -21902,6 +21918,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
21902
21918
|
serverId: string;
|
|
21903
21919
|
hostname?: string | undefined;
|
|
21904
21920
|
version?: string | undefined;
|
|
21921
|
+
homeDir?: string | undefined;
|
|
21905
21922
|
capabilities: Record<string, unknown>;
|
|
21906
21923
|
features: Record<string, unknown>;
|
|
21907
21924
|
}>;
|
|
@@ -21912,6 +21929,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
21912
21929
|
serverId: string;
|
|
21913
21930
|
hostname?: string | undefined;
|
|
21914
21931
|
version?: string | undefined;
|
|
21932
|
+
homeDir?: string | undefined;
|
|
21915
21933
|
capabilities: Record<string, unknown>;
|
|
21916
21934
|
features: Record<string, unknown>;
|
|
21917
21935
|
};
|
|
@@ -21922,6 +21940,7 @@ export declare const topLevelEnvelopeSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
21922
21940
|
serverId: string;
|
|
21923
21941
|
hostname?: string | undefined;
|
|
21924
21942
|
version?: string | undefined;
|
|
21943
|
+
homeDir?: string | undefined;
|
|
21925
21944
|
capabilities: Record<string, unknown>;
|
|
21926
21945
|
features: Record<string, unknown>;
|
|
21927
21946
|
};
|
package/dist/messages.js
CHANGED
|
@@ -39,12 +39,19 @@ export const helloSchema = z.object({
|
|
|
39
39
|
/**
|
|
40
40
|
* The `server_info` payload carried by the `status` envelope. There is no dedicated welcome
|
|
41
41
|
* message — the server emits this after accepting the hello, then begins streaming.
|
|
42
|
+
*
|
|
43
|
+
* `homeDir` is the daemon host's home directory (`os.homedir()`), the authoritative value clients
|
|
44
|
+
* expand a `~`-prefixed `cwd`/path against. It is the daemon's home, not the client's: a browser on
|
|
45
|
+
* macOS may drive a Linux daemon (or vice versa), so a client MUST never derive it locally.
|
|
46
|
+
* Optional only for wire compatibility with daemons predating it — a client that gets no value
|
|
47
|
+
* leaves tilde paths unexpanded rather than guessing.
|
|
42
48
|
*/
|
|
43
49
|
export const serverInfoPayloadSchema = z.object({
|
|
44
50
|
status: z.literal("server_info"),
|
|
45
51
|
serverId: z.string(),
|
|
46
52
|
hostname: z.string().optional(),
|
|
47
53
|
version: z.string().optional(),
|
|
54
|
+
homeDir: z.string().optional(),
|
|
48
55
|
capabilities: z.record(z.string(), z.unknown()),
|
|
49
56
|
features: z.record(z.string(), z.unknown()),
|
|
50
57
|
});
|