@powerhousedao/desktop 0.0.0-stage → 6.2.3-dev.101
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 +661 -0
- package/dist/bundle-backend-CvUS8-oc.mjs +1570 -0
- package/dist/bundle-backend-CvUS8-oc.mjs.map +1 -0
- package/dist/index.d.mts +333 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +149 -0
- package/dist/index.mjs.map +1 -0
- package/dist/local-key/local-key.mjs +6258 -0
- package/dist/runner.d.mts +367 -0
- package/dist/runner.d.mts.map +1 -0
- package/dist/runner.mjs +359 -0
- package/dist/runner.mjs.map +1 -0
- package/dist/sign-in/sign-in.js +325 -0
- package/package.json +49 -3
- package/README.md +0 -3
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { RunnerContext, RunnerHandle } from "@powerhousedao/host-core";
|
|
3
|
+
//#region src/runner.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* @powerhousedao/desktop/runner.
|
|
6
|
+
*
|
|
7
|
+
* - `run`/`serve`: the headless stack — byte-identical delegation to
|
|
8
|
+
* host-core's generic compound (phase-3 semantics unchanged).
|
|
9
|
+
* - `dev`: the NATIVE window. Mode 1 (phase 7) is the default — a builder
|
|
10
|
+
* ships under THEIR identity by editing `hosts/<host>/app.json` and never
|
|
11
|
+
* writing Rust: the runner projects app.json into a generated `tauri-shell/`
|
|
12
|
+
* that depends on the published `ph-desktop-shell` crate, provisions the
|
|
13
|
+
* native toolchain's compile-time inputs (node sidecar + icon set), and runs
|
|
14
|
+
* `cargo tauri dev`. An explicit `runner.shell.project` (or PH_DESKTOP_SHELL)
|
|
15
|
+
* still selects a prebuilt/hand-maintained shell instead.
|
|
16
|
+
* - `build`: the PACKAGING verb — members' builds (where exported), then the
|
|
17
|
+
* shippable stack staged into the shell + `cargo tauri build` with
|
|
18
|
+
* host-appropriate installer targets (nsis / app+dmg / deb+appimage).
|
|
19
|
+
*
|
|
20
|
+
* The native toolchain is required ONLY for dev/build; a missing cargo or
|
|
21
|
+
* Tauri CLI fails with install guidance (see shell-toolchain). `ph run <host>`
|
|
22
|
+
* (headless) needs none of it.
|
|
23
|
+
*/
|
|
24
|
+
export declare const kind = "compound";
|
|
25
|
+
/** The verbs this runner exports (`shellMode` is a helper). */
|
|
26
|
+
export declare const verbs: readonly ["run", "serve", "dev", "build"];
|
|
27
|
+
/** `runner.shell`: a prebuilt or hand-maintained shell (mode 2). Mirrors
|
|
28
|
+
* `ShellOptions` (shell.ts); a type test pins the two together. */
|
|
29
|
+
export declare const shellOptionsSchema: z.ZodObject<{
|
|
30
|
+
project: z.ZodOptional<z.ZodString>;
|
|
31
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
title: z.ZodOptional<z.ZodString>;
|
|
33
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
}, z.core.$strict>>;
|
|
36
|
+
tray: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
fileAssociations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
/** Declared form: what a host file may contain before resolution. */
|
|
40
|
+
export declare const declaredHostSchema: z.ZodObject<{
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
children: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
43
|
+
host: z.ZodString;
|
|
44
|
+
runner: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
module: z.ZodOptional<z.ZodString>;
|
|
46
|
+
defaultVerb: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
47
|
+
host: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
48
|
+
plugins: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
49
|
+
module: z.ZodString;
|
|
50
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
verbs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
|
|
52
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
53
|
+
}, z.core.$strict>]>>>>;
|
|
54
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
|
+
config: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
57
|
+
reactor: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
backends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
59
|
+
kind: z.ZodEnum<{
|
|
60
|
+
"in-process": "in-process";
|
|
61
|
+
remote: "remote";
|
|
62
|
+
worker: "worker";
|
|
63
|
+
}>;
|
|
64
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
kind: z.ZodEnum<{
|
|
66
|
+
idb: "idb";
|
|
67
|
+
memory: "memory";
|
|
68
|
+
path: "path";
|
|
69
|
+
postgres: "postgres";
|
|
70
|
+
}>;
|
|
71
|
+
dataDir: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodString, import("@powerhousedao/host-core").EnvToken>>;
|
|
72
|
+
url: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strict>>;
|
|
74
|
+
readModel: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
url: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strict>>;
|
|
77
|
+
packages: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
cdnUrl: z.ZodOptional<z.ZodString>;
|
|
79
|
+
specs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
80
|
+
dynamic: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
remote: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
url: import("@powerhousedao/host-core").TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
84
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
86
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
}, z.core.$strict>]>>;
|
|
89
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
}, z.core.$strict>>;
|
|
91
|
+
}, z.core.$strict>>>;
|
|
92
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
94
|
+
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
95
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
}, z.core.$strict>>;
|
|
101
|
+
protocol: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
documentDecisions: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
}, z.core.$strict>>;
|
|
109
|
+
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
110
|
+
legacy: "legacy";
|
|
111
|
+
"v2-required": "v2-required";
|
|
112
|
+
}>>;
|
|
113
|
+
unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
|
|
114
|
+
"read-only": "read-only";
|
|
115
|
+
refuse: "refuse";
|
|
116
|
+
}>>;
|
|
117
|
+
}, z.core.$strict>>;
|
|
118
|
+
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
renown: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
url: z.ZodOptional<z.ZodString>;
|
|
121
|
+
networkId: z.ZodOptional<z.ZodString>;
|
|
122
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
125
|
+
drives: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodArray<z.ZodObject<{
|
|
126
|
+
slug: z.ZodString;
|
|
127
|
+
id: z.ZodOptional<z.ZodString>;
|
|
128
|
+
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
129
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
130
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
131
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
132
|
+
}>>;
|
|
133
|
+
name: z.ZodOptional<z.ZodString>;
|
|
134
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
135
|
+
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
136
|
+
sharingType: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
private: "private";
|
|
138
|
+
public: "public";
|
|
139
|
+
shared: "shared";
|
|
140
|
+
}>>;
|
|
141
|
+
availableOffline: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
remote: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
url: import("@powerhousedao/host-core").TokenableSchema<z.ZodString>;
|
|
144
|
+
}, z.core.$strict>>;
|
|
145
|
+
}, z.core.$strict>>>>;
|
|
146
|
+
}, z.core.$strict>>;
|
|
147
|
+
}, z.core.$strict>>;
|
|
148
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
149
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
150
|
+
name: z.ZodOptional<z.ZodString>;
|
|
151
|
+
description: z.ZodOptional<z.ZodString>;
|
|
152
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
153
|
+
}, z.core.$strict>>;
|
|
154
|
+
runner: z.ZodObject<{
|
|
155
|
+
module: z.ZodString;
|
|
156
|
+
defaultVerb: z.ZodOptional<z.ZodString>;
|
|
157
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
host: z.ZodOptional<z.ZodString>;
|
|
159
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
160
|
+
module: z.ZodString;
|
|
161
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
verbs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
|
|
163
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
164
|
+
}, z.core.$strict>]>>>;
|
|
165
|
+
shell: z.ZodOptional<z.ZodObject<{
|
|
166
|
+
project: z.ZodOptional<z.ZodString>;
|
|
167
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
title: z.ZodOptional<z.ZodString>;
|
|
169
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
}, z.core.$strict>>;
|
|
172
|
+
tray: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
fileAssociations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
|
+
}, z.core.$strict>>;
|
|
175
|
+
vendorStack: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
phCliVersion: z.ZodOptional<z.ZodString>;
|
|
177
|
+
phCliSpec: z.ZodOptional<z.ZodString>;
|
|
178
|
+
bundleBackend: z.ZodOptional<z.ZodBoolean>;
|
|
179
|
+
}, z.core.$strict>;
|
|
180
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
startOrder: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
182
|
+
runtimeRecord: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
cspRegistrySync: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
}, z.core.$strict>>;
|
|
185
|
+
}, z.core.$strict>;
|
|
186
|
+
/** Resolved form: what the verbs receive (and `validateHost` checks). */
|
|
187
|
+
export declare const hostSchema: z.ZodObject<{
|
|
188
|
+
name: z.ZodString;
|
|
189
|
+
children: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
190
|
+
host: z.ZodString;
|
|
191
|
+
runner: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
module: z.ZodOptional<z.ZodString>;
|
|
193
|
+
defaultVerb: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
194
|
+
host: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
195
|
+
plugins: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
196
|
+
module: z.ZodString;
|
|
197
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
198
|
+
verbs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
|
|
199
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
200
|
+
}, z.core.$strict>]>>>>;
|
|
201
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
}, z.core.$loose>>;
|
|
203
|
+
config: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
204
|
+
reactor: z.ZodOptional<z.ZodObject<{
|
|
205
|
+
backends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
206
|
+
kind: z.ZodEnum<{
|
|
207
|
+
"in-process": "in-process";
|
|
208
|
+
remote: "remote";
|
|
209
|
+
worker: "worker";
|
|
210
|
+
}>;
|
|
211
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
212
|
+
kind: z.ZodEnum<{
|
|
213
|
+
idb: "idb";
|
|
214
|
+
memory: "memory";
|
|
215
|
+
path: "path";
|
|
216
|
+
postgres: "postgres";
|
|
217
|
+
}>;
|
|
218
|
+
dataDir: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodString, import("@powerhousedao/host-core").EnvToken>>;
|
|
219
|
+
url: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strict>>;
|
|
221
|
+
readModel: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
url: z.ZodOptional<z.ZodString>;
|
|
223
|
+
}, z.core.$strict>>;
|
|
224
|
+
packages: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
cdnUrl: z.ZodOptional<z.ZodString>;
|
|
226
|
+
specs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
227
|
+
dynamic: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
+
}, z.core.$strict>>;
|
|
229
|
+
remote: z.ZodOptional<z.ZodObject<{
|
|
230
|
+
url: import("@powerhousedao/host-core").TokenableSchema<z.ZodUnion<readonly [z.ZodURL, z.ZodString]>>;
|
|
231
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
breaker: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
233
|
+
failures: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
openMs: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
}, z.core.$strict>]>>;
|
|
236
|
+
realtime: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
}, z.core.$strict>>;
|
|
238
|
+
}, z.core.$strict>>>;
|
|
239
|
+
placement: z.ZodOptional<z.ZodObject<{
|
|
240
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
241
|
+
drives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
242
|
+
newDrives: z.ZodOptional<z.ZodString>;
|
|
243
|
+
}, z.core.$strict>>;
|
|
244
|
+
router: z.ZodOptional<z.ZodObject<{
|
|
245
|
+
probeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
provisionalRouteMs: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
}, z.core.$strict>>;
|
|
248
|
+
protocol: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
featureFlags: z.ZodOptional<z.ZodObject<{
|
|
250
|
+
documentDecisions: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
+
authEnforcement: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
authGroups: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
authConditions: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
undoV3: z.ZodOptional<z.ZodBoolean>;
|
|
255
|
+
}, z.core.$strict>>;
|
|
256
|
+
createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
|
|
257
|
+
legacy: "legacy";
|
|
258
|
+
"v2-required": "v2-required";
|
|
259
|
+
}>>;
|
|
260
|
+
unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
|
|
261
|
+
"read-only": "read-only";
|
|
262
|
+
refuse: "refuse";
|
|
263
|
+
}>>;
|
|
264
|
+
}, z.core.$strict>>;
|
|
265
|
+
workflows: z.ZodOptional<z.ZodBoolean>;
|
|
266
|
+
renown: z.ZodOptional<z.ZodObject<{
|
|
267
|
+
url: z.ZodOptional<z.ZodString>;
|
|
268
|
+
networkId: z.ZodOptional<z.ZodString>;
|
|
269
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
}, z.core.$strict>>;
|
|
271
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
272
|
+
drives: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodArray<z.ZodObject<{
|
|
273
|
+
slug: z.ZodString;
|
|
274
|
+
id: z.ZodOptional<z.ZodString>;
|
|
275
|
+
projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
|
|
276
|
+
documentType: z.ZodOptional<z.ZodEnum<{
|
|
277
|
+
"powerhouse/document-drive": "powerhouse/document-drive";
|
|
278
|
+
"powerhouse/reactor-drive": "powerhouse/reactor-drive";
|
|
279
|
+
}>>;
|
|
280
|
+
name: z.ZodOptional<z.ZodString>;
|
|
281
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
282
|
+
preferredEditor: z.ZodOptional<z.ZodString>;
|
|
283
|
+
sharingType: z.ZodOptional<z.ZodEnum<{
|
|
284
|
+
private: "private";
|
|
285
|
+
public: "public";
|
|
286
|
+
shared: "shared";
|
|
287
|
+
}>>;
|
|
288
|
+
availableOffline: z.ZodOptional<z.ZodBoolean>;
|
|
289
|
+
remote: z.ZodOptional<z.ZodObject<{
|
|
290
|
+
url: import("@powerhousedao/host-core").TokenableSchema<z.ZodString>;
|
|
291
|
+
}, z.core.$strict>>;
|
|
292
|
+
}, z.core.$strict>>>>;
|
|
293
|
+
}, z.core.$strict>>;
|
|
294
|
+
}, z.core.$strict>>;
|
|
295
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
296
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
297
|
+
name: z.ZodOptional<z.ZodString>;
|
|
298
|
+
description: z.ZodOptional<z.ZodString>;
|
|
299
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
runner: z.ZodObject<{
|
|
302
|
+
module: z.ZodString;
|
|
303
|
+
defaultVerb: z.ZodOptional<z.ZodString>;
|
|
304
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
host: z.ZodOptional<z.ZodString>;
|
|
306
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
307
|
+
module: z.ZodString;
|
|
308
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
309
|
+
verbs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
|
|
310
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
311
|
+
}, z.core.$strict>]>>>;
|
|
312
|
+
shell: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
project: z.ZodOptional<z.ZodString>;
|
|
314
|
+
window: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
title: z.ZodOptional<z.ZodString>;
|
|
316
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
317
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
}, z.core.$strict>>;
|
|
319
|
+
tray: z.ZodOptional<z.ZodBoolean>;
|
|
320
|
+
fileAssociations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
321
|
+
}, z.core.$strict>>;
|
|
322
|
+
vendorStack: z.ZodOptional<z.ZodBoolean>;
|
|
323
|
+
phCliVersion: z.ZodOptional<z.ZodString>;
|
|
324
|
+
phCliSpec: z.ZodOptional<z.ZodString>;
|
|
325
|
+
bundleBackend: z.ZodOptional<z.ZodBoolean>;
|
|
326
|
+
}, z.core.$strict>;
|
|
327
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
328
|
+
startOrder: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
329
|
+
runtimeRecord: z.ZodOptional<z.ZodBoolean>;
|
|
330
|
+
cspRegistrySync: z.ZodOptional<z.ZodBoolean>;
|
|
331
|
+
}, z.core.$strict>>;
|
|
332
|
+
}, z.core.$strict>;
|
|
333
|
+
/** What a desktop host.js author writes. */
|
|
334
|
+
export type DesktopHostInput = z.input<typeof declaredHostSchema>;
|
|
335
|
+
/** What the verbs receive. */
|
|
336
|
+
export type DesktopHost = z.output<typeof hostSchema>;
|
|
337
|
+
/** The desktop compound produces nothing of its own: what its members
|
|
338
|
+
* produce stays with the members (the compound's handles, the run record's
|
|
339
|
+
* `members`). */
|
|
340
|
+
export declare const outputsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
341
|
+
export type DesktopOutputs = z.infer<typeof outputsSchema>;
|
|
342
|
+
declare global {
|
|
343
|
+
interface PHHostRunners {
|
|
344
|
+
"@powerhousedao/desktop/runner": {
|
|
345
|
+
host: DesktopHostInput;
|
|
346
|
+
outputs: DesktopOutputs;
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
export type DesktopHandle = RunnerHandle<DesktopOutputs>;
|
|
351
|
+
export declare function run(host: DesktopHost, ctx: RunnerContext): Promise<DesktopHandle>;
|
|
352
|
+
/** Every member at `serve`, as the generic compound's `serve`. */
|
|
353
|
+
export declare function serve(host: DesktopHost, ctx: RunnerContext): Promise<DesktopHandle>;
|
|
354
|
+
export interface ShellHandle extends DesktopHandle {
|
|
355
|
+
/** Resolves when the shell window exits — the runner's keep-alive. */
|
|
356
|
+
exited: Promise<void>;
|
|
357
|
+
}
|
|
358
|
+
/** Which shell backs this host's native window (D7.d source order):
|
|
359
|
+
* an explicit `runner.shell.project`, else the app.json-generated shell,
|
|
360
|
+
* else the PH_DESKTOP_SHELL escape hatch. */
|
|
361
|
+
export declare function shellMode(host: Pick<DesktopHost, "name" | "runner">, ctx: RunnerContext): "external-project" | "generated" | "external-env" | "none";
|
|
362
|
+
export declare function dev(host: DesktopHost, ctx: RunnerContext): Promise<ShellHandle>;
|
|
363
|
+
/** build = members' builds + the shippable stack + the native installer. */
|
|
364
|
+
export declare function build(host: DesktopHost, ctx: RunnerContext): Promise<void>;
|
|
365
|
+
//#endregion
|
|
366
|
+
export {};
|
|
367
|
+
//# sourceMappingURL=runner.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner.d.mts","names":[],"sources":["../src/runner.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBA2Da;;qBAGA;;;qBAIA,oBAAkB,EAAA;;;;;;;;;GAY7B,EAAA,KAAA;;qBAwCW,oBAAkB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6B,EAAA,KAAA;;qBAE/C,YAAU,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqB,EAAA,KAAA;;YAGhC,mBAAmB,EAAE,aAAa;;YAElC,cAAc,EAAE,cAAc;;;;qBAK7B,eAAa,EAAA,cAAA,EAAA,KAAA;YAEd,iBAAiB,EAAE,aAAa;QAEpC;YACI;IACR;MACE,MAAM;MACN,SAAS;;;;YAKH,gBAAgB,aAAa;wBA0DnB,IACpB,MAAM,aACN,KAAK,gBACJ,QAAQ;;wBAKW,MACpB,MAAM,aACN,KAAK,gBACJ,QAAQ;iBAIM,oBAAoB;;EAEnC,QAAQ;;;;;wBA0BM,UACd,MAAM,KAAK,iCACX,KAAK;wBA4Ce,IACpB,MAAM,aACN,KAAK,gBACJ,QAAQ;;wBAgJW,MACpB,MAAM,aACN,KAAK,gBACJ"}
|