dsh-typst-plugin 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.en.md +121 -0
- package/README.md +120 -2
- package/cordis.patch.yml +6 -0
- package/docs/images/icon.png +0 -0
- package/docs/plugin-detail.en.md +2 -0
- package/docs/plugin-detail.md +2 -0
- package/lib/client.js +41996 -0
- package/lib/client.js.map +7 -0
- package/lib/config.d.ts +107 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +167 -0
- package/lib/config.js.map +1 -0
- package/lib/constants.d.ts +77 -0
- package/lib/constants.d.ts.map +1 -0
- package/lib/constants.js +85 -0
- package/lib/constants.js.map +1 -0
- package/lib/contract.d.ts +263 -0
- package/lib/contract.d.ts.map +1 -0
- package/lib/contract.js +9 -0
- package/lib/contract.js.map +1 -0
- package/lib/diagnostic-text.d.ts +13 -0
- package/lib/diagnostic-text.d.ts.map +1 -0
- package/lib/diagnostic-text.js +28 -0
- package/lib/diagnostic-text.js.map +1 -0
- package/lib/errors.d.ts +119 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +161 -0
- package/lib/errors.js.map +1 -0
- package/lib/host/facts.d.ts +31 -0
- package/lib/host/facts.d.ts.map +1 -0
- package/lib/host/facts.js +145 -0
- package/lib/host/facts.js.map +1 -0
- package/lib/host/which.d.ts +20 -0
- package/lib/host/which.d.ts.map +1 -0
- package/lib/host/which.js +50 -0
- package/lib/host/which.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/remote.d.ts +70 -0
- package/lib/remote.d.ts.map +1 -0
- package/lib/remote.js +156 -0
- package/lib/remote.js.map +1 -0
- package/lib/service.d.ts +71 -0
- package/lib/service.d.ts.map +1 -0
- package/lib/service.js +213 -0
- package/lib/service.js.map +1 -0
- package/lib/skills/typst.d.ts +13 -0
- package/lib/skills/typst.d.ts.map +1 -0
- package/lib/skills/typst.js +78 -0
- package/lib/skills/typst.js.map +1 -0
- package/lib/status-codec.d.ts +11 -0
- package/lib/status-codec.d.ts.map +1 -0
- package/lib/status-codec.js +11 -0
- package/lib/status-codec.js.map +1 -0
- package/lib/tools/registration.d.ts +23 -0
- package/lib/tools/registration.d.ts.map +1 -0
- package/lib/tools/registration.js +758 -0
- package/lib/tools/registration.js.map +1 -0
- package/lib/tools/shared.d.ts +30 -0
- package/lib/tools/shared.d.ts.map +1 -0
- package/lib/tools/shared.js +79 -0
- package/lib/tools/shared.js.map +1 -0
- package/lib/typert.d.ts +25 -0
- package/lib/typert.d.ts.map +1 -0
- package/lib/typert.js +116 -0
- package/lib/typert.js.map +1 -0
- package/lib/typst/diagnostics.d.ts +58 -0
- package/lib/typst/diagnostics.d.ts.map +1 -0
- package/lib/typst/diagnostics.js +237 -0
- package/lib/typst/diagnostics.js.map +1 -0
- package/lib/typst/flags.d.ts +8 -0
- package/lib/typst/flags.d.ts.map +1 -0
- package/lib/typst/flags.js +8 -0
- package/lib/typst/flags.js.map +1 -0
- package/lib/typst/locate.d.ts +61 -0
- package/lib/typst/locate.d.ts.map +1 -0
- package/lib/typst/locate.js +152 -0
- package/lib/typst/locate.js.map +1 -0
- package/lib/typst/mainfile.d.ts +40 -0
- package/lib/typst/mainfile.d.ts.map +1 -0
- package/lib/typst/mainfile.js +136 -0
- package/lib/typst/mainfile.js.map +1 -0
- package/lib/typst/match.d.ts +67 -0
- package/lib/typst/match.d.ts.map +1 -0
- package/lib/typst/match.js +227 -0
- package/lib/typst/match.js.map +1 -0
- package/lib/typst/oneshot.d.ts +48 -0
- package/lib/typst/oneshot.d.ts.map +1 -0
- package/lib/typst/oneshot.js +86 -0
- package/lib/typst/oneshot.js.map +1 -0
- package/lib/typst/owners.d.ts +28 -0
- package/lib/typst/owners.d.ts.map +1 -0
- package/lib/typst/owners.js +98 -0
- package/lib/typst/owners.js.map +1 -0
- package/lib/typst/pdf-extract.d.ts +28 -0
- package/lib/typst/pdf-extract.d.ts.map +1 -0
- package/lib/typst/pdf-extract.js +111 -0
- package/lib/typst/pdf-extract.js.map +1 -0
- package/lib/typst/process.d.ts +73 -0
- package/lib/typst/process.d.ts.map +1 -0
- package/lib/typst/process.js +147 -0
- package/lib/typst/process.js.map +1 -0
- package/lib/typst/text.d.ts +62 -0
- package/lib/typst/text.d.ts.map +1 -0
- package/lib/typst/text.js +282 -0
- package/lib/typst/text.js.map +1 -0
- package/lib/typst/watcher.d.ts +76 -0
- package/lib/typst/watcher.d.ts.map +1 -0
- package/lib/typst/watcher.js +210 -0
- package/lib/typst/watcher.js.map +1 -0
- package/lib/wire-schemas.d.ts +433 -0
- package/lib/wire-schemas.d.ts.map +1 -0
- package/lib/wire-schemas.js +428 -0
- package/lib/wire-schemas.js.map +1 -0
- package/lib/workspace/containment.d.ts +25 -0
- package/lib/workspace/containment.d.ts.map +1 -0
- package/lib/workspace/containment.js +54 -0
- package/lib/workspace/containment.js.map +1 -0
- package/lib/workspace/session.d.ts +268 -0
- package/lib/workspace/session.d.ts.map +1 -0
- package/lib/workspace/session.js +1576 -0
- package/lib/workspace/session.js.map +1 -0
- package/locale/en.json +15 -0
- package/locale/zh.json +15 -0
- package/package.json +113 -4
- package/release-provenance.json +137 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The wire boundary's single source: every zod schema the `typst` namespace
|
|
3
|
+
* validates with, and the one shared invocation list both halves register.
|
|
4
|
+
* `TYPST_INVOCATIONS` materializes each schema once through `strictCodec()`;
|
|
5
|
+
* the host manifest aliases it in `src/status-codec.ts` and the browser face
|
|
6
|
+
* aliases it in `src/client/status-codec.ts`. Neither half imports the
|
|
7
|
+
* other's module or builds its own descriptor list, so the two sides cannot
|
|
8
|
+
* disagree about a boundary.
|
|
9
|
+
*
|
|
10
|
+
* Client-safe: its imports are `zod`, the contract's own types, and the
|
|
11
|
+
* runtime constants module, all of which
|
|
12
|
+
* `scripts/client-graph-authority.mjs` allowlists.
|
|
13
|
+
* @module dsh-typst/wire-schemas
|
|
14
|
+
*/
|
|
15
|
+
import { z } from "zod";
|
|
16
|
+
import type { InvocationDescriptor, TypertCodec } from "@deepseek-ai/dsh-typert-protocol";
|
|
17
|
+
/**
|
|
18
|
+
* Wrap a wire schema in the strict codec arm Typert expects. The strict arm
|
|
19
|
+
* is exactly `{ mode, typeSymbol, create }` (plus optional `encode`/`decode`
|
|
20
|
+
* for byte-carrying results, which the preview result adds), so no live
|
|
21
|
+
* schema property is carried and `create()` materializes on first use.
|
|
22
|
+
* @param typeSymbol - the boundary type identity the manifest declares.
|
|
23
|
+
* @param schema - the shared wire schema both halves validate through.
|
|
24
|
+
* @returns the strict codec arm.
|
|
25
|
+
*/
|
|
26
|
+
export declare function strictCodec(typeSymbol: string, schema: z.ZodType): TypertCodec;
|
|
27
|
+
export declare const typstSourceSchema: z.ZodEnum<{
|
|
28
|
+
setting: "setting";
|
|
29
|
+
path: "path";
|
|
30
|
+
common: "common";
|
|
31
|
+
shell: "shell";
|
|
32
|
+
}>;
|
|
33
|
+
export declare const toolchainSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
34
|
+
state: z.ZodLiteral<"ready">;
|
|
35
|
+
version: z.ZodString;
|
|
36
|
+
path: z.ZodString;
|
|
37
|
+
source: z.ZodEnum<{
|
|
38
|
+
setting: "setting";
|
|
39
|
+
path: "path";
|
|
40
|
+
common: "common";
|
|
41
|
+
shell: "shell";
|
|
42
|
+
}>;
|
|
43
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44
|
+
state: z.ZodLiteral<"missing">;
|
|
45
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
46
|
+
state: z.ZodLiteral<"too_old">;
|
|
47
|
+
version: z.ZodString;
|
|
48
|
+
path: z.ZodString;
|
|
49
|
+
source: z.ZodEnum<{
|
|
50
|
+
setting: "setting";
|
|
51
|
+
path: "path";
|
|
52
|
+
common: "common";
|
|
53
|
+
shell: "shell";
|
|
54
|
+
}>;
|
|
55
|
+
error: z.ZodString;
|
|
56
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
57
|
+
state: z.ZodLiteral<"error">;
|
|
58
|
+
path: z.ZodOptional<z.ZodString>;
|
|
59
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
setting: "setting";
|
|
61
|
+
path: "path";
|
|
62
|
+
common: "common";
|
|
63
|
+
shell: "shell";
|
|
64
|
+
}>>;
|
|
65
|
+
error: z.ZodString;
|
|
66
|
+
}, z.core.$strict>], "state">;
|
|
67
|
+
export declare const diagnosticLocationSchema: z.ZodObject<{
|
|
68
|
+
file: z.ZodString;
|
|
69
|
+
line: z.ZodNumber;
|
|
70
|
+
column: z.ZodNumber;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
export declare const diagnosticPointSchema: z.ZodObject<{
|
|
73
|
+
message: z.ZodString;
|
|
74
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
75
|
+
file: z.ZodString;
|
|
76
|
+
line: z.ZodNumber;
|
|
77
|
+
column: z.ZodNumber;
|
|
78
|
+
}, z.core.$strict>>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
export declare const diagnosticSchema: z.ZodObject<{
|
|
81
|
+
severity: z.ZodEnum<{
|
|
82
|
+
error: "error";
|
|
83
|
+
warning: "warning";
|
|
84
|
+
}>;
|
|
85
|
+
message: z.ZodString;
|
|
86
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
87
|
+
file: z.ZodString;
|
|
88
|
+
line: z.ZodNumber;
|
|
89
|
+
column: z.ZodNumber;
|
|
90
|
+
}, z.core.$strict>>;
|
|
91
|
+
excerpt: z.ZodOptional<z.ZodString>;
|
|
92
|
+
hints: z.ZodArray<z.ZodString>;
|
|
93
|
+
trace: z.ZodArray<z.ZodObject<{
|
|
94
|
+
message: z.ZodString;
|
|
95
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
96
|
+
file: z.ZodString;
|
|
97
|
+
line: z.ZodNumber;
|
|
98
|
+
column: z.ZodNumber;
|
|
99
|
+
}, z.core.$strict>>;
|
|
100
|
+
}, z.core.$strict>>;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
export declare const compilePhaseSchema: z.ZodEnum<{
|
|
103
|
+
error: "error";
|
|
104
|
+
idle: "idle";
|
|
105
|
+
starting: "starting";
|
|
106
|
+
compiling: "compiling";
|
|
107
|
+
ok: "ok";
|
|
108
|
+
warnings: "warnings";
|
|
109
|
+
crashed: "crashed";
|
|
110
|
+
}>;
|
|
111
|
+
export declare const statusSchema: z.ZodObject<{
|
|
112
|
+
phase: z.ZodEnum<{
|
|
113
|
+
error: "error";
|
|
114
|
+
idle: "idle";
|
|
115
|
+
starting: "starting";
|
|
116
|
+
compiling: "compiling";
|
|
117
|
+
ok: "ok";
|
|
118
|
+
warnings: "warnings";
|
|
119
|
+
crashed: "crashed";
|
|
120
|
+
}>;
|
|
121
|
+
run: z.ZodNumber;
|
|
122
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
error: z.ZodOptional<z.ZodString>;
|
|
124
|
+
finishedAt: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
export declare const previewIdentitySchema: z.ZodObject<{
|
|
127
|
+
generation: z.ZodNumber;
|
|
128
|
+
seq: z.ZodNumber;
|
|
129
|
+
sha256: z.ZodString;
|
|
130
|
+
}, z.core.$strict>;
|
|
131
|
+
export declare const snapshotSchema: z.ZodObject<{
|
|
132
|
+
generation: z.ZodNumber;
|
|
133
|
+
main: z.ZodString;
|
|
134
|
+
run: z.ZodNumber;
|
|
135
|
+
seq: z.ZodNumber;
|
|
136
|
+
bytes: z.ZodNumber;
|
|
137
|
+
pages: z.ZodNumber;
|
|
138
|
+
sha256: z.ZodString;
|
|
139
|
+
createdAt: z.ZodNumber;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
export declare const sourceRefSchema: z.ZodObject<{
|
|
142
|
+
file: z.ZodString;
|
|
143
|
+
line: z.ZodNumber;
|
|
144
|
+
endLine: z.ZodNumber;
|
|
145
|
+
}, z.core.$strict>;
|
|
146
|
+
export declare const highlightSchema: z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
identity: z.ZodObject<{
|
|
149
|
+
generation: z.ZodNumber;
|
|
150
|
+
seq: z.ZodNumber;
|
|
151
|
+
sha256: z.ZodString;
|
|
152
|
+
}, z.core.$strict>;
|
|
153
|
+
quote: z.ZodString;
|
|
154
|
+
comment: z.ZodString;
|
|
155
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
file: z.ZodString;
|
|
157
|
+
line: z.ZodNumber;
|
|
158
|
+
endLine: z.ZodNumber;
|
|
159
|
+
}, z.core.$strict>>;
|
|
160
|
+
seq: z.ZodNumber;
|
|
161
|
+
pageIndex: z.ZodNumber;
|
|
162
|
+
startOffset: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
rects: z.ZodArray<z.ZodArray<z.ZodNumber>>;
|
|
165
|
+
stale: z.ZodBoolean;
|
|
166
|
+
createdAt: z.ZodNumber;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
export declare const panelViewSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
169
|
+
kind: z.ZodLiteral<"page">;
|
|
170
|
+
pageIndex: z.ZodNumber;
|
|
171
|
+
identity: z.ZodObject<{
|
|
172
|
+
generation: z.ZodNumber;
|
|
173
|
+
seq: z.ZodNumber;
|
|
174
|
+
sha256: z.ZodString;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
177
|
+
kind: z.ZodLiteral<"highlight">;
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
identity: z.ZodObject<{
|
|
180
|
+
generation: z.ZodNumber;
|
|
181
|
+
seq: z.ZodNumber;
|
|
182
|
+
sha256: z.ZodString;
|
|
183
|
+
}, z.core.$strict>;
|
|
184
|
+
}, z.core.$strict>], "kind">;
|
|
185
|
+
export declare const packageManagerSchema: z.ZodObject<{
|
|
186
|
+
name: z.ZodString;
|
|
187
|
+
version: z.ZodOptional<z.ZodString>;
|
|
188
|
+
path: z.ZodString;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
export declare const hostFactsSchema: z.ZodObject<{
|
|
191
|
+
os: z.ZodEnum<{
|
|
192
|
+
macos: "macos";
|
|
193
|
+
windows: "windows";
|
|
194
|
+
linux: "linux";
|
|
195
|
+
other: "other";
|
|
196
|
+
}>;
|
|
197
|
+
osName: z.ZodString;
|
|
198
|
+
arch: z.ZodString;
|
|
199
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
200
|
+
name: z.ZodString;
|
|
201
|
+
version: z.ZodOptional<z.ZodString>;
|
|
202
|
+
path: z.ZodString;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
}, z.core.$strict>;
|
|
205
|
+
export declare const setupSchema: z.ZodObject<{
|
|
206
|
+
facts: z.ZodNullable<z.ZodObject<{
|
|
207
|
+
os: z.ZodEnum<{
|
|
208
|
+
macos: "macos";
|
|
209
|
+
windows: "windows";
|
|
210
|
+
linux: "linux";
|
|
211
|
+
other: "other";
|
|
212
|
+
}>;
|
|
213
|
+
osName: z.ZodString;
|
|
214
|
+
arch: z.ZodString;
|
|
215
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
version: z.ZodOptional<z.ZodString>;
|
|
218
|
+
path: z.ZodString;
|
|
219
|
+
}, z.core.$strict>>;
|
|
220
|
+
}, z.core.$strict>>;
|
|
221
|
+
searched: z.ZodArray<z.ZodString>;
|
|
222
|
+
}, z.core.$strict>;
|
|
223
|
+
export declare const typstStateFrameSchema: z.ZodObject<{
|
|
224
|
+
version: z.ZodNumber;
|
|
225
|
+
generation: z.ZodNumber;
|
|
226
|
+
previewError: z.ZodNullable<z.ZodString>;
|
|
227
|
+
discovery: z.ZodObject<{
|
|
228
|
+
scanning: z.ZodBoolean;
|
|
229
|
+
includeExcluded: z.ZodBoolean;
|
|
230
|
+
visited: z.ZodNumber;
|
|
231
|
+
errors: z.ZodArray<z.ZodString>;
|
|
232
|
+
}, z.core.$strict>;
|
|
233
|
+
toolchain: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
234
|
+
state: z.ZodLiteral<"ready">;
|
|
235
|
+
version: z.ZodString;
|
|
236
|
+
path: z.ZodString;
|
|
237
|
+
source: z.ZodEnum<{
|
|
238
|
+
setting: "setting";
|
|
239
|
+
path: "path";
|
|
240
|
+
common: "common";
|
|
241
|
+
shell: "shell";
|
|
242
|
+
}>;
|
|
243
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
244
|
+
state: z.ZodLiteral<"missing">;
|
|
245
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
246
|
+
state: z.ZodLiteral<"too_old">;
|
|
247
|
+
version: z.ZodString;
|
|
248
|
+
path: z.ZodString;
|
|
249
|
+
source: z.ZodEnum<{
|
|
250
|
+
setting: "setting";
|
|
251
|
+
path: "path";
|
|
252
|
+
common: "common";
|
|
253
|
+
shell: "shell";
|
|
254
|
+
}>;
|
|
255
|
+
error: z.ZodString;
|
|
256
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
257
|
+
state: z.ZodLiteral<"error">;
|
|
258
|
+
path: z.ZodOptional<z.ZodString>;
|
|
259
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
setting: "setting";
|
|
261
|
+
path: "path";
|
|
262
|
+
common: "common";
|
|
263
|
+
shell: "shell";
|
|
264
|
+
}>>;
|
|
265
|
+
error: z.ZodString;
|
|
266
|
+
}, z.core.$strict>], "state">;
|
|
267
|
+
workspace: z.ZodString;
|
|
268
|
+
workspaceRoot: z.ZodString;
|
|
269
|
+
main: z.ZodNullable<z.ZodString>;
|
|
270
|
+
candidates: z.ZodArray<z.ZodString>;
|
|
271
|
+
fragments: z.ZodArray<z.ZodString>;
|
|
272
|
+
status: z.ZodObject<{
|
|
273
|
+
phase: z.ZodEnum<{
|
|
274
|
+
error: "error";
|
|
275
|
+
idle: "idle";
|
|
276
|
+
starting: "starting";
|
|
277
|
+
compiling: "compiling";
|
|
278
|
+
ok: "ok";
|
|
279
|
+
warnings: "warnings";
|
|
280
|
+
crashed: "crashed";
|
|
281
|
+
}>;
|
|
282
|
+
run: z.ZodNumber;
|
|
283
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
error: z.ZodOptional<z.ZodString>;
|
|
285
|
+
finishedAt: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
}, z.core.$strict>;
|
|
287
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
288
|
+
severity: z.ZodEnum<{
|
|
289
|
+
error: "error";
|
|
290
|
+
warning: "warning";
|
|
291
|
+
}>;
|
|
292
|
+
message: z.ZodString;
|
|
293
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
294
|
+
file: z.ZodString;
|
|
295
|
+
line: z.ZodNumber;
|
|
296
|
+
column: z.ZodNumber;
|
|
297
|
+
}, z.core.$strict>>;
|
|
298
|
+
excerpt: z.ZodOptional<z.ZodString>;
|
|
299
|
+
hints: z.ZodArray<z.ZodString>;
|
|
300
|
+
trace: z.ZodArray<z.ZodObject<{
|
|
301
|
+
message: z.ZodString;
|
|
302
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
303
|
+
file: z.ZodString;
|
|
304
|
+
line: z.ZodNumber;
|
|
305
|
+
column: z.ZodNumber;
|
|
306
|
+
}, z.core.$strict>>;
|
|
307
|
+
}, z.core.$strict>>;
|
|
308
|
+
}, z.core.$strict>>;
|
|
309
|
+
diagnosticsTotal: z.ZodNumber;
|
|
310
|
+
diagnosticsTruncated: z.ZodBoolean;
|
|
311
|
+
snapshot: z.ZodNullable<z.ZodObject<{
|
|
312
|
+
generation: z.ZodNumber;
|
|
313
|
+
main: z.ZodString;
|
|
314
|
+
run: z.ZodNumber;
|
|
315
|
+
seq: z.ZodNumber;
|
|
316
|
+
bytes: z.ZodNumber;
|
|
317
|
+
pages: z.ZodNumber;
|
|
318
|
+
sha256: z.ZodString;
|
|
319
|
+
createdAt: z.ZodNumber;
|
|
320
|
+
}, z.core.$strict>>;
|
|
321
|
+
highlights: z.ZodArray<z.ZodObject<{
|
|
322
|
+
id: z.ZodString;
|
|
323
|
+
identity: z.ZodObject<{
|
|
324
|
+
generation: z.ZodNumber;
|
|
325
|
+
seq: z.ZodNumber;
|
|
326
|
+
sha256: z.ZodString;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
quote: z.ZodString;
|
|
329
|
+
comment: z.ZodString;
|
|
330
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
331
|
+
file: z.ZodString;
|
|
332
|
+
line: z.ZodNumber;
|
|
333
|
+
endLine: z.ZodNumber;
|
|
334
|
+
}, z.core.$strict>>;
|
|
335
|
+
seq: z.ZodNumber;
|
|
336
|
+
pageIndex: z.ZodNumber;
|
|
337
|
+
startOffset: z.ZodOptional<z.ZodNumber>;
|
|
338
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
339
|
+
rects: z.ZodArray<z.ZodArray<z.ZodNumber>>;
|
|
340
|
+
stale: z.ZodBoolean;
|
|
341
|
+
createdAt: z.ZodNumber;
|
|
342
|
+
}, z.core.$strict>>;
|
|
343
|
+
view: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
344
|
+
kind: z.ZodLiteral<"page">;
|
|
345
|
+
pageIndex: z.ZodNumber;
|
|
346
|
+
identity: z.ZodObject<{
|
|
347
|
+
generation: z.ZodNumber;
|
|
348
|
+
seq: z.ZodNumber;
|
|
349
|
+
sha256: z.ZodString;
|
|
350
|
+
}, z.core.$strict>;
|
|
351
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
352
|
+
kind: z.ZodLiteral<"highlight">;
|
|
353
|
+
id: z.ZodString;
|
|
354
|
+
identity: z.ZodObject<{
|
|
355
|
+
generation: z.ZodNumber;
|
|
356
|
+
seq: z.ZodNumber;
|
|
357
|
+
sha256: z.ZodString;
|
|
358
|
+
}, z.core.$strict>;
|
|
359
|
+
}, z.core.$strict>], "kind">, z.ZodNull]>;
|
|
360
|
+
viewSeq: z.ZodNumber;
|
|
361
|
+
setup: z.ZodObject<{
|
|
362
|
+
facts: z.ZodNullable<z.ZodObject<{
|
|
363
|
+
os: z.ZodEnum<{
|
|
364
|
+
macos: "macos";
|
|
365
|
+
windows: "windows";
|
|
366
|
+
linux: "linux";
|
|
367
|
+
other: "other";
|
|
368
|
+
}>;
|
|
369
|
+
osName: z.ZodString;
|
|
370
|
+
arch: z.ZodString;
|
|
371
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
372
|
+
name: z.ZodString;
|
|
373
|
+
version: z.ZodOptional<z.ZodString>;
|
|
374
|
+
path: z.ZodString;
|
|
375
|
+
}, z.core.$strict>>;
|
|
376
|
+
}, z.core.$strict>>;
|
|
377
|
+
searched: z.ZodArray<z.ZodString>;
|
|
378
|
+
}, z.core.$strict>;
|
|
379
|
+
}, z.core.$strict>;
|
|
380
|
+
export declare const setMainResultSchema: z.ZodObject<{
|
|
381
|
+
main: z.ZodString;
|
|
382
|
+
}, z.core.$strict>;
|
|
383
|
+
export declare const sourceMatchSchema: z.ZodObject<{
|
|
384
|
+
file: z.ZodString;
|
|
385
|
+
line: z.ZodNumber;
|
|
386
|
+
column: z.ZodNumber;
|
|
387
|
+
endLine: z.ZodNumber;
|
|
388
|
+
excerpt: z.ZodString;
|
|
389
|
+
score: z.ZodNumber;
|
|
390
|
+
}, z.core.$strict>;
|
|
391
|
+
export declare const locateSourceResultSchema: z.ZodObject<{
|
|
392
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
393
|
+
file: z.ZodString;
|
|
394
|
+
line: z.ZodNumber;
|
|
395
|
+
column: z.ZodNumber;
|
|
396
|
+
endLine: z.ZodNumber;
|
|
397
|
+
excerpt: z.ZodString;
|
|
398
|
+
score: z.ZodNumber;
|
|
399
|
+
}, z.core.$strict>>;
|
|
400
|
+
}, z.core.$strict>;
|
|
401
|
+
export declare const previewBytesSchema: z.ZodObject<{
|
|
402
|
+
generation: z.ZodNumber;
|
|
403
|
+
seq: z.ZodNumber;
|
|
404
|
+
sha256: z.ZodString;
|
|
405
|
+
data: z.ZodInstanceOf<Uint8Array<ArrayBuffer>>;
|
|
406
|
+
}, z.core.$strict>;
|
|
407
|
+
/** The typst state frame result codec, shared by `status`, `watch`, and `recheck`. */
|
|
408
|
+
export declare const stateFrameCodec: TypertCodec<unknown>;
|
|
409
|
+
/** `status`: the current state frame, first push of the panel's data. */
|
|
410
|
+
export declare const typstStatusInvocation: InvocationDescriptor;
|
|
411
|
+
/** `setMain`: choose the main `.typ` file; the frame updates follow on the stream. */
|
|
412
|
+
export declare const typstSetMainInvocation: InvocationDescriptor;
|
|
413
|
+
/**
|
|
414
|
+
* `watch`: the live state stream. `mode: 'stream'`: the first yielded frame
|
|
415
|
+
* is the current state, one frame follows every relevant change.
|
|
416
|
+
*/
|
|
417
|
+
export declare const typstWatchInvocation: InvocationDescriptor;
|
|
418
|
+
/**
|
|
419
|
+
* `readPreview`: the current preview PDF's bytes. The strict codec projects
|
|
420
|
+
* the `data` field into the RPC's byte attachments on the wire.
|
|
421
|
+
*/
|
|
422
|
+
export declare const typstReadPreviewInvocation: InvocationDescriptor;
|
|
423
|
+
/** `locateSource`: match rendered text against the workspace's sources. */
|
|
424
|
+
export declare const typstLocateSourceInvocation: InvocationDescriptor;
|
|
425
|
+
/** `recheck`: look Typst up again (the setup page's refresh), returning the new frame. */
|
|
426
|
+
export declare const typstRecheckInvocation: InvocationDescriptor;
|
|
427
|
+
/** `restart`: stop the watch, relocate typst, rescan, restart (the panel's restart button). */
|
|
428
|
+
export declare const typstRestartInvocation: InvocationDescriptor;
|
|
429
|
+
/** Explicit index refresh; the stream reports incremental progress. */
|
|
430
|
+
export declare const typstDiscoverInvocation: InvocationDescriptor;
|
|
431
|
+
/** Both halves register exactly this list. */
|
|
432
|
+
export declare const TYPST_INVOCATIONS: readonly InvocationDescriptor[];
|
|
433
|
+
//# sourceMappingURL=wire-schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire-schemas.d.ts","sourceRoot":"","sources":["../src/wire-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EACV,oBAAoB,EACpB,WAAW,EACZ,MAAM,kCAAkC,CAAC;AAyB1C;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,CAAC,CAAC,OAAO,GAChB,WAAW,CAEb;AAWD,eAAO,MAAM,iBAAiB;;;;;EAAiD,CAAC;AAEhF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA2BS,CAAC;AAEtC,eAAO,MAAM,wBAAwB;;;;kBAM1B,CAAC;AAEZ,eAAO,MAAM,qBAAqB;;;;;;;kBAKvB,CAAC;AAEZ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;kBASkB,CAAC;AAEhD,eAAO,MAAM,kBAAkB;;;;;;;;EAQK,CAAC;AAErC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;kBAQd,CAAC;AAEZ,eAAO,MAAM,qBAAqB;;;;kBAMvB,CAAC;AAEZ,eAAO,MAAM,cAAc;;;;;;;;;kBAWkB,CAAC;AAE9C,eAAO,MAAM,eAAe;;;;kBAMkB,CAAC;AAE/C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;kBAekB,CAAC;AAE/C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;4BAeoB,CAAC;AAEjD,eAAO,MAAM,oBAAoB;;;;kBAMtB,CAAC;AAEZ,eAAO,MAAM,eAAe;;;;;;;;;;;;;;kBAOjB,CAAC;AAEZ,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;kBAKb,CAAC;AAEZ,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6Bc,CAAC;AAEjD,eAAO,MAAM,mBAAmB;;kBAA0C,CAAC;AAE3E,eAAO,MAAM,iBAAiB;;;;;;;kBASc,CAAC;AAE7C,eAAO,MAAM,wBAAwB;;;;;;;;;kBAE1B,CAAC;AAEZ,eAAO,MAAM,kBAAkB;;;;;kBAOpB,CAAC;AAqDZ,sFAAsF;AACtF,eAAO,MAAM,eAAe,sBAG3B,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,EAAE,oBASnC,CAAC;AAEF,sFAAsF;AACtF,eAAO,MAAM,sBAAsB,EAAE,oBAuBpC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,oBAUlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,oBAwBxC,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,EAAE,oBAgCzC,CAAC;AAEF,0FAA0F;AAC1F,eAAO,MAAM,sBAAsB,EAAE,oBASpC,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,sBAAsB,EAAE,oBASpC,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,EAAE,oBA6BrC,CAAC;AAEF,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,EAAE,SAAS,oBAAoB,EAS5D,CAAC"}
|