@ai4b-team/fsaos-gateway-sdk 3.41.0 → 4.0.0
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/README.md +10 -10
- package/dist/iife/gateway.js +4 -4
- package/dist/iife/gateway.js.map +3 -3
- package/dist/iife/ui.js +1 -1
- package/dist/index.cjs +21 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -3
- package/dist/index.d.ts +29 -3
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1181,7 +1181,10 @@ interface ChannelMessage {
|
|
|
1181
1181
|
/** Cognition event created for this dispatched request message. */
|
|
1182
1182
|
cognition_event_id?: string;
|
|
1183
1183
|
seq: number;
|
|
1184
|
+
/** The sender's principal id (a person or an agent). */
|
|
1184
1185
|
principal_id?: string;
|
|
1186
|
+
/** The sender's member item id, when the kernel recorded one (agent replies carry it). */
|
|
1187
|
+
member_id?: string;
|
|
1185
1188
|
reply_count: number;
|
|
1186
1189
|
parent_message_id?: string;
|
|
1187
1190
|
intent_card?: Record<string, unknown>;
|
|
@@ -2331,14 +2334,29 @@ declare function useInfiniteChannelMessages(options: InfiniteChannelMessagesOpti
|
|
|
2331
2334
|
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<ChannelMessagesPage, unknown>, Error>>;
|
|
2332
2335
|
isFetchingNextPage: boolean;
|
|
2333
2336
|
};
|
|
2334
|
-
|
|
2337
|
+
/**
|
|
2338
|
+
* The room mode (Agent System Master Spec D17, kernel revision b7c4d2a9e1f3, 2026-10-29):
|
|
2339
|
+
* - `open`: the floor decision runs on every message; whoever it names answers.
|
|
2340
|
+
* - `active`: only the on-duty agents (`activeAgentIds`; absent = every seated
|
|
2341
|
+
* agent) answer a person; an agent's message wakes another agent by mention only.
|
|
2342
|
+
* - `strict`: mention or named recipient only.
|
|
2343
|
+
* - `hand_raise`: the floor decision runs on a person's message but nobody is
|
|
2344
|
+
* woken; its answer arrives as `conversation.hands_raised` and the person
|
|
2345
|
+
* picks who speaks (an explicit-recipient send).
|
|
2346
|
+
* The kernel stores exactly these four; the legacy `on`/`off` rows were rewritten
|
|
2347
|
+
* `on → active`, `off → strict`.
|
|
2348
|
+
*/
|
|
2349
|
+
type ChannelAiMode = 'open' | 'active' | 'strict' | 'hand_raise';
|
|
2350
|
+
declare const CHANNEL_AI_MODES: readonly ChannelAiMode[];
|
|
2335
2351
|
interface Channel {
|
|
2336
2352
|
id: string;
|
|
2337
2353
|
path: string;
|
|
2338
2354
|
name: string;
|
|
2339
2355
|
displayName: string;
|
|
2340
|
-
/**
|
|
2356
|
+
/** The room mode; see {@link ChannelAiMode}. */
|
|
2341
2357
|
aiMode: ChannelAiMode;
|
|
2358
|
+
/** `active` mode: the on-duty agents' principal ids. Absent = every agent seated in the channel. */
|
|
2359
|
+
activeAgentIds?: string[];
|
|
2342
2360
|
isPrivate: boolean;
|
|
2343
2361
|
isDm: boolean;
|
|
2344
2362
|
messageCount: number;
|
|
@@ -2359,10 +2377,18 @@ interface Channel {
|
|
|
2359
2377
|
memberPath: string;
|
|
2360
2378
|
modePath: string;
|
|
2361
2379
|
autoPilot: boolean;
|
|
2380
|
+
/**
|
|
2381
|
+
* Archived: the channel keeps everything in it and can be opened by path,
|
|
2382
|
+
* but channel lists leave it out unless they ask for archived channels
|
|
2383
|
+
* (`includeArchived`). Set with `update { path, type_data: { is_archived } }`.
|
|
2384
|
+
*/
|
|
2385
|
+
isArchived: boolean;
|
|
2362
2386
|
}
|
|
2363
2387
|
interface ChannelsOptions {
|
|
2364
2388
|
realtime?: boolean;
|
|
2365
2389
|
enabled?: boolean;
|
|
2390
|
+
/** Also list archived channels (`isArchived`). Left out by default. */
|
|
2391
|
+
includeArchived?: boolean;
|
|
2366
2392
|
}
|
|
2367
2393
|
/**
|
|
2368
2394
|
* Fetch all channels (DMs + public) via the GENERIC kernel query
|
|
@@ -3430,4 +3456,4 @@ declare function usePersonalSections(contextId: string | null, collection: Secti
|
|
|
3430
3456
|
contextKey: string;
|
|
3431
3457
|
};
|
|
3432
3458
|
|
|
3433
|
-
export { type AccountInfo, type ArtifactDeltaEvent, type ArtifactDoneEvent, type ArtifactEvent, type ArtifactOpenedEvent, type ArtifactState, type ArtifactStatus, type ArtifactStreamState, type ArtifactSurfaceType, type CancelQueuedTurnOptions, type CancelQueuedTurnResponse, type CancelQueuedTurnState, type CancelTurnOptions, type CancelTurnResponse, type CancelTurnState, type Channel, type ChannelCard, type ChannelMessage, type ChannelMessagesOptions, type ChannelMessagesPage, type ChannelMessagesResponse, type ChannelsOptions, type ComponentOpener, ComponentRenderer, type ConnectionState, type CreateParams, type DeleteParams, EnforcementDeniedError, type EnforcementPayload, type FieldDescriptor, type FileRef, FormSubmissionError, type FormSubmissionReceipt, type FsaosRuntime, type GatewayParams, GatewayRequestError, type GatewayRequestOptions, type GatewayResponse, type IncrementalItemsOptions, type InfiniteChannelMessagesOptions, type InfiniteItemsOptions, type InitializeFsaosOptions, type InteractionReceipt, InteractionTrackingError, type ItemVersionsOptions, type ItemVersionsResult, type ItemsDiscovery, type ItemsFilter, type ItemsFilterGroup, KernelProvider, type LinkParams, type LoadMountsOptions, type MintedAsset, type MintedAssetState, type MountRef, type MoveParams, type Notification, type NotificationsOptions, type OpenEnvelope, type OpenOptions, type PathSubscriptionState, type PersonalItemOrderKey, type PersonalSection, type PinTarget, type PinnedItem, type PrincipalData, type PublicSourceConfig, type ReadPriority, type ReadTiming, type ResolveItemsResponse, type ResolveParams, type ResolveResponse, type ResolveResultItem, type ResolvedItem, type SectionChange, type SectionCollection, type SectionDestination, type SectionSnapshot, type SectionTarget, type SessionEntry, type SourceCaptureAdapter, type SourceIdentityStorage, type StartTrackingOptions, type SteerTurnOptions, type SteerTurnResponse, type SteerTurnState, type SubmitFormOptions, type SwitcherAccount, type TimelineEvent, type TimelineHistoryEvent, type TimelineHistoryOptions, type TrackEventOptions, type TurnQueueEntry, type TurnQueueEntryState, type TypeDefinition, type TypeHelpers, type TypeSchema, type UnreadCountsOptions, type UpdateParams, type UpdatePrincipalParams, type UploadItem, type UploadOptions, type UploadResult, type UseArtifactStreamReturn, type UseFileUploadReturn, type UseTimelineHistoryReturn, type VFSEdge, type VFSItem, type VfsItemChange, type WorkCorrelation, type WorkspaceOptions, type WorkspaceSession, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, createItem, disconnectSSE, disposeVfsRealtimeWs, electHomeAnchor, emitEvent, fetchChannelMessages, fetchChannelMessagesPage, fetchChannelMessagesWithCards, fetchEdgesForItem, fetchItemHistory, fetchItemVersions, fetchItems, fetchMemberFocus, fetchOpenEnvelope, fetchRecentActivity, fetchResolvedItems, fetchTimelineHistory, fetchTurnQueueEntries, fetchTypeDefinitions, fetchVfsChildren, fetchVfsChildrenPage, fetchVfsItem, fetchVfsItemById, fetchVfsTree, gatewayCall, getAccessToken, getAnchor, getAnchorRef, getAnchorVersion, getAssetUrl, getDefaultSort, getHomeAnchor, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, loadMounts, mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, replaceMounts, resetAllSdkState, resolvePrincipalId, resubscribePath, selectMount, serverDeadlinePassed, serverMsUntil, serverNow, setAnchor, setCachedToken, setQueryClient, setScope, setupRequireShim, signal, startTracking, steerTurn, submitForm, subscribeAnchor, subscribeArtifactStream, subscribeMounts, subscribeScope, subscribeToEvents, subscribeToPath, subscribeToScope, trackAction, trackEvent, trackPageView, unmountRealtimeScope, updateItem, uploadFile, useAccounts, useAgentTimeline, useAllChannels, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useTheme, useTimelineHistory, useTool, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
|
|
3459
|
+
export { type AccountInfo, type ArtifactDeltaEvent, type ArtifactDoneEvent, type ArtifactEvent, type ArtifactOpenedEvent, type ArtifactState, type ArtifactStatus, type ArtifactStreamState, type ArtifactSurfaceType, CHANNEL_AI_MODES, type CancelQueuedTurnOptions, type CancelQueuedTurnResponse, type CancelQueuedTurnState, type CancelTurnOptions, type CancelTurnResponse, type CancelTurnState, type Channel, type ChannelAiMode, type ChannelCard, type ChannelMessage, type ChannelMessagesOptions, type ChannelMessagesPage, type ChannelMessagesResponse, type ChannelsOptions, type ComponentOpener, ComponentRenderer, type ConnectionState, type CreateParams, type DeleteParams, EnforcementDeniedError, type EnforcementPayload, type FieldDescriptor, type FileRef, FormSubmissionError, type FormSubmissionReceipt, type FsaosRuntime, type GatewayParams, GatewayRequestError, type GatewayRequestOptions, type GatewayResponse, type IncrementalItemsOptions, type InfiniteChannelMessagesOptions, type InfiniteItemsOptions, type InitializeFsaosOptions, type InteractionReceipt, InteractionTrackingError, type ItemVersionsOptions, type ItemVersionsResult, type ItemsDiscovery, type ItemsFilter, type ItemsFilterGroup, KernelProvider, type LinkParams, type LoadMountsOptions, type MintedAsset, type MintedAssetState, type MountRef, type MoveParams, type Notification, type NotificationsOptions, type OpenEnvelope, type OpenOptions, type PathSubscriptionState, type PersonalItemOrderKey, type PersonalSection, type PinTarget, type PinnedItem, type PrincipalData, type PublicSourceConfig, type ReadPriority, type ReadTiming, type ResolveItemsResponse, type ResolveParams, type ResolveResponse, type ResolveResultItem, type ResolvedItem, type SectionChange, type SectionCollection, type SectionDestination, type SectionSnapshot, type SectionTarget, type SessionEntry, type SourceCaptureAdapter, type SourceIdentityStorage, type StartTrackingOptions, type SteerTurnOptions, type SteerTurnResponse, type SteerTurnState, type SubmitFormOptions, type SwitcherAccount, type TimelineEvent, type TimelineHistoryEvent, type TimelineHistoryOptions, type TrackEventOptions, type TurnQueueEntry, type TurnQueueEntryState, type TypeDefinition, type TypeHelpers, type TypeSchema, type UnreadCountsOptions, type UpdateParams, type UpdatePrincipalParams, type UploadItem, type UploadOptions, type UploadResult, type UseArtifactStreamReturn, type UseFileUploadReturn, type UseTimelineHistoryReturn, type VFSEdge, type VFSItem, type VfsItemChange, type WorkCorrelation, type WorkspaceOptions, type WorkspaceSession, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, createItem, disconnectSSE, disposeVfsRealtimeWs, electHomeAnchor, emitEvent, fetchChannelMessages, fetchChannelMessagesPage, fetchChannelMessagesWithCards, fetchEdgesForItem, fetchItemHistory, fetchItemVersions, fetchItems, fetchMemberFocus, fetchOpenEnvelope, fetchRecentActivity, fetchResolvedItems, fetchTimelineHistory, fetchTurnQueueEntries, fetchTypeDefinitions, fetchVfsChildren, fetchVfsChildrenPage, fetchVfsItem, fetchVfsItemById, fetchVfsTree, gatewayCall, getAccessToken, getAnchor, getAnchorRef, getAnchorVersion, getAssetUrl, getDefaultSort, getHomeAnchor, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, loadMounts, mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, replaceMounts, resetAllSdkState, resolvePrincipalId, resubscribePath, selectMount, serverDeadlinePassed, serverMsUntil, serverNow, setAnchor, setCachedToken, setQueryClient, setScope, setupRequireShim, signal, startTracking, steerTurn, submitForm, subscribeAnchor, subscribeArtifactStream, subscribeMounts, subscribeScope, subscribeToEvents, subscribeToPath, subscribeToScope, trackAction, trackEvent, trackPageView, unmountRealtimeScope, updateItem, uploadFile, useAccounts, useAgentTimeline, useAllChannels, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useTheme, useTimelineHistory, useTool, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
|
package/dist/index.d.ts
CHANGED
|
@@ -1181,7 +1181,10 @@ interface ChannelMessage {
|
|
|
1181
1181
|
/** Cognition event created for this dispatched request message. */
|
|
1182
1182
|
cognition_event_id?: string;
|
|
1183
1183
|
seq: number;
|
|
1184
|
+
/** The sender's principal id (a person or an agent). */
|
|
1184
1185
|
principal_id?: string;
|
|
1186
|
+
/** The sender's member item id, when the kernel recorded one (agent replies carry it). */
|
|
1187
|
+
member_id?: string;
|
|
1185
1188
|
reply_count: number;
|
|
1186
1189
|
parent_message_id?: string;
|
|
1187
1190
|
intent_card?: Record<string, unknown>;
|
|
@@ -2331,14 +2334,29 @@ declare function useInfiniteChannelMessages(options: InfiniteChannelMessagesOpti
|
|
|
2331
2334
|
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<_tanstack_react_query.InfiniteData<ChannelMessagesPage, unknown>, Error>>;
|
|
2332
2335
|
isFetchingNextPage: boolean;
|
|
2333
2336
|
};
|
|
2334
|
-
|
|
2337
|
+
/**
|
|
2338
|
+
* The room mode (Agent System Master Spec D17, kernel revision b7c4d2a9e1f3, 2026-10-29):
|
|
2339
|
+
* - `open`: the floor decision runs on every message; whoever it names answers.
|
|
2340
|
+
* - `active`: only the on-duty agents (`activeAgentIds`; absent = every seated
|
|
2341
|
+
* agent) answer a person; an agent's message wakes another agent by mention only.
|
|
2342
|
+
* - `strict`: mention or named recipient only.
|
|
2343
|
+
* - `hand_raise`: the floor decision runs on a person's message but nobody is
|
|
2344
|
+
* woken; its answer arrives as `conversation.hands_raised` and the person
|
|
2345
|
+
* picks who speaks (an explicit-recipient send).
|
|
2346
|
+
* The kernel stores exactly these four; the legacy `on`/`off` rows were rewritten
|
|
2347
|
+
* `on → active`, `off → strict`.
|
|
2348
|
+
*/
|
|
2349
|
+
type ChannelAiMode = 'open' | 'active' | 'strict' | 'hand_raise';
|
|
2350
|
+
declare const CHANNEL_AI_MODES: readonly ChannelAiMode[];
|
|
2335
2351
|
interface Channel {
|
|
2336
2352
|
id: string;
|
|
2337
2353
|
path: string;
|
|
2338
2354
|
name: string;
|
|
2339
2355
|
displayName: string;
|
|
2340
|
-
/**
|
|
2356
|
+
/** The room mode; see {@link ChannelAiMode}. */
|
|
2341
2357
|
aiMode: ChannelAiMode;
|
|
2358
|
+
/** `active` mode: the on-duty agents' principal ids. Absent = every agent seated in the channel. */
|
|
2359
|
+
activeAgentIds?: string[];
|
|
2342
2360
|
isPrivate: boolean;
|
|
2343
2361
|
isDm: boolean;
|
|
2344
2362
|
messageCount: number;
|
|
@@ -2359,10 +2377,18 @@ interface Channel {
|
|
|
2359
2377
|
memberPath: string;
|
|
2360
2378
|
modePath: string;
|
|
2361
2379
|
autoPilot: boolean;
|
|
2380
|
+
/**
|
|
2381
|
+
* Archived: the channel keeps everything in it and can be opened by path,
|
|
2382
|
+
* but channel lists leave it out unless they ask for archived channels
|
|
2383
|
+
* (`includeArchived`). Set with `update { path, type_data: { is_archived } }`.
|
|
2384
|
+
*/
|
|
2385
|
+
isArchived: boolean;
|
|
2362
2386
|
}
|
|
2363
2387
|
interface ChannelsOptions {
|
|
2364
2388
|
realtime?: boolean;
|
|
2365
2389
|
enabled?: boolean;
|
|
2390
|
+
/** Also list archived channels (`isArchived`). Left out by default. */
|
|
2391
|
+
includeArchived?: boolean;
|
|
2366
2392
|
}
|
|
2367
2393
|
/**
|
|
2368
2394
|
* Fetch all channels (DMs + public) via the GENERIC kernel query
|
|
@@ -3430,4 +3456,4 @@ declare function usePersonalSections(contextId: string | null, collection: Secti
|
|
|
3430
3456
|
contextKey: string;
|
|
3431
3457
|
};
|
|
3432
3458
|
|
|
3433
|
-
export { type AccountInfo, type ArtifactDeltaEvent, type ArtifactDoneEvent, type ArtifactEvent, type ArtifactOpenedEvent, type ArtifactState, type ArtifactStatus, type ArtifactStreamState, type ArtifactSurfaceType, type CancelQueuedTurnOptions, type CancelQueuedTurnResponse, type CancelQueuedTurnState, type CancelTurnOptions, type CancelTurnResponse, type CancelTurnState, type Channel, type ChannelCard, type ChannelMessage, type ChannelMessagesOptions, type ChannelMessagesPage, type ChannelMessagesResponse, type ChannelsOptions, type ComponentOpener, ComponentRenderer, type ConnectionState, type CreateParams, type DeleteParams, EnforcementDeniedError, type EnforcementPayload, type FieldDescriptor, type FileRef, FormSubmissionError, type FormSubmissionReceipt, type FsaosRuntime, type GatewayParams, GatewayRequestError, type GatewayRequestOptions, type GatewayResponse, type IncrementalItemsOptions, type InfiniteChannelMessagesOptions, type InfiniteItemsOptions, type InitializeFsaosOptions, type InteractionReceipt, InteractionTrackingError, type ItemVersionsOptions, type ItemVersionsResult, type ItemsDiscovery, type ItemsFilter, type ItemsFilterGroup, KernelProvider, type LinkParams, type LoadMountsOptions, type MintedAsset, type MintedAssetState, type MountRef, type MoveParams, type Notification, type NotificationsOptions, type OpenEnvelope, type OpenOptions, type PathSubscriptionState, type PersonalItemOrderKey, type PersonalSection, type PinTarget, type PinnedItem, type PrincipalData, type PublicSourceConfig, type ReadPriority, type ReadTiming, type ResolveItemsResponse, type ResolveParams, type ResolveResponse, type ResolveResultItem, type ResolvedItem, type SectionChange, type SectionCollection, type SectionDestination, type SectionSnapshot, type SectionTarget, type SessionEntry, type SourceCaptureAdapter, type SourceIdentityStorage, type StartTrackingOptions, type SteerTurnOptions, type SteerTurnResponse, type SteerTurnState, type SubmitFormOptions, type SwitcherAccount, type TimelineEvent, type TimelineHistoryEvent, type TimelineHistoryOptions, type TrackEventOptions, type TurnQueueEntry, type TurnQueueEntryState, type TypeDefinition, type TypeHelpers, type TypeSchema, type UnreadCountsOptions, type UpdateParams, type UpdatePrincipalParams, type UploadItem, type UploadOptions, type UploadResult, type UseArtifactStreamReturn, type UseFileUploadReturn, type UseTimelineHistoryReturn, type VFSEdge, type VFSItem, type VfsItemChange, type WorkCorrelation, type WorkspaceOptions, type WorkspaceSession, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, createItem, disconnectSSE, disposeVfsRealtimeWs, electHomeAnchor, emitEvent, fetchChannelMessages, fetchChannelMessagesPage, fetchChannelMessagesWithCards, fetchEdgesForItem, fetchItemHistory, fetchItemVersions, fetchItems, fetchMemberFocus, fetchOpenEnvelope, fetchRecentActivity, fetchResolvedItems, fetchTimelineHistory, fetchTurnQueueEntries, fetchTypeDefinitions, fetchVfsChildren, fetchVfsChildrenPage, fetchVfsItem, fetchVfsItemById, fetchVfsTree, gatewayCall, getAccessToken, getAnchor, getAnchorRef, getAnchorVersion, getAssetUrl, getDefaultSort, getHomeAnchor, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, loadMounts, mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, replaceMounts, resetAllSdkState, resolvePrincipalId, resubscribePath, selectMount, serverDeadlinePassed, serverMsUntil, serverNow, setAnchor, setCachedToken, setQueryClient, setScope, setupRequireShim, signal, startTracking, steerTurn, submitForm, subscribeAnchor, subscribeArtifactStream, subscribeMounts, subscribeScope, subscribeToEvents, subscribeToPath, subscribeToScope, trackAction, trackEvent, trackPageView, unmountRealtimeScope, updateItem, uploadFile, useAccounts, useAgentTimeline, useAllChannels, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useTheme, useTimelineHistory, useTool, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
|
|
3459
|
+
export { type AccountInfo, type ArtifactDeltaEvent, type ArtifactDoneEvent, type ArtifactEvent, type ArtifactOpenedEvent, type ArtifactState, type ArtifactStatus, type ArtifactStreamState, type ArtifactSurfaceType, CHANNEL_AI_MODES, type CancelQueuedTurnOptions, type CancelQueuedTurnResponse, type CancelQueuedTurnState, type CancelTurnOptions, type CancelTurnResponse, type CancelTurnState, type Channel, type ChannelAiMode, type ChannelCard, type ChannelMessage, type ChannelMessagesOptions, type ChannelMessagesPage, type ChannelMessagesResponse, type ChannelsOptions, type ComponentOpener, ComponentRenderer, type ConnectionState, type CreateParams, type DeleteParams, EnforcementDeniedError, type EnforcementPayload, type FieldDescriptor, type FileRef, FormSubmissionError, type FormSubmissionReceipt, type FsaosRuntime, type GatewayParams, GatewayRequestError, type GatewayRequestOptions, type GatewayResponse, type IncrementalItemsOptions, type InfiniteChannelMessagesOptions, type InfiniteItemsOptions, type InitializeFsaosOptions, type InteractionReceipt, InteractionTrackingError, type ItemVersionsOptions, type ItemVersionsResult, type ItemsDiscovery, type ItemsFilter, type ItemsFilterGroup, KernelProvider, type LinkParams, type LoadMountsOptions, type MintedAsset, type MintedAssetState, type MountRef, type MoveParams, type Notification, type NotificationsOptions, type OpenEnvelope, type OpenOptions, type PathSubscriptionState, type PersonalItemOrderKey, type PersonalSection, type PinTarget, type PinnedItem, type PrincipalData, type PublicSourceConfig, type ReadPriority, type ReadTiming, type ResolveItemsResponse, type ResolveParams, type ResolveResponse, type ResolveResultItem, type ResolvedItem, type SectionChange, type SectionCollection, type SectionDestination, type SectionSnapshot, type SectionTarget, type SessionEntry, type SourceCaptureAdapter, type SourceIdentityStorage, type StartTrackingOptions, type SteerTurnOptions, type SteerTurnResponse, type SteerTurnState, type SubmitFormOptions, type SwitcherAccount, type TimelineEvent, type TimelineHistoryEvent, type TimelineHistoryOptions, type TrackEventOptions, type TurnQueueEntry, type TurnQueueEntryState, type TypeDefinition, type TypeHelpers, type TypeSchema, type UnreadCountsOptions, type UpdateParams, type UpdatePrincipalParams, type UploadItem, type UploadOptions, type UploadResult, type UseArtifactStreamReturn, type UseFileUploadReturn, type UseTimelineHistoryReturn, type VFSEdge, type VFSItem, type VfsItemChange, type WorkCorrelation, type WorkspaceOptions, type WorkspaceSession, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, createItem, disconnectSSE, disposeVfsRealtimeWs, electHomeAnchor, emitEvent, fetchChannelMessages, fetchChannelMessagesPage, fetchChannelMessagesWithCards, fetchEdgesForItem, fetchItemHistory, fetchItemVersions, fetchItems, fetchMemberFocus, fetchOpenEnvelope, fetchRecentActivity, fetchResolvedItems, fetchTimelineHistory, fetchTurnQueueEntries, fetchTypeDefinitions, fetchVfsChildren, fetchVfsChildrenPage, fetchVfsItem, fetchVfsItemById, fetchVfsTree, gatewayCall, getAccessToken, getAnchor, getAnchorRef, getAnchorVersion, getAssetUrl, getDefaultSort, getHomeAnchor, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, loadMounts, mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, replaceMounts, resetAllSdkState, resolvePrincipalId, resubscribePath, selectMount, serverDeadlinePassed, serverMsUntil, serverNow, setAnchor, setCachedToken, setQueryClient, setScope, setupRequireShim, signal, startTracking, steerTurn, submitForm, subscribeAnchor, subscribeArtifactStream, subscribeMounts, subscribeScope, subscribeToEvents, subscribeToPath, subscribeToScope, trackAction, trackEvent, trackPageView, unmountRealtimeScope, updateItem, uploadFile, useAccounts, useAgentTimeline, useAllChannels, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useTheme, useTimelineHistory, useTool, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __export = (target, all) => {
|
|
|
15
15
|
// src/index.ts
|
|
16
16
|
var src_exports = {};
|
|
17
17
|
__export(src_exports, {
|
|
18
|
+
CHANNEL_AI_MODES: () => CHANNEL_AI_MODES,
|
|
18
19
|
ComponentRenderer: () => ComponentRenderer,
|
|
19
20
|
EnforcementDeniedError: () => EnforcementDeniedError,
|
|
20
21
|
FormSubmissionError: () => FormSubmissionError,
|
|
@@ -2052,6 +2053,7 @@ function parseChannelMessages(rawItems) {
|
|
|
2052
2053
|
cognition_event_id: typeof td.cognition_event_id === "string" ? td.cognition_event_id : void 0,
|
|
2053
2054
|
seq: td.seq || 0,
|
|
2054
2055
|
principal_id: td.principal_id,
|
|
2056
|
+
member_id: typeof td.member_id === "string" ? td.member_id : void 0,
|
|
2055
2057
|
reply_count: td.reply_count || 0,
|
|
2056
2058
|
parent_message_id: td.parent_message_id,
|
|
2057
2059
|
intent_card: metadata.intent_card,
|
|
@@ -2583,9 +2585,11 @@ function watchChannels(client2, key, normalize) {
|
|
|
2583
2585
|
displayName: item.displayName,
|
|
2584
2586
|
messageCount: item.messageCount,
|
|
2585
2587
|
aiMode: item.aiMode,
|
|
2588
|
+
activeAgentIds: item.activeAgentIds,
|
|
2586
2589
|
isPrivate: item.isPrivate,
|
|
2587
2590
|
isDm: item.isDm,
|
|
2588
2591
|
autoPilot: item.autoPilot,
|
|
2592
|
+
isArchived: item.isArchived,
|
|
2589
2593
|
updatedAt: item.updatedAt
|
|
2590
2594
|
};
|
|
2591
2595
|
if (checkRename.has(id) && (previous.name !== next.name || previous.displayName !== next.displayName || previous.path !== next.path)) {
|
|
@@ -4052,9 +4056,15 @@ function useInfiniteChannelMessages(options) {
|
|
|
4052
4056
|
isFetchingNextPage: query.isFetchingNextPage ?? false
|
|
4053
4057
|
};
|
|
4054
4058
|
}
|
|
4059
|
+
var CHANNEL_AI_MODES = ["open", "active", "strict", "hand_raise"];
|
|
4055
4060
|
function normalizeAiMode(value) {
|
|
4056
|
-
if (value === "
|
|
4057
|
-
return "
|
|
4061
|
+
if (value === "open" || value === "active" || value === "strict" || value === "hand_raise") return value;
|
|
4062
|
+
if (value === "on" || value === "auto") return "active";
|
|
4063
|
+
return "strict";
|
|
4064
|
+
}
|
|
4065
|
+
function normalizeActiveAgentIds(value) {
|
|
4066
|
+
if (!Array.isArray(value)) return void 0;
|
|
4067
|
+
return value.filter((v) => typeof v === "string");
|
|
4058
4068
|
}
|
|
4059
4069
|
function normalizeChannel(raw) {
|
|
4060
4070
|
const td = raw.type_data || {};
|
|
@@ -4066,6 +4076,7 @@ function normalizeChannel(raw) {
|
|
|
4066
4076
|
name: raw.name || "",
|
|
4067
4077
|
displayName: td.display_name || raw.name || "",
|
|
4068
4078
|
aiMode: normalizeAiMode(td.ai_mode),
|
|
4079
|
+
activeAgentIds: normalizeActiveAgentIds(td.active_agent_ids),
|
|
4069
4080
|
isPrivate: td.is_private || false,
|
|
4070
4081
|
isDm: td.is_dm || false,
|
|
4071
4082
|
messageCount: td.message_count || 0,
|
|
@@ -4084,12 +4095,13 @@ function normalizeChannel(raw) {
|
|
|
4084
4095
|
memberRole: reader.member_role || "member",
|
|
4085
4096
|
memberPath: "",
|
|
4086
4097
|
modePath: "",
|
|
4087
|
-
autoPilot: td.auto_pilot || false
|
|
4098
|
+
autoPilot: td.auto_pilot || false,
|
|
4099
|
+
isArchived: td.is_archived === true
|
|
4088
4100
|
};
|
|
4089
4101
|
}
|
|
4090
4102
|
function useAllChannels(options = {}) {
|
|
4091
4103
|
const scopeKey = useScopeKey();
|
|
4092
|
-
const { realtime = true, enabled: enabled2 = true } = options;
|
|
4104
|
+
const { realtime = true, enabled: enabled2 = true, includeArchived = false } = options;
|
|
4093
4105
|
const qc = useQueryClient();
|
|
4094
4106
|
const stableKey = useMemo(() => vfsKeys.channels("all"), [scopeKey]);
|
|
4095
4107
|
const query = useQuery({
|
|
@@ -4109,7 +4121,10 @@ function useAllChannels(options = {}) {
|
|
|
4109
4121
|
if (!realtime || !enabled2) return;
|
|
4110
4122
|
return watchChannels(qc, stableKey, normalizeChannel);
|
|
4111
4123
|
}, [realtime, enabled2, stableKey, qc]);
|
|
4112
|
-
const channels =
|
|
4124
|
+
const channels = useMemo(
|
|
4125
|
+
() => (query.data ?? []).filter((c) => includeArchived || !c.isArchived),
|
|
4126
|
+
[query.data, includeArchived]
|
|
4127
|
+
);
|
|
4113
4128
|
return {
|
|
4114
4129
|
channels,
|
|
4115
4130
|
isLoading: query.isLoading,
|
|
@@ -6233,6 +6248,6 @@ function usePersonalSections(contextId, collection) {
|
|
|
6233
6248
|
// src/index.ts
|
|
6234
6249
|
__registerSdkExports(src_exports);
|
|
6235
6250
|
|
|
6236
|
-
export { ComponentRenderer, EnforcementDeniedError, FormSubmissionError, GatewayRequestError, InteractionTrackingError, KernelProvider, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, createItem, disconnectSSE, disposeVfsRealtimeWs, electHomeAnchor, emitEvent, fetchChannelMessages, fetchChannelMessagesPage, fetchChannelMessagesWithCards, fetchEdgesForItem, fetchItemHistory, fetchItemVersions, fetchItems, fetchMemberFocus, fetchOpenEnvelope, fetchRecentActivity, fetchResolvedItems, fetchTimelineHistory, fetchTurnQueueEntries, fetchTypeDefinitions, fetchVfsChildren, fetchVfsChildrenPage, fetchVfsItem, fetchVfsItemById, fetchVfsTree, gatewayCall, getAccessToken, getAnchor, getAnchorRef, getAnchorVersion, getAssetUrl, getDefaultSort, getHomeAnchor, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, loadMounts, mount2 as mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, replaceMounts, resetAllSdkState, resolvePrincipalId, resubscribePath, selectMount, serverDeadlinePassed, serverMsUntil, serverNow, setAnchor, setCachedToken, setQueryClient, setScope, setupRequireShim, signal, startTracking, steerTurn, submitForm, subscribeAnchor, subscribeArtifactStream, subscribeMounts, subscribeScope, subscribeToEvents, subscribeToPath, subscribeToScope, trackAction, trackEvent, trackPageView, unmountRealtimeScope, updateItem, uploadFile, useAccounts, useAgentTimeline, useAllChannels, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useTheme, useTimelineHistory, useTool, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
|
|
6251
|
+
export { CHANNEL_AI_MODES, ComponentRenderer, EnforcementDeniedError, FormSubmissionError, GatewayRequestError, InteractionTrackingError, KernelProvider, assignPersonalSection, auth, awaitAnchorReady, awaitScopeReady, callTool, cancelQueuedTurn, cancelTurn, clearCachedToken, clearSession, configureGatewayReads, createItem, disconnectSSE, disposeVfsRealtimeWs, electHomeAnchor, emitEvent, fetchChannelMessages, fetchChannelMessagesPage, fetchChannelMessagesWithCards, fetchEdgesForItem, fetchItemHistory, fetchItemVersions, fetchItems, fetchMemberFocus, fetchOpenEnvelope, fetchRecentActivity, fetchResolvedItems, fetchTimelineHistory, fetchTurnQueueEntries, fetchTypeDefinitions, fetchVfsChildren, fetchVfsChildrenPage, fetchVfsItem, fetchVfsItemById, fetchVfsTree, gatewayCall, getAccessToken, getAnchor, getAnchorRef, getAnchorVersion, getAssetUrl, getDefaultSort, getHomeAnchor, getMountVersion, getMounts, getPathSubscriptionState, getQueryClient, getRequiredFormFields, getScope, getScopeVersion, getServerClockOffsetMs, getServerClockSyncedAt, getSessionEntry, hasServerClock, initSession, initVfsRealtimeWs, initializeFsaos, initializeWorkspace, interpretSchema, invalidateAllVfs, invalidateChannelMessages, invalidateChildren, invalidateItem, invalidateOpenEnvelope, invalidatePathAndParent, invalidateSubtree, invalidateTypes, isAnchorReady, isChannelPath, isListableItemsFilter, isScopeReady, itemsFilterFromQueryFilter, listChildren, loadMounts, mount2 as mount, mountRealtimeScope, normalizeItem, onConnectionStateChange, pathSubscriptionMatches, personalSectionsKey, ping, pushChanges, queryClient, readItem, refreshQuery, registerCleanup, replaceMounts, resetAllSdkState, resolvePrincipalId, resubscribePath, selectMount, serverDeadlinePassed, serverMsUntil, serverNow, setAnchor, setCachedToken, setQueryClient, setScope, setupRequireShim, signal, startTracking, steerTurn, submitForm, subscribeAnchor, subscribeArtifactStream, subscribeMounts, subscribeScope, subscribeToEvents, subscribeToPath, subscribeToScope, trackAction, trackEvent, trackPageView, unmountRealtimeScope, updateItem, uploadFile, useAccounts, useAgentTimeline, useAllChannels, useArrangement, useArtifactStream, useAsset, useAuth, useChannelMessages, useChannels, useChildren, useComponent, useCreate, useDelete, useDmChannels, useEdges, useEventStream, useFileUpload, useIncrementalItems, useInfiniteChannelMessages, useInfiniteChildren, useInfiniteItems, useItem, useItemById, useItemHistory, useItemVersions, useItems, useLink, useList, useMemberFocus, useMintedAsset, useMounts, useMove, useMutation, useNotifications, useOpen, usePermission, usePermissions, usePersonalItemOrder, usePersonalSections, usePinnedItems, usePrincipal, useRealtimeQuery, useRecentActivity, useResolve, useResolvedItems, useScope, useScopeReady, useSearch, useTheme, useTimelineHistory, useTool, useTree, useType, useTypeHelpers, useTypes, useUnreadCounts, useUpdate, useUpdatePrincipal, vfsKeys, waitForPathReady };
|
|
6237
6252
|
//# sourceMappingURL=index.js.map
|
|
6238
6253
|
//# sourceMappingURL=index.js.map
|