@powerhousedao/reactor-browser 6.2.3-dev.77 → 6.2.3-dev.78

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.
Files changed (43) hide show
  1. package/dist/{attachment-service-D-CKdGUb.d.ts → attachment-service-C_8_poEv.d.ts} +80 -10
  2. package/dist/attachment-service-C_8_poEv.d.ts.map +1 -0
  3. package/dist/{client-Ca_CA8VC.d.ts → client-Cx43uuSO.d.ts} +2 -2
  4. package/dist/client-Cx43uuSO.d.ts.map +1 -0
  5. package/dist/{client-CI-3xGMZ.js → client-D_cBN8L-.js} +90 -2
  6. package/dist/client-D_cBN8L-.js.map +1 -0
  7. package/dist/{dispatch-qujH7vLW.js → dispatch-DLD1E-9L.js} +68 -2
  8. package/dist/dispatch-DLD1E-9L.js.map +1 -0
  9. package/dist/{document-by-id-D1wsYWhq.js → document-by-id-BGTnMWiG.js} +2 -2
  10. package/dist/{document-by-id-D1wsYWhq.js.map → document-by-id-BGTnMWiG.js.map} +1 -1
  11. package/dist/{document-model-modules-DmLQhKvh.js → document-model-modules-D_kT09sv.js} +254 -9
  12. package/dist/document-model-modules-D_kT09sv.js.map +1 -0
  13. package/dist/{document-operations-C4-irgHD.js → document-operations-BdCl99y6.js} +276 -37
  14. package/dist/document-operations-BdCl99y6.js.map +1 -0
  15. package/dist/{global-CgzlPBc3.d.ts → global-C4kaLEPb.d.ts} +140 -54
  16. package/dist/global-C4kaLEPb.d.ts.map +1 -0
  17. package/dist/{index-CrVfRJO1.d.ts → index-CROGY3XV.d.ts} +2 -2
  18. package/dist/{index-CrVfRJO1.d.ts.map → index-CROGY3XV.d.ts.map} +1 -1
  19. package/dist/index.d.ts +50 -36
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +205 -43
  22. package/dist/index.js.map +1 -1
  23. package/dist/src/ai/index.js +2 -2
  24. package/dist/src/analytics/index.js +1 -1
  25. package/dist/src/graphql/client.d.ts +2 -2
  26. package/dist/src/graphql/client.js +1 -1
  27. package/dist/src/graphql-client/entry.d.ts +4 -4
  28. package/dist/src/graphql-client/entry.js +4 -4
  29. package/dist/src/renown/index.d.ts +1 -1
  30. package/dist/{switchboard-0yDJ-f9X.js → switchboard-CqUq5pIZ.js} +10 -48
  31. package/dist/switchboard-CqUq5pIZ.js.map +1 -0
  32. package/dist/{types-DOY-eHEk.d.ts → types-Vb8q55oM.d.ts} +69 -2
  33. package/dist/types-Vb8q55oM.d.ts.map +1 -0
  34. package/package.json +9 -9
  35. package/dist/attachment-service-D-CKdGUb.d.ts.map +0 -1
  36. package/dist/client-CI-3xGMZ.js.map +0 -1
  37. package/dist/client-Ca_CA8VC.d.ts.map +0 -1
  38. package/dist/dispatch-qujH7vLW.js.map +0 -1
  39. package/dist/document-model-modules-DmLQhKvh.js.map +0 -1
  40. package/dist/document-operations-C4-irgHD.js.map +0 -1
  41. package/dist/global-CgzlPBc3.d.ts.map +0 -1
  42. package/dist/switchboard-0yDJ-f9X.js.map +0 -1
  43. package/dist/types-DOY-eHEk.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- import { g as useSelectedDriveSafe } from "../../document-model-modules-DmLQhKvh.js";
2
- import { a as getBrowserSyncManager, h as useSelectedNode, i as createSwitchboardSchemaTool, l as useSelectedDocumentId, n as SWITCHBOARD_INTROSPECTION_QUERY, o as resolveDriveSwitchboard, r as SWITCHBOARD_SCHEMA_TOOL_NAME, s as summarizeIntrospectionSchema, t as GQL_CHANNEL_SUFFIX } from "../../switchboard-0yDJ-f9X.js";
1
+ import { g as useSelectedDriveSafe } from "../../document-model-modules-D_kT09sv.js";
2
+ import { a as getBrowserSyncManager, h as useSelectedNode, i as createSwitchboardSchemaTool, l as useSelectedDocumentId, n as SWITCHBOARD_INTROSPECTION_QUERY, o as resolveDriveSwitchboard, r as SWITCHBOARD_SCHEMA_TOOL_NAME, s as summarizeIntrospectionSchema, t as GQL_CHANNEL_SUFFIX } from "../../switchboard-CqUq5pIZ.js";
3
3
  import { useCallback, useEffect, useRef, useState, useSyncExternalStore } from "react";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
  import { isFileNode, isFolderNode } from "@powerhousedao/shared/document-drive";
@@ -1,5 +1,5 @@
1
1
  import { i as getGlobal, n as getAnalyticsStore, t as createAnalyticsStore } from "../../store-DInXcjal.js";
2
- import { t as useDocumentById } from "../../document-by-id-D1wsYWhq.js";
2
+ import { t as useDocumentById } from "../../document-by-id-BGTnMWiG.js";
3
3
  import { useEffect } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { childLogger } from "document-model";
@@ -1,4 +1,4 @@
1
- import { c as ReactorGraphQLClient, l as RunDocumentOptions } from "../../types-DOY-eHEk.js";
2
- import { t as createClient } from "../../client-Ca_CA8VC.js";
1
+ import { c as ReactorGraphQLClient, l as RunDocumentOptions } from "../../types-Vb8q55oM.js";
2
+ import { t as createClient } from "../../client-Cx43uuSO.js";
3
3
  export { type ReactorGraphQLClient, type RunDocumentOptions, createClient };
4
4
  export {};
@@ -1,2 +1,2 @@
1
- import { t as createClient } from "../../client-CI-3xGMZ.js";
1
+ import { t as createClient } from "../../client-D_cBN8L-.js";
2
2
  export { createClient };
@@ -1,5 +1,5 @@
1
- import { St as OperationsCacheEntry, dt as IReactorBrowserClient, xt as IOperationCache } from "../../global-CgzlPBc3.js";
2
- import { $ as prepareSignedActions, At as ambientRenownTokenProvider, B as DocumentChangesEventPayload, Ct as describeGraphQLDocument, Dt as GraphQLWrongBackendError, Et as GraphQLOperationNotSupportedError, F as useDocuments, Ft as isoStringFromDateTime, G as createJobChangesSocket, H as IJobChangesSocket, I as useGetDocument, It as phDocumentFromGetDocument, J as startDocumentChangesSubscription, K as isAuthRefusalClose, L as useGetDocumentAsync, Lt as phDocumentFromMutation, M as useDocument, Mt as GetDocumentQueryFields, N as useDocumentCache, Nt as GetDocumentQueryResult, Ot as JobFailedError, P as useDocumentSafe, Pt as RevisionsListSelection, Q as resolveDocumentModelModule, R as useGetDocuments, Rt as revisionMapFromRevisionsList, St as TypedGraphQLDocument, T as useReactorClient, Tt as BatchJobFailedError, U as JobChangesEventPayload, V as DocumentChangesSubscriptionOptions, W as JobChangesSocketOptions, X as StaticPackageManager, Y as subscriptionsUrlFromGraphqlUrl, Z as packageFromDocumentModels, _t as isGraphQLReactorClient, a as DocumentOperationsState, an as IDLE_OPERATIONS_ENTRY, at as MutateDocumentWithOperationsDocument, b as setReactorClient, bt as SubgraphSdkFactory, c as useDocumentModelModuleById, ct as ReactorOperationFieldsFragmentDoc, d as UseDispatchResult, dt as ensurePHEventHandlers, et as signStampedAction, ft as useSwitchboardClient, gt as findIsServableOverGraphQL, ht as GraphQLReactorClientOptions, i as DocumentOperationsResult, it as GetDocumentAtConsistencyVariables, j as setDocumentCache, jt as makeAuthMiddleware, kt as BearerTokenProvider, l as useDocumentModelModules, ln as isOperationCache, lt as GraphQLReactorProvider, mt as GraphQLReactorClient, nt as GetDocumentAtConsistencyDocument, o as UseDocumentOperationsOptions, ot as MutateDocumentWithOperationsResult, p as useDispatch, pt as DriveIdCall, q as makeAuthConnectionParams, r as useAttachmentService, rn as DocumentCache, rt as GetDocumentAtConsistencyResult, s as useDocumentOperations, sn as addPromiseState, st as MutateDocumentWithOperationsVariables, tt as stampAction, u as DispatchFn, un as readPromiseState, ut as GraphQLReactorProviderProps, vt as viewFilterInputFromViewFilter, wt as subgraphUrlFromGraphqlUrl, xt as SubgraphSdkRegistry, yt as GraphQLRequestOptions, z as ConnectionParams } from "../../attachment-service-D-CKdGUb.js";
3
- import { A as SdkFunctionWrapper } from "../../types-DOY-eHEk.js";
4
- export { BatchJobFailedError, BearerTokenProvider, ConnectionParams, type DispatchFn, DocumentCache, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, type DocumentOperationsResult, type DocumentOperationsState, DriveIdCall, GetDocumentAtConsistencyDocument, GetDocumentAtConsistencyResult, GetDocumentAtConsistencyVariables, GetDocumentQueryFields, GetDocumentQueryResult, GraphQLOperationNotSupportedError, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLRequestOptions, GraphQLWrongBackendError, IDLE_OPERATIONS_ENTRY, IJobChangesSocket, type IOperationCache, type IReactorBrowserClient, JobChangesEventPayload, JobChangesSocketOptions, JobFailedError, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, type OperationsCacheEntry, ReactorOperationFieldsFragmentDoc, RevisionsListSelection, type SdkFunctionWrapper, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, TypedGraphQLDocument, type UseDispatchResult, type UseDocumentOperationsOptions, addPromiseState, ambientRenownTokenProvider, createJobChangesSocket, describeGraphQLDocument, ensurePHEventHandlers, findIsServableOverGraphQL, isAuthRefusalClose, isGraphQLReactorClient, isOperationCache, isoStringFromDateTime, makeAuthConnectionParams, makeAuthMiddleware, packageFromDocumentModels, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setDocumentCache, setReactorClient, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, useAttachmentService, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useGetDocument, useGetDocumentAsync, useGetDocuments, useReactorClient, useSwitchboardClient, viewFilterInputFromViewFilter };
1
+ import { It as IReactorBrowserClient, Kt as IOperationCache, qt as OperationsCacheEntry } from "../../global-C4kaLEPb.js";
2
+ import { $ as prepareSignedActions, At as JobFailedError, B as DocumentChangesEventPayload, Bt as RevisionsListSelection, Ct as SubgraphSdkRegistry, Dt as BatchJobFailedError, Et as subgraphUrlFromGraphqlUrl, F as useDocuments, Ft as BearerTokenProvider, G as createJobChangesSocket, H as IJobChangesSocket, Ht as phDocumentFromGetDocument, I as useGetDocument, It as ambientRenownTokenProvider, J as startDocumentChangesSubscription, K as isAuthRefusalClose, L as useGetDocumentAsync, Lt as makeAuthMiddleware, M as useDocument, Mt as GraphQLDriveNodeSource, N as useDocumentCache, Nt as GraphQLDriveReadClient, Ot as GraphQLOperationNotSupportedError, P as useDocumentSafe, Pt as toLegacyNode, Q as resolveDocumentModelModule, R as useGetDocuments, Rt as GetDocumentQueryFields, St as SubgraphSdkFactory, T as useReactorClient, Tt as describeGraphQLDocument, U as JobChangesEventPayload, Ut as phDocumentFromMutation, V as DocumentChangesSubscriptionOptions, Vt as isoStringFromDateTime, W as JobChangesSocketOptions, Wt as revisionMapFromRevisionsList, X as StaticPackageManager, Y as subscriptionsUrlFromGraphqlUrl, Z as packageFromDocumentModels, _n as readPromiseState, _t as createGraphQLDriveNodeSource, a as DocumentOperationsState, at as MutateDocumentWithOperationsDocument, b as setReactorClient, bt as viewFilterInputFromViewFilter, c as useDocumentModelModuleById, ct as ReactorOperationFieldsFragmentDoc, d as UseDispatchResult, dt as ensurePHEventHandlers, et as signStampedAction, fn as IDLE_OPERATIONS_ENTRY, ft as useSwitchboardClient, gn as isOperationCache, gt as GraphQLReactorReadClient, ht as GraphQLReactorClientOptions, i as DocumentOperationsResult, it as GetDocumentAtConsistencyVariables, j as setDocumentCache, jt as DriveNodeQueries, kt as GraphQLWrongBackendError, l as useDocumentModelModules, ln as DocumentCache, lt as GraphQLReactorProvider, mn as addPromiseState, mt as GraphQLReactorClient, nt as GetDocumentAtConsistencyDocument, o as UseDocumentOperationsOptions, ot as MutateDocumentWithOperationsResult, p as useDispatch, pt as DriveIdCall, q as makeAuthConnectionParams, r as useAttachmentService, rt as GetDocumentAtConsistencyResult, s as useDocumentOperations, st as MutateDocumentWithOperationsVariables, tt as stampAction, u as DispatchFn, ut as GraphQLReactorProviderProps, vt as findIsServableOverGraphQL, wt as TypedGraphQLDocument, xt as GraphQLRequestOptions, yt as isGraphQLReactorClient, z as ConnectionParams, zt as GetDocumentQueryResult } from "../../attachment-service-C_8_poEv.js";
3
+ import { j as SdkFunctionWrapper } from "../../types-Vb8q55oM.js";
4
+ export { BatchJobFailedError, BearerTokenProvider, ConnectionParams, type DispatchFn, DocumentCache, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, type DocumentOperationsResult, type DocumentOperationsState, DriveIdCall, DriveNodeQueries, GetDocumentAtConsistencyDocument, GetDocumentAtConsistencyResult, GetDocumentAtConsistencyVariables, GetDocumentQueryFields, GetDocumentQueryResult, GraphQLDriveNodeSource, GraphQLDriveReadClient, GraphQLOperationNotSupportedError, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLReactorReadClient, GraphQLRequestOptions, GraphQLWrongBackendError, IDLE_OPERATIONS_ENTRY, IJobChangesSocket, type IOperationCache, type IReactorBrowserClient, JobChangesEventPayload, JobChangesSocketOptions, JobFailedError, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, type OperationsCacheEntry, ReactorOperationFieldsFragmentDoc, RevisionsListSelection, type SdkFunctionWrapper, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, TypedGraphQLDocument, type UseDispatchResult, type UseDocumentOperationsOptions, addPromiseState, ambientRenownTokenProvider, createGraphQLDriveNodeSource, createJobChangesSocket, describeGraphQLDocument, ensurePHEventHandlers, findIsServableOverGraphQL, isAuthRefusalClose, isGraphQLReactorClient, isOperationCache, isoStringFromDateTime, makeAuthConnectionParams, makeAuthMiddleware, packageFromDocumentModels, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setDocumentCache, setReactorClient, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, toLegacyNode, useAttachmentService, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useGetDocument, useGetDocumentAsync, useGetDocuments, useReactorClient, useSwitchboardClient, viewFilterInputFromViewFilter };
5
5
  export {};
@@ -1,4 +1,4 @@
1
- import { _ as isOperationCache, a as useDocument, c as useDocuments, d as useGetDocuments, f as DocumentCache, h as addPromiseState, i as setDocumentCache, l as useGetDocument, m as IDLE_OPERATIONS_ENTRY, n as useDispatch, o as useDocumentCache, s as useDocumentSafe, u as useGetDocumentAsync, v as readPromiseState } from "../../dispatch-qujH7vLW.js";
2
- import { L as ambientRenownTokenProvider, R as makeAuthMiddleware, n as useDocumentModelModules, t as useDocumentModelModuleById } from "../../document-model-modules-DmLQhKvh.js";
3
- import { $r as prepareSignedActions, Br as isGraphQLReactorClient, Gi as setReactorClient, Gr as startDocumentChangesSubscription, Hr as createJobChangesSocket, I as useAttachmentService, Jr as describeGraphQLDocument, Kr as subscriptionsUrlFromGraphqlUrl, Qr as resolveDocumentModelModule, Rr as GraphQLReactorClient, Ur as isAuthRefusalClose, Vr as viewFilterInputFromViewFilter, Wr as makeAuthConnectionParams, Xi as useReactorClient, Xr as StaticPackageManager, Yr as subgraphUrlFromGraphqlUrl, Zr as packageFromDocumentModels, ai as BatchJobFailedError, ci as JobFailedError, di as phDocumentFromMutation, ei as signStampedAction, fi as revisionMapFromRevisionsList, i as useSwitchboardClient, ii as ReactorOperationFieldsFragmentDoc, li as isoStringFromDateTime, n as GraphQLReactorProvider, ni as GetDocumentAtConsistencyDocument, oi as GraphQLOperationNotSupportedError, qr as SubgraphSdkRegistry, r as ensurePHEventHandlers, ri as MutateDocumentWithOperationsDocument, si as GraphQLWrongBackendError, t as useDocumentOperations, ti as stampAction, ui as phDocumentFromGetDocument, zr as findIsServableOverGraphQL } from "../../document-operations-C4-irgHD.js";
4
- export { BatchJobFailedError, DocumentCache, GetDocumentAtConsistencyDocument, GraphQLOperationNotSupportedError, GraphQLReactorClient, GraphQLReactorProvider, GraphQLWrongBackendError, IDLE_OPERATIONS_ENTRY, JobFailedError, MutateDocumentWithOperationsDocument, ReactorOperationFieldsFragmentDoc, StaticPackageManager, SubgraphSdkRegistry, addPromiseState, ambientRenownTokenProvider, createJobChangesSocket, describeGraphQLDocument, ensurePHEventHandlers, findIsServableOverGraphQL, isAuthRefusalClose, isGraphQLReactorClient, isOperationCache, isoStringFromDateTime, makeAuthConnectionParams, makeAuthMiddleware, packageFromDocumentModels, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setDocumentCache, setReactorClient, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, useAttachmentService, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useGetDocument, useGetDocumentAsync, useGetDocuments, useReactorClient, useSwitchboardClient, viewFilterInputFromViewFilter };
1
+ import { a as useDocument, c as useDocuments, d as useGetDocuments, f as DocumentCache, g as addPromiseState, h as IDLE_OPERATIONS_ENTRY, i as setDocumentCache, l as useGetDocument, n as useDispatch, o as useDocumentCache, s as useDocumentSafe, u as useGetDocumentAsync, v as isOperationCache, y as readPromiseState } from "../../dispatch-DLD1E-9L.js";
2
+ import { $ as makeAuthMiddleware, Q as ambientRenownTokenProvider, n as useDocumentModelModules, t as useDocumentModelModuleById } from "../../document-model-modules-D_kT09sv.js";
3
+ import { $r as resolveDocumentModelModule, Br as findIsServableOverGraphQL, Gr as makeAuthConnectionParams, Hr as viewFilterInputFromViewFilter, I as useAttachmentService, Jr as SubgraphSdkRegistry, Kr as startDocumentChangesSubscription, Qr as packageFromDocumentModels, Rr as GraphQLReactorClient, Ur as createJobChangesSocket, Vr as isGraphQLReactorClient, Wr as isAuthRefusalClose, Xr as subgraphUrlFromGraphqlUrl, Yi as setReactorClient, Yr as describeGraphQLDocument, Zr as StaticPackageManager, ai as ReactorOperationFieldsFragmentDoc, ci as GraphQLWrongBackendError, di as GraphQLDriveReadClient, ea as useReactorClient, ei as prepareSignedActions, fi as toLegacyNode, gi as revisionMapFromRevisionsList, hi as phDocumentFromMutation, i as useSwitchboardClient, ii as MutateDocumentWithOperationsDocument, li as JobFailedError, mi as phDocumentFromGetDocument, n as GraphQLReactorProvider, ni as stampAction, oi as BatchJobFailedError, pi as isoStringFromDateTime, qr as subscriptionsUrlFromGraphqlUrl, r as ensurePHEventHandlers, ri as GetDocumentAtConsistencyDocument, si as GraphQLOperationNotSupportedError, t as useDocumentOperations, ti as signStampedAction, ui as GraphQLDriveNodeSource, zr as createGraphQLDriveNodeSource } from "../../document-operations-BdCl99y6.js";
4
+ export { BatchJobFailedError, DocumentCache, GetDocumentAtConsistencyDocument, GraphQLDriveNodeSource, GraphQLDriveReadClient, GraphQLOperationNotSupportedError, GraphQLReactorClient, GraphQLReactorProvider, GraphQLWrongBackendError, IDLE_OPERATIONS_ENTRY, JobFailedError, MutateDocumentWithOperationsDocument, ReactorOperationFieldsFragmentDoc, StaticPackageManager, SubgraphSdkRegistry, addPromiseState, ambientRenownTokenProvider, createGraphQLDriveNodeSource, createJobChangesSocket, describeGraphQLDocument, ensurePHEventHandlers, findIsServableOverGraphQL, isAuthRefusalClose, isGraphQLReactorClient, isOperationCache, isoStringFromDateTime, makeAuthConnectionParams, makeAuthMiddleware, packageFromDocumentModels, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setDocumentCache, setReactorClient, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, toLegacyNode, useAttachmentService, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useGetDocument, useGetDocumentAsync, useGetDocuments, useReactorClient, useSwitchboardClient, viewFilterInputFromViewFilter };
@@ -1,3 +1,3 @@
1
- import { A as RENOWN_RETURN_URL_STRIPPED_PARAMS, B as UserIcon, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as ChevronDownIcon, G as RenownLoginButtonProps, H as RenownUserButtonMenuItem, I as CopyIcon, K as RenownAuthButton, L as DisconnectIcon, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, N as initConnectCrypto, O as RENOWN_CHAIN_ID, P as initRenownCrypto, Q as useRenown, R as RenownLogo, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownUserButtonProps, V as RenownUserButton, W as RenownLoginButton, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthResolution, b as RenownInitialUserProviderProps, c as Renown, ct as useRenownAuthAsync, d as useRenownInit, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthAsync, j as RENOWN_URL, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as openRenown, o as RenownProvider, ot as RenownAuthStatus, p as RenownSessionCookieState, q as RenownAuthButtonProps, r as useRenownLoginMethods, rt as RenownAuth, s as RenownProviderProps, st as useRenownAuth, t as useRenownWalletAdapter, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as SpinnerIcon } from "../../index-CrVfRJO1.js";
1
+ import { A as RENOWN_RETURN_URL_STRIPPED_PARAMS, B as UserIcon, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as ChevronDownIcon, G as RenownLoginButtonProps, H as RenownUserButtonMenuItem, I as CopyIcon, K as RenownAuthButton, L as DisconnectIcon, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, N as initConnectCrypto, O as RENOWN_CHAIN_ID, P as initRenownCrypto, Q as useRenown, R as RenownLogo, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownUserButtonProps, V as RenownUserButton, W as RenownLoginButton, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthResolution, b as RenownInitialUserProviderProps, c as Renown, ct as useRenownAuthAsync, d as useRenownInit, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthAsync, j as RENOWN_URL, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as openRenown, o as RenownProvider, ot as RenownAuthStatus, p as RenownSessionCookieState, q as RenownAuthButtonProps, r as useRenownLoginMethods, rt as RenownAuth, s as RenownProviderProps, st as useRenownAuth, t as useRenownWalletAdapter, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as SpinnerIcon } from "../../index-CROGY3XV.js";
2
2
  export { CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChevronDownIcon, CopyIcon, DOMAIN_TYPE, DisconnectIcon, ISSUER_TYPE, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_RETURN_URL_STRIPPED_PARAMS, RENOWN_URL, Renown, type RenownAuth, type RenownAuthAsync, RenownAuthButton, type RenownAuthButtonProps, type RenownAuthResolution, type RenownAuthStatus, type RenownInitOptions, type RenownInitialAuth, RenownInitialUserProvider, type RenownInitialUserProviderProps, RenownLoginButton, type RenownLoginButtonProps, type RenownLoginMethod, RenownLogo, type RenownProps, RenownProvider, type RenownProviderProps, type RenownSessionCookieOptions, type RenownSessionCookieState, RenownUserButton, type RenownUserButtonMenuItem, type RenownUserButtonProps, RenownWalletProvider, type RenownWalletProviderProps, SpinnerIcon, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, initConnectCrypto, initRenownCrypto, openRenown, useRenown, useRenownAuth, useRenownAuthAsync, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownSessionCookie, useRenownSessionSynced, useRenownWalletAdapter };
3
3
  export {};
@@ -1,60 +1,22 @@
1
1
  import { c as getPHStore } from "./make-ph-event-functions-B5GU5xcR.js";
2
- import { A as NoSelectedDocumentError, k as DocumentTypeMismatchError } from "./dispatch-qujH7vLW.js";
3
- import { L as ambientRenownTokenProvider, O as useSelectedNodeId, P as useDriveContext, g as useSelectedDriveSafe, t as useDocumentModelModuleById } from "./document-model-modules-DmLQhKvh.js";
4
- import { n as useDocumentsByIds, t as useDocumentById } from "./document-by-id-D1wsYWhq.js";
2
+ import { A as DocumentTypeMismatchError, j as NoSelectedDocumentError } from "./dispatch-DLD1E-9L.js";
3
+ import { G as useDriveNode, O as useSelectedNodeId, P as useDriveContext, Q as ambientRenownTokenProvider, h as useSelectedDriveId, t as useDocumentModelModuleById } from "./document-model-modules-D_kT09sv.js";
4
+ import { t as useDocumentById } from "./document-by-id-BGTnMWiG.js";
5
5
  import { createContext, useContext, useMemo } from "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
7
  import { DriveCollectionId, ModuleNotFoundError } from "@powerhousedao/reactor";
8
8
  import { isFileNode } from "@powerhousedao/shared/document-drive";
9
9
  import { z } from "zod";
10
- //#region src/utils/nodes.ts
11
- /** Sorts nodes by name. */
12
- function sortNodesByName(nodes) {
13
- return nodes.toSorted((a, b) => a.name.localeCompare(b.name));
14
- }
15
- /** Returns whether a node is a file. */
16
- function isFileNodeKind(node) {
17
- if (!node) return false;
18
- return node.kind.toUpperCase() === "FILE";
19
- }
20
- /** Returns whether a node is a folder. */
21
- function isFolderNodeKind(node) {
22
- if (!node) return false;
23
- return node.kind.toUpperCase() === "FOLDER";
24
- }
25
- //#endregion
26
- //#region src/hooks/items-in-selected-drive.ts
27
- /** Returns the nodes in the selected drive. */
28
- function useNodesInSelectedDrive() {
29
- const [selectedDrive] = useSelectedDriveSafe();
30
- return selectedDrive?.state.global.nodes;
31
- }
32
- /** Returns the file nodes in the selected drive. */
33
- function useFileNodesInSelectedDrive() {
34
- return useNodesInSelectedDrive()?.filter((n) => isFileNodeKind(n));
35
- }
36
- /** Returns the folder nodes in the selected drive. */
37
- function useFolderNodesInSelectedDrive() {
38
- return useNodesInSelectedDrive()?.filter((n) => isFolderNodeKind(n));
39
- }
40
- /** Returns the documents in the selected drive. */
41
- function useDocumentsInSelectedDrive() {
42
- const fileNodeIds = useFileNodesInSelectedDrive()?.map((node) => node.id);
43
- return useDocumentsByIds(fileNodeIds);
44
- }
45
- /** Returns the document types supported by the selected drive, as defined by the document model documents present in the drive */
46
- function useDocumentTypesInSelectedDrive() {
47
- return (useDocumentsInSelectedDrive()?.filter(isDocumentModelDocument))?.map((doc) => doc.state.global.id);
48
- }
49
- function isDocumentModelDocument(document) {
50
- return document.header.documentType === "powerhouse/document-model";
10
+ //#region src/hooks/node-by-id.ts
11
+ /** Returns a node in the selected drive by id. */
12
+ function useNodeById(id) {
13
+ return useDriveNode(useSelectedDriveId(), id);
51
14
  }
52
15
  //#endregion
53
16
  //#region src/hooks/selected-node.ts
54
17
  /** Returns the selected node. */
55
18
  function useSelectedNode() {
56
- const selectedNodeId = useSelectedNodeId();
57
- return useNodesInSelectedDrive()?.find((n) => n.id === selectedNodeId);
19
+ return useNodeById(useSelectedNodeId());
58
20
  }
59
21
  //#endregion
60
22
  //#region src/hooks/document-of-type.ts
@@ -354,6 +316,6 @@ function createSwitchboardSchemaTool(deps) {
354
316
  };
355
317
  }
356
318
  //#endregion
357
- export { sortNodesByName as C, isFolderNodeKind as S, useDocumentsInSelectedDrive as _, getBrowserSyncManager as a, useNodesInSelectedDrive as b, useSelectedDocument as c, useSelectedDocumentSafe as d, EditorDocumentProvider as f, useDocumentTypesInSelectedDrive as g, useSelectedNode as h, createSwitchboardSchemaTool as i, useSelectedDocumentId as l, useDocumentOfType as m, SWITCHBOARD_INTROSPECTION_QUERY as n, resolveDriveSwitchboard as o, useEditorDocumentContext as p, SWITCHBOARD_SCHEMA_TOOL_NAME as r, summarizeIntrospectionSchema as s, GQL_CHANNEL_SUFFIX as t, useSelectedDocumentOfType as u, useFileNodesInSelectedDrive as v, isFileNodeKind as x, useFolderNodesInSelectedDrive as y };
319
+ export { getBrowserSyncManager as a, useSelectedDocument as c, useSelectedDocumentSafe as d, EditorDocumentProvider as f, useNodeById as g, useSelectedNode as h, createSwitchboardSchemaTool as i, useSelectedDocumentId as l, useDocumentOfType as m, SWITCHBOARD_INTROSPECTION_QUERY as n, resolveDriveSwitchboard as o, useEditorDocumentContext as p, SWITCHBOARD_SCHEMA_TOOL_NAME as r, summarizeIntrospectionSchema as s, GQL_CHANNEL_SUFFIX as t, useSelectedDocumentOfType as u };
358
320
 
359
- //# sourceMappingURL=switchboard-0yDJ-f9X.js.map
321
+ //# sourceMappingURL=switchboard-CqUq5pIZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switchboard-CqUq5pIZ.js","names":[],"sources":["../src/hooks/node-by-id.ts","../src/hooks/selected-node.ts","../src/hooks/document-of-type.ts","../src/hooks/editor-context.tsx","../src/hooks/selected-document.ts","../src/ai/switchboard.ts"],"sourcesContent":["import type { Node } from \"@powerhousedao/shared/document-drive\";\nimport { useDriveNode } from \"./drive-nodes.js\";\nimport { useSelectedDriveId } from \"./selected-drive.js\";\n\n/** Returns a node in the selected drive by id. */\nexport function useNodeById(id: string | null | undefined): Node | undefined {\n return useDriveNode(useSelectedDriveId(), id);\n}\n","import type { Node } from \"@powerhousedao/shared/document-drive\";\nimport { useNodeById } from \"./node-by-id.js\";\nimport { useSelectedNodeId } from \"./set-selected-node.js\";\n\nexport {\n addResetSelectedNodeEventHandler,\n addSelectedNodeIdEventHandler,\n getNodeTarget,\n useNodeTarget,\n preloadNode,\n setSelectedNode,\n setSelectedNodeId,\n useOpenNode,\n usePreloadNode,\n useSetSelectedNode,\n} from \"./set-selected-node.js\";\nexport { addSetSelectedNodeOnPopStateEventHandler } from \"./sync-selection.js\";\n\n/** Returns the selected node. */\nexport function useSelectedNode(): Node | undefined {\n return useNodeById(useSelectedNodeId());\n}\n","import { ModuleNotFoundError } from \"@powerhousedao/reactor\";\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport type { Action, PHDocument } from \"@powerhousedao/shared/document-model\";\nimport { DocumentTypeMismatchError } from \"../errors.js\";\nimport { useDocumentById } from \"./document-by-id.js\";\nimport { useDocumentModelModuleById } from \"./document-model-modules.js\";\n\n/** Returns a document of a specific type, throws an error if the found document has a different type */\nexport function useDocumentOfType<\n TDocument extends PHDocument,\n TAction extends Action,\n>(\n documentId: string | null | undefined,\n documentType: string | null | undefined,\n) {\n const [document, dispatch] = useDocumentById(documentId);\n const documentModelModule = useDocumentModelModuleById(documentType);\n\n if (!documentId || !documentType) return [];\n\n if (!document) {\n throw new Error(`Document not found: ${documentId}`);\n }\n if (!documentModelModule) {\n throw new ModuleNotFoundError(documentType);\n }\n\n if (document.header.documentType !== documentType) {\n throw new DocumentTypeMismatchError(\n documentId,\n documentType,\n document.header.documentType,\n );\n }\n\n return [document, dispatch] as [TDocument, DocumentDispatch<TAction>];\n}\n","import type {\n DocumentDispatch,\n PHDocument,\n} from \"@powerhousedao/shared/document-model\";\nimport type { ReactNode } from \"react\";\nimport { createContext, useContext, useMemo } from \"react\";\n\n/** The document an editor is rendered with, and a dispatch bound to it. */\nexport type EditorDocumentContextValue = readonly [\n PHDocument,\n DocumentDispatch,\n];\n\nconst EditorDocumentContext = createContext<\n EditorDocumentContextValue | undefined\n>(undefined);\n\n/** Hosts render an editor inside this, with the same `document` and `dispatch`\n * as its props; `useSelected*Document` hooks below read them. */\nexport function EditorDocumentProvider(props: {\n document: PHDocument;\n dispatch: DocumentDispatch;\n children: ReactNode;\n}) {\n const { document, dispatch } = props;\n const value = useMemo(\n () => [document, dispatch] as const,\n [document, dispatch],\n );\n return (\n <EditorDocumentContext.Provider value={value}>\n {props.children}\n </EditorDocumentContext.Provider>\n );\n}\n\n/** The nearest editor's document and dispatch, or undefined outside one. */\nexport function useEditorDocumentContext() {\n return useContext(EditorDocumentContext);\n}\n","import { ModuleNotFoundError } from \"@powerhousedao/reactor\";\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport { isFileNode } from \"@powerhousedao/shared/document-drive\";\nimport type { Action, PHDocument } from \"@powerhousedao/shared/document-model\";\nimport {\n DocumentTypeMismatchError,\n NoSelectedDocumentError,\n} from \"../errors.js\";\nimport type { DispatchFn, UseDispatchResult } from \"./dispatch.js\";\nimport { useDocumentById } from \"./document-by-id.js\";\nimport { useDocumentModelModuleById } from \"./document-model-modules.js\";\nimport { useDocumentOfType } from \"./document-of-type.js\";\nimport { useDriveContext } from \"./drive-context.js\";\nimport { useEditorDocumentContext } from \"./editor-context.js\";\nimport { useSelectedNode } from \"./selected-node.js\";\n\n/** Returns the selected document id: the editor's document, else the drive\n * app's open document, else the app's selection. */\nexport function useSelectedDocumentId(): string | undefined {\n const editor = useEditorDocumentContext();\n const drive = useDriveContext();\n const selectedNode = useSelectedNode();\n if (editor) return editor[0].header.id;\n // The drive may not list a document the route opened yet.\n if (drive?.nodeId && !drive.folder) {\n return selectedNode && !isFileNode(selectedNode) ? undefined : drive.nodeId;\n }\n return selectedNode && isFileNode(selectedNode) ? selectedNode.id : undefined;\n}\n\n/** Returns the selected document. */\nexport function useSelectedDocument(): readonly [\n PHDocument,\n DispatchFn<Action>,\n] {\n const [document, dispatch] = useSelectedDocumentSafe();\n if (!document) {\n throw new NoSelectedDocumentError();\n }\n return [document, dispatch] as const;\n}\n\n/** Returns the selected document: the editor's, else the app's selection. */\nexport function useSelectedDocumentSafe(): UseDispatchResult<\n PHDocument,\n Action\n> {\n const editor = useEditorDocumentContext();\n const selectedDocumentId = useSelectedDocumentId();\n const selected = useDocumentById(editor ? null : selectedDocumentId);\n return editor ?? selected;\n}\n\n/** Returns the selected document of a specific type, throws an error if the found document has a different type */\nexport function useSelectedDocumentOfType(\n documentType: null | undefined,\n): never[];\nexport function useSelectedDocumentOfType<\n TDocument extends PHDocument,\n TAction extends Action,\n>(documentType: string): [TDocument, DocumentDispatch<TAction>];\nexport function useSelectedDocumentOfType<\n TDocument extends PHDocument,\n TAction extends Action,\n>(\n documentType: string | null | undefined,\n): never[] | [TDocument, DocumentDispatch<TAction>] {\n const editor = useEditorDocumentContext();\n const documentId = useSelectedDocumentId();\n // Called on every render; without a type, or in an editor, it reads no document.\n const result = useDocumentOfType<TDocument, TAction>(\n documentType && !editor ? documentId : null,\n documentType,\n );\n const documentModelModule = useDocumentModelModuleById(documentType);\n\n if (!documentType) {\n return [];\n }\n if (editor) {\n const [document, dispatch] = editor;\n if (!documentModelModule) {\n throw new ModuleNotFoundError(documentType);\n }\n if (document.header.documentType !== documentType) {\n throw new DocumentTypeMismatchError(\n document.header.id,\n documentType,\n document.header.documentType,\n );\n }\n return [document as TDocument, dispatch];\n }\n if (!documentId) {\n throw new NoSelectedDocumentError();\n }\n return result;\n}\n","import { getPHStore } from \"../hooks/ph-store.js\";\nimport { DriveCollectionId, type ISyncManager } from \"@powerhousedao/reactor\";\nimport { z } from \"zod\";\nimport { ambientRenownTokenProvider } from \"../graphql-client/auth.js\";\nimport type { AiToolDescriptor } from \"./types.js\";\n\n/**\n * The switchboard serving a remote drive: the base URL the browser talks to\n * and its GraphQL supergraph endpoint.\n */\nexport interface DriveSwitchboard {\n /** Switchboard base URL (e.g. `http://localhost:4001`). */\n switchboardUrl: string;\n /** GraphQL supergraph endpoint (`<base>/graphql`). */\n graphqlUrl: string;\n}\n\n/**\n * Reads the tab-side sync manager from the browser global. Returns\n * `undefined` in non-browser environments or before the reactor client\n * module is initialized.\n */\nexport function getBrowserSyncManager(): ISyncManager | undefined {\n if (typeof window === \"undefined\") {\n return undefined;\n }\n return getPHStore()?.reactorClientModule?.reactorModule?.syncModule\n ?.syncManager;\n}\n\n/** Suffix of the per-drive GraphQL channel endpoint the switchboard serves. */\nexport const GQL_CHANNEL_SUFFIX = \"/graphql/r\";\n\n/**\n * Resolves the switchboard that serves a drive, if any.\n *\n * Every remote drive stores its switchboard's exact GraphQL channel\n * endpoint in its sync remote — `channelConfig = { type: \"gql\",\n * parameters: { url: \"<origin>/graphql/r\" } }` — and the switchboard base\n * is that URL minus the `/graphql/r` suffix. Deriving it per drive (rather\n * than from a global setting) is what keeps multi-switchboard deployments\n * correct. Drives that are not synced to a remote switchboard (local\n * drives, other channel types, unexpected shapes) return `undefined`.\n */\nexport function resolveDriveSwitchboard(\n driveId: string | undefined,\n syncManager?: ISyncManager,\n): DriveSwitchboard | undefined {\n const manager = syncManager ?? getBrowserSyncManager();\n if (!driveId || !manager) {\n return undefined;\n }\n const collectionId = DriveCollectionId.forDrive(driveId);\n const remote = manager\n .list()\n .find((r) => r.meta.collectionId.equals(collectionId));\n if (!remote) {\n return undefined;\n }\n const { channelConfig } = remote.meta;\n if (channelConfig.type !== \"gql\") {\n return undefined;\n }\n const url = channelConfig.parameters.url;\n if (typeof url !== \"string\" || !url.endsWith(GQL_CHANNEL_SUFFIX)) {\n return undefined;\n }\n const switchboardUrl = url.slice(0, -GQL_CHANNEL_SUFFIX.length);\n return { switchboardUrl, graphqlUrl: `${switchboardUrl}/graphql` };\n}\n\n/** A bounded introspected GraphQL type reference (see the query below). */\ntype IntrospectedTypeRef = {\n kind: string;\n name: string | null;\n ofType?: IntrospectedTypeRef | null;\n};\n\ntype IntrospectedField = {\n name: string;\n description: string | null;\n args: Array<{ name: string; type: IntrospectedTypeRef }>;\n type: IntrospectedTypeRef;\n};\n\ntype IntrospectedRootType = {\n fields: IntrospectedField[] | null;\n} | null;\n\ntype IntrospectedSchema = {\n queryType?: IntrospectedRootType;\n mutationType?: IntrospectedRootType;\n};\n\n/**\n * Introspection over the switchboard supergraph's root query and mutation\n * fields. Types are requested with three levels of `ofType` nesting so\n * that common shapes like `[X!]!` (LIST(NON_NULL(LIST(X)))) render fully.\n */\nexport const SWITCHBOARD_INTROSPECTION_QUERY: string = /* GraphQL */ `\n query SwitchboardIntrospection {\n __schema {\n queryType {\n fields {\n name\n description\n args {\n name\n type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n mutationType {\n fields {\n name\n description\n args {\n name\n type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n`;\n\n/**\n * Renders an introspected type reference as a GraphQL type string.\n * Recursion is bounded by the `ofType` nesting of the query, so it always\n * terminates.\n */\nfunction renderTypeRef(type: IntrospectedTypeRef | null | undefined): string {\n if (!type) {\n return \"Unknown\";\n }\n switch (type.kind) {\n case \"NON_NULL\":\n return `${renderTypeRef(type.ofType)}!`;\n case \"LIST\":\n return `[${renderTypeRef(type.ofType)}]`;\n default:\n return type.name ?? \"Unknown\";\n }\n}\n\n/** One root query or mutation field, reduced to a prompt-friendly line. */\nexport type SchemaFieldSummary = {\n name: string;\n description?: string;\n args: string;\n returns: string;\n};\n\n/** Cap on the number of fields reported per root type. */\nconst MAX_FIELDS_PER_ROOT = 200;\n\nfunction summarizeFields(fields: IntrospectedField[] | null | undefined): {\n fields: SchemaFieldSummary[];\n truncated: boolean;\n} {\n const list = fields ?? [];\n return {\n fields: list.slice(0, MAX_FIELDS_PER_ROOT).map((field) => ({\n name: field.name,\n ...(field.description ? { description: field.description } : {}),\n args: field.args\n .map((arg) => `${arg.name}: ${renderTypeRef(arg.type)}`)\n .join(\", \"),\n returns: renderTypeRef(field.type),\n })),\n truncated: list.length > MAX_FIELDS_PER_ROOT,\n };\n}\n\n/**\n * Reduces a GraphQL `__schema` introspection payload (the `data.__schema`\n * object) to a compact summary of its root query and mutation fields.\n * Accepts `unknown` because the payload arrives over the wire.\n */\nexport function summarizeIntrospectionSchema(schema: unknown): {\n queries: SchemaFieldSummary[];\n mutations: SchemaFieldSummary[];\n truncated: boolean;\n} {\n const introspection = (schema ?? {}) as IntrospectedSchema;\n const queries = summarizeFields(introspection.queryType?.fields);\n const mutations = summarizeFields(introspection.mutationType?.fields);\n return {\n queries: queries.fields,\n mutations: mutations.fields,\n truncated: queries.truncated || mutations.truncated,\n };\n}\n\nexport const SWITCHBOARD_SCHEMA_TOOL_NAME = \"getSwitchboardSchema\";\n\n/** Test seams for {@link createSwitchboardSchemaTool}. */\nexport interface SwitchboardToolDeps {\n getSyncManager?: () => ISyncManager | undefined;\n getSelectedDriveId?: () => string | undefined;\n tokenProvider?: () => Promise<string | undefined>;\n fetchImpl?: typeof fetch;\n timeoutMs?: number;\n}\n\n/**\n * Creates the read-only `getSwitchboardSchema` tool: it introspects the\n * GraphQL supergraph of the switchboard serving a drive and returns a\n * summary of its root queries and mutations. It reads the schema only and\n * never modifies data.\n */\nexport function createSwitchboardSchemaTool(\n deps?: SwitchboardToolDeps,\n): AiToolDescriptor {\n const getSyncManager = deps?.getSyncManager ?? getBrowserSyncManager;\n const getSelectedDriveId =\n deps?.getSelectedDriveId ??\n ((): string | undefined =>\n typeof window === \"undefined\"\n ? undefined\n : getPHStore()?.selectedDriveId);\n const tokenProvider = deps?.tokenProvider ?? ambientRenownTokenProvider;\n const fetchImpl = deps?.fetchImpl ?? fetch;\n const timeoutMs = deps?.timeoutMs ?? 10_000;\n\n return {\n name: SWITCHBOARD_SCHEMA_TOOL_NAME,\n description:\n \"Introspect the GraphQL endpoint of the switchboard serving a drive and list the queries and mutations it exposes (reactor operations, document-model read models, package subgraphs). Read-only: it reads the schema only and never modifies data. Omit driveId to introspect the currently selected drive.\",\n inputSchema: {\n driveId: z\n .string()\n .describe(\n \"Drive to introspect. Omit to use the currently selected drive.\",\n )\n .optional(),\n },\n annotations: { readOnlyHint: true },\n callback: async (input: { driveId?: string } | undefined) => {\n const driveId = input?.driveId ?? getSelectedDriveId();\n const sb = resolveDriveSwitchboard(driveId, getSyncManager());\n if (!sb) {\n throw new Error(\n driveId\n ? `Drive \"${driveId}\" has no switchboard: it is not synced to a remote switchboard.`\n : \"No drive is currently selected and no driveId was given.\",\n );\n }\n\n const token = await tokenProvider();\n let response: Response;\n try {\n response = await fetchImpl(sb.graphqlUrl, {\n method: \"POST\",\n headers: {\n \"content-type\": \"application/json\",\n ...(token ? { authorization: `Bearer ${token}` } : {}),\n },\n body: JSON.stringify({ query: SWITCHBOARD_INTROSPECTION_QUERY }),\n signal: AbortSignal.timeout(timeoutMs),\n });\n } catch (error) {\n throw new Error(\n `Switchboard at ${sb.graphqlUrl} is not reachable: ${\n error instanceof Error ? error.message : String(error)\n }`,\n { cause: error },\n );\n }\n\n if (response.status === 401 || response.status === 403) {\n throw new Error(\n `Switchboard at ${sb.graphqlUrl} refused the request (HTTP ${response.status}). Sign in to the switchboard (Renown) and try again.`,\n );\n }\n if (!response.ok) {\n throw new Error(\n `Switchboard introspection failed: HTTP ${response.status} ${response.statusText} from ${sb.graphqlUrl}`,\n );\n }\n\n const body = (await response.json()) as {\n errors?: Array<{ message?: string }>;\n data?: { __schema?: unknown } | null;\n } | null;\n const schemaErrors = body?.errors;\n if (schemaErrors && schemaErrors.length > 0) {\n throw new Error(\n schemaErrors.map((e) => e.message ?? \"unknown error\").join(\"; \"),\n );\n }\n const schema = body?.data?.__schema as\n | IntrospectedSchema\n | null\n | undefined;\n if (!schema?.queryType) {\n throw new Error(\n `Switchboard at ${sb.graphqlUrl} did not return a GraphQL schema.`,\n );\n }\n\n const summary = summarizeIntrospectionSchema(schema);\n return {\n switchboardUrl: sb.switchboardUrl,\n graphqlUrl: sb.graphqlUrl,\n ...summary,\n };\n },\n };\n}\n"],"mappings":";;;;;;;;;;;AAKA,SAAgB,YAAY,IAAiD;CAC3E,OAAO,aAAa,mBAAmB,GAAG,EAAE;AAC9C;;;;ACYA,SAAgB,kBAAoC;CAClD,OAAO,YAAY,kBAAkB,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C,KAAK,IAAI,CACjE;GAEF,MAAM,SAAS,MAAM,MAAM;GAI3B,IAAI,CAAC,QAAQ,WACX,MAAM,IAAI,MACR,kBAAkB,GAAG,WAAW,kCAClC;GAGF,MAAM,UAAU,6BAA6B,MAAM;GACnD,OAAO;IACL,gBAAgB,GAAG;IACnB,YAAY,GAAG;IACf,GAAG;GACL;EACF;CACF;AACF"}
@@ -102,6 +102,10 @@ type DocumentOperationsFilterInput = {
102
102
  readonly timestampFrom?: InputMaybe<Scalars["String"]["input"]>;
103
103
  readonly timestampTo?: InputMaybe<Scalars["String"]["input"]>;
104
104
  };
105
+ declare enum DriveNodeKind {
106
+ File = "FILE",
107
+ Folder = "FOLDER"
108
+ }
105
109
  /**
106
110
  * One mutation job of a batch, mirroring the reactor's `ExecutionJobPlan`
107
111
  * (packages/reactor/src/core/types.ts). The batch runs its jobs in dependency
@@ -552,6 +556,66 @@ type GetCreateDefaultsQuery = {
552
556
  readonly protocolVersions: NonNullable<unknown>;
553
557
  };
554
558
  };
559
+ type GetDriveNodesQueryVariables = Exact<{
560
+ driveId: Scalars["ID"]["input"];
561
+ parentFolder?: InputMaybe<Scalars["ID"]["input"]>;
562
+ paging?: InputMaybe<PagingInput>;
563
+ kind?: InputMaybe<DriveNodeKind>;
564
+ }>;
565
+ type GetDriveNodesQuery = {
566
+ readonly driveNodes: {
567
+ readonly nextCursor?: string | null | undefined;
568
+ readonly hasMore: boolean;
569
+ readonly results: ReadonlyArray<{
570
+ readonly id: string;
571
+ readonly driveId: string;
572
+ readonly name: string;
573
+ readonly parentFolder?: string | null | undefined;
574
+ readonly documentType: string;
575
+ } | {
576
+ readonly id: string;
577
+ readonly driveId: string;
578
+ readonly name: string;
579
+ readonly parentFolder?: string | null | undefined;
580
+ }>;
581
+ };
582
+ };
583
+ type GetDriveNodeQueryVariables = Exact<{
584
+ driveId: Scalars["ID"]["input"];
585
+ id: Scalars["ID"]["input"];
586
+ }>;
587
+ type GetDriveNodeQuery = {
588
+ readonly driveNode?: {
589
+ readonly id: string;
590
+ readonly driveId: string;
591
+ readonly name: string;
592
+ readonly parentFolder?: string | null | undefined;
593
+ readonly documentType: string;
594
+ } | {
595
+ readonly id: string;
596
+ readonly driveId: string;
597
+ readonly name: string;
598
+ readonly parentFolder?: string | null | undefined;
599
+ } | null | undefined;
600
+ };
601
+ type GetDriveDescendantsQueryVariables = Exact<{
602
+ driveId: Scalars["ID"]["input"];
603
+ root: Scalars["ID"]["input"];
604
+ }>;
605
+ type GetDriveDescendantsQuery = {
606
+ readonly driveDescendants: ReadonlyArray<{
607
+ readonly id: string;
608
+ readonly driveId: string;
609
+ readonly name: string;
610
+ readonly parentFolder?: string | null | undefined;
611
+ readonly documentType: string;
612
+ } | {
613
+ readonly id: string;
614
+ readonly driveId: string;
615
+ readonly name: string;
616
+ readonly parentFolder?: string | null | undefined;
617
+ }>;
618
+ };
555
619
  type EvaluateActionsQueryVariables = Exact<{
556
620
  documentIdentifier: Scalars["String"]["input"];
557
621
  branch?: InputMaybe<Scalars["String"]["input"]>;
@@ -1009,6 +1073,9 @@ declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper)
1009
1073
  GetJobStatus(variables: GetJobStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetJobStatusQuery>;
1010
1074
  GetDocumentServed(variables: GetDocumentServedQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDocumentServedQuery>;
1011
1075
  GetCreateDefaults(variables?: GetCreateDefaultsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetCreateDefaultsQuery>;
1076
+ GetDriveNodes(variables: GetDriveNodesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDriveNodesQuery>;
1077
+ GetDriveNode(variables: GetDriveNodeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDriveNodeQuery>;
1078
+ GetDriveDescendants(variables: GetDriveDescendantsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetDriveDescendantsQuery>;
1012
1079
  EvaluateActions(variables: EvaluateActionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<EvaluateActionsQuery>;
1013
1080
  CreateDocument(variables: CreateDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateDocumentMutation>;
1014
1081
  CreateEmptyDocument(variables: CreateEmptyDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateEmptyDocumentMutation>;
@@ -1084,6 +1151,6 @@ type TStateSchemaZodObject = z.ZodObject<{
1084
1151
  state: z.ZodObject;
1085
1152
  }>;
1086
1153
  //#endregion
1087
- export { SdkFunctionWrapper as A, GetDocumentQuery as C, PhDocumentFieldsFragment as D, MutateDocumentMutation as E, PropagationMode as O, GetDocumentOperationsQuery as S, JobChangesSubscription as T, CreateDocumentMutation as _, GraphQLDocumentEvents as a, DocumentChangesSubscription as b, ReactorGraphQLClient as c, DEFAULT_DRIVE_ID as d, DEFAULT_SWITCHBOARD_URL as f, ActionInput as g, graphqlEventsToSyncDrive as h, GraphQLDocumentEventOperationName as i, ViewFilterInput as j, Scalars as k, RunDocumentOptions as l, graphqlDocumentsEvents as m, GraphQLClientDocumentsEvent as n, GraphQLDocumentEventsOperationName as o, graphqlDocumentEvents as p, GraphQLClientWindowEvents as r, GraphQLDocumentsEvents as s, GraphQLClientDocumentEvent as t, TStateSchemaZodObject as u, DeleteDocumentMutation as v, GetDocumentWithOperationsQuery as w, FindDocumentsQuery as x, DeleteDocumentsMutation as y };
1154
+ export { Sdk as A, GetDocumentQuery as C, PhDocumentFieldsFragment as D, MutateDocumentMutation as E, ViewFilterInput as M, PropagationMode as O, GetDocumentOperationsQuery as S, JobChangesSubscription as T, CreateDocumentMutation as _, GraphQLDocumentEvents as a, DocumentChangesSubscription as b, ReactorGraphQLClient as c, DEFAULT_DRIVE_ID as d, DEFAULT_SWITCHBOARD_URL as f, ActionInput as g, graphqlEventsToSyncDrive as h, GraphQLDocumentEventOperationName as i, SdkFunctionWrapper as j, Scalars as k, RunDocumentOptions as l, graphqlDocumentsEvents as m, GraphQLClientDocumentsEvent as n, GraphQLDocumentEventsOperationName as o, graphqlDocumentEvents as p, GraphQLClientWindowEvents as r, GraphQLDocumentsEvents as s, GraphQLClientDocumentEvent as t, TStateSchemaZodObject as u, DeleteDocumentMutation as v, GetDocumentWithOperationsQuery as w, FindDocumentsQuery as x, DeleteDocumentsMutation as y };
1088
1155
  export {};
1089
- //# sourceMappingURL=types-DOY-eHEk.d.ts.map
1156
+ //# sourceMappingURL=types-Vb8q55oM.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-Vb8q55oM.d.ts","names":[],"sources":["../src/graphql/gen/schema.ts","../src/graphql/constants.ts","../src/graphql/types.ts"],"mappings":";;;KAGY,WAAW,KAAK;KAChB,MAAM;GAAa;QAC5B,WAAW,IAAI,EAAE;KAiBf,8BAA8B;;KAEvB;EACV;IAAM;IAAe;;EACrB;IAAU;IAAe;;EACzB;IAAW;IAAgB;;EAC3B;IAAO;IAAe;;EACtB;IAAS;IAAe;;EACxB;IAAY,gBAAgB;IAAM,iBAAiB;;EACnD;IAAc,OAAO;IAAsB,QAAQ;;;;;;;;;;KAmBzC;WACD,QAAQ,WAAW;WACnB,OAAO;WACP,MAAM;;;;;;;;;;;;;;KAmBL;;WAED,QAAQ,WAAW;;WAEnB,aAAa,WAAW;;WAExB,cAAc,WAAW;WACzB,SAAS,WAAW;;KA6BnB;WACD,UAAU,WAAW;WACrB,IAAI;WACJ,OAAO;WACP,OAAO;WACP,gBAAgB;WAChB,MAAM;;aAGL;EACV;EACA;;KA6BU;WACD,IAAI;;aAqEH;EACV;EACA;EACA;EACA;EACA;EACA;EACA;;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DAAiD;EAC3D,kBAAkB;EAClB,kBAAkB;EAClB,OAAO,WAAW;EAClB,SAAS,WAAW;;KAGV;WACD;aACE;aACA;aACA;aACA,OAAO;eACL;eACA;eACA;eACA;eACA,OAAO;eACP,mBAAmB;eACnB,OAAO;eACP,0BAA0B;eAC1B,+BAA+B;eAC/B,eAAe;iBACb;iBACA;;;;;KAML,qDAAqD;EAC/D,kBAAkB;EAClB,mBAAmB,WAAW;EAC9B,OAAO,WAAW;EAClB,SAAS,WAAW;;KAGV;WACD;aACE;aACA;aACA;aACA,OAAO;eACL;eACA;eACA;eACA,WAAW;eACX,oBAAoB;eACpB,oBAAoB;;;;KAKvB,qDAAqD;EAC/D,kBAAkB;EAClB,mBAAmB,WAAW;EAC9B,OAAO,WAAW;EAClB,SAAS,WAAW;;KAGV;WACD;aACE;aACA;aACA;aACA,OAAO;eACL;eACA;eACA;eACA,WAAW;eACX,oBAAoB;eACpB,oBAAoB;;;;KAKvB,8BAA8B;EACxC,SAAS,WAAW;EACpB,OAAO,WAAW;EAClB,SAAS,WAAW;;KAGV;WACD;aACE;aACA;aACA;aACA,OAAO;eACL;eACA;eACA;eACA;eACA,OAAO;eACP,mBAAmB;eACnB,OAAO;eACP,0BAA0B;eAC1B,+BAA+B;eAC/B,eAAe;iBACb;iBACA;;;;;KAML,sCAAsC;EAChD,QAAQ;EACR,SAAS,WAAW;;KAGV;WACD;aACE;aACA;aACA;aACA,OAAO;eACL;eACA;eACA;eACA;eACA;eACA;eACA;eACA;iBACE;iBACA;iBACA;iBACA,OAAO;iBACP;iBACA;mBAEM;qBAEM,YAAY;qBACZ;uBAEM;uBACA;uBACA;;qBAIN;uBACM;uBAAuB;;;;;;;;KAuC9C,6BAA6B;EACvC,OAAO;;KAGG;WACD;aAEM;aACA;aACA;aACA,SAAS;aACT;aACA;aACA,oBAAoB;aACpB,uBAAuB;aACvB;eACE;eACA;eACA,aAAa;iBACX;iBACA;iBACA;iBACA;;;aAGJ;eACE;eACA,aAAa;;;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oCAAkC,iBAC5B,6BAA2B,SACnC,wBACR,QAAQ;;KAgBH,MAAM,kBAAkB;;;cCtwGvB;cACA;cACA;cAUA;cAMA;;;KCHR,yBAAyB;KAEzB,iBAAiB,YAAY;;KAGtB;;EAEV;;EAGA;;EAGA,UAAU;EAEV,YAAY;EACZ,iBAAiB;EACjB,SAAS;;KAGC,uBAAuB;;;;;;;EAOjC,cAAc,OAAO,SAAS,uBAAuB,QAAQ;;EAG7D,8BACE,SAAS,yBACT,UAAU,sCACP,QAAQ;;EAGb,kCACE,oBACA,MAAM,6BACN,SAAS,yBACT,UAAU,+BACP;IACH,UAAU;IACV,YAAY;;;KAIJ,6BAA6B;EACvC;;KAGU,8BAA8B;EACxC;;KAGU,4CACF;KAEE,6CACF;KAEE,wBAAwB,OAClC,mCACA;KAGU,yBAAyB,OACnC,oCACA;KAGU,4BAA4B,wBACtC;KAEU,wBAAwB,EAAE;EACpC,OAAO,EAAE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/reactor-browser",
3
- "version": "6.2.3-dev.77",
3
+ "version": "6.2.3-dev.78",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "repository": {
@@ -64,17 +64,17 @@
64
64
  "sideEffects": false,
65
65
  "dependencies": {
66
66
  "@ai-sdk/openai-compatible": "3.0.37",
67
- "@powerhousedao/analytics-engine-browser": "6.2.3-dev.77",
68
- "@powerhousedao/analytics-engine-core": "6.2.3-dev.77",
69
- "@powerhousedao/reactor": "6.2.3-dev.77",
70
- "@powerhousedao/reactor-attachments": "6.2.3-dev.77",
71
- "@powerhousedao/reactor-drive": "6.2.3-dev.77",
72
- "@powerhousedao/shared": "6.2.3-dev.77",
73
- "@renown/sdk": "6.2.3-dev.77",
67
+ "@powerhousedao/analytics-engine-browser": "6.2.3-dev.78",
68
+ "@powerhousedao/analytics-engine-core": "6.2.3-dev.78",
69
+ "@powerhousedao/reactor": "6.2.3-dev.78",
70
+ "@powerhousedao/reactor-attachments": "6.2.3-dev.78",
71
+ "@powerhousedao/reactor-drive": "6.2.3-dev.78",
72
+ "@powerhousedao/shared": "6.2.3-dev.78",
73
+ "@renown/sdk": "6.2.3-dev.78",
74
74
  "@tanstack/react-query": "^5.49.2",
75
75
  "ai": "7.0.83",
76
76
  "change-case": "5.4.4",
77
- "document-model": "6.2.3-dev.77",
77
+ "document-model": "6.2.3-dev.78",
78
78
  "es-module-lexer": "^2.0.0",
79
79
  "graphql-request": "7.4.0",
80
80
  "graphql-ws": "6.0.7",
@@ -1 +0,0 @@
1
- {"version":3,"file":"attachment-service-D-CKdGUb.d.ts","names":[],"sources":["../src/document-refetcher.ts","../src/document-cache.ts","../src/remote-controller/types.ts","../src/graphql-client/adapter.ts","../src/graphql-client/auth.ts","../src/graphql-client/errors.ts","../src/graphql-client/subgraph.ts","../src/graphql-client/graphql-reactor-client.ts","../src/graphql-client/graphql-reactor-provider.tsx","../src/graphql-client/operations.ts","../src/graphql-client/signing.ts","../src/graphql-client/static-package-manager.ts","../src/graphql-client/subscriptions.ts","../src/hooks/document-cache.ts","../src/hooks/reactor.ts","../src/hooks/dispatch.ts","../src/hooks/document-model-modules.ts","../src/hooks/document-operations.ts","../src/hooks/attachment-service.ts"],"mappings":";;;;;;;;;;;;;;;cASa,oBAAoB;;;;UCgBhB,6BAA6B,KAC5C;iBAIc,gBAAgB,GAAG,SAAS,QAAQ,KAAK,iBAAiB;iBAwB1D,iBAAiB,GAC/B,SAAS,QAAQ,KAAK,iBAAiB,KACtC,aAAa;;cA4BH,uBAAuB;;iBAQpB,iBAAiB,iBAAiB,SAAS;;cAa9C,8BAA8B;;iBAU3B,oBACd,iBACC,SAAS;;;;;;;;;;;cAuEC,yBACA,gBAAgB,iBAAiB;UAEpC;UACA;UAIA;UAEA;;;;;;;;UAkBA;;UAGA;;UAKA;UACA;;UAGA;UACA;UACA;UAEA;mBACS;EAEjB,YAAY,QAAQ,0BAAwB;UAUpC;UAwBA;UAeM;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