@powerhousedao/clint 6.4.0-next.2 → 6.4.0-next.4
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/{build-skills-Bpbbnin0.mjs → build-skills-BTkuL8ne.mjs} +2 -2
- package/dist/{build-skills-Bpbbnin0.mjs.map → build-skills-BTkuL8ne.mjs.map} +1 -1
- package/dist/command-control-Dp41aY0o.mjs +224 -0
- package/dist/command-control-Dp41aY0o.mjs.map +1 -0
- package/dist/{dist-Bd6hUl0J.mjs → dist-BTVqrpN4.mjs} +2 -2
- package/dist/{dist-Bd6hUl0J.mjs.map → dist-BTVqrpN4.mjs.map} +1 -1
- package/dist/{index-CfHcet4v.d.mts → index-DJlqIVLv.d.mts} +13 -10
- package/dist/{index-CfHcet4v.d.mts.map → index-DJlqIVLv.d.mts.map} +1 -1
- package/dist/index.d.mts +227 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/integrations/mastra/index.d.mts +20 -3
- package/dist/integrations/mastra/index.d.mts.map +1 -1
- package/dist/integrations/mastra/index.mjs +25 -3
- package/dist/integrations/mastra/index.mjs.map +1 -1
- package/dist/integrations/powerhouse/index.d.mts +3 -3
- package/dist/integrations/powerhouse/index.mjs +1 -1
- package/dist/{markdown-BUeGwhbR.mjs → markdown-B-HyDpvO.mjs} +471 -39
- package/dist/markdown-B-HyDpvO.mjs.map +1 -0
- package/dist/{powerhouse-3XZmdY3_.mjs → powerhouse-C4O-raTW.mjs} +168 -12
- package/dist/powerhouse-C4O-raTW.mjs.map +1 -0
- package/dist/{proxy-ji3EHzLn.mjs → proxy-DgnOKu1A.mjs} +2 -2
- package/dist/proxy-DgnOKu1A.mjs.map +1 -0
- package/dist/remote-reactor-oBsHphPT.mjs.map +1 -1
- package/dist/{repl-Czb7u0x_.mjs → repl-C4gHgy6P.mjs} +2 -2
- package/dist/{repl-Czb7u0x_.mjs.map → repl-C4gHgy6P.mjs.map} +1 -1
- package/dist/runners/cli-runner.d.mts +5 -2
- package/dist/runners/cli-runner.d.mts.map +1 -1
- package/dist/runners/cli-runner.mjs +21 -7
- package/dist/runners/cli-runner.mjs.map +1 -1
- package/dist/runners/mastra-runner.mjs +1 -1
- package/dist/runners/proxy-runner.mjs +1 -1
- package/dist/{src-BmMd0Wl4.mjs → src-FF3zDJY7.mjs} +606 -53
- package/dist/src-FF3zDJY7.mjs.map +1 -0
- package/dist/{start-BHn9LIyX.mjs → start-CCegR8Pi.mjs} +2 -2
- package/dist/{start-BHn9LIyX.mjs.map → start-CCegR8Pi.mjs.map} +1 -1
- package/dist/testing/index.d.mts +2 -2
- package/dist/testing/index.mjs +1 -1
- package/dist/{types-3TnDjQ1w.d.mts → types-BnPpIAL6.d.mts} +2 -2
- package/dist/{types-3TnDjQ1w.d.mts.map → types-BnPpIAL6.d.mts.map} +1 -1
- package/dist/{types-DbQKfvWc.d.mts → types-CIZtG2TY.d.mts} +219 -13
- package/dist/types-CIZtG2TY.d.mts.map +1 -0
- package/package.json +13 -13
- package/dist/markdown-BUeGwhbR.mjs.map +0 -1
- package/dist/powerhouse-3XZmdY3_.mjs.map +0 -1
- package/dist/proxy-ji3EHzLn.mjs.map +0 -1
- package/dist/src-BmMd0Wl4.mjs.map +0 -1
- package/dist/types-DbQKfvWc.d.mts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Repl } from "./repl-
|
|
1
|
+
import { Repl } from "./repl-C4gHgy6P.mjs";
|
|
2
2
|
import { render } from "ink";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -34,4 +34,4 @@ async function startInkRepl(session, opts) {
|
|
|
34
34
|
//#endregion
|
|
35
35
|
export { startInkRepl };
|
|
36
36
|
|
|
37
|
-
//# sourceMappingURL=start-
|
|
37
|
+
//# sourceMappingURL=start-CCegR8Pi.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-
|
|
1
|
+
{"version":3,"file":"start-CCegR8Pi.mjs","names":[],"sources":["../src/interactive/start.tsx"],"sourcesContent":["import React from \"react\";\nimport { render } from \"ink\";\nimport { Repl } from \"./repl.js\";\nimport type { ReplSession } from \"./types.js\";\nimport type { ServiceManager } from \"../core/types.js\";\n\nexport interface StartInkReplOptions {\n services?: ServiceManager;\n workdir?: string;\n /** Called after Ink mounts, before user input is accepted. The `append` function adds a system message to the Repl's display. */\n onStart?: (append: (msg: string) => void) => Promise<void>;\n /** Closes the REPL when it aborts, as the user's exit would. */\n signal?: AbortSignal;\n}\n\n/**\n * Start the Ink-based interactive REPL.\n * This function renders the Repl component and waits until the user exits.\n */\nexport async function startInkRepl(\n session: ReplSession,\n opts?: StartInkReplOptions,\n): Promise<void> {\n // Suppress exit-hook's \"SYNCHRONOUS TERMINATION NOTICE\" on process.exit()\n const origError = console.error;\n console.error = (...args: unknown[]) => {\n if (\n typeof args[0] === \"string\" &&\n args[0].includes(\"SYNCHRONOUS TERMINATION NOTICE\")\n )\n return;\n origError.apply(console, args);\n };\n\n const app = render(\n <Repl\n session={session}\n services={opts?.services}\n workdir={opts?.workdir}\n onStart={opts?.onStart}\n />,\n { exitOnCtrlC: false, kittyKeyboard: { mode: \"auto\" } },\n );\n const close = () => app.unmount();\n opts?.signal?.addEventListener(\"abort\", close, { once: true });\n if (opts?.signal?.aborted) close();\n try {\n await app.waitUntilExit();\n } finally {\n opts?.signal?.removeEventListener(\"abort\", close);\n }\n}\n"],"mappings":";;;;;;;;;AAmBA,eAAsB,aACpB,SACA,MACe;CAEf,MAAM,YAAY,QAAQ;CAC1B,QAAQ,SAAS,GAAG,SAAoB;EACtC,IACE,OAAO,KAAK,OAAO,YACnB,KAAK,EAAE,CAAC,SAAS,gCAAgC,GAEjD;EACF,UAAU,MAAM,SAAS,IAAI;CAC/B;CAEA,MAAM,MAAM,OACV,oBAAC,MAAD;EACW;EACT,UAAU,MAAM;EAChB,SAAS,MAAM;EACf,SAAS,MAAM;CAChB,CAAA,GACD;EAAE,aAAa;EAAO,eAAe,EAAE,MAAM,OAAO;CAAE,CACxD;CACA,MAAM,cAAc,IAAI,QAAQ;CAChC,MAAM,QAAQ,iBAAiB,SAAS,OAAO,EAAE,MAAM,KAAK,CAAC;CAC7D,IAAI,MAAM,QAAQ,SAAS,MAAM;CACjC,IAAI;EACF,MAAM,IAAI,cAAc;CAC1B,UAAU;EACR,MAAM,QAAQ,oBAAoB,SAAS,KAAK;CAClD;AACF"}
|
package/dist/testing/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as ReplSession } from "../types-
|
|
1
|
+
import { Dt as RunOptions, R as Cli } from "../types-CIZtG2TY.mjs";
|
|
2
|
+
import { r as ReplSession } from "../types-BnPpIAL6.mjs";
|
|
3
3
|
//#region src/testing/streaming-client.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Test harness for interactive-streaming mode.
|
package/dist/testing/index.mjs
CHANGED
|
@@ -107,7 +107,7 @@ function stripAnsi(str) {
|
|
|
107
107
|
async function createTerminalClient(session, options) {
|
|
108
108
|
const React = await import("react");
|
|
109
109
|
const { render } = await import("../build-DZIv63eB.mjs");
|
|
110
|
-
const { Repl } = await import("../repl-
|
|
110
|
+
const { Repl } = await import("../repl-C4gHgy6P.mjs");
|
|
111
111
|
const instance = render(React.createElement(Repl, { session }));
|
|
112
112
|
if (options?.onReady) await options.onReady();
|
|
113
113
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as Cli, U as CommandContext, k as AgentProvider, zt as StreamChunk } from "./types-CIZtG2TY.mjs";
|
|
2
2
|
//#region src/interactive/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Output from processing a REPL input line.
|
|
@@ -57,4 +57,4 @@ interface HistoryEntry {
|
|
|
57
57
|
//#endregion
|
|
58
58
|
export { ReplSessionOptions as i, ReplOutput as n, ReplSession as r, HistoryEntry as t };
|
|
59
59
|
export {};
|
|
60
|
-
//# sourceMappingURL=types-
|
|
60
|
+
//# sourceMappingURL=types-BnPpIAL6.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-BnPpIAL6.d.mts","names":[],"sources":["../src/interactive/types.ts"],"mappings":";;;;;UAUiB;EACf;EACA;;EAEA;;EAEA;;;;;UAMe;EACf,KAAK;EACL,SAAS;;EAET,gBAAgB;;EAEhB;;;;;;UAOe;EACf,aAAa,gBAAgB,QAAQ;EACrC,eAAe;;EAEf,mBAAmB;;EAEnB,oBAAoB,oBAAoB;;WAE/B;EACT;;WAES;;EAET,iBAAiB,OAAO,aAAa;;EAErC;;EAEA;;;;;UAMe;EACf;EACA;EACA;EACA,MAAM"}
|
|
@@ -177,9 +177,112 @@ interface CommandContext<TConfig = Record<string, unknown>, R extends DocumentRe
|
|
|
177
177
|
success: boolean;
|
|
178
178
|
output: string;
|
|
179
179
|
}>;
|
|
180
|
+
/**
|
|
181
|
+
* Aborted when the run of this command is cancelled: the caller of a
|
|
182
|
+
* command that runs in a running instance pressed Ctrl-C, or went away.
|
|
183
|
+
* Absent when the command runs in the process that was started for it.
|
|
184
|
+
*/
|
|
185
|
+
signal?: AbortSignal;
|
|
186
|
+
/**
|
|
187
|
+
* Who sent the command, when it runs in a running instance for a caller in
|
|
188
|
+
* another process ({@link Command.needs}). Absent otherwise. `process.cwd()`,
|
|
189
|
+
* the terminal and the environment are the instance's then; the caller's
|
|
190
|
+
* are here.
|
|
191
|
+
*/
|
|
192
|
+
caller?: CommandCaller;
|
|
193
|
+
/**
|
|
194
|
+
* What was piped to the command: the caller's stdin, read to its end.
|
|
195
|
+
* Undefined when stdin is a terminal. A command that calls it declares
|
|
196
|
+
* {@link Command.stdin}; in a running instance it rejects otherwise, since
|
|
197
|
+
* the caller's input was not sent along.
|
|
198
|
+
*/
|
|
199
|
+
readStdin?: () => Promise<string | undefined>;
|
|
180
200
|
/** @internal Hook for interactive mode to capture progressive tool output. */
|
|
181
201
|
_onToolOutput?: (toolName: string, text: string) => void;
|
|
182
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* What a command needs of a running instance of its CLI. `"reactor"` and
|
|
205
|
+
* `"agent"`: typed in a second terminal, the command runs in the instance,
|
|
206
|
+
* with its reactor and agent, and the terminal shows its output
|
|
207
|
+
* (`RunOptions.forward`). `"nothing"`: it runs in the process that was
|
|
208
|
+
* started for it.
|
|
209
|
+
*/
|
|
210
|
+
type CommandNeeds = "nothing" | "reactor" | "agent";
|
|
211
|
+
/** The process a command was sent from (see `CommandContext.caller`). */
|
|
212
|
+
interface CommandCaller {
|
|
213
|
+
/** Its OS user and process id, as it reported them: for the log, not for
|
|
214
|
+
* access decisions. */
|
|
215
|
+
user: string;
|
|
216
|
+
pid: number;
|
|
217
|
+
/** Its working directory. */
|
|
218
|
+
cwd: string;
|
|
219
|
+
/** Whether its stdout is a terminal, and how wide. */
|
|
220
|
+
tty: boolean;
|
|
221
|
+
columns?: number;
|
|
222
|
+
/** Whether it wants colour in the output. */
|
|
223
|
+
color: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Whom the caller signs the command's actions as, when its request named
|
|
226
|
+
* it. The command's writes are signed by the caller, over the control
|
|
227
|
+
* channel; this is for the log, not for access decisions.
|
|
228
|
+
*/
|
|
229
|
+
identity?: CallerIdentity;
|
|
230
|
+
}
|
|
231
|
+
/** The identity a forwarded command's caller signs as. */
|
|
232
|
+
interface CallerIdentity {
|
|
233
|
+
/** The caller's address. */
|
|
234
|
+
address: string;
|
|
235
|
+
/** The label of the session it signs with ("vetra"). */
|
|
236
|
+
label?: string;
|
|
237
|
+
/** The session key's did:key. */
|
|
238
|
+
key?: string;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* The person's session a Cli's command line signs with: a command forwarded
|
|
242
|
+
* to the running instance has its actions signed here (see
|
|
243
|
+
* `Cli.configureIdentity`).
|
|
244
|
+
*/
|
|
245
|
+
interface CallerSession {
|
|
246
|
+
/** What the actions' `context.signer` names. */
|
|
247
|
+
signer: {
|
|
248
|
+
user: {
|
|
249
|
+
address: string;
|
|
250
|
+
networkId: string;
|
|
251
|
+
chainId: number;
|
|
252
|
+
};
|
|
253
|
+
app: {
|
|
254
|
+
name: string;
|
|
255
|
+
key: string;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
/** The v2 signature tuple of `action` for `target`. */
|
|
259
|
+
signAction(action: import("@powerhousedao/shared/document-model").Action, target: import("@powerhousedao/shared/document-model").ActionSigningTarget, previousStateHash: string): Promise<import("@powerhousedao/shared/document-model").Signature>;
|
|
260
|
+
/** A bearer of the session for the instance's requests. */
|
|
261
|
+
bearer(o: {
|
|
262
|
+
expiresIn: number;
|
|
263
|
+
}): Promise<string>;
|
|
264
|
+
}
|
|
265
|
+
/** How a Cli's command line signs as the person (`Cli.configureIdentity`). */
|
|
266
|
+
interface IdentityConfiguration {
|
|
267
|
+
/** The session's label: the name its credential signs ("vetra"). */
|
|
268
|
+
label: string;
|
|
269
|
+
/**
|
|
270
|
+
* Opens the session, on the first signature a forwarded command needs: the
|
|
271
|
+
* signing code loads here, not on the start path. `target` is where the
|
|
272
|
+
* instance's writes are checked, so the credential is made known there.
|
|
273
|
+
* `interactive`: a password may be asked on this terminal.
|
|
274
|
+
*/
|
|
275
|
+
open(o: {
|
|
276
|
+
workdir: string;
|
|
277
|
+
dataDir: string;
|
|
278
|
+
label: string;
|
|
279
|
+
interactive: boolean;
|
|
280
|
+
target?: {
|
|
281
|
+
url?: string;
|
|
282
|
+
dataDir?: string;
|
|
283
|
+
};
|
|
284
|
+
}): Promise<CallerSession>;
|
|
285
|
+
}
|
|
183
286
|
/**
|
|
184
287
|
* CommandContext without the reactor/agent accessors.
|
|
185
288
|
* Used as TriggerContext.context to avoid duplicate access paths.
|
|
@@ -233,6 +336,17 @@ interface Command<TInput extends z.ZodType = z.ZodType, TOutput = unknown, TConf
|
|
|
233
336
|
* // usage: cli add "Buy milk" 2
|
|
234
337
|
*/
|
|
235
338
|
positional?: readonly string[];
|
|
339
|
+
/**
|
|
340
|
+
* What the command needs of a running instance (default `"nothing"`; a
|
|
341
|
+
* skill command needs the agent without saying so). See {@link CommandNeeds}.
|
|
342
|
+
*/
|
|
343
|
+
needs?: CommandNeeds;
|
|
344
|
+
/**
|
|
345
|
+
* Whether the command reads what is piped to it (`context.readStdin`), for
|
|
346
|
+
* this input when it is a function. The caller's stdin is then sent along
|
|
347
|
+
* when the command runs in a running instance.
|
|
348
|
+
*/
|
|
349
|
+
stdin?: boolean | ((input: Record<string, unknown>) => boolean);
|
|
236
350
|
execute: (input: z.output<TInput>, context: CommandContext<TConfig, R>) => Promise<TOutput>;
|
|
237
351
|
}
|
|
238
352
|
/**
|
|
@@ -648,7 +762,13 @@ interface ServiceStartOptions {
|
|
|
648
762
|
cwd?: string;
|
|
649
763
|
params?: Record<string, unknown>;
|
|
650
764
|
name?: string;
|
|
765
|
+
/** How long a host service lives when the user's supervisor runs it:
|
|
766
|
+
* `caller` (the default) until the process that asked ends, `supervisor`
|
|
767
|
+
* until it is stopped or the supervisor ends. Without a supervisor every
|
|
768
|
+
* instance lives with the process that started it. */
|
|
769
|
+
lifetime?: ServiceLifetime;
|
|
651
770
|
}
|
|
771
|
+
type ServiceLifetime = "caller" | "supervisor";
|
|
652
772
|
/**
|
|
653
773
|
* Runtime status of a service instance.
|
|
654
774
|
*/
|
|
@@ -664,6 +784,24 @@ interface ServiceInstanceStatus {
|
|
|
664
784
|
restartAttempt?: number;
|
|
665
785
|
workdir?: string;
|
|
666
786
|
params?: Record<string, unknown>;
|
|
787
|
+
/** Set when the user's supervisor holds the instance. */
|
|
788
|
+
supervisor?: SupervisorHold;
|
|
789
|
+
}
|
|
790
|
+
/** The supervisor that holds a service instance, and what it knows of it. */
|
|
791
|
+
interface SupervisorHold {
|
|
792
|
+
/** The supervisor's process. */
|
|
793
|
+
pid: number;
|
|
794
|
+
/** Its handle for the instance. */
|
|
795
|
+
handle: string;
|
|
796
|
+
lifetime: ServiceLifetime;
|
|
797
|
+
/** It ended on its own and the supervisor starts it again. */
|
|
798
|
+
restarting?: boolean;
|
|
799
|
+
/** The version of the project's ph-cli (or ph-run) that runs it. */
|
|
800
|
+
runnerVersion?: string;
|
|
801
|
+
/** What cannot be done with it, each with the reason. */
|
|
802
|
+
missing?: string[];
|
|
803
|
+
/** Where its restart policy stands: the supervisor applies it. */
|
|
804
|
+
restart?: import("@powerhousedao/host-core/instance").RestartState;
|
|
667
805
|
}
|
|
668
806
|
/**
|
|
669
807
|
* Runtime status of a service (legacy single-instance view).
|
|
@@ -701,6 +839,12 @@ interface ServiceManager {
|
|
|
701
839
|
scanProjects(id: string, rootDir: string): ProjectScanResult[];
|
|
702
840
|
/** Remove all stopped instance state files (and their log files) for a service. */
|
|
703
841
|
purgeStoppedInstances(id: string): void;
|
|
842
|
+
/** The supervisor of this OS user that host services are started through,
|
|
843
|
+
* when one runs. Rejects when one is recorded and does not answer: nothing
|
|
844
|
+
* may then be started, stopped or listed as if there were none. */
|
|
845
|
+
supervisor?(): Promise<{
|
|
846
|
+
pid: number;
|
|
847
|
+
} | undefined>;
|
|
704
848
|
}
|
|
705
849
|
/**
|
|
706
850
|
* A central event bus for decoupled communication. Typed for framework
|
|
@@ -1015,6 +1159,11 @@ interface CliOptions<TSchema extends z.ZodType = z.ZodType<Record<string, unknow
|
|
|
1015
1159
|
* For interactive mode testing, `interactiveInput` provides a headless REPL
|
|
1016
1160
|
* that reads from the iterable instead of rendering Ink.
|
|
1017
1161
|
*/
|
|
1162
|
+
/** What `RunOptions.onServe` answers when an instance serves already. */
|
|
1163
|
+
interface ServeAnswer {
|
|
1164
|
+
/** That instance, described for the terminal. */
|
|
1165
|
+
running: string;
|
|
1166
|
+
}
|
|
1018
1167
|
interface RunOptions {
|
|
1019
1168
|
exit?: (code: number) => void;
|
|
1020
1169
|
stdout?: (message: string) => void;
|
|
@@ -1041,9 +1190,11 @@ interface RunOptions {
|
|
|
1041
1190
|
* Called once when the CLI keeps running (interactive, or serving its
|
|
1042
1191
|
* routine), before it starts anything for that; never for a one-shot
|
|
1043
1192
|
* command. A host runner writes its run record here. A rejection ends the
|
|
1044
|
-
* run: its message on stderr, exit code 1.
|
|
1193
|
+
* run: its message on stderr, exit code 1. So does `{ running }`, the
|
|
1194
|
+
* description of an instance that serves already: it goes to stdout, and
|
|
1195
|
+
* the run ends with exit code 0 having started nothing.
|
|
1045
1196
|
*/
|
|
1046
|
-
onServe?: () => void | Promise<void>;
|
|
1197
|
+
onServe?: () => void | ServeAnswer | Promise<void | ServeAnswer>;
|
|
1047
1198
|
/**
|
|
1048
1199
|
* Stops a run that keeps going as SIGINT or SIGTERM would: the headless
|
|
1049
1200
|
* keep-alive and the ink shell end, and the CLI tears down. An abort
|
|
@@ -1070,6 +1221,42 @@ interface RunOptions {
|
|
|
1070
1221
|
* when a command that ends is refused a service start.
|
|
1071
1222
|
*/
|
|
1072
1223
|
serveCommand?: string;
|
|
1224
|
+
/**
|
|
1225
|
+
* Where the writes of a serving instance are checked, told to callers in
|
|
1226
|
+
* `hello`: the switchboard's base URL, and its data folder when callers may
|
|
1227
|
+
* write their credentials' records there.
|
|
1228
|
+
*/
|
|
1229
|
+
store?: {
|
|
1230
|
+
url?: string;
|
|
1231
|
+
dataDir?: string;
|
|
1232
|
+
};
|
|
1233
|
+
/**
|
|
1234
|
+
* Where a command that needs the reactor or the agent (`Command.needs`)
|
|
1235
|
+
* runs when it is typed as a command that ends: in the running instance of
|
|
1236
|
+
* this CLI, which executes it and sends its output and exit code back.
|
|
1237
|
+
* Absent, or with `--local` before the command name: in this process, as
|
|
1238
|
+
* every other command does.
|
|
1239
|
+
*/
|
|
1240
|
+
forward?: ForwardOptions;
|
|
1241
|
+
}
|
|
1242
|
+
/** See `RunOptions.forward`. */
|
|
1243
|
+
interface ForwardOptions {
|
|
1244
|
+
/**
|
|
1245
|
+
* The running instance, from its run record: its control channel, or the
|
|
1246
|
+
* protocol of one this process does not speak (the command then fails,
|
|
1247
|
+
* naming both). Absent: none runs.
|
|
1248
|
+
*/
|
|
1249
|
+
target?: {
|
|
1250
|
+
control?: import("@powerhousedao/host-core/control-channel").ControlRecord;
|
|
1251
|
+
protocol?: number;
|
|
1252
|
+
pid?: number;
|
|
1253
|
+
};
|
|
1254
|
+
/**
|
|
1255
|
+
* Without a running instance the command fails, saying how to start one
|
|
1256
|
+
* (`RunOptions.serveCommand`), and builds no reactor or agent of its own.
|
|
1257
|
+
* Default: it runs in this process.
|
|
1258
|
+
*/
|
|
1259
|
+
required?: boolean;
|
|
1073
1260
|
}
|
|
1074
1261
|
/** See `RunOptions.reactor`. */
|
|
1075
1262
|
type RunReactor = (setup: ReactorSetupContext, configured: ReactorConfiguration | undefined) => Promise<ReactorContext>;
|
|
@@ -1098,6 +1285,12 @@ interface Cli {
|
|
|
1098
1285
|
configureAgent(loader: AgentLoader<any>): void;
|
|
1099
1286
|
/** Configure the reactor capability — lazy-loaded on first reactor() access. */
|
|
1100
1287
|
configureReactor<R extends DocumentRegistry = AnyRegistry>(config: ReactorConfiguration<R>): void;
|
|
1288
|
+
/**
|
|
1289
|
+
* How this Cli's command line signs as the person: a command it forwards
|
|
1290
|
+
* to the running instance is signed here, over the control channel.
|
|
1291
|
+
* Without it, such a command signs as the instance.
|
|
1292
|
+
*/
|
|
1293
|
+
configureIdentity(config: IdentityConfiguration): void;
|
|
1101
1294
|
getCommand(id: string): Command | undefined;
|
|
1102
1295
|
listCommands(): Command[];
|
|
1103
1296
|
execute(commandId: string, args: Record<string, unknown>, context?: CommandContext): Promise<unknown>;
|
|
@@ -1711,6 +1904,16 @@ interface ReactorConfiguration<R extends DocumentRegistry = AnyRegistry> {
|
|
|
1711
1904
|
*/
|
|
1712
1905
|
remote?: RemoteReactorSource<R>;
|
|
1713
1906
|
}
|
|
1907
|
+
/**
|
|
1908
|
+
* A signer opened at the first write it signs: a session whose credential is
|
|
1909
|
+
* issued then, so a Cli that never writes makes none.
|
|
1910
|
+
*/
|
|
1911
|
+
interface LazySigner {
|
|
1912
|
+
/** Whether a write can be signed now; `writes.ready()` reads it. */
|
|
1913
|
+
ready(): boolean;
|
|
1914
|
+
/** The signer of a write made now; opened at the first. */
|
|
1915
|
+
open(): Promise<ISigner>;
|
|
1916
|
+
}
|
|
1714
1917
|
/** `ReactorConfiguration.remote`: the config, or how to build it at attach. */
|
|
1715
1918
|
type RemoteReactorSource<R extends DocumentRegistry = AnyRegistry> = RemoteReactorConfig<R> | ((setup: ReactorSetupContext<R>) => RemoteReactorConfig<R> | Promise<RemoteReactorConfig<R>>);
|
|
1716
1919
|
/**
|
|
@@ -1718,7 +1921,9 @@ type RemoteReactorSource<R extends DocumentRegistry = AnyRegistry> = RemoteReact
|
|
|
1718
1921
|
* signs and reduces with, the drives to find or create there, the changes
|
|
1719
1922
|
* to bridge to the event bus, and who it writes as. No drive: the drive the
|
|
1720
1923
|
* address names. No signer: writes go out unsigned and the switchboard signs
|
|
1721
|
-
* them with its own key.
|
|
1924
|
+
* them with its own key. While a forwarded command runs, its writes are
|
|
1925
|
+
* signed by its caller instead, whose bearer its requests carry (see
|
|
1926
|
+
* `Cli.configureIdentity`).
|
|
1722
1927
|
*/
|
|
1723
1928
|
interface RemoteReactorConfig<R extends DocumentRegistry = AnyRegistry> {
|
|
1724
1929
|
/** Any model module fits, as for the reactor and its clients. */
|
|
@@ -1733,16 +1938,17 @@ interface RemoteReactorConfig<R extends DocumentRegistry = AnyRegistry> {
|
|
|
1733
1938
|
/**
|
|
1734
1939
|
* Signs the actions the client pushes, read on every write (see
|
|
1735
1940
|
* `createReactorWrites`): a signer whose `user` is set later, by a
|
|
1736
|
-
* sign-in, takes effect without a new attach.
|
|
1941
|
+
* sign-in, takes effect without a new attach. A {@link LazySigner} is
|
|
1942
|
+
* opened at the first write it signs, so a session can be made then.
|
|
1737
1943
|
*
|
|
1738
|
-
* Limit: while the signer has no user
|
|
1739
|
-
* `SignerNotReadyError`, a write to a legacy document
|
|
1740
|
-
* `legacyDocuments` says. The client asks for its
|
|
1741
|
-
* which document it writes, so the resolver cannot
|
|
1742
|
-
* through unsigned. Give a signer only where the
|
|
1743
|
-
* v2, or once its user is known.
|
|
1944
|
+
* Limit: while the signer has no user (a lazy one: is not ready), every
|
|
1945
|
+
* push is refused with `SignerNotReadyError`, a write to a legacy document
|
|
1946
|
+
* included, whatever `legacyDocuments` says. The client asks for its
|
|
1947
|
+
* signer before it knows which document it writes, so the resolver cannot
|
|
1948
|
+
* pass a legacy write through unsigned. Give a signer only where the
|
|
1949
|
+
* documents written are v2, or once its user is known.
|
|
1744
1950
|
*/
|
|
1745
|
-
signer?: ISigner;
|
|
1951
|
+
signer?: ISigner | LazySigner;
|
|
1746
1952
|
/** The bearer per request, for an authenticated switchboard. */
|
|
1747
1953
|
tokenProvider?: BearerTokenProvider;
|
|
1748
1954
|
/**
|
|
@@ -1764,6 +1970,6 @@ interface RemoteReactorConfig<R extends DocumentRegistry = AnyRegistry> {
|
|
|
1764
1970
|
}) => boolean;
|
|
1765
1971
|
}
|
|
1766
1972
|
//#endregion
|
|
1767
|
-
export {
|
|
1973
|
+
export { HostServiceDefinition as $, scanProjects as $t, AgentSetupContext as A, ServiceDefinition as At, CliOptions as B, TextDeltaChunk as Bt, IAttachmentService as C, ResolvedInteractiveConfig as Ct, AgentProfileConfig as D, RunOptions as Dt, AgentLoader as E, RoutineStatus as Et, CallerIdentity as F, ServiceManager as Ft, CommandServiceDefinition as G, TriggerContext as Gt, CommandCaller as H, ToolOutputChunk as Ht, CallerSession as I, ServiceStartOptions as It, EmitFn as J, WorkdirStore as Jt, ConfigEnvVar as K, TriggerOptions as Kt, CaptureDefinition as L, ServiceStatus as Lt, BootTimings as M, ServiceHostRun as Mt, BootstrapOptions as N, ServiceInstanceStatus as Nt, AgentPromptInput as O, RunReactor as Ot, BootstrapResult as P, ServiceLifetime as Pt, ForwardOptions as Q, PROJECT_INDICATORS as Qt, Cli as R, SkillConfig as Rt, AttachmentUploadResult as S, Resolvable as St, AgentContentPart as T, RoutineConfig as Tt, CommandContext as U, ToolResultChunk as Ut, Command as V, ToolCallChunk as Vt, CommandNeeds as W, Trigger as Wt, ErrorChunk as X, SkillInfo as Xt, EndpointType as Y, WrapRegistry as Yt, EventBus as Z, readSkills as Zt, SubscriptionConfig as _, ProjectScanner as _t, DriveEntry as a, LifecycleInitContext as at, AttachmentHeader as b, ReadinessConfig as bt, FolderOperations as c, OnFn as ct, ReactorContext as d, PreflightContext as dt, IdentityConfiguration as et, ReactorSetupContext as f, PreflightResult as ft, RemoteReactorSource as g, ProjectScanResult as gt, RemoteReactorConfig as h, ProcessRunOptions as ht, DriveConfig as i, LifecycleHook as it, AgentStreamOptions as j, ServiceDefinitionBase as jt, AgentProvider as k, ServiceBuildContext as kt, LazySigner as l, PhClintEvents as lt, RegistryEntry as m, ProcessManager as mt, AttachmentRef$1 as n, InteractiveConfig as nt, EnsureDriveClient as o, LogLevel as ot, ReactorWrites as p, ProcessHandle as pt, CoreContext as q, WorkItem as qt, DocumentRegistry as r, LifecycleHandle as rt, FolderEntry as s, Logger as st, AnyRegistry as t, InferConfig as tt, ReactorConfiguration as u, PreflightCheck as ut, TypedDocumentChangeEvent as v, PromptConfig as vt, ReserveAttachmentOptions as w, Routine as wt, AttachmentResponse as x, ReadinessPattern as xt, TypedReactorClient as y, PromptsConfig as yt, CliMetadata as z, StreamChunk as zt };
|
|
1768
1974
|
export {};
|
|
1769
|
-
//# sourceMappingURL=types-
|
|
1975
|
+
//# sourceMappingURL=types-CIZtG2TY.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-CIZtG2TY.d.mts","names":[],"sources":["../src/core/project-scanner.ts","../src/core/skills.ts","../src/core/types.ts","../../../node_modules/.pnpm/kysely@0.28.16/node_modules/kysely/dist/esm/kysely.d.ts","../../reactor-attachments/dist/interfaces-cFMtcMqR.d.ts","../src/integrations/powerhouse/types.ts"],"x_google_ignoreList":[3],"mappings":";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oBAAoB;;;;;;;;;;UAW7C,oBAAoB,UAAU,mBAAmB;;EAEhE,0BAA0B;;EAE1B,QAAQ;;EAER,SAAS,MAAM;IAAgB;;EAC/B,gBAAgB,mBAAmB;;;;;;;;;;;;;;EAcnC,SAAS,UAAU;;EAEnB,gBAAgB;;;;;;;EAOhB,kBAAkB;;EAElB;;EAEA,WAAW;IACT;MACE;MACA;MACA,mBAAmB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/clint",
|
|
3
|
-
"version": "6.4.0-next.
|
|
3
|
+
"version": "6.4.0-next.4",
|
|
4
4
|
"description": "The clint framework: AI-powered CLIs over the Powerhouse stack — mastra-runner (headless agent host), cli-runner (a package's ./cli in the terminal) and proxy-runner (one front port for a compound's members) for uniform-runners hosts.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"./package.json": "./package.json"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@powerhousedao/host-core": "6.4.0-next.
|
|
64
|
-
"@powerhousedao/reactor": "6.4.0-next.
|
|
65
|
-
"@powerhousedao/reactor-api": "6.4.0-next.
|
|
66
|
-
"@powerhousedao/reactor-browser": "6.4.0-next.
|
|
67
|
-
"@powerhousedao/shared": "6.4.0-next.
|
|
63
|
+
"@powerhousedao/host-core": "6.4.0-next.4",
|
|
64
|
+
"@powerhousedao/reactor": "6.4.0-next.4",
|
|
65
|
+
"@powerhousedao/reactor-api": "6.4.0-next.4",
|
|
66
|
+
"@powerhousedao/reactor-browser": "6.4.0-next.4",
|
|
67
|
+
"@powerhousedao/shared": "6.4.0-next.4",
|
|
68
68
|
"cli-highlight": "^2.1.11",
|
|
69
69
|
"commander": "12.1.0",
|
|
70
|
-
"document-model": "6.4.0-next.
|
|
70
|
+
"document-model": "6.4.0-next.4",
|
|
71
71
|
"handlebars": "^4.7.10",
|
|
72
72
|
"http-proxy": "^1.18.1",
|
|
73
73
|
"ink": "^6.8.0",
|
|
@@ -99,20 +99,20 @@
|
|
|
99
99
|
"@mastra/core": "1.67.0",
|
|
100
100
|
"@mastra/libsql": "1.23.0",
|
|
101
101
|
"@mastra/memory": "1.30.0",
|
|
102
|
-
"@powerhousedao/reactor": "6.4.0-next.
|
|
103
|
-
"@powerhousedao/reactor-api": "6.4.0-next.
|
|
104
|
-
"@powerhousedao/reactor-attachments": "6.4.0-next.
|
|
105
|
-
"@powerhousedao/switchboard": "6.4.0-next.
|
|
102
|
+
"@powerhousedao/reactor": "6.4.0-next.4",
|
|
103
|
+
"@powerhousedao/reactor-api": "6.4.0-next.4",
|
|
104
|
+
"@powerhousedao/reactor-attachments": "6.4.0-next.4",
|
|
105
|
+
"@powerhousedao/switchboard": "6.4.0-next.4",
|
|
106
106
|
"@types/http-proxy": "^1.17.15",
|
|
107
107
|
"@types/react": "19.2.14",
|
|
108
|
-
"document-model": "6.4.0-next.
|
|
108
|
+
"document-model": "6.4.0-next.4",
|
|
109
109
|
"expect-type": "^1.2.0",
|
|
110
110
|
"ink-testing-library": "^4.0.0",
|
|
111
111
|
"kysely": "0.28.16",
|
|
112
112
|
"kysely-pglite-dialect": "1.2.0",
|
|
113
113
|
"tsdown": "0.23.0",
|
|
114
114
|
"vitest": "5.0.3",
|
|
115
|
-
"@powerhousedao/reactor-browser": "6.4.0-next.
|
|
115
|
+
"@powerhousedao/reactor-browser": "6.4.0-next.4"
|
|
116
116
|
},
|
|
117
117
|
"scripts": {
|
|
118
118
|
"tsc": "tsc",
|