@powerhousedao/shared 6.2.3-dev.22 → 6.2.3-dev.24
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/{access-token-Bf1K1Fpc.mjs → access-token-l4ne3id6.mjs} +2 -2
- package/dist/clis/args/{access-token-Bf1K1Fpc.mjs.map → access-token-l4ne3id6.mjs.map} +1 -1
- package/dist/clis/args/access-token.mjs +1 -1
- package/dist/clis/args/{common-rEpM4Oqq.d.mts → common-Bc6Phg3O.d.mts} +6 -3
- package/dist/clis/args/common-Bc6Phg3O.d.mts.map +1 -0
- package/dist/clis/args/{common-BpnFLR-_.mjs → common-BnSmBXOm.mjs} +8 -1
- package/dist/clis/args/{common-BpnFLR-_.mjs.map → common-BnSmBXOm.mjs.map} +1 -1
- package/dist/clis/args/common.d.mts +1 -1
- package/dist/clis/args/common.mjs +1 -1
- package/dist/clis/args/{connect-_FQWS7p3.d.mts → connect-BD-C5BkE.d.mts} +6 -6
- package/dist/clis/args/{connect-_FQWS7p3.d.mts.map → connect-BD-C5BkE.d.mts.map} +1 -1
- package/dist/clis/args/{connect-ByiLv365.mjs → connect-CkPZNzui.mjs} +2 -2
- package/dist/clis/args/{connect-ByiLv365.mjs.map → connect-CkPZNzui.mjs.map} +1 -1
- package/dist/clis/args/connect.d.mts +1 -1
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/{generate-C51i00At.mjs → generate-BzRnsIbV.mjs} +2 -2
- package/dist/clis/args/{generate-C51i00At.mjs.map → generate-BzRnsIbV.mjs.map} +1 -1
- package/dist/clis/args/generate.mjs +1 -1
- package/dist/clis/args/{help-D2SeQC09.mjs → help-DnzLlEb7.mjs} +15 -15
- package/dist/clis/args/{help-D2SeQC09.mjs.map → help-DnzLlEb7.mjs.map} +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.d.mts +3 -3
- package/dist/clis/args/index.mjs +18 -18
- package/dist/clis/args/{init-DBYYsV0Y.mjs → init-Q3FOdRyY.mjs} +2 -2
- package/dist/clis/args/{init-DBYYsV0Y.mjs.map → init-Q3FOdRyY.mjs.map} +1 -1
- package/dist/clis/args/init.mjs +1 -1
- package/dist/clis/args/{inspect-BzBsZ0UO.mjs → inspect-99GSVTTt.mjs} +2 -2
- package/dist/clis/args/{inspect-BzBsZ0UO.mjs.map → inspect-99GSVTTt.mjs.map} +1 -1
- package/dist/clis/args/inspect.mjs +1 -1
- package/dist/clis/args/{install-D0jaysiP.mjs → install-Dcal76Iq.mjs} +2 -2
- package/dist/clis/args/{install-D0jaysiP.mjs.map → install-Dcal76Iq.mjs.map} +1 -1
- package/dist/clis/args/install.mjs +1 -1
- package/dist/clis/args/{list-BaO47Btz.mjs → list-BFbHTSf3.mjs} +2 -2
- package/dist/clis/args/{list-BaO47Btz.mjs.map → list-BFbHTSf3.mjs.map} +1 -1
- package/dist/clis/args/list.mjs +1 -1
- package/dist/clis/args/{login-DM-qhiYI.mjs → login-BB0WTY2n.mjs} +2 -2
- package/dist/clis/args/{login-DM-qhiYI.mjs.map → login-BB0WTY2n.mjs.map} +1 -1
- package/dist/clis/args/login.mjs +1 -1
- package/dist/clis/args/{migrate-EitaI7jq.mjs → migrate-0xLgeOxh.mjs} +2 -2
- package/dist/clis/args/{migrate-EitaI7jq.mjs.map → migrate-0xLgeOxh.mjs.map} +1 -1
- package/dist/clis/args/migrate.mjs +1 -1
- package/dist/clis/args/{publish-DfMF3Nmc.mjs → publish-BJF3ET2v.mjs} +2 -2
- package/dist/clis/args/{publish-DfMF3Nmc.mjs.map → publish-BJF3ET2v.mjs.map} +1 -1
- package/dist/clis/args/publish.mjs +1 -1
- package/dist/clis/args/{registry-Di1tZqbn.mjs → registry-CbORgFD8.mjs} +2 -2
- package/dist/clis/args/{registry-Di1tZqbn.mjs.map → registry-CbORgFD8.mjs.map} +1 -1
- package/dist/clis/args/registry.mjs +1 -1
- package/dist/clis/args/{service-jRX2qPul.mjs → service-BfDN3YBu.mjs} +2 -2
- package/dist/clis/args/{service-jRX2qPul.mjs.map → service-BfDN3YBu.mjs.map} +1 -1
- package/dist/clis/args/service.mjs +1 -1
- package/dist/clis/args/{switchboard-BhR-ZwGV.mjs → switchboard-tj30Z45Y.mjs} +2 -2
- package/dist/clis/args/{switchboard-BhR-ZwGV.mjs.map → switchboard-tj30Z45Y.mjs.map} +1 -1
- package/dist/clis/args/switchboard.mjs +1 -1
- package/dist/clis/args/{uninstall-diefi70g.mjs → uninstall-CjVkOmXN.mjs} +2 -2
- package/dist/clis/args/{uninstall-diefi70g.mjs.map → uninstall-CjVkOmXN.mjs.map} +1 -1
- package/dist/clis/args/uninstall.mjs +1 -1
- package/dist/clis/args/{unpublish-C6eNRzsU.mjs → unpublish-DSvGNHhr.mjs} +2 -2
- package/dist/clis/args/{unpublish-C6eNRzsU.mjs.map → unpublish-DSvGNHhr.mjs.map} +1 -1
- package/dist/clis/args/unpublish.mjs +1 -1
- package/dist/clis/args/{vetra-DV0zQzba.mjs → vetra-CMIe5hyF.mjs} +2 -2
- package/dist/clis/args/{vetra-DV0zQzba.mjs.map → vetra-CMIe5hyF.mjs.map} +1 -1
- package/dist/clis/args/{vetra-DLQ6lhLl.d.mts → vetra-CoMvTJK7.d.mts} +2 -2
- package/dist/clis/args/{vetra-DLQ6lhLl.d.mts.map → vetra-CoMvTJK7.d.mts.map} +1 -1
- package/dist/clis/args/vetra.d.mts +1 -1
- package/dist/clis/args/vetra.mjs +1 -1
- package/dist/clis/build-pieces.d.mts +1 -1
- package/dist/clis/constants.d.mts +1 -1
- package/dist/clis/constants.mjs +1 -1
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index.d.mts +12 -2
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +41 -26
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/{types-DXhVHupa.d.mts → types-B-Il50oC.d.mts} +4 -3
- package/dist/clis/{types-DXhVHupa.d.mts.map → types-B-Il50oC.d.mts.map} +1 -1
- package/dist/{config-loader-e4-qdVVI.js → config-loader-DcwNJiBB.js} +10 -7
- package/dist/config-loader-DcwNJiBB.js.map +1 -0
- package/dist/connect/config-loader.d.ts +1 -1
- package/dist/connect/config-loader.js +1 -1
- package/dist/connect/index.d.ts +7 -1
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +34 -26
- package/dist/connect/index.js.map +1 -1
- package/dist/document-drive/index.d.ts +5 -4
- package/dist/document-drive/index.d.ts.map +1 -1
- package/dist/document-drive/index.js +15 -4
- package/dist/document-drive/index.js.map +1 -1
- package/dist/document-model/index.d.ts +3 -3
- package/dist/document-model/index.js +390 -182
- package/dist/document-model/index.js.map +1 -1
- package/dist/{index-ChZbyPGQ.d.ts → index-BmL07S5O.d.ts} +25 -16
- package/dist/{index-ChZbyPGQ.d.ts.map → index-BmL07S5O.d.ts.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/processors/index.d.ts +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 +1 -1
- package/dist/{types-Cphf695h.d.ts → types-COsoOK42.d.ts} +287 -248
- package/dist/types-COsoOK42.d.ts.map +1 -0
- package/dist/{types-Dh7xKo_B.d.ts → types-DhOXIQ4c.d.ts} +8 -3
- package/dist/types-DhOXIQ4c.d.ts.map +1 -0
- package/package.json +2 -1
- package/dist/clis/args/common-rEpM4Oqq.d.mts.map +0 -1
- package/dist/config-loader-e4-qdVVI.js.map +0 -1
- package/dist/types-Cphf695h.d.ts.map +0 -1
- package/dist/types-Dh7xKo_B.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $t as DocumentModelOperationExampleOperations, Bt as DocumentModelGlobalState, Fn as MinimalBackupData, Fu as Condition, Gl as PHDocument, Gt as DocumentModelLocalState, H as ActionSignatureContext, Ha as UpgradeManifest, Ht as DocumentModelHeaderOperations, In as ModuleSpecification, Iu as Grant, Jt as DocumentModelModuleOperations, Kl as PHDocumentHeader, Kr as Reducer, Nc as Action, Nr as OperationSpecification, Nu as AuthGroups, On as LoadFromInput, Rt as DocumentModelDocument, Ru as PHAuthState, Sa as SkipHeaderOperations, Sn as ISigner, Va as ValidationError, Zt as DocumentModelOperationErrorOperations, _d as OperationContext, ba as SigningParameters, cn as DocumentSpecification, ct as Author, en as DocumentModelOperationOperations, fi as SaveToFileHandle, gd as Operation, ha as SignalDispatch, hd as DocumentOperations, id as ProtocolVersions, jr as OperationErrorSpecification, li as ReplayDocumentOptions, lt as CodeExample, mn as FileInput, on as DocumentModelVersioningOperations, qr as ReducerOptions, rn as DocumentModelStateOperations, sd as SignaturePolicy, tn as DocumentModelPHState, wa as StateReducer, zu as PHBaseState } from "./types-COsoOK42.js";
|
|
2
2
|
import { ZodIssue, z } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region document-model/action-transport.d.ts
|
|
@@ -157,12 +157,12 @@ declare function assertAuthPreservedOnDuplicate(documentId: string, source: PHAu
|
|
|
157
157
|
* The auth scope a state snapshot may install, given the policy already there.
|
|
158
158
|
*
|
|
159
159
|
* `applyAuthAction` is the validated door onto `state.auth`, but a whole-state
|
|
160
|
-
* snapshot (UPGRADE_DOCUMENT's `initialState
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
160
|
+
* snapshot (UPGRADE_DOCUMENT's `initialState`) replaces the scope wholesale and
|
|
161
|
+
* is authorized as a `document`-scope write. Without this, a subject holding
|
|
162
|
+
* `execute` on `document` and no auth grant at all can install a policy of its
|
|
163
|
+
* choosing, name itself `creator` (which exempts the policy from the retention
|
|
164
|
+
* rule for good), or wipe an existing policy by carrying the default
|
|
165
|
+
* uninitialized one.
|
|
166
166
|
*
|
|
167
167
|
* Three cases:
|
|
168
168
|
*
|
|
@@ -176,7 +176,7 @@ declare function assertAuthPreservedOnDuplicate(documentId: string, source: PHAu
|
|
|
176
176
|
* an attempt to replace one policy with another.
|
|
177
177
|
*/
|
|
178
178
|
declare function resolveSnapshotAuth(documentId: string, documentType: string, current: PHAuthState | undefined, incoming: PHAuthState | undefined): PHAuthState;
|
|
179
|
-
/** UNDO
|
|
179
|
+
/** UNDO and REDO are rejected on the auth scope. */
|
|
180
180
|
declare function assertAuthScopeActionAllowed(action: Action): void;
|
|
181
181
|
type AuthVerb = "read" | "execute";
|
|
182
182
|
type AuthRequest = {
|
|
@@ -513,7 +513,7 @@ declare class GrantNotFoundError extends Error {
|
|
|
513
513
|
constructor(grantId: string);
|
|
514
514
|
}
|
|
515
515
|
/**
|
|
516
|
-
* Thrown when a disallowed action (UNDO, REDO
|
|
516
|
+
* Thrown when a disallowed action (UNDO, REDO) targets the auth scope.
|
|
517
517
|
*/
|
|
518
518
|
declare class AuthActionNotAllowedError extends Error {
|
|
519
519
|
readonly actionType: string;
|
|
@@ -647,9 +647,20 @@ declare const validateHeader: (header: PHDocumentHeader) => Promise<void>;
|
|
|
647
647
|
* Creates a header that has yet to be signed. This header is not valid, but
|
|
648
648
|
* can be input into {@link createSignedHeader} to create a signed header.
|
|
649
649
|
*
|
|
650
|
+
* With `protocolVersions` requiring v2 signatures the header takes a random
|
|
651
|
+
* nonce and the id {@link deriveDocumentId} gives, so `id` must be omitted.
|
|
652
|
+
*
|
|
650
653
|
* @returns An unsigned header for a document.
|
|
651
654
|
*/
|
|
652
|
-
declare const createPresignedHeader: (id?: string, documentType?: string) => PHDocumentHeader;
|
|
655
|
+
declare const createPresignedHeader: (id?: string, documentType?: string, protocolVersions?: ProtocolVersions) => PHDocumentHeader;
|
|
656
|
+
/**
|
|
657
|
+
* A header for a copy of a document headed `source`. A copy is v2-required
|
|
658
|
+
* when its source is or when `policy` asks for it, and then takes a derived id;
|
|
659
|
+
* otherwise it takes `id`. It keeps the source's other protocol versions.
|
|
660
|
+
*/
|
|
661
|
+
declare function createCopyHeader(source: Pick<PHDocumentHeader, "documentType" | "protocolVersions">, id?: string, policy?: SignaturePolicy): PHDocumentHeader;
|
|
662
|
+
/** Whether a v2-required `header` carries the id its params derive. */
|
|
663
|
+
declare function hasDerivedDocumentId(header: PHDocumentHeader): boolean;
|
|
653
664
|
/**
|
|
654
665
|
* Creates a new, signed header for a document. This will replace the id of the
|
|
655
666
|
* document.
|
|
@@ -702,7 +713,7 @@ declare function processUndoRedo<TState extends PHBaseState = PHBaseState>(docum
|
|
|
702
713
|
};
|
|
703
714
|
/**
|
|
704
715
|
* Base document reducer that wraps a custom document reducer and handles
|
|
705
|
-
* document-level actions such as undo, redo,
|
|
716
|
+
* document-level actions such as undo, redo, and set name.
|
|
706
717
|
*
|
|
707
718
|
* @template TGlobalState - The type of the state of the custom reducer.
|
|
708
719
|
* @template TAction - The type of the actions of the custom reducer.
|
|
@@ -722,7 +733,6 @@ declare function baseReducer<TState extends PHBaseState = PHBaseState>(document:
|
|
|
722
733
|
* - `SET_NAME`
|
|
723
734
|
* - `UNDO`
|
|
724
735
|
* - `REDO`
|
|
725
|
-
* - `PRUNE`
|
|
726
736
|
*
|
|
727
737
|
* It also updates the document-related attributes on every operation.
|
|
728
738
|
*
|
|
@@ -732,7 +742,6 @@ declare function baseReducer<TState extends PHBaseState = PHBaseState>(document:
|
|
|
732
742
|
* @returns The new reducer.
|
|
733
743
|
*/
|
|
734
744
|
declare function createReducer<TState extends PHBaseState = PHBaseState>(stateReducer: StateReducer<TState>, documentReducer?: typeof baseReducer): Reducer<TState>;
|
|
735
|
-
declare function pruneOperation<TState extends PHBaseState = PHBaseState>(document: PHDocument<TState>, input: PruneActionInput, wrappedReducer: StateReducer<TState>): PHDocument<TState>;
|
|
736
745
|
//#endregion
|
|
737
746
|
//#region document-model/reducers.d.ts
|
|
738
747
|
declare const documentModelHeaderReducer: DocumentModelHeaderOperations;
|
|
@@ -750,7 +759,7 @@ declare const documentModelReducer: Reducer<DocumentModelPHState>;
|
|
|
750
759
|
* Reserved operation names from base reducer (core/actions.ts).
|
|
751
760
|
* These names cannot be used for custom operations.
|
|
752
761
|
*/
|
|
753
|
-
declare const RESERVED_OPERATION_NAMES: readonly ["UNDO", "REDO", "
|
|
762
|
+
declare const RESERVED_OPERATION_NAMES: readonly ["UNDO", "REDO", "SET_NAME", "SET_PREFERRED_EDITOR", "NOOP"];
|
|
754
763
|
type ReservedOperationName = (typeof RESERVED_OPERATION_NAMES)[number];
|
|
755
764
|
/**
|
|
756
765
|
* Operation names become the literal action `type` string at runtime and the
|
|
@@ -832,5 +841,5 @@ declare function assertOperationErrorIdUnique(state: DocumentModelGlobalState, i
|
|
|
832
841
|
declare function assertOperationExampleIdUnique(state: DocumentModelGlobalState, id: string): void;
|
|
833
842
|
declare function validateOperations(operations: DocumentOperations): ValidationError[];
|
|
834
843
|
//#endregion
|
|
835
|
-
export {
|
|
836
|
-
//# sourceMappingURL=index-
|
|
844
|
+
export { fetchFileBrowser as $, isDocumentCreator as $n, documentModelInitialGlobalState as $t, documentModelVersioningReducer as A, InitializeAuthActionInput as An, assertIsDocumentModelState as At, createVerificationSigner as B, SetGrantActionInput as Bn, base64UrlToBytes as Bt, documentModelModuleReducer as C, AuthEvaluation as Cn, groupMembershipActionTypes as Ct, documentModelReducer as D, AuthVerb as Dn, DocumentModelPHStateSchema as Dt, documentModelOperationReducer as E, AuthSubject as En, DocumentModelHeaderSchema as Et, updateDocument as F, MoveGrantActionInputSchema as Fn, AUTH_VERSION_UNSUPPORTED_REASON as Ft, BulkArchiveEntry as G, applyRemoveGrantAction as Gn, hex2ab as Gt, sign as H, applyAuthAction as Hn, buildOperationSignatureParams as Ht, createCopyHeader as I, RemoveGrantAction as In, DOCUMENT_DELETED_REASON as It, baseSaveToFileHandle as J, assertAuthScopeActionAllowed as Jn, HASH_ALGORITHM_SHA512 as Jt, baseLoadFromInput as K, applySetGrantAction as Kn, HASH_ALGORITHM_SHA1 as Kt, createPresignedHeader as L, RemoveGrantActionInput as Ln, isDenied as Lt, createReducer as M, MAX_SUPPORTED_AUTH_VERSION as Mn, isDocumentModelState as Mt, processUndoRedo as N, MoveGrantAction as Nn, AUTH_DENIED_BY_GRANT_REASON as Nt, documentModelStateReducer as O, ConditionContext as On, DocumentModelSchema as Ot, replayOperations as P, MoveGrantActionInput as Pn, AUTH_NO_GRANT_REASON as Pt, documentModelSaveToFileHandle as Q, isAuthAction as Qn, documentModelGlobalState as Qt, createSignedHeader as R, RemoveGrantActionInputSchema as Rn, ab2hex as Rt, documentModelHeaderReducer as S, AuthDecision as Sn, groupDocumentType as St, documentModelOperationExampleReducer as T, AuthRequest as Tn, BaseDocumentStateSchema as Tt, validateHeader as U, applyInitializeAuthAction as Un, getUnixTimestamp as Ut, hasDerivedDocumentId as V, SetGrantActionInputSchema as Vn, buildOperationSignatureMessage as Vt, verify as W, applyMoveGrantAction as Wn, hashBrowser as Wt, createZip as X, evaluate as Xn, HASH_ENCODING_HEX as Xt, createMinimalZip as Y, decide as Yn, HASH_ENCODING_BASE64 as Yt, documentModelLoadFromInput as Z, initializeAuth as Zn, documentModelFileExtension as Zt, validateModuleOperation as _, grantProblem as _n, InvalidActionInputError as _t, assertOperationErrorIdUnique as a, InvalidGrantError as an, TransportAction as ar, zipEntries as at, validateOperations as b, AUTH_ACTION_TYPES as bn, UnsupportedDocumentModelVersionError as bt, findModuleOrThrow as c, MAX_CONDITION_DEPTH as cn, toTransportAction as cr, replayDocumentVersioned as ct, findOperationOrThrow as d, assertValidGrant as dn, AuthInitializerNotCreatorError as dt, documentModelInitialLocalState as en, mentionedGroupIds as er, getFileBrowser as et, getAllOperationNames as f, assertValidGrantUpsert as fn, AuthPolicyNotPreservedError as ft, validateModule as g, evaluateGrants as gn, HashMismatchError as gt, validateInitialState as h, evaluateGrantStack as hn, GrantNotFoundError as ht, assertModuleIdUnique as i, GroupPrincipalNotAllowedError as in, setGrant as ir, writeFileBrowser as it, baseReducer as j, InitializeAuthActionInputSchema as jn, isDocumentModelDocument as jt, documentModelStateSchemaReducer as k, InitializeAuthAction as kn, assertIsDocumentModelDocument as kt, findOperationErrorOrThrow as l, MAX_CONDITION_NODES as ln, AuthActionNotAllowedError as lt, isValidOperationNameFormat as m, evaluateCondition as mn, FileSystemError as mt, RESERVED_OPERATION_NAMES as n, AuthAdministrationMissingError as nn, removeGrant as nr, parseBulkArchive as nt, assertOperationExampleIdUnique as o, MAX_AUTH_GRANTS as on, TransportActionContext as or, VersionedReducers as ot, isReservedOperationName as p, assertValidInitialGrants as pn, DowngradeNotSupportedError as pt, baseLoadFromInputVersioned as q, assertAuthPreservedOnDuplicate as qn, HASH_ALGORITHM_SHA256 as qt, ReservedOperationName as r, GrantSchema as rn, resolveSnapshotAuth as rr, readFileBrowser as rt, assertOperationIdUnique as s, MAX_CAPABILITY_OPERATIONS as sn, TransportSigner as sr, VersionedReplayConfig as st, OPERATION_NAME_PATTERN as t, AuthAdministrationLockoutError as tn, moveGrant as tr, isDocumentZip as tt, findOperationExampleOrThrow as u, assertAuthAdministrationRetained as un, AuthAlreadyInitializedError as ut, validateModules as v, isPlainValue as vn, InvalidActionInputZodError as vt, documentModelOperationErrorReducer as w, AuthRefusal as wn, BaseDocumentHeaderSchema as wt, validateStateSchemaName as x, AuthAction as xn, documentModelDocumentType as xt, validateOperationName as y, referencedGroupIds as yn, InvalidAuthVersionError as yt, createSignedHeaderForSigner as z, SetGrantAction as zn, base58Decode as zt };
|
|
845
|
+
//# sourceMappingURL=index-BmL07S5O.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-ChZbyPGQ.d.ts","names":[],"sources":["../document-model/action-transport.ts","../document-model/auth.ts","../document-model/auth-v1.ts","../document-model/constants.ts","../document-model/crypto.ts","../document-model/denied.ts","../document-model/document-schema.ts","../document-model/document-type.ts","../document-model/errors.ts","../document-model/versioned-replay.ts","../document-model/files.ts","../document-model/header.ts","../document-model/reducer.ts","../document-model/reducers.ts","../document-model/validation.ts"],"mappings":";;;;;;;AAWA;KAAY,eAAA;EACV,IAAA;IAAS,OAAA;IAAiB,SAAA;IAA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,iBAiCc,oBAAA,CACd,YAAA,UACA,eAAA,aACC,eAAA;AAAA,iBA4Ba,uBAAA,CACd,MAAA,UACA,YAAA,UACA,KAAA,WACA,gBAAA,aACC,eAAA;AAAA,iBAqCa,eAAA,CACd,OAAA,EAAS,mBAAA,KACR,eAAA;AAAA,iBAmBa,cAAA,CAAe,GAAA,EAAK,mBAAA,GAAsB,eAAA;AAAA,iBA6B1C,uBAAA,CACd,SAAA,EAAW,sBAAA,GACV,eAAA;;;;;;iBA6Ba,iBAAA,CACd,KAAA,EAAO,wBAAA,EACP,QAAA,WACC,mBAAA;;;;;;iBAgBa,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,WAAA,WACC,sBAAA;;;;;;Ab/PH;iBakRgB,yBAAA,CACd,KAAA,EAAO,wBAAA,EACP,OAAA,WACC,2BAAA;;;;;;iBAwBa,2BAAA,CACd,KAAA,EAAO,wBAAA,EACP,SAAA,WACC,WAAA;;Ab3SH;;;;iBaqUgB,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;AbnUF;;;;AAAA,iBaiVgB,uBAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;Ab/UF;;;;;AAAA,iBaiWgB,4BAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;;;;;;iBAkBc,8BAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;AAAA,iBAac,kBAAA,CAAmB,UAAA,EAAY,kBAAA,GAAkB,eAAA"}
|
|
1
|
+
{"version":3,"file":"index-BmL07S5O.d.ts","names":[],"sources":["../document-model/action-transport.ts","../document-model/auth.ts","../document-model/auth-v1.ts","../document-model/constants.ts","../document-model/crypto.ts","../document-model/denied.ts","../document-model/document-schema.ts","../document-model/document-type.ts","../document-model/errors.ts","../document-model/versioned-replay.ts","../document-model/files.ts","../document-model/header.ts","../document-model/reducer.ts","../document-model/reducers.ts","../document-model/validation.ts"],"mappings":";;;;;;;AAWA;KAAY,eAAA;EACV,IAAA;IAAS,OAAA;IAA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A;AAAA,iBAiCc,oBAAA,CACd,YAAA,UACA,eAAA,aACC,eAAA;AAAA,iBA4Ba,uBAAA,CACd,MAAA,UACA,YAAA,UACA,KAAA,WACA,gBAAA,aACC,eAAA;AAAA,iBAqCa,eAAA,CACd,OAAA,EAAS,mBAAA,KACR,eAAA;AAAA,iBAmBa,cAAA,CAAe,GAAA,EAAK,mBAAA,GAAsB,eAAA;AAAA,iBA6B1C,uBAAA,CACd,SAAA,EAAW,sBAAA,GACV,eAAA;;;;;;iBA6Ba,iBAAA,CACd,KAAA,EAAO,wBAAA,EACP,QAAA,WACC,mBAAA;;;;;;iBAgBa,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,WAAA,WACC,sBAAA;;;;;;Ab7PH;iBagRgB,yBAAA,CACd,KAAA,EAAO,wBAAA,EACP,OAAA,WACC,2BAAA;;;;;;iBAwBa,2BAAA,CACd,KAAA,EAAO,wBAAA,EACP,SAAA,WACC,WAAA;;AbzSH;;;;iBamUgB,oBAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;AbjUF;;;;AAAA,iBa+UgB,uBAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;Ab7UF;;;;;AAAA,iBa+VgB,4BAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;;;;;;iBAkBc,8BAAA,CACd,KAAA,EAAO,wBAAA,EACP,EAAA;AAAA,iBAac,kBAAA,CAAmB,UAAA,EAAY,kBAAA,GAAkB,eAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as AnalyticsSeriesInput, c as CompoundAnalyticsExpression, d as ConversionMetric, f as IAnalyticsStore, i as AnalyticsSeries, l as CompoundAnalyticsInputs, n as AnalyticsOperand, o as AnalyticsSeriesQuery, p as MultiCurrencyConversion, r as AnalyticsQuery, s as AnalyticsUpdateCallback, t as AnalyticsDimension, u as CompoundAnalyticsQuery } from "./types-C1in4fl3.js";
|
|
2
|
-
import { $ as AddOperationExampleAction, $i as
|
|
2
|
+
import { $ as AddOperationExampleAction, $i as SetOperationReducerAction, $n as MutationRedoArgs, $r as ReorderModuleOperationsAction, $s as ProcessorDispatchResult, $t as DocumentModelOperationExampleOperations, A as PHReactorRenown, Aa as UpdateChangeLogItemAction, Ai as SetModelIdAction, An as MakeMaybe, Ar as NOOPAction, At as DeleteOperationErrorInput, Ba as User, Bi as SetNameOperation, Bn as MutationAddChangeLogItemInputArgs, Br as PowerhouseModule, Bt as DocumentModelGlobalState, C as PHConnectReactor, Ca as State, Ci as SetAuthorWebsiteInput, Cn as Incremental, Cr as MutationSetOperationSchemaArgs, Ct as DeleteChildDocumentSignal, D as PHConnectRuntimeConfig, Da as UndoAction, Di as SetModelDescriptionInput, Dn as LoadFromFile, Dr as MutationUpdateChangeLogItemInputArgs, Dt as DeleteModuleInput, E as PHConnectRenownAdapters, Ea as Undo, Ei as SetModelDescriptionAction, En as IsStateOfType, Er as MutationUndoArgs, Et as DeleteModuleAction, F as PathValidation, Fa as UpdateRelationshipActionInput, Fi as SetModuleDescriptionInput, Fn as MinimalBackupData, Fr as PartialRecord, Ft as DeleteStateExampleInput, G as Actions, Gi as SetOperationErrorDescriptionAction, Gn as MutationAddStateExampleArgs, Gr as RedoActionInput, Gt as DocumentModelLocalState, H as ActionSignatureContext, Hi as SetOperationDescriptionInput, Hn as MutationAddOperationArgs, Hr as Query, Ht as DocumentModelHeaderOperations, I as PowerhouseConfig, Ia as UpdateStateExampleAction, Ii as SetModuleNameAction, In as ModuleSpecification, Ir as PartialState, It as DocumentAction, J as AddModuleAction, Ji as SetOperationErrorNameInput, Jn as MutationDeleteOperationArgs, Jr as ReleaseNewVersionAction, Js as IProcessorDispatch, Jt as DocumentModelModuleOperations, K as AddChangeLogItemAction, Ki as SetOperationErrorDescriptionInput, Kn as MutationDeleteChangeLogItemInputArgs, Kr as Reducer, Kt as DocumentModelModule, L as PowerhousePackage, La as UpdateStateExampleInput, Li as SetModuleNameInput, Ln as MoveOperationAction, Lr as PhAiToolAnnotations, Lt as DocumentModelAction, M as PHRenownRainbowAdapterConfig, Ma as UpdateOperationExampleAction, Mi as SetModelNameAction, Mn as Manifest, Mr as OperationIndex, Mt as DeleteOperationExampleInput, N as PackageManagerArgs, Na as UpdateOperationExampleInput, Ni as SetModelNameInput, Nn as MappedOperation, Nr as OperationSpecification, Nt as DeleteOperationInput, O as PHConnectSentry, Oa as UndoActionInput, Oi as SetModelExtensionAction, On as LoadFromInput, Or as MutationUpdateOperationExampleArgs, Ot as DeleteOperationAction, P as ParsedCmdResult, Pa as UpdateRelationshipAction, Pi as SetModuleDescriptionAction, Pn as Maybe, Pr as OperationsByScope, Pt as DeleteStateExampleAction, Q as AddOperationErrorInput, Qi as SetOperationNameInput, Qn as MutationMoveOperationArgs, Qr as ReorderChangeLogItemsInput, Qs as ProcessorApps, Qt as DocumentModelOperationExampleAction, R as ServiceAction, Ra as UpgradeDocumentAction, Ri as SetNameAction, Rn as MoveOperationInput, Rr as PhAiToolDescriptor, Rt as DocumentModelDocument, S as PHConnectPwaUrlPattern, Sa as SkipHeaderOperations, Si as SetAuthorWebsiteAction, Sn as ISigner, Sr as MutationSetOperationReducerArgs, St as DeleteChildDocumentInput, T as PHConnectRenown, Ta as SubgraphModule, Ti as SetInitialStateInput, Tn as IsDocumentOfType, Tr as MutationSetStateSchemaArgs, Tt as DeleteDocumentActionInput, U as ActionSigningHandler, Ui as SetOperationErrorCodeAction, Un as MutationAddOperationErrorArgs, Ur as Redo, Ut as DocumentModelInput, V as ActionErrorCallback, Va as ValidationError, Vi as SetOperationDescriptionAction, Vn as MutationAddModuleArgs, Vr as Publisher, Vt as DocumentModelHeaderAction, W as ActionVerificationHandler, Wi as SetOperationErrorCodeInput, Wn as MutationAddOperationExampleArgs, Wr as RedoAction, Wt as DocumentModelLib, X as AddOperationAction, Xi as SetOperationErrorTemplateInput, Xn as MutationDeleteOperationExampleArgs, Xr as RemoveRelationshipActionInput, Xs as IProcessorManager, Xt as DocumentModelOperationErrorAction, Y as AddModuleInput, Yi as SetOperationErrorTemplateAction, Yn as MutationDeleteOperationErrorArgs, Yr as RemoveRelationshipAction, Ys as IProcessorHostModuleBase, Yt as DocumentModelOperationAction, Z as AddOperationErrorAction, Zi as SetOperationNameAction, Zn as MutationDeleteStateExampleArgs, Zr as ReorderChangeLogItemsAction, Zs as ProcessorApp, Zt as DocumentModelOperationErrorOperations, _ as PHConnectPwaCacheStrategy, _a as SignalResults, _i as SchemaSetPreferredEditorAction, _n as ID, _r as MutationSetOperationErrorCodeArgs, _t as CreateDocumentAction, a as PHConnectAi, aa as SetOperationTemplateAction, ac as TrackedProcessor, ai as ReorderOperationExamplesAction, an as DocumentModelVersioningAction, ar as MutationReorderStateExamplesArgs, at as AddStateExampleInput, b as PHConnectPwaManifest, ba as SigningParameters, bi as SetAuthorNameAction, bn as ISignal, br as MutationSetOperationErrorTemplateArgs, bt as DeleteChangeLogItemAction, c as PHConnectDefaultDrive, ca as SetPreferredEditorActionInput, ci as ReorderStateExamplesInput, cn as DocumentSpecification, cr as MutationSetInitialStateArgs, ct as Author, d as PHConnectDriveSection, da as SetStateSchemaInput, di as SaveToFile, dn as EditorModule, dr as MutationSetModelIdArgs, dt as ConfigEntryType, ea as SetOperationReducerInput, ec as ProcessorFactory, ei as ReorderModuleOperationsInput, en as DocumentModelOperationOperations, er as MutationReorderChangeLogItemsInputArgs, et as AddOperationExampleInput, f as PHConnectDriveSections, fa as Set_Name, fi as SaveToFileHandle, fn as EditorProps, fr as MutationSetModelNameArgs, ft as CopyChildDocumentInput, g as PHConnectPwa, ga as SignalResult, gi as SchemaSetNameAction, gn as IAction, gr as MutationSetOperationDescriptionArgs, gt as CreateDocument, h as PHConnectPackages, ha as SignalDispatch, hi as SchemaRedoAction, hn as GetDocumentOptions, hr as MutationSetNameArgs, ht as CreateChildDocumentSignal, i as LogLevels, ia as SetOperationScopeInput, ic as ProcessorStatus, ii as ReorderOperationErrorsInput, in as DocumentModelUtils, ir as MutationReorderOperationExamplesArgs, it as AddStateExampleAction, j as PHRenownPrivyAdapterConfig, ja as UpdateChangeLogItemInput, ji as SetModelIdInput, jn as MakeOptional, jr as OperationErrorSpecification, jt as DeleteOperationExampleAction, k as PHPackageProvider, ka as UndoRedoAction, ki as SetModelExtensionInput, kn as MakeEmpty, kr as MutationUpdateStateExampleArgs, kt as DeleteOperationErrorAction, l as PHConnectDefaultDriveLocal, la as SetPreferredEditorOperation, li as ReplayDocumentOptions, ln as ENSInfo, lr as MutationSetModelDescriptionArgs, lt as CodeExample, m as PHConnectInstance, ma as Signal, mi as SchemaNOOPAction, mn as FileInput, mr as MutationSetModuleNameArgs, mt as CreateChildDocumentInput, n as DrivePreserveStrategy, na as SetOperationSchemaInput, nc as ProcessorFilter, ni as ReorderModulesInput, nn as DocumentModelStateAction, nr as MutationReorderModulesArgs, nt as AddRelationshipAction, o as PHConnectApp, oa as SetOperationTemplateInput, oi as ReorderOperationExamplesInput, on as DocumentModelVersioningOperations, or as MutationSetAuthorNameArgs, ot as AssertIsDocumentOfType, p as PHConnectDrives, pa as Set_PreferredEditor, pi as Scalars, pn as Exact, pr as MutationSetModuleDescriptionArgs, pt as CopyChildDocumentSignal, q as AddChangeLogItemInput, qi as SetOperationErrorNameAction, qn as MutationDeleteModuleArgs, qr as ReducerOptions, qs as IProcessor, qt as DocumentModelModuleAction, r as LogLevel, ra as SetOperationScopeAction, rc as ProcessorRecord, ri as ReorderOperationErrorsAction, rn as DocumentModelStateOperations, rr as MutationReorderOperationErrorsArgs, rt as AddRelationshipActionInput, s as PHConnectBranding, sa as SetPreferredEditorAction, si as ReorderStateExamplesAction, sn as DocumentOperationsIgnoreMap, sr as MutationSetAuthorWebsiteArgs, st as AssertIsStateOfType, t as DrivePreserveStrategies, ta as SetOperationSchemaAction, tc as ProcessorFactoryBuilder, ti as ReorderModulesAction, tn as DocumentModelPHState, tr as MutationReorderModuleOperationsArgs, tt as AddOperationInput, u as PHConnectDefaultDriveRemote, ua as SetStateSchemaAction, ui as RevisionsFilter, un as EditorDispatch, ur as MutationSetModelExtensionArgs, ut as ConfigEntry, v as PHConnectPwaFileHandler, va as SignalType, vi as SchemaUndoAction, vn as IDocument, vr as MutationSetOperationErrorDescriptionArgs, vt as CreateDocumentActionInput, w as PHConnectReactorFeatureFlags, wa as StateReducer, wi as SetInitialStateAction, wn as InputMaybe, wr as MutationSetOperationTemplateArgs, wt as DeleteDocumentAction, x as PHConnectPwaRuntimeCaching, xa as SkipHeaderOperationIndex, xi as SetAuthorNameInput, xn as ISignalResult, xr as MutationSetOperationNameArgs, xt as DeleteChangeLogItemInput, y as PHConnectPwaIcon, ya as SignatureVerificationHandler, yi as ScopeState, yn as IOperation, yr as MutationSetOperationErrorNameArgs, yt as CreateState, z as ServiceActions, za as UpgradeDocumentActionInput, zi as SetNameActionInput, zn as Mutation, zr as PieceModule, zt as DocumentModelDocumentModelModule } from "./types-COsoOK42.js";
|
|
3
3
|
import { i as PACKAGES_DEPENDENCIES, n as APPS_DEPENDENCIES, r as CLIS_DEPENDENCIES, t as ALL_POWERHOUSE_DEPENDENCIES } from "./constants-BP_gjn8g.js";
|
|
4
|
-
import { $ as LegacySynchronizationUnit, A as TriggerData, B as RegistryPackageMap, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, F as PackageInfo, G as DriveInput, H as RegistryPackageStatus, I as PackageListItem, J as SharingType, K as GenerateNodesCopyIdGenerator, L as PackagePage, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, R as RegistryPackage, S as RemoveListenerInput, T as SetDriveIconInput, U as DocumentDrivePHState, V as RegistryPackageSource, W as DriveDocumentModelModule, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as GenerateNodesCopySrc, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node, z as RegistryPackageList } from "./types-
|
|
4
|
+
import { $ as LegacySynchronizationUnit, A as TriggerData, B as RegistryPackageMap, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, F as PackageInfo, G as DriveInput, H as RegistryPackageStatus, I as PackageListItem, J as SharingType, K as GenerateNodesCopyIdGenerator, L as PackagePage, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, R as RegistryPackage, S as RemoveListenerInput, T as SetDriveIconInput, U as DocumentDrivePHState, V as RegistryPackageSource, W as DriveDocumentModelModule, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as GenerateNodesCopySrc, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node, z as RegistryPackageList } from "./types-DhOXIQ4c.js";
|
|
5
5
|
import { n as buildTreeUrl, r as shortGitSha, t as GITHUB_REPO_URL } from "./index-C_iVZe7f.js";
|
|
6
|
-
export { ALL_POWERHOUSE_DEPENDENCIES, APPS_DEPENDENCIES, ActionErrorCallback, ActionSignatureContext, ActionSigningHandler, ActionVerificationHandler, Actions, AddChangeLogItemAction, AddChangeLogItemInput, AddFileAction, AddFileInput, AddFolderAction, AddFolderInput, AddListenerAction, AddListenerInput, AddModuleAction, AddModuleInput, AddOperationAction, AddOperationErrorAction, AddOperationErrorInput, AddOperationExampleAction, AddOperationExampleInput, AddOperationInput, AddRelationshipAction, AddRelationshipActionInput, AddStateExampleAction, AddStateExampleInput, AddTriggerAction, AddTriggerInput, AnalyticsDimension, AnalyticsOperand, AnalyticsQuery, AnalyticsSeries, AnalyticsSeriesInput, AnalyticsSeriesQuery, AnalyticsUpdateCallback, AssertIsDocumentOfType, AssertIsStateOfType, Author, CLIS_DEPENDENCIES, CodeExample, CompoundAnalyticsExpression, CompoundAnalyticsInputs, CompoundAnalyticsQuery, ConfigEntry, ConfigEntryType, ConversionMetric, CopyChildDocumentInput, CopyChildDocumentSignal, CopyNodeAction, CopyNodeInput, CreateChildDocumentInput, CreateChildDocumentSignal, CreateDocument, CreateDocumentAction, CreateDocumentActionInput, CreateState, DeleteChangeLogItemAction, DeleteChangeLogItemInput, DeleteChildDocumentInput, DeleteChildDocumentSignal, DeleteDocumentAction, DeleteDocumentActionInput, DeleteModuleAction, DeleteModuleInput, DeleteNodeAction, DeleteNodeInput, DeleteOperationAction, DeleteOperationErrorAction, DeleteOperationErrorInput, DeleteOperationExampleAction, DeleteOperationExampleInput, DeleteOperationInput, DeleteStateExampleAction, DeleteStateExampleInput, DocumentAction, DocumentDriveAction, DocumentDriveDocument, DocumentDriveDriveAction, DocumentDriveDriveOperations, DocumentDriveGlobalState, DocumentDriveLocalState, DocumentDriveNodeAction, DocumentDriveNodeOperations, DocumentDrivePHState, DocumentModelAction, DocumentModelDocument, DocumentModelDocumentModelModule, DocumentModelGlobalState, DocumentModelHeaderAction, DocumentModelHeaderOperations, DocumentModelInput, DocumentModelLib, DocumentModelLocalState, DocumentModelModule, DocumentModelModuleAction, DocumentModelModuleOperations, DocumentModelOperationAction, DocumentModelOperationErrorAction, DocumentModelOperationErrorOperations, DocumentModelOperationExampleAction, DocumentModelOperationExampleOperations, DocumentModelOperationOperations, DocumentModelPHState, DocumentModelStateAction, DocumentModelStateOperations, DocumentModelUtils, DocumentModelVersioningAction, DocumentModelVersioningOperations, DocumentOperationsIgnoreMap, DocumentSpecification, DriveDocumentModelModule, DriveInput, DrivePreserveStrategies, DrivePreserveStrategy, ENSInfo, EditorDispatch, EditorModule, EditorProps, Exact, FileInput, FileNode, FolderNode, GITHUB_REPO_URL, GenerateNodesCopyIdGenerator, GenerateNodesCopySrc, GetDocumentOptions, IAction, IAnalyticsStore, ID, IDocument, IOperation, IProcessor, IProcessorDispatch, IProcessorHostModuleBase, IProcessorManager, ISignal, ISignalResult, ISigner, Incremental, InputMaybe, IsDocumentOfType, IsStateOfType, LegacyAddFileAction, LegacyAddFileInput, LegacySynchronizationUnit, Listener, ListenerCallInfo, ListenerCallInfoInput, ListenerFilter, ListenerFilterInput, ListenerInput, LoadFromFile, LoadFromInput,
|
|
6
|
+
export { ALL_POWERHOUSE_DEPENDENCIES, APPS_DEPENDENCIES, ActionErrorCallback, ActionSignatureContext, ActionSigningHandler, ActionVerificationHandler, Actions, AddChangeLogItemAction, AddChangeLogItemInput, AddFileAction, AddFileInput, AddFolderAction, AddFolderInput, AddListenerAction, AddListenerInput, AddModuleAction, AddModuleInput, AddOperationAction, AddOperationErrorAction, AddOperationErrorInput, AddOperationExampleAction, AddOperationExampleInput, AddOperationInput, AddRelationshipAction, AddRelationshipActionInput, AddStateExampleAction, AddStateExampleInput, AddTriggerAction, AddTriggerInput, AnalyticsDimension, AnalyticsOperand, AnalyticsQuery, AnalyticsSeries, AnalyticsSeriesInput, AnalyticsSeriesQuery, AnalyticsUpdateCallback, AssertIsDocumentOfType, AssertIsStateOfType, Author, CLIS_DEPENDENCIES, CodeExample, CompoundAnalyticsExpression, CompoundAnalyticsInputs, CompoundAnalyticsQuery, ConfigEntry, ConfigEntryType, ConversionMetric, CopyChildDocumentInput, CopyChildDocumentSignal, CopyNodeAction, CopyNodeInput, CreateChildDocumentInput, CreateChildDocumentSignal, CreateDocument, CreateDocumentAction, CreateDocumentActionInput, CreateState, DeleteChangeLogItemAction, DeleteChangeLogItemInput, DeleteChildDocumentInput, DeleteChildDocumentSignal, DeleteDocumentAction, DeleteDocumentActionInput, DeleteModuleAction, DeleteModuleInput, DeleteNodeAction, DeleteNodeInput, DeleteOperationAction, DeleteOperationErrorAction, DeleteOperationErrorInput, DeleteOperationExampleAction, DeleteOperationExampleInput, DeleteOperationInput, DeleteStateExampleAction, DeleteStateExampleInput, DocumentAction, DocumentDriveAction, DocumentDriveDocument, DocumentDriveDriveAction, DocumentDriveDriveOperations, DocumentDriveGlobalState, DocumentDriveLocalState, DocumentDriveNodeAction, DocumentDriveNodeOperations, DocumentDrivePHState, DocumentModelAction, DocumentModelDocument, DocumentModelDocumentModelModule, DocumentModelGlobalState, DocumentModelHeaderAction, DocumentModelHeaderOperations, DocumentModelInput, DocumentModelLib, DocumentModelLocalState, DocumentModelModule, DocumentModelModuleAction, DocumentModelModuleOperations, DocumentModelOperationAction, DocumentModelOperationErrorAction, DocumentModelOperationErrorOperations, DocumentModelOperationExampleAction, DocumentModelOperationExampleOperations, DocumentModelOperationOperations, DocumentModelPHState, DocumentModelStateAction, DocumentModelStateOperations, DocumentModelUtils, DocumentModelVersioningAction, DocumentModelVersioningOperations, DocumentOperationsIgnoreMap, DocumentSpecification, DriveDocumentModelModule, DriveInput, DrivePreserveStrategies, DrivePreserveStrategy, ENSInfo, EditorDispatch, EditorModule, EditorProps, Exact, FileInput, FileNode, FolderNode, GITHUB_REPO_URL, GenerateNodesCopyIdGenerator, GenerateNodesCopySrc, GetDocumentOptions, IAction, IAnalyticsStore, ID, IDocument, IOperation, IProcessor, IProcessorDispatch, IProcessorHostModuleBase, IProcessorManager, ISignal, ISignalResult, ISigner, Incremental, InputMaybe, IsDocumentOfType, IsStateOfType, LegacyAddFileAction, LegacyAddFileInput, LegacySynchronizationUnit, Listener, ListenerCallInfo, ListenerCallInfoInput, ListenerFilter, ListenerFilterInput, ListenerInput, LoadFromFile, LoadFromInput, LogLevel, LogLevels, MakeEmpty, MakeMaybe, MakeOptional, Manifest, MappedOperation, Maybe, MinimalBackupData, ModuleSpecification, MoveNodeAction, MoveNodeInput, MoveOperationAction, MoveOperationInput, MultiCurrencyConversion, Mutation, MutationAddChangeLogItemInputArgs, MutationAddModuleArgs, MutationAddOperationArgs, MutationAddOperationErrorArgs, MutationAddOperationExampleArgs, MutationAddStateExampleArgs, MutationDeleteChangeLogItemInputArgs, MutationDeleteModuleArgs, MutationDeleteOperationArgs, MutationDeleteOperationErrorArgs, MutationDeleteOperationExampleArgs, MutationDeleteStateExampleArgs, MutationMoveOperationArgs, MutationRedoArgs, MutationReorderChangeLogItemsInputArgs, MutationReorderModuleOperationsArgs, MutationReorderModulesArgs, MutationReorderOperationErrorsArgs, MutationReorderOperationExamplesArgs, MutationReorderStateExamplesArgs, MutationSetAuthorNameArgs, MutationSetAuthorWebsiteArgs, MutationSetInitialStateArgs, MutationSetModelDescriptionArgs, MutationSetModelExtensionArgs, MutationSetModelIdArgs, MutationSetModelNameArgs, MutationSetModuleDescriptionArgs, MutationSetModuleNameArgs, MutationSetNameArgs, MutationSetOperationDescriptionArgs, MutationSetOperationErrorCodeArgs, MutationSetOperationErrorDescriptionArgs, MutationSetOperationErrorNameArgs, MutationSetOperationErrorTemplateArgs, MutationSetOperationNameArgs, MutationSetOperationReducerArgs, MutationSetOperationSchemaArgs, MutationSetOperationTemplateArgs, MutationSetStateSchemaArgs, MutationUndoArgs, MutationUpdateChangeLogItemInputArgs, MutationUpdateOperationExampleArgs, MutationUpdateStateExampleArgs, NOOPAction, Node, OperationErrorSpecification, OperationIndex, OperationSpecification, OperationsByScope, PACKAGES_DEPENDENCIES, PHConnectAi, PHConnectApp, PHConnectBranding, PHConnectDefaultDrive, PHConnectDefaultDriveLocal, PHConnectDefaultDriveRemote, PHConnectDriveSection, PHConnectDriveSections, PHConnectDrives, PHConnectInstance, PHConnectPackages, PHConnectPwa, PHConnectPwaCacheStrategy, PHConnectPwaFileHandler, PHConnectPwaIcon, PHConnectPwaManifest, PHConnectPwaRuntimeCaching, PHConnectPwaUrlPattern, PHConnectReactor, PHConnectReactorFeatureFlags, PHConnectRenown, PHConnectRenownAdapters, PHConnectRuntimeConfig, PHConnectSentry, PHPackageProvider, PHReactorRenown, PHRenownPrivyAdapterConfig, PHRenownRainbowAdapterConfig, PackageInfo, PackageListItem, PackageManagerArgs, PackagePage, ParsedCmdResult, PartialRecord, PartialState, PathValidation, PhAiToolAnnotations, PhAiToolDescriptor, PieceModule, PowerhouseConfig, PowerhouseModule, PowerhousePackage, ProcessorApp, ProcessorApps, ProcessorDispatchResult, ProcessorFactory, ProcessorFactoryBuilder, ProcessorFilter, ProcessorRecord, ProcessorStatus, Publisher, PullResponderTriggerData, PullResponderTriggerDataInput, Query, Redo, RedoAction, RedoActionInput, Reducer, ReducerOptions, RegistryPackage, RegistryPackageList, RegistryPackageMap, RegistryPackageSource, RegistryPackageStatus, ReleaseNewVersionAction, RemoveListenerAction, RemoveListenerInput, RemoveRelationshipAction, RemoveRelationshipActionInput, RemoveTriggerAction, RemoveTriggerInput, ReorderChangeLogItemsAction, ReorderChangeLogItemsInput, ReorderModuleOperationsAction, ReorderModuleOperationsInput, ReorderModulesAction, ReorderModulesInput, ReorderOperationErrorsAction, ReorderOperationErrorsInput, ReorderOperationExamplesAction, ReorderOperationExamplesInput, ReorderStateExamplesAction, ReorderStateExamplesInput, ReplayDocumentOptions, RevisionsFilter, SaveToFile, SaveToFileHandle, Scalars, SchemaNOOPAction, SchemaRedoAction, SchemaSetNameAction, SchemaSetPreferredEditorAction, SchemaUndoAction, ScopeState, ServiceAction, ServiceActions, SetAuthorNameAction, SetAuthorNameInput, SetAuthorWebsiteAction, SetAuthorWebsiteInput, SetAvailableOfflineAction, SetAvailableOfflineInput, SetDriveIconAction, SetDriveIconInput, SetDriveNameAction, SetDriveNameInput, SetInitialStateAction, SetInitialStateInput, SetModelDescriptionAction, SetModelDescriptionInput, SetModelExtensionAction, SetModelExtensionInput, SetModelIdAction, SetModelIdInput, SetModelNameAction, SetModelNameInput, SetModuleDescriptionAction, SetModuleDescriptionInput, SetModuleNameAction, SetModuleNameInput, SetNameAction, SetNameActionInput, SetNameOperation, SetOperationDescriptionAction, SetOperationDescriptionInput, SetOperationErrorCodeAction, SetOperationErrorCodeInput, SetOperationErrorDescriptionAction, SetOperationErrorDescriptionInput, SetOperationErrorNameAction, SetOperationErrorNameInput, SetOperationErrorTemplateAction, SetOperationErrorTemplateInput, SetOperationNameAction, SetOperationNameInput, SetOperationReducerAction, SetOperationReducerInput, SetOperationSchemaAction, SetOperationSchemaInput, SetOperationScopeAction, SetOperationScopeInput, SetOperationTemplateAction, SetOperationTemplateInput, SetPreferredEditorAction, SetPreferredEditorActionInput, SetPreferredEditorOperation, SetSharingTypeAction, SetSharingTypeInput, SetStateSchemaAction, SetStateSchemaInput, Set_Name, Set_PreferredEditor, SharingType, Signal, SignalDispatch, SignalResult, SignalResults, SignalType, SignatureVerificationHandler, SigningParameters, SkipHeaderOperationIndex, SkipHeaderOperations, State, StateReducer, SubgraphModule, TrackedProcessor, TransmitterType, Trigger, TriggerData, TriggerInput, TriggerType, Undo, UndoAction, UndoActionInput, UndoRedoAction, UpdateChangeLogItemAction, UpdateChangeLogItemInput, UpdateFileAction, UpdateFileInput, UpdateNodeAction, UpdateNodeInput, UpdateOperationExampleAction, UpdateOperationExampleInput, UpdateRelationshipAction, UpdateRelationshipActionInput, UpdateStateExampleAction, UpdateStateExampleInput, UpgradeDocumentAction, UpgradeDocumentActionInput, User, ValidationError, buildTreeUrl, shortGitSha };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $s as
|
|
1
|
+
import { $s as ProcessorDispatchResult, Ac as WebhookSignatureEncoding, Bs as IBaseRelationalDb, Cc as WebhookEndpointInfo, Dc as WebhookReply, Ec as WebhookPolicy, Fd as DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, Fs as createRelationalDb, Gs as RelationalDbProcessor, Hs as IRelationalDbProcessor, Id as PROCESSOR_APPS, Is as hashNamespace, Js as IProcessorDispatch, Ks as RelationalDbProcessorClass, Ls as relationalDbToQueryBuilder, Mc as WebhookVerification, Ns as createNamespacedDb, Oc as WebhookRequest, Pd as DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, Ps as createNamespacedQueryBuilder, Qs as ProcessorApps, Rs as ExtractProcessorSchemaOrSelf, Sc as ScopedRouteHandle, Tc as WebhookHashAlgorithm, Us as IRelationalQueryBuilder, Vs as IRelationalDb, Ws as IRelationalQueryMethods, Xs as IProcessorManager, Ys as IProcessorHostModuleBase, Zs as ProcessorApp, _c as RouteMethod, ac as TrackedProcessor, bc as RouteTransport, cc as IWebhookEndpoints, dc as RouteActor, ec as ProcessorFactory, fc as RouteAuth, gc as RouteHandler, hc as RouteContext, ic as ProcessorStatus, jc as WebhookSpec, kc as WebhookScheme, lc as IWebhookScope, mc as RouteBody, nc as ProcessorFilter, oc as AuthorizerResult, pc as RouteAuthorizer, qs as IProcessor, rc as ProcessorRecord, sc as IHttpScope, tc as ProcessorFactoryBuilder, uc as NodeRouteSpec, vc as RouteOptions, wc as WebhookField, xc as RouteUser, yc as RouteSpec, zs as HashAlgorithms } from "../types-COsoOK42.js";
|
|
2
2
|
export { AuthorizerResult, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, ExtractProcessorSchemaOrSelf, HashAlgorithms, IBaseRelationalDb, IHttpScope, IProcessor, IProcessorDispatch, IProcessorHostModuleBase, IProcessorManager, IRelationalDb, IRelationalDbProcessor, IRelationalQueryBuilder, IRelationalQueryMethods, IWebhookEndpoints, IWebhookScope, NodeRouteSpec, PROCESSOR_APPS, ProcessorApp, ProcessorApps, ProcessorDispatchResult, ProcessorFactory, ProcessorFactoryBuilder, ProcessorFilter, ProcessorRecord, ProcessorStatus, RelationalDbProcessor, RelationalDbProcessorClass, RouteActor, RouteAuth, RouteAuthorizer, RouteBody, RouteContext, RouteHandler, RouteMethod, RouteOptions, RouteSpec, RouteTransport, RouteUser, ScopedRouteHandle, TrackedProcessor, WebhookEndpointInfo, WebhookField, WebhookHashAlgorithm, WebhookPolicy, WebhookReply, WebhookRequest, WebhookScheme, WebhookSignatureEncoding, WebhookSpec, WebhookVerification, createNamespacedDb, createNamespacedQueryBuilder, createRelationalDb, hashNamespace, relationalDbToQueryBuilder };
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as DEFAULT_REGISTRY_URL } from "../types-
|
|
2
|
-
import { B as RegistryPackageMap, F as PackageInfo, H as RegistryPackageStatus, I as PackageListItem, L as PackagePage, R as RegistryPackage, V as RegistryPackageSource, z as RegistryPackageList } from "../types-
|
|
1
|
+
import { B as DEFAULT_REGISTRY_URL } from "../types-COsoOK42.js";
|
|
2
|
+
import { B as RegistryPackageMap, F as PackageInfo, H as RegistryPackageStatus, I as PackageListItem, L as PackagePage, R as RegistryPackage, V as RegistryPackageSource, z as RegistryPackageList } from "../types-DhOXIQ4c.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":["../../clis/constants.ts","../../clis/file-system/get-config.ts","../../clis/file-system/spawn-async.ts","../../registry/registry.ts"],"sourcesContent":["import { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport type { Manifest } from \"../document-model/types.js\";\nimport type { PowerhouseConfig } from \"./types.js\";\n\nexport const SERVICE_ACTIONS = [\n \"start\",\n \"stop\",\n \"status\",\n \"setup\",\n \"restart\",\n] as const;\n\nexport const SECONDS_IN_DAY = 24 * 60 * 60;\nexport const DEFAULT_EXPIRY_DAYS = 7;\nexport const DEFAULT_EXPIRY_SECONDS = DEFAULT_EXPIRY_DAYS * SECONDS_IN_DAY;\n\nexport const DRIVES_PRESERVE_STRATEGIES = [\n \"preserve-all\",\n \"preserve-by-url-and-detach\",\n] as const;\n\nexport const LOG_LEVELS = [\n \"debug\",\n \"info\",\n \"warn\",\n \"error\",\n \"verbose\",\n] as const;\n\nexport const DEFAULT_TIMEOUT = 300 as const;\n\nexport const DEFAULT_CONNECT_STUDIO_PORT = 3000 as const;\n\nexport const DEFAULT_VETRA_CONNECT_PORT = 3001 as const;\n\nexport const DEFAULT_CONNECT_PREVIEW_PORT = 4173 as const;\n\nexport const DEFAULT_CONNECT_OUTDIR = \".ph/connect-build/dist/\" as const;\n\nexport const DEFAULT_RENOWN_URL = \"https://www.renown.id\" as const;\n\nexport const DEFAULT_REGISTRY_URL = \"https://registry.vetra.io\" as const;\n\nexport const DEFAULT_SWITCHBOARD_PORT = 4001 as const;\n\n// Per-project dev-server port bands. `ph init` assigns each project a port\n// triple derived from its name, so two projects never collide and an agent's\n// MCP URL can be baked into .mcp.json before a session starts.\n//\n// Two hard constraints picked these bands, both below 10000:\n//\n// 1. Below the OS ephemeral range. Linux allocates outbound source ports\n// from 32768-60999 (`/proc/sys/net/ipv4/ip_local_port_range`); macOS and\n// Windows start at 49152. A listener parked in that window can lose a\n// race to a transient outbound socket, which would surface as a\n// `--strictPort` failure blaming a project conflict that does not exist.\n// 2. Below 10000, which is where ph-clint starts. ph-clint derives its own\n// per-CLI ports by hashing into 10000-59900, so staying under 10000\n// keeps the two schemes from ever contending.\n//\n// Within those limits the blocks were chosen by measuring which ports the\n// Powerhouse repos actually reference: 2000-2999 has none, 7000-7999 has one,\n// 6000-6999 has five. See PROJECT_PORT_DENYLIST in project-ports.ts for the\n// individual ports skipped inside them.\nexport const PROJECT_PORT_BAND_SIZE = 1000 as const;\nexport const PROJECT_PORT_BAND_SWITCHBOARD = 7000 as const;\nexport const PROJECT_PORT_BAND_STUDIO = 6000 as const;\nexport const PROJECT_PORT_BAND_VETRA_CONNECT = 2000 as const;\n\nexport const DEFAULT_VETRA_DRIVE_ID = \"vetra\" as const;\n\nexport const MINIMUM_NODE_VERSION = \"24.0.0\" as const;\nexport const PH_BIN = \"ph-cli-legacy\" as const;\nexport const POWERHOUSE_CONFIG_FILE = \"powerhouse.config.json\" as const;\nexport const PH_GLOBAL_DIR_NAME = \".ph\" as const;\n// Keep PH_GLOBAL_PROJECT_NAME for backwards compatibility\nexport const PH_GLOBAL_PROJECT_NAME = PH_GLOBAL_DIR_NAME;\n\nexport const HOME_DIR = homedir();\n\nexport const POWERHOUSE_GLOBAL_DIR = join(HOME_DIR, PH_GLOBAL_DIR_NAME);\n\n// Workspace packages that go in peerDependencies of every generated project.\nexport const VERSIONED_PEER_DEPENDENCIES = [\n \"document-model\",\n \"@powerhousedao/reactor-browser\",\n];\n\ntype PeerSpec = { peer: string; dev: string };\n\nexport const REACTOR_API_PACKAGE = \"@powerhousedao/reactor-api\";\nexport const ANALYTICS_ENGINE_CORE_PACKAGE =\n \"@powerhousedao/analytics-engine-core\";\nexport const GRAPHQL_PACKAGE = \"graphql\";\nexport const GRAPHQL_TAG_PACKAGE = \"graphql-tag\";\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.3.6\" },\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];\n\nexport const packageJsonExports = {\n \".\": {\n types: \"./dist/types/index.d.ts\",\n browser: \"./dist/browser/index.js\",\n node: \"./dist/node/index.mjs\",\n },\n \"./reactor\": {\n types: \"./dist/types/reactor/index.d.ts\",\n browser: \"./dist/browser/reactor/index.js\",\n },\n \"./document-models\": {\n types: \"./dist/types/document-models/index.d.ts\",\n browser: \"./dist/browser/document-models/index.js\",\n node: \"./dist/node/document-models/index.mjs\",\n },\n \"./document-models/*\": {\n types: \"./dist/types/document-models/*/index.d.ts\",\n browser: \"./dist/browser/document-models/*/index.js\",\n node: \"./dist/node/document-models/*/index.mjs\",\n },\n \"./editors\": {\n types: \"./dist/types/editors/index.d.ts\",\n browser: \"./dist/browser/editors/index.js\",\n node: \"./dist/node/editors/index.mjs\",\n },\n \"./editors/*\": {\n types: \"./dist/types/editors/*/editor.d.ts\",\n browser: \"./dist/browser/editors/*/editor.js\",\n node: \"./dist/node/editors/*/editor.mjs\",\n },\n \"./subgraphs\": {\n types: \"./dist/types/subgraphs/index.d.ts\",\n browser: \"./dist/browser/subgraphs/index.js\",\n node: \"./dist/node/subgraphs/index.mjs\",\n },\n \"./processors\": {\n types: \"./dist/types/processors/index.d.ts\",\n browser: \"./dist/browser/processors/index.js\",\n node: \"./dist/node/processors/index.mjs\",\n },\n // 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\": \"4.1.1\",\n oxfmt: \"0.55.0\",\n oxlint: \"1.70.0\",\n \"oxlint-tsgolint\": \"0.23.0\",\n tailwindcss: \"^4.1.16\",\n typescript: \"^5.9.3\",\n vite: \"^8.0.10\",\n \"vite-tsconfig-paths\": \"6.1.1\",\n vitest: \"4.1.1\",\n} as const;\n\nexport const defaultManifest: Manifest = {\n name: \"\",\n description: \"\",\n category: \"\",\n publisher: {\n name: \"\",\n url: \"\",\n },\n documentModels: [],\n editors: [],\n apps: [],\n subgraphs: [],\n processors: [],\n};\n\nconst DEFAULT_DOCUMENT_MODELS_DIR = \"./document-models\";\nconst DEFAULT_EDITORS_DIR = \"./editors\";\nconst DEFAULT_PROCESSORS_DIR = \"./processors\";\nconst DEFAULT_SUBGRAPHS_DIR = \"./subgraphs\";\nconst DEFAULT_IMPORT_SCRIPTS_DIR = \"./scripts\";\nconst DEFAULT_SKIP_FORMAT = false;\nconst DEFAULT_LOG_LEVEL = \"info\";\n\nexport const DEFAULT_CONFIG: PowerhouseConfig = {\n documentModelsDir: DEFAULT_DOCUMENT_MODELS_DIR,\n editorsDir: DEFAULT_EDITORS_DIR,\n processorsDir: DEFAULT_PROCESSORS_DIR,\n subgraphsDir: DEFAULT_SUBGRAPHS_DIR,\n importScriptsDir: DEFAULT_IMPORT_SCRIPTS_DIR,\n skipFormat: DEFAULT_SKIP_FORMAT,\n logLevel: DEFAULT_LOG_LEVEL,\n auth: {\n enabled: false,\n admins: [],\n },\n};\n","import { readFileSync } from \"node:fs\";\nimport { DEFAULT_CONFIG } from \"../constants.js\";\nimport type { PowerhouseConfig } from \"../types.js\";\n\nexport function getConfig(path = \"./powerhouse.config.json\") {\n let config: PowerhouseConfig = { ...DEFAULT_CONFIG };\n try {\n const configStr = readFileSync(path, \"utf-8\");\n const userConfig = JSON.parse(configStr) as PowerhouseConfig;\n config = { ...config, ...userConfig };\n } catch {\n // console.warn(\"No powerhouse.config.json found, using defaults\");\n }\n\n return config;\n}\n","import spawn from \"cross-spawn\";\n\nexport function spawnAsync(\n command: string,\n args: string[],\n options: {\n cwd?: string;\n env?: NodeJS.ProcessEnv;\n } = {},\n): Promise<string> {\n return new Promise((resolve, reject) => {\n // cross-spawn rather than node:child_process.spawn. On Windows npm, pnpm\n // and yarn are all `.cmd` shims, and since the fix for CVE-2024-27980\n // (Node 18.20.2 / 20.12.2 / 21.7.3 and later) `spawn` refuses to execute\n // `.bat`/`.cmd` unless `shell: true` -- it throws `spawn EINVAL`, and\n // synchronously, so an `error` listener never sees it. Passing\n // `shell: true` instead would hand the arguments to cmd.exe, which strips\n // quotes and splits on shell metacharacters. cross-spawn resolves the shim\n // and escapes the arguments itself, so the call keeps shell-less argument\n // semantics on every platform.\n const child = spawn(command, args, {\n cwd: options.cwd,\n env: options.env,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n });\n\n let stdout = \"\";\n let stderr = \"\";\n\n child.stdout?.on(\"data\", (d: Buffer) => {\n stdout += d.toString();\n });\n\n child.stderr?.on(\"data\", (d: Buffer) => {\n stderr += d.toString();\n });\n\n child.on(\"error\", reject);\n\n child.on(\"close\", (code) => {\n if (code === 0) {\n resolve(stdout.trim());\n } else {\n reject(\n new Error(stderr.trim() || `${command} exited with code ${code}`),\n );\n }\n });\n });\n}\n","import { promises as fs } from \"node:fs\";\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport {\n DEFAULT_REGISTRY_URL,\n POWERHOUSE_CONFIG_FILE,\n} from \"../clis/constants.js\";\nimport { getConfig } from \"../clis/file-system/get-config.js\";\nimport { spawnAsync } from \"../clis/file-system/spawn-async.js\";\n\nexport { DEFAULT_REGISTRY_URL } from \"../clis/constants.js\";\n\n/**\n * Extract the host portion of a registry URL — what npm uses as the key in\n * `~/.npmrc` for per-registry tokens (e.g. `//registry.vetra.io/`).\n */\nexport function registryAuthKey(registryUrl: string): string {\n const url = new URL(registryUrl);\n // Always trailing slash; npm's lookup is exact-match against the leading\n // path of the registry URL, with `//` prefix and trailing `/`.\n const path = url.pathname.endsWith(\"/\") ? url.pathname : `${url.pathname}/`;\n return `//${url.host}${path}:_authToken`;\n}\n\nexport interface ResolveRegistryUrlOptions {\n /** Explicit registry URL (e.g. from --registry flag). Highest priority. */\n registry?: string;\n /** Project path to read powerhouse.config.json from. */\n projectPath: string;\n /** Environment variables. Defaults to process.env. */\n env?: Record<string, string | undefined>;\n}\n\n/**\n * Resolve the registry URL with priority: flag > env > config > default.\n */\nexport function resolveRegistryUrl(options: ResolveRegistryUrlOptions): string {\n const { registry, projectPath, env = process.env } = options;\n const configPath = join(projectPath, POWERHOUSE_CONFIG_FILE);\n const config = getConfig(configPath);\n\n return (\n registry ??\n env.PH_REGISTRY_URL ??\n config.packageRegistryUrl ??\n DEFAULT_REGISTRY_URL\n );\n}\n\n/**\n * Check if the user is authenticated with the given npm registry.\n * Returns the username on success, throws on failure.\n */\nexport async function checkNpmAuth(registryUrl: string): Promise<string> {\n return spawnAsync(\"npm\", [\"whoami\", \"--registry\", registryUrl]);\n}\n\nexport interface NpmPublishOptions {\n /** Registry URL to publish to. */\n registryUrl: string;\n /** Working directory (project root). */\n cwd: string;\n /** Additional arguments forwarded to npm publish. */\n args?: string[];\n /** Bearer token for the registry. When set, passed via a registry-scoped\n * `_authToken` config flag rather than read from the user's `.npmrc`. */\n authToken?: string;\n}\n\nexport interface NpmPublishResult {\n /** stdout from npm publish. */\n stdout: string;\n}\n\n/**\n * Run `npm publish` against the given registry.\n * Uses spawn with args array to avoid shell injection.\n *\n * When `authToken` is provided, the token is passed via a registry-scoped\n * `--//host/:_authToken=<token>` flag (npm's standard form for per-registry\n * tokens) so we never have to write to `~/.npmrc`.\n */\nexport async function npmPublish(\n options: NpmPublishOptions,\n): Promise<NpmPublishResult> {\n const { registryUrl, cwd, args = [], authToken } = options;\n const tokenArg = authToken\n ? [`--${registryAuthKey(registryUrl)}=${authToken}`]\n : [];\n const npmArgs = [\"publish\", \"--registry\", registryUrl, ...tokenArg, ...args];\n const stdout = await spawnAsync(\"npm\", npmArgs, { cwd });\n return { stdout };\n}\n\n/**\n * Write `_authToken=<token>` for the given registry host into `~/.npmrc`,\n * preserving any other lines. Replaces the existing entry for the same key\n * if present. Returns the absolute path to the npmrc that was written.\n */\nexport async function writeRegistryAuthToken(\n registryUrl: string,\n token: string,\n): Promise<string> {\n const npmrcPath = join(homedir(), \".npmrc\");\n const key = registryAuthKey(registryUrl);\n let existing = \"\";\n try {\n existing = await fs.readFile(npmrcPath, \"utf8\");\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code !== \"ENOENT\") throw err;\n }\n const lines = existing.split(\"\\n\");\n const filtered = lines.filter((line) => !line.startsWith(`${key}=`));\n // Also drop any trailing empties to avoid stacking blank lines on rewrite.\n while (filtered.length && filtered[filtered.length - 1] === \"\")\n filtered.pop();\n filtered.push(`${key}=${token}`);\n await fs.writeFile(npmrcPath, `${filtered.join(\"\\n\")}\\n`, \"utf8\");\n return npmrcPath;\n}\n\nexport interface NpmUnpublishOptions {\n /** Registry URL to unpublish from. */\n registryUrl: string;\n /** Working directory (project root). */\n cwd: string;\n /** Package spec: `<name>` (whole package) or `<name>@<version>` (single version). */\n spec: string;\n /** Additional arguments forwarded to npm unpublish. */\n args?: string[];\n /** Bearer token for the registry (same semantics as `NpmPublishOptions.authToken`). */\n authToken?: string;\n}\n\nexport interface NpmUnpublishResult {\n /** stdout from npm unpublish. */\n stdout: string;\n}\n\n/**\n * Run `npm unpublish` against the given registry.\n * Always passes `--force` because npm otherwise refuses to unpublish packages\n * older than 72h (a public-npmjs safeguard that doesn't apply to private registries).\n */\nexport async function npmUnpublish(\n options: NpmUnpublishOptions,\n): Promise<NpmUnpublishResult> {\n const { registryUrl, cwd, spec, args = [], authToken } = options;\n const tokenArg = authToken\n ? [`--${registryAuthKey(registryUrl)}=${authToken}`]\n : [];\n const npmArgs = [\n \"unpublish\",\n spec,\n \"--registry\",\n registryUrl,\n \"--force\",\n ...tokenArg,\n ...args,\n ];\n const stdout = await spawnAsync(\"npm\", npmArgs, { cwd });\n return { stdout };\n}\n"],"mappings":";;;;;;;AA0CA,MAAa,uBAAuB;AAgCpC,MAAa,yBAAyB;AAOD,KAFb,SAAS,EAES,MAA6B;AAGvE,MAAa,8BAA8B,CACzC,kBACA,iCACD;AA2BD,MAAa,uBAAuB;CAClC,oBAAoB;EAClB,eAAe,CAvBjB,uCAuBgD;EAC9C,cAAc,EAAE;EAChB,cAAc,EAAE;EACjB;CAGD,OAAO;EACL,eAAe,EAAE;EACjB,cAAc,EAAE;EAChB,cAAc,CA7BsB,kCA6BI;EACzC;CACF;AASqC,CACpC,GAAG,6BACH,GAAG,qBAAqB,mBAAmB,cAC5C;AAuMD,MAAa,iBAAmC;CAC9C,mBATkC;CAUlC,YAT0B;CAU1B,eAT6B;CAU7B,cAT4B;CAU5B,kBATiC;CAUjC,YAT0B;CAU1B,UATwB;CAUxB,MAAM;EACJ,SAAS;EACT,QAA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O,WAAW,OAAO;EAAC;EAAU;EAAc;EAAY,CAAC;;;;;;;;;;AA4BjE,eAAsB,WACpB,SAC2B;CAC3B,MAAM,EAAE,aAAa,KAAK,OAAO,EAAE,EAAE,cAAc;AAMnD,QAAO,EAAE,QADM,MAAM,WAAW,OADhB;EAAC;EAAW;EAAc;EAAa,GAHtC,YACb,CAAC,KAAK,gBAAgB,YAAY,CAAC,GAAG,YAAY,GAClD,EAAE;EAC8D,GAAG;EAAK,EAC5B,EAAE,KAAK,CAAC,EACvC;;;;;;;AAQnB,eAAsB,uBACpB,aACA,OACiB;CACjB,MAAM,YAAY,KAAK,SAAS,EAAE,SAAS;CAC3C,MAAM,MAAM,gBAAgB,YAAY;CACxC,IAAI,WAAW;AACf,KAAI;AACF,aAAW,MAAMA,SAAG,SAAS,WAAW,OAAO;UACxC,KAAK;AACZ,MAAK,IAA8B,SAAS,SAAU,OAAM;;CAG9D,MAAM,WADQ,SAAS,MAAM,KAAK,CACX,QAAQ,SAAS,CAAC,KAAK,WAAW,GAAG,IAAI,GAAG,CAAC;AAEpE,QAAO,SAAS,UAAU,SAAS,SAAS,SAAS,OAAO,GAC1D,UAAS,KAAK;AAChB,UAAS,KAAK,GAAG,IAAI,GAAG,QAAQ;AAChC,OAAMA,SAAG,UAAU,WAAW,GAAG,SAAS,KAAK,KAAK,CAAC,KAAK,OAAO;AACjE,QAAO;;;;;;;AA0BT,eAAsB,aACpB,SAC6B;CAC7B,MAAM,EAAE,aAAa,KAAK,MAAM,OAAO,EAAE,EAAE,cAAc;AAczD,QAAO,EAAE,QADM,MAAM,WAAW,OAThB;EACd;EACA;EACA;EACA;EACA;EACA,GATe,YACb,CAAC,KAAK,gBAAgB,YAAY,CAAC,GAAG,YAAY,GAClD,EAAE;EAQJ,GAAG;EACJ,EAC+C,EAAE,KAAK,CAAC,EACvC"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["fs"],"sources":["../../clis/constants.ts","../../clis/file-system/get-config.ts","../../clis/file-system/spawn-async.ts","../../registry/registry.ts"],"sourcesContent":["import { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport type { Manifest } from \"../document-model/types.js\";\nimport type { PowerhouseConfig } from \"./types.js\";\n\nexport const SERVICE_ACTIONS = [\n \"start\",\n \"stop\",\n \"status\",\n \"setup\",\n \"restart\",\n] as const;\n\nexport const SECONDS_IN_DAY = 24 * 60 * 60;\nexport const DEFAULT_EXPIRY_DAYS = 7;\nexport const DEFAULT_EXPIRY_SECONDS = DEFAULT_EXPIRY_DAYS * SECONDS_IN_DAY;\n\nexport const DRIVES_PRESERVE_STRATEGIES = [\n \"preserve-all\",\n \"preserve-by-url-and-detach\",\n] as const;\n\nexport const LOG_LEVELS = [\n \"debug\",\n \"info\",\n \"warn\",\n \"error\",\n \"verbose\",\n] as const;\n\nexport const DEFAULT_TIMEOUT = 300 as const;\n\nexport const DEFAULT_CONNECT_STUDIO_PORT = 3000 as const;\n\nexport const DEFAULT_VETRA_CONNECT_PORT = 3001 as const;\n\nexport const DEFAULT_CONNECT_PREVIEW_PORT = 4173 as const;\n\nexport const DEFAULT_CONNECT_OUTDIR = \".ph/connect-build/dist/\" as const;\n\nexport const DEFAULT_RENOWN_URL = \"https://www.renown.id\" as const;\n\nexport const DEFAULT_REGISTRY_URL = \"https://registry.vetra.io\" as const;\n\nexport const DEFAULT_SWITCHBOARD_PORT = 4001 as const;\n\n// Per-project dev-server port bands. `ph init` assigns each project a port\n// triple derived from its name, so two projects never collide and an agent's\n// MCP URL can be baked into .mcp.json before a session starts.\n//\n// Two hard constraints picked these bands, both below 10000:\n//\n// 1. Below the OS ephemeral range. Linux allocates outbound source ports\n// from 32768-60999 (`/proc/sys/net/ipv4/ip_local_port_range`); macOS and\n// Windows start at 49152. A listener parked in that window can lose a\n// race to a transient outbound socket, which would surface as a\n// `--strictPort` failure blaming a project conflict that does not exist.\n// 2. Below 10000, which is where ph-clint starts. ph-clint derives its own\n// per-CLI ports by hashing into 10000-59900, so staying under 10000\n// keeps the two schemes from ever contending.\n//\n// Within those limits the blocks were chosen by measuring which ports the\n// Powerhouse repos actually reference: 2000-2999 has none, 7000-7999 has one,\n// 6000-6999 has five. See PROJECT_PORT_DENYLIST in project-ports.ts for the\n// individual ports skipped inside them.\nexport const PROJECT_PORT_BAND_SIZE = 1000 as const;\nexport const PROJECT_PORT_BAND_SWITCHBOARD = 7000 as const;\nexport const PROJECT_PORT_BAND_STUDIO = 6000 as const;\nexport const PROJECT_PORT_BAND_VETRA_CONNECT = 2000 as const;\n\nexport const DEFAULT_VETRA_DRIVE_ID = \"vetra\" as const;\n\nexport const MINIMUM_NODE_VERSION = \"24.0.0\" as const;\nexport const PH_BIN = \"ph-cli-legacy\" as const;\nexport const POWERHOUSE_CONFIG_FILE = \"powerhouse.config.json\" as const;\nexport const PH_GLOBAL_DIR_NAME = \".ph\" as const;\n// Keep PH_GLOBAL_PROJECT_NAME for backwards compatibility\nexport const PH_GLOBAL_PROJECT_NAME = PH_GLOBAL_DIR_NAME;\n\nexport const HOME_DIR = homedir();\n\nexport const POWERHOUSE_GLOBAL_DIR = join(HOME_DIR, PH_GLOBAL_DIR_NAME);\n\n// Workspace packages that go in peerDependencies of every generated project.\nexport const VERSIONED_PEER_DEPENDENCIES = [\n \"document-model\",\n \"@powerhousedao/reactor-browser\",\n];\n\ntype PeerSpec = { peer: string; dev: string };\n\nexport const REACTOR_API_PACKAGE = \"@powerhousedao/reactor-api\";\nexport const ANALYTICS_ENGINE_CORE_PACKAGE =\n \"@powerhousedao/analytics-engine-core\";\nexport const GRAPHQL_PACKAGE = \"graphql\";\nexport const GRAPHQL_TAG_PACKAGE = \"graphql-tag\";\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.3.6\" },\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];\n\nexport const packageJsonExports = {\n \".\": {\n types: \"./dist/types/index.d.ts\",\n browser: \"./dist/browser/index.js\",\n node: \"./dist/node/index.mjs\",\n },\n \"./reactor\": {\n types: \"./dist/types/reactor/index.d.ts\",\n browser: \"./dist/browser/reactor/index.js\",\n },\n \"./document-models\": {\n types: \"./dist/types/document-models/index.d.ts\",\n browser: \"./dist/browser/document-models/index.js\",\n node: \"./dist/node/document-models/index.mjs\",\n },\n \"./document-models/*\": {\n types: \"./dist/types/document-models/*/index.d.ts\",\n browser: \"./dist/browser/document-models/*/index.js\",\n node: \"./dist/node/document-models/*/index.mjs\",\n },\n \"./editors\": {\n types: \"./dist/types/editors/index.d.ts\",\n browser: \"./dist/browser/editors/index.js\",\n node: \"./dist/node/editors/index.mjs\",\n },\n \"./editors/*\": {\n types: \"./dist/types/editors/*/editor.d.ts\",\n browser: \"./dist/browser/editors/*/editor.js\",\n node: \"./dist/node/editors/*/editor.mjs\",\n },\n \"./subgraphs\": {\n types: \"./dist/types/subgraphs/index.d.ts\",\n browser: \"./dist/browser/subgraphs/index.js\",\n node: \"./dist/node/subgraphs/index.mjs\",\n },\n \"./processors\": {\n types: \"./dist/types/processors/index.d.ts\",\n browser: \"./dist/browser/processors/index.js\",\n node: \"./dist/node/processors/index.mjs\",\n },\n // 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\": \"4.1.1\",\n oxfmt: \"0.68.0\",\n oxlint: \"1.70.0\",\n \"oxlint-tsgolint\": \"0.23.0\",\n tailwindcss: \"^4.1.16\",\n typescript: \"^5.9.3\",\n vite: \"^8.0.10\",\n \"vite-tsconfig-paths\": \"6.1.1\",\n vitest: \"4.1.1\",\n} as const;\n\nexport const defaultManifest: Manifest = {\n name: \"\",\n description: \"\",\n category: \"\",\n publisher: {\n name: \"\",\n url: \"\",\n },\n documentModels: [],\n editors: [],\n apps: [],\n subgraphs: [],\n processors: [],\n};\n\nconst DEFAULT_DOCUMENT_MODELS_DIR = \"./document-models\";\nconst DEFAULT_EDITORS_DIR = \"./editors\";\nconst DEFAULT_PROCESSORS_DIR = \"./processors\";\nconst DEFAULT_SUBGRAPHS_DIR = \"./subgraphs\";\nconst DEFAULT_IMPORT_SCRIPTS_DIR = \"./scripts\";\nconst DEFAULT_SKIP_FORMAT = false;\nconst DEFAULT_LOG_LEVEL = \"info\";\n\nexport const DEFAULT_CONFIG: PowerhouseConfig = {\n documentModelsDir: DEFAULT_DOCUMENT_MODELS_DIR,\n editorsDir: DEFAULT_EDITORS_DIR,\n processorsDir: DEFAULT_PROCESSORS_DIR,\n subgraphsDir: DEFAULT_SUBGRAPHS_DIR,\n importScriptsDir: DEFAULT_IMPORT_SCRIPTS_DIR,\n skipFormat: DEFAULT_SKIP_FORMAT,\n logLevel: DEFAULT_LOG_LEVEL,\n auth: {\n enabled: false,\n admins: [],\n },\n};\n","import { readFileSync } from \"node:fs\";\nimport { DEFAULT_CONFIG } from \"../constants.js\";\nimport type { PowerhouseConfig } from \"../types.js\";\n\nexport function getConfig(path = \"./powerhouse.config.json\") {\n let config: PowerhouseConfig = { ...DEFAULT_CONFIG };\n try {\n const configStr = readFileSync(path, \"utf-8\");\n const userConfig = JSON.parse(configStr) as PowerhouseConfig;\n config = { ...config, ...userConfig };\n } catch {\n // console.warn(\"No powerhouse.config.json found, using defaults\");\n }\n\n return config;\n}\n","import spawn from \"cross-spawn\";\n\nexport function spawnAsync(\n command: string,\n args: string[],\n options: {\n cwd?: string;\n env?: NodeJS.ProcessEnv;\n } = {},\n): Promise<string> {\n return new Promise((resolve, reject) => {\n // cross-spawn rather than node:child_process.spawn. On Windows npm, pnpm\n // and yarn are all `.cmd` shims, and since the fix for CVE-2024-27980\n // (Node 18.20.2 / 20.12.2 / 21.7.3 and later) `spawn` refuses to execute\n // `.bat`/`.cmd` unless `shell: true` -- it throws `spawn EINVAL`, and\n // synchronously, so an `error` listener never sees it. Passing\n // `shell: true` instead would hand the arguments to cmd.exe, which strips\n // quotes and splits on shell metacharacters. cross-spawn resolves the shim\n // and escapes the arguments itself, so the call keeps shell-less argument\n // semantics on every platform.\n const child = spawn(command, args, {\n cwd: options.cwd,\n env: options.env,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n });\n\n let stdout = \"\";\n let stderr = \"\";\n\n child.stdout?.on(\"data\", (d: Buffer) => {\n stdout += d.toString();\n });\n\n child.stderr?.on(\"data\", (d: Buffer) => {\n stderr += d.toString();\n });\n\n child.on(\"error\", reject);\n\n child.on(\"close\", (code) => {\n if (code === 0) {\n resolve(stdout.trim());\n } else {\n reject(\n new Error(stderr.trim() || `${command} exited with code ${code}`),\n );\n }\n });\n });\n}\n","import { promises as fs } from \"node:fs\";\nimport { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport {\n DEFAULT_REGISTRY_URL,\n POWERHOUSE_CONFIG_FILE,\n} from \"../clis/constants.js\";\nimport { getConfig } from \"../clis/file-system/get-config.js\";\nimport { spawnAsync } from \"../clis/file-system/spawn-async.js\";\n\nexport { DEFAULT_REGISTRY_URL } from \"../clis/constants.js\";\n\n/**\n * Extract the host portion of a registry URL — what npm uses as the key in\n * `~/.npmrc` for per-registry tokens (e.g. `//registry.vetra.io/`).\n */\nexport function registryAuthKey(registryUrl: string): string {\n const url = new URL(registryUrl);\n // Always trailing slash; npm's lookup is exact-match against the leading\n // path of the registry URL, with `//` prefix and trailing `/`.\n const path = url.pathname.endsWith(\"/\") ? url.pathname : `${url.pathname}/`;\n return `//${url.host}${path}:_authToken`;\n}\n\nexport interface ResolveRegistryUrlOptions {\n /** Explicit registry URL (e.g. from --registry flag). Highest priority. */\n registry?: string;\n /** Project path to read powerhouse.config.json from. */\n projectPath: string;\n /** Environment variables. Defaults to process.env. */\n env?: Record<string, string | undefined>;\n}\n\n/**\n * Resolve the registry URL with priority: flag > env > config > default.\n */\nexport function resolveRegistryUrl(options: ResolveRegistryUrlOptions): string {\n const { registry, projectPath, env = process.env } = options;\n const configPath = join(projectPath, POWERHOUSE_CONFIG_FILE);\n const config = getConfig(configPath);\n\n return (\n registry ??\n env.PH_REGISTRY_URL ??\n config.packageRegistryUrl ??\n DEFAULT_REGISTRY_URL\n );\n}\n\n/**\n * Check if the user is authenticated with the given npm registry.\n * Returns the username on success, throws on failure.\n */\nexport async function checkNpmAuth(registryUrl: string): Promise<string> {\n return spawnAsync(\"npm\", [\"whoami\", \"--registry\", registryUrl]);\n}\n\nexport interface NpmPublishOptions {\n /** Registry URL to publish to. */\n registryUrl: string;\n /** Working directory (project root). */\n cwd: string;\n /** Additional arguments forwarded to npm publish. */\n args?: string[];\n /** Bearer token for the registry. When set, passed via a registry-scoped\n * `_authToken` config flag rather than read from the user's `.npmrc`. */\n authToken?: string;\n}\n\nexport interface NpmPublishResult {\n /** stdout from npm publish. */\n stdout: string;\n}\n\n/**\n * Run `npm publish` against the given registry.\n * Uses spawn with args array to avoid shell injection.\n *\n * When `authToken` is provided, the token is passed via a registry-scoped\n * `--//host/:_authToken=<token>` flag (npm's standard form for per-registry\n * tokens) so we never have to write to `~/.npmrc`.\n */\nexport async function npmPublish(\n options: NpmPublishOptions,\n): Promise<NpmPublishResult> {\n const { registryUrl, cwd, args = [], authToken } = options;\n const tokenArg = authToken\n ? [`--${registryAuthKey(registryUrl)}=${authToken}`]\n : [];\n const npmArgs = [\"publish\", \"--registry\", registryUrl, ...tokenArg, ...args];\n const stdout = await spawnAsync(\"npm\", npmArgs, { cwd });\n return { stdout };\n}\n\n/**\n * Write `_authToken=<token>` for the given registry host into `~/.npmrc`,\n * preserving any other lines. Replaces the existing entry for the same key\n * if present. Returns the absolute path to the npmrc that was written.\n */\nexport async function writeRegistryAuthToken(\n registryUrl: string,\n token: string,\n): Promise<string> {\n const npmrcPath = join(homedir(), \".npmrc\");\n const key = registryAuthKey(registryUrl);\n let existing = \"\";\n try {\n existing = await fs.readFile(npmrcPath, \"utf8\");\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code !== \"ENOENT\") throw err;\n }\n const lines = existing.split(\"\\n\");\n const filtered = lines.filter((line) => !line.startsWith(`${key}=`));\n // Also drop any trailing empties to avoid stacking blank lines on rewrite.\n while (filtered.length && filtered[filtered.length - 1] === \"\")\n filtered.pop();\n filtered.push(`${key}=${token}`);\n await fs.writeFile(npmrcPath, `${filtered.join(\"\\n\")}\\n`, \"utf8\");\n return npmrcPath;\n}\n\nexport interface NpmUnpublishOptions {\n /** Registry URL to unpublish from. */\n registryUrl: string;\n /** Working directory (project root). */\n cwd: string;\n /** Package spec: `<name>` (whole package) or `<name>@<version>` (single version). */\n spec: string;\n /** Additional arguments forwarded to npm unpublish. */\n args?: string[];\n /** Bearer token for the registry (same semantics as `NpmPublishOptions.authToken`). */\n authToken?: string;\n}\n\nexport interface NpmUnpublishResult {\n /** stdout from npm unpublish. */\n stdout: string;\n}\n\n/**\n * Run `npm unpublish` against the given registry.\n * Always passes `--force` because npm otherwise refuses to unpublish packages\n * older than 72h (a public-npmjs safeguard that doesn't apply to private registries).\n */\nexport async function npmUnpublish(\n options: NpmUnpublishOptions,\n): Promise<NpmUnpublishResult> {\n const { registryUrl, cwd, spec, args = [], authToken } = options;\n const tokenArg = authToken\n ? [`--${registryAuthKey(registryUrl)}=${authToken}`]\n : [];\n const npmArgs = [\n \"unpublish\",\n spec,\n \"--registry\",\n registryUrl,\n \"--force\",\n ...tokenArg,\n ...args,\n ];\n const stdout = await spawnAsync(\"npm\", npmArgs, { cwd });\n return { stdout };\n}\n"],"mappings":";;;;;;;AA0CA,MAAa,uBAAuB;AAgCpC,MAAa,yBAAyB;AAOD,KAFb,SAAS,EAES,MAA6B;AAGvE,MAAa,8BAA8B,CACzC,kBACA,iCACD;AA2BD,MAAa,uBAAuB;CAClC,oBAAoB;EAClB,eAAe,CAvBjB,uCAuBgD;EAC9C,cAAc,EAAE;EAChB,cAAc,EAAE;EACjB;CAGD,OAAO;EACL,eAAe,EAAE;EACjB,cAAc,EAAE;EAChB,cAAc,CA7BsB,kCA6BI;EACzC;CACF;AASqC,CACpC,GAAG,6BACH,GAAG,qBAAqB,mBAAmB,cAC5C;AAuMD,MAAa,iBAAmC;CAC9C,mBATkC;CAUlC,YAT0B;CAU1B,eAT6B;CAU7B,cAT4B;CAU5B,kBATiC;CAUjC,YAT0B;CAU1B,UATwB;CAUxB,MAAM;EACJ,SAAS;EACT,QAAQ,EAAE;EACX;CACF;;;AC1VD,SAAgB,UAAU,OAAO,4BAA4B;CAC3D,IAAI,SAA2B,EAAE,GAAG,gBAAgB;AACpD,KAAI;EACF,MAAM,YAAY,aAAa,MAAM,QAAQ;EAC7C,MAAM,aAAa,KAAK,MAAM,UAAU;AACxC,WAAS;GAAE,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