@powerhousedao/clint 6.3.0-dev.8 → 6.4.0-next.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/dist/build-DZIv63eB.mjs +77 -0
- package/dist/build-DZIv63eB.mjs.map +1 -0
- package/dist/{build-skills-BnqGyuCH.mjs → build-skills-BNEOn-cl.mjs} +15 -6
- package/dist/build-skills-BNEOn-cl.mjs.map +1 -0
- package/dist/dist--xzirmg-.mjs +655 -0
- package/dist/dist--xzirmg-.mjs.map +1 -0
- package/dist/glob-CGjvhxgW.mjs +48 -0
- package/dist/glob-CGjvhxgW.mjs.map +1 -0
- package/dist/index-C3-HSfKb.d.mts +389 -0
- package/dist/index-C3-HSfKb.d.mts.map +1 -0
- package/dist/index.d.mts +55 -303
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +7 -8
- package/dist/integrations/mastra/index.d.mts +248 -0
- package/dist/integrations/mastra/index.d.mts.map +1 -0
- package/dist/integrations/mastra/index.mjs +509 -0
- package/dist/integrations/mastra/index.mjs.map +1 -0
- package/dist/integrations/powerhouse/index.d.mts +4 -0
- package/dist/integrations/powerhouse/index.mjs +3 -0
- package/dist/markdown-BUeGwhbR.mjs +1588 -0
- package/dist/markdown-BUeGwhbR.mjs.map +1 -0
- package/dist/powerhouse-BDnj7kqd.mjs +1922 -0
- package/dist/powerhouse-BDnj7kqd.mjs.map +1 -0
- package/dist/{proxy-BFR8GScT.mjs → proxy-ji3EHzLn.mjs} +128 -28
- package/dist/proxy-ji3EHzLn.mjs.map +1 -0
- package/dist/remote-reactor-BQzq4yfO.mjs +69 -0
- package/dist/remote-reactor-BQzq4yfO.mjs.map +1 -0
- package/dist/{start-b7Mn2cxB.mjs → repl-Czb7u0x_.mjs} +6 -29
- package/dist/repl-Czb7u0x_.mjs.map +1 -0
- package/dist/runners/cli-runner.d.mts +339 -0
- package/dist/runners/cli-runner.d.mts.map +1 -0
- package/dist/runners/cli-runner.mjs +324 -0
- package/dist/runners/cli-runner.mjs.map +1 -0
- package/dist/runners/mastra-runner.d.mts +5 -3
- package/dist/runners/mastra-runner.d.mts.map +1 -1
- package/dist/runners/mastra-runner.mjs +10 -60
- package/dist/runners/mastra-runner.mjs.map +1 -1
- package/dist/runners/proxy-runner.d.mts +281 -0
- package/dist/runners/proxy-runner.d.mts.map +1 -0
- package/dist/runners/proxy-runner.mjs +91 -0
- package/dist/runners/proxy-runner.mjs.map +1 -0
- package/dist/schema-BEKAZGyT.mjs +47 -0
- package/dist/schema-BEKAZGyT.mjs.map +1 -0
- package/dist/{src-BebNN3xc.mjs → src-BehwgLP6.mjs} +395 -1481
- package/dist/src-BehwgLP6.mjs.map +1 -0
- package/dist/start-BHn9LIyX.mjs +37 -0
- package/dist/start-BHn9LIyX.mjs.map +1 -0
- package/dist/store-CxqB-OrX.mjs +101 -0
- package/dist/store-CxqB-OrX.mjs.map +1 -0
- package/dist/{stream-DVuufwIj.mjs → stream-BguHx7vC.mjs} +4 -2
- package/dist/{stream-DVuufwIj.mjs.map → stream-BguHx7vC.mjs.map} +1 -1
- package/dist/testing/index.d.mts +81 -0
- package/dist/testing/index.d.mts.map +1 -0
- package/dist/testing/index.mjs +131 -0
- package/dist/testing/index.mjs.map +1 -0
- package/dist/{types-CRkoD-Mm.d.mts → types-CF6GuPJd.d.mts} +241 -261
- package/dist/types-CF6GuPJd.d.mts.map +1 -0
- package/dist/types-CbHJ-ZnH.d.mts +60 -0
- package/dist/types-CbHJ-ZnH.d.mts.map +1 -0
- package/package.json +44 -25
- package/dist/build-skills-BnqGyuCH.mjs.map +0 -1
- package/dist/dist-CUltriBW.mjs +0 -1628
- package/dist/dist-CUltriBW.mjs.map +0 -1
- package/dist/drive-Bu9zoFrO.mjs +0 -85
- package/dist/drive-Bu9zoFrO.mjs.map +0 -1
- package/dist/esm-C1DOsF1a.mjs +0 -13140
- package/dist/esm-C1DOsF1a.mjs.map +0 -1
- package/dist/events-BnwGFTjv.mjs +0 -237
- package/dist/events-BnwGFTjv.mjs.map +0 -1
- package/dist/folders-BYO1Wqqb.mjs +0 -256
- package/dist/folders-BYO1Wqqb.mjs.map +0 -1
- package/dist/local-signer-EFzJV3bn.mjs +0 -128
- package/dist/local-signer-EFzJV3bn.mjs.map +0 -1
- package/dist/markdown-D-sP2zw_.mjs +0 -275
- package/dist/markdown-D-sP2zw_.mjs.map +0 -1
- package/dist/proxy-BFR8GScT.mjs.map +0 -1
- package/dist/proxy-routes-DP3ztsnS.mjs +0 -215
- package/dist/proxy-routes-DP3ztsnS.mjs.map +0 -1
- package/dist/reactor-C9VIUX1H.mjs +0 -51
- package/dist/reactor-C9VIUX1H.mjs.map +0 -1
- package/dist/runners/clint-runner.d.mts +0 -398
- package/dist/runners/clint-runner.d.mts.map +0 -1
- package/dist/runners/clint-runner.mjs +0 -519
- package/dist/runners/clint-runner.mjs.map +0 -1
- package/dist/services-9E-r0nWl.mjs +0 -999
- package/dist/services-9E-r0nWl.mjs.map +0 -1
- package/dist/src-BebNN3xc.mjs.map +0 -1
- package/dist/start-b7Mn2cxB.mjs.map +0 -1
- package/dist/subscriptions-CfiflAsI.mjs +0 -38
- package/dist/subscriptions-CfiflAsI.mjs.map +0 -1
- package/dist/switchboard-CyvOavqL.mjs +0 -57
- package/dist/switchboard-CyvOavqL.mjs.map +0 -1
- package/dist/types-CRkoD-Mm.d.mts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as LogLevel, A as AgentStreamOptions, At as SkillConfig, B as CommandServiceDefinition, Bt as WorkdirStore, C as ReserveAttachmentOptions, Ct as ServiceDefinition, D as AgentPromptInput, Dt as ServiceManager, E as AgentProfileConfig, Et as ServiceInstanceStatus, F as Cli, Ft as ToolResultChunk, G as ErrorChunk, Gt as scanProjects, H as CoreContext, Ht as SkillInfo, I as CliMetadata, It as Trigger, J as InferConfig, K as EventBus, L as CliOptions, Lt as TriggerContext, M as BootstrapOptions, Mt as TextDeltaChunk, N as BootstrapResult, Nt as ToolCallChunk, O as AgentProvider, Ot as ServiceStartOptions, P as CaptureDefinition, Pt as ToolOutputChunk, Q as LifecycleInitContext, R as Command, Rt as TriggerOptions, S as IAttachmentService, St as ServiceBuildContext, T as AgentLoader, Tt as ServiceHostRun, U as EmitFn, Ut as readSkills, V as ConfigEnvVar, Vt as WrapRegistry, W as EndpointType, Wt as PROJECT_INDICATORS, X as LifecycleHandle, Y as InteractiveConfig, Z as LifecycleHook, _ as TypedDocumentChangeEvent, _t as Routine, a as DriveEntry, at as PreflightResult, b as AttachmentResponse, bt as RunOptions, c as FolderOperations, ct as ProcessRunOptions, d as ReactorSetupContext, dt as PromptConfig, et as Logger, f as ReactorWrites, ft as PromptsConfig, g as SubscriptionConfig, gt as ResolvedInteractiveConfig, h as RemoteReactorSource, ht as Resolvable, i as DriveConfig, it as PreflightContext, j as BootTimings, jt as StreamChunk, k as AgentSetupContext, kt as ServiceStatus, l as ReactorConfiguration, lt as ProjectScanResult, m as RemoteReactorConfig, mt as ReadinessPattern, n as AttachmentRef, nt as PhClintEvents, o as EnsureDriveClient, ot as ProcessHandle, p as RegistryEntry, pt as ReadinessConfig, q as HostServiceDefinition, r as DocumentRegistry, rt as PreflightCheck, s as FolderEntry, st as ProcessManager, t as AnyRegistry, tt as OnFn, u as ReactorContext, ut as ProjectScanner, v as TypedReactorClient, vt as RoutineConfig, w as AgentContentPart, wt as ServiceDefinitionBase, x as AttachmentUploadResult, xt as RunReactor, y as AttachmentHeader, yt as RoutineStatus, z as CommandContext, zt as WorkItem } from "./types-CF6GuPJd.mjs";
|
|
2
|
+
import { A as createDocumentChangeTrigger, D as InferRegistry, E as ActionOf, O as defineRegistry, _ as SignerNotReadyError, b as signerReady, f as isDocType, g as SignaturePolicy, k as DocumentChangeTriggerOptions, n as attachDefaultReactor, r as resolveRemoteReactorConfig, t as AttachDefaultReactorOptions, y as policyOfHeader } from "./index-C3-HSfKb.mjs";
|
|
3
|
+
import { i as ReplSessionOptions, n as ReplOutput, r as ReplSession, t as HistoryEntry } from "./types-CbHJ-ZnH.mjs";
|
|
2
4
|
import { z } from "zod";
|
|
3
5
|
import Handlebars from "handlebars";
|
|
4
|
-
import
|
|
5
|
-
import { Action as Action$1, DocumentModelModule } from "document-model";
|
|
6
|
+
import http from "node:http";
|
|
6
7
|
//#region src/core/pkg.d.ts
|
|
7
8
|
interface PackageInfo {
|
|
8
|
-
/** Project root directory
|
|
9
|
+
/** Project root directory: the directory of the nearest package.json above the calling file. */
|
|
9
10
|
root: string;
|
|
10
11
|
/** Package name with `@scope/` stripped (e.g. `"foo-cli"` from `"@acme/foo-cli"`). */
|
|
11
12
|
name: string;
|
|
@@ -14,9 +15,11 @@ interface PackageInfo {
|
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Read package identity from the nearest `package.json` above the calling
|
|
17
|
-
* source file. Pass `import.meta.url
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* source file. Pass `import.meta.url`: the search starts in that file's
|
|
19
|
+
* directory and walks up to the filesystem root, so a source file at any
|
|
20
|
+
* depth (`src/config.ts`, `cli/src/config.ts`) and a bundle
|
|
21
|
+
* (`node_modules/<pkg>/dist/node/cli/index.mjs`) both read their own
|
|
22
|
+
* package's. That package.json must carry a `name` and a `version`.
|
|
20
23
|
*/
|
|
21
24
|
export declare function readPackageInfo(importMetaUrl: string): PackageInfo;
|
|
22
25
|
//#endregion
|
|
@@ -54,79 +57,6 @@ export declare function defineCli<TSchema extends import("zod").ZodType = import
|
|
|
54
57
|
*/
|
|
55
58
|
export declare function defineTrigger<TState = Record<string, unknown>, TConfig = Record<string, unknown>, R extends DocumentRegistry = AnyRegistry>(options: TriggerOptions<TState, TConfig, R>): Trigger<TState, TConfig, R>;
|
|
56
59
|
//#endregion
|
|
57
|
-
//#region src/integrations/powerhouse/change-trigger.d.ts
|
|
58
|
-
interface DocumentChangeTriggerOptions<R extends DocumentRegistry, T extends keyof R & string, TConfig = Record<string, unknown>, TState extends {
|
|
59
|
-
pending: number;
|
|
60
|
-
} = {
|
|
61
|
-
pending: number;
|
|
62
|
-
}> {
|
|
63
|
-
/** Unique trigger id for logging/routing. */
|
|
64
|
-
id: string;
|
|
65
|
-
/** The document type(s) to watch. Must be key(s) in the registry. */
|
|
66
|
-
documentType: T | T[];
|
|
67
|
-
/**
|
|
68
|
-
* The specific document id (or a function that resolves one from context).
|
|
69
|
-
* When omitted, the helper loads ALL documents of the watched type(s)
|
|
70
|
-
* via `client.find()` and passes the full array to `onChange`.
|
|
71
|
-
*
|
|
72
|
-
* When a function is provided, it's resolved lazily on each poll. Returning
|
|
73
|
-
* `undefined` skips the tick.
|
|
74
|
-
*/
|
|
75
|
-
documentId?: string | ((ctx: TriggerContext<TState, TConfig, R>) => Promise<string | undefined>);
|
|
76
|
-
/**
|
|
77
|
-
* Fire once on startup before any event arrives — useful for reconciling
|
|
78
|
-
* against the current document state. Default: true.
|
|
79
|
-
*/
|
|
80
|
-
initialReconcile?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Optional predicate: called per-document after loading, before onChange.
|
|
83
|
-
* Return false to exclude a document from the batch. If all documents
|
|
84
|
-
* are filtered out, onChange is not called.
|
|
85
|
-
*/
|
|
86
|
-
filter?: (doc: R[T]["document"], ctx: TriggerContext<TState, TConfig, R>) => boolean | Promise<boolean>;
|
|
87
|
-
/**
|
|
88
|
-
* User's change handler. Receives an array of loaded, type-narrowed
|
|
89
|
-
* documents and the full trigger context. Returns a work item for the
|
|
90
|
-
* routine loop to execute (or null to skip).
|
|
91
|
-
*/
|
|
92
|
-
onChange: (docs: Array<R[T]["document"]>, ctx: TriggerContext<TState, TConfig, R>) => Promise<WorkItem | null>;
|
|
93
|
-
/**
|
|
94
|
-
* Call `onChange` even when zero documents are found. Default: false.
|
|
95
|
-
* Useful for triggers that need to perform work (e.g. bootstrapping from
|
|
96
|
-
* disk) regardless of whether any documents exist yet.
|
|
97
|
-
*/
|
|
98
|
-
callOnEmpty?: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Optional initial state for the trigger's private slot. Defaults to
|
|
101
|
-
* `{ pending: 0 }`. When supplied, the shape MUST include a `pending:
|
|
102
|
-
* number` field — the helper bumps and drains it internally.
|
|
103
|
-
*/
|
|
104
|
-
state?: () => TState;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Build a Trigger that listens for document change events on the event bus,
|
|
108
|
-
* coalesces them, loads matching documents, narrows to the registered type,
|
|
109
|
-
* and hands them to the user's onChange handler.
|
|
110
|
-
*
|
|
111
|
-
* Runtime behavior:
|
|
112
|
-
* 1. `setup()` subscribes to `powerhouse:document:changed`. For each event,
|
|
113
|
-
* if any documentType matches (and, when `documentId` is a literal
|
|
114
|
-
* string, the id also matches), bump the pending counter.
|
|
115
|
-
* 2. If `initialReconcile !== false`, `setup()` bumps pending once on
|
|
116
|
-
* startup so the first poll reconciles without waiting for an event.
|
|
117
|
-
* 3. `poll()` returns null unless pending > 0. When pending > 0:
|
|
118
|
-
* - If `documentId` is set: load single doc, wrap in `[doc]`
|
|
119
|
-
* - If `documentId` is omitted: `find()` all docs of matching type(s)
|
|
120
|
-
* Applies `filter` per-doc, then calls `onChange(docs, ctx)`.
|
|
121
|
-
* 4. pending is reset to 0 at the start of each poll drain — multiple
|
|
122
|
-
* events within a tick coalesce to one `onChange` call.
|
|
123
|
-
*/
|
|
124
|
-
export declare function createDocumentChangeTrigger<R extends DocumentRegistry = AnyRegistry, T extends keyof R & string = keyof R & string, TConfig = Record<string, unknown>, TState extends {
|
|
125
|
-
pending: number;
|
|
126
|
-
} = {
|
|
127
|
-
pending: number;
|
|
128
|
-
}>(options: DocumentChangeTriggerOptions<R, T, TConfig, TState>): Trigger<TState, TConfig, R>;
|
|
129
|
-
//#endregion
|
|
130
60
|
//#region src/core/types-binding.d.ts
|
|
131
61
|
/**
|
|
132
62
|
* Options for `createTypes`.
|
|
@@ -387,7 +317,12 @@ interface ServiceManagerOptions {
|
|
|
387
317
|
eventBus?: EventBus;
|
|
388
318
|
}
|
|
389
319
|
/**
|
|
390
|
-
* Create a ServiceManager for
|
|
320
|
+
* Create a ServiceManager for long-running services. Every instance is a
|
|
321
|
+
* child of this process: spawned attached, stopped by `stopAll()` (the CLI
|
|
322
|
+
* runtime's teardown) and, failing that, felled when the process ends (see
|
|
323
|
+
* process-platform.ts). The manager reports, stops and restarts only the
|
|
324
|
+
* instances it spawned itself; state left by another process is never
|
|
325
|
+
* adopted (see `foreignStatus`).
|
|
391
326
|
*/
|
|
392
327
|
export declare function createServiceManager(definitions: ServiceDefinition<any>[], opts: ServiceManagerOptions): ServiceManager;
|
|
393
328
|
//#endregion
|
|
@@ -619,6 +554,42 @@ interface RenderedChunk {
|
|
|
619
554
|
*/
|
|
620
555
|
export declare function renderStream(stream: AsyncGenerator<StreamChunk>): AsyncGenerator<RenderedChunk, void, unknown>;
|
|
621
556
|
//#endregion
|
|
557
|
+
//#region src/core/proxy-routes.d.ts
|
|
558
|
+
/**
|
|
559
|
+
* The proxy server's route type and its pure path helpers. No side effects —
|
|
560
|
+
* easily unit-testable.
|
|
561
|
+
*/
|
|
562
|
+
interface ProxyRoute {
|
|
563
|
+
/** URL path prefix matched against incoming requests (e.g. '/switchboard/graphql'). */
|
|
564
|
+
prefix: string;
|
|
565
|
+
/**
|
|
566
|
+
* Upstream target URL (e.g. new URL('http://localhost:4001/graphql')).
|
|
567
|
+
* Optional only for pure redirect routes (`redirectTo` set).
|
|
568
|
+
*/
|
|
569
|
+
upstream?: URL;
|
|
570
|
+
/** Whether WebSocket upgrade should be forwarded on this route. */
|
|
571
|
+
ws: boolean;
|
|
572
|
+
/** Origin label for route management (e.g. 'switchboard', 'service:my-svc'). */
|
|
573
|
+
source: string;
|
|
574
|
+
/**
|
|
575
|
+
* When set, matching requests get a 302 to this location instead of being
|
|
576
|
+
* proxied. No upstream connection is made.
|
|
577
|
+
*/
|
|
578
|
+
redirectTo?: string;
|
|
579
|
+
/**
|
|
580
|
+
* Match the prefix exactly rather than as a `startsWith` prefix. Exact
|
|
581
|
+
* routes are matched before prefix routes so a `'/'` redirect can coexist
|
|
582
|
+
* with a `'/'` catch-all without shadowing longer prefixes.
|
|
583
|
+
*/
|
|
584
|
+
exact?: boolean;
|
|
585
|
+
/**
|
|
586
|
+
* The upstream behind this prefix is still starting: matching requests get
|
|
587
|
+
* 503 + Retry-After instead of being proxied. A 404 would tell clients the
|
|
588
|
+
* endpoint does not exist, which some treat as permanent.
|
|
589
|
+
*/
|
|
590
|
+
unavailable?: boolean;
|
|
591
|
+
}
|
|
592
|
+
//#endregion
|
|
622
593
|
//#region src/core/proxy.d.ts
|
|
623
594
|
interface ProxyServerOptions {
|
|
624
595
|
/** Port to listen on (0 = auto-assign). */
|
|
@@ -629,8 +600,7 @@ interface ProxyServerOptions {
|
|
|
629
600
|
* Browser-facing base URL when the proxy sits behind an ingress /
|
|
630
601
|
* reverse proxy (e.g. `https://vetra-agent.<tenant>.vetra.io`). When
|
|
631
602
|
* set, `url` returns this instead of the local listen address, so
|
|
632
|
-
* everything composed from it
|
|
633
|
-
* drive / mcp URLs) is reachable from outside the pod.
|
|
603
|
+
* everything composed from it is reachable from outside the pod.
|
|
634
604
|
*
|
|
635
605
|
* A non-root pathname mounts the whole proxy surface under that base
|
|
636
606
|
* path (e.g. `https://host/myagent` → base path `/myagent`): incoming
|
|
@@ -650,66 +620,10 @@ interface ProxyServerInstance {
|
|
|
650
620
|
stop(): Promise<void>;
|
|
651
621
|
}
|
|
652
622
|
/**
|
|
653
|
-
* Create and start
|
|
623
|
+
* Create and start a reverse proxy server.
|
|
654
624
|
*/
|
|
655
625
|
export declare function createProxyServer(options: ProxyServerOptions): Promise<ProxyServerInstance>;
|
|
656
626
|
//#endregion
|
|
657
|
-
//#region src/interactive/types.d.ts
|
|
658
|
-
/**
|
|
659
|
-
* Output from processing a REPL input line.
|
|
660
|
-
*/
|
|
661
|
-
interface ReplOutput {
|
|
662
|
-
text: string;
|
|
663
|
-
type: "result" | "error" | "help" | "exit" | "empty" | "prompt" | "panel";
|
|
664
|
-
/** When type is 'prompt', the label to show instead of '> ' (e.g. "priority"). */
|
|
665
|
-
promptLabel?: string;
|
|
666
|
-
/** When type is 'panel', the panel identifier to render (e.g. 'services'). */
|
|
667
|
-
panelId?: string;
|
|
668
|
-
}
|
|
669
|
-
/**
|
|
670
|
-
* Options for creating a REPL session.
|
|
671
|
-
*/
|
|
672
|
-
interface ReplSessionOptions {
|
|
673
|
-
cli: Cli;
|
|
674
|
-
context: CommandContext;
|
|
675
|
-
/** Agent provider for default command routing. Resolved by defineCli from integrations. */
|
|
676
|
-
agentProvider?: AgentProvider;
|
|
677
|
-
/** Thread ID for conversation memory (from --resume flag). */
|
|
678
|
-
threadId?: string;
|
|
679
|
-
}
|
|
680
|
-
/**
|
|
681
|
-
* A REPL session — processes input lines and returns output.
|
|
682
|
-
* The session is the testable logic layer, independent of Ink rendering.
|
|
683
|
-
*/
|
|
684
|
-
interface ReplSession {
|
|
685
|
-
processInput(input: string): Promise<ReplOutput>;
|
|
686
|
-
getCompletions(partial: string): string[];
|
|
687
|
-
/** Get inline ghost suggestion (full input with first completion applied), or null. */
|
|
688
|
-
getGhostSuggestion(input: string): string | null;
|
|
689
|
-
/** Get suffix to append after applying a completion (e.g. ` "` for string flags). */
|
|
690
|
-
getCompletionSuffix(completion: string, input: string): string;
|
|
691
|
-
/** True when the session is waiting for a prompt answer. */
|
|
692
|
-
readonly isPrompting: boolean;
|
|
693
|
-
welcome: string | undefined;
|
|
694
|
-
/** The exit message (includes resume hint when a threadId is set). */
|
|
695
|
-
readonly exitMessage: string;
|
|
696
|
-
/** Callback invoked for each chunk during agent streaming. Receives the raw chunk and cumulative formatted text. */
|
|
697
|
-
onStreamChunk?: (chunk: StreamChunk, fullText: string) => void;
|
|
698
|
-
/** Number of trailing lines to show for tool output in the rolling window. */
|
|
699
|
-
outputWindow: number;
|
|
700
|
-
/** Abort the currently running agent stream. The LLM request is cancelled and the session stays on the same thread. */
|
|
701
|
-
abortCurrentStream(): void;
|
|
702
|
-
}
|
|
703
|
-
/**
|
|
704
|
-
* A single entry in the REPL history.
|
|
705
|
-
*/
|
|
706
|
-
interface HistoryEntry {
|
|
707
|
-
id: number;
|
|
708
|
-
input: string;
|
|
709
|
-
output: string;
|
|
710
|
-
type: ReplOutput["type"];
|
|
711
|
-
}
|
|
712
|
-
//#endregion
|
|
713
627
|
//#region src/interactive/session.d.ts
|
|
714
628
|
/**
|
|
715
629
|
* Create a REPL session — the testable logic layer for interactive mode.
|
|
@@ -796,168 +710,6 @@ export declare function applyCompletion(input: string, completion: string): stri
|
|
|
796
710
|
*/
|
|
797
711
|
export declare function renderMarkdown(text: string): string;
|
|
798
712
|
//#endregion
|
|
799
|
-
//#region src/integrations/powerhouse/registry.d.ts
|
|
800
|
-
/**
|
|
801
|
-
* Extract the action union from a DocumentModelModule.
|
|
802
|
-
*
|
|
803
|
-
* `DocumentModelModule.actions` is `{ [actionName]: (input) => Action }` — the
|
|
804
|
-
* return types of those creators form the module's action union.
|
|
805
|
-
*
|
|
806
|
-
* If a module's actions map isn't typed tightly enough (because the module
|
|
807
|
-
* was annotated with `: DocumentModelModule<…>` instead of `satisfies`), the
|
|
808
|
-
* union collapses to `Action`. Not a correctness problem — just a DX
|
|
809
|
-
* degradation for that one module's execute/executeAsync narrowing.
|
|
810
|
-
*/
|
|
811
|
-
type ActionOf<M> = M extends {
|
|
812
|
-
actions: infer Actions;
|
|
813
|
-
} ? Actions extends Record<string, (...args: never[]) => infer A> ? A : Action$1 : Action$1;
|
|
814
|
-
/**
|
|
815
|
-
* Infer a DocumentRegistry from a readonly tuple of DocumentModelModule instances.
|
|
816
|
-
*
|
|
817
|
-
* Literal inference requires each module's `documentModel.id` to be a literal
|
|
818
|
-
* type. Phase 4 changes codegen to emit modules with `as const satisfies
|
|
819
|
-
* DocumentModelModule<…>` so inference produces a typed registry. Modules
|
|
820
|
-
* typed with `:` annotations erase `id` to `string` and produce a
|
|
821
|
-
* single-keyed `{ [x: string]: RegistryEntry<...> }` registry — narrowing
|
|
822
|
-
* still works when callers pass a literal `T`, but `keyof R & string`
|
|
823
|
-
* collapses to `string` (no autocomplete for documentTypes lists).
|
|
824
|
-
*/
|
|
825
|
-
type InferRegistry<T extends ReadonlyArray<DocumentModelModule<any>>> = { [M in T[number] as Extract<M["documentModel"]["global"]["id"], string>]: M extends DocumentModelModule<infer S> ? RegistryEntry<S, ActionOf<M>> : never; };
|
|
826
|
-
/**
|
|
827
|
-
* Build a DocumentRegistry from a tuple of DocumentModelModules.
|
|
828
|
-
*
|
|
829
|
-
* ```ts
|
|
830
|
-
* const registry = defineRegistry([PhClintProject, DocumentDrive] as const);
|
|
831
|
-
* // typeof registry:
|
|
832
|
-
* // {
|
|
833
|
-
* // 'powerhouse/ph-clint-project': RegistryEntry<PhClintProjectPHState, PhClintProjectAction>;
|
|
834
|
-
* // 'powerhouse/document-drive': RegistryEntry<DocumentDrivePHState, DocumentDriveAction>;
|
|
835
|
-
* // }
|
|
836
|
-
* ```
|
|
837
|
-
*
|
|
838
|
-
* Runtime value is a plain object keyed by `documentModel.id`. Consumers can
|
|
839
|
-
* introspect it to list registered types; Phase 3's
|
|
840
|
-
* `createDocumentChangeTrigger` also uses it for runtime lookup.
|
|
841
|
-
*/
|
|
842
|
-
export declare function defineRegistry<const T extends ReadonlyArray<DocumentModelModule<any>>>(modules: T): InferRegistry<T>;
|
|
843
|
-
//#endregion
|
|
844
|
-
//#region src/integrations/powerhouse/ports.d.ts
|
|
845
|
-
/**
|
|
846
|
-
* DJB2 hash seeded with a salt → port in range 10000–59900.
|
|
847
|
-
*
|
|
848
|
-
* Deterministic: same (cliName, salt) always produces the same port.
|
|
849
|
-
*/
|
|
850
|
-
export declare function defaultPort(cliName: string, salt: string): number;
|
|
851
|
-
/**
|
|
852
|
-
* Scan [port, port+range-1] for the first free port.
|
|
853
|
-
* Throws with a clear error if no port in the range is available.
|
|
854
|
-
*
|
|
855
|
-
* @param port Base port to start scanning from.
|
|
856
|
-
* @param range Number of ports to scan (default 1).
|
|
857
|
-
* @param label Human-readable label for error messages.
|
|
858
|
-
*/
|
|
859
|
-
export declare function resolvePort(port: number, range: number, label: string): Promise<number>;
|
|
860
|
-
/**
|
|
861
|
-
* Stamp port and name defaults onto switchboard/connect sub-configs.
|
|
862
|
-
*
|
|
863
|
-
* Called synchronously in configureReactor() — no port scanning here,
|
|
864
|
-
* just default derivation. The actual port scan (resolvePort) happens
|
|
865
|
-
* later in startSwitchboardLayer() / connect preflight.
|
|
866
|
-
*/
|
|
867
|
-
export declare function resolveReactorDefaults(cliName: string, config: Pick<ReactorConfiguration, "switchboard" | "connect">): {
|
|
868
|
-
switchboard?: SwitchboardConfig;
|
|
869
|
-
connect?: ConnectConfig;
|
|
870
|
-
};
|
|
871
|
-
//#endregion
|
|
872
|
-
//#region src/integrations/powerhouse/identity.d.ts
|
|
873
|
-
/**
|
|
874
|
-
* Deterministic identity derivation for per-CLI namespacing.
|
|
875
|
-
*
|
|
876
|
-
* Produces stable, reproducible identifiers from (cliName, salt) pairs.
|
|
877
|
-
* Used for drive IDs and other resources that must be consistent across
|
|
878
|
-
* sessions and systems.
|
|
879
|
-
*
|
|
880
|
-
* Placeholder implementation — will be replaced with Ed25519 public key
|
|
881
|
-
* derivation when document authorization is added.
|
|
882
|
-
*/
|
|
883
|
-
/**
|
|
884
|
-
* Deterministic UUID-shaped identifier from (cliName, salt).
|
|
885
|
-
*
|
|
886
|
-
* Uses SHA-256 of `${cliName}:${salt}`, truncated to 128 bits and formatted
|
|
887
|
-
* as a UUID v4 string (version nibble = 4, variant = 10xx). Deterministic:
|
|
888
|
-
* same (cliName, salt) always produces the same ID across systems.
|
|
889
|
-
*/
|
|
890
|
-
export declare function deterministicId(cliName: string, salt: string): string;
|
|
891
|
-
//#endregion
|
|
892
|
-
//#region src/integrations/powerhouse/switchboard.d.ts
|
|
893
|
-
interface StartSwitchboardOptions {
|
|
894
|
-
/** The ReactorClientModule from Phase 1. */
|
|
895
|
-
reactorModule: ReactorClientModule;
|
|
896
|
-
/** Hostname/IP to bind to. Default: 'localhost'. */
|
|
897
|
-
host?: string;
|
|
898
|
-
/** HTTP port for Switchboard. */
|
|
899
|
-
port: number;
|
|
900
|
-
/** Path for the Switchboard read model database. */
|
|
901
|
-
dbPath: string;
|
|
902
|
-
/** Default drive ID (for constructing the drive URL). */
|
|
903
|
-
driveId: string;
|
|
904
|
-
/**
|
|
905
|
-
* Registry URL for `HttpPackageLoader`. When set, the switchboard's
|
|
906
|
-
* `Packages` subgraph is registered (install/uninstall mutations) and
|
|
907
|
-
* dynamic package resolution is enabled.
|
|
908
|
-
*/
|
|
909
|
-
registryUrl?: string;
|
|
910
|
-
}
|
|
911
|
-
/**
|
|
912
|
-
* Start Switchboard wrapping the caller-provided Reactor.
|
|
913
|
-
*
|
|
914
|
-
* Lazy-loads `@powerhousedao/switchboard/server` — it's an optional peer
|
|
915
|
-
* dependency. Hands the pre-built ReactorClientModule to switchboard's
|
|
916
|
-
* `startSwitchboard` so we don't construct a second Reactor.
|
|
917
|
-
*/
|
|
918
|
-
export declare function startSwitchboard(options: StartSwitchboardOptions): Promise<SwitchboardInstance>;
|
|
919
|
-
//#endregion
|
|
920
|
-
//#region src/integrations/powerhouse/type-guard.d.ts
|
|
921
|
-
/**
|
|
922
|
-
* Type guard for discriminated narrowing in multi-type onChange handlers.
|
|
923
|
-
*
|
|
924
|
-
* Usage:
|
|
925
|
-
* onChange(docs, ctx) {
|
|
926
|
-
* for (const doc of docs) {
|
|
927
|
-
* if (isDocType(doc, 'powerhouse/ph-clint-project')) {
|
|
928
|
-
* // doc is narrowed to R['powerhouse/ph-clint-project']['document']
|
|
929
|
-
* }
|
|
930
|
-
* }
|
|
931
|
-
* }
|
|
932
|
-
*/
|
|
933
|
-
export declare function isDocType<R extends DocumentRegistry, T extends keyof R & string>(doc: R[keyof R & string]["document"], type: T): doc is R[T]["document"];
|
|
934
|
-
//#endregion
|
|
935
|
-
//#region src/integrations/powerhouse/index.d.ts
|
|
936
|
-
/**
|
|
937
|
-
* Options for buildDefaultReactor().
|
|
938
|
-
*/
|
|
939
|
-
interface BuildDefaultReactorOptions<R extends DocumentRegistry = AnyRegistry> {
|
|
940
|
-
/** Document model modules to register with the Reactor. */
|
|
941
|
-
documentModels: DocumentModelModule[];
|
|
942
|
-
/** Single drive (sugar for drives: [{ ...drive, role: 'personal' }]). */
|
|
943
|
-
drive?: DriveConfig;
|
|
944
|
-
/** Multi-drive configuration. First 'personal' drive = personalDriveId = driveId. */
|
|
945
|
-
drives?: Array<DriveConfig & {
|
|
946
|
-
role: "personal" | "watched";
|
|
947
|
-
remoteUrl?: string;
|
|
948
|
-
}>;
|
|
949
|
-
/** Subscribe to document changes → event bus. */
|
|
950
|
-
subscriptions?: SubscriptionConfig<R>;
|
|
951
|
-
}
|
|
952
|
-
/**
|
|
953
|
-
* Build a ReactorContext using the standard composition:
|
|
954
|
-
* buildReactor() + ensureDrive() + bridgeSubscriptions() + startSwitchboard().
|
|
955
|
-
*
|
|
956
|
-
* This is the common-case helper for configureReactor().create.
|
|
957
|
-
* Advanced users can write their own factory.
|
|
958
|
-
*/
|
|
959
|
-
export declare function buildDefaultReactor<R extends DocumentRegistry = AnyRegistry>(ctx: ReactorSetupContext<R>, options: BuildDefaultReactorOptions<R>): Promise<ReactorContext<R>>;
|
|
960
|
-
//#endregion
|
|
961
713
|
//#region src/core/wraps.d.ts
|
|
962
714
|
/**
|
|
963
715
|
* The identity registry — every wrap is a passthrough.
|
|
@@ -1000,6 +752,6 @@ interface LifecycleResult {
|
|
|
1000
752
|
*/
|
|
1001
753
|
export declare function initLifecycle(hooks: LifecycleHook[], ctx: LifecycleInitContext): Promise<LifecycleResult>;
|
|
1002
754
|
//#endregion
|
|
1003
|
-
export { type ActionOf, type AgentContentPart, type AgentLoader, type AgentProfileConfig, type AgentPromptInput, type AgentProvider, type AgentSetupContext, type AgentStreamOptions, type AnyRegistry, type AttachmentHeader, type AttachmentRef, type AttachmentResponse, type AttachmentUploadResult, type BootTimings, type BootstrapOptions, type BootstrapResult, type
|
|
755
|
+
export { type ActionOf, type AgentContentPart, type AgentLoader, type AgentProfileConfig, type AgentPromptInput, type AgentProvider, type AgentSetupContext, type AgentStreamOptions, type AnyRegistry, type AttachDefaultReactorOptions, type AttachmentHeader, type AttachmentRef, type AttachmentResponse, type AttachmentUploadResult, type BootTimings, type BootstrapOptions, type BootstrapResult, type CaptureDefinition, type Cli, type CliMetadata, type CliOptions, type Command, type CommandContext, type CommandServiceDefinition, type ConfigEnvVar, type CoreContext, type CreateTypesOptions, type DocumentChangeTriggerOptions, type DocumentRegistry, type DriveConfig, type DriveEntry, type EmitFn, type EndpointType, type EnsureDriveClient, type ErrorChunk, type EventBus, type FieldInfo, type FolderEntry, type FolderOperations, type HistoryEntry, type HostServiceDefinition, type IAttachmentService, type InferConfig, type InferRegistry, type InstallSkillsOptions, type InteractiveConfig, type LifecycleHandle, type LifecycleHook, type LifecycleInitContext, type LifecycleResult, type LogLevel, type Logger, type OnFn, PROJECT_INDICATORS, type PackageInfo, type ParsedReplInput, type PhClintEvents, type PreflightCheck, type PreflightContext, type PreflightResult, type ProcessHandle, type ProcessManager, type ProcessRunOptions, type ProjectMapping, type ProjectScanResult, type ProjectScanner, type PromptConfig, type PromptsConfig, type ProxyRoute, type ProxyServerInstance, type ProxyServerOptions, type ReactorConfiguration, type ReactorContext, type ReactorSetupContext, type ReactorWrites, type ReadinessConfig, type ReadinessPattern, type RegistryEntry, type RemoteReactorConfig, type RemoteReactorSource, type RenderOptions, type RenderResult, type RenderedChunk, type ReplOutput, type ReplSession, type ReplSessionOptions, type ReserveAttachmentOptions, type Resolvable, type ResolvedInteractiveConfig, type Routine, type RoutineConfig, type RoutineStatus, type RunOptions, type RunReactor, type ServiceBuildContext, type ServiceDefinition, type ServiceDefinitionBase, type ServiceHostRun, type ServiceInstanceStatus, type ServiceManager, type ServiceStartOptions, type ServiceStatus, type SignaturePolicy, SignerNotReadyError, type SkillConfig, type SkillInfo, type SkillInvocation, type StreamChunk, type SubscriptionConfig, type TextDeltaChunk, type ToolCallChunk, type ToolOutputChunk, type ToolResultChunk, type Trigger, type TriggerContext, type TriggerOptions, type TypedDocumentChangeEvent, type TypedFactory, type TypedReactorClient, type WorkItem, type WorkdirStore, type WrapRegistry, attachDefaultReactor, createDocumentChangeTrigger, defineRegistry, isDocType, policyOfHeader, readSkills, resolveRemoteReactorConfig, scanProjects, signerReady };
|
|
1004
756
|
export {};
|
|
1005
757
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/core/pkg.ts","../src/core/command.ts","../src/core/errors.ts","../src/core/logger.ts","../src/core/cli.ts","../src/core/trigger.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/core/pkg.ts","../src/core/command.ts","../src/core/errors.ts","../src/core/logger.ts","../src/core/cli.ts","../src/core/trigger.ts","../src/core/types-binding.ts","../src/core/schema.ts","../src/core/store.ts","../src/core/config.ts","../src/core/config-command.ts","../src/core/workdir.ts","../src/core/events.ts","../src/core/processes.ts","../src/core/services.ts","../src/core/service-command.ts","../src/core/project-mapping.ts","../src/core/preflight.ts","../src/core/help-command.ts","../src/core/init.ts","../src/core/skill-commands.ts","../src/core/templates.ts","../src/core/routine.ts","../src/core/routine-service.ts","../src/core/stream.ts","../src/core/proxy-routes.ts","../src/core/proxy.ts","../src/interactive/session.ts","../src/interactive/router.ts","../src/interactive/completions.ts","../src/interactive/markdown.ts","../src/core/wraps.ts","../src/core/lifecycle.ts"],"mappings":";;;;;;;UAgBiB;;EAEf;;EAEA;;EAEA;;;;;;;;;;wBAWc,gBAAgB,wBAAwB;;;;;;;wBCxBxC,cACd,eAAe,EAAE,SACjB,mBACA,UAAU,yBACV,UAAU,wBAEV,SAAS,QAAQ,QAAQ,SAAS,SAAS,KA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,mBACd,eACA,UAAU;;;;;;;;;;wBAyBI,gBAAgB,eAAe;;;;;;;;;;wBCpK/B,eAAe;;;;;;;;;;qBC9ClB,gBAAgB;;;;;;;;wBAuCb,aAAa,SAAS,oBAAoB;;;UCxCzC;;EAEf,OAAO;;;;;;EAMP,gBAAgB;;EAEhB,SAAS;;;;;;;;;;;wBAYW,cACpB,OAAO,iBACP,KAAK,uBACJ,QAAQ"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as createProxyServer } from "./proxy-
|
|
7
|
-
|
|
8
|
-
export { DEFAULT_SKILL_INSTRUCTION, IDENTITY_WRAPS, PROJECT_INDICATORS, applyCompletion, buildDefaultReactor, buildServiceRoutes, buildSwitchboardRouteSpecs, buildSwitchboardRoutes, captureRoutePrefix, checkCommand, checkPort, checkWorkdir, composeWraps, configKeyToEnvVar, createCompositeServiceManager, createConfigCommand, createDocumentChangeTrigger, createEventBus, createHelpCommand, createLogger, createMemoryWorkdirStore, createProcessManager, createProxyServer, createReplSession, createRoutine, createRoutineServiceAdapter, createServiceCommands, createServiceManager, createSkillCommands, createTypes, createWorkdirStore, defaultPort, defineCli, defineCommand, defineRegistry, defineService, defineTrigger, deterministicId, extractTemplateVars, formatStatus, formatStreamChunk, formatZodError, generateConfigCommandHelp, getCompletionSuffix, getCompletions, getGhostSuggestion, getMissingRequiredFields, getProjectMapping, getSchemaFields, initLifecycle, installSkills, isDocType, isPortFree, isSkillInvocation, isWsEndpointType, localConfigPath, parseReplInput, readPackageInfo, readSkills, registerDefaultHelpers, renderMarkdown, renderSkillTemplate, renderStream, resolveConfig, resolvePort, resolveReactorDefaults, resolveServiceName, resolveWorkdir, scanProjects, slugToTitle, startSwitchboard, toUpperSnake, tokenizeArgs, userConfigPath, userStoreFolder };
|
|
1
|
+
import { A as configKeyToEnvVar, C as installSkills, D as createConfigCommand, E as formatStatus, F as userConfigPath, I as userStoreFolder, L as createLogger, M as localConfigPath, N as resolveConfig, O as generateConfigCommandHelp, P as toUpperSnake, R as formatZodError, S as readSkills, T as createServiceCommands, _ as createSkillCommands, a as initLifecycle, b as registerDefaultHelpers, c as tokenizeArgs, d as createRoutine, f as IDENTITY_WRAPS, g as DEFAULT_SKILL_INSTRUCTION, h as createEventBus, i as defineCli, j as getMissingRequiredFields, k as resolveWorkdir, l as createCompositeServiceManager, m as createProcessManager, n as createTypes, o as createReplSession, p as composeWraps, r as defineTrigger, s as parseReplInput, t as getProjectMapping, u as createRoutineServiceAdapter, v as isSkillInvocation, w as createHelpCommand, x as renderSkillTemplate, y as extractTemplateVars, z as readPackageInfo } from "./src-BehwgLP6.mjs";
|
|
2
|
+
import { n as slugToTitle, t as getSchemaFields } from "./schema-BEKAZGyT.mjs";
|
|
3
|
+
import { C as isDocType, D as policyOfHeader, M as createDocumentChangeTrigger, N as defineCommand, O as signerReady, T as SignerNotReadyError, j as defineRegistry, n as resolveRemoteReactorConfig, t as attachDefaultReactor } from "./powerhouse-BDnj7kqd.mjs";
|
|
4
|
+
import { S as renderStream, _ as isPortFree, a as getGhostSuggestion, f as PROJECT_INDICATORS, g as checkWorkdir, h as checkPort, i as getCompletions, l as resolveServiceName, m as checkCommand, n as applyCompletion, o as createServiceManager, p as scanProjects, r as getCompletionSuffix, s as defineService, t as renderMarkdown, x as formatStreamChunk } from "./markdown-BUeGwhbR.mjs";
|
|
5
|
+
import { n as createWorkdirStore, t as createMemoryWorkdirStore } from "./store-CxqB-OrX.mjs";
|
|
6
|
+
import { t as createProxyServer } from "./proxy-ji3EHzLn.mjs";
|
|
7
|
+
export { DEFAULT_SKILL_INSTRUCTION, IDENTITY_WRAPS, PROJECT_INDICATORS, SignerNotReadyError, applyCompletion, attachDefaultReactor, checkCommand, checkPort, checkWorkdir, composeWraps, configKeyToEnvVar, createCompositeServiceManager, createConfigCommand, createDocumentChangeTrigger, createEventBus, createHelpCommand, createLogger, createMemoryWorkdirStore, createProcessManager, createProxyServer, createReplSession, createRoutine, createRoutineServiceAdapter, createServiceCommands, createServiceManager, createSkillCommands, createTypes, createWorkdirStore, defineCli, defineCommand, defineRegistry, defineService, defineTrigger, extractTemplateVars, formatStatus, formatStreamChunk, formatZodError, generateConfigCommandHelp, getCompletionSuffix, getCompletions, getGhostSuggestion, getMissingRequiredFields, getProjectMapping, getSchemaFields, initLifecycle, installSkills, isDocType, isPortFree, isSkillInvocation, localConfigPath, parseReplInput, policyOfHeader, readPackageInfo, readSkills, registerDefaultHelpers, renderMarkdown, renderSkillTemplate, renderStream, resolveConfig, resolveRemoteReactorConfig, resolveServiceName, resolveWorkdir, scanProjects, signerReady, slugToTitle, toUpperSnake, tokenizeArgs, userConfigPath, userStoreFolder };
|