@powerhousedao/shared 6.2.3-dev.0 → 6.2.3-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { $t as DocumentModelOperationExampleOperations, Aa as SigningParameters, Bn as ModuleSpecification, Bt as DocumentModelGlobalState, Fu as Operation, Gt as DocumentModelLocalState, H as ActionSignatureContext, Ht as DocumentModelHeaderOperations, Iu as OperationContext, Jl as PHDocumentHeader, Jr as PruneActionInput, Jt as DocumentModelModuleOperations, Ju as Condition, Ku as AuthGroups, Lr as OperationErrorSpecification, Ma as SkipHeaderOperations, Nc as Action, On as LoadFromInput, Pa as StateReducer, Pu as DocumentOperations, Qa as UpgradeManifest, Qu as PHBaseState, Rt as DocumentModelDocument, Sn as ISigner, Ta as SignalDispatch, Yu as Grant, Za as ValidationError, Zt as DocumentModelOperationErrorOperations, Zu as PHAuthState, _i as ReplayDocumentOptions, bi as SaveToFileHandle, cn as DocumentSpecification, ct as Author, ei as Reducer, en as DocumentModelOperationOperations, lt as CodeExample, mn as FileInput, on as DocumentModelVersioningOperations, ql as PHDocument, rn as DocumentModelStateOperations, ti as ReducerOptions, tn as DocumentModelPHState, zn as MinimalBackupData, zr as OperationSpecification } from "./types-__rCq4pt.js";
1
+ import { $t as DocumentModelOperationExampleOperations, Aa as SigningParameters, Bn as ModuleSpecification, Bt as DocumentModelGlobalState, Fu as Operation, Gt as DocumentModelLocalState, H as ActionSignatureContext, Ht as DocumentModelHeaderOperations, Iu as OperationContext, Jl as PHDocumentHeader, Jr as PruneActionInput, Jt as DocumentModelModuleOperations, Ju as Condition, Ku as AuthGroups, Lr as OperationErrorSpecification, Ma as SkipHeaderOperations, Nc as Action, On as LoadFromInput, Pa as StateReducer, Pu as DocumentOperations, Qa as UpgradeManifest, Qu as PHBaseState, Rt as DocumentModelDocument, Sn as ISigner, Ta as SignalDispatch, Yu as Grant, Za as ValidationError, Zt as DocumentModelOperationErrorOperations, Zu as PHAuthState, _i as ReplayDocumentOptions, bi as SaveToFileHandle, cn as DocumentSpecification, ct as Author, ei as Reducer, en as DocumentModelOperationOperations, lt as CodeExample, mn as FileInput, on as DocumentModelVersioningOperations, ql as PHDocument, rn as DocumentModelStateOperations, ti as ReducerOptions, tn as DocumentModelPHState, zn as MinimalBackupData, zr as OperationSpecification } from "./types-CpnWmiFY.js";
2
2
  import { ZodIssue, z } from "zod";
3
3
 
4
4
  //#region document-model/action-transport.d.ts
@@ -833,4 +833,4 @@ declare function assertOperationExampleIdUnique(state: DocumentModelGlobalState,
833
833
  declare function validateOperations(operations: DocumentOperations): ValidationError[];
834
834
  //#endregion
835
835
  export { getFileBrowser as $, mentionedGroupIds as $n, documentModelInitialLocalState as $t, documentModelVersioningReducer as A, InitializeAuthActionInputSchema as An, isDocumentModelDocument as At, createVerificationSigner as B, SetGrantActionInputSchema as Bn, buildOperationSignatureMessage as Bt, documentModelModuleReducer as C, AuthRefusal as Cn, BaseDocumentHeaderSchema as Ct, documentModelReducer as D, ConditionContext as Dn, DocumentModelSchema as Dt, documentModelOperationReducer as E, AuthVerb as En, DocumentModelPHStateSchema as Et, replayOperations as F, RemoveGrantAction as Fn, DOCUMENT_DELETED_REASON as Ft, baseLoadFromInput as G, applySetGrantAction as Gn, HASH_ALGORITHM_SHA1 as Gt, validateHeader as H, applyInitializeAuthAction as Hn, getUnixTimestamp as Ht, updateDocument as I, RemoveGrantActionInput as In, isDenied as It, createMinimalZip as J, decide as Jn, HASH_ENCODING_BASE64 as Jt, baseLoadFromInputVersioned as K, assertAuthPreservedOnDuplicate as Kn, HASH_ALGORITHM_SHA256 as Kt, createPresignedHeader as L, RemoveGrantActionInputSchema as Ln, ab2hex as Lt, createReducer as M, MoveGrantAction as Mn, AUTH_DENIED_BY_GRANT_REASON as Mt, processUndoRedo as N, MoveGrantActionInput as Nn, AUTH_NO_GRANT_REASON as Nt, documentModelStateReducer as O, InitializeAuthAction as On, assertIsDocumentModelDocument as Ot, pruneOperation as P, MoveGrantActionInputSchema as Pn, AUTH_VERSION_UNSUPPORTED_REASON as Pt, fetchFileBrowser as Q, isDocumentCreator as Qn, documentModelInitialGlobalState as Qt, createSignedHeader as R, SetGrantAction as Rn, base58Decode as Rt, documentModelHeaderReducer as S, AuthEvaluation as Sn, groupMembershipActionTypes as St, documentModelOperationExampleReducer as T, AuthSubject as Tn, DocumentModelHeaderSchema as Tt, verify as U, applyMoveGrantAction as Un, hashBrowser as Ut, sign as V, applyAuthAction as Vn, buildOperationSignatureParams as Vt, BulkArchiveEntry as W, applyRemoveGrantAction as Wn, hex2ab as Wt, documentModelLoadFromInput as X, initializeAuth as Xn, documentModelFileExtension as Xt, createZip as Y, evaluate as Yn, HASH_ENCODING_HEX as Yt, documentModelSaveToFileHandle as Z, isAuthAction as Zn, documentModelGlobalState as Zt, validateModuleOperation as _, isPlainValue as _n, InvalidActionInputZodError as _t, assertOperationErrorIdUnique as a, MAX_AUTH_GRANTS as an, TransportActionContext as ar, VersionedReducers as at, validateOperations as b, AuthAction as bn, documentModelDocumentType as bt, findModuleOrThrow as c, MAX_CONDITION_NODES as cn, AuthActionNotAllowedError as ct, findOperationOrThrow as d, assertValidGrantUpsert as dn, AuthPolicyNotPreservedError as dt, AuthAdministrationLockoutError as en, moveGrant as er, isDocumentZip as et, getAllOperationNames as f, assertValidInitialGrants as fn, DowngradeNotSupportedError as ft, validateModule as g, grantProblem as gn, InvalidActionInputError as gt, validateInitialState as h, evaluateGrants as hn, HashMismatchError as ht, assertModuleIdUnique as i, InvalidGrantError as in, TransportAction as ir, zipEntries as it, baseReducer as j, MAX_SUPPORTED_AUTH_VERSION as jn, isDocumentModelState as jt, documentModelStateSchemaReducer as k, InitializeAuthActionInput as kn, assertIsDocumentModelState as kt, findOperationErrorOrThrow as l, assertAuthAdministrationRetained as ln, AuthAlreadyInitializedError as lt, isValidOperationNameFormat as m, evaluateGrantStack as mn, GrantNotFoundError as mt, RESERVED_OPERATION_NAMES as n, GrantSchema as nn, resolveSnapshotAuth as nr, readFileBrowser as nt, assertOperationExampleIdUnique as o, MAX_CAPABILITY_OPERATIONS as on, TransportSigner as or, VersionedReplayConfig as ot, isReservedOperationName as p, evaluateCondition as pn, FileSystemError as pt, baseSaveToFileHandle as q, assertAuthScopeActionAllowed as qn, HASH_ALGORITHM_SHA512 as qt, ReservedOperationName as r, GroupPrincipalNotAllowedError as rn, setGrant as rr, writeFileBrowser as rt, assertOperationIdUnique as s, MAX_CONDITION_DEPTH as sn, toTransportAction as sr, replayDocumentVersioned as st, OPERATION_NAME_PATTERN as t, AuthAdministrationMissingError as tn, removeGrant as tr, parseBulkArchive as tt, findOperationExampleOrThrow as u, assertValidGrant as un, AuthInitializerNotCreatorError as ut, validateModules as v, referencedGroupIds as vn, InvalidAuthVersionError as vt, documentModelOperationErrorReducer as w, AuthRequest as wn, BaseDocumentStateSchema as wt, validateStateSchemaName as x, AuthDecision as xn, groupDocumentType as xt, validateOperationName as y, AUTH_ACTION_TYPES as yn, UnsupportedDocumentModelVersionError as yt, createSignedHeaderForSigner as z, SetGrantActionInput as zn, base64UrlToBytes as zt };
836
- //# sourceMappingURL=index-ttKvSmVK.d.ts.map
836
+ //# sourceMappingURL=index-DyYIJtVy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-ttKvSmVK.d.ts","names":[],"sources":["../document-model/action-transport.ts","../document-model/auth.ts","../document-model/auth-v1.ts","../document-model/constants.ts","../document-model/crypto.ts","../document-model/denied.ts","../document-model/document-schema.ts","../document-model/document-type.ts","../document-model/errors.ts","../document-model/versioned-replay.ts","../document-model/files.ts","../document-model/header.ts","../document-model/reducer.ts","../document-model/reducers.ts","../document-model/validation.ts"],"mappings":";;;;;;;AAWA;KAAY,eAAA;EACV,IAAA;IAAS,OAAA;IAAiB,SAAA;IAAmB,OAAA;EAAA;EAC7C,GAAA;IAAQ,IAAA;IAAc,GAAA;EAAA;EACtB,UAAA;AAAA;;KAIU,sBAAA;EACV,WAAA;EACA,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,gBAAA,aACC,eAAA;AAAA,iBAqCa,eAAA,CACd,OAAA,EAAS,mBAAA,KACR,eAAA;AAAA,iBAmBa,cAAA,CAAe,GAAA,EAAK,mBAAA,GAAsB,eAAA;AAAA,iBA6B1C,uBAAA,CACd,SAAA,EAAW,sBAAA,GACV,eAAA;;;;;;iBA6Ba,iBAAA,CACd,KAAA,EAAO,wBAAA,EACP,QAAA,WACC,mBAAA;;;;;;iBAgBa,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,WAAA,WACC,sBAAA;;;;;;Ab/PH;iBakRgB,yBAAA,CACd,KAAA,EAAO,wBAAA,EACP,OAAA,WACC,2BAAA;;;;;;iBAwBa,2BAAA,CACd,KAAA,EAAO,wBAAA,EACP,SAAA,WACC,WAAA;;Ab3SH;;;;iBaqUgB,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;AbnUF;;;;AAAA,iBaiVgB,uBAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;Ab/UF;;;;;AAAA,iBaiWgB,4BAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;;;;;;iBAkBc,8BAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;AAAA,iBAac,kBAAA,CAAmB,UAAA,EAAY,kBAAA,GAAkB,eAAA"}
1
+ {"version":3,"file":"index-DyYIJtVy.d.ts","names":[],"sources":["../document-model/action-transport.ts","../document-model/auth.ts","../document-model/auth-v1.ts","../document-model/constants.ts","../document-model/crypto.ts","../document-model/denied.ts","../document-model/document-schema.ts","../document-model/document-type.ts","../document-model/errors.ts","../document-model/versioned-replay.ts","../document-model/files.ts","../document-model/header.ts","../document-model/reducer.ts","../document-model/reducers.ts","../document-model/validation.ts"],"mappings":";;;;;;;AAWA;KAAY,eAAA;EACV,IAAA;IAAS,OAAA;IAAiB,SAAA;IAAmB,OAAA;EAAA;EAC7C,GAAA;IAAQ,IAAA;IAAc,GAAA;EAAA;EACtB,UAAA;AAAA;;KAIU,sBAAA;EACV,WAA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AA,WACA,gBAAA,aACC,eAAA;AAAA,iBAqCa,eAAA,CACd,OAAA,EAAS,mBAAA,KACR,eAAA;AAAA,iBAmBa,cAAA,CAAe,GAAA,EAAK,mBAAA,GAAsB,eAAA;AAAA,iBA6B1C,uBAAA,CACd,SAAA,EAAW,sBAAA,GACV,eAAA;;;;;;iBA6Ba,iBAAA,CACd,KAAA,EAAO,wBAAA,EACP,QAAA,WACC,mBAAA;;;;;;iBAgBa,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,WAAA,WACC,sBAAA;;;;;;Ab/PH;iBakRgB,yBAAA,CACd,KAAA,EAAO,wBAAA,EACP,OAAA,WACC,2BAAA;;;;;;iBAwBa,2BAAA,CACd,KAAA,EAAO,wBAAA,EACP,SAAA,WACC,WAAA;;Ab3SH;;;;iBaqUgB,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;AbnUF;;;;AAAA,iBaiVgB,uBAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;Ab/UF;;;;;AAAA,iBaiWgB,4BAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;;;;;;iBAkBc,8BAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;AAAA,iBAac,kBAAA,CAAmB,UAAA,EAAY,kBAAA,GAAkB,eAAA"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as AnalyticsSeriesInput, c as CompoundAnalyticsExpression, d as ConversionMetric, f as IAnalyticsStore, i as AnalyticsSeries, l as CompoundAnalyticsInputs, n as AnalyticsOperand, o as AnalyticsSeriesQuery, p as MultiCurrencyConversion, r as AnalyticsQuery, s as AnalyticsUpdateCallback, t as AnalyticsDimension, u as CompoundAnalyticsQuery } from "./types-C1in4fl3.js";
2
- import { $ as AddOperationExampleAction, $i as SetOperationErrorCodeAction, $n as MutationDeleteOperationErrorArgs, $r as RedoActionInput, $s as ProcessorDispatchResult, $t as DocumentModelOperationExampleOperations, A as PHReactorRenown, Aa as SigningParameters, Ai as SetAuthorNameAction, An as LoadStateActionInput, Ar as MutationSetOperationTemplateArgs, At as DeleteOperationErrorInput, Ba as UpdateChangeLogItemAction, Bi as SetModelIdAction, Bn as ModuleSpecification, Br as OperationsByScope, Bt as DocumentModelGlobalState, C as PHConnectReactor, Ca as Set_PreferredEditor, Ci as SchemaNOOPAction, Cn as Incremental, Cr as MutationSetOperationErrorCodeArgs, Ct as DeleteChildDocumentSignal, D as PHConnectRuntimeConfig, Da as SignalResults, Di as SchemaSetPreferredEditorAction, Dn as LoadFromFile, Dr as MutationSetOperationNameArgs, Dt as DeleteModuleInput, E as PHConnectRenownAdapters, Ea as SignalResult, Ei as SchemaSetNameAction, En as IsStateOfType, Er as MutationSetOperationErrorTemplateArgs, Et as DeleteModuleAction, F as PathValidation, Fa as SubgraphModule, Fi as SetInitialStateInput, Fn as MakeOptional, Fr as MutationUpdateStateExampleArgs, Ft as DeleteStateExampleInput, G as Actions, Ga as UpdateRelationshipActionInput, Gi as SetModuleDescriptionInput, Gn as MutationAddModuleArgs, Gr as PowerhouseModule, Gt as DocumentModelLocalState, H as ActionSignatureContext, Ha as UpdateOperationExampleAction, Hi as SetModelNameAction, Hn as MoveOperationInput, Hr as PartialState, Ht as DocumentModelHeaderOperations, I as PowerhouseConfig, Ia as Undo, Ii as SetModelDescriptionAction, In as Manifest, Ir as NOOPAction, It as DocumentAction, J as AddModuleAction, Ja as UpgradeDocumentAction, Ji as SetNameAction, Jn as MutationAddOperationExampleArgs, Jr as PruneActionInput, Js as IProcessorDispatch, Jt as DocumentModelModuleOperations, K as AddChangeLogItemAction, Ka as UpdateStateExampleAction, Ki as SetModuleNameAction, Kn as MutationAddOperationArgs, Kr as Prune, Kt as DocumentModelModule, L as PowerhousePackage, La as UndoAction, Li as SetModelDescriptionInput, Ln as MappedOperation, Lr as OperationErrorSpecification, Lt as DocumentModelAction, M as PHRenownRainbowAdapterConfig, Ma as SkipHeaderOperations, Mi as SetAuthorWebsiteAction, Mn as Load_State, Mr as MutationUndoArgs, Mt as DeleteOperationExampleInput, N as PackageManagerArgs, Na as State, Ni as SetAuthorWebsiteInput, Nn as MakeEmpty, Nr as MutationUpdateChangeLogItemInputArgs, Nt as DeleteOperationInput, O as PHConnectSentry, Oa as SignalType, Oi as SchemaUndoAction, On as LoadFromInput, Or as MutationSetOperationReducerArgs, Ot as DeleteOperationAction, P as ParsedCmdResult, Pa as StateReducer, Pi as SetInitialStateAction, Pn as MakeMaybe, Pr as MutationUpdateOperationExampleArgs, Pt as DeleteStateExampleAction, Q as AddOperationErrorInput, Qi as SetOperationDescriptionInput, Qn as MutationDeleteOperationArgs, Qr as RedoAction, Qs as ProcessorApps, Qt as DocumentModelOperationExampleAction, R as ServiceAction, Ra as UndoActionInput, Ri as SetModelExtensionAction, Rn as Maybe, Rr as OperationIndex, Rt as DocumentModelDocument, S as PHConnectPwaUrlPattern, Sa as Set_Name, Si as SchemaLoadStateAction, Sn as ISigner, Sr as MutationSetOperationDescriptionArgs, St as DeleteChildDocumentInput, T as PHConnectRenown, Ta as SignalDispatch, Ti as SchemaRedoAction, Tn as IsDocumentOfType, Tr as MutationSetOperationErrorNameArgs, Tt as DeleteDocumentActionInput, U as ActionSigningHandler, Ua as UpdateOperationExampleInput, Ui as SetModelNameInput, Un as Mutation, Ur as PhAiToolAnnotations, Ut as DocumentModelInput, V as ActionErrorCallback, Va as UpdateChangeLogItemInput, Vi as SetModelIdInput, Vn as MoveOperationAction, Vr as PartialRecord, Vt as DocumentModelHeaderAction, W as ActionVerificationHandler, Wa as UpdateRelationshipAction, Wi as SetModuleDescriptionAction, Wn as MutationAddChangeLogItemInputArgs, Wr as PhAiToolDescriptor, Wt as DocumentModelLib, X as AddOperationAction, Xa as User, Xi as SetNameOperation, Xn as MutationDeleteChangeLogItemInputArgs, Xr as Query, Xs as IProcessorManager, Xt as DocumentModelOperationErrorAction, Y as AddModuleInput, Ya as UpgradeDocumentActionInput, Yi as SetNameActionInput, Yn as MutationAddStateExampleArgs, Yr as Publisher, Ys as IProcessorHostModuleBase, Yt as DocumentModelOperationAction, Z as AddOperationErrorAction, Za as ValidationError, Zi as SetOperationDescriptionAction, Zn as MutationDeleteModuleArgs, Zr as Redo, Zs as ProcessorApp, Zt as DocumentModelOperationErrorOperations, _ as PHConnectPwaCacheStrategy, _a as SetPreferredEditorAction, _i as ReplayDocumentOptions, _n as ID, _r as MutationSetModelIdArgs, _t as CreateDocumentAction, a as PHConnectAi, aa as SetOperationErrorTemplateAction, ac as TrackedProcessor, ai as ReorderChangeLogItemsAction, an as DocumentModelVersioningAction, ar as MutationRedoArgs, at as AddStateExampleInput, b as PHConnectPwaManifest, ba as SetStateSchemaAction, bi as SaveToFileHandle, bn as ISignal, br as MutationSetModuleNameArgs, bt as DeleteChangeLogItemAction, c as PHConnectDefaultDrive, ca as SetOperationNameInput, ci as ReorderModuleOperationsInput, cn as DocumentSpecification, cr as MutationReorderModulesArgs, ct as Author, d as PHConnectDriveSection, da as SetOperationSchemaAction, di as ReorderOperationErrorsAction, dn as EditorModule, dr as MutationReorderStateExamplesArgs, dt as ConfigEntryType, ea as SetOperationErrorCodeInput, ec as ProcessorFactory, ei as Reducer, en as DocumentModelOperationOperations, er as MutationDeleteOperationExampleArgs, et as AddOperationExampleInput, f as PHConnectDriveSections, fa as SetOperationSchemaInput, fi as ReorderOperationErrorsInput, fn as EditorProps, fr as MutationSetAuthorNameArgs, ft as CopyChildDocumentInput, g as PHConnectPwa, ga as SetOperationTemplateInput, gi as ReorderStateExamplesInput, gn as IAction, gr as MutationSetModelExtensionArgs, gt as CreateDocument, h as PHConnectPackages, ha as SetOperationTemplateAction, hi as ReorderStateExamplesAction, hn as GetDocumentOptions, hr as MutationSetModelDescriptionArgs, ht as CreateChildDocumentSignal, i as LogLevels, ia as SetOperationErrorNameInput, ic as ProcessorStatus, ii as RemoveRelationshipActionInput, in as DocumentModelUtils, ir as MutationPruneArgs, it as AddStateExampleAction, j as PHRenownPrivyAdapterConfig, ja as SkipHeaderOperationIndex, ji as SetAuthorNameInput, jn as LoadStateActionStateInput, jr as MutationSetStateSchemaArgs, jt as DeleteOperationExampleAction, k as PHPackageProvider, ka as SignatureVerificationHandler, ki as ScopeState, kn as LoadStateAction, kr as MutationSetOperationSchemaArgs, kt as DeleteOperationErrorAction, l as PHConnectDefaultDriveLocal, la as SetOperationReducerAction, li as ReorderModulesAction, ln as ENSInfo, lr as MutationReorderOperationErrorsArgs, lt as CodeExample, m as PHConnectInstance, ma as SetOperationScopeInput, mi as ReorderOperationExamplesInput, mn as FileInput, mr as MutationSetInitialStateArgs, mt as CreateChildDocumentInput, n as DrivePreserveStrategy, na as SetOperationErrorDescriptionInput, nc as ProcessorFilter, ni as ReleaseNewVersionAction, nn as DocumentModelStateAction, nr as MutationLoadStateArgs, nt as AddRelationshipAction, o as PHConnectApp, oa as SetOperationErrorTemplateInput, oi as ReorderChangeLogItemsInput, on as DocumentModelVersioningOperations, or as MutationReorderChangeLogItemsInputArgs, ot as AssertIsDocumentOfType, p as PHConnectDrives, pa as SetOperationScopeAction, pi as ReorderOperationExamplesAction, pn as Exact, pr as MutationSetAuthorWebsiteArgs, pt as CopyChildDocumentSignal, q as AddChangeLogItemInput, qa as UpdateStateExampleInput, qi as SetModuleNameInput, qn as MutationAddOperationErrorArgs, qr as PruneAction, qs as IProcessor, qt as DocumentModelModuleAction, r as LogLevel, ra as SetOperationErrorNameAction, rc as ProcessorRecord, ri as RemoveRelationshipAction, rn as DocumentModelStateOperations, rr as MutationMoveOperationArgs, rt as AddRelationshipActionInput, s as PHConnectBranding, sa as SetOperationNameAction, si as ReorderModuleOperationsAction, sn as DocumentOperationsIgnoreMap, sr as MutationReorderModuleOperationsArgs, st as AssertIsStateOfType, t as DrivePreserveStrategies, ta as SetOperationErrorDescriptionAction, tc as ProcessorFactoryBuilder, ti as ReducerOptions, tn as DocumentModelPHState, tr as MutationDeleteStateExampleArgs, tt as AddOperationInput, u as PHConnectDefaultDriveRemote, ua as SetOperationReducerInput, ui as ReorderModulesInput, un as EditorDispatch, ur as MutationReorderOperationExamplesArgs, ut as ConfigEntry, v as PHConnectPwaFileHandler, va as SetPreferredEditorActionInput, vi as RevisionsFilter, vn as IDocument, vr as MutationSetModelNameArgs, vt as CreateDocumentActionInput, w as PHConnectReactorFeatureFlags, wa as Signal, wi as SchemaPruneAction, wn as InputMaybe, wr as MutationSetOperationErrorDescriptionArgs, wt as DeleteDocumentAction, x as PHConnectPwaRuntimeCaching, xa as SetStateSchemaInput, xi as Scalars, xn as ISignalResult, xr as MutationSetNameArgs, xt as DeleteChangeLogItemInput, y as PHConnectPwaIcon, ya as SetPreferredEditorOperation, yi as SaveToFile, yn as IOperation, yr as MutationSetModuleDescriptionArgs, yt as CreateState, z as ServiceActions, za as UndoRedoAction, zi as SetModelExtensionInput, zn as MinimalBackupData, zr as OperationSpecification, zt as DocumentModelDocumentModelModule } from "./types-__rCq4pt.js";
2
+ import { $ as AddOperationExampleAction, $i as SetOperationErrorCodeAction, $n as MutationDeleteOperationErrorArgs, $r as RedoActionInput, $s as ProcessorDispatchResult, $t as DocumentModelOperationExampleOperations, A as PHReactorRenown, Aa as SigningParameters, Ai as SetAuthorNameAction, An as LoadStateActionInput, Ar as MutationSetOperationTemplateArgs, At as DeleteOperationErrorInput, Ba as UpdateChangeLogItemAction, Bi as SetModelIdAction, Bn as ModuleSpecification, Br as OperationsByScope, Bt as DocumentModelGlobalState, C as PHConnectReactor, Ca as Set_PreferredEditor, Ci as SchemaNOOPAction, Cn as Incremental, Cr as MutationSetOperationErrorCodeArgs, Ct as DeleteChildDocumentSignal, D as PHConnectRuntimeConfig, Da as SignalResults, Di as SchemaSetPreferredEditorAction, Dn as LoadFromFile, Dr as MutationSetOperationNameArgs, Dt as DeleteModuleInput, E as PHConnectRenownAdapters, Ea as SignalResult, Ei as SchemaSetNameAction, En as IsStateOfType, Er as MutationSetOperationErrorTemplateArgs, Et as DeleteModuleAction, F as PathValidation, Fa as SubgraphModule, Fi as SetInitialStateInput, Fn as MakeOptional, Fr as MutationUpdateStateExampleArgs, Ft as DeleteStateExampleInput, G as Actions, Ga as UpdateRelationshipActionInput, Gi as SetModuleDescriptionInput, Gn as MutationAddModuleArgs, Gr as PowerhouseModule, Gt as DocumentModelLocalState, H as ActionSignatureContext, Ha as UpdateOperationExampleAction, Hi as SetModelNameAction, Hn as MoveOperationInput, Hr as PartialState, Ht as DocumentModelHeaderOperations, I as PowerhouseConfig, Ia as Undo, Ii as SetModelDescriptionAction, In as Manifest, Ir as NOOPAction, It as DocumentAction, J as AddModuleAction, Ja as UpgradeDocumentAction, Ji as SetNameAction, Jn as MutationAddOperationExampleArgs, Jr as PruneActionInput, Js as IProcessorDispatch, Jt as DocumentModelModuleOperations, K as AddChangeLogItemAction, Ka as UpdateStateExampleAction, Ki as SetModuleNameAction, Kn as MutationAddOperationArgs, Kr as Prune, Kt as DocumentModelModule, L as PowerhousePackage, La as UndoAction, Li as SetModelDescriptionInput, Ln as MappedOperation, Lr as OperationErrorSpecification, Lt as DocumentModelAction, M as PHRenownRainbowAdapterConfig, Ma as SkipHeaderOperations, Mi as SetAuthorWebsiteAction, Mn as Load_State, Mr as MutationUndoArgs, Mt as DeleteOperationExampleInput, N as PackageManagerArgs, Na as State, Ni as SetAuthorWebsiteInput, Nn as MakeEmpty, Nr as MutationUpdateChangeLogItemInputArgs, Nt as DeleteOperationInput, O as PHConnectSentry, Oa as SignalType, Oi as SchemaUndoAction, On as LoadFromInput, Or as MutationSetOperationReducerArgs, Ot as DeleteOperationAction, P as ParsedCmdResult, Pa as StateReducer, Pi as SetInitialStateAction, Pn as MakeMaybe, Pr as MutationUpdateOperationExampleArgs, Pt as DeleteStateExampleAction, Q as AddOperationErrorInput, Qi as SetOperationDescriptionInput, Qn as MutationDeleteOperationArgs, Qr as RedoAction, Qs as ProcessorApps, Qt as DocumentModelOperationExampleAction, R as ServiceAction, Ra as UndoActionInput, Ri as SetModelExtensionAction, Rn as Maybe, Rr as OperationIndex, Rt as DocumentModelDocument, S as PHConnectPwaUrlPattern, Sa as Set_Name, Si as SchemaLoadStateAction, Sn as ISigner, Sr as MutationSetOperationDescriptionArgs, St as DeleteChildDocumentInput, T as PHConnectRenown, Ta as SignalDispatch, Ti as SchemaRedoAction, Tn as IsDocumentOfType, Tr as MutationSetOperationErrorNameArgs, Tt as DeleteDocumentActionInput, U as ActionSigningHandler, Ua as UpdateOperationExampleInput, Ui as SetModelNameInput, Un as Mutation, Ur as PhAiToolAnnotations, Ut as DocumentModelInput, V as ActionErrorCallback, Va as UpdateChangeLogItemInput, Vi as SetModelIdInput, Vn as MoveOperationAction, Vr as PartialRecord, Vt as DocumentModelHeaderAction, W as ActionVerificationHandler, Wa as UpdateRelationshipAction, Wi as SetModuleDescriptionAction, Wn as MutationAddChangeLogItemInputArgs, Wr as PhAiToolDescriptor, Wt as DocumentModelLib, X as AddOperationAction, Xa as User, Xi as SetNameOperation, Xn as MutationDeleteChangeLogItemInputArgs, Xr as Query, Xs as IProcessorManager, Xt as DocumentModelOperationErrorAction, Y as AddModuleInput, Ya as UpgradeDocumentActionInput, Yi as SetNameActionInput, Yn as MutationAddStateExampleArgs, Yr as Publisher, Ys as IProcessorHostModuleBase, Yt as DocumentModelOperationAction, Z as AddOperationErrorAction, Za as ValidationError, Zi as SetOperationDescriptionAction, Zn as MutationDeleteModuleArgs, Zr as Redo, Zs as ProcessorApp, Zt as DocumentModelOperationErrorOperations, _ as PHConnectPwaCacheStrategy, _a as SetPreferredEditorAction, _i as ReplayDocumentOptions, _n as ID, _r as MutationSetModelIdArgs, _t as CreateDocumentAction, a as PHConnectAi, aa as SetOperationErrorTemplateAction, ac as TrackedProcessor, ai as ReorderChangeLogItemsAction, an as DocumentModelVersioningAction, ar as MutationRedoArgs, at as AddStateExampleInput, b as PHConnectPwaManifest, ba as SetStateSchemaAction, bi as SaveToFileHandle, bn as ISignal, br as MutationSetModuleNameArgs, bt as DeleteChangeLogItemAction, c as PHConnectDefaultDrive, ca as SetOperationNameInput, ci as ReorderModuleOperationsInput, cn as DocumentSpecification, cr as MutationReorderModulesArgs, ct as Author, d as PHConnectDriveSection, da as SetOperationSchemaAction, di as ReorderOperationErrorsAction, dn as EditorModule, dr as MutationReorderStateExamplesArgs, dt as ConfigEntryType, ea as SetOperationErrorCodeInput, ec as ProcessorFactory, ei as Reducer, en as DocumentModelOperationOperations, er as MutationDeleteOperationExampleArgs, et as AddOperationExampleInput, f as PHConnectDriveSections, fa as SetOperationSchemaInput, fi as ReorderOperationErrorsInput, fn as EditorProps, fr as MutationSetAuthorNameArgs, ft as CopyChildDocumentInput, g as PHConnectPwa, ga as SetOperationTemplateInput, gi as ReorderStateExamplesInput, gn as IAction, gr as MutationSetModelExtensionArgs, gt as CreateDocument, h as PHConnectPackages, ha as SetOperationTemplateAction, hi as ReorderStateExamplesAction, hn as GetDocumentOptions, hr as MutationSetModelDescriptionArgs, ht as CreateChildDocumentSignal, i as LogLevels, ia as SetOperationErrorNameInput, ic as ProcessorStatus, ii as RemoveRelationshipActionInput, in as DocumentModelUtils, ir as MutationPruneArgs, it as AddStateExampleAction, j as PHRenownPrivyAdapterConfig, ja as SkipHeaderOperationIndex, ji as SetAuthorNameInput, jn as LoadStateActionStateInput, jr as MutationSetStateSchemaArgs, jt as DeleteOperationExampleAction, k as PHPackageProvider, ka as SignatureVerificationHandler, ki as ScopeState, kn as LoadStateAction, kr as MutationSetOperationSchemaArgs, kt as DeleteOperationErrorAction, l as PHConnectDefaultDriveLocal, la as SetOperationReducerAction, li as ReorderModulesAction, ln as ENSInfo, lr as MutationReorderOperationErrorsArgs, lt as CodeExample, m as PHConnectInstance, ma as SetOperationScopeInput, mi as ReorderOperationExamplesInput, mn as FileInput, mr as MutationSetInitialStateArgs, mt as CreateChildDocumentInput, n as DrivePreserveStrategy, na as SetOperationErrorDescriptionInput, nc as ProcessorFilter, ni as ReleaseNewVersionAction, nn as DocumentModelStateAction, nr as MutationLoadStateArgs, nt as AddRelationshipAction, o as PHConnectApp, oa as SetOperationErrorTemplateInput, oi as ReorderChangeLogItemsInput, on as DocumentModelVersioningOperations, or as MutationReorderChangeLogItemsInputArgs, ot as AssertIsDocumentOfType, p as PHConnectDrives, pa as SetOperationScopeAction, pi as ReorderOperationExamplesAction, pn as Exact, pr as MutationSetAuthorWebsiteArgs, pt as CopyChildDocumentSignal, q as AddChangeLogItemInput, qa as UpdateStateExampleInput, qi as SetModuleNameInput, qn as MutationAddOperationErrorArgs, qr as PruneAction, qs as IProcessor, qt as DocumentModelModuleAction, r as LogLevel, ra as SetOperationErrorNameAction, rc as ProcessorRecord, ri as RemoveRelationshipAction, rn as DocumentModelStateOperations, rr as MutationMoveOperationArgs, rt as AddRelationshipActionInput, s as PHConnectBranding, sa as SetOperationNameAction, si as ReorderModuleOperationsAction, sn as DocumentOperationsIgnoreMap, sr as MutationReorderModuleOperationsArgs, st as AssertIsStateOfType, t as DrivePreserveStrategies, ta as SetOperationErrorDescriptionAction, tc as ProcessorFactoryBuilder, ti as ReducerOptions, tn as DocumentModelPHState, tr as MutationDeleteStateExampleArgs, tt as AddOperationInput, u as PHConnectDefaultDriveRemote, ua as SetOperationReducerInput, ui as ReorderModulesInput, un as EditorDispatch, ur as MutationReorderOperationExamplesArgs, ut as ConfigEntry, v as PHConnectPwaFileHandler, va as SetPreferredEditorActionInput, vi as RevisionsFilter, vn as IDocument, vr as MutationSetModelNameArgs, vt as CreateDocumentActionInput, w as PHConnectReactorFeatureFlags, wa as Signal, wi as SchemaPruneAction, wn as InputMaybe, wr as MutationSetOperationErrorDescriptionArgs, wt as DeleteDocumentAction, x as PHConnectPwaRuntimeCaching, xa as SetStateSchemaInput, xi as Scalars, xn as ISignalResult, xr as MutationSetNameArgs, xt as DeleteChangeLogItemInput, y as PHConnectPwaIcon, ya as SetPreferredEditorOperation, yi as SaveToFile, yn as IOperation, yr as MutationSetModuleDescriptionArgs, yt as CreateState, z as ServiceActions, za as UndoRedoAction, zi as SetModelExtensionInput, zn as MinimalBackupData, zr as OperationSpecification, zt as DocumentModelDocumentModelModule } from "./types-CpnWmiFY.js";
3
3
  import { i as PACKAGES_DEPENDENCIES, n as APPS_DEPENDENCIES, r as CLIS_DEPENDENCIES, t as ALL_POWERHOUSE_DEPENDENCIES } from "./constants-BP_gjn8g.js";
4
- import { $ as LegacySynchronizationUnit, A as TriggerData, B as RegistryPackageMap, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, F as PackageInfo, G as DriveInput, H as RegistryPackageStatus, I as PackageListItem, J as SharingType, K as GenerateNodesCopyIdGenerator, L as PackagePage, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, R as RegistryPackage, S as RemoveListenerInput, T as SetDriveIconInput, U as DocumentDrivePHState, V as RegistryPackageSource, W as DriveDocumentModelModule, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as GenerateNodesCopySrc, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node, z as RegistryPackageList } from "./types-D0P0CIQB.js";
4
+ import { $ as LegacySynchronizationUnit, A as TriggerData, B as RegistryPackageMap, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, F as PackageInfo, G as DriveInput, H as RegistryPackageStatus, I as PackageListItem, J as SharingType, K as GenerateNodesCopyIdGenerator, L as PackagePage, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, R as RegistryPackage, S as RemoveListenerInput, T as SetDriveIconInput, U as DocumentDrivePHState, V as RegistryPackageSource, W as DriveDocumentModelModule, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as GenerateNodesCopySrc, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node, z as RegistryPackageList } from "./types-YqLqb0Zb.js";
5
5
  import { n as buildTreeUrl, r as shortGitSha, t as GITHUB_REPO_URL } from "./index-C_iVZe7f.js";
6
6
  export { ALL_POWERHOUSE_DEPENDENCIES, APPS_DEPENDENCIES, ActionErrorCallback, ActionSignatureContext, ActionSigningHandler, ActionVerificationHandler, Actions, AddChangeLogItemAction, AddChangeLogItemInput, AddFileAction, AddFileInput, AddFolderAction, AddFolderInput, AddListenerAction, AddListenerInput, AddModuleAction, AddModuleInput, AddOperationAction, AddOperationErrorAction, AddOperationErrorInput, AddOperationExampleAction, AddOperationExampleInput, AddOperationInput, AddRelationshipAction, AddRelationshipActionInput, AddStateExampleAction, AddStateExampleInput, AddTriggerAction, AddTriggerInput, AnalyticsDimension, AnalyticsOperand, AnalyticsQuery, AnalyticsSeries, AnalyticsSeriesInput, AnalyticsSeriesQuery, AnalyticsUpdateCallback, AssertIsDocumentOfType, AssertIsStateOfType, Author, CLIS_DEPENDENCIES, CodeExample, CompoundAnalyticsExpression, CompoundAnalyticsInputs, CompoundAnalyticsQuery, ConfigEntry, ConfigEntryType, ConversionMetric, CopyChildDocumentInput, CopyChildDocumentSignal, CopyNodeAction, CopyNodeInput, CreateChildDocumentInput, CreateChildDocumentSignal, CreateDocument, CreateDocumentAction, CreateDocumentActionInput, CreateState, DeleteChangeLogItemAction, DeleteChangeLogItemInput, DeleteChildDocumentInput, DeleteChildDocumentSignal, DeleteDocumentAction, DeleteDocumentActionInput, DeleteModuleAction, DeleteModuleInput, DeleteNodeAction, DeleteNodeInput, DeleteOperationAction, DeleteOperationErrorAction, DeleteOperationErrorInput, DeleteOperationExampleAction, DeleteOperationExampleInput, DeleteOperationInput, DeleteStateExampleAction, DeleteStateExampleInput, DocumentAction, DocumentDriveAction, DocumentDriveDocument, DocumentDriveDriveAction, DocumentDriveDriveOperations, DocumentDriveGlobalState, DocumentDriveLocalState, DocumentDriveNodeAction, DocumentDriveNodeOperations, DocumentDrivePHState, DocumentModelAction, DocumentModelDocument, DocumentModelDocumentModelModule, DocumentModelGlobalState, DocumentModelHeaderAction, DocumentModelHeaderOperations, DocumentModelInput, DocumentModelLib, DocumentModelLocalState, DocumentModelModule, DocumentModelModuleAction, DocumentModelModuleOperations, DocumentModelOperationAction, DocumentModelOperationErrorAction, DocumentModelOperationErrorOperations, DocumentModelOperationExampleAction, DocumentModelOperationExampleOperations, DocumentModelOperationOperations, DocumentModelPHState, DocumentModelStateAction, DocumentModelStateOperations, DocumentModelUtils, DocumentModelVersioningAction, DocumentModelVersioningOperations, DocumentOperationsIgnoreMap, DocumentSpecification, DriveDocumentModelModule, DriveInput, DrivePreserveStrategies, DrivePreserveStrategy, ENSInfo, EditorDispatch, EditorModule, EditorProps, Exact, FileInput, FileNode, FolderNode, GITHUB_REPO_URL, GenerateNodesCopyIdGenerator, GenerateNodesCopySrc, GetDocumentOptions, IAction, IAnalyticsStore, ID, IDocument, IOperation, IProcessor, IProcessorDispatch, IProcessorHostModuleBase, IProcessorManager, ISignal, ISignalResult, ISigner, Incremental, InputMaybe, IsDocumentOfType, IsStateOfType, LegacyAddFileAction, LegacyAddFileInput, LegacySynchronizationUnit, Listener, ListenerCallInfo, ListenerCallInfoInput, ListenerFilter, ListenerFilterInput, ListenerInput, LoadFromFile, LoadFromInput, LoadStateAction, LoadStateActionInput, LoadStateActionStateInput, Load_State, LogLevel, LogLevels, MakeEmpty, MakeMaybe, MakeOptional, Manifest, MappedOperation, Maybe, MinimalBackupData, ModuleSpecification, MoveNodeAction, MoveNodeInput, MoveOperationAction, MoveOperationInput, MultiCurrencyConversion, Mutation, MutationAddChangeLogItemInputArgs, MutationAddModuleArgs, MutationAddOperationArgs, MutationAddOperationErrorArgs, MutationAddOperationExampleArgs, MutationAddStateExampleArgs, MutationDeleteChangeLogItemInputArgs, MutationDeleteModuleArgs, MutationDeleteOperationArgs, MutationDeleteOperationErrorArgs, MutationDeleteOperationExampleArgs, MutationDeleteStateExampleArgs, MutationLoadStateArgs, MutationMoveOperationArgs, MutationPruneArgs, MutationRedoArgs, MutationReorderChangeLogItemsInputArgs, MutationReorderModuleOperationsArgs, MutationReorderModulesArgs, MutationReorderOperationErrorsArgs, MutationReorderOperationExamplesArgs, MutationReorderStateExamplesArgs, MutationSetAuthorNameArgs, MutationSetAuthorWebsiteArgs, MutationSetInitialStateArgs, MutationSetModelDescriptionArgs, MutationSetModelExtensionArgs, MutationSetModelIdArgs, MutationSetModelNameArgs, MutationSetModuleDescriptionArgs, MutationSetModuleNameArgs, MutationSetNameArgs, MutationSetOperationDescriptionArgs, MutationSetOperationErrorCodeArgs, MutationSetOperationErrorDescriptionArgs, MutationSetOperationErrorNameArgs, MutationSetOperationErrorTemplateArgs, MutationSetOperationNameArgs, MutationSetOperationReducerArgs, MutationSetOperationSchemaArgs, MutationSetOperationTemplateArgs, MutationSetStateSchemaArgs, MutationUndoArgs, MutationUpdateChangeLogItemInputArgs, MutationUpdateOperationExampleArgs, MutationUpdateStateExampleArgs, NOOPAction, Node, OperationErrorSpecification, OperationIndex, OperationSpecification, OperationsByScope, PACKAGES_DEPENDENCIES, PHConnectAi, PHConnectApp, PHConnectBranding, PHConnectDefaultDrive, PHConnectDefaultDriveLocal, PHConnectDefaultDriveRemote, PHConnectDriveSection, PHConnectDriveSections, PHConnectDrives, PHConnectInstance, PHConnectPackages, PHConnectPwa, PHConnectPwaCacheStrategy, PHConnectPwaFileHandler, PHConnectPwaIcon, PHConnectPwaManifest, PHConnectPwaRuntimeCaching, PHConnectPwaUrlPattern, PHConnectReactor, PHConnectReactorFeatureFlags, PHConnectRenown, PHConnectRenownAdapters, PHConnectRuntimeConfig, PHConnectSentry, PHPackageProvider, PHReactorRenown, PHRenownPrivyAdapterConfig, PHRenownRainbowAdapterConfig, PackageInfo, PackageListItem, PackageManagerArgs, PackagePage, ParsedCmdResult, PartialRecord, PartialState, PathValidation, PhAiToolAnnotations, PhAiToolDescriptor, PowerhouseConfig, PowerhouseModule, PowerhousePackage, ProcessorApp, ProcessorApps, ProcessorDispatchResult, ProcessorFactory, ProcessorFactoryBuilder, ProcessorFilter, ProcessorRecord, ProcessorStatus, Prune, PruneAction, PruneActionInput, Publisher, PullResponderTriggerData, PullResponderTriggerDataInput, Query, Redo, RedoAction, RedoActionInput, Reducer, ReducerOptions, RegistryPackage, RegistryPackageList, RegistryPackageMap, RegistryPackageSource, RegistryPackageStatus, ReleaseNewVersionAction, RemoveListenerAction, RemoveListenerInput, RemoveRelationshipAction, RemoveRelationshipActionInput, RemoveTriggerAction, RemoveTriggerInput, ReorderChangeLogItemsAction, ReorderChangeLogItemsInput, ReorderModuleOperationsAction, ReorderModuleOperationsInput, ReorderModulesAction, ReorderModulesInput, ReorderOperationErrorsAction, ReorderOperationErrorsInput, ReorderOperationExamplesAction, ReorderOperationExamplesInput, ReorderStateExamplesAction, ReorderStateExamplesInput, ReplayDocumentOptions, RevisionsFilter, SaveToFile, SaveToFileHandle, Scalars, SchemaLoadStateAction, SchemaNOOPAction, SchemaPruneAction, SchemaRedoAction, SchemaSetNameAction, SchemaSetPreferredEditorAction, SchemaUndoAction, ScopeState, ServiceAction, ServiceActions, SetAuthorNameAction, SetAuthorNameInput, SetAuthorWebsiteAction, SetAuthorWebsiteInput, SetAvailableOfflineAction, SetAvailableOfflineInput, SetDriveIconAction, SetDriveIconInput, SetDriveNameAction, SetDriveNameInput, SetInitialStateAction, SetInitialStateInput, SetModelDescriptionAction, SetModelDescriptionInput, SetModelExtensionAction, SetModelExtensionInput, SetModelIdAction, SetModelIdInput, SetModelNameAction, SetModelNameInput, SetModuleDescriptionAction, SetModuleDescriptionInput, SetModuleNameAction, SetModuleNameInput, SetNameAction, SetNameActionInput, SetNameOperation, SetOperationDescriptionAction, SetOperationDescriptionInput, SetOperationErrorCodeAction, SetOperationErrorCodeInput, SetOperationErrorDescriptionAction, SetOperationErrorDescriptionInput, SetOperationErrorNameAction, SetOperationErrorNameInput, SetOperationErrorTemplateAction, SetOperationErrorTemplateInput, SetOperationNameAction, SetOperationNameInput, SetOperationReducerAction, SetOperationReducerInput, SetOperationSchemaAction, SetOperationSchemaInput, SetOperationScopeAction, SetOperationScopeInput, SetOperationTemplateAction, SetOperationTemplateInput, SetPreferredEditorAction, SetPreferredEditorActionInput, SetPreferredEditorOperation, SetSharingTypeAction, SetSharingTypeInput, SetStateSchemaAction, SetStateSchemaInput, Set_Name, Set_PreferredEditor, SharingType, Signal, SignalDispatch, SignalResult, SignalResults, SignalType, SignatureVerificationHandler, SigningParameters, SkipHeaderOperationIndex, SkipHeaderOperations, State, StateReducer, SubgraphModule, TrackedProcessor, TransmitterType, Trigger, TriggerData, TriggerInput, TriggerType, Undo, UndoAction, UndoActionInput, UndoRedoAction, UpdateChangeLogItemAction, UpdateChangeLogItemInput, UpdateFileAction, UpdateFileInput, UpdateNodeAction, UpdateNodeInput, UpdateOperationExampleAction, UpdateOperationExampleInput, UpdateRelationshipAction, UpdateRelationshipActionInput, UpdateStateExampleAction, UpdateStateExampleInput, UpgradeDocumentAction, UpgradeDocumentActionInput, User, ValidationError, buildTreeUrl, shortGitSha };
@@ -1,2 +1,2 @@
1
- import { $s as ProcessorDispatchResult, Ac as WebhookSignatureEncoding, Bs as IBaseRelationalDb, Cc as WebhookEndpointInfo, Cd as DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, Dc as WebhookReply, Ec as WebhookPolicy, Fs as createRelationalDb, Gs as RelationalDbProcessor, Hs as IRelationalDbProcessor, Is as hashNamespace, Js as IProcessorDispatch, Ks as RelationalDbProcessorClass, Ls as relationalDbToQueryBuilder, Mc as WebhookVerification, Ns as createNamespacedDb, Oc as WebhookRequest, Ps as createNamespacedQueryBuilder, Qs as ProcessorApps, Rs as ExtractProcessorSchemaOrSelf, Sc as ScopedRouteHandle, Tc as WebhookHashAlgorithm, Td as PROCESSOR_APPS, Us as IRelationalQueryBuilder, Vs as IRelationalDb, Ws as IRelationalQueryMethods, Xs as IProcessorManager, Ys as IProcessorHostModuleBase, Zs as ProcessorApp, _c as RouteMethod, ac as TrackedProcessor, bc as RouteTransport, cc as IWebhookEndpoints, dc as RouteActor, ec as ProcessorFactory, fc as RouteAuth, gc as RouteHandler, hc as RouteContext, ic as ProcessorStatus, jc as WebhookSpec, kc as WebhookScheme, lc as IWebhookScope, mc as RouteBody, nc as ProcessorFilter, oc as AuthorizerResult, pc as RouteAuthorizer, qs as IProcessor, rc as ProcessorRecord, sc as IHttpScope, tc as ProcessorFactoryBuilder, uc as NodeRouteSpec, vc as RouteOptions, wc as WebhookField, wd as DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, xc as RouteUser, yc as RouteSpec, zs as HashAlgorithms } from "../types-__rCq4pt.js";
1
+ import { $s as ProcessorDispatchResult, Ac as WebhookSignatureEncoding, Bs as IBaseRelationalDb, Cc as WebhookEndpointInfo, Cd as DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, Dc as WebhookReply, Ec as WebhookPolicy, Fs as createRelationalDb, Gs as RelationalDbProcessor, Hs as IRelationalDbProcessor, Is as hashNamespace, Js as IProcessorDispatch, Ks as RelationalDbProcessorClass, Ls as relationalDbToQueryBuilder, Mc as WebhookVerification, Ns as createNamespacedDb, Oc as WebhookRequest, Ps as createNamespacedQueryBuilder, Qs as ProcessorApps, Rs as ExtractProcessorSchemaOrSelf, Sc as ScopedRouteHandle, Tc as WebhookHashAlgorithm, Td as PROCESSOR_APPS, Us as IRelationalQueryBuilder, Vs as IRelationalDb, Ws as IRelationalQueryMethods, Xs as IProcessorManager, Ys as IProcessorHostModuleBase, Zs as ProcessorApp, _c as RouteMethod, ac as TrackedProcessor, bc as RouteTransport, cc as IWebhookEndpoints, dc as RouteActor, ec as ProcessorFactory, fc as RouteAuth, gc as RouteHandler, hc as RouteContext, ic as ProcessorStatus, jc as WebhookSpec, kc as WebhookScheme, lc as IWebhookScope, mc as RouteBody, nc as ProcessorFilter, oc as AuthorizerResult, pc as RouteAuthorizer, qs as IProcessor, rc as ProcessorRecord, sc as IHttpScope, tc as ProcessorFactoryBuilder, uc as NodeRouteSpec, vc as RouteOptions, wc as WebhookField, wd as DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, xc as RouteUser, yc as RouteSpec, zs as HashAlgorithms } from "../types-CpnWmiFY.js";
2
2
  export { AuthorizerResult, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, ExtractProcessorSchemaOrSelf, HashAlgorithms, IBaseRelationalDb, IHttpScope, IProcessor, IProcessorDispatch, IProcessorHostModuleBase, IProcessorManager, IRelationalDb, IRelationalDbProcessor, IRelationalQueryBuilder, IRelationalQueryMethods, IWebhookEndpoints, IWebhookScope, NodeRouteSpec, PROCESSOR_APPS, ProcessorApp, ProcessorApps, ProcessorDispatchResult, ProcessorFactory, ProcessorFactoryBuilder, ProcessorFilter, ProcessorRecord, ProcessorStatus, RelationalDbProcessor, RelationalDbProcessorClass, RouteActor, RouteAuth, RouteAuthorizer, RouteBody, RouteContext, RouteHandler, RouteMethod, RouteOptions, RouteSpec, RouteTransport, RouteUser, ScopedRouteHandle, TrackedProcessor, WebhookEndpointInfo, WebhookField, WebhookHashAlgorithm, WebhookPolicy, WebhookReply, WebhookRequest, WebhookScheme, WebhookSignatureEncoding, WebhookSpec, WebhookVerification, createNamespacedDb, createNamespacedQueryBuilder, createRelationalDb, hashNamespace, relationalDbToQueryBuilder };
@@ -1,7 +1,8 @@
1
- import { B as DEFAULT_REGISTRY_URL } from "../types-__rCq4pt.js";
2
- import { B as RegistryPackageMap, F as PackageInfo, H as RegistryPackageStatus, I as PackageListItem, L as PackagePage, R as RegistryPackage, V as RegistryPackageSource, z as RegistryPackageList } from "../types-D0P0CIQB.js";
1
+ import { B as DEFAULT_REGISTRY_URL } from "../types-CpnWmiFY.js";
2
+ import { B as RegistryPackageMap, F as PackageInfo, H as RegistryPackageStatus, I as PackageListItem, L as PackagePage, R as RegistryPackage, V as RegistryPackageSource, z as RegistryPackageList } from "../types-YqLqb0Zb.js";
3
3
  import { slimManifest } from "./manifest-slim.js";
4
4
  import { toCdnUrl } from "./urls.js";
5
+ import { getUpdateTarget, parseInstallSpec } from "./updates.js";
5
6
 
6
7
  //#region registry/registry.d.ts
7
8
  /**
@@ -79,5 +80,5 @@ interface NpmUnpublishResult {
79
80
  */
80
81
  declare function npmUnpublish(options: NpmUnpublishOptions): Promise<NpmUnpublishResult>;
81
82
  //#endregion
82
- export { DEFAULT_REGISTRY_URL, NpmPublishOptions, NpmPublishResult, NpmUnpublishOptions, NpmUnpublishResult, PackageInfo, PackageListItem, PackagePage, RegistryPackage, RegistryPackageList, RegistryPackageMap, RegistryPackageSource, RegistryPackageStatus, ResolveRegistryUrlOptions, checkNpmAuth, npmPublish, npmUnpublish, registryAuthKey, resolveRegistryUrl, slimManifest, toCdnUrl, writeRegistryAuthToken };
83
+ export { DEFAULT_REGISTRY_URL, NpmPublishOptions, NpmPublishResult, NpmUnpublishOptions, NpmUnpublishResult, PackageInfo, PackageListItem, PackagePage, RegistryPackage, RegistryPackageList, RegistryPackageMap, RegistryPackageSource, RegistryPackageStatus, ResolveRegistryUrlOptions, checkNpmAuth, getUpdateTarget, npmPublish, npmUnpublish, parseInstallSpec, registryAuthKey, resolveRegistryUrl, slimManifest, toCdnUrl, writeRegistryAuthToken };
83
84
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../registry/registry.ts"],"mappings":";;;;;;;;;;iBAgBgB,eAAA,CAAgB,WAAA;AAAA,UAQf,yBAAA;;EAEf,QAAA;EAV6B;EAY7B,WAAA;EAZ8B;EAc9B,GAAA,GAAM,MAAA;AAAA;;;;iBAMQ,kBAAA,CAAmB,OAAA,EAAS,yBAAA;;;;;iBAiBtB,YAAA,CAAa,WAAA,WAAsB,OAAA;AAAA,UAIxC,iBAAA;EArBiB;EAuBhC,WAAA;EAvB0C;EAyB1C,GAAA;EARoB;EAUpB,IAAA;;;EAGA,SAAA;AAAA;AAAA,UAGe,gBAAA;;EAEf,MAAA;AAAA;;;;;;AAFF;;;iBAasB,UAAA,CACpB,OAAA,EAAS,iBAAA,GACR,OAAA,CAAQ,gBAAA;;AAFX;;;;iBAiBsB,sBAAA,CACpB,WAAA,UACA,KAAA,WACC,OAAA;AAAA,UAmBc,mBAAA;EArCP;EAuCR,WAAA;EAxCS;EA0CT,GAAA;EAzCC;EA2CD,IAAA;EA3CyB;EA6CzB,IAAA;EA9BoB;EAgCpB,SAAA;AAAA;AAAA,UAGe,kBAAA;EAlCf;EAoCA,MAAA;AAAA;;;AAfF;;;iBAuBsB,YAAA,CACpB,OAAA,EAAS,mBAAA,GACR,OAAA,CAAQ,kBAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../registry/registry.ts"],"mappings":";;;;;;;;;;;iBAgBgB,eAAA,CAAgB,WAAA;AAAA,UAQf,yBAAA;;EAEf,QAAA;EAVc;EAYd,WAAA;;EAEA,GAAA,GAAM,MAAA;AAAA;AANR;;;AAAA,iBAYgB,kBAAA,CAAmB,OAAA,EAAS,yBAAA;;;;;iBAiBtB,YAAA,CAAa,WAAA,WAAsB,OAAA;AAAA,UAIxC,iBAAA;EArBD;EAuBd,WAAA;;EAEA,GAAA;EAzBmE;EA2BnE,IAAA;EAVgC;;EAahC,SAAA;AAAA;AAAA,UAGe,gBAAA;EAZiB;EAchC,MAAA;AAAA;;;;;;;AAFF;;iBAasB,UAAA,CACpB,OAAA,EAAS,iBAAA,GACR,OAAA,CAAQ,gBAAA;;;AAFX;;;iBAiBsB,sBAAA,CACpB,WAAA,UACA,KAAA,WACC,OAAA;AAAA,UAmBc,mBAAA;EArCd;EAuCD,WAAA;EAvCQ;EAyCR,GAAA;EA1CA;EA4CA,IAAA;EA3CS;EA6CT,IAAA;EA7CyB;EA+CzB,SAAA;AAAA;AAAA,UAGe,kBAAA;EAhCP;EAkCR,MAAA;AAAA;;;;AAfF;;iBAuBsB,YAAA,CACpB,OAAA,EAAS,mBAAA,GACR,OAAA,CAAQ,kBAAA"}
@@ -1,5 +1,6 @@
1
1
  import { slimManifest } from "./manifest-slim.js";
2
2
  import { toCdnUrl } from "./urls.js";
3
+ import { getUpdateTarget, parseInstallSpec } from "./updates.js";
3
4
  import { promises, readFileSync } from "node:fs";
4
5
  import { homedir } from "node:os";
5
6
  import { join } from "node:path";
@@ -154,6 +155,6 @@ async function npmUnpublish(options) {
154
155
  ], { cwd }) };
155
156
  }
156
157
  //#endregion
157
- export { DEFAULT_REGISTRY_URL, checkNpmAuth, npmPublish, npmUnpublish, registryAuthKey, resolveRegistryUrl, slimManifest, toCdnUrl, writeRegistryAuthToken };
158
+ export { DEFAULT_REGISTRY_URL, checkNpmAuth, getUpdateTarget, npmPublish, npmUnpublish, parseInstallSpec, registryAuthKey, resolveRegistryUrl, slimManifest, toCdnUrl, writeRegistryAuthToken };
158
159
 
159
160
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["fs"],"sources":["../../clis/constants.ts","../../clis/file-system/get-config.ts","../../clis/file-system/spawn-async.ts","../../registry/registry.ts"],"sourcesContent":["import { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport type { Manifest } from \"../document-model/types.js\";\nimport type { PowerhouseConfig } from \"./types.js\";\n\nexport const SERVICE_ACTIONS = [\n \"start\",\n \"stop\",\n \"status\",\n \"setup\",\n \"restart\",\n] as const;\n\nexport const SECONDS_IN_DAY = 24 * 60 * 60;\nexport const DEFAULT_EXPIRY_DAYS = 7;\nexport const DEFAULT_EXPIRY_SECONDS = DEFAULT_EXPIRY_DAYS * SECONDS_IN_DAY;\n\nexport const DRIVES_PRESERVE_STRATEGIES = [\n \"preserve-all\",\n \"preserve-by-url-and-detach\",\n] as const;\n\nexport const LOG_LEVELS = [\n \"debug\",\n \"info\",\n \"warn\",\n \"error\",\n \"verbose\",\n] as const;\n\nexport const DEFAULT_TIMEOUT = 300 as const;\n\nexport const DEFAULT_CONNECT_STUDIO_PORT = 3000 as const;\n\nexport const DEFAULT_VETRA_CONNECT_PORT = 3001 as const;\n\nexport const DEFAULT_CONNECT_PREVIEW_PORT = 4173 as const;\n\nexport const DEFAULT_CONNECT_OUTDIR = \".ph/connect-build/dist/\" as const;\n\nexport const DEFAULT_RENOWN_URL = \"https://www.renown.id\" as const;\n\nexport const DEFAULT_REGISTRY_URL = \"https://registry.vetra.io\" as const;\n\nexport const DEFAULT_SWITCHBOARD_PORT = 4001 as const;\n\n// Per-project dev-server port bands. `ph init` assigns each project a port\n// triple derived from its name, so two projects never collide and an agent's\n// MCP URL can be baked into .mcp.json before a session starts.\n//\n// Two hard constraints picked these bands, both below 10000:\n//\n// 1. Below the OS ephemeral range. Linux allocates outbound source ports\n// from 32768-60999 (`/proc/sys/net/ipv4/ip_local_port_range`); macOS and\n// Windows start at 49152. A listener parked in that window can lose a\n// race to a transient outbound socket, which would surface as a\n// `--strictPort` failure blaming a project conflict that does not exist.\n// 2. Below 10000, which is where ph-clint starts. ph-clint derives its own\n// per-CLI ports by hashing into 10000-59900, so staying under 10000\n// keeps the two schemes from ever contending.\n//\n// Within those limits the blocks were chosen by measuring which ports the\n// Powerhouse repos actually reference: 2000-2999 has none, 7000-7999 has one,\n// 6000-6999 has five. See PROJECT_PORT_DENYLIST in project-ports.ts for the\n// individual ports skipped inside them.\nexport const PROJECT_PORT_BAND_SIZE = 1000 as const;\nexport const PROJECT_PORT_BAND_SWITCHBOARD = 7000 as const;\nexport const PROJECT_PORT_BAND_STUDIO = 6000 as const;\nexport const PROJECT_PORT_BAND_VETRA_CONNECT = 2000 as const;\n\nexport const DEFAULT_VETRA_DRIVE_ID = \"vetra\" as const;\n\nexport const MINIMUM_NODE_VERSION = \"24.0.0\" as const;\nexport const PH_BIN = \"ph-cli-legacy\" as const;\nexport const POWERHOUSE_CONFIG_FILE = \"powerhouse.config.json\" as const;\nexport const PH_GLOBAL_DIR_NAME = \".ph\" as const;\n// Keep PH_GLOBAL_PROJECT_NAME for backwards compatibility\nexport const PH_GLOBAL_PROJECT_NAME = PH_GLOBAL_DIR_NAME;\n\nexport const HOME_DIR = homedir();\n\nexport const POWERHOUSE_GLOBAL_DIR = join(HOME_DIR, PH_GLOBAL_DIR_NAME);\n\n// Workspace packages that go in peerDependencies of every generated project.\nexport const VERSIONED_PEER_DEPENDENCIES = [\n \"document-model\",\n \"@powerhousedao/reactor-browser\",\n];\n\ntype PeerSpec = { peer: string; dev: string };\n\nexport const REACTOR_API_PACKAGE = \"@powerhousedao/reactor-api\";\nexport const ANALYTICS_ENGINE_CORE_PACKAGE =\n \"@powerhousedao/analytics-engine-core\";\nexport const GRAPHQL_PACKAGE = \"graphql\";\nexport const GRAPHQL_TAG_PACKAGE = \"graphql-tag\";\n\n// External peerDependencies of every generated project.\n// `peer` is the consumer-facing range; `dev` is the exact build-tested pin.\n// graphql / graphql-tag are always-on because the workspace packages pulled\n// in by every `ph init` project (codegen, reactor-api, reactor-browser,\n// vetra-packages) declare them as peers — even projects without subgraphs\n// need them in scope so pnpm hoists a single graphql instance.\nexport const PEER_EXTERNAL_DEPENDENCIES = {\n [GRAPHQL_PACKAGE]: { peer: \"^16\", dev: \"16.12.0\" },\n [GRAPHQL_TAG_PACKAGE]: { peer: \"^2\", dev: \"2.12.6\" },\n react: { peer: \"^19\", dev: \"19.2.6\" },\n \"react-dom\": { peer: \"^19\", dev: \"19.2.6\" },\n zod: { peer: \"^4\", dev: \"4.3.6\" },\n} as const satisfies Record<string, PeerSpec>;\n\n// Per-feature deps added dynamically by codegen when required.\nexport const FEATURE_DEPENDENCIES = {\n analyticsProcessor: {\n peerVersioned: [ANALYTICS_ENGINE_CORE_PACKAGE],\n peerExternal: {},\n },\n} as const satisfies Record<\n string,\n { peerVersioned: readonly string[]; peerExternal: Record<string, PeerSpec> }\n>;\n\nexport const VERSIONED_DEPENDENCIES = [\n ...VERSIONED_PEER_DEPENDENCIES,\n ...FEATURE_DEPENDENCIES.analyticsProcessor.peerVersioned,\n];\n\n// Transitive dependencies whose postinstall scripts the generated project\n// trusts. Mirrors the `allowBuilds` map in the boilerplate's\n// pnpm-workspace.yaml and is also passed as `--allow-build` flags to\n// `pnpm dlx @powerhousedao/ph-cli init` so pnpm 11's strict-dep-builds\n// default doesn't prompt during the outer dlx download.\nexport const BOILERPLATE_ALLOWED_BUILDS = [\n \"@apollo/protobufjs\",\n \"@datadog/pprof\",\n \"@parcel/watcher\",\n \"@reown/appkit\",\n \"bufferutil\",\n \"esbuild\",\n \"keccak\",\n \"protobufjs\",\n \"utf-8-validate\",\n] as const;\n\n// Single-version pins the boilerplate enforces on generated projects,\n// avoiding duplicates from coexisting version ranges. Rendered as pnpm\n// `overrides` (pnpm-workspace.yaml) and as yarn v1 `resolutions`\n// (package.json). Generated-project only — never change the monorepo\n// catalog for this (a re-resolution there pulls a tsc-crashing TS6 beta).\nexport const BOILERPLATE_DEPENDENCY_OVERRIDES = {\n \"date-fns\": \"4.3.0\",\n vite: \"8.0.14\",\n rolldown: \"1.0.2\",\n} as const satisfies Record<string, string>;\n\nexport const VERSIONED_DEV_DEPENDENCIES = [\n \"@powerhousedao/ph-cli\",\n \"@powerhousedao/reactor\",\n \"@powerhousedao/shared\",\n \"@powerhousedao/connect\",\n \"@powerhousedao/design-system\",\n];\n\nexport const packageJsonExports = {\n \".\": {\n types: \"./dist/types/index.d.ts\",\n browser: \"./dist/browser/index.js\",\n node: \"./dist/node/index.mjs\",\n },\n \"./reactor\": {\n types: \"./dist/types/reactor/index.d.ts\",\n browser: \"./dist/browser/reactor/index.js\",\n },\n \"./document-models\": {\n types: \"./dist/types/document-models/index.d.ts\",\n browser: \"./dist/browser/document-models/index.js\",\n node: \"./dist/node/document-models/index.mjs\",\n },\n \"./document-models/*\": {\n types: \"./dist/types/document-models/*/index.d.ts\",\n browser: \"./dist/browser/document-models/*/index.js\",\n node: \"./dist/node/document-models/*/index.mjs\",\n },\n \"./editors\": {\n types: \"./dist/types/editors/index.d.ts\",\n browser: \"./dist/browser/editors/index.js\",\n node: \"./dist/node/editors/index.mjs\",\n },\n \"./editors/*\": {\n types: \"./dist/types/editors/*/editor.d.ts\",\n browser: \"./dist/browser/editors/*/editor.js\",\n node: \"./dist/node/editors/*/editor.mjs\",\n },\n \"./subgraphs\": {\n types: \"./dist/types/subgraphs/index.d.ts\",\n browser: \"./dist/browser/subgraphs/index.js\",\n node: \"./dist/node/subgraphs/index.mjs\",\n },\n \"./processors\": {\n types: \"./dist/types/processors/index.d.ts\",\n browser: \"./dist/browser/processors/index.js\",\n node: \"./dist/node/processors/index.mjs\",\n },\n \"./manifest\": \"./dist/powerhouse.manifest.json\",\n \"./style.css\": \"./dist/style.css\",\n} as const;\n\nexport const packageScripts = {\n \"test:watch\": \"vitest\",\n lint: \"oxlint --type-aware --type-check\",\n \"lint:fix\": \"oxlint --type-aware --type-check --fix\",\n format: \"oxfmt\",\n \"format:check\": \"oxfmt --check\",\n tsc: \"tsc\",\n \"tsc:watch\": \"tsc --watch\",\n generate: \"ph-cli generate\",\n connect: \"ph-cli connect\",\n build: \"ph-cli build\",\n reactor: \"ph-cli reactor\",\n service: \"ph-cli service\",\n vetra: \"ph-cli vetra\",\n \"service-startup\":\n \"bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-startup.sh\",\n \"service-unstartup\":\n \"bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh\",\n} as const;\n\nexport const externalDependencies = {} as const;\n\n// eslint/prettier devDependencies present in projects scaffolded before the oxc migration.\n// Stripped from package.json during `ph migrate`.\nexport const LEGACY_LINT_FORMAT_DEPENDENCIES = [\n \"@eslint/js\",\n \"eslint\",\n \"eslint-config-prettier\",\n \"eslint-plugin-prettier\",\n \"eslint-plugin-react\",\n \"eslint-plugin-react-hooks\",\n \"globals\",\n \"prettier\",\n \"typescript-eslint\",\n] as const;\n\n// Legacy lint/format config files written by eslint/prettier boilerplate.\n// Removed from the project root during `ph migrate`.\nexport const LEGACY_LINT_FORMAT_FILES = [\n \"eslint.config.js\",\n \"eslint.config.mjs\",\n \"eslint.config.cjs\",\n \"eslint.config.ts\",\n \".eslintrc\",\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.json\",\n \".eslintrc.yml\",\n \".eslintrc.yaml\",\n \".eslintignore\",\n \".prettierrc\",\n \".prettierrc.js\",\n \".prettierrc.cjs\",\n \".prettierrc.json\",\n \".prettierrc.yml\",\n \".prettierrc.yaml\",\n \"prettier.config.js\",\n \"prettier.config.cjs\",\n \"prettier.config.mjs\",\n \".prettierignore\",\n] as const;\n\nexport const externalDevDependencies = {\n \"@electric-sql/pglite\": \"0.3.15\",\n \"@electric-sql/pglite-tools\": \"0.2.20\",\n \"@powerhousedao/document-engineering\": \"1.40.5\",\n \"@tailwindcss/cli\": \"^4.1.18\",\n \"@tailwindcss/vite\": \"^4.1.18\",\n \"@types/node\": \"^24.9.2\",\n \"@types/react\": \"^19.2.3\",\n \"@types/react-dom\": \"^19.2.3\",\n \"@vitejs/plugin-react\": \"^6.0.1\",\n \"@vitest/coverage-v8\": \"4.1.1\",\n oxfmt: \"0.55.0\",\n oxlint: \"1.70.0\",\n \"oxlint-tsgolint\": \"0.23.0\",\n tailwindcss: \"^4.1.16\",\n typescript: \"^5.9.3\",\n vite: \"^8.0.10\",\n \"vite-tsconfig-paths\": \"6.1.1\",\n vitest: \"4.1.1\",\n} as const;\n\nexport const defaultManifest: Manifest = {\n name: \"\",\n description: \"\",\n category: \"\",\n publisher: {\n name: \"\",\n url: \"\",\n },\n documentModels: [],\n editors: [],\n apps: [],\n subgraphs: [],\n processors: [],\n};\n\nconst DEFAULT_DOCUMENT_MODELS_DIR = \"./document-models\";\nconst DEFAULT_EDITORS_DIR = \"./editors\";\nconst DEFAULT_PROCESSORS_DIR = \"./processors\";\nconst DEFAULT_SUBGRAPHS_DIR = \"./subgraphs\";\nconst DEFAULT_IMPORT_SCRIPTS_DIR = \"./scripts\";\nconst DEFAULT_SKIP_FORMAT = false;\nconst DEFAULT_LOG_LEVEL = \"info\";\n\nexport const DEFAULT_CONFIG: PowerhouseConfig = {\n documentModelsDir: DEFAULT_DOCUMENT_MODELS_DIR,\n editorsDir: DEFAULT_EDITORS_DIR,\n processorsDir: DEFAULT_PROCESSORS_DIR,\n subgraphsDir: DEFAULT_SUBGRAPHS_DIR,\n importScriptsDir: DEFAULT_IMPORT_SCRIPTS_DIR,\n skipFormat: DEFAULT_SKIP_FORMAT,\n logLevel: DEFAULT_LOG_LEVEL,\n auth: {\n enabled: false,\n admins: [],\n },\n};\n","import { readFileSync } from \"node:fs\";\nimport { DEFAULT_CONFIG } from \"../constants.js\";\nimport type { PowerhouseConfig } from \"../types.js\";\n\nexport function getConfig(path = \"./powerhouse.config.json\") {\n let config: PowerhouseConfig = { ...DEFAULT_CONFIG };\n try {\n const configStr = readFileSync(path, \"utf-8\");\n const userConfig = JSON.parse(configStr) as PowerhouseConfig;\n config = { ...config, ...userConfig };\n } catch {\n // console.warn(\"No powerhouse.config.json found, using defaults\");\n }\n\n return config;\n}\n","import spawn from \"cross-spawn\";\n\nexport function spawnAsync(\n command: string,\n args: string[],\n options: {\n cwd?: string;\n env?: NodeJS.ProcessEnv;\n } = {},\n): Promise<string> {\n return new Promise((resolve, reject) => {\n // cross-spawn rather than node:child_process.spawn. On Windows npm, pnpm\n // and yarn are all `.cmd` shims, and since the fix for CVE-2024-27980\n // (Node 18.20.2 / 20.12.2 / 21.7.3 and later) `spawn` refuses to execute\n // `.bat`/`.cmd` unless `shell: true` -- it throws `spawn EINVAL`, and\n // synchronously, so an `error` listener never sees it. Passing\n // `shell: true` instead would hand the arguments to cmd.exe, which strips\n // quotes and splits on shell metacharacters. cross-spawn resolves the shim\n // and escapes the arguments itself, so the call keeps shell-less argument\n // semantics on every platform.\n const child = spawn(command, args, {\n cwd: options.cwd,\n env: options.env,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n });\n\n let stdout = \"\";\n let stderr = \"\";\n\n child.stdout?.on(\"data\", (d: Buffer) => {\n stdout += d.toString();\n });\n\n child.stderr?.on(\"data\", (d: Buffer) => {\n stderr += d.toString();\n });\n\n child.on(\"error\", reject);\n\n child.on(\"close\", (code) => {\n if (code === 0) {\n resolve(stdout.trim());\n } else {\n reject(\n new Error(stderr.trim() || `${command} exited with code ${code}`),\n );\n }\n });\n });\n}\n","import { promises as fs } from \"node:fs\";\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport {\n DEFAULT_REGISTRY_URL,\n POWERHOUSE_CONFIG_FILE,\n} from \"../clis/constants.js\";\nimport { getConfig } from \"../clis/file-system/get-config.js\";\nimport { spawnAsync } from \"../clis/file-system/spawn-async.js\";\n\nexport { DEFAULT_REGISTRY_URL } from \"../clis/constants.js\";\n\n/**\n * Extract the host portion of a registry URL — what npm uses as the key in\n * `~/.npmrc` for per-registry tokens (e.g. `//registry.vetra.io/`).\n */\nexport function registryAuthKey(registryUrl: string): string {\n const url = new URL(registryUrl);\n // Always trailing slash; npm's lookup is exact-match against the leading\n // path of the registry URL, with `//` prefix and trailing `/`.\n const path = url.pathname.endsWith(\"/\") ? url.pathname : `${url.pathname}/`;\n return `//${url.host}${path}:_authToken`;\n}\n\nexport interface ResolveRegistryUrlOptions {\n /** Explicit registry URL (e.g. from --registry flag). Highest priority. */\n registry?: string;\n /** Project path to read powerhouse.config.json from. */\n projectPath: string;\n /** Environment variables. Defaults to process.env. */\n env?: Record<string, string | undefined>;\n}\n\n/**\n * Resolve the registry URL with priority: flag > env > config > default.\n */\nexport function resolveRegistryUrl(options: ResolveRegistryUrlOptions): string {\n const { registry, projectPath, env = process.env } = options;\n const configPath = join(projectPath, POWERHOUSE_CONFIG_FILE);\n const config = getConfig(configPath);\n\n return (\n registry ??\n env.PH_REGISTRY_URL ??\n config.packageRegistryUrl ??\n DEFAULT_REGISTRY_URL\n );\n}\n\n/**\n * Check if the user is authenticated with the given npm registry.\n * Returns the username on success, throws on failure.\n */\nexport async function checkNpmAuth(registryUrl: string): Promise<string> {\n return spawnAsync(\"npm\", [\"whoami\", \"--registry\", registryUrl]);\n}\n\nexport interface NpmPublishOptions {\n /** Registry URL to publish to. */\n registryUrl: string;\n /** Working directory (project root). */\n cwd: string;\n /** Additional arguments forwarded to npm publish. */\n args?: string[];\n /** Bearer token for the registry. When set, passed via a registry-scoped\n * `_authToken` config flag rather than read from the user's `.npmrc`. */\n authToken?: string;\n}\n\nexport interface NpmPublishResult {\n /** stdout from npm publish. */\n stdout: string;\n}\n\n/**\n * Run `npm publish` against the given registry.\n * Uses spawn with args array to avoid shell injection.\n *\n * When `authToken` is provided, the token is passed via a registry-scoped\n * `--//host/:_authToken=<token>` flag (npm's standard form for per-registry\n * tokens) so we never have to write to `~/.npmrc`.\n */\nexport async function npmPublish(\n options: NpmPublishOptions,\n): Promise<NpmPublishResult> {\n const { registryUrl, cwd, args = [], authToken } = options;\n const tokenArg = authToken\n ? [`--${registryAuthKey(registryUrl)}=${authToken}`]\n : [];\n const npmArgs = [\"publish\", \"--registry\", registryUrl, ...tokenArg, ...args];\n const stdout = await spawnAsync(\"npm\", npmArgs, { cwd });\n return { stdout };\n}\n\n/**\n * Write `_authToken=<token>` for the given registry host into `~/.npmrc`,\n * preserving any other lines. Replaces the existing entry for the same key\n * if present. Returns the absolute path to the npmrc that was written.\n */\nexport async function writeRegistryAuthToken(\n registryUrl: string,\n token: string,\n): Promise<string> {\n const npmrcPath = join(homedir(), \".npmrc\");\n const key = registryAuthKey(registryUrl);\n let existing = \"\";\n try {\n existing = await fs.readFile(npmrcPath, \"utf8\");\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code !== \"ENOENT\") throw err;\n }\n const lines = existing.split(\"\\n\");\n const filtered = lines.filter((line) => !line.startsWith(`${key}=`));\n // Also drop any trailing empties to avoid stacking blank lines on rewrite.\n while (filtered.length && filtered[filtered.length - 1] === \"\")\n filtered.pop();\n filtered.push(`${key}=${token}`);\n await fs.writeFile(npmrcPath, `${filtered.join(\"\\n\")}\\n`, \"utf8\");\n return npmrcPath;\n}\n\nexport interface NpmUnpublishOptions {\n /** Registry URL to unpublish from. */\n registryUrl: string;\n /** Working directory (project root). */\n cwd: string;\n /** Package spec: `<name>` (whole package) or `<name>@<version>` (single version). */\n spec: string;\n /** Additional arguments forwarded to npm unpublish. */\n args?: string[];\n /** Bearer token for the registry (same semantics as `NpmPublishOptions.authToken`). */\n authToken?: string;\n}\n\nexport interface NpmUnpublishResult {\n /** stdout from npm unpublish. */\n stdout: string;\n}\n\n/**\n * Run `npm unpublish` against the given registry.\n * Always passes `--force` because npm otherwise refuses to unpublish packages\n * older than 72h (a public-npmjs safeguard that doesn't apply to private registries).\n */\nexport async function npmUnpublish(\n options: NpmUnpublishOptions,\n): Promise<NpmUnpublishResult> {\n const { registryUrl, cwd, spec, args = [], authToken } = options;\n const tokenArg = authToken\n ? [`--${registryAuthKey(registryUrl)}=${authToken}`]\n : [];\n const npmArgs = [\n \"unpublish\",\n spec,\n \"--registry\",\n registryUrl,\n \"--force\",\n ...tokenArg,\n ...args,\n ];\n const stdout = await spawnAsync(\"npm\", npmArgs, { cwd });\n return { stdout };\n}\n"],"mappings":";;;;;;AA0CA,MAAa,uBAAuB;AAgCpC,MAAa,yBAAyB;AAOD,KAFb,SAAS,EAES,MAA6B;AAGvE,MAAa,8BAA8B,CACzC,kBACA,iCACD;AAyBD,MAAa,uBAAuB,EAClC,oBAAoB;CAClB,eAAe,CArBjB,uCAqBgD;CAC9C,cAAc,EAAE;CACjB,EACF;AAKqC,CACpC,GAAG,6BACH,GAAG,qBAAqB,mBAAmB,cAC5C;AA4LD,MAAa,iBAAmC;CAC9C,mBATkC;CAUlC,YAT0B;CAU1B,eAT6B;CAU7B,cAT4B;CAU5B,kBATiC;CAUjC,YAT0B;CAU1B,UATwB;CAUxB,MAAM;EACJ,SAAS;EACT,QAAQ,EAAE;EACX;CACF;;;ACjUD,SAAgB,UAAU,OAAO,4BAA4B;CAC3D,IAAI,SAA2B,EAAE,GAAG,gBAAgB;AACpD,KAAI;EACF,MAAM,YAAY,aAAa,MAAM,QAAQ;EAC7C,MAAM,aAAa,KAAK,MAAM,UAAU;AACxC,WAAS;GAAE,GAAG;GAAQ,GAAG;GAAY;SAC/B;AAIR,QAAO;;;;ACZT,SAAgB,WACd,SACA,MACA,UAGI,EAAE,EACW;AACjB,QAAO,IAAI,SAAS,SAAS,WAAW;EAUtC,MAAM,QAAQ,MAAM,SAAS,MAAM;GACjC,KAAK,QAAQ;GACb,KAAK,QAAQ;GACb,OAAO;IAAC;IAAU;IAAQ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,YAAY;CACxC,IAAI,WAAW;AACf,KAAI;AACF,aAAW,MAAMA,SAAG,SAAS,WAAW,OAAO;UACxC,KAAK;AACZ,MAAK,IAA8B,SAAS,SAAU,OAAM;;CAG9D,MAAM,WADQ,SAAS,MAAM,KAAK,CACX,QAAQ,SAAS,CAAC,KAAK,WAAW,GAAG,IAAI,GAAG,CAAC;AAEpE,QAAO,SAAS,UAAU,SAAS,SAAS,SAAS,OAAO,GAC1D,UAAS,KAAK;AAChB,UAAS,KAAK,GAAG,IAAI,GAAG,QAAQ;AAChC,OAAMA,SAAG,UAAU,WAAW,GAAG,SAAS,KAAK,KAAK,CAAC,KAAK,OAAO;AACjE,QAAO;;;;;;;AA0BT,eAAsB,aACpB,SAC6B;CAC7B,MAAM,EAAE,aAAa,KAAK,MAAM,OAAO,EAAE,EAAE,cAAc;AAczD,QAAO,EAAE,QADM,MAAM,WAAW,OAThB;EACd;EACA;EACA;EACA;EACA;EACA,GATe,YACb,CAAC,KAAK,gBAAgB,YAAY,CAAC,GAAG,YAAY,GAClD,EAAE;EAQJ,GAAG;EACJ,EAC+C,EAAE,KAAK,CAAC,EACvC"}
1
+ {"version":3,"file":"index.js","names":["fs"],"sources":["../../clis/constants.ts","../../clis/file-system/get-config.ts","../../clis/file-system/spawn-async.ts","../../registry/registry.ts"],"sourcesContent":["import { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport type { Manifest } from \"../document-model/types.js\";\nimport type { PowerhouseConfig } from \"./types.js\";\n\nexport const SERVICE_ACTIONS = [\n \"start\",\n \"stop\",\n \"status\",\n \"setup\",\n \"restart\",\n] as const;\n\nexport const SECONDS_IN_DAY = 24 * 60 * 60;\nexport const DEFAULT_EXPIRY_DAYS = 7;\nexport const DEFAULT_EXPIRY_SECONDS = DEFAULT_EXPIRY_DAYS * SECONDS_IN_DAY;\n\nexport const DRIVES_PRESERVE_STRATEGIES = [\n \"preserve-all\",\n \"preserve-by-url-and-detach\",\n] as const;\n\nexport const LOG_LEVELS = [\n \"debug\",\n \"info\",\n \"warn\",\n \"error\",\n \"verbose\",\n] as const;\n\nexport const DEFAULT_TIMEOUT = 300 as const;\n\nexport const DEFAULT_CONNECT_STUDIO_PORT = 3000 as const;\n\nexport const DEFAULT_VETRA_CONNECT_PORT = 3001 as const;\n\nexport const DEFAULT_CONNECT_PREVIEW_PORT = 4173 as const;\n\nexport const DEFAULT_CONNECT_OUTDIR = \".ph/connect-build/dist/\" as const;\n\nexport const DEFAULT_RENOWN_URL = \"https://www.renown.id\" as const;\n\nexport const DEFAULT_REGISTRY_URL = \"https://registry.vetra.io\" as const;\n\nexport const DEFAULT_SWITCHBOARD_PORT = 4001 as const;\n\n// Per-project dev-server port bands. `ph init` assigns each project a port\n// triple derived from its name, so two projects never collide and an agent's\n// MCP URL can be baked into .mcp.json before a session starts.\n//\n// Two hard constraints picked these bands, both below 10000:\n//\n// 1. Below the OS ephemeral range. Linux allocates outbound source ports\n// from 32768-60999 (`/proc/sys/net/ipv4/ip_local_port_range`); macOS and\n// Windows start at 49152. A listener parked in that window can lose a\n// race to a transient outbound socket, which would surface as a\n// `--strictPort` failure blaming a project conflict that does not exist.\n// 2. Below 10000, which is where ph-clint starts. ph-clint derives its own\n// per-CLI ports by hashing into 10000-59900, so staying under 10000\n// keeps the two schemes from ever contending.\n//\n// Within those limits the blocks were chosen by measuring which ports the\n// Powerhouse repos actually reference: 2000-2999 has none, 7000-7999 has one,\n// 6000-6999 has five. See PROJECT_PORT_DENYLIST in project-ports.ts for the\n// individual ports skipped inside them.\nexport const PROJECT_PORT_BAND_SIZE = 1000 as const;\nexport const PROJECT_PORT_BAND_SWITCHBOARD = 7000 as const;\nexport const PROJECT_PORT_BAND_STUDIO = 6000 as const;\nexport const PROJECT_PORT_BAND_VETRA_CONNECT = 2000 as const;\n\nexport const DEFAULT_VETRA_DRIVE_ID = \"vetra\" as const;\n\nexport const MINIMUM_NODE_VERSION = \"24.0.0\" as const;\nexport const PH_BIN = \"ph-cli-legacy\" as const;\nexport const POWERHOUSE_CONFIG_FILE = \"powerhouse.config.json\" as const;\nexport const PH_GLOBAL_DIR_NAME = \".ph\" as const;\n// Keep PH_GLOBAL_PROJECT_NAME for backwards compatibility\nexport const PH_GLOBAL_PROJECT_NAME = PH_GLOBAL_DIR_NAME;\n\nexport const HOME_DIR = homedir();\n\nexport const POWERHOUSE_GLOBAL_DIR = join(HOME_DIR, PH_GLOBAL_DIR_NAME);\n\n// Workspace packages that go in peerDependencies of every generated project.\nexport const VERSIONED_PEER_DEPENDENCIES = [\n \"document-model\",\n \"@powerhousedao/reactor-browser\",\n];\n\ntype PeerSpec = { peer: string; dev: string };\n\nexport const REACTOR_API_PACKAGE = \"@powerhousedao/reactor-api\";\nexport const ANALYTICS_ENGINE_CORE_PACKAGE =\n \"@powerhousedao/analytics-engine-core\";\nexport const GRAPHQL_PACKAGE = \"graphql\";\nexport const GRAPHQL_TAG_PACKAGE = \"graphql-tag\";\n\n// External peerDependencies of every generated project.\n// `peer` is the consumer-facing range; `dev` is the exact build-tested pin.\n// graphql / graphql-tag are always-on because the workspace packages pulled\n// in by every `ph init` project (codegen, reactor-api, reactor-browser,\n// vetra-packages) declare them as peers — even projects without subgraphs\n// need them in scope so pnpm hoists a single graphql instance.\nexport const PEER_EXTERNAL_DEPENDENCIES = {\n [GRAPHQL_PACKAGE]: { peer: \"^16\", dev: \"16.12.0\" },\n [GRAPHQL_TAG_PACKAGE]: { peer: \"^2\", dev: \"2.12.6\" },\n react: { peer: \"^19\", dev: \"19.2.6\" },\n \"react-dom\": { peer: \"^19\", dev: \"19.2.6\" },\n zod: { peer: \"^4\", dev: \"4.3.6\" },\n} as const satisfies Record<string, PeerSpec>;\n\n// Per-feature deps added dynamically by codegen when required.\nexport const FEATURE_DEPENDENCIES = {\n analyticsProcessor: {\n peerVersioned: [ANALYTICS_ENGINE_CORE_PACKAGE],\n peerExternal: {},\n },\n} as const satisfies Record<\n string,\n { peerVersioned: readonly string[]; peerExternal: Record<string, PeerSpec> }\n>;\n\nexport const VERSIONED_DEPENDENCIES = [\n ...VERSIONED_PEER_DEPENDENCIES,\n ...FEATURE_DEPENDENCIES.analyticsProcessor.peerVersioned,\n];\n\n// Transitive dependencies whose postinstall scripts the generated project\n// trusts. Mirrors the `allowBuilds` map in the boilerplate's\n// pnpm-workspace.yaml and is also passed as `--allow-build` flags to\n// `pnpm dlx @powerhousedao/ph-cli init` so pnpm 11's strict-dep-builds\n// default doesn't prompt during the outer dlx download.\nexport const BOILERPLATE_ALLOWED_BUILDS = [\n \"@apollo/protobufjs\",\n \"@datadog/pprof\",\n \"@parcel/watcher\",\n \"@reown/appkit\",\n \"bufferutil\",\n \"esbuild\",\n \"keccak\",\n \"protobufjs\",\n \"utf-8-validate\",\n] as const;\n\n// Single-version pins the boilerplate enforces on generated projects,\n// avoiding duplicates from coexisting version ranges. Rendered as pnpm\n// `overrides` (pnpm-workspace.yaml) and as yarn v1 `resolutions`\n// (package.json). Generated-project only — never change the monorepo\n// catalog for this (a re-resolution there pulls a tsc-crashing TS6 beta).\nexport const BOILERPLATE_DEPENDENCY_OVERRIDES = {\n \"date-fns\": \"4.3.0\",\n vite: \"8.0.14\",\n rolldown: \"1.0.2\",\n} as const satisfies Record<string, string>;\n\nexport const VERSIONED_DEV_DEPENDENCIES = [\n \"@powerhousedao/ph-cli\",\n \"@powerhousedao/reactor\",\n \"@powerhousedao/shared\",\n \"@powerhousedao/connect\",\n \"@powerhousedao/design-system\",\n];\n\nexport const packageJsonExports = {\n \".\": {\n types: \"./dist/types/index.d.ts\",\n browser: \"./dist/browser/index.js\",\n node: \"./dist/node/index.mjs\",\n },\n \"./reactor\": {\n types: \"./dist/types/reactor/index.d.ts\",\n browser: \"./dist/browser/reactor/index.js\",\n },\n \"./document-models\": {\n types: \"./dist/types/document-models/index.d.ts\",\n browser: \"./dist/browser/document-models/index.js\",\n node: \"./dist/node/document-models/index.mjs\",\n },\n \"./document-models/*\": {\n types: \"./dist/types/document-models/*/index.d.ts\",\n browser: \"./dist/browser/document-models/*/index.js\",\n node: \"./dist/node/document-models/*/index.mjs\",\n },\n \"./editors\": {\n types: \"./dist/types/editors/index.d.ts\",\n browser: \"./dist/browser/editors/index.js\",\n node: \"./dist/node/editors/index.mjs\",\n },\n \"./editors/*\": {\n types: \"./dist/types/editors/*/editor.d.ts\",\n browser: \"./dist/browser/editors/*/editor.js\",\n node: \"./dist/node/editors/*/editor.mjs\",\n },\n \"./subgraphs\": {\n types: \"./dist/types/subgraphs/index.d.ts\",\n browser: \"./dist/browser/subgraphs/index.js\",\n node: \"./dist/node/subgraphs/index.mjs\",\n },\n \"./processors\": {\n types: \"./dist/types/processors/index.d.ts\",\n browser: \"./dist/browser/processors/index.js\",\n node: \"./dist/node/processors/index.mjs\",\n },\n \"./manifest\": \"./dist/powerhouse.manifest.json\",\n \"./style.css\": \"./dist/style.css\",\n} as const;\n\nexport const packageScripts = {\n \"test:watch\": \"vitest\",\n lint: \"oxlint --type-aware --type-check\",\n \"lint:fix\": \"oxlint --type-aware --type-check --fix\",\n format: \"oxfmt\",\n \"format:check\": \"oxfmt --check\",\n tsc: \"tsc\",\n \"tsc:watch\": \"tsc --watch\",\n generate: \"ph-cli generate\",\n connect: \"ph-cli connect\",\n build: \"ph-cli build\",\n reactor: \"ph-cli reactor\",\n service: \"ph-cli service\",\n vetra: \"ph-cli vetra\",\n \"service-startup\":\n \"bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-startup.sh\",\n \"service-unstartup\":\n \"bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh\",\n} as const;\n\nexport const externalDependencies = {} as const;\n\n// eslint/prettier devDependencies present in projects scaffolded before the oxc migration.\n// Stripped from package.json during `ph migrate`.\nexport const LEGACY_LINT_FORMAT_DEPENDENCIES = [\n \"@eslint/js\",\n \"eslint\",\n \"eslint-config-prettier\",\n \"eslint-plugin-prettier\",\n \"eslint-plugin-react\",\n \"eslint-plugin-react-hooks\",\n \"globals\",\n \"prettier\",\n \"typescript-eslint\",\n] as const;\n\n// Legacy lint/format config files written by eslint/prettier boilerplate.\n// Removed from the project root during `ph migrate`.\nexport const LEGACY_LINT_FORMAT_FILES = [\n \"eslint.config.js\",\n \"eslint.config.mjs\",\n \"eslint.config.cjs\",\n \"eslint.config.ts\",\n \".eslintrc\",\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.json\",\n \".eslintrc.yml\",\n \".eslintrc.yaml\",\n \".eslintignore\",\n \".prettierrc\",\n \".prettierrc.js\",\n \".prettierrc.cjs\",\n \".prettierrc.json\",\n \".prettierrc.yml\",\n \".prettierrc.yaml\",\n \"prettier.config.js\",\n \"prettier.config.cjs\",\n \"prettier.config.mjs\",\n \".prettierignore\",\n] as const;\n\nexport const externalDevDependencies = {\n \"@electric-sql/pglite\": \"0.3.15\",\n \"@electric-sql/pglite-tools\": \"0.2.20\",\n \"@powerhousedao/document-engineering\": \"1.40.5\",\n \"@tailwindcss/cli\": \"^4.1.18\",\n \"@tailwindcss/vite\": \"^4.1.18\",\n \"@types/node\": \"^24.9.2\",\n \"@types/react\": \"^19.2.3\",\n \"@types/react-dom\": \"^19.2.3\",\n \"@vitejs/plugin-react\": \"^6.0.1\",\n \"@vitest/coverage-v8\": \"4.1.1\",\n oxfmt: \"0.55.0\",\n oxlint: \"1.70.0\",\n \"oxlint-tsgolint\": \"0.23.0\",\n tailwindcss: \"^4.1.16\",\n typescript: \"^5.9.3\",\n vite: \"^8.0.10\",\n \"vite-tsconfig-paths\": \"6.1.1\",\n vitest: \"4.1.1\",\n} as const;\n\nexport const defaultManifest: Manifest = {\n name: \"\",\n description: \"\",\n category: \"\",\n publisher: {\n name: \"\",\n url: \"\",\n },\n documentModels: [],\n editors: [],\n apps: [],\n subgraphs: [],\n processors: [],\n};\n\nconst DEFAULT_DOCUMENT_MODELS_DIR = \"./document-models\";\nconst DEFAULT_EDITORS_DIR = \"./editors\";\nconst DEFAULT_PROCESSORS_DIR = \"./processors\";\nconst DEFAULT_SUBGRAPHS_DIR = \"./subgraphs\";\nconst DEFAULT_IMPORT_SCRIPTS_DIR = \"./scripts\";\nconst DEFAULT_SKIP_FORMAT = false;\nconst DEFAULT_LOG_LEVEL = \"info\";\n\nexport const DEFAULT_CONFIG: PowerhouseConfig = {\n documentModelsDir: DEFAULT_DOCUMENT_MODELS_DIR,\n editorsDir: DEFAULT_EDITORS_DIR,\n processorsDir: DEFAULT_PROCESSORS_DIR,\n subgraphsDir: DEFAULT_SUBGRAPHS_DIR,\n importScriptsDir: DEFAULT_IMPORT_SCRIPTS_DIR,\n skipFormat: DEFAULT_SKIP_FORMAT,\n logLevel: DEFAULT_LOG_LEVEL,\n auth: {\n enabled: false,\n admins: [],\n },\n};\n","import { readFileSync } from \"node:fs\";\nimport { DEFAULT_CONFIG } from \"../constants.js\";\nimport type { PowerhouseConfig } from \"../types.js\";\n\nexport function getConfig(path = \"./powerhouse.config.json\") {\n let config: PowerhouseConfig = { ...DEFAULT_CONFIG };\n try {\n const configStr = readFileSync(path, \"utf-8\");\n const userConfig = JSON.parse(configStr) as PowerhouseConfig;\n config = { ...config, ...userConfig };\n } catch {\n // console.warn(\"No powerhouse.config.json found, using defaults\");\n }\n\n return config;\n}\n","import spawn from \"cross-spawn\";\n\nexport function spawnAsync(\n command: string,\n args: string[],\n options: {\n cwd?: string;\n env?: NodeJS.ProcessEnv;\n } = {},\n): Promise<string> {\n return new Promise((resolve, reject) => {\n // cross-spawn rather than node:child_process.spawn. On Windows npm, pnpm\n // and yarn are all `.cmd` shims, and since the fix for CVE-2024-27980\n // (Node 18.20.2 / 20.12.2 / 21.7.3 and later) `spawn` refuses to execute\n // `.bat`/`.cmd` unless `shell: true` -- it throws `spawn EINVAL`, and\n // synchronously, so an `error` listener never sees it. Passing\n // `shell: true` instead would hand the arguments to cmd.exe, which strips\n // quotes and splits on shell metacharacters. cross-spawn resolves the shim\n // and escapes the arguments itself, so the call keeps shell-less argument\n // semantics on every platform.\n const child = spawn(command, args, {\n cwd: options.cwd,\n env: options.env,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n });\n\n let stdout = \"\";\n let stderr = \"\";\n\n child.stdout?.on(\"data\", (d: Buffer) => {\n stdout += d.toString();\n });\n\n child.stderr?.on(\"data\", (d: Buffer) => {\n stderr += d.toString();\n });\n\n child.on(\"error\", reject);\n\n child.on(\"close\", (code) => {\n if (code === 0) {\n resolve(stdout.trim());\n } else {\n reject(\n new Error(stderr.trim() || `${command} exited with code ${code}`),\n );\n }\n });\n });\n}\n","import { promises as fs } from \"node:fs\";\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport {\n DEFAULT_REGISTRY_URL,\n POWERHOUSE_CONFIG_FILE,\n} from \"../clis/constants.js\";\nimport { getConfig } from \"../clis/file-system/get-config.js\";\nimport { spawnAsync } from \"../clis/file-system/spawn-async.js\";\n\nexport { DEFAULT_REGISTRY_URL } from \"../clis/constants.js\";\n\n/**\n * Extract the host portion of a registry URL — what npm uses as the key in\n * `~/.npmrc` for per-registry tokens (e.g. `//registry.vetra.io/`).\n */\nexport function registryAuthKey(registryUrl: string): string {\n const url = new URL(registryUrl);\n // Always trailing slash; npm's lookup is exact-match against the leading\n // path of the registry URL, with `//` prefix and trailing `/`.\n const path = url.pathname.endsWith(\"/\") ? url.pathname : `${url.pathname}/`;\n return `//${url.host}${path}:_authToken`;\n}\n\nexport interface ResolveRegistryUrlOptions {\n /** Explicit registry URL (e.g. from --registry flag). Highest priority. */\n registry?: string;\n /** Project path to read powerhouse.config.json from. */\n projectPath: string;\n /** Environment variables. Defaults to process.env. */\n env?: Record<string, string | undefined>;\n}\n\n/**\n * Resolve the registry URL with priority: flag > env > config > default.\n */\nexport function resolveRegistryUrl(options: ResolveRegistryUrlOptions): string {\n const { registry, projectPath, env = process.env } = options;\n const configPath = join(projectPath, POWERHOUSE_CONFIG_FILE);\n const config = getConfig(configPath);\n\n return (\n registry ??\n env.PH_REGISTRY_URL ??\n config.packageRegistryUrl ??\n DEFAULT_REGISTRY_URL\n );\n}\n\n/**\n * Check if the user is authenticated with the given npm registry.\n * Returns the username on success, throws on failure.\n */\nexport async function checkNpmAuth(registryUrl: string): Promise<string> {\n return spawnAsync(\"npm\", [\"whoami\", \"--registry\", registryUrl]);\n}\n\nexport interface NpmPublishOptions {\n /** Registry URL to publish to. */\n registryUrl: string;\n /** Working directory (project root). */\n cwd: string;\n /** Additional arguments forwarded to npm publish. */\n args?: string[];\n /** Bearer token for the registry. When set, passed via a registry-scoped\n * `_authToken` config flag rather than read from the user's `.npmrc`. */\n authToken?: string;\n}\n\nexport interface NpmPublishResult {\n /** stdout from npm publish. */\n stdout: string;\n}\n\n/**\n * Run `npm publish` against the given registry.\n * Uses spawn with args array to avoid shell injection.\n *\n * When `authToken` is provided, the token is passed via a registry-scoped\n * `--//host/:_authToken=<token>` flag (npm's standard form for per-registry\n * tokens) so we never have to write to `~/.npmrc`.\n */\nexport async function npmPublish(\n options: NpmPublishOptions,\n): Promise<NpmPublishResult> {\n const { registryUrl, cwd, args = [], authToken } = options;\n const tokenArg = authToken\n ? [`--${registryAuthKey(registryUrl)}=${authToken}`]\n : [];\n const npmArgs = [\"publish\", \"--registry\", registryUrl, ...tokenArg, ...args];\n const stdout = await spawnAsync(\"npm\", npmArgs, { cwd });\n return { stdout };\n}\n\n/**\n * Write `_authToken=<token>` for the given registry host into `~/.npmrc`,\n * preserving any other lines. Replaces the existing entry for the same key\n * if present. Returns the absolute path to the npmrc that was written.\n */\nexport async function writeRegistryAuthToken(\n registryUrl: string,\n token: string,\n): Promise<string> {\n const npmrcPath = join(homedir(), \".npmrc\");\n const key = registryAuthKey(registryUrl);\n let existing = \"\";\n try {\n existing = await fs.readFile(npmrcPath, \"utf8\");\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code !== \"ENOENT\") throw err;\n }\n const lines = existing.split(\"\\n\");\n const filtered = lines.filter((line) => !line.startsWith(`${key}=`));\n // Also drop any trailing empties to avoid stacking blank lines on rewrite.\n while (filtered.length && filtered[filtered.length - 1] === \"\")\n filtered.pop();\n filtered.push(`${key}=${token}`);\n await fs.writeFile(npmrcPath, `${filtered.join(\"\\n\")}\\n`, \"utf8\");\n return npmrcPath;\n}\n\nexport interface NpmUnpublishOptions {\n /** Registry URL to unpublish from. */\n registryUrl: string;\n /** Working directory (project root). */\n cwd: string;\n /** Package spec: `<name>` (whole package) or `<name>@<version>` (single version). */\n spec: string;\n /** Additional arguments forwarded to npm unpublish. */\n args?: string[];\n /** Bearer token for the registry (same semantics as `NpmPublishOptions.authToken`). */\n authToken?: string;\n}\n\nexport interface NpmUnpublishResult {\n /** stdout from npm unpublish. */\n stdout: string;\n}\n\n/**\n * Run `npm unpublish` against the given registry.\n * Always passes `--force` because npm otherwise refuses to unpublish packages\n * older than 72h (a public-npmjs safeguard that doesn't apply to private registries).\n */\nexport async function npmUnpublish(\n options: NpmUnpublishOptions,\n): Promise<NpmUnpublishResult> {\n const { registryUrl, cwd, spec, args = [], authToken } = options;\n const tokenArg = authToken\n ? [`--${registryAuthKey(registryUrl)}=${authToken}`]\n : [];\n const npmArgs = [\n \"unpublish\",\n spec,\n \"--registry\",\n registryUrl,\n \"--force\",\n ...tokenArg,\n ...args,\n ];\n const stdout = await spawnAsync(\"npm\", npmArgs, { cwd });\n return { stdout };\n}\n"],"mappings":";;;;;;;AA0CA,MAAa,uBAAuB;AAgCpC,MAAa,yBAAyB;AAOD,KAFb,SAAS,EAES,MAA6B;AAGvE,MAAa,8BAA8B,CACzC,kBACA,iCACD;AAyBD,MAAa,uBAAuB,EAClC,oBAAoB;CAClB,eAAe,CArBjB,uCAqBgD;CAC9C,cAAc,EAAE;CACjB,EACF;AAKqC,CACpC,GAAG,6BACH,GAAG,qBAAqB,mBAAmB,cAC5C;AA4LD,MAAa,iBAAmC;CAC9C,mBATkC;CAUlC,YAT0B;CAU1B,eAT6B;CAU7B,cAT4B;CAU5B,kBATiC;CAUjC,YAT0B;CAU1B,UATwB;CAUxB,MAAM;EACJ,SAAS;EACT,QAAQ,E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//#region registry/manifest-slim.d.ts
3
3
  /**
4
4
  * Reduce a manifest to the summary fields the package-listing surfaces
@@ -0,0 +1,36 @@
1
+ //#region registry/updates.d.ts
2
+ /**
3
+ * Split an install spec (`name`, `name@tag`, or `name@version`) into the
4
+ * stream it points at. A missing `@` — or one that is only the scope marker
5
+ * of a scoped name (`@scope/pkg`) — means `latest`. Otherwise the suffix is
6
+ * a version when it is valid semver, a dist tag otherwise.
7
+ */
8
+ declare function parseInstallSpec(spec?: string): {
9
+ kind: "tag";
10
+ value: string;
11
+ } | {
12
+ kind: "version";
13
+ value: string;
14
+ };
15
+ /**
16
+ * Resolve the update target for an installed package: the current value of
17
+ * the user's stream (the dist tag named by the install spec, or `latest`
18
+ * for pinned/bare installs). The `latest` stream is reported by every
19
+ * registry as the package's newest version (`latestVersion`), so it falls
20
+ * back to that when the full dist-tag map is absent; any other stream is
21
+ * only known from the dist-tag map and is never guessed.
22
+ *
23
+ * Returns the target only when it and the installed version are valid
24
+ * semver and the target is strictly newer — equal, older, invalid, or
25
+ * missing data all yield `undefined` (no downgrade, no guess).
26
+ */
27
+ declare function getUpdateTarget(installed: {
28
+ version?: string | null;
29
+ spec?: string | null;
30
+ }, info: {
31
+ distTags?: Record<string, string> | null;
32
+ latestVersion?: string | null;
33
+ }): string | undefined;
34
+ //#endregion
35
+ export { getUpdateTarget, parseInstallSpec };
36
+ //# sourceMappingURL=updates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updates.d.ts","names":[],"sources":["../../registry/updates.ts"],"mappings":";;AAQA;;;;;iBAAgB,gBAAA,CACd,IAAA;EACG,IAAA;EAAa,KAAA;AAAA;EAAoB,IAAA;EAAiB,KAAA;AAAA;;;;;;;;;;;;;iBAoBvC,eAAA,CACd,SAAA;EAAa,OAAA;EAAyB,IAAA;AAAA,GACtC,IAAA;EACE,QAAA,GAAW,MAAA;EACX,aAAA;AAAA"}
@@ -0,0 +1,52 @@
1
+ import { gt, valid } from "semver";
2
+ //#region registry/updates.ts
3
+ /**
4
+ * Split an install spec (`name`, `name@tag`, or `name@version`) into the
5
+ * stream it points at. A missing `@` — or one that is only the scope marker
6
+ * of a scoped name (`@scope/pkg`) — means `latest`. Otherwise the suffix is
7
+ * a version when it is valid semver, a dist tag otherwise.
8
+ */
9
+ function parseInstallSpec(spec) {
10
+ if (!spec) return {
11
+ kind: "tag",
12
+ value: "latest"
13
+ };
14
+ const at = spec.lastIndexOf("@");
15
+ if (at <= 0) return {
16
+ kind: "tag",
17
+ value: "latest"
18
+ };
19
+ const value = spec.slice(at + 1);
20
+ return valid(value) ? {
21
+ kind: "version",
22
+ value
23
+ } : {
24
+ kind: "tag",
25
+ value
26
+ };
27
+ }
28
+ /**
29
+ * Resolve the update target for an installed package: the current value of
30
+ * the user's stream (the dist tag named by the install spec, or `latest`
31
+ * for pinned/bare installs). The `latest` stream is reported by every
32
+ * registry as the package's newest version (`latestVersion`), so it falls
33
+ * back to that when the full dist-tag map is absent; any other stream is
34
+ * only known from the dist-tag map and is never guessed.
35
+ *
36
+ * Returns the target only when it and the installed version are valid
37
+ * semver and the target is strictly newer — equal, older, invalid, or
38
+ * missing data all yield `undefined` (no downgrade, no guess).
39
+ */
40
+ function getUpdateTarget(installed, info) {
41
+ const parsed = parseInstallSpec(installed.spec ?? void 0);
42
+ const stream = parsed.kind === "tag" ? parsed.value : "latest";
43
+ const target = stream === "latest" ? info.distTags?.latest ?? info.latestVersion ?? void 0 : info.distTags?.[stream];
44
+ if (!target || !valid(target)) return void 0;
45
+ const installedVersion = installed.version;
46
+ if (!installedVersion || !valid(installedVersion)) return void 0;
47
+ return gt(target, installedVersion) ? target : void 0;
48
+ }
49
+ //#endregion
50
+ export { getUpdateTarget, parseInstallSpec };
51
+
52
+ //# sourceMappingURL=updates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updates.js","names":[],"sources":["../../registry/updates.ts"],"sourcesContent":["import { gt, valid } from \"semver\";\n\n/**\n * Split an install spec (`name`, `name@tag`, or `name@version`) into the\n * stream it points at. A missing `@` — or one that is only the scope marker\n * of a scoped name (`@scope/pkg`) — means `latest`. Otherwise the suffix is\n * a version when it is valid semver, a dist tag otherwise.\n */\nexport function parseInstallSpec(\n spec?: string,\n): { kind: \"tag\"; value: string } | { kind: \"version\"; value: string } {\n if (!spec) return { kind: \"tag\", value: \"latest\" };\n const at = spec.lastIndexOf(\"@\");\n if (at <= 0) return { kind: \"tag\", value: \"latest\" };\n const value = spec.slice(at + 1);\n return valid(value) ? { kind: \"version\", value } : { kind: \"tag\", value };\n}\n\n/**\n * Resolve the update target for an installed package: the current value of\n * the user's stream (the dist tag named by the install spec, or `latest`\n * for pinned/bare installs). The `latest` stream is reported by every\n * registry as the package's newest version (`latestVersion`), so it falls\n * back to that when the full dist-tag map is absent; any other stream is\n * only known from the dist-tag map and is never guessed.\n *\n * Returns the target only when it and the installed version are valid\n * semver and the target is strictly newer — equal, older, invalid, or\n * missing data all yield `undefined` (no downgrade, no guess).\n */\nexport function getUpdateTarget(\n installed: { version?: string | null; spec?: string | null },\n info: {\n distTags?: Record<string, string> | null;\n latestVersion?: string | null;\n },\n): string | undefined {\n const parsed = parseInstallSpec(installed.spec ?? undefined);\n const stream = parsed.kind === \"tag\" ? parsed.value : \"latest\";\n const target =\n stream === \"latest\"\n ? (info.distTags?.latest ?? info.latestVersion ?? undefined)\n : info.distTags?.[stream];\n if (!target || !valid(target)) return undefined;\n const installedVersion = installed.version;\n if (!installedVersion || !valid(installedVersion)) return undefined;\n return gt(target, installedVersion) ? target : undefined;\n}\n"],"mappings":";;;;;;;;AAQA,SAAgB,iBACd,MACqE;AACrE,KAAI,CAAC,KAAM,QAAO;EAAE,MAAM;EAAO,OAAO;EAAU;CAClD,MAAM,KAAK,KAAK,YAAY,IAAI;AAChC,KAAI,MAAM,EAAG,QAAO;EAAE,MAAM;EAAO,OAAO;EAAU;CACpD,MAAM,QAAQ,KAAK,MAAM,KAAK,EAAE;AAChC,QAAO,MAAM,MAAM,GAAG;EAAE,MAAM;EAAW;EAAO,GAAG;EAAE,MAAM;EAAO;EAAO;;;;;;;;;;;;;;AAe3E,SAAgB,gBACd,WACA,MAIoB;CACpB,MAAM,SAAS,iBAAiB,UAAU,QAAQ,KAAA,EAAU;CAC5D,MAAM,SAAS,OAAO,SAAS,QAAQ,OAAO,QAAQ;CACtD,MAAM,SACJ,WAAW,WACN,KAAK,UAAU,UAAU,KAAK,iBAAiB,KAAA,IAChD,KAAK,WAAW;AACtB,KAAI,CAAC,UAAU,CAAC,MAAM,OAAO,CAAE,QAAO,KAAA;CACtC,MAAM,mBAAmB,UAAU;AACnC,KAAI,CAAC,oBAAoB,CAAC,MAAM,iBAAiB,CAAE,QAAO,KAAA;AAC1D,QAAO,GAAG,QAAQ,iBAAiB,GAAG,SAAS,KAAA"}
@@ -986,8 +986,8 @@ interface RouteTransport {
986
986
  interface RouteContext {
987
987
  /** Decoded path params. */
988
988
  params: Record<string, string>;
989
- /** Resolved by the scope; undefined only when the route is `public`. */
990
- actor: RouteActor | undefined;
989
+ user: RouteUser | undefined;
990
+ authEnabled: boolean;
991
991
  /** The exact octets received. Present only when body is `raw`. */
992
992
  rawBody: Buffer | undefined;
993
993
  /** Aborts when the client disconnects. */
@@ -3164,4 +3164,4 @@ type PowerhouseConfig = {
3164
3164
  };
3165
3165
  //#endregion
3166
3166
  export { AddOperationExampleAction as $, UpgradeReducer as $a, deleteOperationExample as $c, SetOperationErrorCodeAction as $i, baseCreateDocument as $l, MutationDeleteOperationErrorArgs as $n, SetAuthorWebsiteInputSchema as $o, RedoActionInput as $r, ProcessorDispatchResult as $s, DocumentModelOperationExampleOperations as $t, PHDocumentState as $u, PHReactorRenown as A, SigningParameters as Aa, WebhookSignatureEncoding as Ac, SetAuthorNameAction as Ai, setOperationErrorDescription as Al, LoadStateActionInput as An, ModuleSchema as Ao, MutationSetOperationTemplateArgs as Ar, UpdateStateExampleInputSchema as As, DeleteOperationErrorInput as At, sortMappedOperations as Au, DEFAULT_REGISTRY_URL as B, UpdateChangeLogItemAction as Ba, addModule as Bc, SetModelIdAction as Bi, undo as Bl, ModuleSpecification as Bn, PublisherSchema as Bo, OperationsByScope as Br, IBaseRelationalDb as Bs, DocumentModelGlobalState as Bt, operationOutcome as Bu, PHConnectReactor as C, Set_PreferredEditor as Ca, WebhookEndpointInfo as Cc, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Cd, SchemaNOOPAction as Ci, setModelId as Cl, Incremental as Cn, DocumentModelInputSchema as Co, MutationSetOperationErrorCodeArgs as Cr, Set_PreferredEditorSchema as Cs, DeleteChildDocumentSignal as Ct, prepareOperations as Cu, PHConnectRuntimeConfig as D, SignalResults as Da, WebhookReply as Dc, SchemaSetPreferredEditorAction as Di, setName as Dl, LoadFromFile as Dn, LoadStateActionStateInputSchema as Do, MutationSetOperationNameArgs as Dr, UndoSchema as Ds, DeleteModuleInput as Dt, reshuffleByTimestamp as Du, PHConnectRenownAdapters as E, SignalResult as Ea, WebhookPolicy as Ec, SchemaSetNameAction as Ei, setModuleName as El, IsStateOfType as En, LoadStateActionSchema as Eo, MutationSetOperationErrorTemplateArgs as Er, UndoActionSchema as Es, DeleteModuleAction as Et, replayDocument as Eu, PathValidation as F, SubgraphModule as Fa, actionContext as Fc, SetInitialStateInput as Fi, setOperationSchema as Fl, MakeOptional as Fn, PowerhouseModuleSchema as Fo, MutationUpdateStateExampleArgs as Fr, createRelationalDb as Fs, DeleteStateExampleInput as Ft, Operation as Fu, Actions as G, UpdateRelationshipActionInput as Ga, baseActions as Gc, SetModuleDescriptionInput as Gi, IntegrityIssueSubType as Gl, MutationAddModuleArgs as Gn, ReorderChangeLogItemsInputSchema as Go, PowerhouseModule as Gr, RelationalDbProcessor as Gs, DocumentModelLocalState as Gt, undoOperationV2 as Gu, ActionSignatureContext as H, UpdateOperationExampleAction as Ha, addOperationError as Hc, SetModelNameAction as Hi, updateOperationExample as Hl, MoveOperationInput as Hn, RedoActionInputSchema as Ho, PartialState as Hr, IRelationalDbProcessor as Hs, DocumentModelHeaderOperations as Ht, setNameOperation as Hu, PowerhouseConfig as I, Undo as Ia, actionFromAction as Ic, SetModelDescriptionAction as Ii, setOperationScope as Il, Manifest as In, PowerhouseModulesSchema as Io, NOOPAction as Ir, hashNamespace as Is, DocumentAction as It, OperationContext as Iu, AddModuleAction as J, UpgradeDocumentAction as Ja, createAction as Jc, SetNameAction as Ji, PHDocumentHeader as Jl, MutationAddOperationExampleArgs as Jn, ReorderOperationErrorsInputSchema as Jo, PruneActionInput as Jr, IProcessorDispatch as Js, DocumentModelModuleOperations as Jt, Condition as Ju, AddChangeLogItemAction as K, UpdateStateExampleAction as Ka, buildOperationSignature as Kc, SetModuleNameAction as Ki, IntegrityIssueType as Kl, MutationAddOperationArgs as Kn, ReorderModuleOperationsInputSchema as Ko, Prune as Kr, RelationalDbProcessorClass as Ks, DocumentModelModule as Kt, AuthGroups as Ku, PowerhousePackage as L, UndoAction as La, actionSigner as Lc, SetModelDescriptionInput as Li, setOperationTemplate as Ll, MappedOperation as Ln, PruneActionInputSchema as Lo, OperationErrorSpecification as Lr, relationalDbToQueryBuilder as Ls, DocumentModelAction as Lt, OperationOutcome as Lu, PHRenownRainbowAdapterConfig as M, SkipHeaderOperations as Ma, WebhookVerification as Mc, SetAuthorWebsiteAction as Mi, setOperationErrorTemplate as Ml, Load_State as Mn, OperationErrorSchema as Mo, MutationUndoArgs as Mr, isDefinedNonNullAny as Ms, DeleteOperationExampleInput as Mt, split as Mu, PackageManagerArgs as N, State as Na, Action as Nc, SetAuthorWebsiteInput as Ni, setOperationName as Nl, MakeEmpty as Nn, OperationScopeSchema as No, MutationUpdateChangeLogItemInputArgs as Nr, createNamespacedDb as Ns, DeleteOperationInput as Nt, updateHeaderRevision as Nu, PHConnectSentry as O, SignalType as Oa, WebhookRequest as Oc, SchemaUndoAction as Oi, setOperationDescription as Ol, LoadFromInput as On, Load_StateSchema as Oo, MutationSetOperationReducerArgs as Or, UpdateChangeLogItemInputSchema as Os, DeleteOperationAction as Ot, reshuffleByTimestampAndIndex as Ou, ParsedCmdResult as P, StateReducer as Pa, ActionContext as Pc, SetInitialStateAction as Pi, setOperationReducer as Pl, MakeMaybe as Pn, OperationSpecificationSchema as Po, MutationUpdateOperationExampleArgs as Pr, createNamespacedQueryBuilder as Ps, DeleteStateExampleAction as Pt, DocumentOperations as Pu, AddOperationErrorInput as Q, UpgradeManifest as Qa, deleteOperationError as Qc, SetOperationDescriptionInput as Qi, attachBranch as Ql, MutationDeleteOperationArgs as Qn, SetAuthorNameInputSchema as Qo, RedoAction as Qr, ProcessorApps as Qs, DocumentModelOperationExampleAction as Qt, PHBaseState as Qu, ServiceAction as R, UndoActionInput as Ra, actions as Rc, SetModelExtensionAction as Ri, setPreferredEditor as Rl, Maybe as Rn, PruneActionSchema as Ro, OperationIndex as Rr, ExtractProcessorSchemaOrSelf as Rs, DocumentModelDocument as Rt, OperationWithContext$1 as Ru, PHConnectPwaUrlPattern as S, Set_Name as Sa, ScopedRouteHandle as Sc, serializeSignature as Sd, SchemaLoadStateAction as Si, setModelExtension as Sl, ISigner as Sn, DocumentModelGlobalStateSchema as So, MutationSetOperationDescriptionArgs as Sr, Set_NameSchema as Ss, DeleteChildDocumentInput as St, precedes as Su, PHConnectRenown as T, SignalDispatch as Ta, WebhookHashAlgorithm as Tc, PROCESSOR_APPS as Td, SchemaRedoAction as Ti, setModuleDescription as Tl, IsDocumentOfType as Tn, LoadStateActionInputSchema as To, MutationSetOperationErrorNameArgs as Tr, UndoActionInputSchema as Ts, DeleteDocumentActionInput as Tt, removeExistingOperations as Tu, ActionSigningHandler as U, UpdateOperationExampleInput as Ua, addOperationExample as Uc, SetModelNameInput as Ui, updateStateExample as Ul, Mutation as Un, RedoActionSchema as Uo, PhAiToolAnnotations as Ur, IRelationalQueryBuilder as Us, DocumentModelInput as Ut, setPreferredEditorOperation as Uu, ActionErrorCallback as V, UpdateChangeLogItemInput as Va, addOperation as Vc, SetModelIdInput as Vi, updateChangeLogItem as Vl, MoveOperationAction as Vn, PwaConfigSchema as Vo, PartialRecord as Vr, IRelationalDb as Vs, DocumentModelHeaderAction as Vt, redoOperation as Vu, ActionVerificationHandler as W, UpdateRelationshipAction as Wa, addStateExample as Wc, SetModuleDescriptionAction as Wi, verifyOperationSignature as Wl, MutationAddChangeLogItemInputArgs as Wn, RedoSchema as Wo, PhAiToolDescriptor as Wr, IRelationalQueryMethods as Ws, DocumentModelLib as Wt, undoOperation as Wu, AddOperationAction as X, User as Xa, deleteModule as Xc, SetNameOperation as Xi, addUndo as Xl, MutationDeleteChangeLogItemInputArgs as Xn, ReorderStateExamplesInputSchema as Xo, Query as Xr, IProcessorManager as Xs, DocumentModelOperationErrorAction as Xt, Operand as Xu, AddModuleInput as Y, UpgradeDocumentActionInput as Ya, deleteChangeLogItem as Yc, SetNameActionInput as Yi, PHDocumentMeta as Yl, MutationAddStateExampleArgs as Yn, ReorderOperationExamplesInputSchema as Yo, Publisher as Yr, IProcessorHostModuleBase as Ys, DocumentModelOperationAction as Yt, Grant as Yu, AddOperationErrorAction as Z, ValidationError as Za, deleteOperation as Zc, SetOperationDescriptionAction as Zi, appendWithoutApplying as Zl, MutationDeleteModuleArgs as Zn, ScopeStateSchema as Zo, Redo as Zr, ProcessorApp as Zs, DocumentModelOperationErrorOperations as Zt, PHAuthState as Zu, PHConnectPwaCacheStrategy as _, SetPreferredEditorAction as _a, RouteMethod as _c, HashConfig as _d, ReplayDocumentOptions as _i, reorderStateExamples as _l, ID as _n, DeleteOperationErrorInputSchema as _o, MutationSetModelIdArgs as _r, SetOperationScopeInputSchema as _s, CreateDocumentAction as _t, mapSkippedOperationsV2 as _u, PHConnectAi as a, SetOperationErrorTemplateAction as aa, TrackedProcessor as ac, createDocumentState as ad, ReorderChangeLogItemsAction as ai, operationExampleCreators as al, DocumentModelVersioningAction as an, AddChangeLogItemInputSchema as ao, MutationRedoArgs as ar, SetModuleDescriptionInputSchema as as, AddStateExampleInput as at, filterDuplicatedOperations as au, PHConnectPwaManifest as b, SetStateSchemaAction as ba, RouteTransport as bc, UserActionSigner as bd, SaveToFileHandle as bi, setInitialState as bl, ISignal as bn, DeleteStateExampleInputSchema as bo, MutationSetModuleNameArgs as br, SetPreferredEditorActionSchema as bs, DeleteChangeLogItemAction as bt, operationsAreEqual as bu, PHConnectDefaultDrive as c, SetOperationNameInput as ca, IWebhookEndpoints as cc, createState as cd, ReorderModuleOperationsInput as ci, operationWithContext as cl, DocumentSpecification as cn, AddOperationExampleInputSchema as co, MutationReorderModulesArgs as cr, SetNameActionSchema as cs, Author as ct, garbageCollectV2 as cu, PHConnectDriveSection as d, SetOperationSchemaAction as da, RouteActor as dc, defaultDocumentState as dd, ReorderOperationErrorsAction as di, releaseNewVersion as dl, EditorModule as dn, AuthorSchema as do, MutationReorderStateExamplesArgs as dr, SetOperationErrorDescriptionInputSchema as ds, ConfigEntryType as dt, hashDocumentStateForScope as du, SetOperationErrorCodeInput as ea, ProcessorFactory as ec, PHGroupState as ed, Reducer as ei, deleteStateExample as el, DocumentModelOperationOperations as en, UpgradeTransition as eo, MutationDeleteOperationExampleArgs as er, SetInitialStateInputSchema as es, AddOperationExampleInput as et, baseReducerVersion as eu, PHConnectDriveSections as f, SetOperationSchemaInput as fa, RouteAuth as fc, defaultGlobalState as fd, ReorderOperationErrorsInput as fi, reorderChangeLogItems as fl, EditorProps as fn, CodeExampleSchema as fo, MutationSetAuthorNameArgs as fr, SetOperationErrorNameInputSchema as fs, CopyChildDocumentInput as ft, isDocumentAction as fu, PHConnectPwa as g, SetOperationTemplateInput as ga, RouteHandler as gc, AppActionSigner as gd, ReorderStateExamplesInput as gi, reorderOperationExamples as gl, IAction as gn, DeleteModuleInputSchema as go, MutationSetModelExtensionArgs as gr, SetOperationSchemaInputSchema as gs, CreateDocument as gt, mapSkippedOperations as gu, PHConnectPackages as h, SetOperationTemplateAction as ha, RouteContext as hc, ActionSigner as hd, ReorderStateExamplesAction as hi, reorderOperationErrors as hl, GetDocumentOptions as hn, DeleteChangeLogItemInputSchema as ho, MutationSetModelDescriptionArgs as hr, SetOperationReducerInputSchema as hs, CreateChildDocumentSignal as ht, isUndoRedo as hu, LogLevels as i, SetOperationErrorNameInput as ia, ProcessorStatus as ic, createBaseState as id, RemoveRelationshipActionInput as ii, noop as il, DocumentModelUtils as in, normalizeDocumentModelVersion as io, MutationPruneArgs as ir, SetModelNameInputSchema as is, AddStateExampleAction as it, filterDocumentOperationsResultingState as iu, PHRenownPrivyAdapterConfig as j, SkipHeaderOperationIndex as ja, WebhookSpec as jc, SetAuthorNameInput as ji, setOperationErrorName as jl, LoadStateActionStateInput as jn, MoveOperationInputSchema as jo, MutationSetStateSchemaArgs as jr, definedNonNullAnySchema as js, DeleteOperationExampleAction as jt, sortOperations as ju, PHPackageProvider as k, SignatureVerificationHandler as ka, WebhookScheme as kc, ScopeState as ki, setOperationErrorCode as kl, LoadStateAction as kn, ManifestSchema as ko, MutationSetOperationSchemaArgs as kr, UpdateOperationExampleInputSchema as ks, DeleteOperationErrorAction as kt, skipHeaderOperations as ku, PHConnectDefaultDriveLocal as l, SetOperationReducerAction as la, IWebhookScope as lc, defaultAuthState as ld, ReorderModulesAction as li, prune as ll, ENSInfo as ln, AddOperationInputSchema as lo, MutationReorderOperationErrorsArgs as lr, SetOperationDescriptionInputSchema as ls, CodeExample as lt, getDocumentLastModified as lu, PHConnectInstance as m, SetOperationScopeInput as ma, RouteBody as mc, defaultPHState as md, ReorderOperationExamplesInput as mi, reorderModules as ml, FileInput as mn, ConfigEntryTypeSchema as mo, MutationSetInitialStateArgs as mr, SetOperationNameInputSchema as ms, CreateChildDocumentInput as mt, isUndo as mu, DrivePreserveStrategy as n, SetOperationErrorDescriptionInput as na, ProcessorFilter as nc, backfillAuthState as nd, ReleaseNewVersionAction as ni, loadState as nl, DocumentModelStateAction as nn, applyUpgradeDocumentAction as no, MutationLoadStateArgs as nr, SetModelExtensionInputSchema as ns, AddRelationshipAction as nt, checkOperationsIntegrity as nu, PHConnectApp as o, SetOperationErrorTemplateInput as oa, AuthorizerResult as oc, createGlobalState as od, ReorderChangeLogItemsInput as oi, operationFromAction as ol, DocumentModelVersioningOperations as on, AddModuleInputSchema as oo, MutationReorderChangeLogItemsInputArgs as or, SetModuleNameInputSchema as os, AssertIsDocumentOfType as ot, garbageCollect as ou, PHConnectDrives as p, SetOperationScopeAction as pa, RouteAuthorizer as pc, defaultLocalState as pd, ReorderOperationExamplesAction as pi, reorderModuleOperations as pl, Exact as pn, ConfigEntrySchema as po, MutationSetAuthorWebsiteArgs as pr, SetOperationErrorTemplateInputSchema as ps, CopyChildDocumentSignal as pt, isNoopOperation as pu, AddChangeLogItemInput as q, UpdateStateExampleInput as qa, buildSignedAction as qc, SetModuleNameInput as qi, PHDocument as ql, MutationAddOperationErrorArgs as qn, ReorderModulesInputSchema as qo, PruneAction as qr, IProcessor as qs, DocumentModelModuleAction as qt, Capability as qu, LogLevel as r, SetOperationErrorNameAction as ra, ProcessorRecord as rc, createAuthState as rd, RemoveRelationshipAction as ri, moveOperation as rl, DocumentModelStateOperations as rn, computeUpgradeTransitions as ro, MutationMoveOperationArgs as rr, SetModelIdInputSchema as rs, AddRelationshipActionInput as rt, diffOperations as ru, PHConnectBranding as s, SetOperationNameAction as sa, IHttpScope as sc, createLocalState as sd, ReorderModuleOperationsAction as si, operationFromOperation as sl, DocumentOperationsIgnoreMap as sn, AddOperationErrorInputSchema as so, MutationReorderModuleOperationsArgs as sr, SetNameActionInputSchema as ss, AssertIsStateOfType as st, garbageCollectDocumentOperations as su, DrivePreserveStrategies as t, SetOperationErrorDescriptionAction as ta, ProcessorFactoryBuilder as tc, Principal as td, ReducerOptions as ti, documentModelActions as tl, DocumentModelPHState as tn, applyDeleteDocumentAction as to, MutationDeleteStateExampleArgs as tr, SetModelDescriptionInputSchema as ts, AddOperationInput as tt, checkCleanedOperationsIntegrity as tu, PHConnectDefaultDriveRemote as u, SetOperationReducerInput as ua, NodeRouteSpec as uc, defaultBaseState as ud, ReorderModulesInput as ui, redo as ul, EditorDispatch as un, AddStateExampleInputSchema as uo, MutationReorderOperationExamplesArgs as ur, SetOperationErrorCodeInputSchema as us, ConfigEntry as ut, groupOperationsByScope as uu, PHConnectPwaFileHandler as v, SetPreferredEditorActionInput as va, RouteOptions as vc, PHDocumentSignatureInfo as vd, RevisionsFilter as vi, setAuthorName as vl, IDocument as vn, DeleteOperationExampleInputSchema as vo, MutationSetModelNameArgs as vr, SetOperationTemplateInputSchema as vs, CreateDocumentActionInput as vt, merge as vu, PHConnectReactorFeatureFlags as w, Signal as wa, WebhookField as wc, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as wd, SchemaPruneAction as wi, setModelName as wl, InputMaybe as wn, DocumentSpecificationSchema as wo, MutationSetOperationErrorDescriptionArgs as wr, StateSchema as ws, DeleteDocumentAction as wt, readOnly as wu, PHConnectPwaRuntimeCaching as x, SetStateSchemaInput as xa, RouteUser as xc, deserializeSignature as xd, Scalars as xi, setModelDescription as xl, ISignalResult as xn, DocumentActionSchema as xo, MutationSetNameArgs as xr, SetStateSchemaInputSchema as xs, DeleteChangeLogItemInput as xt, parseResultingState as xu, PHConnectPwaIcon as y, SetPreferredEditorOperation as ya, RouteSpec as yc, Signature as yd, SaveToFile as yi, setAuthorWebsite as yl, IOperation as yn, DeleteOperationInputSchema as yo, MutationSetModuleDescriptionArgs as yr, SetPreferredEditorActionInputSchema as ys, CreateState as yt, nextSkipNumber as yu, ServiceActions as z, UndoRedoAction as za, addChangeLogItem as zc, SetModelExtensionInput as zi, setStateSchema as zl, MinimalBackupData as zn, PruneSchema as zo, OperationSpecification as zr, HashAlgorithms as zs, DocumentModelDocumentModelModule as zt, loadStateOperation as zu };
3167
- //# sourceMappingURL=types-__rCq4pt.d.ts.map
3167
+ //# sourceMappingURL=types-CpnWmiFY.d.ts.map