@powerhousedao/host-core 6.2.3-dev.77 → 6.2.3-dev.79

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-schemas-B6DsXA0Y.d.mts","names":[],"sources":["../src/host-schemas.ts"],"mappings":";;;;;;;;;;;;;;cAuBa,eAAa,EAAA;;;;;GAKxB,EAAA,KAAA;cAEW,uBAAqB,EAAA;;;;;;;;;;;;;;;GAWhC,EAAA,KAAA;cAEW,kBAAgB,EAAA;;;;KACjB,aAAa,EAAE,aAAa;cAE3B,0BAAwB,EAAA;;;;;;;;cAiBxB,sBAAoB,EAAA;;;;GAY/B,EAAA,KAAA;;;;iBAKc,iBACd;EAAQ,UAAU;EAAyB,SAAS;GACpD,KAAK,EAAE;;;UAyBC;EACR,MAAM,UAAU,EAAE,SAAS,QAAQ,MAAM,gBAAgB;EACzD,MAAM,UAAU,EAAE,SAAS,QAAQ,MAAM,gBAAgB,GAAG;;;;;;iBAerD,iBAAiB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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KAC5B,eAAe,EAAE,aAAa;KAC9B,iBAAiB,EAAE,aAAa;;;KAIhC,mBAAmB,EAAE,aACxB,gBAAgB;EAEvB;;KAEU,oBAAoB,EAAE,aACzB,gBAAgB;EAEvB;;KAEU,iBAAiB,mBAAmB;;KAGpC,cAAc,EAAE,cAAc;KAC9B,eAAe,EAAE,cAAc;;;iBAQ3B,mBACd,cACA,QAAQ,EAAE,UACT;;;iBASa,sBAAsB"}
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as ReactorHost, $t as mapTokenSchema, A as resolveRunnerModule, At as ItemToken, B as outputSitesOf, Bt as Token, C as ValidateHostOptions, Ct as reactorSchema, D as kindShapeIssues, Dt as ArrayMapToken, E as isSchemaLike, Et as runnerKindSchema, F as OutputsSchemaLookup, Ft as RecordMapToken, G as CompoundHostInput, Gt as concatTokenSchema, H as schemaAtPath, Ht as TokenKey, I as checkOutputPaths, It as RefFn, J as HostSchemas, Jt as findToken, K as CompoundWiring, Kt as envTokenSchema, L as checkTokenSites, Lt as TOKEN_ESCAPE_KEY, M as validateHost, Mt as MapToken, N as DeclaredIssue, Nt as OutputPath, O as knownVerbIssues, Ot as ConcatToken, P as OutputRef, Pt as OutputToken, Q as ReactorConfig, Qt as keyTokenSchema, R as envSitesOf, Rt as TOKEN_KEYS, S as SchemaIssue, St as reactorProtocolSchema, T as hostSchemaIssues, Tt as runnerBaseSchema, U as ChildWrapper, Ut as TokenMode, V as refKey, Vt as TokenFor, W as CompoundHost, Wt as TokenableSchema, X as ReactorBackend, Xt as isToken, Y as Profile, Yt as forbidRef, Z as ReactorBackendKind, Zt as itemTokenSchema, _ as RunnerContext, _t as makeHostSchemas, a as RunnerHandleData, at as RunnerBase, b as RunnerModule, bt as reactorBackendSchema, c as toStartedHandle, ct as childrenSchema, d as CONNECT_RUNNER, dt as declaredGenericCompoundHostSchema, en as outputTokenSchema, et as ReactorHostInput, f as DeclaredHostOptions, ft as declaredHostSchemas, g as ONE_SHOT_VERBS, gt as genericCompoundHostSchema, h as HostSchemaLike, ht as emittedHostSchemas, i as RunnerHandle, in as tokenable, it as ReactorStorageConfig, j as validateDeclaredHost, jt as KeyToken, k as listVerbs, kt as EnvToken, l as BootCheckContext, lt as compoundHostSchema, m as HostSchemaIssues, mt as emitHostJsonSchema, n as RunCompoundResult, nn as tokenKeyOf, nt as ReactorProtocol, o as StartedHandle, ot as RunnerKind, p as HostSchemaIssue, pt as defineHostSchemas, q as HostDefinition, qt as envTokenable, r as runCompound, rn as tokenSchema, rt as ReactorRemoteConfig, s as runnerHandleSchema, st as childWrapperSchema, t as RunCompoundOptions, tn as ref, tt as ReactorPackageConfig, u as BootIssue, ut as compoundWiringSchema, v as RunnerError, vt as profileSchema, w as getVerb, wt as refineStartOrder, x as RunnerVerb, xt as reactorHostSchema, y as RunnerIssue, yt as reactorBackendKindSchema, z as outputRefsOf, zt as Template } from "./compound-DlaK_sWa.mjs";
1
+ import { $ as ReactorBackendKind, $t as itemTokenSchema, A as knownVerbIssues, At as ConcatToken, B as envSitesOf, Bt as TOKEN_KEYS, C as RunnerVerb, Ct as reactorHostSchema, D as hostSchemaIssues, Dt as runnerBaseSchema, E as getVerb, Et as refineStartOrder, F as DeclaredIssue, Ft as OutputPath, G as ChildWrapper, Gt as TokenMode, H as outputSitesOf, Ht as Token, I as OutputRef, It as OutputToken, J as CompoundWiring, Jt as envTokenSchema, K as CompoundHost, Kt as TokenableSchema, L as OutputsSchemaLookup, Lt as RecordMapToken, M as resolveRunnerModule, Mt as ItemToken, N as validateDeclaredHost, Nt as KeyToken, O as isSchemaLike, Ot as runnerKindSchema, P as validateHost, Pt as MapToken, Q as ReactorBackend, Qt as isToken, R as checkOutputPaths, Rt as RefFn, S as RunnerModule, St as reactorBackendSchema, T as ValidateHostOptions, Tt as reactorSchema, U as refKey, Ut as TokenFor, V as outputRefsOf, Vt as Template, W as schemaAtPath, Wt as TokenKey, X as HostSchemas, Xt as findToken, Y as HostDefinition, Yt as envTokenable, Z as Profile, Zt as forbidRef, _ as HostSchemaLike, _t as emittedHostSchemas, a as RunnerHandleData, an as tokenSchema, at as ReactorRemoteConfig, b as RunnerError, bt as profileSchema, c as toStartedHandle, ct as RunnerKind, d as BootCheckContext, dt as compoundHostSchema, en as keyTokenSchema, et as ReactorConfig, f as BootIssue, ft as compoundWiringSchema, g as HostSchemaIssues, gt as emitHostJsonSchema, h as HostSchemaIssue, ht as defineHostSchemas, i as RunnerHandle, in as tokenKeyOf, it as ReactorProtocol, j as listVerbs, jt as EnvToken, k as kindShapeIssues, kt as ArrayMapToken, l as MemberDraft, lt as childWrapperSchema, m as DeclaredHostOptions, mt as declaredHostSchemas, n as RunCompoundResult, nn as outputTokenSchema, nt as ReactorHostInput, o as StartedHandle, on as tokenable, ot as ReactorStorageConfig, p as CONNECT_RUNNER, pt as declaredGenericCompoundHostSchema, q as CompoundHostInput, qt as concatTokenSchema, r as runCompound, rn as ref, rt as ReactorPackageConfig, s as runnerHandleSchema, st as RunnerBase, t as RunCompoundOptions, tn as mapTokenSchema, tt as ReactorHost, u as applyChildWrapper, ut as childrenSchema, v as ONE_SHOT_VERBS, vt as genericCompoundHostSchema, w as SchemaIssue, wt as reactorProtocolSchema, x as RunnerIssue, xt as reactorBackendKindSchema, y as RunnerContext, yt as makeHostSchemas, z as checkTokenSites, zt as TOKEN_ESCAPE_KEY } from "./compound-DXcOFNcC.mjs";
2
2
  import { z } from "zod";
3
3
  import { PHConnectDefaultDrive, PHConnectRuntimeConfig } from "@powerhousedao/shared/clis";
4
4
  //#region src/host-loader.d.ts
@@ -389,6 +389,25 @@ interface CheckHostResult {
389
389
  /** The `ph run` pipeline up to the verb, collecting every issue; starts nothing. */
390
390
  export declare function checkHost(name: string, options: CheckHostOptions): Promise<CheckHostResult>;
391
391
  //#endregion
392
+ //#region src/host-export-schema.d.ts
393
+ /** `ph host export`: a declared host plus its members, keyed by folder. */
394
+ export declare const hostExportSchema: z.ZodObject<{
395
+ format: z.ZodLiteral<"ph-host-export">;
396
+ version: z.ZodLiteral<1>;
397
+ project: z.ZodObject<{
398
+ name: z.ZodString;
399
+ root: z.ZodString;
400
+ }, z.core.$strict>;
401
+ name: z.ZodString;
402
+ host: z.ZodCustom<HostDefinition, HostDefinition>;
403
+ members: z.ZodRecord<z.ZodString, z.ZodCustom<HostDefinition, HostDefinition>>;
404
+ }, z.core.$strict>;
405
+ type HostExport = z.input<typeof hostExportSchema>;
406
+ //#endregion
407
+ //#region src/host-export.d.ts
408
+ /** A host as declared and every member it reaches, raw `loadHost` bodies. */
409
+ export declare function exportHost(projectRoot: string, name: string): Promise<HostExport>;
410
+ //#endregion
392
411
  //#region src/placeholders.d.ts
393
412
  /**
394
413
  * `${userData}` resolution for host files (desktop shape): storage paths in a
@@ -782,16 +801,28 @@ export declare function primaryBackend(reactor: ReactorConfig | undefined): Reac
782
801
  /** The env vars a protocol block maps onto, with their string values. Only
783
802
  * keys the block actually sets appear. */
784
803
  export declare function protocolEnv(protocol: ReactorProtocol | undefined): Record<string, string>;
785
- interface SwitchboardReactorProjection {
786
- /** Env the switchboard server reads at boot. Only keys the block sets. */
787
- env: Record<string, string>;
788
- /** Options passed to startSwitchboard (DB path). */
789
- options: {
790
- dbPath?: string;
804
+ /** The switchboard config layer a reactor block maps to (the shape of
805
+ * `@powerhousedao/switchboard/config`'s input). Only keys the block sets. */
806
+ interface SwitchboardReactorLayer {
807
+ storage?: {
808
+ reactor?: {
809
+ url: string;
810
+ };
811
+ readModel?: {
812
+ url: string;
813
+ };
814
+ };
815
+ protocol?: ReactorProtocol;
816
+ packages?: {
817
+ dynamic: true;
818
+ };
819
+ features?: {
820
+ workflows: boolean;
791
821
  };
792
822
  }
793
- /** Project the reactor block onto the switchboard's env + options. */
794
- export declare function projectReactorToSwitchboard(reactor: ReactorConfig | undefined): SwitchboardReactorProjection;
823
+ /** The reactor block as a switchboard config layer. The reactor store and the
824
+ * read model are separate fields: `readModel.url` never moves the reactor. */
825
+ export declare function reactorBlockToSwitchboardConfig(reactor: ReactorConfig | undefined): SwitchboardReactorLayer;
795
826
  /** The four reactor-client shapes a Connect host can select (mirrors the
796
827
  * shared PHReactorClientMode; kept local to avoid an import cycle). */
797
828
  type ReactorClientMode = "in-process" | "worker" | "remote" | "router";
@@ -1197,6 +1228,6 @@ interface MemberInput extends Omit<ExpectHostInput, "members" | "plan"> {
1197
1228
  */
1198
1229
  export declare function expectHost(input: ExpectHostInput): HostExpectation;
1199
1230
  //#endregion
1200
- export { type ArrayMapToken, type BootCheckContext, type BootIssue, type BuiltinEnv, CONNECT_RUNNER, type CheckDeferred, type CheckHostOptions, type CheckHostResult, type CheckStage, type ChildWrapper, type CompoundHost, type CompoundHostInput, type CompoundPlan, type CompoundWiring, type ConcatToken, type ConnectPluginSlices, type ConnectReactorProjection, type ConsumedOutput, type ContributedDrive, type ContributedDriveInput, type ContributionSource, type Contributions, type DeadConfigWarning, type DeclaredHostOptions, type DeclaredIssue, type DeferredResolution, type DeferredToken, type DriveDeclaration, type DrivePlanEntry, type DriveProjectionInput, type DriveSeederClient, type EnvToken, type ExpectHostInput, type ExpectedBackend, type ExpectedDrive, type HostDefinition, type HostExit, type HostExpectation, type HostImports, type HostIssue, type HostOutputsDescription, type HostPlugin, type HostPluginModule, type HostSchemaIssue, type HostSchemaIssues, type HostSchemaLike, type HostSchemas, type HostsFolderStatus, type ItemToken, type KeyToken, type LoadedHost, type MapToken, type MemberExpectation, type MemberInput, type MergedContribution, type NormalizedPluginEntry, ONE_SHOT_VERBS, type Observe, type OutputLookup, type OutputPath, type OutputRef, type OutputSource, type OutputToken, type OutputsSchemaLookup, type OwnedConfigSlice, type PHHost, type PHHostOutputs, type PlanEdge, type PlanMember, type PluginContributionsPlan, type PluginEntry, type PluginEntryData, type ProducerInfo, type ProducerMap, type Profile, type ProjectedDescriptor, type ProjectedStorage, type Provide, type ReactorBackend, type ReactorBackendKind, type ReactorClientMode, type ReactorConfig, type ReactorHost, type ReactorHostInput, type ReactorPackageConfig, type ReactorProtocol, type ReactorRemoteConfig, type ReactorStorageConfig, type RecordMapToken, type RefFn, type RemovedForm, type ResolveOptions, type ResolveSources, type ResolvedDrive, type ResolvedPlugin, type RunCompoundOptions, type RunCompoundResult, type RunProbe, type RunRecord, type RunRecordMember, type RunnerBase, type RunnerContext, RunnerError, type RunnerHandle, type RunnerHandleData, type RunnerIssue, type RunnerKind, type RunnerModule, type RunnerVerb, type SchemaIssue, type SeedResult, type SelfMembers, type SpawnHostOptions, type SpawnHostPhase, type SpawnedHost, type StartedHandle, type SwitchboardReactorProjection, TOKEN_ESCAPE_KEY, TOKEN_KEYS, type Template, type Token, type TokenFor, type TokenKey, type TokenMode, type TokenPosition, type TokenSite, type TokenableSchema, type Transform, type ValidateHostOptions, checkOutputPaths, checkTokenSites, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, emitHostJsonSchema, emittedHostSchemas, envSitesOf, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, getVerb, hostSchemaIssues, isSchemaLike, isToken, itemTokenSchema, keyTokenSchema, kindShapeIssues, knownVerbIssues, listVerbs, makeHostSchemas, mapTokenSchema, outputRefsOf, outputSitesOf, outputTokenSchema, profileSchema, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refKey, refineStartOrder, resolveRunnerModule, runCompound, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, schemaAtPath, toStartedHandle, tokenKeyOf, tokenSchema, tokenable, validateDeclaredHost, validateHost };
1231
+ export { type ArrayMapToken, type BootCheckContext, type BootIssue, type BuiltinEnv, CONNECT_RUNNER, type CheckDeferred, type CheckHostOptions, type CheckHostResult, type CheckStage, type ChildWrapper, type CompoundHost, type CompoundHostInput, type CompoundPlan, type CompoundWiring, type ConcatToken, type ConnectPluginSlices, type ConnectReactorProjection, type ConsumedOutput, type ContributedDrive, type ContributedDriveInput, type ContributionSource, type Contributions, type DeadConfigWarning, type DeclaredHostOptions, type DeclaredIssue, type DeferredResolution, type DeferredToken, type DriveDeclaration, type DrivePlanEntry, type DriveProjectionInput, type DriveSeederClient, type EnvToken, type ExpectHostInput, type ExpectedBackend, type ExpectedDrive, type HostDefinition, type HostExit, type HostExpectation, type HostExport, type HostImports, type HostIssue, type HostOutputsDescription, type HostPlugin, type HostPluginModule, type HostSchemaIssue, type HostSchemaIssues, type HostSchemaLike, type HostSchemas, type HostsFolderStatus, type ItemToken, type KeyToken, type LoadedHost, type MapToken, type MemberDraft, type MemberExpectation, type MemberInput, type MergedContribution, type NormalizedPluginEntry, ONE_SHOT_VERBS, type Observe, type OutputLookup, type OutputPath, type OutputRef, type OutputSource, type OutputToken, type OutputsSchemaLookup, type OwnedConfigSlice, type PHHost, type PHHostOutputs, type PlanEdge, type PlanMember, type PluginContributionsPlan, type PluginEntry, type PluginEntryData, type ProducerInfo, type ProducerMap, type Profile, type ProjectedDescriptor, type ProjectedStorage, type Provide, type ReactorBackend, type ReactorBackendKind, type ReactorClientMode, type ReactorConfig, type ReactorHost, type ReactorHostInput, type ReactorPackageConfig, type ReactorProtocol, type ReactorRemoteConfig, type ReactorStorageConfig, type RecordMapToken, type RefFn, type RemovedForm, type ResolveOptions, type ResolveSources, type ResolvedDrive, type ResolvedPlugin, type RunCompoundOptions, type RunCompoundResult, type RunProbe, type RunRecord, type RunRecordMember, type RunnerBase, type RunnerContext, RunnerError, type RunnerHandle, type RunnerHandleData, type RunnerIssue, type RunnerKind, type RunnerModule, type RunnerVerb, type SchemaIssue, type SeedResult, type SelfMembers, type SpawnHostOptions, type SpawnHostPhase, type SpawnedHost, type StartedHandle, type SwitchboardReactorLayer, TOKEN_ESCAPE_KEY, TOKEN_KEYS, type Template, type Token, type TokenFor, type TokenKey, type TokenMode, type TokenPosition, type TokenSite, type TokenableSchema, type Transform, type ValidateHostOptions, applyChildWrapper, checkOutputPaths, checkTokenSites, childWrapperSchema, childrenSchema, compoundHostSchema, compoundWiringSchema, concatTokenSchema, declaredGenericCompoundHostSchema, declaredHostSchemas, defineHostSchemas, emitHostJsonSchema, emittedHostSchemas, envSitesOf, envTokenSchema, envTokenable, findToken, forbidRef, genericCompoundHostSchema, getVerb, hostSchemaIssues, isSchemaLike, isToken, itemTokenSchema, keyTokenSchema, kindShapeIssues, knownVerbIssues, listVerbs, makeHostSchemas, mapTokenSchema, outputRefsOf, outputSitesOf, outputTokenSchema, profileSchema, reactorBackendKindSchema, reactorBackendSchema, reactorHostSchema, reactorProtocolSchema, reactorSchema, ref, refKey, refineStartOrder, resolveRunnerModule, runCompound, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, schemaAtPath, toStartedHandle, tokenKeyOf, tokenSchema, tokenable, validateDeclaredHost, validateHost };
1201
1232
  export {};
1202
1233
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/host-loader.ts","../src/run-record-schema.ts","../src/run-record.ts","../src/spawn-host.ts","../src/host-issues.ts","../src/env-substitution.ts","../src/resolve/resolve.ts","../src/check-host.ts","../src/placeholders.ts","../src/host-types.ts","../src/plugins.ts","../src/plugins-resolve.ts","../src/drive-schema.ts","../src/drives.ts","../src/reactor-config.ts","../src/backend-projection.ts","../src/connect-projection.ts","../src/resolve/plan.ts","../src/resolve/removed-forms.ts","../src/resolve/sources.ts","../src/resolve/walk.ts","../src/resolve/node.ts","../src/expect-host.ts"],"mappings":";;;;qBAiCa,sBAAsB;EACjC,YAAY,iBAAiB;;KAMnB;EACN;;EACA;EAAe;;EACf;EAAiB;EAAa;;;;;wBAKpB,iBAAiB,sBAAsB;;qBAwB1C;;;;wBAsGG,cAAc;;UA8Bb;;EAEf;;EAEA;;;;;;;;wBASc,gBAAgB,mBAAmB,eAAe;;;wBAoClD,gBAAgB,mBAAmB;;;wBAMnC,gBAAgB,mBAAmB;;;;;wBAoBnC,oBACd,kBACA;;;wBA0Cc,mBACd,gBACA;UA8Be;EAC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AiB;;;wBAcH,WAAW;;;;;wBAmBX,kBAAkB,iBAAiB;;wBA+DnC,cAAc;;;wBAuDd,aAAa,GAAG,OAAO,IAAI;;;wBAe3B,cAAc,GAAG,OAAO,IAAI;;;;;;;;;UCpM3B;;EAEf;;EAEA;EACA;EACA,QAAQ;;;KAIE,cAAc,oBAAoB;EAAiB;;;wBAGzC,cACpB,qBACA,eAAe,cACd,QAAQ;;wBAuBK,oBACd,QAAQ,cACR,mBACA,gBACC;;wBAWa,uBACd,WAAW,eACT,KAAK,cAAc;;;;;;;;;wBAsBP,sBACd,qBACA;EAAW;EAAkB,WAAW;EAAa;IACpD;;;wBA0Da,kBACd,qBACA,MAAK,SAAS,sCACb,KAAK;;;;;;;;;;;;;;UCjIS;EACf;EACA,MAAM;EACN,UAAU;;EAEV;;;;;EAKA;;;;;;UAOe;EACf;EACA;;EAEA;;EAEA;EACA;EACA;;;UAIe;;EAEf;EACA;EACA;EACA,MAAM;;UAGS;EACf;EACA,MAAM;;;EAGN;;EAEA,aAAa;;EAEb;EACA,WAAW;;EAEX;EACA,SAAS;;EAET;EACA,UAAU;;EAEV;;EAEA;;EAEA,UAAU,eAAe;;UAGV,0BAA0B,KACzC;;EAIA;;EAEA;;;;UAKe;EACf,aAAa;EACb;;UAGe;EACf,MAAM;;;EAGN,UAAU;;EAEV,WAAW;;EAEX,uBAAuB;;EAEvB,mBAAmB;;EAEnB,OAAO;;UAGQ,oBAAoB,KAAK;EACxC;EACA;;;;;;;;wBAgKc,WAAW,OAAO,kBAAkB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/host-loader.ts","../src/run-record-schema.ts","../src/run-record.ts","../src/spawn-host.ts","../src/host-issues.ts","../src/env-substitution.ts","../src/resolve/resolve.ts","../src/check-host.ts","../src/host-export-schema.ts","../src/host-export.ts","../src/placeholders.ts","../src/host-types.ts","../src/plugins.ts","../src/plugins-resolve.ts","../src/drive-schema.ts","../src/drives.ts","../src/reactor-config.ts","../src/backend-projection.ts","../src/connect-projection.ts","../src/resolve/plan.ts","../src/resolve/removed-forms.ts","../src/resolve/sources.ts","../src/resolve/walk.ts","../src/resolve/node.ts","../src/expect-host.ts"],"mappings":";;;;qBAiCa,sBAAsB;EACjC,YAAY,iBAAiB;;KAMnB;EACN;;EACA;EAAe;;EACf;EAAiB;EAAa;;;;;wBAKpB,iBAAiB,sBAAsB;;qBAwB1C;;;;wBAsGG,cAAc;;UA8Bb;;EAEf;;EAEA;;;;;;;;wBASc,gBAAgB,mBAAmB,eAAe;;;wBAoClD,gBAAgB,mBAAmB;;;wBAMnC,gBAAgB,mBAAmB;;;;;wBAoBnC,oBACd,kBACA;;;wBA0Cc,mBACd,gBACA;UA8Be;EACf;EACA;EACA;EACA,MAAM;;wBA2Bc,SACpB,qBACA,mBACC,QAAQ;;;UAqEM;;EAEf;EACA;;EAEA,eAAe;;;;EAIf;EACA;;;wBAMc,oBAAoB;;;;wBAoBpB,mBAAmB;EACjC;EACA;EACA,eAAe;EACf;;;;;;;;;;;;;;;wBAiDoB,oBACpB,qBACA,mBACC,QAAQ;;;qBCzhBE,uBAAqB,EAAA;;;;;;;;;GAOhC,EAAA,KAAA;qBAEW,iBAAe,EAAA;;;;;;;;;;;;;;;;;;;;;;;GAc1B,EAAA,KAAA;KAEU,YAAY,EAAE,aAAa;KAC3B,kBAAkB,EAAE,aAAa;;;;;;;KCtBjC;EACN;;EACA;EAAiB,QAAQ;;EACzB;EAAgB,QAAQ;;EACxB;EAAmB,QAAQ;;KAE5B,MAAM,SAAS;wBASJ,cACd,oBACA,kBACA,MAAK,MACJ;;wBAea,eACd,oBACA,MAAK,MACJ;;;wBAqBa,gBAAgB;wBAYhB,eAAe,oBAAoB,QAAQ;wBAO3C,eACd,oBACA,kBACA,MAAK;wBASS,WAAW;;;;;;;;;;wBAmBX,SACd,oBACA,kBACA,qBACA,MAAK,MACJ;;;UCpHc;EACf;;EAEA;;EAEA;EACA;;EAEA,MAAM;;EAEN;EACA;EACA;;EAEA,SA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A,aAAa;;EAEb;EACA,WAAW;;EAEX;EACA,SAAS;;EAET;EACA,UAAU;;EAEV;;EAEA;;EAEA,UAAU,eAAe;;UAGV,0BAA0B,KACzC;;EAIA;;EAEA;;;;UAKe;EACf,aAAa;EACb;;UAGe;EACf,MAAM;;;EAGN,UAAU;;EAEV,WAAW;;EAEX,uBAAuB;;EAEvB,mBAAmB;;EAEnB,OAAO;;UAGQ,oBAAoB,KAAK;EACxC;EACA;;;;;;;;wBAgKc,WAAW,OAAO,kBAAkB"}
package/dist/index.mjs CHANGED
@@ -1,9 +1,10 @@
1
- import { $ as unsetEnvMessage, $t as keyTokenSchema, A as lintHostImportGraph, At as makeHostSchemas, B as RunnerError, Bt as buildDriveDeclarationSchema, C as runRecordMemberSchema, Cn as runTransformHook, Ct as compoundWiringSchema, D as computeOutputsHash, Dt as emitHostJsonSchema, E as OUTPUTS_FILE, Et as defineHostSchemas, F as readOutputsFileHash, Ft as reactorProtocolSchema, G as knownVerbIssues, Gt as TOKEN_KEYS, H as hostSchemaIssues, Ht as drivesSchema, I as scanHostImports, It as reactorSchema, J as validateDeclaredHost, Jt as envTokenable, K as listVerbs, Kt as concatTokenSchema, L as stripComments, Lt as refineStartOrder, M as lintOutputsFile, Mt as reactorBackendKindSchema, N as loadHost, Nt as reactorBackendSchema, O as describeHostOutputs, Ot as emittedHostSchemas, P as probeHostsFolder, Pt as reactorHostSchema, Q as resolveHostOutputs, Qt as itemTokenSchema, R as CONNECT_RUNNER, Rt as runnerBaseSchema, S as writeRunRecord, Sn as runProvideHook, St as compoundHostSchema, T as HostLoadError, Tt as declaredHostSchemas, U as isSchemaLike, Ut as projectDriveIdWith, V as getVerb, Vt as driveDeclarationSchema, W as kindShapeIssues, Wt as TOKEN_ESCAPE_KEY, X as TokenResolutionError, Xt as forbidRef, Y as validateHost, Yt as findToken, Z as describeMapElements, Zt as isToken, _ as isPidAlive, _n as pluginEntrySchema, _t as isPlainObject, a as takesCspRegistrySync, an as tokenable, at as substituteBuiltinEnv, b as readProjectName, bn as runObserveHook, bt as childWrapperSchema, c as compoundOutputSource, cn as resolveHostPlugins, ct as checkTokenSites, d as producerOutputsSchemas, dn as entryActiveForVerb, dt as outputSitesOf, en as mapTokenSchema, et as PlanError, f as runRecordOutputSource, fn as hostTypeSatisfies, ft as refKey, g as clearRunRecord, gn as pluginEntryObjectSchema, gt as formatPath, h as resolveUserDataPlaceholders, hn as normalizePluginEntry, ht as describeToken, i as runCompound, in as tokenSchema, it as isBuiltinEnvName, j as lintHostImports, jt as profileSchema, k as findNonStaticValue, kt as genericCompoundHostSchema, l as loadProducers, ln as resolvePluginContributions, lt as envSitesOf, m as defaultUserDataDir, mn as normalizePluginEntries, mt as collectTokenSites, n as memberVerbOf, nn as ref, nt as planCompound, o as runnerHandleSchema, on as CONNECT_PLUGIN_OWNED_SLICES, ot as findRemovedForms, p as runnerOutputsSchema, pn as mergeContributions, pt as schemaAtPath, q as resolveRunnerModule, qt as envTokenSchema, r as prepareMember, rn as tokenKeyOf, rt as BUILTIN_ENV_NAMES, s as toStartedHandle, sn as findDeadConnectConfig, st as checkOutputPaths, t as compoundStartVerb, tn as outputTokenSchema, tt as memberForRef, u as processResolveEnv, un as PluginError, ut as outputRefsOf, v as listRunRecords, vn as registerHostType, vt as renderTokens, w as runRecordSchema, wt as declaredGenericCompoundHostSchema, x as readRunRecord, xn as runObserveHookSequential, xt as childrenSchema, y as probeRun, yn as resolveOrder, yt as unwrapEscapes, z as ONE_SHOT_VERBS, zt as runnerKindSchema } from "./compound-Gjt5rBfF.mjs";
1
+ import { $ as resolveHostOutputs, $t as itemTokenSchema, A as findNonStaticValue, At as genericCompoundHostSchema, B as ONE_SHOT_VERBS, Bt as runnerKindSchema, C as writeRunRecord, Cn as runProvideHook, Ct as compoundHostSchema, D as OUTPUTS_FILE, Dt as defineHostSchemas, E as HostLoadError, Et as declaredHostSchemas, F as probeHostsFolder, Ft as reactorHostSchema, G as kindShapeIssues, Gt as TOKEN_ESCAPE_KEY, H as getVerb, Ht as driveDeclarationSchema, I as readOutputsFileHash, It as reactorProtocolSchema, J as resolveRunnerModule, Jt as envTokenSchema, K as knownVerbIssues, Kt as TOKEN_KEYS, L as scanHostImports, Lt as reactorSchema, M as lintHostImports, Mt as profileSchema, N as lintOutputsFile, Nt as reactorBackendKindSchema, O as computeOutputsHash, Ot as emitHostJsonSchema, P as loadHost, Pt as reactorBackendSchema, Q as describeMapElements, Qt as isToken, R as stripComments, Rt as refineStartOrder, S as readRunRecord, Sn as runObserveHookSequential, St as childrenSchema, T as runRecordSchema, Tt as declaredGenericCompoundHostSchema, U as hostSchemaIssues, Ut as drivesSchema, V as RunnerError, Vt as buildDriveDeclarationSchema, W as isSchemaLike, Wt as projectDriveIdWith, X as validateHost, Xt as findToken, Y as validateDeclaredHost, Yt as envTokenable, Z as TokenResolutionError, Zt as forbidRef, _ as clearRunRecord, _n as pluginEntryObjectSchema, _t as formatPath, a as takesCspRegistrySync, an as tokenSchema, at as isBuiltinEnvName, b as probeRun, bn as resolveOrder, bt as unwrapEscapes, c as compoundOutputSource, cn as findDeadConnectConfig, ct as checkOutputPaths, d as producerOutputsSchemas, dn as PluginError, dt as outputRefsOf, en as keyTokenSchema, et as unsetEnvMessage, f as runRecordOutputSource, fn as entryActiveForVerb, ft as outputSitesOf, g as applyChildWrapper, gn as normalizePluginEntry, gt as describeToken, h as resolveUserDataPlaceholders, hn as normalizePluginEntries, ht as collectTokenSites, i as runCompound, in as tokenKeyOf, it as BUILTIN_ENV_NAMES, j as lintHostImportGraph, jt as makeHostSchemas, k as describeHostOutputs, kt as emittedHostSchemas, l as loadProducers, ln as resolveHostPlugins, lt as checkTokenSites, m as defaultUserDataDir, mn as mergeContributions, mt as schemaAtPath, n as memberVerbOf, nn as outputTokenSchema, nt as memberForRef, o as runnerHandleSchema, on as tokenable, ot as substituteBuiltinEnv, p as runnerOutputsSchema, pn as hostTypeSatisfies, pt as refKey, q as listVerbs, qt as concatTokenSchema, r as prepareMember, rn as ref, rt as planCompound, s as toStartedHandle, sn as CONNECT_PLUGIN_OWNED_SLICES, st as findRemovedForms, t as compoundStartVerb, tn as mapTokenSchema, tt as PlanError, u as processResolveEnv, un as resolvePluginContributions, ut as envSitesOf, v as isPidAlive, vn as pluginEntrySchema, vt as isPlainObject, w as runRecordMemberSchema, wn as runTransformHook, wt as compoundWiringSchema, x as readProjectName, xn as runObserveHook, xt as childWrapperSchema, y as listRunRecords, yn as registerHostType, yt as renderTokens, z as CONNECT_RUNNER, zt as runnerBaseSchema } from "./compound-Cfqa5Jal.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import crypto from "node:crypto";
4
4
  import fs from "node:fs";
5
5
  import path from "node:path";
6
6
  import { pathToFileURL } from "node:url";
7
+ import { z } from "zod";
7
8
  import { spawn } from "node:child_process";
8
9
  import { DRIVE_ICON_MAX_BYTES, resolveImageRef } from "@powerhousedao/shared/connect/image-ref";
9
10
  //#region src/spawn-host.ts
@@ -452,6 +453,108 @@ function issuer(result, file) {
452
453
  };
453
454
  }
454
455
  //#endregion
456
+ //#region src/host-export-schema.ts
457
+ function isRecord$1(value) {
458
+ return typeof value === "object" && value !== null && !Array.isArray(value);
459
+ }
460
+ function childFolders$1(host) {
461
+ if (!isRecord$1(host) || !isRecord$1(host.children)) return [];
462
+ return Object.entries(host.children).flatMap(([key, child]) => isRecord$1(child) && typeof child.host === "string" ? [[key, child.host]] : []);
463
+ }
464
+ const declaredHostSchema = z.custom().superRefine((host, ctx) => {
465
+ const result = (isRecord$1(host) && "children" in host ? declaredHostSchemas.compoundHostSchema : declaredHostSchemas.reactorHostSchema).safeParse(host);
466
+ if (result.success) return;
467
+ for (const issue of result.error.issues) ctx.addIssue({
468
+ code: "custom",
469
+ message: issue.message,
470
+ path: issue.path
471
+ });
472
+ });
473
+ /** `ph host export`: a declared host plus its members, keyed by folder. */
474
+ const hostExportSchema = z.strictObject({
475
+ format: z.literal("ph-host-export"),
476
+ version: z.literal(1),
477
+ project: z.strictObject({
478
+ name: z.string().min(1),
479
+ root: z.string().min(1)
480
+ }),
481
+ name: z.string().min(1),
482
+ host: declaredHostSchema,
483
+ members: z.record(z.string(), declaredHostSchema)
484
+ }).superRefine((value, ctx) => {
485
+ const reached = /* @__PURE__ */ new Set();
486
+ const pending = [[["host"], value.host]];
487
+ for (let next = pending.shift(); next; next = pending.shift()) {
488
+ const [at, host] = next;
489
+ for (const [key, folder] of childFolders$1(host)) {
490
+ if (!(folder in value.members)) {
491
+ ctx.addIssue({
492
+ code: "custom",
493
+ path: [
494
+ ...at,
495
+ "children",
496
+ key,
497
+ "host"
498
+ ],
499
+ message: `Member folder "${folder}" is missing from members.`
500
+ });
501
+ continue;
502
+ }
503
+ if (reached.has(folder)) continue;
504
+ reached.add(folder);
505
+ pending.push([["members", folder], value.members[folder]]);
506
+ }
507
+ }
508
+ for (const folder of Object.keys(value.members)) {
509
+ if (reached.has(folder)) continue;
510
+ ctx.addIssue({
511
+ code: "custom",
512
+ path: ["members", folder],
513
+ message: `Member "${folder}" is not reached from the host's children.`
514
+ });
515
+ }
516
+ });
517
+ //#endregion
518
+ //#region src/host-export.ts
519
+ function checkHint(name) {
520
+ return `Run \`ph host check ${name}\`.`;
521
+ }
522
+ function childFolders(host, name) {
523
+ if (!("children" in host)) return [];
524
+ const parsed = declaredHostSchemas.childrenSchema.safeParse(host.children);
525
+ if (!parsed.success) throw new HostLoadError(`hosts/${name}/host.js: invalid \`children\`:\n${z.prettifyError(parsed.error)}`, checkHint(name));
526
+ return Object.values(parsed.data).map((child) => child.host);
527
+ }
528
+ /** A host as declared and every member it reaches, raw `loadHost` bodies. */
529
+ async function exportHost(projectRoot, name) {
530
+ const root = path.resolve(projectRoot);
531
+ const { host } = await loadHost(root, name);
532
+ const members = {};
533
+ const visit = async (folders) => {
534
+ for (const folder of folders) {
535
+ if (folder in members) continue;
536
+ const member = (await loadHost(root, folder)).host;
537
+ members[folder] = member;
538
+ await visit(childFolders(member, folder));
539
+ }
540
+ };
541
+ await visit(childFolders(host, name));
542
+ const envelope = {
543
+ format: "ph-host-export",
544
+ version: 1,
545
+ project: {
546
+ name: readProjectName(root),
547
+ root
548
+ },
549
+ name,
550
+ host,
551
+ members
552
+ };
553
+ const parsed = hostExportSchema.safeParse(JSON.parse(JSON.stringify(envelope)));
554
+ if (!parsed.success) throw new HostLoadError(`hosts/${name}/host.js: the export is not a valid host export:\n${z.prettifyError(parsed.error)}`, checkHint(name));
555
+ return envelope;
556
+ }
557
+ //#endregion
455
558
  //#region src/drives.ts
456
559
  const sha256Hex = (input) => crypto.createHash("sha256").update(input).digest("hex");
457
560
  function projectDriveId(projectRoot, slug) {
@@ -564,23 +667,22 @@ function protocolEnv(protocol) {
564
667
  if (protocol.unsupportedStoredDocuments !== void 0) env.REACTOR_UNSUPPORTED_STORED_DOCUMENTS = protocol.unsupportedStoredDocuments;
565
668
  return env;
566
669
  }
567
- /** Project the reactor block onto the switchboard's env + options. */
568
- function projectReactorToSwitchboard(reactor) {
569
- const env = protocolEnv(reactor?.protocol);
670
+ /** The reactor block as a switchboard config layer. The reactor store and the
671
+ * read model are separate fields: `readModel.url` never moves the reactor. */
672
+ function reactorBlockToSwitchboardConfig(reactor) {
673
+ const layer = {};
570
674
  const backend = primaryBackend(reactor);
571
- const options = {};
572
- if (backend?.storage) {
573
- const s = backend.storage;
574
- const dbUrl = s.kind === "postgres" ? s.url : s.dataDir;
575
- if (dbUrl) env.PH_REACTOR_DATABASE_URL = dbUrl;
576
- }
577
- if (backend?.readModel?.url) options.dbPath = backend.readModel.url;
578
- if (backend?.packages?.dynamic) env.DYNAMIC_MODEL_LOADING = "true";
579
- if (reactor?.workflows !== void 0) env.PH_WORKFLOWS_ENABLED = reactor.workflows ? "1" : "0";
580
- return {
581
- env,
582
- options
675
+ const storage = backend?.storage;
676
+ const reactorUrl = storage?.kind === "postgres" ? storage.url : storage?.dataDir;
677
+ const readModelUrl = backend?.readModel?.url;
678
+ if (reactorUrl || readModelUrl) layer.storage = {
679
+ ...reactorUrl ? { reactor: { url: reactorUrl } } : {},
680
+ ...readModelUrl ? { readModel: { url: readModelUrl } } : {}
583
681
  };
682
+ if (reactor?.protocol) layer.protocol = reactor.protocol;
683
+ if (backend?.packages?.dynamic) layer.packages = { dynamic: true };
684
+ if (reactor?.workflows !== void 0) layer.features = { workflows: reactor.workflows };
685
+ return layer;
584
686
  }
585
687
  const LOCAL_BACKEND_KINDS = /* @__PURE__ */ new Set(["in-process", "worker"]);
586
688
  /**
@@ -904,6 +1006,6 @@ function expectHost(input) {
904
1006
  return expectation;
905
1007
  }
906
1008
  //#endregion
907
- export { BUILTIN_ENV_NAMES, CONNECT_PLUGIN_OWNED_SLICES, CONNECT_RUNNER, HostLoadError, ONE_SHOT_VERBS, OUTPUTS_FILE, PlanError, PluginError, RunnerError, SpawnHostError, TOKEN_ESCAPE_KEY, TOKEN_KEYS, TokenResolutionError, assertProtocolConsistency, backendToDescriptor, backendsToDescriptors, buildDriveDeclarationSchema, checkHost, checkOutputPaths, checkTokenSites, childWrapperSchema, childrenSchema, clearRunRecord, collectTokenSites, compoundHostSchema, compoundOutputSource, compoundWiringSchema, computeOutputsHash, concatTokenSchema, declaredGenericCompoundHostSchema, declaredHostSchemas, defaultUserDataDir, defineHostSchemas, describeHostOutputs, describeMapElements, describeToken, driveDeclarationSchema, drivesSchema, emitHostJsonSchema, emittedHostSchemas, entryActiveForVerb, envSitesOf, envTokenSchema, envTokenable, expectHost, explainDrivePlan, findDeadConnectConfig, findNonStaticValue, findRemovedForms, findToken, forbidRef, formatPath, genericCompoundHostSchema, getVerb, hostSchemaIssues, hostTypeSatisfies, isBuiltinEnvName, isPidAlive, isSchemaLike, isStructuralMultiReactor, isToken, itemTokenSchema, keyTokenSchema, kindShapeIssues, knownVerbIssues, lintHostImportGraph, lintHostImports, lintOutputsFile, listRunRecords, listVerbs, loadHost, loadProducers, makeHostSchemas, mapTokenSchema, memberForRef, mergeContributions, mergeDefaultDrives, mergeDrivePlan, normalizePluginEntries, normalizePluginEntry, outputRefsOf, outputSitesOf, outputTokenSchema, planCompound, pluginEntryObjectSchema, pluginEntrySchema, primaryBackend, probeHostsFolder, probeRun, processResolveEnv, producerOutputsSchemas, profileSchema, projectDriveId, projectDriveIdWith, projectDrivesIntoConnect, projectReactorToConnect, projectReactorToSwitchboard, protocolConflicts, protocolEnv, reactorBackendKindSchema, reactorBackendSchema, reactorClientMode, reactorHostSchema, reactorProtocolSchema, reactorSchema, readOutputsFileHash, readProjectName, readRunRecord, rebaseDriveUrl, ref, refKey, refineStartOrder, registerHostType, remoteBackendUrls, renderTokens, resolveDriveDeclaration, resolveHostOutputs, resolveHostPlugins, resolveOrder, resolvePluginContributions, resolveRunnerModule, resolveUserDataPlaceholders, runCompound, runObserveHook, runObserveHookSequential, runProvideHook, runRecordMemberSchema, runRecordOutputSource, runRecordSchema, runTransformHook, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, runnerOutputsSchema, scanHostImports, schemaAtPath, seedDrives, spawnHost, stripComments, substituteBuiltinEnv, toStartedHandle, tokenKeyOf, tokenSchema, tokenable, unwrapEscapes, validateDeclaredHost, validateHost, writeRunRecord };
1009
+ export { BUILTIN_ENV_NAMES, CONNECT_PLUGIN_OWNED_SLICES, CONNECT_RUNNER, HostLoadError, ONE_SHOT_VERBS, OUTPUTS_FILE, PlanError, PluginError, RunnerError, SpawnHostError, TOKEN_ESCAPE_KEY, TOKEN_KEYS, TokenResolutionError, applyChildWrapper, assertProtocolConsistency, backendToDescriptor, backendsToDescriptors, buildDriveDeclarationSchema, checkHost, checkOutputPaths, checkTokenSites, childWrapperSchema, childrenSchema, clearRunRecord, collectTokenSites, compoundHostSchema, compoundOutputSource, compoundWiringSchema, computeOutputsHash, concatTokenSchema, declaredGenericCompoundHostSchema, declaredHostSchemas, defaultUserDataDir, defineHostSchemas, describeHostOutputs, describeMapElements, describeToken, driveDeclarationSchema, drivesSchema, emitHostJsonSchema, emittedHostSchemas, entryActiveForVerb, envSitesOf, envTokenSchema, envTokenable, expectHost, explainDrivePlan, exportHost, findDeadConnectConfig, findNonStaticValue, findRemovedForms, findToken, forbidRef, formatPath, genericCompoundHostSchema, getVerb, hostExportSchema, hostSchemaIssues, hostTypeSatisfies, isBuiltinEnvName, isPidAlive, isSchemaLike, isStructuralMultiReactor, isToken, itemTokenSchema, keyTokenSchema, kindShapeIssues, knownVerbIssues, lintHostImportGraph, lintHostImports, lintOutputsFile, listRunRecords, listVerbs, loadHost, loadProducers, makeHostSchemas, mapTokenSchema, memberForRef, mergeContributions, mergeDefaultDrives, mergeDrivePlan, normalizePluginEntries, normalizePluginEntry, outputRefsOf, outputSitesOf, outputTokenSchema, planCompound, pluginEntryObjectSchema, pluginEntrySchema, primaryBackend, probeHostsFolder, probeRun, processResolveEnv, producerOutputsSchemas, profileSchema, projectDriveId, projectDriveIdWith, projectDrivesIntoConnect, projectReactorToConnect, protocolConflicts, protocolEnv, reactorBackendKindSchema, reactorBackendSchema, reactorBlockToSwitchboardConfig, reactorClientMode, reactorHostSchema, reactorProtocolSchema, reactorSchema, readOutputsFileHash, readProjectName, readRunRecord, rebaseDriveUrl, ref, refKey, refineStartOrder, registerHostType, remoteBackendUrls, renderTokens, resolveDriveDeclaration, resolveHostOutputs, resolveHostPlugins, resolveOrder, resolvePluginContributions, resolveRunnerModule, resolveUserDataPlaceholders, runCompound, runObserveHook, runObserveHookSequential, runProvideHook, runRecordMemberSchema, runRecordOutputSource, runRecordSchema, runTransformHook, runnerBaseSchema, runnerHandleSchema, runnerKindSchema, runnerOutputsSchema, scanHostImports, schemaAtPath, seedDrives, spawnHost, stripComments, substituteBuiltinEnv, toStartedHandle, tokenKeyOf, tokenSchema, tokenable, unwrapEscapes, validateDeclaredHost, validateHost, writeRunRecord };
908
1010
 
909
1011
  //# sourceMappingURL=index.mjs.map