@powerhousedao/clint 6.2.3-dev.70 → 6.2.3-dev.71

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.
@@ -1,153 +1,396 @@
1
1
  import { St as ServiceManager } from "../types-DrLfp2dR.mjs";
2
- import { HostDefinition, RunnerContext } from "@powerhousedao/host-core";
2
+ import { z } from "zod";
3
+ import { RunnerContext, RunnerHandle } from "@powerhousedao/host-core";
3
4
  //#region src/runners/clint-runner.d.ts
4
5
  /**
5
- * clint-runner (P5.4): the clint framework shell as a compound-kind runner.
6
- * Children declared in hosts/cli/host.js are SCHEDULED as clint services —
7
- * each member runs as `ph-cli run <member>` in its own (hidden) process with
8
- * state files, logs, readiness patterns and restart policies from the ported
9
- * services manager; `lifecycle: "detached"` (the default, clint's own
10
- * posture) leaves children running when the shell exits and re-attaches on
11
- * the next run, `"attached"` tears them down vetra-style.
12
- *
13
- * The agents manager (config.agents) maps names to OpenAI-compatible
14
- * endpoints — a sibling host reference resolves through that host's
15
- * runner.port (the mastra-runner serves /v1 there). `dev` adds a line chat
16
- * loop against the first agent; the full ink REPL remains the library path
17
- * (defineCli) for implementation projects, as scaffolded clint CLIs use it
18
- * natively — noted in the phase-5 WBS.
6
+ * clint-runner (P5.4): the clint shell as a compound runner. Each member
7
+ * runs as `ph-cli run <member>` in its own process, scheduled by the ported
8
+ * services manager; `lifecycle: "detached"` (default) leaves members running
9
+ * and re-attaches next run, `"attached"` tears them down. `config.agents`
10
+ * maps names to OpenAI-compatible endpoints (a literal, or a member's
11
+ * `endpoints.openai` token resolved once it is up). `dev` adds a line chat
12
+ * loop against the first agent; the ink REPL stays the library path.
19
13
  */
20
14
  export declare const kind = "compound";
21
- export declare const hostSchema: import("zod").ZodObject<{
22
- name: import("zod").ZodString;
23
- runner: import("zod").ZodObject<{
24
- module: import("zod").ZodString;
25
- defaultVerb: import("zod").ZodOptional<import("zod").ZodString>;
26
- port: import("zod").ZodOptional<import("zod").ZodNumber>;
27
- host: import("zod").ZodOptional<import("zod").ZodString>;
28
- plugins: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
29
- module: import("zod").ZodString;
30
- enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
31
- verbs: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"*">, import("zod").ZodArray<import("zod").ZodString>]>>;
32
- config: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
33
- }, import("zod/v4/core").$strict>]>>>;
34
- }, import("zod/v4/core").$loose>;
35
- children: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
36
- host: import("zod").ZodString;
37
- runner: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
38
- config: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
39
- reactor: import("zod").ZodOptional<import("zod").ZodObject<{
40
- backends: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
41
- kind: import("zod").ZodOptional<import("zod").ZodEnum<{
15
+ /** Declared form: what a host file may contain before resolution. */
16
+ export declare const declaredHostSchema: z.ZodObject<{
17
+ name: z.ZodString;
18
+ profile: z.ZodOptional<z.ZodObject<{
19
+ appId: z.ZodOptional<z.ZodString>;
20
+ name: z.ZodOptional<z.ZodString>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ icon: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strict>>;
24
+ runner: z.ZodObject<{
25
+ module: z.ZodString;
26
+ defaultVerb: z.ZodOptional<z.ZodString>;
27
+ port: z.ZodOptional<z.ZodNumber>;
28
+ host: z.ZodOptional<z.ZodString>;
29
+ plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
30
+ module: z.ZodString;
31
+ enabled: z.ZodOptional<z.ZodBoolean>;
32
+ verbs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
33
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
34
+ }, z.core.$strict>]>>>;
35
+ lifecycle: z.ZodOptional<z.ZodEnum<{
36
+ attached: "attached";
37
+ detached: "detached";
38
+ }>>;
39
+ proxy: z.ZodOptional<z.ZodObject<{
40
+ port: z.ZodNumber;
41
+ host: z.ZodOptional<z.ZodString>;
42
+ publicUrl: z.ZodOptional<z.ZodURL>;
43
+ routes: z.ZodRecord<z.ZodString, z.ZodObject<{
44
+ upstream: z.ZodUnion<[z.ZodURL, z.ZodType<import("@powerhousedao/host-core").Token, import("@powerhousedao/host-core").ConcatToken | import("@powerhousedao/host-core").EnvToken | import("@powerhousedao/host-core").ItemToken<string> | import("@powerhousedao/host-core").OutputToken<string> | ({
45
+ $key: true;
46
+ } | {
47
+ $key: string;
48
+ }), z.core.$ZodTypeInternals<import("@powerhousedao/host-core").Token, import("@powerhousedao/host-core").ConcatToken | import("@powerhousedao/host-core").EnvToken | import("@powerhousedao/host-core").ItemToken<string> | import("@powerhousedao/host-core").OutputToken<string> | ({
49
+ $key: true;
50
+ } | {
51
+ $key: string;
52
+ })>>]>;
53
+ path: z.ZodOptional<z.ZodString>;
54
+ ws: z.ZodOptional<z.ZodBoolean>;
55
+ }, z.core.$strict>>;
56
+ }, z.core.$strict>>;
57
+ }, z.core.$strict>;
58
+ children: z.ZodRecord<z.ZodString, z.ZodObject<{
59
+ host: z.ZodString;
60
+ runner: z.ZodOptional<z.ZodObject<{
61
+ module: z.ZodOptional<z.ZodString>;
62
+ defaultVerb: z.ZodOptional<z.ZodOptional<z.ZodString>>;
63
+ port: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
64
+ host: z.ZodOptional<z.ZodOptional<z.ZodString>>;
65
+ plugins: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
66
+ module: z.ZodString;
67
+ enabled: z.ZodOptional<z.ZodBoolean>;
68
+ verbs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
69
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
70
+ }, z.core.$strict>]>>>>;
71
+ }, z.core.$loose>>;
72
+ reactor: z.ZodOptional<z.ZodObject<{
73
+ backends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
74
+ kind: z.ZodEnum<{
42
75
  "in-process": "in-process";
43
76
  remote: "remote";
44
77
  worker: "worker";
78
+ }>;
79
+ storage: z.ZodOptional<z.ZodObject<{
80
+ kind: z.ZodEnum<{
81
+ idb: "idb";
82
+ memory: "memory";
83
+ path: "path";
84
+ postgres: "postgres";
85
+ }>;
86
+ dataDir: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodString, import("@powerhousedao/host-core").EnvToken>>;
87
+ url: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$strict>>;
89
+ readModel: z.ZodOptional<z.ZodObject<{
90
+ url: z.ZodOptional<z.ZodString>;
91
+ }, z.core.$strict>>;
92
+ packages: z.ZodOptional<z.ZodObject<{
93
+ cdnUrl: z.ZodOptional<z.ZodString>;
94
+ specs: z.ZodOptional<z.ZodArray<z.ZodString>>;
95
+ dynamic: z.ZodOptional<z.ZodBoolean>;
96
+ }, z.core.$strict>>;
97
+ remote: z.ZodOptional<z.ZodObject<{
98
+ url: import("@powerhousedao/host-core").TokenableSchema<z.ZodURL>;
99
+ }, z.core.$strict>>;
100
+ projection: z.ZodOptional<z.ZodObject<{
101
+ enabled: z.ZodOptional<z.ZodBoolean>;
102
+ dbPoolSize: z.ZodOptional<z.ZodNumber>;
103
+ }, z.core.$strict>>;
104
+ executors: z.ZodOptional<z.ZodObject<{
105
+ numWorkers: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"auto">]>>;
106
+ }, z.core.$strict>>;
107
+ }, z.core.$strict>>>;
108
+ placement: z.ZodOptional<z.ZodObject<{
109
+ primary: z.ZodOptional<z.ZodString>;
110
+ default: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
111
+ }, z.core.$strict>>;
112
+ protocol: z.ZodOptional<z.ZodObject<{
113
+ featureFlags: z.ZodOptional<z.ZodObject<{
114
+ documentDecisions: z.ZodOptional<z.ZodBoolean>;
115
+ authEnforcement: z.ZodOptional<z.ZodBoolean>;
116
+ authGroups: z.ZodOptional<z.ZodBoolean>;
117
+ authConditions: z.ZodOptional<z.ZodBoolean>;
118
+ }, z.core.$strict>>;
119
+ createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
120
+ legacy: "legacy";
121
+ "v2-required": "v2-required";
122
+ }>>;
123
+ unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
124
+ "read-only": "read-only";
125
+ refuse: "refuse";
126
+ }>>;
127
+ }, z.core.$strict>>;
128
+ workflows: z.ZodOptional<z.ZodBoolean>;
129
+ renown: z.ZodOptional<z.ZodObject<{
130
+ url: z.ZodOptional<z.ZodString>;
131
+ networkId: z.ZodOptional<z.ZodString>;
132
+ chainId: z.ZodOptional<z.ZodNumber>;
133
+ }, z.core.$strict>>;
134
+ packages: z.ZodOptional<z.ZodObject<{
135
+ registryUrl: z.ZodOptional<z.ZodString>;
136
+ }, z.core.$strict>>;
137
+ namespace: z.ZodOptional<z.ZodString>;
138
+ auth: z.ZodOptional<z.ZodObject<{
139
+ enabled: z.ZodOptional<z.ZodBoolean>;
140
+ admins: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
+ renown: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
142
+ }, z.core.$strict>>;
143
+ drives: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodArray<z.ZodObject<{
144
+ slug: z.ZodString;
145
+ id: z.ZodOptional<z.ZodString>;
146
+ projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
147
+ name: z.ZodOptional<z.ZodString>;
148
+ icon: z.ZodOptional<z.ZodString>;
149
+ preferredEditor: z.ZodOptional<z.ZodString>;
150
+ sharingType: z.ZodOptional<z.ZodEnum<{
151
+ private: "private";
152
+ public: "public";
153
+ shared: "shared";
45
154
  }>>;
46
- storage: import("zod").ZodOptional<import("zod").ZodObject<{
47
- kind: import("zod").ZodEnum<{
155
+ availableOffline: z.ZodOptional<z.ZodBoolean>;
156
+ remote: z.ZodOptional<z.ZodObject<{
157
+ url: import("@powerhousedao/host-core").TokenableSchema<z.ZodString>;
158
+ }, z.core.$strict>>;
159
+ }, z.core.$strict>>>>;
160
+ }, z.core.$strict>>;
161
+ config: z.ZodOptional<z.ZodObject<{
162
+ readiness: z.ZodOptional<z.ZodObject<{
163
+ pattern: z.ZodOptional<z.ZodString>;
164
+ timeout: z.ZodOptional<z.ZodNumber>;
165
+ }, z.core.$strict>>;
166
+ }, z.core.$strict>>;
167
+ }, z.core.$strict>>;
168
+ config: z.ZodOptional<z.ZodObject<{
169
+ agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
170
+ url: z.ZodUnion<[z.ZodURL, z.ZodType<import("@powerhousedao/host-core").Token, import("@powerhousedao/host-core").ConcatToken | import("@powerhousedao/host-core").EnvToken | import("@powerhousedao/host-core").ItemToken<string> | import("@powerhousedao/host-core").OutputToken<string> | ({
171
+ $key: true;
172
+ } | {
173
+ $key: string;
174
+ }), z.core.$ZodTypeInternals<import("@powerhousedao/host-core").Token, import("@powerhousedao/host-core").ConcatToken | import("@powerhousedao/host-core").EnvToken | import("@powerhousedao/host-core").ItemToken<string> | import("@powerhousedao/host-core").OutputToken<string> | ({
175
+ $key: true;
176
+ } | {
177
+ $key: string;
178
+ })>>]>;
179
+ }, z.core.$strict>>>;
180
+ startOrder: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
+ }, z.core.$strict>>;
182
+ }, z.core.$strict>;
183
+ /** Resolved form: what `validateHost` checks and the verbs receive (the
184
+ * deferred self fields may still carry tokens; see above). */
185
+ export declare const hostSchema: z.ZodObject<{
186
+ name: z.ZodString;
187
+ profile: z.ZodOptional<z.ZodObject<{
188
+ appId: z.ZodOptional<z.ZodString>;
189
+ name: z.ZodOptional<z.ZodString>;
190
+ description: z.ZodOptional<z.ZodString>;
191
+ icon: z.ZodOptional<z.ZodString>;
192
+ }, z.core.$strict>>;
193
+ runner: z.ZodObject<{
194
+ module: z.ZodString;
195
+ defaultVerb: z.ZodOptional<z.ZodString>;
196
+ port: z.ZodOptional<z.ZodNumber>;
197
+ host: z.ZodOptional<z.ZodString>;
198
+ plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
199
+ module: z.ZodString;
200
+ enabled: z.ZodOptional<z.ZodBoolean>;
201
+ verbs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
202
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
203
+ }, z.core.$strict>]>>>;
204
+ lifecycle: z.ZodOptional<z.ZodEnum<{
205
+ attached: "attached";
206
+ detached: "detached";
207
+ }>>;
208
+ proxy: z.ZodOptional<z.ZodObject<{
209
+ port: z.ZodNumber;
210
+ host: z.ZodOptional<z.ZodString>;
211
+ publicUrl: z.ZodOptional<z.ZodURL>;
212
+ routes: z.ZodRecord<z.ZodString, z.ZodObject<{
213
+ upstream: z.ZodUnion<[z.ZodURL, z.ZodType<import("@powerhousedao/host-core").Token, import("@powerhousedao/host-core").ConcatToken | import("@powerhousedao/host-core").EnvToken | import("@powerhousedao/host-core").ItemToken<string> | import("@powerhousedao/host-core").OutputToken<string> | ({
214
+ $key: true;
215
+ } | {
216
+ $key: string;
217
+ }), z.core.$ZodTypeInternals<import("@powerhousedao/host-core").Token, import("@powerhousedao/host-core").ConcatToken | import("@powerhousedao/host-core").EnvToken | import("@powerhousedao/host-core").ItemToken<string> | import("@powerhousedao/host-core").OutputToken<string> | ({
218
+ $key: true;
219
+ } | {
220
+ $key: string;
221
+ })>>]>;
222
+ path: z.ZodOptional<z.ZodString>;
223
+ ws: z.ZodOptional<z.ZodBoolean>;
224
+ }, z.core.$strict>>;
225
+ }, z.core.$strict>>;
226
+ }, z.core.$strict>;
227
+ children: z.ZodRecord<z.ZodString, z.ZodObject<{
228
+ host: z.ZodString;
229
+ runner: z.ZodOptional<z.ZodObject<{
230
+ module: z.ZodOptional<z.ZodString>;
231
+ defaultVerb: z.ZodOptional<z.ZodOptional<z.ZodString>>;
232
+ port: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
233
+ host: z.ZodOptional<z.ZodOptional<z.ZodString>>;
234
+ plugins: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
235
+ module: z.ZodString;
236
+ enabled: z.ZodOptional<z.ZodBoolean>;
237
+ verbs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"*">, z.ZodArray<z.ZodString>]>>;
238
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
239
+ }, z.core.$strict>]>>>>;
240
+ }, z.core.$loose>>;
241
+ reactor: z.ZodOptional<z.ZodObject<{
242
+ backends: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
243
+ kind: z.ZodEnum<{
244
+ "in-process": "in-process";
245
+ remote: "remote";
246
+ worker: "worker";
247
+ }>;
248
+ storage: z.ZodOptional<z.ZodObject<{
249
+ kind: z.ZodEnum<{
48
250
  idb: "idb";
49
251
  memory: "memory";
50
252
  path: "path";
51
253
  postgres: "postgres";
52
254
  }>;
53
- dataDir: import("zod").ZodOptional<import("zod").ZodString>;
54
- url: import("zod").ZodOptional<import("zod").ZodString>;
55
- }, import("zod/v4/core").$strict>>;
56
- readModel: import("zod").ZodOptional<import("zod").ZodObject<{
57
- url: import("zod").ZodOptional<import("zod").ZodString>;
58
- }, import("zod/v4/core").$strict>>;
59
- packages: import("zod").ZodOptional<import("zod").ZodObject<{
60
- cdnUrl: import("zod").ZodOptional<import("zod").ZodString>;
61
- specs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
62
- dynamic: import("zod").ZodOptional<import("zod").ZodBoolean>;
63
- }, import("zod/v4/core").$strict>>;
64
- remote: import("zod").ZodOptional<import("zod").ZodObject<{
65
- host: import("zod").ZodOptional<import("zod").ZodString>;
66
- url: import("zod").ZodOptional<import("zod").ZodString>;
67
- }, import("zod/v4/core").$strict>>;
68
- projection: import("zod").ZodOptional<import("zod").ZodObject<{
69
- enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
70
- dbPoolSize: import("zod").ZodOptional<import("zod").ZodNumber>;
71
- }, import("zod/v4/core").$strict>>;
72
- executors: import("zod").ZodOptional<import("zod").ZodObject<{
73
- numWorkers: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodNumber, import("zod").ZodLiteral<"auto">]>>;
74
- }, import("zod/v4/core").$strict>>;
75
- }, import("zod/v4/core").$strict>>>;
76
- placement: import("zod").ZodOptional<import("zod").ZodObject<{
77
- primary: import("zod").ZodOptional<import("zod").ZodString>;
78
- default: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
79
- }, import("zod/v4/core").$strict>>;
80
- protocol: import("zod").ZodOptional<import("zod").ZodObject<{
81
- featureFlags: import("zod").ZodOptional<import("zod").ZodObject<{
82
- documentDecisions: import("zod").ZodOptional<import("zod").ZodBoolean>;
83
- authEnforcement: import("zod").ZodOptional<import("zod").ZodBoolean>;
84
- authGroups: import("zod").ZodOptional<import("zod").ZodBoolean>;
85
- authConditions: import("zod").ZodOptional<import("zod").ZodBoolean>;
86
- }, import("zod/v4/core").$strict>>;
87
- createSignaturePolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
255
+ dataDir: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodString, import("@powerhousedao/host-core").EnvToken>>;
256
+ url: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strict>>;
258
+ readModel: z.ZodOptional<z.ZodObject<{
259
+ url: z.ZodOptional<z.ZodString>;
260
+ }, z.core.$strict>>;
261
+ packages: z.ZodOptional<z.ZodObject<{
262
+ cdnUrl: z.ZodOptional<z.ZodString>;
263
+ specs: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
+ dynamic: z.ZodOptional<z.ZodBoolean>;
265
+ }, z.core.$strict>>;
266
+ remote: z.ZodOptional<z.ZodObject<{
267
+ url: import("@powerhousedao/host-core").TokenableSchema<z.ZodURL>;
268
+ }, z.core.$strict>>;
269
+ projection: z.ZodOptional<z.ZodObject<{
270
+ enabled: z.ZodOptional<z.ZodBoolean>;
271
+ dbPoolSize: z.ZodOptional<z.ZodNumber>;
272
+ }, z.core.$strict>>;
273
+ executors: z.ZodOptional<z.ZodObject<{
274
+ numWorkers: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"auto">]>>;
275
+ }, z.core.$strict>>;
276
+ }, z.core.$strict>>>;
277
+ placement: z.ZodOptional<z.ZodObject<{
278
+ primary: z.ZodOptional<z.ZodString>;
279
+ default: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
280
+ }, z.core.$strict>>;
281
+ protocol: z.ZodOptional<z.ZodObject<{
282
+ featureFlags: z.ZodOptional<z.ZodObject<{
283
+ documentDecisions: z.ZodOptional<z.ZodBoolean>;
284
+ authEnforcement: z.ZodOptional<z.ZodBoolean>;
285
+ authGroups: z.ZodOptional<z.ZodBoolean>;
286
+ authConditions: z.ZodOptional<z.ZodBoolean>;
287
+ }, z.core.$strict>>;
288
+ createSignaturePolicy: z.ZodOptional<z.ZodEnum<{
88
289
  legacy: "legacy";
89
290
  "v2-required": "v2-required";
90
291
  }>>;
91
- unsupportedStoredDocuments: import("zod").ZodOptional<import("zod").ZodEnum<{
292
+ unsupportedStoredDocuments: z.ZodOptional<z.ZodEnum<{
92
293
  "read-only": "read-only";
93
294
  refuse: "refuse";
94
295
  }>>;
95
- }, import("zod/v4/core").$strict>>;
96
- workflows: import("zod").ZodOptional<import("zod").ZodBoolean>;
97
- renown: import("zod").ZodOptional<import("zod").ZodObject<{
98
- url: import("zod").ZodOptional<import("zod").ZodString>;
99
- networkId: import("zod").ZodOptional<import("zod").ZodString>;
100
- chainId: import("zod").ZodOptional<import("zod").ZodNumber>;
101
- }, import("zod/v4/core").$strict>>;
102
- packages: import("zod").ZodOptional<import("zod").ZodObject<{
103
- registryUrl: import("zod").ZodOptional<import("zod").ZodString>;
104
- }, import("zod/v4/core").$strict>>;
105
- namespace: import("zod").ZodOptional<import("zod").ZodString>;
106
- auth: import("zod").ZodOptional<import("zod").ZodObject<{
107
- enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
108
- admins: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
109
- renown: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
110
- }, import("zod/v4/core").$strict>>;
111
- drives: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
112
- slug: import("zod").ZodString;
113
- id: import("zod").ZodOptional<import("zod").ZodString>;
114
- projectHash: import("zod").ZodOptional<import("zod").ZodBoolean>;
115
- name: import("zod").ZodOptional<import("zod").ZodString>;
116
- icon: import("zod").ZodOptional<import("zod").ZodString>;
117
- preferredEditor: import("zod").ZodOptional<import("zod").ZodString>;
118
- sharingType: import("zod").ZodOptional<import("zod").ZodEnum<{
296
+ }, z.core.$strict>>;
297
+ workflows: z.ZodOptional<z.ZodBoolean>;
298
+ renown: z.ZodOptional<z.ZodObject<{
299
+ url: z.ZodOptional<z.ZodString>;
300
+ networkId: z.ZodOptional<z.ZodString>;
301
+ chainId: z.ZodOptional<z.ZodNumber>;
302
+ }, z.core.$strict>>;
303
+ packages: z.ZodOptional<z.ZodObject<{
304
+ registryUrl: z.ZodOptional<z.ZodString>;
305
+ }, z.core.$strict>>;
306
+ namespace: z.ZodOptional<z.ZodString>;
307
+ auth: z.ZodOptional<z.ZodObject<{
308
+ enabled: z.ZodOptional<z.ZodBoolean>;
309
+ admins: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
+ renown: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
311
+ }, z.core.$strict>>;
312
+ drives: z.ZodOptional<import("@powerhousedao/host-core").TokenableSchema<z.ZodArray<z.ZodObject<{
313
+ slug: z.ZodString;
314
+ id: z.ZodOptional<z.ZodString>;
315
+ projectHash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"id">]>>;
316
+ name: z.ZodOptional<z.ZodString>;
317
+ icon: z.ZodOptional<z.ZodString>;
318
+ preferredEditor: z.ZodOptional<z.ZodString>;
319
+ sharingType: z.ZodOptional<z.ZodEnum<{
119
320
  private: "private";
120
321
  public: "public";
121
322
  shared: "shared";
122
323
  }>>;
123
- availableOffline: import("zod").ZodOptional<import("zod").ZodBoolean>;
124
- remote: import("zod").ZodOptional<import("zod").ZodObject<{
125
- url: import("zod").ZodString;
126
- }, import("zod/v4/core").$strict>>;
127
- }, import("zod/v4/core").$strict>>>;
128
- }, import("zod/v4/core").$strict>>;
129
- }, import("zod/v4/core").$strict>>;
130
- config: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
131
- profile: import("zod").ZodOptional<import("zod").ZodObject<{
132
- appId: import("zod").ZodOptional<import("zod").ZodString>;
133
- name: import("zod").ZodOptional<import("zod").ZodString>;
134
- description: import("zod").ZodOptional<import("zod").ZodString>;
135
- icon: import("zod").ZodOptional<import("zod").ZodString>;
136
- }, import("zod/v4/core").$strict>>;
137
- }, import("zod/v4/core").$loose>;
138
- export interface CliRunHandle {
324
+ availableOffline: z.ZodOptional<z.ZodBoolean>;
325
+ remote: z.ZodOptional<z.ZodObject<{
326
+ url: import("@powerhousedao/host-core").TokenableSchema<z.ZodString>;
327
+ }, z.core.$strict>>;
328
+ }, z.core.$strict>>>>;
329
+ }, z.core.$strict>>;
330
+ config: z.ZodOptional<z.ZodObject<{
331
+ readiness: z.ZodOptional<z.ZodObject<{
332
+ pattern: z.ZodOptional<z.ZodString>;
333
+ timeout: z.ZodOptional<z.ZodNumber>;
334
+ }, z.core.$strict>>;
335
+ }, z.core.$strict>>;
336
+ }, z.core.$strict>>;
337
+ config: z.ZodOptional<z.ZodObject<{
338
+ agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
339
+ url: z.ZodUnion<[z.ZodURL, z.ZodType<import("@powerhousedao/host-core").Token, import("@powerhousedao/host-core").ConcatToken | import("@powerhousedao/host-core").EnvToken | import("@powerhousedao/host-core").ItemToken<string> | import("@powerhousedao/host-core").OutputToken<string> | ({
340
+ $key: true;
341
+ } | {
342
+ $key: string;
343
+ }), z.core.$ZodTypeInternals<import("@powerhousedao/host-core").Token, import("@powerhousedao/host-core").ConcatToken | import("@powerhousedao/host-core").EnvToken | import("@powerhousedao/host-core").ItemToken<string> | import("@powerhousedao/host-core").OutputToken<string> | ({
344
+ $key: true;
345
+ } | {
346
+ $key: string;
347
+ })>>]>;
348
+ }, z.core.$strict>>>;
349
+ startOrder: z.ZodOptional<z.ZodArray<z.ZodString>>;
350
+ }, z.core.$strict>>;
351
+ }, z.core.$strict>;
352
+ /** What a clint host.js author writes. */
353
+ export type ClintHostInput = z.input<typeof declaredHostSchema>;
354
+ /** What the verbs receive. */
355
+ export type ClintHost = z.output<typeof hostSchema>;
356
+ /** The verbs this runner exports (the rest of its exports are not verbs). */
357
+ export declare const verbs: readonly ["run", "serve", "dev", "build"];
358
+ /** Live outputs of the compound's members, keyed by child name
359
+ * (`outputs` undefined when the member published no live run record). */
360
+ export type LiveMemberOutputs = Record<string, {
361
+ host: string;
362
+ outputs: unknown;
363
+ }>;
364
+ /** What starting the shell produces: the resolved agent endpoints and, when
365
+ * `runner.proxy` is set, the proxy's URL. Member outputs belong to the
366
+ * members. */
367
+ export declare const outputsSchema: z.ZodObject<{
368
+ agents: z.ZodRecord<z.ZodString, z.ZodURL>;
369
+ proxy: z.ZodOptional<z.ZodObject<{
370
+ url: z.ZodURL;
371
+ }, z.core.$strict>>;
372
+ }, z.core.$strict>;
373
+ export type ClintOutputs = z.infer<typeof outputsSchema>;
374
+ declare global {
375
+ interface PHHostRunners {
376
+ "@powerhousedao/clint/clint-runner": {
377
+ host: ClintHostInput;
378
+ outputs: ClintOutputs;
379
+ };
380
+ }
381
+ }
382
+ /** The shell's handle: the runner contract plus the services manager. */
383
+ export interface CliRunHandle extends RunnerHandle<ClintOutputs> {
139
384
  services: ServiceManager;
140
- agents: Record<string, string>;
141
- shutdown: () => Promise<void>;
142
385
  }
143
- export declare function run(host: HostDefinition, ctx: RunnerContext): Promise<CliRunHandle>;
386
+ export declare function run(host: ClintHost, ctx: RunnerContext): Promise<CliRunHandle>;
144
387
  export declare const serve: typeof run;
145
388
  /** dev = services up + the line chat shell (blocks until /exit). */
146
- export declare function dev(host: HostDefinition, ctx: RunnerContext): Promise<void>;
389
+ export declare function dev(host: ClintHost, ctx: RunnerContext): Promise<void>;
147
390
  /** build = forward build to each member host that exports it (fail loud on
148
391
  * members that do not — a silent skip would report success on an unbuilt
149
392
  * set), same posture as the generic compound. */
150
- export declare function build(host: HostDefinition, ctx: RunnerContext): Promise<void>;
393
+ export declare function build(host: ClintHost, ctx: RunnerContext): Promise<void>;
151
394
  //#endregion
152
395
  export {};
153
396
  //# sourceMappingURL=clint-runner.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clint-runner.d.mts","names":[],"sources":["../../src/runners/clint-runner.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBAiDa;qBAEA,0BAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAqB;iBA8F3B;EACf,UAAU;EACV,QAAQ;EACR,gBAAgB;;wBAuMI,IACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;qBAaE,cAAK;;wBAGI,IACpB,MAAM,gBACN,KAAK,gBACJ;;;;wBASmB,MACpB,MAAM,gBACN,KAAK,gBACJ"}
1
+ {"version":3,"file":"clint-runner.d.mts","names":[],"sources":["../../src/runners/clint-runner.ts"],"mappings":";;;;;;;;;;;;;qBAoDa;;qBA8EA,oBAAkB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6B,EAAA,KAAA;;;qBAG/C,YAAU,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqB,EAAA,KAAA;;YAShC,iBAAiB,EAAE,aAAa;;YAEhC,YAAY,EAAE,cAAc;;qBAI3B;;;YAID,oBAAoB;EAE5B;EAAc;;;;;qBAmFL,eAAa,EAAA;;;;;GAGxB,EAAA,KAAA;YAEU,eAAe,EAAE,aAAa;QAElC;YACI;IACR;MACE,MAAM;MACN,SAAS;;;;;iBAiFE,qBAAqB,aAAa;EACjD,UAAU;;wBAmSU,IACpB,MAAM,WACN,KAAK,gBACJ,QAAQ;qBAaE,cAAK;;wBAGI,IAAI,MAAM,WAAW,KAAK,gBAAgB;;;;wBAS1C,MACpB,MAAM,WACN,KAAK,gBACJ"}