@powerhousedao/shared 6.2.3-dev.71 → 6.2.3-dev.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clis/args/common-BXabdhiO.mjs.map +1 -1
- package/dist/clis/args/{connect-BLAht4dO.mjs → connect-Bad05YS-.mjs} +2 -2
- package/dist/clis/args/{connect-BLAht4dO.mjs.map → connect-Bad05YS-.mjs.map} +1 -1
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/{help-Dejwe6Bz.mjs → help-Di8n5ZnJ.mjs} +2 -2
- package/dist/clis/args/{help-Dejwe6Bz.mjs.map → help-Di8n5ZnJ.mjs.map} +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.mjs +2 -2
- package/dist/clis/build-pieces.d.mts +1 -1
- package/dist/clis/constants.d.mts +1 -1
- package/dist/clis/constants.mjs +4 -0
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index.d.mts +4 -0
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +6 -2
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/{types-DT6KawYx.d.mts → types-BNdhWTBs.d.mts} +5 -1
- package/dist/clis/{types-DT6KawYx.d.mts.map → types-BNdhWTBs.d.mts.map} +1 -1
- package/dist/connect/config-loader.d.ts +1 -1
- package/dist/connect/connect-config-schema.js +1 -1
- package/dist/connect/connect-config-schema.js.map +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/document-drive/index.d.ts +3 -3
- package/dist/document-model/errors.d.ts +1 -1
- package/dist/document-model/index.d.ts +1 -1
- package/dist/{index-DvbhwImT.d.ts → index-DYRUjLwF.d.ts} +2 -2
- package/dist/{index-DvbhwImT.d.ts.map → index-DYRUjLwF.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/processors/index.d.ts +2 -2
- package/dist/processors/index.js +10 -0
- package/dist/processors/index.js.map +1 -1
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/manifest-slim.d.ts +2 -2
- package/dist/{types-BpO4LIKj.d.ts → types-BMvEggLM.d.ts} +36 -2
- package/dist/{types-BpO4LIKj.d.ts.map → types-BMvEggLM.d.ts.map} +1 -1
- package/dist/{types-OXIqeH8W.d.ts → types-DiSgFXjt.d.ts} +2 -2
- package/dist/{types-OXIqeH8W.d.ts.map → types-DiSgFXjt.d.ts.map} +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-Bsp8VL2y.js";
|
|
2
|
-
import { $ as ServiceActions, $a as UpdateRelationshipActionInput, $i as SetModuleDescriptionInput, $n as MoveOperationAction, $r as PhAiToolAnnotations, $t as DocumentModelDocument, A as PHConnectPwaUrlPattern, Aa as Set_Name, Ai as SaveToFileHandle, An as GetDocumentOptions, Ao as ProcessorFactoryBuilder, Ar as MutationSetModuleNameArgs, At as CreateDocument, B as PHPackageProvider, Ba as SkipHeaderOperations, Bi as SetAuthorWebsiteAction, Bn as InputMaybe, Br as MutationSetOperationTemplateArgs, Bt as DeleteModuleAction, C as PHConnectPackages, Ca as SetOperationTemplateAction, Ci as ReorderOperationExamplesAction, Cn as DocumentSpecification, Co as IProcessorDispatch, Cr as MutationSetAuthorWebsiteArgs, Ct as CodeExample, D as PHConnectPwaIcon, Da as SetPreferredEditorOperation, Di as ReplayDocumentOptions, Dn as EditorProps, Do as ProcessorApps, Dr as MutationSetModelIdArgs, Dt as CopyChildDocumentSignal, E as PHConnectPwaFileHandler, Ea as SetPreferredEditorActionInput, Ei as ReorderStateExamplesInput, En as EditorModule, Eo as ProcessorApp, Er as MutationSetModelExtensionArgs, Et as CopyChildDocumentInput, F as PHConnectRuntimeConfig, Fa as SignalResults, Fi as SchemaSetPreferredEditorAction, Fn as IOperation, Fr as MutationSetOperationErrorNameArgs, Ft as DeleteChangeLogItemInput, G as PHSchemedColor, Ga as UndoAction, Gi as SetModelDescriptionInput, Gn as MakeEmpty, Gr as MutationUpdateStateExampleArgs, Gt as DeleteOperationExampleAction, H as PHReactorRenown, Ha as StateReducer, Hi as SetInitialStateAction, Hn as IsStateOfType, Hr as MutationUndoArgs, Ht as DeleteOperationAction, I as PHConnectSentry, Ia as SignalType, Ii as SchemaUndoAction, In as ISignal, Ir as MutationSetOperationErrorTemplateArgs, It as DeleteChildDocumentInput, J as ParsedCmdResult, Ja as UpdateChangeLogItemAction, Ji as SetModelIdAction, Jn as Manifest, Jr as OperationIndex, Jt as DeleteStateExampleAction, K as PHSchemedImage, Ka as UndoActionInput, Ki as SetModelExtensionAction, Kn as MakeMaybe, Kr as NOOPAction, Kt as DeleteOperationExampleInput, L as PHEdges, La as SignatureVerificationHandler, Li as ScopeState, Ln as ISignalResult, Lr as MutationSetOperationNameArgs, Lt as DeleteChildDocumentSignal, M as PHConnectReactorFeatureFlags, Ma as Signal, Mi as SchemaNOOPAction, Mn as IAction, Mo as ProcessorRecord, Mr as MutationSetOperationDescriptionArgs, Mt as CreateDocumentActionInput, N as PHConnectRenown, Na as SignalDispatch, Ni as SchemaRedoAction, Nn as ID, No as
|
|
2
|
+
import { $ as ServiceActions, $a as UpdateRelationshipActionInput, $i as SetModuleDescriptionInput, $n as MoveOperationAction, $r as PhAiToolAnnotations, $t as DocumentModelDocument, A as PHConnectPwaUrlPattern, Aa as Set_Name, Ai as SaveToFileHandle, An as GetDocumentOptions, Ao as ProcessorFactoryBuilder, Ar as MutationSetModuleNameArgs, At as CreateDocument, B as PHPackageProvider, Ba as SkipHeaderOperations, Bi as SetAuthorWebsiteAction, Bn as InputMaybe, Br as MutationSetOperationTemplateArgs, Bt as DeleteModuleAction, C as PHConnectPackages, Ca as SetOperationTemplateAction, Ci as ReorderOperationExamplesAction, Cn as DocumentSpecification, Co as IProcessorDispatch, Cr as MutationSetAuthorWebsiteArgs, Ct as CodeExample, D as PHConnectPwaIcon, Da as SetPreferredEditorOperation, Di as ReplayDocumentOptions, Dn as EditorProps, Do as ProcessorApps, Dr as MutationSetModelIdArgs, Dt as CopyChildDocumentSignal, E as PHConnectPwaFileHandler, Ea as SetPreferredEditorActionInput, Ei as ReorderStateExamplesInput, En as EditorModule, Eo as ProcessorApp, Er as MutationSetModelExtensionArgs, Et as CopyChildDocumentInput, F as PHConnectRuntimeConfig, Fa as SignalResults, Fi as SchemaSetPreferredEditorAction, Fn as IOperation, Fo as TrackedProcessor, Fr as MutationSetOperationErrorNameArgs, Ft as DeleteChangeLogItemInput, G as PHSchemedColor, Ga as UndoAction, Gi as SetModelDescriptionInput, Gn as MakeEmpty, Gr as MutationUpdateStateExampleArgs, Gt as DeleteOperationExampleAction, H as PHReactorRenown, Ha as StateReducer, Hi as SetInitialStateAction, Hn as IsStateOfType, Hr as MutationUndoArgs, Ht as DeleteOperationAction, I as PHConnectSentry, Ia as SignalType, Ii as SchemaUndoAction, In as ISignal, Ir as MutationSetOperationErrorTemplateArgs, It as DeleteChildDocumentInput, J as ParsedCmdResult, Ja as UpdateChangeLogItemAction, Ji as SetModelIdAction, Jn as Manifest, Jr as OperationIndex, Jt as DeleteStateExampleAction, K as PHSchemedImage, Ka as UndoActionInput, Ki as SetModelExtensionAction, Kn as MakeMaybe, Kr as NOOPAction, Kt as DeleteOperationExampleInput, L as PHEdges, La as SignatureVerificationHandler, Li as ScopeState, Ln as ISignalResult, Lr as MutationSetOperationNameArgs, Lt as DeleteChildDocumentSignal, M as PHConnectReactorFeatureFlags, Ma as Signal, Mi as SchemaNOOPAction, Mn as IAction, Mo as ProcessorRecord, Mr as MutationSetOperationDescriptionArgs, Mt as CreateDocumentActionInput, N as PHConnectRenown, Na as SignalDispatch, Ni as SchemaRedoAction, Nn as ID, No as ProcessorRerunOptions, Nr as MutationSetOperationErrorCodeArgs, Nt as CreateState, O as PHConnectPwaManifest, Oa as SetStateSchemaAction, Oi as RevisionsFilter, On as Exact, Oo as ProcessorDispatchResult, Or as MutationSetModelNameArgs, Ot as CreateChildDocumentInput, P as PHConnectRenownAdapters, Pa as SignalResult, Pi as SchemaSetNameAction, Pn as IDocument, Po as ProcessorStatus, Pr as MutationSetOperationErrorDescriptionArgs, Pt as DeleteChangeLogItemAction, Q as ServiceAction, Qa as UpdateRelationshipAction, Qi as SetModuleDescriptionAction, Qn as ModuleSpecification, Qr as PartialState, Qt as DocumentModelAction, R as PHImageRef, Ra as SigningParameters, Ri as SetAuthorNameAction, Rn as ISigner, Rr as MutationSetOperationReducerArgs, Rt as DeleteDocumentAction, S as PHConnectOpenPanel, Sa as SetOperationScopeInput, Si as ReorderOperationErrorsInput, Sn as DocumentOperationsIgnoreMap, So as IProcessor, Sr as MutationSetAuthorNameArgs, St as Author, T as PHConnectPwaCacheStrategy, Ta as SetPreferredEditorAction, Ti as ReorderStateExamplesAction, Tn as EditorDispatch, To as IProcessorManager, Tr as MutationSetModelDescriptionArgs, Tt as ConfigEntryType, U as PHRenownPrivyAdapterConfig, Ua as SubgraphModule, Ui as SetInitialStateInput, Un as LoadFromFile, Ur as MutationUpdateChangeLogItemInputArgs, Ut as DeleteOperationErrorAction, V as PHReactorClientMode, Va as State, Vi as SetAuthorWebsiteInput, Vn as IsDocumentOfType, Vr as MutationSetStateSchemaArgs, Vt as DeleteModuleInput, W as PHRenownRainbowAdapterConfig, Wa as Undo, Wi as SetModelDescriptionAction, Wn as LoadFromInput, Wr as MutationUpdateOperationExampleArgs, Wt as DeleteOperationErrorInput, X as PowerhouseConfig, Xa as UpdateOperationExampleAction, Xi as SetModelNameAction, Xn as Maybe, Xr as OperationsByScope, Xt as DocumentAction, Y as PathValidation, Ya as UpdateChangeLogItemInput, Yi as SetModelIdInput, Yn as MappedOperation, Yr as OperationSpecification, Yt as DeleteStateExampleInput, Z as PowerhousePackage, Za as UpdateOperationExampleInput, Zi as SetModelNameInput, Zn as MinimalBackupData, Zr as PartialRecord, Zt as DocumentDispatch, _ as PHConnectDrives, _a as SetOperationReducerAction, _i as ReorderModuleOperationsAction, _n as DocumentModelStateAction, _r as MutationReorderModuleOperationsArgs, _t as AddRelationshipActionInput, a as PHBackground, aa as SetOperationDescriptionAction, ai as PurgeDocumentActionInput, an as DocumentModelLib, ao as ValidationError, ar as MutationAddOperationErrorArgs, at as Actions, b as PHConnectInstance, ba as SetOperationSchemaInput, bi as ReorderModulesInput, bn as DocumentModelVersioningAction, br as MutationReorderOperationExamplesArgs, bt as AssertIsDocumentOfType, c as PHConnectAi, ca as SetOperationErrorCodeInput, ci as RedoAction, cn as DocumentModelModuleAction, cr as MutationDeleteChangeLogItemInputArgs, ct as AddModuleAction, d as PHConnectCompositionEntry, da as SetOperationErrorNameAction, di as ReducerOptions, dn as DocumentModelOperationErrorAction, dr as MutationDeleteOperationErrorArgs, dt as AddOperationErrorAction, ea as SetModuleNameAction, ei as PhAiToolDescriptor, en as DocumentModelDocumentModelModule, eo as UpdateStateExampleAction, er as MoveOperationInput, f as PHConnectDefaultDrive, fa as SetOperationErrorNameInput, fi as ReleaseNewVersionAction, fn as DocumentModelOperationErrorOperations, fr as MutationDeleteOperationExampleArgs, ft as AddOperationErrorInput, g as PHConnectDriveSections, ga as SetOperationNameInput, gi as ReorderChangeLogItemsInput, gn as DocumentModelPHState, gr as MutationReorderChangeLogItemsInputArgs, gt as AddRelationshipAction, h as PHConnectDriveSection, ha as SetOperationNameAction, hi as ReorderChangeLogItemsAction, hn as DocumentModelOperationOperations, hr as MutationRedoArgs, ht as AddOperationInput, i as LogLevels, ia as SetNameOperation, ii as PurgeDocumentAction, in as DocumentModelInput, io as User, ir as MutationAddOperationArgs, it as ActionVerificationHandler, j as PHConnectReactor, ja as Set_PreferredEditor, ji as Scalars, jn as HostedEditorProps, jo as ProcessorFilter, jr as MutationSetNameArgs, jt as CreateDocumentAction, k as PHConnectPwaRuntimeCaching, ka as SetStateSchemaInput, ki as SaveToFile, kn as FileInput, ko as ProcessorFactory, kr as MutationSetModuleDescriptionArgs, kt as CreateChildDocumentSignal, l as PHConnectApp, la as SetOperationErrorDescriptionAction, li as RedoActionInput, ln as DocumentModelModuleOperations, lr as MutationDeleteModuleArgs, lt as AddModuleInput, m as PHConnectDefaultDriveRemote, ma as SetOperationErrorTemplateInput, mi as RemoveRelationshipActionInput, mn as DocumentModelOperationExampleOperations, mr as MutationMoveOperationArgs, mt as AddOperationExampleInput, n as DrivePreserveStrategy, na as SetNameAction, ni as PowerhouseModule, nn as DocumentModelHeaderAction, no as UpgradeDocumentAction, nr as MutationAddChangeLogItemInputArgs, nt as ActionSignatureContext, o as PHBackgroundLayer, oa as SetOperationDescriptionInput, oi as Query, on as DocumentModelLocalState, or as MutationAddOperationExampleArgs, ot as AddChangeLogItemAction, p as PHConnectDefaultDriveLocal, pa as SetOperationErrorTemplateAction, pi as RemoveRelationshipAction, pn as DocumentModelOperationExampleAction, pr as MutationDeleteStateExampleArgs, pt as AddOperationExampleAction, q as PackageManagerArgs, qa as UndoRedoAction, qi as SetModelExtensionInput, qn as MakeOptional, qr as OperationErrorSpecification, qt as DeleteOperationInput, r as LogLevel, ra as SetNameActionInput, ri as Publisher, rn as DocumentModelHeaderOperations, ro as UpgradeDocumentActionInput, rr as MutationAddModuleArgs, rt as ActionSigningHandler, s as PHBackgroundLayers, sa as SetOperationErrorCodeAction, si as Redo, sn as DocumentModelModule, sr as MutationAddStateExampleArgs, st as AddChangeLogItemInput, t as DrivePreserveStrategies, ta as SetModuleNameInput, ti as PieceModule, tn as DocumentModelGlobalState, to as UpdateStateExampleInput, tr as Mutation, tt as ActionErrorCallback, u as PHConnectBranding, ua as SetOperationErrorDescriptionInput, ui as Reducer, un as DocumentModelOperationAction, ur as MutationDeleteOperationArgs, ut as AddOperationAction, v as PHConnectExplorerIcons, va as SetOperationReducerInput, vi as ReorderModuleOperationsInput, vn as DocumentModelStateOperations, vr as MutationReorderModulesArgs, vt as AddStateExampleAction, w as PHConnectPwa, wa as SetOperationTemplateInput, wi as ReorderOperationExamplesInput, wn as ENSInfo, wo as IProcessorHostModuleBase, wr as MutationSetInitialStateArgs, wt as ConfigEntry, x as PHConnectLoader, xa as SetOperationScopeAction, xi as ReorderOperationErrorsAction, xn as DocumentModelVersioningOperations, xr as MutationReorderStateExamplesArgs, xt as AssertIsStateOfType, y as PHConnectHome, ya as SetOperationSchemaAction, yi as ReorderModulesAction, yn as DocumentModelUtils, yr as MutationReorderOperationErrorsArgs, yt as AddStateExampleInput, z as PHLength, za as SkipHeaderOperationIndex, zi as SetAuthorNameInput, zn as Incremental, zr as MutationSetOperationSchemaArgs, zt as DeleteDocumentActionInput } from "./types-BMvEggLM.js";
|
|
3
3
|
import { i as PACKAGES_DEPENDENCIES, n as APPS_DEPENDENCIES, r as CLIS_DEPENDENCIES, t as ALL_POWERHOUSE_DEPENDENCIES } from "./constants-CcaK3k1D.js";
|
|
4
|
-
import { $ as LegacySynchronizationUnit, A as TriggerData, B as PackagePage, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, F as PACKAGE_MODULE_TYPES, G as RegistryPackageSource, H as RegistryPackage, I as PackageFacets, J as DriveDocumentModelModule, K as RegistryPackageStatus, L as PackageInfo, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, R as PackageListItem, S as RemoveListenerInput, T as SetDriveIconInput, U as RegistryPackageList, V as Page, W as RegistryPackageMap, 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 DocumentDrivePHState, 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 PackageModuleType } from "./types-
|
|
5
|
-
import { a as GenerateNodesCopyIdGenerator, i as DriveInput, n as buildTreeUrl, o as GenerateNodesCopySrc, r as shortGitSha, s as SharingType, t as GITHUB_REPO_URL } from "./index-
|
|
6
|
-
export { ALL_POWERHOUSE_DEPENDENCIES, APPS_DEPENDENCIES, type ActionErrorCallback, type ActionSignatureContext, type ActionSigningHandler, type ActionVerificationHandler, type Actions, type AddChangeLogItemAction, type AddChangeLogItemInput, type AddFileAction, type AddFileInput, type AddFolderAction, type AddFolderInput, type AddListenerAction, type AddListenerInput, type AddModuleAction, type AddModuleInput, type AddOperationAction, type AddOperationErrorAction, type AddOperationErrorInput, type AddOperationExampleAction, type AddOperationExampleInput, type AddOperationInput, type AddRelationshipAction, type AddRelationshipActionInput, type AddStateExampleAction, type AddStateExampleInput, type AddTriggerAction, type AddTriggerInput, type AnalyticsDimension, type AnalyticsOperand, type AnalyticsQuery, type AnalyticsSeries, type AnalyticsSeriesInput, type AnalyticsSeriesQuery, type AnalyticsUpdateCallback, type AssertIsDocumentOfType, type AssertIsStateOfType, type Author, CLIS_DEPENDENCIES, type CodeExample, type CompoundAnalyticsExpression, type CompoundAnalyticsInputs, type CompoundAnalyticsQuery, type ConfigEntry, type ConfigEntryType, type ConversionMetric, type CopyChildDocumentInput, type CopyChildDocumentSignal, type CopyNodeAction, type CopyNodeInput, type CreateChildDocumentInput, type CreateChildDocumentSignal, type CreateDocument, type CreateDocumentAction, type CreateDocumentActionInput, type CreateState, type DeleteChangeLogItemAction, type DeleteChangeLogItemInput, type DeleteChildDocumentInput, type DeleteChildDocumentSignal, type DeleteDocumentAction, type DeleteDocumentActionInput, type DeleteModuleAction, type DeleteModuleInput, type DeleteNodeAction, type DeleteNodeInput, type DeleteOperationAction, type DeleteOperationErrorAction, type DeleteOperationErrorInput, type DeleteOperationExampleAction, type DeleteOperationExampleInput, type DeleteOperationInput, type DeleteStateExampleAction, type DeleteStateExampleInput, type DocumentAction, type DocumentDispatch, type DocumentDriveAction, type DocumentDriveDocument, type DocumentDriveDriveAction, type DocumentDriveDriveOperations, type DocumentDriveGlobalState, type DocumentDriveLocalState, type DocumentDriveNodeAction, type DocumentDriveNodeOperations, type DocumentDrivePHState, type DocumentModelAction, type DocumentModelDocument, type DocumentModelDocumentModelModule, type DocumentModelGlobalState, type DocumentModelHeaderAction, type DocumentModelHeaderOperations, type DocumentModelInput, type DocumentModelLib, type DocumentModelLocalState, type DocumentModelModule, type DocumentModelModuleAction, type DocumentModelModuleOperations, type DocumentModelOperationAction, type DocumentModelOperationErrorAction, type DocumentModelOperationErrorOperations, type DocumentModelOperationExampleAction, type DocumentModelOperationExampleOperations, type DocumentModelOperationOperations, type DocumentModelPHState, type DocumentModelStateAction, type DocumentModelStateOperations, type DocumentModelUtils, type DocumentModelVersioningAction, type DocumentModelVersioningOperations, type DocumentOperationsIgnoreMap, type DocumentSpecification, type DriveDocumentModelModule, type DriveInput, type DrivePreserveStrategies, type DrivePreserveStrategy, type ENSInfo, type EditorDispatch, type EditorModule, type EditorProps, type Exact, type FileInput, type FileNode, type FolderNode, GITHUB_REPO_URL, type GenerateNodesCopyIdGenerator, type GenerateNodesCopySrc, type GetDocumentOptions, type HostedEditorProps, type IAction, type IAnalyticsStore, type ID, type IDocument, type IOperation, type IProcessor, type IProcessorDispatch, type IProcessorHostModuleBase, type IProcessorManager, type ISignal, type ISignalResult, type ISigner, type Incremental, type InputMaybe, type IsDocumentOfType, type IsStateOfType, type LegacyAddFileAction, type LegacyAddFileInput, type LegacySynchronizationUnit, type Listener, type ListenerCallInfo, type ListenerCallInfoInput, type ListenerFilter, type ListenerFilterInput, type ListenerInput, type LoadFromFile, type LoadFromInput, type LogLevel, type LogLevels, type MakeEmpty, type MakeMaybe, type MakeOptional, type Manifest, type MappedOperation, type Maybe, type MinimalBackupData, type ModuleSpecification, type MoveNodeAction, type MoveNodeInput, type MoveOperationAction, type MoveOperationInput, type MultiCurrencyConversion, type Mutation, type MutationAddChangeLogItemInputArgs, type MutationAddModuleArgs, type MutationAddOperationArgs, type MutationAddOperationErrorArgs, type MutationAddOperationExampleArgs, type MutationAddStateExampleArgs, type MutationDeleteChangeLogItemInputArgs, type MutationDeleteModuleArgs, type MutationDeleteOperationArgs, type MutationDeleteOperationErrorArgs, type MutationDeleteOperationExampleArgs, type MutationDeleteStateExampleArgs, type MutationMoveOperationArgs, type MutationRedoArgs, type MutationReorderChangeLogItemsInputArgs, type MutationReorderModuleOperationsArgs, type MutationReorderModulesArgs, type MutationReorderOperationErrorsArgs, type MutationReorderOperationExamplesArgs, type MutationReorderStateExamplesArgs, type MutationSetAuthorNameArgs, type MutationSetAuthorWebsiteArgs, type MutationSetInitialStateArgs, type MutationSetModelDescriptionArgs, type MutationSetModelExtensionArgs, type MutationSetModelIdArgs, type MutationSetModelNameArgs, type MutationSetModuleDescriptionArgs, type MutationSetModuleNameArgs, type MutationSetNameArgs, type MutationSetOperationDescriptionArgs, type MutationSetOperationErrorCodeArgs, type MutationSetOperationErrorDescriptionArgs, type MutationSetOperationErrorNameArgs, type MutationSetOperationErrorTemplateArgs, type MutationSetOperationNameArgs, type MutationSetOperationReducerArgs, type MutationSetOperationSchemaArgs, type MutationSetOperationTemplateArgs, type MutationSetStateSchemaArgs, type MutationUndoArgs, type MutationUpdateChangeLogItemInputArgs, type MutationUpdateOperationExampleArgs, type MutationUpdateStateExampleArgs, type NOOPAction, type Node, type OperationErrorSpecification, type OperationIndex, type OperationSpecification, type OperationsByScope, PACKAGES_DEPENDENCIES, type PACKAGE_MODULE_TYPES, type PHBackground, type PHBackgroundLayer, type PHBackgroundLayers, type PHConnectAi, type PHConnectApp, type PHConnectBranding, type PHConnectCompositionEntry, type PHConnectDefaultDrive, type PHConnectDefaultDriveLocal, type PHConnectDefaultDriveRemote, type PHConnectDriveSection, type PHConnectDriveSections, type PHConnectDrives, type PHConnectExplorerIcons, type PHConnectHome, type PHConnectInstance, type PHConnectLoader, type PHConnectOpenPanel, type PHConnectPackages, type PHConnectPwa, type PHConnectPwaCacheStrategy, type PHConnectPwaFileHandler, type PHConnectPwaIcon, type PHConnectPwaManifest, type PHConnectPwaRuntimeCaching, type PHConnectPwaUrlPattern, type PHConnectReactor, type PHConnectReactorFeatureFlags, type PHConnectRenown, type PHConnectRenownAdapters, type PHConnectRuntimeConfig, type PHConnectSentry, type PHEdges, type PHImageRef, type PHLength, type PHPackageProvider, type PHReactorClientMode, type PHReactorRenown, type PHRenownPrivyAdapterConfig, type PHRenownRainbowAdapterConfig, type PHSchemedColor, type PHSchemedImage, type PackageFacets, type PackageInfo, type PackageListItem, type PackageManagerArgs, type PackageModuleType, type PackagePage, type Page, type ParsedCmdResult, type PartialRecord, type PartialState, type PathValidation, type PhAiToolAnnotations, type PhAiToolDescriptor, type PieceModule, type PowerhouseConfig, type PowerhouseModule, type PowerhousePackage, type ProcessorApp, type ProcessorApps, type ProcessorDispatchResult, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type ProcessorStatus, type Publisher, type PullResponderTriggerData, type PullResponderTriggerDataInput, type PurgeDocumentAction, type PurgeDocumentActionInput, type Query, type Redo, type RedoAction, type RedoActionInput, type Reducer, type ReducerOptions, type RegistryPackage, type RegistryPackageList, type RegistryPackageMap, type RegistryPackageSource, type RegistryPackageStatus, type ReleaseNewVersionAction, type RemoveListenerAction, type RemoveListenerInput, type RemoveRelationshipAction, type RemoveRelationshipActionInput, type RemoveTriggerAction, type RemoveTriggerInput, type ReorderChangeLogItemsAction, type ReorderChangeLogItemsInput, type ReorderModuleOperationsAction, type ReorderModuleOperationsInput, type ReorderModulesAction, type ReorderModulesInput, type ReorderOperationErrorsAction, type ReorderOperationErrorsInput, type ReorderOperationExamplesAction, type ReorderOperationExamplesInput, type ReorderStateExamplesAction, type ReorderStateExamplesInput, type ReplayDocumentOptions, type RevisionsFilter, type SaveToFile, type SaveToFileHandle, type Scalars, type SchemaNOOPAction, type SchemaRedoAction, type SchemaSetNameAction, type SchemaSetPreferredEditorAction, type SchemaUndoAction, type ScopeState, type ServiceAction, type ServiceActions, type SetAuthorNameAction, type SetAuthorNameInput, type SetAuthorWebsiteAction, type SetAuthorWebsiteInput, type SetAvailableOfflineAction, type SetAvailableOfflineInput, type SetDriveIconAction, type SetDriveIconInput, type SetDriveNameAction, type SetDriveNameInput, type SetInitialStateAction, type SetInitialStateInput, type SetModelDescriptionAction, type SetModelDescriptionInput, type SetModelExtensionAction, type SetModelExtensionInput, type SetModelIdAction, type SetModelIdInput, type SetModelNameAction, type SetModelNameInput, type SetModuleDescriptionAction, type SetModuleDescriptionInput, type SetModuleNameAction, type SetModuleNameInput, type SetNameAction, type SetNameActionInput, type SetNameOperation, type SetOperationDescriptionAction, type SetOperationDescriptionInput, type SetOperationErrorCodeAction, type SetOperationErrorCodeInput, type SetOperationErrorDescriptionAction, type SetOperationErrorDescriptionInput, type SetOperationErrorNameAction, type SetOperationErrorNameInput, type SetOperationErrorTemplateAction, type SetOperationErrorTemplateInput, type SetOperationNameAction, type SetOperationNameInput, type SetOperationReducerAction, type SetOperationReducerInput, type SetOperationSchemaAction, type SetOperationSchemaInput, type SetOperationScopeAction, type SetOperationScopeInput, type SetOperationTemplateAction, type SetOperationTemplateInput, type SetPreferredEditorAction, type SetPreferredEditorActionInput, type SetPreferredEditorOperation, type SetSharingTypeAction, type SetSharingTypeInput, type SetStateSchemaAction, type SetStateSchemaInput, type Set_Name, type Set_PreferredEditor, type SharingType, type Signal, type SignalDispatch, type SignalResult, type SignalResults, type SignalType, type SignatureVerificationHandler, type SigningParameters, type SkipHeaderOperationIndex, type SkipHeaderOperations, type State, type StateReducer, type SubgraphModule, type TrackedProcessor, type TransmitterType, type Trigger, type TriggerData, type TriggerInput, type TriggerType, type Undo, type UndoAction, type UndoActionInput, type UndoRedoAction, type UpdateChangeLogItemAction, type UpdateChangeLogItemInput, type UpdateFileAction, type UpdateFileInput, type UpdateNodeAction, type UpdateNodeInput, type UpdateOperationExampleAction, type UpdateOperationExampleInput, type UpdateRelationshipAction, type UpdateRelationshipActionInput, type UpdateStateExampleAction, type UpdateStateExampleInput, type UpgradeDocumentAction, type UpgradeDocumentActionInput, type User, type ValidationError, buildTreeUrl, shortGitSha };
|
|
4
|
+
import { $ as LegacySynchronizationUnit, A as TriggerData, B as PackagePage, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, F as PACKAGE_MODULE_TYPES, G as RegistryPackageSource, H as RegistryPackage, I as PackageFacets, J as DriveDocumentModelModule, K as RegistryPackageStatus, L as PackageInfo, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, R as PackageListItem, S as RemoveListenerInput, T as SetDriveIconInput, U as RegistryPackageList, V as Page, W as RegistryPackageMap, 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 DocumentDrivePHState, 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 PackageModuleType } from "./types-DiSgFXjt.js";
|
|
5
|
+
import { a as GenerateNodesCopyIdGenerator, i as DriveInput, n as buildTreeUrl, o as GenerateNodesCopySrc, r as shortGitSha, s as SharingType, t as GITHUB_REPO_URL } from "./index-DYRUjLwF.js";
|
|
6
|
+
export { ALL_POWERHOUSE_DEPENDENCIES, APPS_DEPENDENCIES, type ActionErrorCallback, type ActionSignatureContext, type ActionSigningHandler, type ActionVerificationHandler, type Actions, type AddChangeLogItemAction, type AddChangeLogItemInput, type AddFileAction, type AddFileInput, type AddFolderAction, type AddFolderInput, type AddListenerAction, type AddListenerInput, type AddModuleAction, type AddModuleInput, type AddOperationAction, type AddOperationErrorAction, type AddOperationErrorInput, type AddOperationExampleAction, type AddOperationExampleInput, type AddOperationInput, type AddRelationshipAction, type AddRelationshipActionInput, type AddStateExampleAction, type AddStateExampleInput, type AddTriggerAction, type AddTriggerInput, type AnalyticsDimension, type AnalyticsOperand, type AnalyticsQuery, type AnalyticsSeries, type AnalyticsSeriesInput, type AnalyticsSeriesQuery, type AnalyticsUpdateCallback, type AssertIsDocumentOfType, type AssertIsStateOfType, type Author, CLIS_DEPENDENCIES, type CodeExample, type CompoundAnalyticsExpression, type CompoundAnalyticsInputs, type CompoundAnalyticsQuery, type ConfigEntry, type ConfigEntryType, type ConversionMetric, type CopyChildDocumentInput, type CopyChildDocumentSignal, type CopyNodeAction, type CopyNodeInput, type CreateChildDocumentInput, type CreateChildDocumentSignal, type CreateDocument, type CreateDocumentAction, type CreateDocumentActionInput, type CreateState, type DeleteChangeLogItemAction, type DeleteChangeLogItemInput, type DeleteChildDocumentInput, type DeleteChildDocumentSignal, type DeleteDocumentAction, type DeleteDocumentActionInput, type DeleteModuleAction, type DeleteModuleInput, type DeleteNodeAction, type DeleteNodeInput, type DeleteOperationAction, type DeleteOperationErrorAction, type DeleteOperationErrorInput, type DeleteOperationExampleAction, type DeleteOperationExampleInput, type DeleteOperationInput, type DeleteStateExampleAction, type DeleteStateExampleInput, type DocumentAction, type DocumentDispatch, type DocumentDriveAction, type DocumentDriveDocument, type DocumentDriveDriveAction, type DocumentDriveDriveOperations, type DocumentDriveGlobalState, type DocumentDriveLocalState, type DocumentDriveNodeAction, type DocumentDriveNodeOperations, type DocumentDrivePHState, type DocumentModelAction, type DocumentModelDocument, type DocumentModelDocumentModelModule, type DocumentModelGlobalState, type DocumentModelHeaderAction, type DocumentModelHeaderOperations, type DocumentModelInput, type DocumentModelLib, type DocumentModelLocalState, type DocumentModelModule, type DocumentModelModuleAction, type DocumentModelModuleOperations, type DocumentModelOperationAction, type DocumentModelOperationErrorAction, type DocumentModelOperationErrorOperations, type DocumentModelOperationExampleAction, type DocumentModelOperationExampleOperations, type DocumentModelOperationOperations, type DocumentModelPHState, type DocumentModelStateAction, type DocumentModelStateOperations, type DocumentModelUtils, type DocumentModelVersioningAction, type DocumentModelVersioningOperations, type DocumentOperationsIgnoreMap, type DocumentSpecification, type DriveDocumentModelModule, type DriveInput, type DrivePreserveStrategies, type DrivePreserveStrategy, type ENSInfo, type EditorDispatch, type EditorModule, type EditorProps, type Exact, type FileInput, type FileNode, type FolderNode, GITHUB_REPO_URL, type GenerateNodesCopyIdGenerator, type GenerateNodesCopySrc, type GetDocumentOptions, type HostedEditorProps, type IAction, type IAnalyticsStore, type ID, type IDocument, type IOperation, type IProcessor, type IProcessorDispatch, type IProcessorHostModuleBase, type IProcessorManager, type ISignal, type ISignalResult, type ISigner, type Incremental, type InputMaybe, type IsDocumentOfType, type IsStateOfType, type LegacyAddFileAction, type LegacyAddFileInput, type LegacySynchronizationUnit, type Listener, type ListenerCallInfo, type ListenerCallInfoInput, type ListenerFilter, type ListenerFilterInput, type ListenerInput, type LoadFromFile, type LoadFromInput, type LogLevel, type LogLevels, type MakeEmpty, type MakeMaybe, type MakeOptional, type Manifest, type MappedOperation, type Maybe, type MinimalBackupData, type ModuleSpecification, type MoveNodeAction, type MoveNodeInput, type MoveOperationAction, type MoveOperationInput, type MultiCurrencyConversion, type Mutation, type MutationAddChangeLogItemInputArgs, type MutationAddModuleArgs, type MutationAddOperationArgs, type MutationAddOperationErrorArgs, type MutationAddOperationExampleArgs, type MutationAddStateExampleArgs, type MutationDeleteChangeLogItemInputArgs, type MutationDeleteModuleArgs, type MutationDeleteOperationArgs, type MutationDeleteOperationErrorArgs, type MutationDeleteOperationExampleArgs, type MutationDeleteStateExampleArgs, type MutationMoveOperationArgs, type MutationRedoArgs, type MutationReorderChangeLogItemsInputArgs, type MutationReorderModuleOperationsArgs, type MutationReorderModulesArgs, type MutationReorderOperationErrorsArgs, type MutationReorderOperationExamplesArgs, type MutationReorderStateExamplesArgs, type MutationSetAuthorNameArgs, type MutationSetAuthorWebsiteArgs, type MutationSetInitialStateArgs, type MutationSetModelDescriptionArgs, type MutationSetModelExtensionArgs, type MutationSetModelIdArgs, type MutationSetModelNameArgs, type MutationSetModuleDescriptionArgs, type MutationSetModuleNameArgs, type MutationSetNameArgs, type MutationSetOperationDescriptionArgs, type MutationSetOperationErrorCodeArgs, type MutationSetOperationErrorDescriptionArgs, type MutationSetOperationErrorNameArgs, type MutationSetOperationErrorTemplateArgs, type MutationSetOperationNameArgs, type MutationSetOperationReducerArgs, type MutationSetOperationSchemaArgs, type MutationSetOperationTemplateArgs, type MutationSetStateSchemaArgs, type MutationUndoArgs, type MutationUpdateChangeLogItemInputArgs, type MutationUpdateOperationExampleArgs, type MutationUpdateStateExampleArgs, type NOOPAction, type Node, type OperationErrorSpecification, type OperationIndex, type OperationSpecification, type OperationsByScope, PACKAGES_DEPENDENCIES, type PACKAGE_MODULE_TYPES, type PHBackground, type PHBackgroundLayer, type PHBackgroundLayers, type PHConnectAi, type PHConnectApp, type PHConnectBranding, type PHConnectCompositionEntry, type PHConnectDefaultDrive, type PHConnectDefaultDriveLocal, type PHConnectDefaultDriveRemote, type PHConnectDriveSection, type PHConnectDriveSections, type PHConnectDrives, type PHConnectExplorerIcons, type PHConnectHome, type PHConnectInstance, type PHConnectLoader, type PHConnectOpenPanel, type PHConnectPackages, type PHConnectPwa, type PHConnectPwaCacheStrategy, type PHConnectPwaFileHandler, type PHConnectPwaIcon, type PHConnectPwaManifest, type PHConnectPwaRuntimeCaching, type PHConnectPwaUrlPattern, type PHConnectReactor, type PHConnectReactorFeatureFlags, type PHConnectRenown, type PHConnectRenownAdapters, type PHConnectRuntimeConfig, type PHConnectSentry, type PHEdges, type PHImageRef, type PHLength, type PHPackageProvider, type PHReactorClientMode, type PHReactorRenown, type PHRenownPrivyAdapterConfig, type PHRenownRainbowAdapterConfig, type PHSchemedColor, type PHSchemedImage, type PackageFacets, type PackageInfo, type PackageListItem, type PackageManagerArgs, type PackageModuleType, type PackagePage, type Page, type ParsedCmdResult, type PartialRecord, type PartialState, type PathValidation, type PhAiToolAnnotations, type PhAiToolDescriptor, type PieceModule, type PowerhouseConfig, type PowerhouseModule, type PowerhousePackage, type ProcessorApp, type ProcessorApps, type ProcessorDispatchResult, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type ProcessorRerunOptions, type ProcessorStatus, type Publisher, type PullResponderTriggerData, type PullResponderTriggerDataInput, type PurgeDocumentAction, type PurgeDocumentActionInput, type Query, type Redo, type RedoAction, type RedoActionInput, type Reducer, type ReducerOptions, type RegistryPackage, type RegistryPackageList, type RegistryPackageMap, type RegistryPackageSource, type RegistryPackageStatus, type ReleaseNewVersionAction, type RemoveListenerAction, type RemoveListenerInput, type RemoveRelationshipAction, type RemoveRelationshipActionInput, type RemoveTriggerAction, type RemoveTriggerInput, type ReorderChangeLogItemsAction, type ReorderChangeLogItemsInput, type ReorderModuleOperationsAction, type ReorderModuleOperationsInput, type ReorderModulesAction, type ReorderModulesInput, type ReorderOperationErrorsAction, type ReorderOperationErrorsInput, type ReorderOperationExamplesAction, type ReorderOperationExamplesInput, type ReorderStateExamplesAction, type ReorderStateExamplesInput, type ReplayDocumentOptions, type RevisionsFilter, type SaveToFile, type SaveToFileHandle, type Scalars, type SchemaNOOPAction, type SchemaRedoAction, type SchemaSetNameAction, type SchemaSetPreferredEditorAction, type SchemaUndoAction, type ScopeState, type ServiceAction, type ServiceActions, type SetAuthorNameAction, type SetAuthorNameInput, type SetAuthorWebsiteAction, type SetAuthorWebsiteInput, type SetAvailableOfflineAction, type SetAvailableOfflineInput, type SetDriveIconAction, type SetDriveIconInput, type SetDriveNameAction, type SetDriveNameInput, type SetInitialStateAction, type SetInitialStateInput, type SetModelDescriptionAction, type SetModelDescriptionInput, type SetModelExtensionAction, type SetModelExtensionInput, type SetModelIdAction, type SetModelIdInput, type SetModelNameAction, type SetModelNameInput, type SetModuleDescriptionAction, type SetModuleDescriptionInput, type SetModuleNameAction, type SetModuleNameInput, type SetNameAction, type SetNameActionInput, type SetNameOperation, type SetOperationDescriptionAction, type SetOperationDescriptionInput, type SetOperationErrorCodeAction, type SetOperationErrorCodeInput, type SetOperationErrorDescriptionAction, type SetOperationErrorDescriptionInput, type SetOperationErrorNameAction, type SetOperationErrorNameInput, type SetOperationErrorTemplateAction, type SetOperationErrorTemplateInput, type SetOperationNameAction, type SetOperationNameInput, type SetOperationReducerAction, type SetOperationReducerInput, type SetOperationSchemaAction, type SetOperationSchemaInput, type SetOperationScopeAction, type SetOperationScopeInput, type SetOperationTemplateAction, type SetOperationTemplateInput, type SetPreferredEditorAction, type SetPreferredEditorActionInput, type SetPreferredEditorOperation, type SetSharingTypeAction, type SetSharingTypeInput, type SetStateSchemaAction, type SetStateSchemaInput, type Set_Name, type Set_PreferredEditor, type SharingType, type Signal, type SignalDispatch, type SignalResult, type SignalResults, type SignalType, type SignatureVerificationHandler, type SigningParameters, type SkipHeaderOperationIndex, type SkipHeaderOperations, type State, type StateReducer, type SubgraphModule, type TrackedProcessor, type TransmitterType, type Trigger, type TriggerData, type TriggerInput, type TriggerType, type Undo, type UndoAction, type UndoActionInput, type UndoRedoAction, type UpdateChangeLogItemAction, type UpdateChangeLogItemInput, type UpdateFileAction, type UpdateFileInput, type UpdateNodeAction, type UpdateNodeInput, type UpdateOperationExampleAction, type UpdateOperationExampleInput, type UpdateRelationshipAction, type UpdateRelationshipActionInput, type UpdateStateExampleAction, type UpdateStateExampleInput, type UpgradeDocumentAction, type UpgradeDocumentActionInput, type User, type ValidationError, buildTreeUrl, shortGitSha };
|
|
7
7
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $o as
|
|
2
|
-
export { type AuthorizerResult, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, DOCUMENT_ID_COLUMNS, ExtractProcessorSchemaOrSelf, HashAlgorithms, IBaseRelationalDb, type IHttpScope, type IProcessor, type IProcessorDispatch, type IProcessorHostModuleBase, type IProcessorManager, IRelationalDb, IRelationalDbProcessor, IRelationalQueryBuilder, IRelationalQueryMethods, type IWebhookEndpoints, type IWebhookScope, type NodeRouteSpec, PROCESSOR_APPS, type ProcessorApp, type ProcessorApps, type ProcessorDispatchResult, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type ProcessorStatus, RelationalDbProcessor, RelationalDbProcessorClass, type RouteActor, type RouteAuth, type RouteAuthorizer, type RouteBody, type RouteContext, type RouteHandler, type RouteMethod, type RouteOptions, type RouteSpec, type RouteTransport, type RouteUser, type ScopedRouteHandle, type TrackedProcessor, type WebhookEndpointInfo, type WebhookField, type WebhookHashAlgorithm, type WebhookPolicy, type WebhookReply, type WebhookRequest, type WebhookScheme, type WebhookSignatureEncoding, type WebhookSpec, type WebhookVerification, createNamespacedDb, createNamespacedQueryBuilder, createRelationalDb, deletedDocumentId, hashNamespace, namespaceSchemaOf, relationalDbToQueryBuilder };
|
|
1
|
+
import { $o as WebhookEndpointInfo, Ao as ProcessorFactoryBuilder, Bh as PROCESSOR_APPS, Bo as NodeRouteSpec, Co as IProcessorDispatch, Do as ProcessorApps, Eo as ProcessorApp, Fo as TrackedProcessor, Go as RouteContext, Ho as RouteAuth, Io as AuthorizerResult, Jo as RouteOptions, Ko as RouteHandler, Lo as IHttpScope, Mo as ProcessorRecord, No as ProcessorRerunOptions, Oo as ProcessorDispatchResult, Po as ProcessorStatus, Qo as ScopedRouteHandle, Rh as DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, Ro as IWebhookEndpoints, So as IProcessor, To as IProcessorManager, Uo as RouteAuthorizer, Vo as RouteActor, Wo as RouteBody, Xo as RouteTransport, Yo as RouteSpec, Zo as RouteUser, _o as IRelationalDbProcessor, as as WebhookScheme, bo as RelationalDbProcessor, co as createRelationalDb, cs as WebhookVerification, do as relationalDbToQueryBuilder, es as WebhookField, fo as DOCUMENT_ID_COLUMNS, go as IRelationalDb, ho as IBaseRelationalDb, is as WebhookRequest, jo as ProcessorFilter, ko as ProcessorFactory, lo as hashNamespace, ls as deletedDocumentId, mo as HashAlgorithms, ns as WebhookPolicy, oo as createNamespacedDb, os as WebhookSignatureEncoding, po as ExtractProcessorSchemaOrSelf, qo as RouteMethod, rs as WebhookReply, so as createNamespacedQueryBuilder, ss as WebhookSpec, ts as WebhookHashAlgorithm, uo as namespaceSchemaOf, vo as IRelationalQueryBuilder, wo as IProcessorHostModuleBase, xo as RelationalDbProcessorClass, yo as IRelationalQueryMethods, zh as DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, zo as IWebhookScope } from "../types-BMvEggLM.js";
|
|
2
|
+
export { type AuthorizerResult, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, DOCUMENT_ID_COLUMNS, ExtractProcessorSchemaOrSelf, HashAlgorithms, IBaseRelationalDb, type IHttpScope, type IProcessor, type IProcessorDispatch, type IProcessorHostModuleBase, type IProcessorManager, IRelationalDb, IRelationalDbProcessor, IRelationalQueryBuilder, IRelationalQueryMethods, type IWebhookEndpoints, type IWebhookScope, type NodeRouteSpec, PROCESSOR_APPS, type ProcessorApp, type ProcessorApps, type ProcessorDispatchResult, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type ProcessorRerunOptions, type ProcessorStatus, RelationalDbProcessor, RelationalDbProcessorClass, type RouteActor, type RouteAuth, type RouteAuthorizer, type RouteBody, type RouteContext, type RouteHandler, type RouteMethod, type RouteOptions, type RouteSpec, type RouteTransport, type RouteUser, type ScopedRouteHandle, type TrackedProcessor, type WebhookEndpointInfo, type WebhookField, type WebhookHashAlgorithm, type WebhookPolicy, type WebhookReply, type WebhookRequest, type WebhookScheme, type WebhookSignatureEncoding, type WebhookSpec, type WebhookVerification, createNamespacedDb, createNamespacedQueryBuilder, createRelationalDb, deletedDocumentId, hashNamespace, namespaceSchemaOf, relationalDbToQueryBuilder };
|
|
3
3
|
export {};
|
package/dist/processors/index.js
CHANGED
|
@@ -133,6 +133,16 @@ var RelationalDbProcessor = class {
|
|
|
133
133
|
get namespace() {
|
|
134
134
|
return this._namespace;
|
|
135
135
|
}
|
|
136
|
+
/** Processors writing one namespace are cleared together. */
|
|
137
|
+
get clearScope() {
|
|
138
|
+
return this._namespace;
|
|
139
|
+
}
|
|
140
|
+
/** Drops the namespace and its tables, then migrates it afresh. */
|
|
141
|
+
async clear() {
|
|
142
|
+
await this.dropNamespace();
|
|
143
|
+
await this.relationalDb.schema.createSchema(this.namespaceSchema()).ifNotExists().execute();
|
|
144
|
+
await this.initAndUpgrade();
|
|
145
|
+
}
|
|
136
146
|
get query() {
|
|
137
147
|
return relationalDbToQueryBuilder(this.relationalDb);
|
|
138
148
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../processors/constants.ts","../../processors/deletion.ts","../../processors/relational/utils.ts","../../processors/relational/types.ts"],"sourcesContent":["export const PROCESSOR_APPS = [\"connect\", \"switchboard\"] as const;\nexport const DEFAULT_RELATIONAL_PROCESSOR_DB_NAME = \"relational-db\";\nexport const DEFAULT_ANALYTICS_PROCESSOR_DB_NAME = \"analytics-db\";\n","import type { OperationWithContext } from \"../document-model/index.js\";\nimport { PURGE_DOCUMENT } from \"../document-model/purge.js\";\n\n/** The id a DELETE_DOCUMENT or PURGE_DOCUMENT removes; undefined otherwise. */\nexport function deletedDocumentId(\n op: OperationWithContext,\n): string | undefined {\n const { type, input } = op.operation.action;\n if (type !== \"DELETE_DOCUMENT\" && type !== PURGE_DOCUMENT) return undefined;\n const documentId = (input as { documentId?: unknown } | undefined)\n ?.documentId;\n return typeof documentId === \"string\" ? documentId : op.context.documentId;\n}\n","import type { Options } from \"@sindresorhus/fnv1a\";\nimport fnv1a from \"@sindresorhus/fnv1a\";\nimport type {\n IBaseRelationalDb,\n IRelationalDb,\n IRelationalQueryBuilder,\n} from \"./types.js\";\n\nconst SUPPORTED_SIZES: Options[\"size\"][] = [32, 64, 128, 256, 512, 1024];\nconst LOG2_26 = Math.log2(26); //\n/**\n * Hashes a string to a lowercase base-26 string.\n * @param str The string to hash.\n * @param length The length of the hash. Defaults to 10.\n * @param algorithm The hashing algorithm to use. Defaults to \"fnv1a\".\n * @returns The hashed string.\n */\nexport function hashNamespace(str: string, length = 10) {\n const requiredBits = Math.ceil(length * LOG2_26);\n const bitSize =\n SUPPORTED_SIZES.find((size) => size && size >= requiredBits) ?? 1024;\n const hash = fnv1a(str, { size: bitSize });\n return toBase26(hash, length);\n}\n\n// converts hash to lowercase letters\nfunction toBase26(num: bigint, length = 10): string {\n const alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n let out = \"\";\n while (num > 0n && out.length < length) {\n out = alphabet[Number(num % 26n)] + out;\n num /= 26n;\n }\n return out.padStart(length, \"a\"); // optional padding\n}\n\n/**\n * Creates a RelationalDb instance with namespace support.\n * @param baseDb The base RelationalDb instance to enhance.\n * @param baseOptions The default options for namespace creation. Hashes namespace by default.\n * @returns The enhanced RelationalDb instance.\n */\nexport function createRelationalDb<Schema>(\n baseDb: IBaseRelationalDb<Schema>,\n baseOptions?: NamespaceOptions,\n): IRelationalDb<Schema> {\n const relationalDb = baseDb as IRelationalDb<Schema>;\n\n relationalDb.createNamespace = <NamespaceSchema>(\n namespace: string,\n options?: NamespaceOptions,\n ) =>\n createNamespacedDb<NamespaceSchema>(\n baseDb,\n namespace,\n options ?? baseOptions,\n );\n\n relationalDb.queryNamespace = <NamespaceSchema>(\n namespace: string,\n options?: NamespaceOptions,\n ) =>\n createNamespacedQueryBuilder<NamespaceSchema>(\n baseDb,\n namespace,\n options ?? baseOptions,\n );\n\n return relationalDb;\n}\n\ntype NamespaceOptions = {\n hashNamespace?: boolean;\n};\n\nexport async function createNamespacedDb<Schema>(\n db: IBaseRelationalDb<any>,\n namespace: string,\n options?: NamespaceOptions,\n): Promise<IRelationalDb<Schema>> {\n // hash the namespace to avoid too long namespaces\n const shouldHash = options?.hashNamespace ?? true;\n const hashValue = shouldHash ? hashNamespace(namespace) : namespace;\n await db.schema.createSchema(hashValue).ifNotExists().execute();\n const schemaRelationalDb = db.withSchema(hashValue);\n Object.defineProperty(schemaRelationalDb, NAMESPACE_SCHEMA, {\n value: hashValue,\n });\n return schemaRelationalDb as IRelationalDb<Schema>;\n}\n\nconst NAMESPACE_SCHEMA = Symbol.for(\"ph.relational.namespaceSchema\");\n\n/** The schema behind a handle from `createNamespace`; undefined otherwise. */\nexport function namespaceSchemaOf(db: object): string | undefined {\n return (db as { [NAMESPACE_SCHEMA]?: string })[NAMESPACE_SCHEMA];\n}\n\nexport function createNamespacedQueryBuilder<Schema>(\n db: IBaseRelationalDb<any>,\n namespace: string,\n options?: NamespaceOptions,\n): IRelationalQueryBuilder<Schema> {\n const shouldHash = options?.hashNamespace ?? true;\n const hashValue = shouldHash ? hashNamespace(namespace) : namespace;\n const namespacedDb = db.withSchema(hashValue) as IRelationalDb<Schema>;\n return relationalDbToQueryBuilder(namespacedDb);\n}\n\n/**\n * Returns a query builder for a RelationalDb instance.\n * @param query The RelationalDb instance to convert.\n * @returns The IRelationalQueryBuilder instance.\n */\nexport function relationalDbToQueryBuilder<TSchema>(\n query: IBaseRelationalDb<TSchema>,\n): IRelationalQueryBuilder<TSchema> {\n return {\n selectFrom: query.selectFrom.bind(query),\n selectNoFrom: query.selectNoFrom.bind(query),\n with: query.with.bind(query),\n withRecursive: query.withRecursive.bind(query),\n withSchema: (schema: string) =>\n relationalDbToQueryBuilder<TSchema>(query.withSchema(schema)),\n };\n}\n","import type { OperationWithContext } from \"@powerhousedao/shared/document-model\";\nimport { sql, type Kysely, type QueryCreator } from \"kysely\";\nimport type { IProcessor, ProcessorFilter } from \"../types.js\";\nimport { namespaceSchemaOf, relationalDbToQueryBuilder } from \"./utils.js\";\n\n/** Columns {@link RelationalDbProcessor.deleteDocumentRows} matches. */\nexport const DOCUMENT_ID_COLUMNS = [\"document_id\", \"documentId\"] as const;\n\nexport type IRelationalQueryMethods =\n | \"selectFrom\"\n | \"selectNoFrom\"\n | \"with\"\n | \"withRecursive\";\n\nexport type IRelationalQueryBuilder<Schema = unknown> = Pick<\n QueryCreator<Schema>,\n IRelationalQueryMethods\n> & {\n withSchema: (schema: string) => IRelationalQueryBuilder<Schema>;\n};\n\nexport type HashAlgorithms = \"fnv1a\";\nexport type IBaseRelationalDb<Schema = unknown> = Kysely<Schema>;\n\n/**\n * The standardized relational database interface for relational db processors.\n * This abstraction provides type-safe database operations while hiding the underlying\n * database framework implementation details.\n **/\nexport type IRelationalDb<Schema = unknown> = IBaseRelationalDb<Schema> & {\n createNamespace<NamespaceSchema>(\n namespace: string,\n ): Promise<IRelationalDb<ExtractProcessorSchemaOrSelf<NamespaceSchema>>>;\n queryNamespace<NamespaceSchema>(\n namespace: string,\n ): IRelationalQueryBuilder<NamespaceSchema>;\n};\n\nexport type ExtractProcessorSchemaOrSelf<TProcessor> =\n TProcessor extends RelationalDbProcessor<infer TSchema>\n ? TSchema\n : TProcessor;\n\nexport type RelationalDbProcessorClass<TSchema> =\n typeof RelationalDbProcessor<TSchema>;\n\nexport interface IRelationalDbProcessor<\n TDatabaseSchema = unknown,\n> extends IProcessor {\n namespace: string;\n query: IRelationalQueryBuilder<TDatabaseSchema>;\n filter: ProcessorFilter;\n initAndUpgrade(): Promise<void>;\n}\n\nconst IS_RELATIONAL_DB_PROCESSOR = Symbol.for(\"ph.IS_RELATIONAL_DB_PROCESSOR\");\n\n/**\n * Base class for relational db processors that require a relational database storage.\n * This class abstracts database initialization, migration management, and resource cleanup,\n * allowing derived classes to focus on business logic.\n */\nexport abstract class RelationalDbProcessor<\n TDatabaseSchema = unknown,\n> implements IRelationalDbProcessor<TDatabaseSchema> {\n constructor(\n protected _namespace: string,\n protected _filter: ProcessorFilter,\n protected relationalDb: IRelationalDb<TDatabaseSchema>,\n /** The drive the factory created this processor for. */\n protected _driveId?: string,\n ) {}\n\n static [IS_RELATIONAL_DB_PROCESSOR] = true;\n\n /**\n * Returns the namespace for a given drive id.\n * This method can be overridden by derived classes to provide a custom namespace.\n */\n static getNamespace(driveId: string): string {\n return `${this.name}_${driveId.replaceAll(\"-\", \"_\")}`;\n }\n\n static query<Schema>(\n this: RelationalDbProcessorClass<Schema>,\n driveId: string,\n db: IRelationalDb<any>,\n ): IRelationalQueryBuilder<Schema> {\n return db.queryNamespace(this.getNamespace(driveId));\n }\n\n /**\n * Processes a list of operations with context.\n * Called when operations match this processor's filter.\n */\n abstract onOperations(operations: OperationWithContext[]): Promise<void>;\n\n /**\n * Returns the filter for the processor.\n * This method can be overridden by derived classes to provide a custom filter.\n */\n get filter(): ProcessorFilter {\n return this._filter;\n }\n\n /**\n * Returns the namespace used by the processor.\n */\n get namespace(): string {\n return this._namespace;\n }\n\n get query(): IRelationalQueryBuilder<TDatabaseSchema> {\n return relationalDbToQueryBuilder(this.relationalDb);\n }\n\n /** True for this processor's drive when its namespace is that drive's alone. */\n protected isNamespaceDrive(documentId: string): boolean {\n const driveId = this._driveId;\n if (driveId === undefined || documentId !== driveId) return false;\n const processorClass = this.constructor as typeof RelationalDbProcessor;\n if (processorClass.getNamespace(driveId) !== this._namespace) return false;\n return processorClass.getNamespace(`${driveId}-other`) !== this._namespace;\n }\n\n /** Deletes a document's rows from every table with a document-id column. */\n protected async deleteDocumentRows(documentId: string): Promise<void> {\n const schema = this.namespaceSchema();\n const columns = await sql<{ table_name: string; column_name: string }>`\n select c.table_name, c.column_name\n from information_schema.columns c\n join information_schema.tables t\n on t.table_schema = c.table_schema and t.table_name = c.table_name\n where c.table_schema = ${schema}\n and t.table_type = 'BASE TABLE'\n and c.column_name in (${sql.join([...DOCUMENT_ID_COLUMNS])})\n order by c.table_name, c.column_name\n `.execute(this.relationalDb);\n const db = this.relationalDb as unknown as Kysely<any>;\n for (const { table_name, column_name } of columns.rows) {\n await db\n .deleteFrom(table_name)\n .where(column_name, \"=\", documentId)\n .execute();\n }\n }\n\n /** Drops this processor's namespace and every table in it. */\n protected async dropNamespace(): Promise<void> {\n await this.relationalDb.schema\n .dropSchema(this.namespaceSchema())\n .ifExists()\n .cascade()\n .execute();\n }\n\n private namespaceSchema(): string {\n const schema = namespaceSchemaOf(this.relationalDb);\n if (schema === undefined) {\n throw new Error(\n `Namespace '${this._namespace}' was not opened with createNamespace`,\n );\n }\n return schema;\n }\n\n /**\n * Abstract method that derived classes must implement.\n * This method is meant to be called on subclasses to initialize and upgrade the database.\n */\n abstract initAndUpgrade(): Promise<void>;\n\n /**\n * Called when the processor is disconnected.\n * This method is meant to be overridden by subclasses to clean up resources.\n */\n abstract onDisconnect(): Promise<void>;\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../processors/constants.ts","../../processors/deletion.ts","../../processors/relational/utils.ts","../../processors/relational/types.ts"],"sourcesContent":["export const PROCESSOR_APPS = [\"connect\", \"switchboard\"] as const;\nexport const DEFAULT_RELATIONAL_PROCESSOR_DB_NAME = \"relational-db\";\nexport const DEFAULT_ANALYTICS_PROCESSOR_DB_NAME = \"analytics-db\";\n","import type { OperationWithContext } from \"../document-model/index.js\";\nimport { PURGE_DOCUMENT } from \"../document-model/purge.js\";\n\n/** The id a DELETE_DOCUMENT or PURGE_DOCUMENT removes; undefined otherwise. */\nexport function deletedDocumentId(\n op: OperationWithContext,\n): string | undefined {\n const { type, input } = op.operation.action;\n if (type !== \"DELETE_DOCUMENT\" && type !== PURGE_DOCUMENT) return undefined;\n const documentId = (input as { documentId?: unknown } | undefined)\n ?.documentId;\n return typeof documentId === \"string\" ? documentId : op.context.documentId;\n}\n","import type { Options } from \"@sindresorhus/fnv1a\";\nimport fnv1a from \"@sindresorhus/fnv1a\";\nimport type {\n IBaseRelationalDb,\n IRelationalDb,\n IRelationalQueryBuilder,\n} from \"./types.js\";\n\nconst SUPPORTED_SIZES: Options[\"size\"][] = [32, 64, 128, 256, 512, 1024];\nconst LOG2_26 = Math.log2(26); //\n/**\n * Hashes a string to a lowercase base-26 string.\n * @param str The string to hash.\n * @param length The length of the hash. Defaults to 10.\n * @param algorithm The hashing algorithm to use. Defaults to \"fnv1a\".\n * @returns The hashed string.\n */\nexport function hashNamespace(str: string, length = 10) {\n const requiredBits = Math.ceil(length * LOG2_26);\n const bitSize =\n SUPPORTED_SIZES.find((size) => size && size >= requiredBits) ?? 1024;\n const hash = fnv1a(str, { size: bitSize });\n return toBase26(hash, length);\n}\n\n// converts hash to lowercase letters\nfunction toBase26(num: bigint, length = 10): string {\n const alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n let out = \"\";\n while (num > 0n && out.length < length) {\n out = alphabet[Number(num % 26n)] + out;\n num /= 26n;\n }\n return out.padStart(length, \"a\"); // optional padding\n}\n\n/**\n * Creates a RelationalDb instance with namespace support.\n * @param baseDb The base RelationalDb instance to enhance.\n * @param baseOptions The default options for namespace creation. Hashes namespace by default.\n * @returns The enhanced RelationalDb instance.\n */\nexport function createRelationalDb<Schema>(\n baseDb: IBaseRelationalDb<Schema>,\n baseOptions?: NamespaceOptions,\n): IRelationalDb<Schema> {\n const relationalDb = baseDb as IRelationalDb<Schema>;\n\n relationalDb.createNamespace = <NamespaceSchema>(\n namespace: string,\n options?: NamespaceOptions,\n ) =>\n createNamespacedDb<NamespaceSchema>(\n baseDb,\n namespace,\n options ?? baseOptions,\n );\n\n relationalDb.queryNamespace = <NamespaceSchema>(\n namespace: string,\n options?: NamespaceOptions,\n ) =>\n createNamespacedQueryBuilder<NamespaceSchema>(\n baseDb,\n namespace,\n options ?? baseOptions,\n );\n\n return relationalDb;\n}\n\ntype NamespaceOptions = {\n hashNamespace?: boolean;\n};\n\nexport async function createNamespacedDb<Schema>(\n db: IBaseRelationalDb<any>,\n namespace: string,\n options?: NamespaceOptions,\n): Promise<IRelationalDb<Schema>> {\n // hash the namespace to avoid too long namespaces\n const shouldHash = options?.hashNamespace ?? true;\n const hashValue = shouldHash ? hashNamespace(namespace) : namespace;\n await db.schema.createSchema(hashValue).ifNotExists().execute();\n const schemaRelationalDb = db.withSchema(hashValue);\n Object.defineProperty(schemaRelationalDb, NAMESPACE_SCHEMA, {\n value: hashValue,\n });\n return schemaRelationalDb as IRelationalDb<Schema>;\n}\n\nconst NAMESPACE_SCHEMA = Symbol.for(\"ph.relational.namespaceSchema\");\n\n/** The schema behind a handle from `createNamespace`; undefined otherwise. */\nexport function namespaceSchemaOf(db: object): string | undefined {\n return (db as { [NAMESPACE_SCHEMA]?: string })[NAMESPACE_SCHEMA];\n}\n\nexport function createNamespacedQueryBuilder<Schema>(\n db: IBaseRelationalDb<any>,\n namespace: string,\n options?: NamespaceOptions,\n): IRelationalQueryBuilder<Schema> {\n const shouldHash = options?.hashNamespace ?? true;\n const hashValue = shouldHash ? hashNamespace(namespace) : namespace;\n const namespacedDb = db.withSchema(hashValue) as IRelationalDb<Schema>;\n return relationalDbToQueryBuilder(namespacedDb);\n}\n\n/**\n * Returns a query builder for a RelationalDb instance.\n * @param query The RelationalDb instance to convert.\n * @returns The IRelationalQueryBuilder instance.\n */\nexport function relationalDbToQueryBuilder<TSchema>(\n query: IBaseRelationalDb<TSchema>,\n): IRelationalQueryBuilder<TSchema> {\n return {\n selectFrom: query.selectFrom.bind(query),\n selectNoFrom: query.selectNoFrom.bind(query),\n with: query.with.bind(query),\n withRecursive: query.withRecursive.bind(query),\n withSchema: (schema: string) =>\n relationalDbToQueryBuilder<TSchema>(query.withSchema(schema)),\n };\n}\n","import type { OperationWithContext } from \"@powerhousedao/shared/document-model\";\nimport { sql, type Kysely, type QueryCreator } from \"kysely\";\nimport type { IProcessor, ProcessorFilter } from \"../types.js\";\nimport { namespaceSchemaOf, relationalDbToQueryBuilder } from \"./utils.js\";\n\n/** Columns {@link RelationalDbProcessor.deleteDocumentRows} matches. */\nexport const DOCUMENT_ID_COLUMNS = [\"document_id\", \"documentId\"] as const;\n\nexport type IRelationalQueryMethods =\n | \"selectFrom\"\n | \"selectNoFrom\"\n | \"with\"\n | \"withRecursive\";\n\nexport type IRelationalQueryBuilder<Schema = unknown> = Pick<\n QueryCreator<Schema>,\n IRelationalQueryMethods\n> & {\n withSchema: (schema: string) => IRelationalQueryBuilder<Schema>;\n};\n\nexport type HashAlgorithms = \"fnv1a\";\nexport type IBaseRelationalDb<Schema = unknown> = Kysely<Schema>;\n\n/**\n * The standardized relational database interface for relational db processors.\n * This abstraction provides type-safe database operations while hiding the underlying\n * database framework implementation details.\n **/\nexport type IRelationalDb<Schema = unknown> = IBaseRelationalDb<Schema> & {\n createNamespace<NamespaceSchema>(\n namespace: string,\n ): Promise<IRelationalDb<ExtractProcessorSchemaOrSelf<NamespaceSchema>>>;\n queryNamespace<NamespaceSchema>(\n namespace: string,\n ): IRelationalQueryBuilder<NamespaceSchema>;\n};\n\nexport type ExtractProcessorSchemaOrSelf<TProcessor> =\n TProcessor extends RelationalDbProcessor<infer TSchema>\n ? TSchema\n : TProcessor;\n\nexport type RelationalDbProcessorClass<TSchema> =\n typeof RelationalDbProcessor<TSchema>;\n\nexport interface IRelationalDbProcessor<\n TDatabaseSchema = unknown,\n> extends IProcessor {\n namespace: string;\n query: IRelationalQueryBuilder<TDatabaseSchema>;\n filter: ProcessorFilter;\n initAndUpgrade(): Promise<void>;\n}\n\nconst IS_RELATIONAL_DB_PROCESSOR = Symbol.for(\"ph.IS_RELATIONAL_DB_PROCESSOR\");\n\n/**\n * Base class for relational db processors that require a relational database storage.\n * This class abstracts database initialization, migration management, and resource cleanup,\n * allowing derived classes to focus on business logic.\n */\nexport abstract class RelationalDbProcessor<\n TDatabaseSchema = unknown,\n> implements IRelationalDbProcessor<TDatabaseSchema> {\n constructor(\n protected _namespace: string,\n protected _filter: ProcessorFilter,\n protected relationalDb: IRelationalDb<TDatabaseSchema>,\n /** The drive the factory created this processor for. */\n protected _driveId?: string,\n ) {}\n\n static [IS_RELATIONAL_DB_PROCESSOR] = true;\n\n /**\n * Returns the namespace for a given drive id.\n * This method can be overridden by derived classes to provide a custom namespace.\n */\n static getNamespace(driveId: string): string {\n return `${this.name}_${driveId.replaceAll(\"-\", \"_\")}`;\n }\n\n static query<Schema>(\n this: RelationalDbProcessorClass<Schema>,\n driveId: string,\n db: IRelationalDb<any>,\n ): IRelationalQueryBuilder<Schema> {\n return db.queryNamespace(this.getNamespace(driveId));\n }\n\n /**\n * Processes a list of operations with context.\n * Called when operations match this processor's filter.\n */\n abstract onOperations(operations: OperationWithContext[]): Promise<void>;\n\n /**\n * Returns the filter for the processor.\n * This method can be overridden by derived classes to provide a custom filter.\n */\n get filter(): ProcessorFilter {\n return this._filter;\n }\n\n /**\n * Returns the namespace used by the processor.\n */\n get namespace(): string {\n return this._namespace;\n }\n\n /** Processors writing one namespace are cleared together. */\n get clearScope(): string {\n return this._namespace;\n }\n\n /** Drops the namespace and its tables, then migrates it afresh. */\n async clear(): Promise<void> {\n await this.dropNamespace();\n await this.relationalDb.schema\n .createSchema(this.namespaceSchema())\n .ifNotExists()\n .execute();\n await this.initAndUpgrade();\n }\n\n get query(): IRelationalQueryBuilder<TDatabaseSchema> {\n return relationalDbToQueryBuilder(this.relationalDb);\n }\n\n /** True for this processor's drive when its namespace is that drive's alone. */\n protected isNamespaceDrive(documentId: string): boolean {\n const driveId = this._driveId;\n if (driveId === undefined || documentId !== driveId) return false;\n const processorClass = this.constructor as typeof RelationalDbProcessor;\n if (processorClass.getNamespace(driveId) !== this._namespace) return false;\n return processorClass.getNamespace(`${driveId}-other`) !== this._namespace;\n }\n\n /** Deletes a document's rows from every table with a document-id column. */\n protected async deleteDocumentRows(documentId: string): Promise<void> {\n const schema = this.namespaceSchema();\n const columns = await sql<{ table_name: string; column_name: string }>`\n select c.table_name, c.column_name\n from information_schema.columns c\n join information_schema.tables t\n on t.table_schema = c.table_schema and t.table_name = c.table_name\n where c.table_schema = ${schema}\n and t.table_type = 'BASE TABLE'\n and c.column_name in (${sql.join([...DOCUMENT_ID_COLUMNS])})\n order by c.table_name, c.column_name\n `.execute(this.relationalDb);\n const db = this.relationalDb as unknown as Kysely<any>;\n for (const { table_name, column_name } of columns.rows) {\n await db\n .deleteFrom(table_name)\n .where(column_name, \"=\", documentId)\n .execute();\n }\n }\n\n /** Drops this processor's namespace and every table in it. */\n protected async dropNamespace(): Promise<void> {\n await this.relationalDb.schema\n .dropSchema(this.namespaceSchema())\n .ifExists()\n .cascade()\n .execute();\n }\n\n private namespaceSchema(): string {\n const schema = namespaceSchemaOf(this.relationalDb);\n if (schema === undefined) {\n throw new Error(\n `Namespace '${this._namespace}' was not opened with createNamespace`,\n );\n }\n return schema;\n }\n\n /**\n * Abstract method that derived classes must implement.\n * This method is meant to be called on subclasses to initialize and upgrade the database.\n */\n abstract initAndUpgrade(): Promise<void>;\n\n /**\n * Called when the processor is disconnected.\n * This method is meant to be overridden by subclasses to clean up resources.\n */\n abstract onDisconnect(): Promise<void>;\n}\n"],"mappings":"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"}
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { et as DEFAULT_REGISTRY_URL } from "../types-
|
|
2
|
-
import { B as PackagePage, F as PACKAGE_MODULE_TYPES, G as RegistryPackageSource, H as RegistryPackage, I as PackageFacets, K as RegistryPackageStatus, L as PackageInfo, R as PackageListItem, U as RegistryPackageList, V as Page, W as RegistryPackageMap, z as PackageModuleType } from "../types-
|
|
1
|
+
import { et as DEFAULT_REGISTRY_URL } from "../types-BMvEggLM.js";
|
|
2
|
+
import { B as PackagePage, F as PACKAGE_MODULE_TYPES, G as RegistryPackageSource, H as RegistryPackage, I as PackageFacets, K as RegistryPackageStatus, L as PackageInfo, R as PackageListItem, U as RegistryPackageList, V as Page, W as RegistryPackageMap, z as PackageModuleType } from "../types-DiSgFXjt.js";
|
|
3
3
|
import { slimManifest } from "./manifest-slim.js";
|
|
4
4
|
import { toCdnUrl } from "./urls.js";
|
|
5
5
|
import { getUpdateTarget, parseInstallSpec } from "./updates.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["fs"],"sources":["../../registry/types.ts","../../clis/constants.ts","../../clis/file-system/get-config.ts","../../clis/file-system/spawn-async.ts","../../registry/registry.ts"],"sourcesContent":["import type { Manifest } from \"types\";\nexport interface PackageInfo {\n name: string;\n path: string;\n manifest: Manifest | null;\n documentTypes: string[];\n version?: string;\n /** Install spec the user requested (name, name@tag, or name@version); present\n * on installed packages, used to pick the update stream. Absent for legacy\n * entries. */\n spec?: string;\n /** Mapping of dist-tag → version (e.g. {latest: \"1.0.0\", dev: \"1.1.0-dev.3\"}). */\n distTags?: Record<string, string>;\n /** All published versions of the package, sorted ascending by semver. */\n versions?: string[];\n /**\n * The newest version the registry currently reports for this package (the\n * `version` field of list items / single-package responses). Distinct from\n * {@link version}, which holds the installed version on installed rows.\n * Every registry reports it, even ones without dist-tag support, so it is\n * the fallback target for the `latest` update stream.\n */\n latestVersion?: string;\n /** Accounts that own the name (publish/unpublish rights). Present only on\n * registries with the Postgres-backed auth; omitted when untracked. */\n owners?: string[];\n}\n\n/**\n * Item shape of `GET /packages` pages: only what a listing card renders. Pass\n * `detail=full` for {@link PackageInfo} items.\n */\nexport interface PackageListItem {\n name: string;\n path: string;\n version?: string;\n description?: string;\n category?: string;\n publisher?: { name?: string; url?: string };\n}\n\n/** Envelope of `GET /packages` and `GET /pieces`. */\nexport interface Page<T> {\n items: T[];\n total: number;\n limit: number;\n offset: number;\n hasMore: boolean;\n}\n\n/** Filter options over the `name`-restricted set, sent with `facets=true`. */\nexport interface PackageFacets {\n categories: string[];\n publishers: string[];\n}\n\n/** `GET /packages`; items are {@link PackageInfo} with `detail=full`. */\nexport interface PackagePage<T = PackageListItem> extends Page<T> {\n facets?: PackageFacets;\n}\n\n/** Manifest module lists accepted by the `moduleType` filter. */\nexport const PACKAGE_MODULE_TYPES = [\n \"documentModels\",\n \"editors\",\n \"apps\",\n \"subgraphs\",\n \"processors\",\n] as const;\nexport type PackageModuleType = (typeof PACKAGE_MODULE_TYPES)[number];\n\nexport type RegistryPackageStatus =\n | \"available\"\n | \"local-install\"\n | \"registry-install\"\n | \"dismissed\";\n\nexport type RegistryPackageSource =\n | \"available\"\n | \"local-install\"\n | \"registry-install\"\n | \"common\"\n | \"project\";\n\nexport type RegistryPackage = PackageInfo & {\n status: RegistryPackageStatus;\n /**\n * Shared-dependency version mismatches against the Connect build's version\n * table, pre-formatted (see `formatSharedDepWarnings`). Absent when the\n * host has no shared-deps table (vendor-off / dev) or none were found.\n */\n sharedDepWarnings?: string[];\n};\nexport type RegistryPackageMap = Record<string, RegistryPackage | undefined>;\nexport type RegistryPackageList = RegistryPackage[];\n","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\n/**\n * Icon for the drives switchboard creates by default, inlined as a data URI.\n *\n * A remote URL is the wrong shape for this: the value is baked into the drive\n * document and rendered by every Connect that opens it, so the icon only\n * appears when that client can reach that host. A desktop or air-gapped install\n * cannot, and the ipfs.io gateway this previously pointed at now answers 403\n * regardless.\n *\n * The mark is drawn dark-on-light so it stays legible against either theme.\n */\nexport const DEFAULT_DRIVE_ICON =\n \"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Crect%20width='16'%20height='16'%20rx='3'%20fill='%23F3F5F7'/%3E%3Cpath%20fill='%23343839'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.0059%200L3.41636%205.45646C2.44979%206.25682%202.3795%207.71452%203.26456%208.60418L5.54425%2010.8957C6.21311%2011.568%206.35783%2012.6012%205.89944%2013.4314L4.48126%2016H2.13333C0.955126%2016%200%2015.0449%200%2013.8667V2.13333C0%200.955126%200.955126%200%202.13333%200H10.0059ZM11.2436%200L10.0128%202.24221C9.55899%203.06891%209.70183%204.09549%2010.3641%204.7669L12.7825%207.21868C13.6656%208.11402%2013.5866%209.57512%2012.612%2010.37L5.70922%2016H13.8667C15.0449%2016%2016%2015.0449%2016%2013.8667V2.13333C16%200.955126%2015.0449%200%2013.8667%200H11.2436Z'/%3E%3C/svg%3E\" 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\";\nexport const PIECES_FRAMEWORK_PACKAGE = \"@powerhousedao/pieces-framework\";\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.6.5\" },\n} as const satisfies Record<string, PeerSpec>;\n\n// Per-feature deps added dynamically by codegen when required. `devVersioned`\n// is for a workspace package the build inlines, which no consumer provides.\nexport const FEATURE_DEPENDENCIES = {\n analyticsProcessor: {\n peerVersioned: [ANALYTICS_ENGINE_CORE_PACKAGE],\n peerExternal: {},\n devVersioned: [],\n },\n // Each piece is bundled whole (build-pieces.mts), framework included, so the\n // framework is only ever needed to compile the piece's own source.\n piece: {\n peerVersioned: [],\n peerExternal: {},\n devVersioned: [PIECES_FRAMEWORK_PACKAGE],\n },\n} as const satisfies Record<\n string,\n {\n peerVersioned: readonly string[];\n peerExternal: Record<string, PeerSpec>;\n devVersioned: readonly string[];\n }\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 // uniform-runners: the runner modules the scaffolded hosts/*/host.js\n // files name (desktop runner, clint-runner/mastra-runner, and the generic\n // compound they build on); dormant in classic projects until the feature\n // flag defaults on.\n \"@powerhousedao/host-core\",\n \"@powerhousedao/clint\",\n \"@powerhousedao/desktop\",\n // the switchboard plugins the scaffolded switchboard host composes\n // (workflows, mcp, …) and their PHPluginConfigs types for tsc -p hosts.\n \"@powerhousedao/switchboard\",\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 node: \"./dist/node/subgraphs/index.mjs\",\n },\n // The routes the package offers other Connects; built when it has any.\n \"./connect-routes\": {\n browser: \"./dist/browser/connect-routes.js\",\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 // Node only, as the build is: a piece is loaded by a host process, never by\n // the browser. Without these a package can build a piece and still fail the\n // `packageName/pieces` import a host resolves it through.\n \"./pieces\": {\n types: \"./dist/types/pieces/index.d.ts\",\n node: \"./dist/node/pieces/index.mjs\",\n },\n \"./pieces/*\": {\n types: \"./dist/types/pieces/*/index.d.ts\",\n node: \"./dist/node/pieces/*/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\": \"5.0.3\",\n oxfmt: \"0.68.0\",\n oxlint: \"1.70.0\",\n \"oxlint-tsgolint\": \"0.23.0\",\n tailwindcss: \"^4.1.16\",\n typescript: \"~7.0.2\",\n vite: \"^8.0.10\",\n \"vite-tsconfig-paths\": \"6.1.1\",\n vitest: \"5.0.3\",\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":"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"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["fs"],"sources":["../../registry/types.ts","../../clis/constants.ts","../../clis/file-system/get-config.ts","../../clis/file-system/spawn-async.ts","../../registry/registry.ts"],"sourcesContent":["import type { Manifest } from \"types\";\nexport interface PackageInfo {\n name: string;\n path: string;\n manifest: Manifest | null;\n documentTypes: string[];\n version?: string;\n /** Install spec the user requested (name, name@tag, or name@version); present\n * on installed packages, used to pick the update stream. Absent for legacy\n * entries. */\n spec?: string;\n /** Mapping of dist-tag → version (e.g. {latest: \"1.0.0\", dev: \"1.1.0-dev.3\"}). */\n distTags?: Record<string, string>;\n /** All published versions of the package, sorted ascending by semver. */\n versions?: string[];\n /**\n * The newest version the registry currently reports for this package (the\n * `version` field of list items / single-package responses). Distinct from\n * {@link version}, which holds the installed version on installed rows.\n * Every registry reports it, even ones without dist-tag support, so it is\n * the fallback target for the `latest` update stream.\n */\n latestVersion?: string;\n /** Accounts that own the name (publish/unpublish rights). Present only on\n * registries with the Postgres-backed auth; omitted when untracked. */\n owners?: string[];\n}\n\n/**\n * Item shape of `GET /packages` pages: only what a listing card renders. Pass\n * `detail=full` for {@link PackageInfo} items.\n */\nexport interface PackageListItem {\n name: string;\n path: string;\n version?: string;\n description?: string;\n category?: string;\n publisher?: { name?: string; url?: string };\n}\n\n/** Envelope of `GET /packages` and `GET /pieces`. */\nexport interface Page<T> {\n items: T[];\n total: number;\n limit: number;\n offset: number;\n hasMore: boolean;\n}\n\n/** Filter options over the `name`-restricted set, sent with `facets=true`. */\nexport interface PackageFacets {\n categories: string[];\n publishers: string[];\n}\n\n/** `GET /packages`; items are {@link PackageInfo} with `detail=full`. */\nexport interface PackagePage<T = PackageListItem> extends Page<T> {\n facets?: PackageFacets;\n}\n\n/** Manifest module lists accepted by the `moduleType` filter. */\nexport const PACKAGE_MODULE_TYPES = [\n \"documentModels\",\n \"editors\",\n \"apps\",\n \"subgraphs\",\n \"processors\",\n] as const;\nexport type PackageModuleType = (typeof PACKAGE_MODULE_TYPES)[number];\n\nexport type RegistryPackageStatus =\n | \"available\"\n | \"local-install\"\n | \"registry-install\"\n | \"dismissed\";\n\nexport type RegistryPackageSource =\n | \"available\"\n | \"local-install\"\n | \"registry-install\"\n | \"common\"\n | \"project\";\n\nexport type RegistryPackage = PackageInfo & {\n status: RegistryPackageStatus;\n /**\n * Shared-dependency version mismatches against the Connect build's version\n * table, pre-formatted (see `formatSharedDepWarnings`). Absent when the\n * host has no shared-deps table (vendor-off / dev) or none were found.\n */\n sharedDepWarnings?: string[];\n};\nexport type RegistryPackageMap = Record<string, RegistryPackage | undefined>;\nexport type RegistryPackageList = RegistryPackage[];\n","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\n/**\n * Icon for the drives switchboard creates by default, inlined as a data URI.\n *\n * A remote URL is the wrong shape for this: the value is baked into the drive\n * document and rendered by every Connect that opens it, so the icon only\n * appears when that client can reach that host. A desktop or air-gapped install\n * cannot, and the ipfs.io gateway this previously pointed at now answers 403\n * regardless.\n *\n * The mark is drawn dark-on-light so it stays legible against either theme.\n */\nexport const DEFAULT_DRIVE_ICON =\n \"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Crect%20width='16'%20height='16'%20rx='3'%20fill='%23F3F5F7'/%3E%3Cpath%20fill='%23343839'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.0059%200L3.41636%205.45646C2.44979%206.25682%202.3795%207.71452%203.26456%208.60418L5.54425%2010.8957C6.21311%2011.568%206.35783%2012.6012%205.89944%2013.4314L4.48126%2016H2.13333C0.955126%2016%200%2015.0449%200%2013.8667V2.13333C0%200.955126%200.955126%200%202.13333%200H10.0059ZM11.2436%200L10.0128%202.24221C9.55899%203.06891%209.70183%204.09549%2010.3641%204.7669L12.7825%207.21868C13.6656%208.11402%2013.5866%209.57512%2012.612%2010.37L5.70922%2016H13.8667C15.0449%2016%2016%2015.0449%2016%2013.8667V2.13333C16%200.955126%2015.0449%200%2013.8667%200H11.2436Z'/%3E%3C/svg%3E\" 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\";\nexport const PIECES_FRAMEWORK_PACKAGE = \"@powerhousedao/pieces-framework\";\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.6.5\" },\n // Project routes import it; Connect and connect-core take the project's copy.\n \"@tanstack/react-router\": { peer: \"^1.170.41\", dev: \"1.170.41\" },\n} as const satisfies Record<string, PeerSpec>;\n\n// Per-feature deps added dynamically by codegen when required. `devVersioned`\n// is for a workspace package the build inlines, which no consumer provides.\nexport const FEATURE_DEPENDENCIES = {\n analyticsProcessor: {\n peerVersioned: [ANALYTICS_ENGINE_CORE_PACKAGE],\n peerExternal: {},\n devVersioned: [],\n },\n // Each piece is bundled whole (build-pieces.mts), framework included, so the\n // framework is only ever needed to compile the piece's own source.\n piece: {\n peerVersioned: [],\n peerExternal: {},\n devVersioned: [PIECES_FRAMEWORK_PACKAGE],\n },\n} as const satisfies Record<\n string,\n {\n peerVersioned: readonly string[];\n peerExternal: Record<string, PeerSpec>;\n devVersioned: readonly string[];\n }\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 // uniform-runners: the runner modules the scaffolded hosts/*/host.js\n // files name (desktop runner, clint-runner/mastra-runner, and the generic\n // compound they build on); dormant in classic projects until the feature\n // flag defaults on.\n \"@powerhousedao/host-core\",\n \"@powerhousedao/clint\",\n \"@powerhousedao/desktop\",\n // the switchboard plugins the scaffolded switchboard host composes\n // (workflows, mcp, …) and their PHPluginConfigs types for tsc -p hosts.\n \"@powerhousedao/switchboard\",\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 node: \"./dist/node/subgraphs/index.mjs\",\n },\n // The routes the package offers other Connects; built when it has any.\n \"./connect-routes\": {\n browser: \"./dist/browser/connect-routes.js\",\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 // Node only, as the build is: a piece is loaded by a host process, never by\n // the browser. Without these a package can build a piece and still fail the\n // `packageName/pieces` import a host resolves it through.\n \"./pieces\": {\n types: \"./dist/types/pieces/index.d.ts\",\n node: \"./dist/node/pieces/index.mjs\",\n },\n \"./pieces/*\": {\n types: \"./dist/types/pieces/*/index.d.ts\",\n node: \"./dist/node/pieces/*/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\": \"5.0.3\",\n oxfmt: \"0.68.0\",\n oxlint: \"1.70.0\",\n \"oxlint-tsgolint\": \"0.23.0\",\n tailwindcss: \"^4.1.16\",\n typescript: \"~7.0.2\",\n vite: \"^8.0.10\",\n \"vite-tsconfig-paths\": \"6.1.1\",\n vitest: \"5.0.3\",\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":";;;;;;;;;AA8DA,MAAa,uBAAuB;CAClC;CACA;CACA;CACA;CACA;AACF;AC1BA,MAAa,uBAAuB;AA8CpC,MAAa,yBAAyB;AAKtC,MAAa,WAAW,QAAQ;AAEK,KAAK,UAAA,KAA4B;AAGtE,MAAa,8BAA8B,CACzC,kBACA,gCACF;AA6BA,MAAa,uBAAuB;CAClC,oBAAoB;EAClB,eAAe,CAAC,sCAA6B;EAC7C,cAAc,CAAC;EACf,cAAc,CAAC;CACjB;CAGA,OAAO;EACL,eAAe,CAAC;EAChB,cAAc,CAAC;EACf,cAAc,CAAC,iCAAwB;CACzC;AACF;AASsC,CACpC,GAAG,6BACH,GAAG,qBAAqB,mBAAmB,aAC7C;AAoNA,MAAa,iBAAmC;CAC9C,mBAAmB;CACnB,YAAY;CACZ,eAAe;CACf,cAAc;CACd,kBAAkB;CAClB,YAAY;CACZ,UAAU;CACV,MAAM;EACJ,SAAS;EACT,QAAQ,CAAC;CACX;AACF;;;ACvXA,SAAgB,UAAU,OAAO,4BAA4B;CAC3D,IAAI,SAA2B,EAAE,GAAG,eAAe;CACnD,IAAI;EACF,MAAM,YAAY,aAAa,MAAM,OAAO;EAC5C,MAAM,aAAa,KAAK,MAAM,SAAS;EACvC,SAAS;GAAE,GAAG;GAAQ,GAAG;EAAW;CACtC,QAAQ,CAER;CAEA,OAAO;AACT;;;ACbA,SAAgB,WACd,SACA,MACA,UAGI,CAAC,GACY;CACjB,OAAO,IAAI,SAAS,SAAS,WAAW;EAUtC,MAAM,QAAQ,MAAM,SAAS,MAAM;GACjC,KAAK,QAAQ;GACb,KAAK,QAAQ;GACb,OAAO;IAAC;IAAU;IAAQ;GAAM;EAClC,CAAC;EAED,IAAI,SAAS;EACb,IAAI,SAAS;EAEb,MAAM,QAAQ,GAAG,SAAS,MAAc;GACtC,UAAU,EAAE,SAAS;EACvB,CAAC;EAED,MAAM,QAAQ,GAAG,SAAS,MAAc;GACtC,UAAU,EAAE,SAAS;EACvB,CAAC;EAED,MAAM,GAAG,SAAS,MAAM;EAExB,MAAM,GAAG,UAAU,SAAS;GAC1B,IAAI,SAAS,GACX,QAAQ,OAAO,KAAK,CAAC;QAErB,OACE,IAAI,MAAM,OAAO,KAAK,KAAK,GAAG,QAAQ,oBAAoB,MAAM,CAClE;EAEJ,CAAC;CACH,CAAC;AACH;;;;;;;ACjCA,SAAgB,gBAAgB,aAA6B;CAC3D,MAAM,MAAM,IAAI,IAAI,WAAW;CAG/B,MAAM,OAAO,IAAI,SAAS,SAAS,GAAG,IAAI,IAAI,WAAW,GAAG,IAAI,SAAS;CACzE,OAAO,KAAK,IAAI,OAAO,KAAK;AAC9B;;;;AAcA,SAAgB,mBAAmB,SAA4C;CAC7E,MAAM,EAAE,UAAU,aAAa,MAAM,QAAQ,QAAQ;CAErD,MAAM,SAAS,UADI,KAAK,aAAa,sBACZ,CAAU;CAEnC,OACE,YACA,IAAI,mBACJ,OAAO,sBAAA;AAGX;;;;;AAMA,eAAsB,aAAa,aAAsC;CACvE,OAAO,WAAW,OAAO;EAAC;EAAU;EAAc;CAAW,CAAC;AAChE;;;;;;;;;AA2BA,eAAsB,WACpB,SAC2B;CAC3B,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,GAAG,cAAc;CAMnD,OAAO,EAAE,QAAA,MADY,WAAW,OAAO;EADtB;EAAW;EAAc;EAAa,GAHtC,YACb,CAAC,KAAK,gBAAgB,WAAW,EAAE,GAAG,WAAW,IACjD,CAAC;EAC+D,GAAG;CAChC,GAAS,EAAE,IAAI,CAAC,EACvC;AAClB;;;;;;AAOA,eAAsB,uBACpB,aACA,OACiB;CACjB,MAAM,YAAY,KAAK,QAAQ,GAAG,QAAQ;CAC1C,MAAM,MAAM,gBAAgB,WAAW;CACvC,IAAI,WAAW;CACf,IAAI;EACF,WAAW,MAAMA,SAAG,SAAS,WAAW,MAAM;CAChD,SAAS,KAAK;EACZ,IAAK,IAA8B,SAAS,UAAU,MAAM;CAC9D;CAEA,MAAM,WADQ,SAAS,MAAM,IACR,CAAC,CAAC,QAAQ,SAAS,CAAC,KAAK,WAAW,GAAG,IAAI,EAAE,CAAC;CAEnE,OAAO,SAAS,UAAU,SAAS,SAAS,SAAS,OAAO,IAC1D,SAAS,IAAI;CACf,SAAS,KAAK,GAAG,IAAI,GAAG,OAAO;CAC/B,MAAMA,SAAG,UAAU,WAAW,GAAG,SAAS,KAAK,IAAI,EAAE,KAAK,MAAM;CAChE,OAAO;AACT;;;;;;AAyBA,eAAsB,aACpB,SAC6B;CAC7B,MAAM,EAAE,aAAa,KAAK,MAAM,OAAO,CAAC,GAAG,cAAc;CAczD,OAAO,EAAE,QAAA,MADY,WAAW,OAAO;EARrC;EACA;EACA;EACA;EACA;EACA,GATe,YACb,CAAC,KAAK,gBAAgB,WAAW,EAAE,GAAG,WAAW,IACjD,CAAC;EAQH,GAAG;CAEkC,GAAS,EAAE,IAAI,CAAC,EACvC;AAClB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Jn as Manifest } from "../types-
|
|
2
|
-
import "../types-
|
|
1
|
+
import { Jn as Manifest } from "../types-BMvEggLM.js";
|
|
2
|
+
import "../types-DiSgFXjt.js";
|
|
3
3
|
//#region registry/manifest-slim.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Reduce a manifest to the summary fields the package-listing surfaces
|
|
@@ -2764,6 +2764,18 @@ interface IProcessor {
|
|
|
2764
2764
|
* Also runs when the factory is unregistered, so it is not a deletion signal.
|
|
2765
2765
|
*/
|
|
2766
2766
|
onDisconnect(): Promise<void>;
|
|
2767
|
+
/**
|
|
2768
|
+
* Optional. Erases everything this processor derived, so that a replay from
|
|
2769
|
+
* its first ordinal rebuilds it. Called while none of the processors sharing
|
|
2770
|
+
* its {@link clearScope} is being delivered to.
|
|
2771
|
+
*/
|
|
2772
|
+
clear?(): Promise<void>;
|
|
2773
|
+
/**
|
|
2774
|
+
* What `clear` erases. Processors of one drive and factory with equal scopes
|
|
2775
|
+
* share what they derived, so they are cleared and replayed together. A
|
|
2776
|
+
* processor without one shares only with records holding the same instance.
|
|
2777
|
+
*/
|
|
2778
|
+
readonly clearScope?: string;
|
|
2767
2779
|
}
|
|
2768
2780
|
/**
|
|
2769
2781
|
* Relates a processor to its filter configuration.
|
|
@@ -2788,6 +2800,13 @@ type ProcessorFactoryBuilder<TModule extends IProcessorHostModuleBase = IProcess
|
|
|
2788
2800
|
bivarianceHack(module: TModule): Promise<ProcessorFactory> | ProcessorFactory;
|
|
2789
2801
|
}["bivarianceHack"];
|
|
2790
2802
|
type ProcessorStatus = "active" | "errored";
|
|
2803
|
+
/** How {@link IProcessorManager.rerun} replays a processor. */
|
|
2804
|
+
type ProcessorRerunOptions = {
|
|
2805
|
+
/** Erase what it derived first; `fromOrdinal` is then its floor. */
|
|
2806
|
+
clear: boolean;
|
|
2807
|
+
/** Without `clear`: the ordinal the replay starts above. */
|
|
2808
|
+
fromOrdinal: number;
|
|
2809
|
+
};
|
|
2791
2810
|
type TrackedProcessor = {
|
|
2792
2811
|
processorId: string;
|
|
2793
2812
|
factoryId: string;
|
|
@@ -2798,6 +2817,8 @@ type TrackedProcessor = {
|
|
|
2798
2817
|
status: ProcessorStatus;
|
|
2799
2818
|
lastError: string | undefined;
|
|
2800
2819
|
lastErrorTimestamp: Date | undefined;
|
|
2820
|
+
/** Ordinals at or below this are never delivered to it. */
|
|
2821
|
+
floor: number;
|
|
2801
2822
|
/**
|
|
2802
2823
|
* Clears the error and resolves once the replay from the cursor completes.
|
|
2803
2824
|
* Safe from anywhere, but awaiting it from this processor's own
|
|
@@ -2840,6 +2861,15 @@ interface IProcessorManager {
|
|
|
2840
2861
|
* inside a processor's own `onOperations`.
|
|
2841
2862
|
*/
|
|
2842
2863
|
unregisterFactory(identifier: string): Promise<void>;
|
|
2864
|
+
/**
|
|
2865
|
+
* Replays a processor and resolves once the replay completes. With `clear`,
|
|
2866
|
+
* it and the processors sharing its clear scope are cleared, then replayed
|
|
2867
|
+
* from their floor; otherwise its cursor moves back to `fromOrdinal`, which
|
|
2868
|
+
* lies between its floor and its cursor, and the processor receives every
|
|
2869
|
+
* matching operation above it again. Rejects for an unknown processor, a
|
|
2870
|
+
* `clear` one of them cannot do, or an ordinal outside that range.
|
|
2871
|
+
*/
|
|
2872
|
+
rerun(processorId: string, options: ProcessorRerunOptions): Promise<void>;
|
|
2843
2873
|
/**
|
|
2844
2874
|
* Gets a tracked processor by its ID.
|
|
2845
2875
|
*/
|
|
@@ -2916,6 +2946,10 @@ declare abstract class RelationalDbProcessor<TDatabaseSchema = unknown> implemen
|
|
|
2916
2946
|
* Returns the namespace used by the processor.
|
|
2917
2947
|
*/
|
|
2918
2948
|
get namespace(): string;
|
|
2949
|
+
/** Processors writing one namespace are cleared together. */
|
|
2950
|
+
get clearScope(): string;
|
|
2951
|
+
/** Drops the namespace and its tables, then migrates it afresh. */
|
|
2952
|
+
clear(): Promise<void>;
|
|
2919
2953
|
get query(): IRelationalQueryBuilder<TDatabaseSchema>;
|
|
2920
2954
|
/** True for this processor's drive when its namespace is that drive's alone. */
|
|
2921
2955
|
protected isNamespaceDrive(documentId: string): boolean;
|
|
@@ -4326,6 +4360,6 @@ type PowerhouseConfig = {
|
|
|
4326
4360
|
connect?: PHConnectRuntimeConfig;
|
|
4327
4361
|
};
|
|
4328
4362
|
//#endregion
|
|
4329
|
-
export { ServiceActions as $, UpdateRelationshipActionInput as $a, documentModelHeaderReducer as $c, SetGrantActionInput as $d, deleteModule as $f, SetModuleDescriptionInput as $i, baseSaveToFileHandle as $l, defaultAuthState as $m, MoveOperationAction as $n, WebhookField as $o, attachBranch as $p, PhAiToolAnnotations as $r, OperationErrorSchema as $s, DocumentModelDocument as $t, buildOperationSignatureMessage as $u, PHConnectPwaUrlPattern as A, Set_Name as Aa, SetOperationErrorCodeInputSchema as Ac, grantProblem as Ad, canonicalJson as Af, AppActionSigner as Ah, SaveToFileHandle as Ai, coversLocal as Al, skipHeaderOperations as Am, GetDocumentOptions as An, ProcessorFactoryBuilder as Ao, setOperationErrorCode as Ap, MutationSetModuleNameArgs as Ar, AddChangeLogItemInputSchema as As, CreateDocument as At, InvalidActionInputZodError as Au, PHPackageProvider as B, SkipHeaderOperations as Ba, SetPreferredEditorActionSchema as Bc, AuthVerb as Bd, actionSigner as Bf, SetAuthorWebsiteAction as Bi, selectProtocolVersions as Bl, Operand as Bm, InputMaybe as Bn, RouteActor as Bo, setStateSchema as Bp, MutationSetOperationTemplateArgs as Br, DeleteChangeLogItemInputSchema as Bs, DeleteModuleAction as Bt, DocumentModelSchema as Bu, PHConnectPackages as C, SetOperationTemplateAction as Ca, SetModelIdInputSchema as Cc, assertAuthAdministrationRetained as Cd, ActionSignerIdentity as Cf, operationOutcome as Ch, ReorderOperationExamplesAction as Ci, PEER_CAPABILITIES as Cl, precedes as Cm, DocumentSpecification as Cn, IProcessorDispatch as Co, setModelExtension as Cp, MutationSetAuthorWebsiteArgs as Cr, validateInitialState as Cs, CodeExample as Ct, AuthInitializerNotCreatorError as Cu, PHConnectPwaIcon as D, SetPreferredEditorOperation as Da, SetNameActionInputSchema as Dc, evaluateCondition as Dd, actionPreimageV2 as Df, undoOperation as Dh, ReplayDocumentOptions as Di, PeerManifest as Dl, replayDocument as Dm, EditorProps as Dn, ProcessorApps as Do, setModuleName as Dp, MutationSetModelIdArgs as Dr, validateOperationName as Ds, CopyChildDocumentSignal as Dt, GrantNotFoundError as Du, PHConnectPwaFileHandler as E, SetPreferredEditorActionInput as Ea, SetModuleNameInputSchema as Ec, assertValidInitialGrants as Ed, DOCUMENT_SCOPE_ACTION_TYPES as Ef, setPreferredEditorOperation as Eh, ReorderStateExamplesInput as Ei, PeerCapabilityFlags as El, removeExistingOperations as Em, EditorModule as En, ProcessorApp as Eo, setModuleDescription as Ep, MutationSetModelExtensionArgs as Er, validateModules as Es, CopyChildDocumentInput as Et, FileSystemError as Eu, PHConnectRuntimeConfig as F, SignalResults as Fa, SetOperationReducerInputSchema as Fc, AuthDecision as Fd, v2TupleProblem as Ff, deserializeSignature as Fh, SchemaSetPreferredEditorAction as Fi, localSupports as Fl, withSignaturePolicy as Fm, IOperation as Fn, AuthorizerResult as Fo, setOperationReducer as Fp, MutationSetOperationErrorNameArgs as Fr, AddStateExampleInputSchema as Fs, DeleteChangeLogItemInput as Ft, groupMembershipActionTypes as Fu, PHSchemedColor as G, UndoAction as Ga, UndoActionInputSchema as Gc, MAX_SUPPORTED_AUTH_VERSION as Gd, addOperationError as Gf, SetModelDescriptionInput as Gi, createVerificationSigner as Gl, Principal as Gm, MakeEmpty as Gn, RouteHandler as Go, verifyOperationSignature as Gp, MutationUpdateStateExampleArgs as Gr, DeleteStateExampleInputSchema as Gs, DeleteOperationExampleAction as Gt, AUTH_DENIED_BY_GRANT_REASON as Gu, PHReactorRenown as H, StateReducer as Ha, Set_NameSchema as Hc, InitializeAuthAction as Hd, addChangeLogItem as Hf, SetInitialStateAction as Hi, createPresignedHeader as Hl, PHBaseState as Hm, IsStateOfType as Hn, RouteAuthorizer as Ho, updateChangeLogItem as Hp, MutationUndoArgs as Hr, DeleteOperationErrorInputSchema as Hs, DeleteOperationAction as Ht, assertIsDocumentModelState as Hu, PHConnectSentry as I, SignalType as Ia, SetOperationSchemaInputSchema as Ic, AuthEvaluation as Id, Action as If, serializeSignature as Ih, SchemaUndoAction as Ii, manifestRevision as Il, AuthGroups as Im, ISignal as In, IHttpScope as Io, setOperationSchema as Ip, MutationSetOperationErrorTemplateArgs as Ir, AuthorSchema as Is, DeleteChildDocumentInput as It, BaseDocumentHeaderSchema as Iu, ParsedCmdResult as J, UpdateChangeLogItemAction as Ja, UpdateChangeLogItemInputSchema as Jc, MoveGrantActionInputSchema as Jd, baseActions as Jf, SetModelIdAction as Ji, validateHeader as Jl, createBaseState as Jm, Manifest as Jn, RouteSpec as Jo, PHDocument as Jp, OperationIndex as Jr, DocumentModelInputSchema as Js, DeleteStateExampleAction as Jt, DOCUMENT_DELETED_REASON as Ju, PHSchemedImage as K, UndoActionInput as Ka, UndoActionSchema as Kc, MoveGrantAction as Kd, addOperationExample as Kf, SetModelExtensionAction as Ki, hasDerivedDocumentId as Kl, backfillAuthState as Km, MakeMaybe as Kn, RouteMethod as Ko, IntegrityIssueSubType as Kp, NOOPAction as Kr, DocumentActionSchema as Ks, DeleteOperationExampleInput as Kt, AUTH_NO_GRANT_REASON as Ku, PHEdges as L, SignatureVerificationHandler as La, SetOperationScopeInputSchema as Lc, AuthRefusal as Ld, ActionContext as Lf, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Lh, ScopeState as Li, mergePeerCapabilities as Ll, Capability as Lm, ISignalResult as Ln, IWebhookEndpoints as Lo, setOperationScope as Lp, MutationSetOperationNameArgs as Lr, CodeExampleSchema as Ls, DeleteChildDocumentSignal as Lt, BaseDocumentStateSchema as Lu, PHConnectReactorFeatureFlags as M, Signal as Ma, SetOperationErrorNameInputSchema as Mc, referencedGroupIds as Md, isV2ActionHash as Mf, PHDocumentSignatureInfo as Mh, SchemaNOOPAction as Mi, isOlderManifest as Ml, sortOperations as Mm, IAction as Mn, ProcessorRecord as Mo, setOperationErrorName as Mp, MutationSetOperationDescriptionArgs as Mr, AddOperationErrorInputSchema as Ms, CreateDocumentActionInput as Mt, UnsupportedDocumentModelVersionError as Mu, PHConnectRenown as N, SignalDispatch as Na, SetOperationErrorTemplateInputSchema as Nc, AUTH_ACTION_TYPES as Nd, signActionV2 as Nf, Signature as Nh, SchemaRedoAction as Ni, legacySupports as Nl, split as Nm, ID as Nn, ProcessorStatus as No, setOperationErrorTemplate as Np, MutationSetOperationErrorCodeArgs as Nr, AddOperationExampleInputSchema as Ns, CreateState as Nt, documentModelDocumentType as Nu, PHConnectPwaManifest as O, SetStateSchemaAction as Oa, SetNameActionSchema as Oc, evaluateGrantStack as Od, actionSignerIdentity as Of, undoOperationV2 as Oh, RevisionsFilter as Oi, ProtocolCapability as Ol, reshuffleByTimestamp as Om, Exact as On, ProcessorDispatchResult as Oo, setName as Op, MutationSetModelNameArgs as Or, validateOperations as Os, CreateChildDocumentInput as Ot, HashMismatchError as Ou, PHConnectRenownAdapters as P, SignalResult as Pa, SetOperationNameInputSchema as Pc, AuthAction as Pd, targetDocumentId as Pf, UserActionSigner as Ph, SchemaSetNameAction as Pi, localPeerManifest as Pl, updateHeaderRevision as Pm, IDocument as Pn, TrackedProcessor as Po, setOperationName as Pp, MutationSetOperationErrorDescriptionArgs as Pr, AddOperationInputSchema as Ps, DeleteChangeLogItemAction as Pt, groupDocumentType as Pu, ServiceAction as Q, UpdateRelationshipAction as Qa, isDefinedNonNullAny as Qc, SetGrantAction as Qd, deleteChangeLogItem as Qf, SetModuleDescriptionAction as Qi, baseLoadFromInputVersioned as Ql, createState as Qm, ModuleSpecification as Qn, WebhookEndpointInfo as Qo, appendWithoutApplying as Qp, PartialState as Qr, MoveOperationInputSchema as Qs, DocumentModelAction as Qt, base64UrlToBytes as Qu, PHImageRef as R, SigningParameters as Ra, SetOperationTemplateInputSchema as Rc, AuthRequest as Rd, actionContext as Rf, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as Rh, SetAuthorNameAction as Ri, peerSupports as Rl, Condition as Rm, ISigner as Rn, IWebhookScope as Ro, setOperationTemplate as Rp, MutationSetOperationReducerArgs as Rr, ConfigEntrySchema as Rs, DeleteDocumentAction as Rt, DocumentModelHeaderSchema as Ru, PHConnectOpenPanel as S, SetOperationScopeInput as Sa, SetModelExtensionInputSchema as Sc, MAX_CONDITION_NODES as Sd, ACTION_SIGNATURE_V2_PREFIX as Sf, OperationWithContext$1 as Sh, ReorderOperationErrorsInput as Si, MARKER_REFUSAL_FEATURE as Sl, parseResultingState as Sm, DocumentOperationsIgnoreMap as Sn, IProcessor as So, setModelDescription as Sp, MutationSetAuthorNameArgs as Sr, isValidOperationNameFormat as Ss, Author as St, AuthAlreadyInitializedError as Su, PHConnectPwaCacheStrategy as T, SetPreferredEditorAction as Ta, SetModuleDescriptionInputSchema as Tc, assertValidGrantUpsert as Td, CanonicalJsonError as Tf, setNameOperation as Th, ReorderStateExamplesAction as Ti, PeerCapability as Tl, readOnly as Tm, EditorDispatch as Tn, IProcessorManager as To, setModelName as Tp, MutationSetModelDescriptionArgs as Tr, validateModuleOperation as Ts, ConfigEntryType as Tt, DowngradeNotSupportedError as Tu, PHRenownPrivyAdapterConfig as U, SubgraphModule as Ua, Set_PreferredEditorSchema as Uc, InitializeAuthActionInput as Ud, addModule as Uf, SetInitialStateInput as Ui, createSignedHeader as Ul, PHDocumentState as Um, LoadFromFile as Un, RouteBody as Uo, updateOperationExample as Up, MutationUpdateChangeLogItemInputArgs as Ur, DeleteOperationExampleInputSchema as Us, DeleteOperationErrorAction as Ut, isDocumentModelDocument as Uu, PHReactorClientMode as V, State as Va, SetStateSchemaInputSchema as Vc, ConditionContext as Vd, actions as Vf, SetAuthorWebsiteInput as Vi, createCopyHeader as Vl, PHAuthState as Vm, IsDocumentOfType as Vn, RouteAuth as Vo, undo as Vp, MutationSetStateSchemaArgs as Vr, DeleteModuleInputSchema as Vs, DeleteModuleInput as Vt, assertIsDocumentModelDocument as Vu, PHRenownRainbowAdapterConfig as W, Undo as Wa, StateSchema as Wc, InitializeAuthActionInputSchema as Wd, addOperation as Wf, SetModelDescriptionAction as Wi, createSignedHeaderForSigner as Wl, PHGroupState as Wm, LoadFromInput as Wn, RouteContext as Wo, updateStateExample as Wp, MutationUpdateOperationExampleArgs as Wr, DeleteOperationInputSchema as Ws, DeleteOperationErrorInput as Wt, isDocumentModelState as Wu, PowerhouseConfig as X, UpdateOperationExampleAction as Xa, UpdateStateExampleInputSchema as Xc, RemoveGrantActionInput as Xd, buildSignedAction as Xf, SetModelNameAction as Xi, BulkArchiveEntry as Xl, createGlobalState as Xm, Maybe as Xn, RouteUser as Xo, PHDocumentMeta as Xp, OperationsByScope as Xr, ManifestSchema as Xs, DocumentAction as Xt, ab2hex as Xu, PathValidation as Y, UpdateChangeLogItemInput as Ya, UpdateOperationExampleInputSchema as Yc, RemoveGrantAction as Yd, buildOperationSignature as Yf, SetModelIdInput as Yi, verify as Yl, createDocumentState as Ym, MappedOperation as Yn, RouteTransport as Yo, PHDocumentHeader as Yp, OperationSpecification as Yr, DocumentSpecificationSchema as Ys, DeleteStateExampleInput as Yt, isDenied as Yu, PowerhousePackage as Z, UpdateOperationExampleInput as Za, definedNonNullAnySchema as Zc, RemoveGrantActionInputSchema as Zd, createAction as Zf, SetModelNameInput as Zi, baseLoadFromInput as Zl, createLocalState as Zm, MinimalBackupData as Zn, ScopedRouteHandle as Zo, addUndo as Zp, PartialRecord as Zr, ModuleSchema as Zs, DocumentDispatch as Zt, base58Decode as Zu, PHConnectDrives as _, SetOperationReducerAction as _a, ScopeStateSchema as _c, GroupPrincipalNotAllowedError as _d, setGrant as _f, v2RequiredProtocolVersions as _h, ReorderModuleOperationsAction as _i, purgeMarkerOperation as _l, mapSkippedOperations as _m, DocumentModelStateAction as _n, IRelationalDbProcessor as _o, reorderOperationExamples as _p, MutationReorderModuleOperationsArgs as _r, findOperationErrorOrThrow as _s, AddRelationshipActionInput as _t, applyDeleteDocumentAction as _u, PHBackground as a, SetOperationDescriptionAction as aa, PowerhouseModulesSchema as ac, HASH_ALGORITHM_SHA1 as ad, applySetGrantAction as af, DEFAULT_SIGNATURE_POLICY as ah, PurgeDocumentActionInput as ai, documentModelStateReducer as al, filterDocumentOperationsResultingState as am, DocumentModelLib as an, ValidationError as ao, moveOperation as ap, MutationAddOperationErrorArgs as ar, WebhookSignatureEncoding as as, Actions as at, getFileBrowser as au, PHConnectInstance as b, SetOperationSchemaInput as ba, SetInitialStateInputSchema as bc, MAX_CAPABILITY_OPERATIONS as bd, TransportSigner as bf, OperationContext as bh, ReorderModulesInput as bi, FeatureCapability as bl, nextSkipNumber as bm, DocumentModelVersioningAction as bn, RelationalDbProcessor as bo, setAuthorWebsite as bp, MutationReorderOperationExamplesArgs as br, getAllOperationNames as bs, AssertIsDocumentOfType as bt, withProtocolVersions as bu, PHConnectAi as c, SetOperationErrorCodeInput as ca, RedoActionInputSchema as cc, HASH_ENCODING_BASE64 as cd, decide as cf, SIGNATURE_PROTOCOL as ch, RedoAction as ci, baseReducer as cl, garbageCollectDocumentOperations as cm, DocumentModelModuleAction as cn, createRelationalDb as co, operationFromAction as cp, MutationDeleteChangeLogItemInputArgs as cr, deletedDocumentId as cs, AddModuleAction as ct, readFileBrowser as cu, PHConnectCompositionEntry as d, SetOperationErrorNameAction as da, ReorderChangeLogItemsInputSchema as dc, documentModelGlobalState as dd, isAuthAction as df, deriveDocumentId as dh, ReducerOptions as di, replayOperations as dl, groupOperationsByScope as dm, DocumentModelOperationErrorAction as dn, relationalDbToQueryBuilder as do, redo as dp, MutationDeleteOperationErrorArgs as dr, ReservedOperationName as ds, AddOperationErrorAction as dt, VersionedReducers as du, SetModuleNameAction as ea, OperationScopeSchema as ec, buildOperationSignatureParams as ed, SetGrantActionInputSchema as ef, defaultBaseState as eh, PhAiToolDescriptor as ei, documentModelModuleReducer as el, baseCreateDocument as em, DocumentModelDocumentModelModule as en, UpdateStateExampleAction as eo, deleteOperation as ep, MoveOperationInput as er, WebhookHashAlgorithm as es, DEFAULT_REGISTRY_URL as et, createMinimalZip as eu, PHConnectDefaultDrive as f, SetOperationErrorNameInput as fa, ReorderModuleOperationsInputSchema as fc, documentModelInitialGlobalState as fd, isDocumentCreator as ff, isDerivedDocumentId as fh, ReleaseNewVersionAction as fi, updateDocument as fl, hashDocumentStateForScope as fm, DocumentModelOperationErrorOperations as fn, DOCUMENT_ID_COLUMNS as fo, releaseNewVersion as fp, MutationDeleteOperationExampleArgs as fr, assertModuleIdUnique as fs, AddOperationErrorInput as ft, VersionedReplayConfig as fu, PHConnectDriveSections as g, SetOperationNameInput as ga, ReorderStateExamplesInputSchema as gc, GrantSchema as gd, resolveSnapshotAuth as gf, signaturePolicyOf as gh, ReorderChangeLogItemsInput as gi, purgeDocumentAction as gl, isUndoRedo as gm, DocumentModelPHState as gn, IRelationalDb as go, reorderOperationErrors as gp, MutationReorderChangeLogItemsInputArgs as gr, findModuleOrThrow as gs, AddRelationshipAction as gt, UpgradeTransition as gu, PHConnectDriveSection as h, SetOperationNameAction as ha, ReorderOperationExamplesInputSchema as hc, AuthAdministrationMissingError as hd, removeGrant as hf, requestedSignaturePolicy as hh, ReorderChangeLogItemsAction as hi, isPurgeMarker as hl, isUndo as hm, DocumentModelOperationOperations as hn, IBaseRelationalDb as ho, reorderModules as hp, MutationRedoArgs as hr, assertOperationIdUnique as hs, AddOperationInput as ht, UpgradeReducer as hu, LogLevels as i, SetNameOperation as ia, PowerhouseModuleSchema as ic, hex2ab as id, applyRemoveGrantAction as if, defaultPHState as ih, PurgeDocumentAction as ii, documentModelReducer as il, diffOperations as im, DocumentModelInput as in, User as io, documentModelActions as ip, MutationAddOperationArgs as ir, WebhookScheme as is, ActionVerificationHandler as it, fetchFileBrowser as iu, PHConnectReactor as j, Set_PreferredEditor as ja, SetOperationErrorDescriptionInputSchema as jc, isPlainValue as jd, hashActionV2 as jf, HashConfig as jh, Scalars as ji, holdReason as jl, sortMappedOperations as jm, HostedEditorProps as jn, ProcessorFilter as jo, setOperationErrorDescription as jp, MutationSetNameArgs as jr, AddModuleInputSchema as js, CreateDocumentAction as jt, InvalidAuthVersionError as ju, PHConnectPwaRuntimeCaching as k, SetStateSchemaInput as ka, SetOperationDescriptionInputSchema as kc, evaluateGrants as kd, actionSigningTarget as kf, ActionSigner as kh, SaveToFile as ki, Supports as kl, reshuffleByTimestampAndIndex as km, FileInput as kn, ProcessorFactory as ko, setOperationDescription as kp, MutationSetModuleDescriptionArgs as kr, validateStateSchemaName as ks, CreateChildDocumentSignal as kt, InvalidActionInputError as ku, PHConnectApp as l, SetOperationErrorDescriptionAction as la, RedoActionSchema as lc, HASH_ENCODING_HEX as ld, evaluate as lf, SIGNATURE_PROTOCOL_V2 as lh, RedoActionInput as li, createReducer as ll, garbageCollectV2 as lm, DocumentModelModuleOperations as ln, hashNamespace as lo, operationFromOperation as lp, MutationDeleteModuleArgs as lr, OPERATION_NAME_PATTERN as ls, AddModuleInput as lt, writeFileBrowser as lu, PHConnectDefaultDriveRemote as m, SetOperationErrorTemplateInput as ma, ReorderOperationErrorsInputSchema as mc, AuthAdministrationLockoutError as md, moveGrant as mf, protocolVersionsFor as mh, RemoveRelationshipActionInput as mi, PurgeMarkerOperation as ml, isNoopOperation as mm, DocumentModelOperationExampleOperations as mn, HashAlgorithms as mo, reorderModuleOperations as mp, MutationMoveOperationArgs as mr, assertOperationExampleIdUnique as ms, AddOperationExampleInput as mt, UpgradeManifest as mu, DrivePreserveStrategy as n, SetNameAction as na, PieceModuleSchema as nc, getUnixTimestamp as nd, applyInitializeAuthAction as nf, defaultGlobalState as nh, PowerhouseModule as ni, documentModelOperationExampleReducer as nl, checkCleanedOperationsIntegrity as nm, DocumentModelHeaderAction as nn, UpgradeDocumentAction as no, deleteOperationExample as np, MutationAddChangeLogItemInputArgs as nr, WebhookReply as ns, ActionSignatureContext as nt, documentModelLoadFromInput as nu, PHBackgroundLayer as o, SetOperationDescriptionInput as oa, PublisherSchema as oc, HASH_ALGORITHM_SHA256 as od, assertAuthPreservedOnDuplicate as of, DocumentIdParams as oh, Query as oi, documentModelStateSchemaReducer as ol, filterDuplicatedOperations as om, DocumentModelLocalState as on, createNamespacedDb as oo, noop as op, MutationAddOperationExampleArgs as or, WebhookSpec as os, AddChangeLogItemAction as ot, isDocumentZip as ou, PHConnectDefaultDriveLocal as p, SetOperationErrorTemplateAction as pa, ReorderModulesInputSchema as pc, documentModelInitialLocalState as pd, mentionedGroupIds as pf, isSignaturePolicy as ph, RemoveRelationshipAction as pi, PURGE_DOCUMENT as pl, isDocumentAction as pm, DocumentModelOperationExampleAction as pn, ExtractProcessorSchemaOrSelf as po, reorderChangeLogItems as pp, MutationDeleteStateExampleArgs as pr, assertOperationErrorIdUnique as ps, AddOperationExampleAction as pt, replayDocumentVersioned as pu, PackageManagerArgs as q, UndoRedoAction as qa, UndoSchema as qc, MoveGrantActionInput as qd, addStateExample as qf, SetModelExtensionInput as qi, sign as ql, createAuthState as qm, MakeOptional as qn, RouteOptions as qo, IntegrityIssueType as qp, OperationErrorSpecification as qr, DocumentModelGlobalStateSchema as qs, DeleteOperationInput as qt, AUTH_VERSION_UNSUPPORTED_REASON as qu, LogLevel as r, SetNameActionInput as ra, PieceModulesSchema as rc, hashBrowser as rd, applyMoveGrantAction as rf, defaultLocalState as rh, Publisher as ri, documentModelOperationReducer as rl, checkOperationsIntegrity as rm, DocumentModelHeaderOperations as rn, UpgradeDocumentActionInput as ro, deleteStateExample as rp, MutationAddModuleArgs as rr, WebhookRequest as rs, ActionSigningHandler as rt, documentModelSaveToFileHandle as ru, PHBackgroundLayers as s, SetOperationErrorCodeAction as sa, PwaConfigSchema as sc, HASH_ALGORITHM_SHA512 as sd, assertAuthScopeActionAllowed as sf, ProtocolVersions as sh, Redo as si, documentModelVersioningReducer as sl, garbageCollect as sm, DocumentModelModule as sn, createNamespacedQueryBuilder as so, operationExampleCreators as sp, MutationAddStateExampleArgs as sr, WebhookVerification as ss, AddChangeLogItemInput as st, parseBulkArchive as su, DrivePreserveStrategies as t, SetModuleNameInput as ta, OperationSpecificationSchema as tc, bytesToBase64Url as td, applyAuthAction as tf, defaultDocumentState as th, PieceModule as ti, documentModelOperationErrorReducer as tl, baseReducerVersion as tm, DocumentModelGlobalState as tn, UpdateStateExampleInput as to, deleteOperationError as tp, Mutation as tr, WebhookPolicy as ts, ActionErrorCallback as tt, createZip as tu, PHConnectBranding as u, SetOperationErrorDescriptionInput as ua, RedoSchema as uc, documentModelFileExtension as ud, initializeAuth as uf, SignaturePolicy$1 as uh, Reducer as ui, processUndoRedo as ul, getDocumentLastModified as um, DocumentModelOperationAction as un, namespaceSchemaOf as uo, operationWithContext as up, MutationDeleteOperationArgs as ur, RESERVED_OPERATION_NAMES as us, AddOperationAction as ut, zipEntries as uu, PHConnectExplorerIcons as v, SetOperationReducerInput as va, SetAuthorNameInputSchema as vc, InvalidGrantError as vd, TransportAction as vf, DocumentOperations as vh, ReorderModuleOperationsInput as vi, purgedProtocolVersions as vl, mapSkippedOperationsV2 as vm, DocumentModelStateOperations as vn, IRelationalQueryBuilder as vo, reorderStateExamples as vp, MutationReorderModulesArgs as vr, findOperationExampleOrThrow as vs, AddStateExampleAction as vt, applyUpgradeDocumentAction as vu, PHConnectPwa as w, SetOperationTemplateInput as wa, SetModelNameInputSchema as wc, assertValidGrant as wd, ActionSigningTarget as wf, redoOperation as wh, ReorderOperationExamplesInput as wi, PEER_MANIFEST_FORMAT as wl, prepareOperations as wm, ENSInfo as wn, IProcessorHostModuleBase as wo, setModelId as wp, MutationSetInitialStateArgs as wr, validateModule as ws, ConfigEntry as wt, AuthPolicyNotPreservedError as wu, PHConnectLoader as x, SetOperationScopeAction as xa, SetModelDescriptionInputSchema as xc, MAX_CONDITION_DEPTH as xd, toTransportAction as xf, OperationOutcome as xh, ReorderOperationErrorsAction as xi, HoldReason as xl, operationsAreEqual as xm, DocumentModelVersioningOperations as xn, RelationalDbProcessorClass as xo, setInitialState as xp, MutationReorderStateExamplesArgs as xr, isReservedOperationName as xs, AssertIsStateOfType as xt, AuthActionNotAllowedError as xu, PHConnectHome as y, SetOperationSchemaAction as ya, SetAuthorWebsiteInputSchema as yc, MAX_AUTH_GRANTS as yd, TransportActionContext as yf, Operation as yh, ReorderModulesAction as yi, DOCUMENT_PURGE_PROTOCOL as yl, merge as ym, DocumentModelUtils as yn, IRelationalQueryMethods as yo, setAuthorName as yp, MutationReorderOperationErrorsArgs as yr, findOperationOrThrow as ys, AddStateExampleInput as yt, computeUpgradeTransitions as yu, PHLength as z, SkipHeaderOperationIndex as za, SetPreferredEditorActionInputSchema as zc, AuthSubject as zd, actionFromAction as zf, PROCESSOR_APPS as zh, SetAuthorNameInput as zi, readPeerManifest as zl, Grant as zm, Incremental as zn, NodeRouteSpec as zo, setPreferredEditor as zp, MutationSetOperationSchemaArgs as zr, ConfigEntryTypeSchema as zs, DeleteDocumentActionInput as zt, DocumentModelPHStateSchema as zu };
|
|
4363
|
+
export { ServiceActions as $, UpdateRelationshipActionInput as $a, isDefinedNonNullAny as $c, SetGrantAction as $d, deleteChangeLogItem as $f, SetModuleDescriptionInput as $i, baseLoadFromInputVersioned as $l, createState as $m, MoveOperationAction as $n, WebhookEndpointInfo as $o, appendWithoutApplying as $p, PhAiToolAnnotations as $r, MoveOperationInputSchema as $s, DocumentModelDocument as $t, base64UrlToBytes as $u, PHConnectPwaUrlPattern as A, Set_Name as Aa, SetOperationDescriptionInputSchema as Ac, evaluateGrants as Ad, actionSigningTarget as Af, ActionSigner as Ah, SaveToFileHandle as Ai, Supports as Al, reshuffleByTimestampAndIndex as Am, GetDocumentOptions as An, ProcessorFactoryBuilder as Ao, setOperationDescription as Ap, MutationSetModuleNameArgs as Ar, validateStateSchemaName as As, CreateDocument as At, InvalidActionInputError as Au, PHPackageProvider as B, SkipHeaderOperations as Ba, SetPreferredEditorActionInputSchema as Bc, AuthSubject as Bd, actionFromAction as Bf, PROCESSOR_APPS as Bh, SetAuthorWebsiteAction as Bi, readPeerManifest as Bl, Grant as Bm, InputMaybe as Bn, NodeRouteSpec as Bo, setPreferredEditor as Bp, MutationSetOperationTemplateArgs as Br, ConfigEntryTypeSchema as Bs, DeleteModuleAction as Bt, DocumentModelPHStateSchema as Bu, PHConnectPackages as C, SetOperationTemplateAction as Ca, SetModelExtensionInputSchema as Cc, MAX_CONDITION_NODES as Cd, ACTION_SIGNATURE_V2_PREFIX as Cf, OperationWithContext$1 as Ch, ReorderOperationExamplesAction as Ci, MARKER_REFUSAL_FEATURE as Cl, parseResultingState as Cm, DocumentSpecification as Cn, IProcessorDispatch as Co, setModelDescription as Cp, MutationSetAuthorWebsiteArgs as Cr, isValidOperationNameFormat as Cs, CodeExample as Ct, AuthAlreadyInitializedError as Cu, PHConnectPwaIcon as D, SetPreferredEditorOperation as Da, SetModuleNameInputSchema as Dc, assertValidInitialGrants as Dd, DOCUMENT_SCOPE_ACTION_TYPES as Df, setPreferredEditorOperation as Dh, ReplayDocumentOptions as Di, PeerCapabilityFlags as Dl, removeExistingOperations as Dm, EditorProps as Dn, ProcessorApps as Do, setModuleDescription as Dp, MutationSetModelIdArgs as Dr, validateModules as Ds, CopyChildDocumentSignal as Dt, FileSystemError as Du, PHConnectPwaFileHandler as E, SetPreferredEditorActionInput as Ea, SetModuleDescriptionInputSchema as Ec, assertValidGrantUpsert as Ed, CanonicalJsonError as Ef, setNameOperation as Eh, ReorderStateExamplesInput as Ei, PeerCapability as El, readOnly as Em, EditorModule as En, ProcessorApp as Eo, setModelName as Ep, MutationSetModelExtensionArgs as Er, validateModuleOperation as Es, CopyChildDocumentInput as Et, DowngradeNotSupportedError as Eu, PHConnectRuntimeConfig as F, SignalResults as Fa, SetOperationNameInputSchema as Fc, AuthAction as Fd, targetDocumentId as Ff, UserActionSigner as Fh, SchemaSetPreferredEditorAction as Fi, localPeerManifest as Fl, updateHeaderRevision as Fm, IOperation as Fn, TrackedProcessor as Fo, setOperationName as Fp, MutationSetOperationErrorNameArgs as Fr, AddOperationInputSchema as Fs, DeleteChangeLogItemInput as Ft, groupDocumentType as Fu, PHSchemedColor as G, UndoAction as Ga, StateSchema as Gc, InitializeAuthActionInputSchema as Gd, addOperation as Gf, SetModelDescriptionInput as Gi, createSignedHeaderForSigner as Gl, PHGroupState as Gm, MakeEmpty as Gn, RouteContext as Go, updateStateExample as Gp, MutationUpdateStateExampleArgs as Gr, DeleteOperationInputSchema as Gs, DeleteOperationExampleAction as Gt, isDocumentModelState as Gu, PHReactorRenown as H, StateReducer as Ha, SetStateSchemaInputSchema as Hc, ConditionContext as Hd, actions as Hf, SetInitialStateAction as Hi, createCopyHeader as Hl, PHAuthState as Hm, IsStateOfType as Hn, RouteAuth as Ho, undo as Hp, MutationUndoArgs as Hr, DeleteModuleInputSchema as Hs, DeleteOperationAction as Ht, assertIsDocumentModelDocument as Hu, PHConnectSentry as I, SignalType as Ia, SetOperationReducerInputSchema as Ic, AuthDecision as Id, v2TupleProblem as If, deserializeSignature as Ih, SchemaUndoAction as Ii, localSupports as Il, withSignaturePolicy as Im, ISignal as In, AuthorizerResult as Io, setOperationReducer as Ip, MutationSetOperationErrorTemplateArgs as Ir, AddStateExampleInputSchema as Is, DeleteChildDocumentInput as It, groupMembershipActionTypes as Iu, ParsedCmdResult as J, UpdateChangeLogItemAction as Ja, UndoSchema as Jc, MoveGrantActionInput as Jd, addStateExample as Jf, SetModelIdAction as Ji, sign as Jl, createAuthState as Jm, Manifest as Jn, RouteOptions as Jo, IntegrityIssueType as Jp, OperationIndex as Jr, DocumentModelGlobalStateSchema as Js, DeleteStateExampleAction as Jt, AUTH_VERSION_UNSUPPORTED_REASON as Ju, PHSchemedImage as K, UndoActionInput as Ka, UndoActionInputSchema as Kc, MAX_SUPPORTED_AUTH_VERSION as Kd, addOperationError as Kf, SetModelExtensionAction as Ki, createVerificationSigner as Kl, Principal as Km, MakeMaybe as Kn, RouteHandler as Ko, verifyOperationSignature as Kp, NOOPAction as Kr, DeleteStateExampleInputSchema as Ks, DeleteOperationExampleInput as Kt, AUTH_DENIED_BY_GRANT_REASON as Ku, PHEdges as L, SignatureVerificationHandler as La, SetOperationSchemaInputSchema as Lc, AuthEvaluation as Ld, Action as Lf, serializeSignature as Lh, ScopeState as Li, manifestRevision as Ll, AuthGroups as Lm, ISignalResult as Ln, IHttpScope as Lo, setOperationSchema as Lp, MutationSetOperationNameArgs as Lr, AuthorSchema as Ls, DeleteChildDocumentSignal as Lt, BaseDocumentHeaderSchema as Lu, PHConnectReactorFeatureFlags as M, Signal as Ma, SetOperationErrorDescriptionInputSchema as Mc, isPlainValue as Md, hashActionV2 as Mf, HashConfig as Mh, SchemaNOOPAction as Mi, holdReason as Ml, sortMappedOperations as Mm, IAction as Mn, ProcessorRecord as Mo, setOperationErrorDescription as Mp, MutationSetOperationDescriptionArgs as Mr, AddModuleInputSchema as Ms, CreateDocumentActionInput as Mt, InvalidAuthVersionError as Mu, PHConnectRenown as N, SignalDispatch as Na, SetOperationErrorNameInputSchema as Nc, referencedGroupIds as Nd, isV2ActionHash as Nf, PHDocumentSignatureInfo as Nh, SchemaRedoAction as Ni, isOlderManifest as Nl, sortOperations as Nm, ID as Nn, ProcessorRerunOptions as No, setOperationErrorName as Np, MutationSetOperationErrorCodeArgs as Nr, AddOperationErrorInputSchema as Ns, CreateState as Nt, UnsupportedDocumentModelVersionError as Nu, PHConnectPwaManifest as O, SetStateSchemaAction as Oa, SetNameActionInputSchema as Oc, evaluateCondition as Od, actionPreimageV2 as Of, undoOperation as Oh, RevisionsFilter as Oi, PeerManifest as Ol, replayDocument as Om, Exact as On, ProcessorDispatchResult as Oo, setModuleName as Op, MutationSetModelNameArgs as Or, validateOperationName as Os, CreateChildDocumentInput as Ot, GrantNotFoundError as Ou, PHConnectRenownAdapters as P, SignalResult as Pa, SetOperationErrorTemplateInputSchema as Pc, AUTH_ACTION_TYPES as Pd, signActionV2 as Pf, Signature as Ph, SchemaSetNameAction as Pi, legacySupports as Pl, split as Pm, IDocument as Pn, ProcessorStatus as Po, setOperationErrorTemplate as Pp, MutationSetOperationErrorDescriptionArgs as Pr, AddOperationExampleInputSchema as Ps, DeleteChangeLogItemAction as Pt, documentModelDocumentType as Pu, ServiceAction as Q, UpdateRelationshipAction as Qa, definedNonNullAnySchema as Qc, RemoveGrantActionInputSchema as Qd, createAction as Qf, SetModuleDescriptionAction as Qi, baseLoadFromInput as Ql, createLocalState as Qm, ModuleSpecification as Qn, ScopedRouteHandle as Qo, addUndo as Qp, PartialState as Qr, ModuleSchema as Qs, DocumentModelAction as Qt, base58Decode as Qu, PHImageRef as R, SigningParameters as Ra, SetOperationScopeInputSchema as Rc, AuthRefusal as Rd, ActionContext as Rf, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME as Rh, SetAuthorNameAction as Ri, mergePeerCapabilities as Rl, Capability as Rm, ISigner as Rn, IWebhookEndpoints as Ro, setOperationScope as Rp, MutationSetOperationReducerArgs as Rr, CodeExampleSchema as Rs, DeleteDocumentAction as Rt, BaseDocumentStateSchema as Ru, PHConnectOpenPanel as S, SetOperationScopeInput as Sa, SetModelDescriptionInputSchema as Sc, MAX_CONDITION_DEPTH as Sd, toTransportAction as Sf, OperationOutcome as Sh, ReorderOperationErrorsInput as Si, HoldReason as Sl, operationsAreEqual as Sm, DocumentOperationsIgnoreMap as Sn, IProcessor as So, setInitialState as Sp, MutationSetAuthorNameArgs as Sr, isReservedOperationName as Ss, Author as St, AuthActionNotAllowedError as Su, PHConnectPwaCacheStrategy as T, SetPreferredEditorAction as Ta, SetModelNameInputSchema as Tc, assertValidGrant as Td, ActionSigningTarget as Tf, redoOperation as Th, ReorderStateExamplesAction as Ti, PEER_MANIFEST_FORMAT as Tl, prepareOperations as Tm, EditorDispatch as Tn, IProcessorManager as To, setModelId as Tp, MutationSetModelDescriptionArgs as Tr, validateModule as Ts, ConfigEntryType as Tt, AuthPolicyNotPreservedError as Tu, PHRenownPrivyAdapterConfig as U, SubgraphModule as Ua, Set_NameSchema as Uc, InitializeAuthAction as Ud, addChangeLogItem as Uf, SetInitialStateInput as Ui, createPresignedHeader as Ul, PHBaseState as Um, LoadFromFile as Un, RouteAuthorizer as Uo, updateChangeLogItem as Up, MutationUpdateChangeLogItemInputArgs as Ur, DeleteOperationErrorInputSchema as Us, DeleteOperationErrorAction as Ut, assertIsDocumentModelState as Uu, PHReactorClientMode as V, State as Va, SetPreferredEditorActionSchema as Vc, AuthVerb as Vd, actionSigner as Vf, SetAuthorWebsiteInput as Vi, selectProtocolVersions as Vl, Operand as Vm, IsDocumentOfType as Vn, RouteActor as Vo, setStateSchema as Vp, MutationSetStateSchemaArgs as Vr, DeleteChangeLogItemInputSchema as Vs, DeleteModuleInput as Vt, DocumentModelSchema as Vu, PHRenownRainbowAdapterConfig as W, Undo as Wa, Set_PreferredEditorSchema as Wc, InitializeAuthActionInput as Wd, addModule as Wf, SetModelDescriptionAction as Wi, createSignedHeader as Wl, PHDocumentState as Wm, LoadFromInput as Wn, RouteBody as Wo, updateOperationExample as Wp, MutationUpdateOperationExampleArgs as Wr, DeleteOperationExampleInputSchema as Ws, DeleteOperationErrorInput as Wt, isDocumentModelDocument as Wu, PowerhouseConfig as X, UpdateOperationExampleAction as Xa, UpdateOperationExampleInputSchema as Xc, RemoveGrantAction as Xd, buildOperationSignature as Xf, SetModelNameAction as Xi, verify as Xl, createDocumentState as Xm, Maybe as Xn, RouteTransport as Xo, PHDocumentHeader as Xp, OperationsByScope as Xr, DocumentSpecificationSchema as Xs, DocumentAction as Xt, isDenied as Xu, PathValidation as Y, UpdateChangeLogItemInput as Ya, UpdateChangeLogItemInputSchema as Yc, MoveGrantActionInputSchema as Yd, baseActions as Yf, SetModelIdInput as Yi, validateHeader as Yl, createBaseState as Ym, MappedOperation as Yn, RouteSpec as Yo, PHDocument as Yp, OperationSpecification as Yr, DocumentModelInputSchema as Ys, DeleteStateExampleInput as Yt, DOCUMENT_DELETED_REASON as Yu, PowerhousePackage as Z, UpdateOperationExampleInput as Za, UpdateStateExampleInputSchema as Zc, RemoveGrantActionInput as Zd, buildSignedAction as Zf, SetModelNameInput as Zi, BulkArchiveEntry as Zl, createGlobalState as Zm, MinimalBackupData as Zn, RouteUser as Zo, PHDocumentMeta as Zp, PartialRecord as Zr, ManifestSchema as Zs, DocumentDispatch as Zt, ab2hex as Zu, PHConnectDrives as _, SetOperationReducerAction as _a, ReorderStateExamplesInputSchema as _c, GrantSchema as _d, resolveSnapshotAuth as _f, signaturePolicyOf as _h, ReorderModuleOperationsAction as _i, purgeDocumentAction as _l, isUndoRedo as _m, DocumentModelStateAction as _n, IRelationalDbProcessor as _o, reorderOperationErrors as _p, MutationReorderModuleOperationsArgs as _r, findModuleOrThrow as _s, AddRelationshipActionInput as _t, UpgradeTransition as _u, PHBackground as a, SetOperationDescriptionAction as aa, PowerhouseModuleSchema as ac, hex2ab as ad, applyRemoveGrantAction as af, defaultPHState as ah, PurgeDocumentActionInput as ai, documentModelReducer as al, diffOperations as am, DocumentModelLib as an, ValidationError as ao, documentModelActions as ap, MutationAddOperationErrorArgs as ar, WebhookScheme as as, Actions as at, fetchFileBrowser as au, PHConnectInstance as b, SetOperationSchemaInput as ba, SetAuthorWebsiteInputSchema as bc, MAX_AUTH_GRANTS as bd, TransportActionContext as bf, Operation as bh, ReorderModulesInput as bi, DOCUMENT_PURGE_PROTOCOL as bl, merge as bm, DocumentModelVersioningAction as bn, RelationalDbProcessor as bo, setAuthorName as bp, MutationReorderOperationExamplesArgs as br, findOperationOrThrow as bs, AssertIsDocumentOfType as bt, computeUpgradeTransitions as bu, PHConnectAi as c, SetOperationErrorCodeInput as ca, PwaConfigSchema as cc, HASH_ALGORITHM_SHA512 as cd, assertAuthScopeActionAllowed as cf, ProtocolVersions as ch, RedoAction as ci, documentModelVersioningReducer as cl, garbageCollect as cm, DocumentModelModuleAction as cn, createRelationalDb as co, operationExampleCreators as cp, MutationDeleteChangeLogItemInputArgs as cr, WebhookVerification as cs, AddModuleAction as ct, parseBulkArchive as cu, PHConnectCompositionEntry as d, SetOperationErrorNameAction as da, RedoSchema as dc, documentModelFileExtension as dd, initializeAuth as df, SignaturePolicy$1 as dh, ReducerOptions as di, processUndoRedo as dl, getDocumentLastModified as dm, DocumentModelOperationErrorAction as dn, relationalDbToQueryBuilder as do, operationWithContext as dp, MutationDeleteOperationErrorArgs as dr, RESERVED_OPERATION_NAMES as ds, AddOperationErrorAction as dt, zipEntries as du, SetModuleNameAction as ea, OperationErrorSchema as ec, buildOperationSignatureMessage as ed, SetGrantActionInput as ef, defaultAuthState as eh, PhAiToolDescriptor as ei, documentModelHeaderReducer as el, attachBranch as em, DocumentModelDocumentModelModule as en, UpdateStateExampleAction as eo, deleteModule as ep, MoveOperationInput as er, WebhookField as es, DEFAULT_REGISTRY_URL as et, baseSaveToFileHandle as eu, PHConnectDefaultDrive as f, SetOperationErrorNameInput as fa, ReorderChangeLogItemsInputSchema as fc, documentModelGlobalState as fd, isAuthAction as ff, deriveDocumentId as fh, ReleaseNewVersionAction as fi, replayOperations as fl, groupOperationsByScope as fm, DocumentModelOperationErrorOperations as fn, DOCUMENT_ID_COLUMNS as fo, redo as fp, MutationDeleteOperationExampleArgs as fr, ReservedOperationName as fs, AddOperationErrorInput as ft, VersionedReducers as fu, PHConnectDriveSections as g, SetOperationNameInput as ga, ReorderOperationExamplesInputSchema as gc, AuthAdministrationMissingError as gd, removeGrant as gf, requestedSignaturePolicy as gh, ReorderChangeLogItemsInput as gi, isPurgeMarker as gl, isUndo as gm, DocumentModelPHState as gn, IRelationalDb as go, reorderModules as gp, MutationReorderChangeLogItemsInputArgs as gr, assertOperationIdUnique as gs, AddRelationshipAction as gt, UpgradeReducer as gu, PHConnectDriveSection as h, SetOperationNameAction as ha, ReorderOperationErrorsInputSchema as hc, AuthAdministrationLockoutError as hd, moveGrant as hf, protocolVersionsFor as hh, ReorderChangeLogItemsAction as hi, PurgeMarkerOperation as hl, isNoopOperation as hm, DocumentModelOperationOperations as hn, IBaseRelationalDb as ho, reorderModuleOperations as hp, MutationRedoArgs as hr, assertOperationExampleIdUnique as hs, AddOperationInput as ht, UpgradeManifest as hu, LogLevels as i, SetNameOperation as ia, PieceModulesSchema as ic, hashBrowser as id, applyMoveGrantAction as if, defaultLocalState as ih, PurgeDocumentAction as ii, documentModelOperationReducer as il, checkOperationsIntegrity as im, DocumentModelInput as in, User as io, deleteStateExample as ip, MutationAddOperationArgs as ir, WebhookRequest as is, ActionVerificationHandler as it, documentModelSaveToFileHandle as iu, PHConnectReactor as j, Set_PreferredEditor as ja, SetOperationErrorCodeInputSchema as jc, grantProblem as jd, canonicalJson as jf, AppActionSigner as jh, Scalars as ji, coversLocal as jl, skipHeaderOperations as jm, HostedEditorProps as jn, ProcessorFilter as jo, setOperationErrorCode as jp, MutationSetNameArgs as jr, AddChangeLogItemInputSchema as js, CreateDocumentAction as jt, InvalidActionInputZodError as ju, PHConnectPwaRuntimeCaching as k, SetStateSchemaInput as ka, SetNameActionSchema as kc, evaluateGrantStack as kd, actionSignerIdentity as kf, undoOperationV2 as kh, SaveToFile as ki, ProtocolCapability as kl, reshuffleByTimestamp as km, FileInput as kn, ProcessorFactory as ko, setName as kp, MutationSetModuleDescriptionArgs as kr, validateOperations as ks, CreateChildDocumentSignal as kt, HashMismatchError as ku, PHConnectApp as l, SetOperationErrorDescriptionAction as la, RedoActionInputSchema as lc, HASH_ENCODING_BASE64 as ld, decide as lf, SIGNATURE_PROTOCOL as lh, RedoActionInput as li, baseReducer as ll, garbageCollectDocumentOperations as lm, DocumentModelModuleOperations as ln, hashNamespace as lo, operationFromAction as lp, MutationDeleteModuleArgs as lr, deletedDocumentId as ls, AddModuleInput as lt, readFileBrowser as lu, PHConnectDefaultDriveRemote as m, SetOperationErrorTemplateInput as ma, ReorderModulesInputSchema as mc, documentModelInitialLocalState as md, mentionedGroupIds as mf, isSignaturePolicy as mh, RemoveRelationshipActionInput as mi, PURGE_DOCUMENT as ml, isDocumentAction as mm, DocumentModelOperationExampleOperations as mn, HashAlgorithms as mo, reorderChangeLogItems as mp, MutationMoveOperationArgs as mr, assertOperationErrorIdUnique as ms, AddOperationExampleInput as mt, replayDocumentVersioned as mu, DrivePreserveStrategy as n, SetNameAction as na, OperationSpecificationSchema as nc, bytesToBase64Url as nd, applyAuthAction as nf, defaultDocumentState as nh, PowerhouseModule as ni, documentModelOperationErrorReducer as nl, baseReducerVersion as nm, DocumentModelHeaderAction as nn, UpgradeDocumentAction as no, deleteOperationError as np, MutationAddChangeLogItemInputArgs as nr, WebhookPolicy as ns, ActionSignatureContext as nt, createZip as nu, PHBackgroundLayer as o, SetOperationDescriptionInput as oa, PowerhouseModulesSchema as oc, HASH_ALGORITHM_SHA1 as od, applySetGrantAction as of, DEFAULT_SIGNATURE_POLICY as oh, Query as oi, documentModelStateReducer as ol, filterDocumentOperationsResultingState as om, DocumentModelLocalState as on, createNamespacedDb as oo, moveOperation as op, MutationAddOperationExampleArgs as or, WebhookSignatureEncoding as os, AddChangeLogItemAction as ot, getFileBrowser as ou, PHConnectDefaultDriveLocal as p, SetOperationErrorTemplateAction as pa, ReorderModuleOperationsInputSchema as pc, documentModelInitialGlobalState as pd, isDocumentCreator as pf, isDerivedDocumentId as ph, RemoveRelationshipAction as pi, updateDocument as pl, hashDocumentStateForScope as pm, DocumentModelOperationExampleAction as pn, ExtractProcessorSchemaOrSelf as po, releaseNewVersion as pp, MutationDeleteStateExampleArgs as pr, assertModuleIdUnique as ps, AddOperationExampleAction as pt, VersionedReplayConfig as pu, PackageManagerArgs as q, UndoRedoAction as qa, UndoActionSchema as qc, MoveGrantAction as qd, addOperationExample as qf, SetModelExtensionInput as qi, hasDerivedDocumentId as ql, backfillAuthState as qm, MakeOptional as qn, RouteMethod as qo, IntegrityIssueSubType as qp, OperationErrorSpecification as qr, DocumentActionSchema as qs, DeleteOperationInput as qt, AUTH_NO_GRANT_REASON as qu, LogLevel as r, SetNameActionInput as ra, PieceModuleSchema as rc, getUnixTimestamp as rd, applyInitializeAuthAction as rf, defaultGlobalState as rh, Publisher as ri, documentModelOperationExampleReducer as rl, checkCleanedOperationsIntegrity as rm, DocumentModelHeaderOperations as rn, UpgradeDocumentActionInput as ro, deleteOperationExample as rp, MutationAddModuleArgs as rr, WebhookReply as rs, ActionSigningHandler as rt, documentModelLoadFromInput as ru, PHBackgroundLayers as s, SetOperationErrorCodeAction as sa, PublisherSchema as sc, HASH_ALGORITHM_SHA256 as sd, assertAuthPreservedOnDuplicate as sf, DocumentIdParams as sh, Redo as si, documentModelStateSchemaReducer as sl, filterDuplicatedOperations as sm, DocumentModelModule as sn, createNamespacedQueryBuilder as so, noop as sp, MutationAddStateExampleArgs as sr, WebhookSpec as ss, AddChangeLogItemInput as st, isDocumentZip as su, DrivePreserveStrategies as t, SetModuleNameInput as ta, OperationScopeSchema as tc, buildOperationSignatureParams as td, SetGrantActionInputSchema as tf, defaultBaseState as th, PieceModule as ti, documentModelModuleReducer as tl, baseCreateDocument as tm, DocumentModelGlobalState as tn, UpdateStateExampleInput as to, deleteOperation as tp, Mutation as tr, WebhookHashAlgorithm as ts, ActionErrorCallback as tt, createMinimalZip as tu, PHConnectBranding as u, SetOperationErrorDescriptionInput as ua, RedoActionSchema as uc, HASH_ENCODING_HEX as ud, evaluate as uf, SIGNATURE_PROTOCOL_V2 as uh, Reducer as ui, createReducer as ul, garbageCollectV2 as um, DocumentModelOperationAction as un, namespaceSchemaOf as uo, operationFromOperation as up, MutationDeleteOperationArgs as ur, OPERATION_NAME_PATTERN as us, AddOperationAction as ut, writeFileBrowser as uu, PHConnectExplorerIcons as v, SetOperationReducerInput as va, ScopeStateSchema as vc, GroupPrincipalNotAllowedError as vd, setGrant as vf, v2RequiredProtocolVersions as vh, ReorderModuleOperationsInput as vi, purgeMarkerOperation as vl, mapSkippedOperations as vm, DocumentModelStateOperations as vn, IRelationalQueryBuilder as vo, reorderOperationExamples as vp, MutationReorderModulesArgs as vr, findOperationErrorOrThrow as vs, AddStateExampleAction as vt, applyDeleteDocumentAction as vu, PHConnectPwa as w, SetOperationTemplateInput as wa, SetModelIdInputSchema as wc, assertAuthAdministrationRetained as wd, ActionSignerIdentity as wf, operationOutcome as wh, ReorderOperationExamplesInput as wi, PEER_CAPABILITIES as wl, precedes as wm, ENSInfo as wn, IProcessorHostModuleBase as wo, setModelExtension as wp, MutationSetInitialStateArgs as wr, validateInitialState as ws, ConfigEntry as wt, AuthInitializerNotCreatorError as wu, PHConnectLoader as x, SetOperationScopeAction as xa, SetInitialStateInputSchema as xc, MAX_CAPABILITY_OPERATIONS as xd, TransportSigner as xf, OperationContext as xh, ReorderOperationErrorsAction as xi, FeatureCapability as xl, nextSkipNumber as xm, DocumentModelVersioningOperations as xn, RelationalDbProcessorClass as xo, setAuthorWebsite as xp, MutationReorderStateExamplesArgs as xr, getAllOperationNames as xs, AssertIsStateOfType as xt, withProtocolVersions as xu, PHConnectHome as y, SetOperationSchemaAction as ya, SetAuthorNameInputSchema as yc, InvalidGrantError as yd, TransportAction as yf, DocumentOperations as yh, ReorderModulesAction as yi, purgedProtocolVersions as yl, mapSkippedOperationsV2 as ym, DocumentModelUtils as yn, IRelationalQueryMethods as yo, reorderStateExamples as yp, MutationReorderOperationErrorsArgs as yr, findOperationExampleOrThrow as ys, AddStateExampleInput as yt, applyUpgradeDocumentAction as yu, PHLength as z, SkipHeaderOperationIndex as za, SetOperationTemplateInputSchema as zc, AuthRequest as zd, actionContext as zf, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME as zh, SetAuthorNameInput as zi, peerSupports as zl, Condition as zm, Incremental as zn, IWebhookScope as zo, setOperationTemplate as zp, MutationSetOperationSchemaArgs as zr, ConfigEntrySchema as zs, DeleteDocumentActionInput as zt, DocumentModelHeaderSchema as zu };
|
|
4330
4364
|
export {};
|
|
4331
|
-
//# sourceMappingURL=types-
|
|
4365
|
+
//# sourceMappingURL=types-BMvEggLM.d.ts.map
|