@ateam-ai-mobile/core 0.1.37 → 0.1.38
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 +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/acs/api.ts +46 -0
- package/src/index.ts +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -1247,6 +1247,7 @@ declare const borderRadius: {
|
|
|
1247
1247
|
* DELETE /api/acs/artifacts/{id} — user-initiated retire (idempotent)
|
|
1248
1248
|
* PATCH /api/acs/artifacts/{id} — visibility + rename
|
|
1249
1249
|
* PUT /api/acs/order — drag-reorder
|
|
1250
|
+
* GET /api/acs/launcher — where each of my widgets sits in the Apps grid
|
|
1250
1251
|
* GET /api/acs/home-actions — top-actions feed (+ PATCH/PUT order)
|
|
1251
1252
|
* WS topics acs.artifacts / acs.home-actions — cross-device sync (see ./ws)
|
|
1252
1253
|
*/
|
|
@@ -1346,6 +1347,29 @@ declare function setOrder(pinned: string[]): Promise<{
|
|
|
1346
1347
|
* (e.g. 'home' for the carousel).
|
|
1347
1348
|
*/
|
|
1348
1349
|
declare function recordEvent(artifactId: string, event: AcsEvent, surface?: AcsSurface): Promise<void>;
|
|
1350
|
+
/** One of my widgets in the Apps grid: its plugin id (acs:art_… / actor_skills:…) and display name. */
|
|
1351
|
+
interface LauncherPlace {
|
|
1352
|
+
id: string;
|
|
1353
|
+
name?: string;
|
|
1354
|
+
}
|
|
1355
|
+
/** Where each of my widgets sits in the Apps grid. A widget in none of them lives in its chat. */
|
|
1356
|
+
interface LauncherPlaces {
|
|
1357
|
+
mine: LauncherPlace[];
|
|
1358
|
+
resting: LauncherPlace[];
|
|
1359
|
+
hidden: string[];
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* Where each of my widgets sits in the Apps grid (GET /api/acs/launcher). The rule is the server's
|
|
1363
|
+
* (ACS projection/launcherPlace.js) and the web's Apps panel reads the same answer. null when there
|
|
1364
|
+
* is no answer: the picker then keeps its full list, so nothing disappears on a failed read.
|
|
1365
|
+
*/
|
|
1366
|
+
declare function fetchLauncherPlaces(): Promise<LauncherPlaces | null>;
|
|
1367
|
+
/**
|
|
1368
|
+
* The person opened one of their own ACS widgets themselves: a tile in the Apps grid ('apps') or
|
|
1369
|
+
* its button in a chat ('chat'). That is what keeps it in (or brings it back to) My apps.
|
|
1370
|
+
* Fire-and-forget; any other id is ignored (only ACS widgets fold when unused).
|
|
1371
|
+
*/
|
|
1372
|
+
declare function recordWidgetOpen(pluginId: string, surface: 'apps' | 'chat'): void;
|
|
1349
1373
|
type HomeActionLeaf = {
|
|
1350
1374
|
type: 'send_message';
|
|
1351
1375
|
prompt: string;
|
|
@@ -1540,4 +1564,4 @@ interface AcsKvStorage {
|
|
|
1540
1564
|
}
|
|
1541
1565
|
declare function setAcsCacheStorage(kv: AcsKvStorage | null): void;
|
|
1542
1566
|
|
|
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 };
|
|
1567
|
+
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, 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, fetchLauncherPlaces, 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, recordWidgetOpen, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1247,6 +1247,7 @@ declare const borderRadius: {
|
|
|
1247
1247
|
* DELETE /api/acs/artifacts/{id} — user-initiated retire (idempotent)
|
|
1248
1248
|
* PATCH /api/acs/artifacts/{id} — visibility + rename
|
|
1249
1249
|
* PUT /api/acs/order — drag-reorder
|
|
1250
|
+
* GET /api/acs/launcher — where each of my widgets sits in the Apps grid
|
|
1250
1251
|
* GET /api/acs/home-actions — top-actions feed (+ PATCH/PUT order)
|
|
1251
1252
|
* WS topics acs.artifacts / acs.home-actions — cross-device sync (see ./ws)
|
|
1252
1253
|
*/
|
|
@@ -1346,6 +1347,29 @@ declare function setOrder(pinned: string[]): Promise<{
|
|
|
1346
1347
|
* (e.g. 'home' for the carousel).
|
|
1347
1348
|
*/
|
|
1348
1349
|
declare function recordEvent(artifactId: string, event: AcsEvent, surface?: AcsSurface): Promise<void>;
|
|
1350
|
+
/** One of my widgets in the Apps grid: its plugin id (acs:art_… / actor_skills:…) and display name. */
|
|
1351
|
+
interface LauncherPlace {
|
|
1352
|
+
id: string;
|
|
1353
|
+
name?: string;
|
|
1354
|
+
}
|
|
1355
|
+
/** Where each of my widgets sits in the Apps grid. A widget in none of them lives in its chat. */
|
|
1356
|
+
interface LauncherPlaces {
|
|
1357
|
+
mine: LauncherPlace[];
|
|
1358
|
+
resting: LauncherPlace[];
|
|
1359
|
+
hidden: string[];
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* Where each of my widgets sits in the Apps grid (GET /api/acs/launcher). The rule is the server's
|
|
1363
|
+
* (ACS projection/launcherPlace.js) and the web's Apps panel reads the same answer. null when there
|
|
1364
|
+
* is no answer: the picker then keeps its full list, so nothing disappears on a failed read.
|
|
1365
|
+
*/
|
|
1366
|
+
declare function fetchLauncherPlaces(): Promise<LauncherPlaces | null>;
|
|
1367
|
+
/**
|
|
1368
|
+
* The person opened one of their own ACS widgets themselves: a tile in the Apps grid ('apps') or
|
|
1369
|
+
* its button in a chat ('chat'). That is what keeps it in (or brings it back to) My apps.
|
|
1370
|
+
* Fire-and-forget; any other id is ignored (only ACS widgets fold when unused).
|
|
1371
|
+
*/
|
|
1372
|
+
declare function recordWidgetOpen(pluginId: string, surface: 'apps' | 'chat'): void;
|
|
1349
1373
|
type HomeActionLeaf = {
|
|
1350
1374
|
type: 'send_message';
|
|
1351
1375
|
prompt: string;
|
|
@@ -1540,4 +1564,4 @@ interface AcsKvStorage {
|
|
|
1540
1564
|
}
|
|
1541
1565
|
declare function setAcsCacheStorage(kv: AcsKvStorage | null): void;
|
|
1542
1566
|
|
|
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 };
|
|
1567
|
+
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, 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, fetchLauncherPlaces, 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, recordWidgetOpen, 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 };
|
package/dist/index.js
CHANGED
|
@@ -62,6 +62,7 @@ __export(index_exports, {
|
|
|
62
62
|
disconnectAcsWs: () => disconnectAcsWs,
|
|
63
63
|
exchangeHandoff: () => exchangeHandoff,
|
|
64
64
|
fetchConsumerConfig: () => fetchConsumerConfig,
|
|
65
|
+
fetchLauncherPlaces: () => fetchLauncherPlaces,
|
|
65
66
|
focusPlugin: () => focusPlugin,
|
|
66
67
|
fontSize: () => fontSize,
|
|
67
68
|
getConfig: () => getConfig,
|
|
@@ -110,6 +111,7 @@ __export(index_exports, {
|
|
|
110
111
|
readDevMode: () => readDevMode,
|
|
111
112
|
recentNotifDispatches: () => recentDispatches,
|
|
112
113
|
recordEvent: () => recordEvent,
|
|
114
|
+
recordWidgetOpen: () => recordWidgetOpen,
|
|
113
115
|
refreshToken: () => refreshToken,
|
|
114
116
|
registerHostIntent: () => registerHostIntent,
|
|
115
117
|
registerPushDevice: () => registerDevice,
|
|
@@ -765,6 +767,26 @@ async function recordEvent(artifactId, event, surface) {
|
|
|
765
767
|
} catch {
|
|
766
768
|
}
|
|
767
769
|
}
|
|
770
|
+
async function fetchLauncherPlaces() {
|
|
771
|
+
try {
|
|
772
|
+
const res = await authedFetch("/api/acs/launcher", { method: "GET" });
|
|
773
|
+
if (!res.ok) return null;
|
|
774
|
+
const data = await res.json();
|
|
775
|
+
if (!data?.ok) return null;
|
|
776
|
+
return {
|
|
777
|
+
mine: Array.isArray(data.mine) ? data.mine : [],
|
|
778
|
+
resting: Array.isArray(data.resting) ? data.resting : [],
|
|
779
|
+
hidden: Array.isArray(data.hidden) ? data.hidden : []
|
|
780
|
+
};
|
|
781
|
+
} catch (e) {
|
|
782
|
+
console.warn("[acs] /launcher failed:", e?.message || e);
|
|
783
|
+
return null;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
function recordWidgetOpen(pluginId, surface) {
|
|
787
|
+
if (typeof pluginId !== "string" || !pluginId.startsWith("acs:")) return;
|
|
788
|
+
void recordEvent(pluginId.slice(4), "clicked", surface);
|
|
789
|
+
}
|
|
768
790
|
async function listHomeActions() {
|
|
769
791
|
try {
|
|
770
792
|
const res = await authedFetch("/api/acs/home-actions", { method: "GET" });
|
|
@@ -2764,6 +2786,7 @@ var borderRadius = {
|
|
|
2764
2786
|
disconnectAcsWs,
|
|
2765
2787
|
exchangeHandoff,
|
|
2766
2788
|
fetchConsumerConfig,
|
|
2789
|
+
fetchLauncherPlaces,
|
|
2767
2790
|
focusPlugin,
|
|
2768
2791
|
fontSize,
|
|
2769
2792
|
getConfig,
|
|
@@ -2812,6 +2835,7 @@ var borderRadius = {
|
|
|
2812
2835
|
readDevMode,
|
|
2813
2836
|
recentNotifDispatches,
|
|
2814
2837
|
recordEvent,
|
|
2838
|
+
recordWidgetOpen,
|
|
2815
2839
|
refreshToken,
|
|
2816
2840
|
registerHostIntent,
|
|
2817
2841
|
registerPushDevice,
|