@powerhousedao/host-core 6.2.3-dev.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/dist/compound-9--OujO-.d.mts +155 -0
- package/dist/compound-9--OujO-.d.mts.map +1 -0
- package/dist/host-schemas-B0-Vk8vP.mjs +512 -0
- package/dist/host-schemas-B0-Vk8vP.mjs.map +1 -0
- package/dist/index.d.mts +431 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +142 -0
- package/dist/index.mjs.map +1 -0
- package/dist/runners/compound.d.mts +95 -0
- package/dist/runners/compound.d.mts.map +1 -0
- package/dist/runners/compound.mjs +47 -0
- package/dist/runners/compound.mjs.map +1 -0
- package/package.json +49 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { C as lintHostImports, D as projectDrivesIntoConnect, E as mergeDefaultDrives, O as rebaseDriveUrl, S as findNonStaticValue, T as probeHostsFolder, _ as getVerb, a as reactorProtocolSchema, b as validateHost, c as runCompound, d as clearRunRecord, f as isPidAlive, g as RunnerError, h as writeRunRecord, i as reactorBackendSchema, l as defaultUserDataDir, m as readRunRecord, o as reactorSchema, p as probeRun, r as profileSchema, s as runnerBaseSchema, t as childrenSchema, u as resolveUserDataPlaceholders, v as listVerbs, w as loadHost, x as HostLoadError, y as resolveRunnerModule } from "./host-schemas-B0-Vk8vP.mjs";
|
|
2
|
+
//#region src/backend-projection.ts
|
|
3
|
+
function projectStorage(name, storage) {
|
|
4
|
+
switch (storage.kind) {
|
|
5
|
+
case "idb": return { kind: "idb" };
|
|
6
|
+
case "memory": return { kind: "memory" };
|
|
7
|
+
case "path":
|
|
8
|
+
if (!storage.dataDir) throw new Error(`Backend "${name}": storage kind "path" requires dataDir.`);
|
|
9
|
+
return {
|
|
10
|
+
kind: "path",
|
|
11
|
+
dataDir: storage.dataDir
|
|
12
|
+
};
|
|
13
|
+
case "postgres": throw new Error(`Backend "${name}": storage kind "postgres" is server-side only — a provisioned (in-process/worker) reactor cannot use it. Point a "remote" backend at the switchboard that owns that database instead.`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
/** One backend → one descriptor. The protocol's featureFlags ride every
|
|
17
|
+
* descriptor (they are fleet consensus, not per-backend). A remote backend
|
|
18
|
+
* must carry remote.url — provision() requires it. */
|
|
19
|
+
function backendToDescriptor(name, backend, protocol) {
|
|
20
|
+
const descriptor = {
|
|
21
|
+
kind: backend.kind ?? "in-process",
|
|
22
|
+
name
|
|
23
|
+
};
|
|
24
|
+
if (descriptor.kind === "remote") {
|
|
25
|
+
const url = backend.remote?.url;
|
|
26
|
+
if (!url) throw new Error(`Backend "${name}" is kind "remote" but has no remote.url — a remote descriptor attaches to an already-running reactor by URL.`);
|
|
27
|
+
descriptor.remote = { url };
|
|
28
|
+
return descriptor;
|
|
29
|
+
}
|
|
30
|
+
if (backend.storage) descriptor.storage = projectStorage(name, backend.storage);
|
|
31
|
+
if (backend.packages) descriptor.packages = backend.packages;
|
|
32
|
+
if (protocol?.featureFlags) descriptor.featureFlags = protocol.featureFlags;
|
|
33
|
+
return descriptor;
|
|
34
|
+
}
|
|
35
|
+
/** All named backends, in placement-primary-first order (the order a
|
|
36
|
+
* createReactorClients step would provision them). */
|
|
37
|
+
function backendsToDescriptors(reactor) {
|
|
38
|
+
const backends = reactor?.backends;
|
|
39
|
+
if (!backends) return [];
|
|
40
|
+
const names = Object.keys(backends);
|
|
41
|
+
const primary = reactor.placement?.primary;
|
|
42
|
+
return (primary && names.includes(primary) ? [primary, ...names.filter((n) => n !== primary)] : names).map((name) => backendToDescriptor(name, backends[name], reactor.protocol));
|
|
43
|
+
}
|
|
44
|
+
const LOCAL_KINDS = /* @__PURE__ */ new Set([
|
|
45
|
+
"in-process",
|
|
46
|
+
"worker",
|
|
47
|
+
void 0
|
|
48
|
+
]);
|
|
49
|
+
/**
|
|
50
|
+
* Structural multi-reactor (phase 4): true when the block names BOTH a local
|
|
51
|
+
* backend (in-process/worker — the tab's own reactor) and a remote one. This
|
|
52
|
+
* is the shape Connect's routing client serves; a lone remote backend is an
|
|
53
|
+
* attach-only host (assistant/agent shape), not a routed tab.
|
|
54
|
+
*/
|
|
55
|
+
function isStructuralMultiReactor(reactor) {
|
|
56
|
+
const backends = reactor?.backends;
|
|
57
|
+
if (!backends) return false;
|
|
58
|
+
const kinds = Object.values(backends).map((b) => b.kind);
|
|
59
|
+
return kinds.some((k) => LOCAL_KINDS.has(k)) && kinds.some((k) => k === "remote");
|
|
60
|
+
}
|
|
61
|
+
/** The remote backends' urls, placement order — what the routing client dials. */
|
|
62
|
+
function remoteBackendUrls(reactor) {
|
|
63
|
+
return backendsToDescriptors(reactor).filter((d) => d.kind === "remote").map((d) => d.remote?.url).filter((u) => typeof u === "string");
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/reactor-config.ts
|
|
67
|
+
/** The single primary backend for phase-2 projection (multi-backend routing is
|
|
68
|
+
* track R). Prefers placement.primary, else "main"/"local", else the first. */
|
|
69
|
+
function primaryBackend(reactor) {
|
|
70
|
+
const backends = reactor?.backends;
|
|
71
|
+
if (!backends) return void 0;
|
|
72
|
+
const names = Object.keys(backends);
|
|
73
|
+
if (names.length === 0) return void 0;
|
|
74
|
+
return backends[reactor.placement?.primary ?? (names.includes("main") ? "main" : names.includes("local") ? "local" : names[0])];
|
|
75
|
+
}
|
|
76
|
+
const FLAG_ENV = {
|
|
77
|
+
documentDecisions: "REACTOR_DOCUMENT_DECISIONS",
|
|
78
|
+
authEnforcement: "REACTOR_AUTH_ENFORCEMENT",
|
|
79
|
+
authGroups: "REACTOR_AUTH_GROUPS",
|
|
80
|
+
authConditions: "REACTOR_AUTH_CONDITIONS"
|
|
81
|
+
};
|
|
82
|
+
/** The env vars a protocol block maps onto, with their string values. Only
|
|
83
|
+
* keys the block actually sets appear. */
|
|
84
|
+
function protocolEnv(protocol) {
|
|
85
|
+
const env = {};
|
|
86
|
+
if (!protocol) return env;
|
|
87
|
+
for (const [key, varName] of Object.entries(FLAG_ENV)) {
|
|
88
|
+
const value = protocol.featureFlags?.[key];
|
|
89
|
+
if (value !== void 0) env[varName] = value ? "true" : "false";
|
|
90
|
+
}
|
|
91
|
+
if (protocol.createSignaturePolicy !== void 0) env.CREATE_SIGNATURE_POLICY = protocol.createSignaturePolicy;
|
|
92
|
+
if (protocol.unsupportedStoredDocuments !== void 0) env.REACTOR_UNSUPPORTED_STORED_DOCUMENTS = protocol.unsupportedStoredDocuments;
|
|
93
|
+
return env;
|
|
94
|
+
}
|
|
95
|
+
/** Project the reactor block onto the switchboard's env + options. */
|
|
96
|
+
function projectReactorToSwitchboard(reactor) {
|
|
97
|
+
const env = protocolEnv(reactor?.protocol);
|
|
98
|
+
const backend = primaryBackend(reactor);
|
|
99
|
+
const options = {};
|
|
100
|
+
if (backend?.storage) {
|
|
101
|
+
const s = backend.storage;
|
|
102
|
+
const dbUrl = s.kind === "postgres" ? s.url : s.dataDir;
|
|
103
|
+
if (dbUrl) env.PH_REACTOR_DATABASE_URL = dbUrl;
|
|
104
|
+
}
|
|
105
|
+
if (backend?.readModel?.url) options.dbPath = backend.readModel.url;
|
|
106
|
+
if (backend?.packages?.dynamic) env.DYNAMIC_MODEL_LOADING = "true";
|
|
107
|
+
if (reactor?.workflows !== void 0) env.PH_WORKFLOWS_ENABLED = reactor.workflows ? "1" : "0";
|
|
108
|
+
return {
|
|
109
|
+
env,
|
|
110
|
+
options
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
/** Project the reactor block onto the Connect runtime config: protocol →
|
|
114
|
+
* connect.reactor (same shape), backend kind → instance.reactorWorker,
|
|
115
|
+
* workflows → app.workflowsEnabled. */
|
|
116
|
+
function projectReactorToConnect(reactor) {
|
|
117
|
+
const connect = {};
|
|
118
|
+
if (reactor?.protocol) connect.reactor = reactor.protocol;
|
|
119
|
+
const backend = primaryBackend(reactor);
|
|
120
|
+
if (backend?.kind !== void 0) connect.instance = { reactorWorker: backend.kind === "worker" };
|
|
121
|
+
if (reactor?.workflows !== void 0) connect.app = { workflowsEnabled: reactor.workflows };
|
|
122
|
+
return { connect };
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The enforcement teeth of single-sourcing: if a pre-set env var CONTRADICTS
|
|
126
|
+
* the host's protocol block, fail loudly naming the var, the host value, and
|
|
127
|
+
* the env value. An env var that merely matches, or is unset, is fine (phase-2
|
|
128
|
+
* transition keeps an operator's explicit env as an escape hatch unless it
|
|
129
|
+
* disagrees with the protocol — see the WBS precedence note).
|
|
130
|
+
*/
|
|
131
|
+
function assertProtocolConsistency(protocol, env, hostFile = "the host file") {
|
|
132
|
+
if (!protocol) return;
|
|
133
|
+
const expected = protocolEnv(protocol);
|
|
134
|
+
for (const [varName, hostValue] of Object.entries(expected)) {
|
|
135
|
+
const envValue = env[varName];
|
|
136
|
+
if (envValue !== void 0 && envValue !== hostValue) throw new Error(`reactor.protocol conflict: ${varName} is "${envValue}" in the environment but "${hostValue}" in ${hostFile}. These are fleet-consensus settings — a mismatch would diverge replay. Remove the env override or align the host.`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
export { HostLoadError, RunnerError, assertProtocolConsistency, backendToDescriptor, backendsToDescriptors, childrenSchema, clearRunRecord, defaultUserDataDir, findNonStaticValue, getVerb, isPidAlive, isStructuralMultiReactor, lintHostImports, listVerbs, loadHost, mergeDefaultDrives, primaryBackend, probeHostsFolder, probeRun, profileSchema, projectDrivesIntoConnect, projectReactorToConnect, projectReactorToSwitchboard, protocolEnv, reactorBackendSchema, reactorProtocolSchema, reactorSchema, readRunRecord, rebaseDriveUrl, remoteBackendUrls, resolveRunnerModule, resolveUserDataPlaceholders, runCompound, runnerBaseSchema, validateHost, writeRunRecord };
|
|
141
|
+
|
|
142
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/backend-projection.ts","../src/reactor-config.ts"],"sourcesContent":["import type {\n ReactorBackend,\n ReactorConfig,\n ReactorProtocol,\n} from \"./reactor-config.js\";\n\n/**\n * Phase 4 (track R): project named host backends onto reactor-monitor's\n * `ReactorDescriptor` shape — the input `provision()` takes. Pure and\n * dependency-free; a type-assignability test pins the output to the real\n * `ReactorDescriptor` so an upstream field rename fails this package's tests\n * instead of silently drifting (D2.b: aligned locally, upstreaming not\n * blocked on).\n */\n\n/** The browser-provisionable storage union — reactor-monitor's\n * `ReactorStorageConfig` shape. `postgres` is the SERVER extension (D2.b): a\n * switchboard backend's storage, never a provisioned browser reactor's. */\nexport type ProjectedStorage =\n | { kind: \"idb\" }\n | { kind: \"memory\" }\n | { kind: \"path\"; dataDir: string };\n\nexport interface ProjectedDescriptor {\n kind: \"in-process\" | \"worker\" | \"remote\";\n name: string;\n storage?: ProjectedStorage;\n packages?: { cdnUrl?: string; specs?: string[]; dynamic?: boolean };\n featureFlags?: {\n documentDecisions?: boolean;\n authEnforcement?: boolean;\n authGroups?: boolean;\n authConditions?: boolean;\n };\n remote?: { url: string };\n}\n\nfunction projectStorage(\n name: string,\n storage: NonNullable<ReactorBackend[\"storage\"]>,\n): ProjectedStorage {\n switch (storage.kind) {\n case \"idb\":\n return { kind: \"idb\" };\n case \"memory\":\n return { kind: \"memory\" };\n case \"path\": {\n if (!storage.dataDir) {\n throw new Error(\n `Backend \"${name}\": storage kind \"path\" requires dataDir.`,\n );\n }\n return { kind: \"path\", dataDir: storage.dataDir };\n }\n case \"postgres\":\n throw new Error(\n `Backend \"${name}\": storage kind \"postgres\" is server-side only — ` +\n `a provisioned (in-process/worker) reactor cannot use it. Point a ` +\n `\"remote\" backend at the switchboard that owns that database instead.`,\n );\n }\n}\n\n/** One backend → one descriptor. The protocol's featureFlags ride every\n * descriptor (they are fleet consensus, not per-backend). A remote backend\n * must carry remote.url — provision() requires it. */\nexport function backendToDescriptor(\n name: string,\n backend: ReactorBackend,\n protocol?: ReactorProtocol,\n): ProjectedDescriptor {\n const descriptor: ProjectedDescriptor = {\n kind: backend.kind ?? \"in-process\",\n name,\n };\n if (descriptor.kind === \"remote\") {\n const url = backend.remote?.url;\n if (!url) {\n throw new Error(\n `Backend \"${name}\" is kind \"remote\" but has no remote.url — ` +\n `a remote descriptor attaches to an already-running reactor by URL.`,\n );\n }\n descriptor.remote = { url };\n // remote attaches; it builds nothing, so local-build fields do not apply\n return descriptor;\n }\n if (backend.storage) {\n descriptor.storage = projectStorage(name, backend.storage);\n }\n if (backend.packages) descriptor.packages = backend.packages;\n if (protocol?.featureFlags) descriptor.featureFlags = protocol.featureFlags;\n return descriptor;\n}\n\n/** All named backends, in placement-primary-first order (the order a\n * createReactorClients step would provision them). */\nexport function backendsToDescriptors(\n reactor: ReactorConfig | undefined,\n): ProjectedDescriptor[] {\n const backends = reactor?.backends;\n if (!backends) return [];\n const names = Object.keys(backends);\n const primary = reactor.placement?.primary;\n const ordered =\n primary && names.includes(primary)\n ? [primary, ...names.filter((n) => n !== primary)]\n : names;\n return ordered.map((name) =>\n backendToDescriptor(name, backends[name], reactor.protocol),\n );\n}\n\nconst LOCAL_KINDS = new Set([\"in-process\", \"worker\", undefined]);\n\n/**\n * Structural multi-reactor (phase 4): true when the block names BOTH a local\n * backend (in-process/worker — the tab's own reactor) and a remote one. This\n * is the shape Connect's routing client serves; a lone remote backend is an\n * attach-only host (assistant/agent shape), not a routed tab.\n */\nexport function isStructuralMultiReactor(\n reactor: ReactorConfig | undefined,\n): boolean {\n const backends = reactor?.backends;\n if (!backends) return false;\n const kinds = Object.values(backends).map((b) => b.kind);\n return (\n kinds.some((k) => LOCAL_KINDS.has(k)) && kinds.some((k) => k === \"remote\")\n );\n}\n\n/** The remote backends' urls, placement order — what the routing client dials. */\nexport function remoteBackendUrls(\n reactor: ReactorConfig | undefined,\n): string[] {\n return backendsToDescriptors(reactor)\n .filter((d) => d.kind === \"remote\")\n .map((d) => d.remote?.url)\n .filter((u): u is string => typeof u === \"string\");\n}\n","/**\n * The shared `reactor` host-config block and its projections onto today's\n * Switchboard env / Connect runtime config. Phase 2 of uniform-runners: makes\n * the reactor block live through the bridge runners, BEFORE track R replaces\n * the projection with reactor-monitor's provision(). The headline is\n * single-sourced `reactor.protocol` — both projections read the same block, so\n * client and server cannot diverge, and a contradicting pre-set env fails boot.\n */\n\nexport type ReactorBackendKind = \"in-process\" | \"worker\" | \"remote\";\n\nexport interface ReactorStorageConfig {\n kind: \"idb\" | \"memory\" | \"path\" | \"postgres\";\n dataDir?: string;\n url?: string;\n}\n\nexport interface ReactorPackageConfig {\n cdnUrl?: string;\n specs?: string[];\n /** on-demand model resolution (was DYNAMIC_MODEL_LOADING). */\n dynamic?: boolean;\n}\n\nexport interface ReactorRemoteConfig {\n host?: string;\n url?: string;\n}\n\nexport interface ReactorBackend {\n kind?: ReactorBackendKind;\n storage?: ReactorStorageConfig;\n readModel?: { url?: string };\n packages?: ReactorPackageConfig;\n remote?: ReactorRemoteConfig;\n}\n\n/** Replay/admission rules every sync peer must share. */\nexport interface ReactorProtocol {\n featureFlags?: {\n documentDecisions?: boolean;\n authEnforcement?: boolean;\n authGroups?: boolean;\n authConditions?: boolean;\n };\n createSignaturePolicy?: \"legacy\" | \"v2-required\";\n unsupportedStoredDocuments?: \"refuse\" | \"read-only\";\n}\n\nexport interface ReactorConfig {\n backends?: Record<string, ReactorBackend>;\n placement?: {\n primary?: string;\n default?: Record<string, unknown>;\n };\n workflows?: boolean;\n protocol?: ReactorProtocol;\n}\n\n/** The single primary backend for phase-2 projection (multi-backend routing is\n * track R). Prefers placement.primary, else \"main\"/\"local\", else the first. */\nexport function primaryBackend(\n reactor: ReactorConfig | undefined,\n): ReactorBackend | undefined {\n const backends = reactor?.backends;\n if (!backends) return undefined;\n const names = Object.keys(backends);\n if (names.length === 0) return undefined;\n const pick =\n reactor.placement?.primary ??\n (names.includes(\"main\")\n ? \"main\"\n : names.includes(\"local\")\n ? \"local\"\n : names[0]);\n return backends[pick];\n}\n\nconst FLAG_ENV: Record<\n keyof NonNullable<ReactorProtocol[\"featureFlags\"]>,\n string\n> = {\n documentDecisions: \"REACTOR_DOCUMENT_DECISIONS\",\n authEnforcement: \"REACTOR_AUTH_ENFORCEMENT\",\n authGroups: \"REACTOR_AUTH_GROUPS\",\n authConditions: \"REACTOR_AUTH_CONDITIONS\",\n};\n\n/** The env vars a protocol block maps onto, with their string values. Only\n * keys the block actually sets appear. */\nexport function protocolEnv(\n protocol: ReactorProtocol | undefined,\n): Record<string, string> {\n const env: Record<string, string> = {};\n if (!protocol) return env;\n for (const [key, varName] of Object.entries(FLAG_ENV)) {\n const value = protocol.featureFlags?.[key as keyof typeof FLAG_ENV];\n if (value !== undefined) env[varName] = value ? \"true\" : \"false\";\n }\n if (protocol.createSignaturePolicy !== undefined) {\n env.CREATE_SIGNATURE_POLICY = protocol.createSignaturePolicy;\n }\n if (protocol.unsupportedStoredDocuments !== undefined) {\n env.REACTOR_UNSUPPORTED_STORED_DOCUMENTS =\n protocol.unsupportedStoredDocuments;\n }\n return env;\n}\n\nexport interface SwitchboardReactorProjection {\n /** Env the switchboard server reads at boot. Only keys the block sets. */\n env: Record<string, string>;\n /** Options passed to startSwitchboard (DB path). */\n options: { dbPath?: string };\n}\n\n/** Project the reactor block onto the switchboard's env + options. */\nexport function projectReactorToSwitchboard(\n reactor: ReactorConfig | undefined,\n): SwitchboardReactorProjection {\n const env = protocolEnv(reactor?.protocol);\n const backend = primaryBackend(reactor);\n const options: { dbPath?: string } = {};\n\n if (backend?.storage) {\n const s = backend.storage;\n const dbUrl = s.kind === \"postgres\" ? s.url : s.dataDir;\n if (dbUrl) env.PH_REACTOR_DATABASE_URL = dbUrl;\n }\n if (backend?.readModel?.url) options.dbPath = backend.readModel.url;\n if (backend?.packages?.dynamic) env.DYNAMIC_MODEL_LOADING = \"true\";\n if (reactor?.workflows !== undefined) {\n env.PH_WORKFLOWS_ENABLED = reactor.workflows ? \"1\" : \"0\";\n }\n return { env, options };\n}\n\nexport interface ConnectReactorProjection {\n /** Patch merged into the connect runtime config (connect.*). */\n connect: {\n reactor?: ReactorProtocol;\n instance?: { reactorWorker?: boolean };\n app?: { workflowsEnabled?: boolean };\n };\n}\n\n/** Project the reactor block onto the Connect runtime config: protocol →\n * connect.reactor (same shape), backend kind → instance.reactorWorker,\n * workflows → app.workflowsEnabled. */\nexport function projectReactorToConnect(\n reactor: ReactorConfig | undefined,\n): ConnectReactorProjection {\n const connect: ConnectReactorProjection[\"connect\"] = {};\n if (reactor?.protocol) connect.reactor = reactor.protocol;\n const backend = primaryBackend(reactor);\n if (backend?.kind !== undefined) {\n connect.instance = { reactorWorker: backend.kind === \"worker\" };\n }\n if (reactor?.workflows !== undefined) {\n connect.app = { workflowsEnabled: reactor.workflows };\n }\n return { connect };\n}\n\n/**\n * The enforcement teeth of single-sourcing: if a pre-set env var CONTRADICTS\n * the host's protocol block, fail loudly naming the var, the host value, and\n * the env value. An env var that merely matches, or is unset, is fine (phase-2\n * transition keeps an operator's explicit env as an escape hatch unless it\n * disagrees with the protocol — see the WBS precedence note).\n */\nexport function assertProtocolConsistency(\n protocol: ReactorProtocol | undefined,\n env: Record<string, string | undefined>,\n hostFile = \"the host file\",\n): void {\n if (!protocol) return;\n const expected = protocolEnv(protocol);\n for (const [varName, hostValue] of Object.entries(expected)) {\n const envValue = env[varName];\n if (envValue !== undefined && envValue !== hostValue) {\n throw new Error(\n `reactor.protocol conflict: ${varName} is \"${envValue}\" in the environment ` +\n `but \"${hostValue}\" in ${hostFile}. These are fleet-consensus settings — ` +\n `a mismatch would diverge replay. Remove the env override or align the host.`,\n );\n }\n }\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { c as RunnerContext, g as HostDefinition, i as RunCompoundResult } from "../compound-9--OujO-.mjs";
|
|
2
|
+
//#region src/runners/compound.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The GENERIC compound runner module (phase 3): supervises the members a
|
|
5
|
+
* compound host declares via the runCompound engine. Verb semantics: `run`
|
|
6
|
+
* starts members at `runner.defaultVerb ?? "run"`; `dev`/`build`/`serve`
|
|
7
|
+
* start members at that same verb — an explicit `ph run <host> <verb>` beats
|
|
8
|
+
* defaultVerb structurally. A member whose runner lacks the forwarded verb
|
|
9
|
+
* fails the compound loudly with that member's verb list (never skipped).
|
|
10
|
+
*
|
|
11
|
+
* Vetra does NOT run through this yet (phase-1 scope decision: its drive
|
|
12
|
+
* provisioning arrives as plugin contributions); the first real consumer is
|
|
13
|
+
* the desktop-shaped host (switchboard `run` + connect `serve`).
|
|
14
|
+
*/
|
|
15
|
+
export declare const kind = "compound";
|
|
16
|
+
export declare const hostSchema: import("zod").ZodObject<{
|
|
17
|
+
name: import("zod").ZodString;
|
|
18
|
+
runner: import("zod").ZodObject<{
|
|
19
|
+
module: import("zod").ZodString;
|
|
20
|
+
defaultVerb: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
|
+
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
22
|
+
}, import("zod/v4/core").$loose>;
|
|
23
|
+
children: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
24
|
+
host: import("zod").ZodString;
|
|
25
|
+
plugins: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
26
|
+
runner: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
27
|
+
config: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
28
|
+
reactor: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
29
|
+
backends: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
30
|
+
kind: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
31
|
+
"in-process": "in-process";
|
|
32
|
+
remote: "remote";
|
|
33
|
+
worker: "worker";
|
|
34
|
+
}>>;
|
|
35
|
+
storage: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
36
|
+
kind: import("zod").ZodEnum<{
|
|
37
|
+
idb: "idb";
|
|
38
|
+
memory: "memory";
|
|
39
|
+
path: "path";
|
|
40
|
+
postgres: "postgres";
|
|
41
|
+
}>;
|
|
42
|
+
dataDir: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
}, import("zod/v4/core").$strict>>;
|
|
45
|
+
readModel: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
46
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
|
+
}, import("zod/v4/core").$strict>>;
|
|
48
|
+
packages: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
49
|
+
cdnUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
specs: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
51
|
+
dynamic: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
52
|
+
}, import("zod/v4/core").$strict>>;
|
|
53
|
+
remote: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
54
|
+
host: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
+
}, import("zod/v4/core").$strict>>;
|
|
57
|
+
}, import("zod/v4/core").$strict>>>;
|
|
58
|
+
placement: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
59
|
+
primary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
default: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
61
|
+
}, import("zod/v4/core").$strict>>;
|
|
62
|
+
workflows: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
63
|
+
protocol: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
64
|
+
featureFlags: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
65
|
+
documentDecisions: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
66
|
+
authEnforcement: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
67
|
+
authGroups: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
68
|
+
authConditions: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
69
|
+
}, import("zod/v4/core").$strict>>;
|
|
70
|
+
createSignaturePolicy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
71
|
+
legacy: "legacy";
|
|
72
|
+
"v2-required": "v2-required";
|
|
73
|
+
}>>;
|
|
74
|
+
unsupportedStoredDocuments: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
75
|
+
"read-only": "read-only";
|
|
76
|
+
refuse: "refuse";
|
|
77
|
+
}>>;
|
|
78
|
+
}, import("zod/v4/core").$strict>>;
|
|
79
|
+
}, import("zod/v4/core").$strict>>;
|
|
80
|
+
}, import("zod/v4/core").$strict>>;
|
|
81
|
+
config: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
82
|
+
profile: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
83
|
+
appId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
84
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
|
+
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
|
+
}, import("zod/v4/core").$strict>>;
|
|
88
|
+
}, import("zod/v4/core").$loose>;
|
|
89
|
+
export declare function run(host: HostDefinition, ctx: RunnerContext): Promise<RunCompoundResult>;
|
|
90
|
+
export declare function dev(host: HostDefinition, ctx: RunnerContext): Promise<RunCompoundResult>;
|
|
91
|
+
export declare function build(host: HostDefinition, ctx: RunnerContext): Promise<RunCompoundResult>;
|
|
92
|
+
export declare function serve(host: HostDefinition, ctx: RunnerContext): Promise<RunCompoundResult>;
|
|
93
|
+
//#endregion
|
|
94
|
+
export {};
|
|
95
|
+
//# sourceMappingURL=compound.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compound.d.mts","names":[],"sources":["../../src/runners/compound.ts"],"mappings":";;;;;;;;;;;;;;qBAoBa;qBAEA,0BAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAqB;wBA0BtB,IACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;wBAKW,IACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;wBAIW,MACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ;wBAIW,MACpB,MAAM,gBACN,KAAK,gBACJ,QAAQ"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { c as runCompound, n as compoundHostSchema } from "../host-schemas-B0-Vk8vP.mjs";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
//#region src/runners/compound.ts
|
|
5
|
+
/**
|
|
6
|
+
* The GENERIC compound runner module (phase 3): supervises the members a
|
|
7
|
+
* compound host declares via the runCompound engine. Verb semantics: `run`
|
|
8
|
+
* starts members at `runner.defaultVerb ?? "run"`; `dev`/`build`/`serve`
|
|
9
|
+
* start members at that same verb — an explicit `ph run <host> <verb>` beats
|
|
10
|
+
* defaultVerb structurally. A member whose runner lacks the forwarded verb
|
|
11
|
+
* fails the compound loudly with that member's verb list (never skipped).
|
|
12
|
+
*
|
|
13
|
+
* Vetra does NOT run through this yet (phase-1 scope decision: its drive
|
|
14
|
+
* provisioning arrives as plugin contributions); the first real consumer is
|
|
15
|
+
* the desktop-shaped host (switchboard `run` + connect `serve`).
|
|
16
|
+
*/
|
|
17
|
+
const kind = "compound";
|
|
18
|
+
const hostSchema = compoundHostSchema;
|
|
19
|
+
function projectName(projectRoot) {
|
|
20
|
+
try {
|
|
21
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(projectRoot, "package.json"), "utf8"));
|
|
22
|
+
if (pkg.name) return pkg.name;
|
|
23
|
+
} catch {}
|
|
24
|
+
return path.basename(projectRoot);
|
|
25
|
+
}
|
|
26
|
+
async function startAt(host, ctx, memberVerb) {
|
|
27
|
+
return runCompound(host, {
|
|
28
|
+
...ctx,
|
|
29
|
+
verb: memberVerb
|
|
30
|
+
}, { projectName: projectName(ctx.projectRoot) });
|
|
31
|
+
}
|
|
32
|
+
async function run(host, ctx) {
|
|
33
|
+
return startAt(host, ctx, host.runner.defaultVerb ?? "run");
|
|
34
|
+
}
|
|
35
|
+
async function dev(host, ctx) {
|
|
36
|
+
return startAt(host, ctx, "dev");
|
|
37
|
+
}
|
|
38
|
+
async function build(host, ctx) {
|
|
39
|
+
return startAt(host, ctx, "build");
|
|
40
|
+
}
|
|
41
|
+
async function serve(host, ctx) {
|
|
42
|
+
return startAt(host, ctx, "serve");
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { build, dev, hostSchema, kind, run, serve };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=compound.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compound.mjs","names":[],"sources":["../../src/runners/compound.ts"],"sourcesContent":["import fs from \"node:fs\";\nimport path from \"node:path\";\nimport { compoundHostSchema } from \"../host-schemas.js\";\nimport type { HostDefinition } from \"../host-loader.js\";\nimport { runCompound, type RunCompoundResult } from \"../compound.js\";\nimport type { RunnerContext } from \"../runner-resolver.js\";\n\n/**\n * The GENERIC compound runner module (phase 3): supervises the members a\n * compound host declares via the runCompound engine. Verb semantics: `run`\n * starts members at `runner.defaultVerb ?? \"run\"`; `dev`/`build`/`serve`\n * start members at that same verb — an explicit `ph run <host> <verb>` beats\n * defaultVerb structurally. A member whose runner lacks the forwarded verb\n * fails the compound loudly with that member's verb list (never skipped).\n *\n * Vetra does NOT run through this yet (phase-1 scope decision: its drive\n * provisioning arrives as plugin contributions); the first real consumer is\n * the desktop-shaped host (switchboard `run` + connect `serve`).\n */\n\nexport const kind = \"compound\";\n\nexport const hostSchema = compoundHostSchema;\n\nfunction projectName(projectRoot: string): string {\n try {\n const pkg = JSON.parse(\n fs.readFileSync(path.join(projectRoot, \"package.json\"), \"utf8\"),\n ) as { name?: string };\n if (pkg.name) return pkg.name;\n } catch {\n // fall through\n }\n return path.basename(projectRoot);\n}\n\nasync function startAt(\n host: HostDefinition,\n ctx: RunnerContext,\n memberVerb: string,\n): Promise<RunCompoundResult> {\n return runCompound(\n host,\n { ...ctx, verb: memberVerb },\n { projectName: projectName(ctx.projectRoot) },\n );\n}\n\nexport async function run(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n const defaultVerb = (host.runner.defaultVerb as string | undefined) ?? \"run\";\n return startAt(host, ctx, defaultVerb);\n}\n\nexport async function dev(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n return startAt(host, ctx, \"dev\");\n}\n\nexport async function build(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n return startAt(host, ctx, \"build\");\n}\n\nexport async function serve(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<RunCompoundResult> {\n return startAt(host, ctx, \"serve\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAoBA,MAAa,OAAO;AAEpB,MAAa,aAAa;AAE1B,SAAS,YAAY,aAA6B;CAChD,IAAI;EACF,MAAM,MAAM,KAAK,MACf,GAAG,aAAa,KAAK,KAAK,aAAa,cAAc,GAAG,MAAM,CAChE;EACA,IAAI,IAAI,MAAM,OAAO,IAAI;CAC3B,QAAQ,CAER;CACA,OAAO,KAAK,SAAS,WAAW;AAClC;AAEA,eAAe,QACb,MACA,KACA,YAC4B;CAC5B,OAAO,YACL,MACA;EAAE,GAAG;EAAK,MAAM;CAAW,GAC3B,EAAE,aAAa,YAAY,IAAI,WAAW,EAAE,CAC9C;AACF;AAEA,eAAsB,IACpB,MACA,KAC4B;CAE5B,OAAO,QAAQ,MAAM,KADA,KAAK,OAAO,eAAsC,KAClC;AACvC;AAEA,eAAsB,IACpB,MACA,KAC4B;CAC5B,OAAO,QAAQ,MAAM,KAAK,KAAK;AACjC;AAEA,eAAsB,MACpB,MACA,KAC4B;CAC5B,OAAO,QAAQ,MAAM,KAAK,OAAO;AACnC;AAEA,eAAsB,MACpB,MACA,KAC4B;CAC5B,OAAO,QAAQ,MAAM,KAAK,OAAO;AACnC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@powerhousedao/host-core",
|
|
3
|
+
"version": "6.2.3-dev.55",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "uniform-runners host framework: host.js loading, runner resolution, and the generic compound runner. EXPERIMENTAL — private while under development; published when the ph init scaffold references it (see docs/plans/2026-10-13-uniform-runners.md).",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"license": "AGPL-3.0-only",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/powerhouse-inc/powerhouse",
|
|
14
|
+
"directory": "packages/host-core"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"source": "./src/index.ts",
|
|
22
|
+
"types": "./dist/index.d.mts",
|
|
23
|
+
"import": "./dist/index.mjs",
|
|
24
|
+
"default": "./dist/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./runners/compound": {
|
|
27
|
+
"source": "./src/runners/compound.ts",
|
|
28
|
+
"types": "./dist/runners/compound.d.mts",
|
|
29
|
+
"import": "./dist/runners/compound.mjs",
|
|
30
|
+
"default": "./dist/runners/compound.mjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@powerhousedao/shared": "6.2.3-dev.55",
|
|
35
|
+
"zod": "4.3.6"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"tsdown": "0.23.0",
|
|
39
|
+
"vitest": "5.0.3",
|
|
40
|
+
"@powerhousedao/reactor-monitor": "6.2.3-dev.55"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"tsc": "tsc",
|
|
44
|
+
"lint": "cd ../.. && oxlint packages/host-core",
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"test": "vitest --run",
|
|
47
|
+
"emit-schemas": "tsx scripts/emit-schemas.ts"
|
|
48
|
+
}
|
|
49
|
+
}
|