@ateam-ai-mobile/core 0.1.37 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +76 -1
- package/dist/index.d.ts +76 -1
- package/dist/index.js +246 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +238 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/acs/api.ts +46 -0
- package/src/api/tenants.ts +2 -0
- package/src/chat/sideChat.ts +158 -0
- package/src/chat/sideChatPure.ts +59 -0
- package/src/chat/store.ts +5 -5
- package/src/chat/types.ts +2 -0
- package/src/index.ts +8 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
+
import { UseBoundStore, StoreApi } from 'zustand';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Storage adapter contracts. The core is platform-agnostic (no Expo, no
|
|
@@ -847,6 +848,8 @@ interface Message {
|
|
|
847
848
|
chainId?: string;
|
|
848
849
|
/** Turn variant. 'notification' = proactive/system-initiated. */
|
|
849
850
|
kind?: 'notification' | string;
|
|
851
|
+
/** A side chat's own message this phone sent that the server has not saved yet (see chat/sideChat.ts). */
|
|
852
|
+
local?: boolean;
|
|
850
853
|
}
|
|
851
854
|
|
|
852
855
|
interface ChatState {
|
|
@@ -886,6 +889,54 @@ declare function setClientDeclarationProvider(fn: (() => ClientDeclaration | nul
|
|
|
886
889
|
/** Tear down the live connection (env/auth switch, SDK unmount). */
|
|
887
890
|
declare function closeChatStream(): void;
|
|
888
891
|
|
|
892
|
+
interface SideChatState {
|
|
893
|
+
pageId: string;
|
|
894
|
+
messages: Message[];
|
|
895
|
+
/** A turn of this chat is running: Send waits (the web window does the same). */
|
|
896
|
+
loading: boolean;
|
|
897
|
+
loaded: boolean;
|
|
898
|
+
load: () => Promise<void>;
|
|
899
|
+
send: (text: string) => Promise<boolean>;
|
|
900
|
+
}
|
|
901
|
+
type SideChatStore = UseBoundStore<StoreApi<SideChatState>>;
|
|
902
|
+
/** The side chat for this page in the current workspace; reopened chats keep a running turn. */
|
|
903
|
+
declare function getSideChatStore(pageId: string): SideChatStore;
|
|
904
|
+
/** Forget every side chat (sign-out, workspace or environment switch). */
|
|
905
|
+
declare function clearSideChats(): void;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Side chat — the pure rules (no imports of the SDK, so they run under plain node tests).
|
|
909
|
+
*
|
|
910
|
+
* A builder's page asks for a side chat with the widget message `open-side-chat`. The look it may give the chat is
|
|
911
|
+
* cleaned here (same limits and shape as the web host: ai-dev-assistant packages/widget-surface/src/sideChatOptions.js),
|
|
912
|
+
* and the chat's saved turns are merged with the messages this phone sent that the server has not saved yet.
|
|
913
|
+
*/
|
|
914
|
+
|
|
915
|
+
declare const SIDE_CHAT_LIMITS: {
|
|
916
|
+
readonly title: 60;
|
|
917
|
+
readonly header: 40;
|
|
918
|
+
readonly welcome: 200;
|
|
919
|
+
readonly placeholder: 60;
|
|
920
|
+
};
|
|
921
|
+
interface SideChatOptions {
|
|
922
|
+
title: string;
|
|
923
|
+
header: string;
|
|
924
|
+
welcome: string;
|
|
925
|
+
placeholder: string;
|
|
926
|
+
accent: string | null;
|
|
927
|
+
side: 'left' | 'right';
|
|
928
|
+
}
|
|
929
|
+
/** What the page asked for, cleaned: plain text cut to a length, one hex color, `left`/`right`. A widget is not trusted with markup. */
|
|
930
|
+
declare function sideChatOptions(payload: unknown): SideChatOptions;
|
|
931
|
+
/** The words in the TOPIC tag: the title the page gave, else the last part of its page id ("mcp:crm:deal-board" → "Deal Board"). */
|
|
932
|
+
declare function topicLabel(pageId: string, title?: string): string;
|
|
933
|
+
/**
|
|
934
|
+
* The chat's messages: the server's saved turns (oldest first), then this phone's own messages of a turn the server does
|
|
935
|
+
* not hold yet. A local message carries `chainId`; it is dropped once a saved message of that chain is there. A local
|
|
936
|
+
* message with no chain (a send that never started, an error) stays. So a turn is drawn once.
|
|
937
|
+
*/
|
|
938
|
+
declare function mergeSideChatHistory(saved: Message[], current: Message[]): Message[];
|
|
939
|
+
|
|
889
940
|
/**
|
|
890
941
|
* What the phone's chat bubble is handed for a reply: the blocks of a conversation turn as ONE flat string, and that string
|
|
891
942
|
* split back into what the bubble draws. Pure and import-free, so a test runs it in node (it used to sit in store.ts).
|
|
@@ -1247,6 +1298,7 @@ declare const borderRadius: {
|
|
|
1247
1298
|
* DELETE /api/acs/artifacts/{id} — user-initiated retire (idempotent)
|
|
1248
1299
|
* PATCH /api/acs/artifacts/{id} — visibility + rename
|
|
1249
1300
|
* PUT /api/acs/order — drag-reorder
|
|
1301
|
+
* GET /api/acs/launcher — where each of my widgets sits in the Apps grid
|
|
1250
1302
|
* GET /api/acs/home-actions — top-actions feed (+ PATCH/PUT order)
|
|
1251
1303
|
* WS topics acs.artifacts / acs.home-actions — cross-device sync (see ./ws)
|
|
1252
1304
|
*/
|
|
@@ -1346,6 +1398,29 @@ declare function setOrder(pinned: string[]): Promise<{
|
|
|
1346
1398
|
* (e.g. 'home' for the carousel).
|
|
1347
1399
|
*/
|
|
1348
1400
|
declare function recordEvent(artifactId: string, event: AcsEvent, surface?: AcsSurface): Promise<void>;
|
|
1401
|
+
/** One of my widgets in the Apps grid: its plugin id (acs:art_… / actor_skills:…) and display name. */
|
|
1402
|
+
interface LauncherPlace {
|
|
1403
|
+
id: string;
|
|
1404
|
+
name?: string;
|
|
1405
|
+
}
|
|
1406
|
+
/** Where each of my widgets sits in the Apps grid. A widget in none of them lives in its chat. */
|
|
1407
|
+
interface LauncherPlaces {
|
|
1408
|
+
mine: LauncherPlace[];
|
|
1409
|
+
resting: LauncherPlace[];
|
|
1410
|
+
hidden: string[];
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Where each of my widgets sits in the Apps grid (GET /api/acs/launcher). The rule is the server's
|
|
1414
|
+
* (ACS projection/launcherPlace.js) and the web's Apps panel reads the same answer. null when there
|
|
1415
|
+
* is no answer: the picker then keeps its full list, so nothing disappears on a failed read.
|
|
1416
|
+
*/
|
|
1417
|
+
declare function fetchLauncherPlaces(): Promise<LauncherPlaces | null>;
|
|
1418
|
+
/**
|
|
1419
|
+
* The person opened one of their own ACS widgets themselves: a tile in the Apps grid ('apps') or
|
|
1420
|
+
* its button in a chat ('chat'). That is what keeps it in (or brings it back to) My apps.
|
|
1421
|
+
* Fire-and-forget; any other id is ignored (only ACS widgets fold when unused).
|
|
1422
|
+
*/
|
|
1423
|
+
declare function recordWidgetOpen(pluginId: string, surface: 'apps' | 'chat'): void;
|
|
1349
1424
|
type HomeActionLeaf = {
|
|
1350
1425
|
type: 'send_message';
|
|
1351
1426
|
prompt: string;
|
|
@@ -1540,4 +1615,4 @@ interface AcsKvStorage {
|
|
|
1540
1615
|
}
|
|
1541
1616
|
declare function setAcsCacheStorage(kv: AcsKvStorage | null): void;
|
|
1542
1617
|
|
|
1543
|
-
export { type AcsArtifact, type AcsDeleteReason, type AcsEvent, type AcsKvStorage, type AcsPatchReason, type AcsReachabilityReporter, type AcsSurface, type AdasConfig, type AdasGateFlags, type AdasPhase, type AdasSession, type AdasUser, type AttachmentCache, type AttachmentPreview, type AuthSession, type AuthSessionDeps, type AuthSessionState, type BlockSegment, type BufferedCommand, CHART_BLOCK_CLOSE, CHART_BLOCK_OPEN, COMPARISON_BLOCK_CLOSE, COMPARISON_BLOCK_OPEN, type ChannelPrefs, type ChartSeries, type ChartView, type ComparisonOption, type ComparisonRow, type ComparisonView, type ConsumerCapabilityConfig, type ConsumerProviderConfig, type ConsumerSignInResult, type ConversationBlock, DETAILS_BLOCK_CLOSE, DETAILS_BLOCK_OPEN, DIAGRAM_BLOCK_CLOSE, DIAGRAM_BLOCK_OPEN, DIAGRAM_STATUSES, type DeleteResult, type DevModeState, type DevicePlatform, type DiagramFlow, type DiagramStatus, type DiagramStep, type DiagramView, type DispatchRow, type FileUploadRequest, type FileUploader, type HandoffExchangeResult, type HomeAction, type HomeActionLeaf, type HomeActionReason, type InvitePreview, type JobProgress, MAX_ATTACHMENT_BYTES, MAX_INLINE_ATTACHMENT_BYTES, type Message, type MessageAttachment, type NotifChannel, type NotifPrefs, type OtpStartResult, type OutgoingAttachment, type PatchResult, PluginCommandEmitter, type PushBackend, type PushRegistration, type QuietHoursPrefs, type RefreshOutcome, type RegisterDeviceResponse, type Session, type SessionEnv, type SessionPersistence, type SessionStatus, type SessionUser, TABLE_BLOCK_CLOSE, TABLE_BLOCK_OPEN, TIMELINE_BLOCK_CLOSE, TIMELINE_BLOCK_OPEN, type TelegramBotInfo, type TenantMembership, type TenantRow, type TimelineDay, type TimelineEvent, type TimelineView, type TokenProvider, type ToolCall, type UIAction, type UploadedArtifact, VISUALS, type VisualKind, type WireAttachment, type WorkspaceCapabilities, type WorkspaceSnapshot, type WorkspaceState, ada, apiFetch, apiFetchRaw, blocksToText, borderRadius, capabilityEnabled, chartAsText, chartScale, chartView, closeChatStream, colors, comparisonAsText, comparisonView, connectAcsWs, connectorCall, createAuthSession, createPushRegistration, deleteArtifact, devModeFromCatalog, diagramAsText, diagramFlow, diagramView, disconnectAcsWs, exchangeHandoff, fetchConsumerConfig, focusPlugin, fontSize, getConfig, getConsumerAuthApiUrl, getCoreApiUrl, getCoreWsUrl, getPrefs as getNotifPrefs, getTelegramBotInfo as getNotifTelegramBotInfo, getSession, getTenant, getToken, getUser, getVoiceApiUrl, initAdas, isAdasInitialized, isDevHost, isVisualKind, joinWithApple, joinWithGoogle, linkChannelStart, linkChannelVerify, linkTelegram as linkNotifTelegram, listHomeActions, listMadeForYou, listMyTenants, listSurface, mcpFetch, mcpToolCall, nestByMaster, notifyAcsWsForeground, notifyAppForeground, numText, onAppForeground, openJoinWithApple, openJoinWithGoogle, parseDeepLinkParam, parseHandoffCode, parseInviteCode, patchArtifact, patchHomeAction, plainTextOf, pluginCommandEmitter, postCommandResult, prepareAttachments, previewInvite, readDevMode, recentDispatches as recentNotifDispatches, recordEvent, refreshToken, registerHostIntent, registerDevice as registerPushDevice, resolveAdasPhase, setAcsCacheStorage, setAcsReachabilityReporter, setClientDeclarationProvider, setDevMode, setHomeActionOrder, setPrefs as setNotifPrefs, setOrder, signInWithApple, signInWithGoogle, spacing, splitBlockSegments, switchTenant, tenantFromToken, timelineAsText, timelineView, unlinkChannel as unlinkNotifChannel, unregisterDevice as unregisterPushDevice, unwrapMcpResult, useCapability, useChatStore, useHomeActionsStore, useWidgetsStore, useWorkspaceStore, userFromJwt, visualViewOf };
|
|
1618
|
+
export { type AcsArtifact, type AcsDeleteReason, type AcsEvent, type AcsKvStorage, type AcsPatchReason, type AcsReachabilityReporter, type AcsSurface, type AdasConfig, type AdasGateFlags, type AdasPhase, type AdasSession, type AdasUser, type AttachmentCache, type AttachmentPreview, type AuthSession, type AuthSessionDeps, type AuthSessionState, type BlockSegment, type BufferedCommand, CHART_BLOCK_CLOSE, CHART_BLOCK_OPEN, COMPARISON_BLOCK_CLOSE, COMPARISON_BLOCK_OPEN, type ChannelPrefs, type ChartSeries, type ChartView, type ComparisonOption, type ComparisonRow, type ComparisonView, type ConsumerCapabilityConfig, type ConsumerProviderConfig, type ConsumerSignInResult, type ConversationBlock, DETAILS_BLOCK_CLOSE, DETAILS_BLOCK_OPEN, DIAGRAM_BLOCK_CLOSE, DIAGRAM_BLOCK_OPEN, DIAGRAM_STATUSES, type DeleteResult, type DevModeState, type DevicePlatform, type DiagramFlow, type DiagramStatus, type DiagramStep, type DiagramView, type DispatchRow, type FileUploadRequest, type FileUploader, type HandoffExchangeResult, type HomeAction, type HomeActionLeaf, type HomeActionReason, type InvitePreview, type JobProgress, type LauncherPlace, type LauncherPlaces, MAX_ATTACHMENT_BYTES, MAX_INLINE_ATTACHMENT_BYTES, type Message, type MessageAttachment, type NotifChannel, type NotifPrefs, type OtpStartResult, type OutgoingAttachment, type PatchResult, PluginCommandEmitter, type PushBackend, type PushRegistration, type QuietHoursPrefs, type RefreshOutcome, type RegisterDeviceResponse, SIDE_CHAT_LIMITS, type Session, type SessionEnv, type SessionPersistence, type SessionStatus, type SessionUser, type SideChatOptions, type SideChatState, TABLE_BLOCK_CLOSE, TABLE_BLOCK_OPEN, TIMELINE_BLOCK_CLOSE, TIMELINE_BLOCK_OPEN, type TelegramBotInfo, type TenantMembership, type TenantRow, type TimelineDay, type TimelineEvent, type TimelineView, type TokenProvider, type ToolCall, type UIAction, type UploadedArtifact, VISUALS, type VisualKind, type WireAttachment, type WorkspaceCapabilities, type WorkspaceSnapshot, type WorkspaceState, ada, apiFetch, apiFetchRaw, blocksToText, borderRadius, capabilityEnabled, chartAsText, chartScale, chartView, clearSideChats, closeChatStream, colors, comparisonAsText, comparisonView, connectAcsWs, connectorCall, createAuthSession, createPushRegistration, deleteArtifact, devModeFromCatalog, diagramAsText, diagramFlow, diagramView, disconnectAcsWs, exchangeHandoff, fetchConsumerConfig, fetchLauncherPlaces, focusPlugin, fontSize, getConfig, getConsumerAuthApiUrl, getCoreApiUrl, getCoreWsUrl, getPrefs as getNotifPrefs, getTelegramBotInfo as getNotifTelegramBotInfo, getSession, getSideChatStore, getTenant, getToken, getUser, getVoiceApiUrl, initAdas, isAdasInitialized, isDevHost, isVisualKind, joinWithApple, joinWithGoogle, linkChannelStart, linkChannelVerify, linkTelegram as linkNotifTelegram, listHomeActions, listMadeForYou, listMyTenants, listSurface, mcpFetch, mcpToolCall, mergeSideChatHistory, nestByMaster, notifyAcsWsForeground, notifyAppForeground, numText, onAppForeground, openJoinWithApple, openJoinWithGoogle, parseDeepLinkParam, parseHandoffCode, parseInviteCode, patchArtifact, patchHomeAction, plainTextOf, pluginCommandEmitter, postCommandResult, prepareAttachments, previewInvite, readDevMode, recentDispatches as recentNotifDispatches, recordEvent, recordWidgetOpen, refreshToken, registerHostIntent, registerDevice as registerPushDevice, resolveAdasPhase, setAcsCacheStorage, setAcsReachabilityReporter, setClientDeclarationProvider, setDevMode, setHomeActionOrder, setPrefs as setNotifPrefs, setOrder, sideChatOptions, signInWithApple, signInWithGoogle, spacing, splitBlockSegments, switchTenant, tenantFromToken, timelineAsText, timelineView, topicLabel, unlinkChannel as unlinkNotifChannel, unregisterDevice as unregisterPushDevice, unwrapMcpResult, useCapability, useChatStore, useHomeActionsStore, useWidgetsStore, useWorkspaceStore, userFromJwt, visualViewOf };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
+
import { UseBoundStore, StoreApi } from 'zustand';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Storage adapter contracts. The core is platform-agnostic (no Expo, no
|
|
@@ -847,6 +848,8 @@ interface Message {
|
|
|
847
848
|
chainId?: string;
|
|
848
849
|
/** Turn variant. 'notification' = proactive/system-initiated. */
|
|
849
850
|
kind?: 'notification' | string;
|
|
851
|
+
/** A side chat's own message this phone sent that the server has not saved yet (see chat/sideChat.ts). */
|
|
852
|
+
local?: boolean;
|
|
850
853
|
}
|
|
851
854
|
|
|
852
855
|
interface ChatState {
|
|
@@ -886,6 +889,54 @@ declare function setClientDeclarationProvider(fn: (() => ClientDeclaration | nul
|
|
|
886
889
|
/** Tear down the live connection (env/auth switch, SDK unmount). */
|
|
887
890
|
declare function closeChatStream(): void;
|
|
888
891
|
|
|
892
|
+
interface SideChatState {
|
|
893
|
+
pageId: string;
|
|
894
|
+
messages: Message[];
|
|
895
|
+
/** A turn of this chat is running: Send waits (the web window does the same). */
|
|
896
|
+
loading: boolean;
|
|
897
|
+
loaded: boolean;
|
|
898
|
+
load: () => Promise<void>;
|
|
899
|
+
send: (text: string) => Promise<boolean>;
|
|
900
|
+
}
|
|
901
|
+
type SideChatStore = UseBoundStore<StoreApi<SideChatState>>;
|
|
902
|
+
/** The side chat for this page in the current workspace; reopened chats keep a running turn. */
|
|
903
|
+
declare function getSideChatStore(pageId: string): SideChatStore;
|
|
904
|
+
/** Forget every side chat (sign-out, workspace or environment switch). */
|
|
905
|
+
declare function clearSideChats(): void;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Side chat — the pure rules (no imports of the SDK, so they run under plain node tests).
|
|
909
|
+
*
|
|
910
|
+
* A builder's page asks for a side chat with the widget message `open-side-chat`. The look it may give the chat is
|
|
911
|
+
* cleaned here (same limits and shape as the web host: ai-dev-assistant packages/widget-surface/src/sideChatOptions.js),
|
|
912
|
+
* and the chat's saved turns are merged with the messages this phone sent that the server has not saved yet.
|
|
913
|
+
*/
|
|
914
|
+
|
|
915
|
+
declare const SIDE_CHAT_LIMITS: {
|
|
916
|
+
readonly title: 60;
|
|
917
|
+
readonly header: 40;
|
|
918
|
+
readonly welcome: 200;
|
|
919
|
+
readonly placeholder: 60;
|
|
920
|
+
};
|
|
921
|
+
interface SideChatOptions {
|
|
922
|
+
title: string;
|
|
923
|
+
header: string;
|
|
924
|
+
welcome: string;
|
|
925
|
+
placeholder: string;
|
|
926
|
+
accent: string | null;
|
|
927
|
+
side: 'left' | 'right';
|
|
928
|
+
}
|
|
929
|
+
/** What the page asked for, cleaned: plain text cut to a length, one hex color, `left`/`right`. A widget is not trusted with markup. */
|
|
930
|
+
declare function sideChatOptions(payload: unknown): SideChatOptions;
|
|
931
|
+
/** The words in the TOPIC tag: the title the page gave, else the last part of its page id ("mcp:crm:deal-board" → "Deal Board"). */
|
|
932
|
+
declare function topicLabel(pageId: string, title?: string): string;
|
|
933
|
+
/**
|
|
934
|
+
* The chat's messages: the server's saved turns (oldest first), then this phone's own messages of a turn the server does
|
|
935
|
+
* not hold yet. A local message carries `chainId`; it is dropped once a saved message of that chain is there. A local
|
|
936
|
+
* message with no chain (a send that never started, an error) stays. So a turn is drawn once.
|
|
937
|
+
*/
|
|
938
|
+
declare function mergeSideChatHistory(saved: Message[], current: Message[]): Message[];
|
|
939
|
+
|
|
889
940
|
/**
|
|
890
941
|
* What the phone's chat bubble is handed for a reply: the blocks of a conversation turn as ONE flat string, and that string
|
|
891
942
|
* split back into what the bubble draws. Pure and import-free, so a test runs it in node (it used to sit in store.ts).
|
|
@@ -1247,6 +1298,7 @@ declare const borderRadius: {
|
|
|
1247
1298
|
* DELETE /api/acs/artifacts/{id} — user-initiated retire (idempotent)
|
|
1248
1299
|
* PATCH /api/acs/artifacts/{id} — visibility + rename
|
|
1249
1300
|
* PUT /api/acs/order — drag-reorder
|
|
1301
|
+
* GET /api/acs/launcher — where each of my widgets sits in the Apps grid
|
|
1250
1302
|
* GET /api/acs/home-actions — top-actions feed (+ PATCH/PUT order)
|
|
1251
1303
|
* WS topics acs.artifacts / acs.home-actions — cross-device sync (see ./ws)
|
|
1252
1304
|
*/
|
|
@@ -1346,6 +1398,29 @@ declare function setOrder(pinned: string[]): Promise<{
|
|
|
1346
1398
|
* (e.g. 'home' for the carousel).
|
|
1347
1399
|
*/
|
|
1348
1400
|
declare function recordEvent(artifactId: string, event: AcsEvent, surface?: AcsSurface): Promise<void>;
|
|
1401
|
+
/** One of my widgets in the Apps grid: its plugin id (acs:art_… / actor_skills:…) and display name. */
|
|
1402
|
+
interface LauncherPlace {
|
|
1403
|
+
id: string;
|
|
1404
|
+
name?: string;
|
|
1405
|
+
}
|
|
1406
|
+
/** Where each of my widgets sits in the Apps grid. A widget in none of them lives in its chat. */
|
|
1407
|
+
interface LauncherPlaces {
|
|
1408
|
+
mine: LauncherPlace[];
|
|
1409
|
+
resting: LauncherPlace[];
|
|
1410
|
+
hidden: string[];
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Where each of my widgets sits in the Apps grid (GET /api/acs/launcher). The rule is the server's
|
|
1414
|
+
* (ACS projection/launcherPlace.js) and the web's Apps panel reads the same answer. null when there
|
|
1415
|
+
* is no answer: the picker then keeps its full list, so nothing disappears on a failed read.
|
|
1416
|
+
*/
|
|
1417
|
+
declare function fetchLauncherPlaces(): Promise<LauncherPlaces | null>;
|
|
1418
|
+
/**
|
|
1419
|
+
* The person opened one of their own ACS widgets themselves: a tile in the Apps grid ('apps') or
|
|
1420
|
+
* its button in a chat ('chat'). That is what keeps it in (or brings it back to) My apps.
|
|
1421
|
+
* Fire-and-forget; any other id is ignored (only ACS widgets fold when unused).
|
|
1422
|
+
*/
|
|
1423
|
+
declare function recordWidgetOpen(pluginId: string, surface: 'apps' | 'chat'): void;
|
|
1349
1424
|
type HomeActionLeaf = {
|
|
1350
1425
|
type: 'send_message';
|
|
1351
1426
|
prompt: string;
|
|
@@ -1540,4 +1615,4 @@ interface AcsKvStorage {
|
|
|
1540
1615
|
}
|
|
1541
1616
|
declare function setAcsCacheStorage(kv: AcsKvStorage | null): void;
|
|
1542
1617
|
|
|
1543
|
-
export { type AcsArtifact, type AcsDeleteReason, type AcsEvent, type AcsKvStorage, type AcsPatchReason, type AcsReachabilityReporter, type AcsSurface, type AdasConfig, type AdasGateFlags, type AdasPhase, type AdasSession, type AdasUser, type AttachmentCache, type AttachmentPreview, type AuthSession, type AuthSessionDeps, type AuthSessionState, type BlockSegment, type BufferedCommand, CHART_BLOCK_CLOSE, CHART_BLOCK_OPEN, COMPARISON_BLOCK_CLOSE, COMPARISON_BLOCK_OPEN, type ChannelPrefs, type ChartSeries, type ChartView, type ComparisonOption, type ComparisonRow, type ComparisonView, type ConsumerCapabilityConfig, type ConsumerProviderConfig, type ConsumerSignInResult, type ConversationBlock, DETAILS_BLOCK_CLOSE, DETAILS_BLOCK_OPEN, DIAGRAM_BLOCK_CLOSE, DIAGRAM_BLOCK_OPEN, DIAGRAM_STATUSES, type DeleteResult, type DevModeState, type DevicePlatform, type DiagramFlow, type DiagramStatus, type DiagramStep, type DiagramView, type DispatchRow, type FileUploadRequest, type FileUploader, type HandoffExchangeResult, type HomeAction, type HomeActionLeaf, type HomeActionReason, type InvitePreview, type JobProgress, MAX_ATTACHMENT_BYTES, MAX_INLINE_ATTACHMENT_BYTES, type Message, type MessageAttachment, type NotifChannel, type NotifPrefs, type OtpStartResult, type OutgoingAttachment, type PatchResult, PluginCommandEmitter, type PushBackend, type PushRegistration, type QuietHoursPrefs, type RefreshOutcome, type RegisterDeviceResponse, type Session, type SessionEnv, type SessionPersistence, type SessionStatus, type SessionUser, TABLE_BLOCK_CLOSE, TABLE_BLOCK_OPEN, TIMELINE_BLOCK_CLOSE, TIMELINE_BLOCK_OPEN, type TelegramBotInfo, type TenantMembership, type TenantRow, type TimelineDay, type TimelineEvent, type TimelineView, type TokenProvider, type ToolCall, type UIAction, type UploadedArtifact, VISUALS, type VisualKind, type WireAttachment, type WorkspaceCapabilities, type WorkspaceSnapshot, type WorkspaceState, ada, apiFetch, apiFetchRaw, blocksToText, borderRadius, capabilityEnabled, chartAsText, chartScale, chartView, closeChatStream, colors, comparisonAsText, comparisonView, connectAcsWs, connectorCall, createAuthSession, createPushRegistration, deleteArtifact, devModeFromCatalog, diagramAsText, diagramFlow, diagramView, disconnectAcsWs, exchangeHandoff, fetchConsumerConfig, focusPlugin, fontSize, getConfig, getConsumerAuthApiUrl, getCoreApiUrl, getCoreWsUrl, getPrefs as getNotifPrefs, getTelegramBotInfo as getNotifTelegramBotInfo, getSession, getTenant, getToken, getUser, getVoiceApiUrl, initAdas, isAdasInitialized, isDevHost, isVisualKind, joinWithApple, joinWithGoogle, linkChannelStart, linkChannelVerify, linkTelegram as linkNotifTelegram, listHomeActions, listMadeForYou, listMyTenants, listSurface, mcpFetch, mcpToolCall, nestByMaster, notifyAcsWsForeground, notifyAppForeground, numText, onAppForeground, openJoinWithApple, openJoinWithGoogle, parseDeepLinkParam, parseHandoffCode, parseInviteCode, patchArtifact, patchHomeAction, plainTextOf, pluginCommandEmitter, postCommandResult, prepareAttachments, previewInvite, readDevMode, recentDispatches as recentNotifDispatches, recordEvent, refreshToken, registerHostIntent, registerDevice as registerPushDevice, resolveAdasPhase, setAcsCacheStorage, setAcsReachabilityReporter, setClientDeclarationProvider, setDevMode, setHomeActionOrder, setPrefs as setNotifPrefs, setOrder, signInWithApple, signInWithGoogle, spacing, splitBlockSegments, switchTenant, tenantFromToken, timelineAsText, timelineView, unlinkChannel as unlinkNotifChannel, unregisterDevice as unregisterPushDevice, unwrapMcpResult, useCapability, useChatStore, useHomeActionsStore, useWidgetsStore, useWorkspaceStore, userFromJwt, visualViewOf };
|
|
1618
|
+
export { type AcsArtifact, type AcsDeleteReason, type AcsEvent, type AcsKvStorage, type AcsPatchReason, type AcsReachabilityReporter, type AcsSurface, type AdasConfig, type AdasGateFlags, type AdasPhase, type AdasSession, type AdasUser, type AttachmentCache, type AttachmentPreview, type AuthSession, type AuthSessionDeps, type AuthSessionState, type BlockSegment, type BufferedCommand, CHART_BLOCK_CLOSE, CHART_BLOCK_OPEN, COMPARISON_BLOCK_CLOSE, COMPARISON_BLOCK_OPEN, type ChannelPrefs, type ChartSeries, type ChartView, type ComparisonOption, type ComparisonRow, type ComparisonView, type ConsumerCapabilityConfig, type ConsumerProviderConfig, type ConsumerSignInResult, type ConversationBlock, DETAILS_BLOCK_CLOSE, DETAILS_BLOCK_OPEN, DIAGRAM_BLOCK_CLOSE, DIAGRAM_BLOCK_OPEN, DIAGRAM_STATUSES, type DeleteResult, type DevModeState, type DevicePlatform, type DiagramFlow, type DiagramStatus, type DiagramStep, type DiagramView, type DispatchRow, type FileUploadRequest, type FileUploader, type HandoffExchangeResult, type HomeAction, type HomeActionLeaf, type HomeActionReason, type InvitePreview, type JobProgress, type LauncherPlace, type LauncherPlaces, MAX_ATTACHMENT_BYTES, MAX_INLINE_ATTACHMENT_BYTES, type Message, type MessageAttachment, type NotifChannel, type NotifPrefs, type OtpStartResult, type OutgoingAttachment, type PatchResult, PluginCommandEmitter, type PushBackend, type PushRegistration, type QuietHoursPrefs, type RefreshOutcome, type RegisterDeviceResponse, SIDE_CHAT_LIMITS, type Session, type SessionEnv, type SessionPersistence, type SessionStatus, type SessionUser, type SideChatOptions, type SideChatState, TABLE_BLOCK_CLOSE, TABLE_BLOCK_OPEN, TIMELINE_BLOCK_CLOSE, TIMELINE_BLOCK_OPEN, type TelegramBotInfo, type TenantMembership, type TenantRow, type TimelineDay, type TimelineEvent, type TimelineView, type TokenProvider, type ToolCall, type UIAction, type UploadedArtifact, VISUALS, type VisualKind, type WireAttachment, type WorkspaceCapabilities, type WorkspaceSnapshot, type WorkspaceState, ada, apiFetch, apiFetchRaw, blocksToText, borderRadius, capabilityEnabled, chartAsText, chartScale, chartView, clearSideChats, closeChatStream, colors, comparisonAsText, comparisonView, connectAcsWs, connectorCall, createAuthSession, createPushRegistration, deleteArtifact, devModeFromCatalog, diagramAsText, diagramFlow, diagramView, disconnectAcsWs, exchangeHandoff, fetchConsumerConfig, fetchLauncherPlaces, focusPlugin, fontSize, getConfig, getConsumerAuthApiUrl, getCoreApiUrl, getCoreWsUrl, getPrefs as getNotifPrefs, getTelegramBotInfo as getNotifTelegramBotInfo, getSession, getSideChatStore, getTenant, getToken, getUser, getVoiceApiUrl, initAdas, isAdasInitialized, isDevHost, isVisualKind, joinWithApple, joinWithGoogle, linkChannelStart, linkChannelVerify, linkTelegram as linkNotifTelegram, listHomeActions, listMadeForYou, listMyTenants, listSurface, mcpFetch, mcpToolCall, mergeSideChatHistory, nestByMaster, notifyAcsWsForeground, notifyAppForeground, numText, onAppForeground, openJoinWithApple, openJoinWithGoogle, parseDeepLinkParam, parseHandoffCode, parseInviteCode, patchArtifact, patchHomeAction, plainTextOf, pluginCommandEmitter, postCommandResult, prepareAttachments, previewInvite, readDevMode, recentDispatches as recentNotifDispatches, recordEvent, recordWidgetOpen, refreshToken, registerHostIntent, registerDevice as registerPushDevice, resolveAdasPhase, setAcsCacheStorage, setAcsReachabilityReporter, setClientDeclarationProvider, setDevMode, setHomeActionOrder, setPrefs as setNotifPrefs, setOrder, sideChatOptions, signInWithApple, signInWithGoogle, spacing, splitBlockSegments, switchTenant, tenantFromToken, timelineAsText, timelineView, topicLabel, unlinkChannel as unlinkNotifChannel, unregisterDevice as unregisterPushDevice, unwrapMcpResult, useCapability, useChatStore, useHomeActionsStore, useWidgetsStore, useWorkspaceStore, userFromJwt, visualViewOf };
|