@elizaos/ui 2.0.3-beta.4 → 2.0.3-beta.6
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/app-navigate-view.d.ts.map +1 -1
- package/app-navigate-view.js +1 -1
- package/cloud/api-keys/ApiKeysView.d.ts +6 -3
- package/cloud/api-keys/ApiKeysView.d.ts.map +1 -1
- package/cloud/api-keys/ApiKeysView.js +21 -29
- package/cloud/api-keys/copy-api-key.d.ts +1 -8
- package/cloud/api-keys/copy-api-key.d.ts.map +1 -1
- package/cloud/api-keys/copy-api-key.js +1 -10
- package/cloud/api-keys/index.d.ts +1 -1
- package/cloud/api-keys/index.d.ts.map +1 -1
- package/cloud/api-keys/index.js +1 -1
- package/cloud/shell/CloudRouterShell.d.ts +12 -0
- package/cloud/shell/CloudRouterShell.d.ts.map +1 -1
- package/cloud/shell/CloudRouterShell.js +38 -2
- package/cloud-ui/components/data-list/api-keys-table.d.ts +1 -2
- package/cloud-ui/components/data-list/api-keys-table.d.ts.map +1 -1
- package/cloud-ui/components/data-list/api-keys-table.js +3 -9
- package/cloud-ui/components/docs/api-route-explorer-client.d.ts.map +1 -1
- package/cloud-ui/components/docs/api-route-explorer-client.js +2 -1
- package/cloud-ui/components/layout/dashboard-route-page.d.ts.map +1 -1
- package/cloud-ui/components/layout/dashboard-route-page.js +3 -1
- package/components/config-ui/config-field.js +1 -1
- package/components/pages/Springboard.d.ts.map +1 -1
- package/components/pages/Springboard.js +34 -45
- package/components/pages/SpringboardSurface.d.ts.map +1 -1
- package/components/pages/SpringboardSurface.js +116 -6
- package/components/shell/ContinuousChatOverlay.d.ts.map +1 -1
- package/components/shell/ContinuousChatOverlay.js +207 -146
- package/components/shell/HomeSpringboardSurface.d.ts.map +1 -1
- package/components/shell/HomeSpringboardSurface.js +31 -76
- package/components/shell/use-pull-gesture.d.ts +6 -0
- package/components/shell/use-pull-gesture.d.ts.map +1 -1
- package/components/shell/use-pull-gesture.js +66 -27
- package/components/shell/useShellController.d.ts.map +1 -1
- package/components/shell/useShellController.js +13 -3
- package/components/views/ViewTileImage.d.ts +8 -8
- package/components/views/ViewTileImage.d.ts.map +1 -1
- package/components/views/ViewTileImage.js +38 -9
- package/config/boot-config-store.js +1 -1
- package/hooks/useHorizontalPager.d.ts +33 -0
- package/hooks/useHorizontalPager.d.ts.map +1 -0
- package/hooks/useHorizontalPager.js +226 -0
- package/hooks/useLayoutShiftMonitor.d.ts +2 -0
- package/hooks/useLayoutShiftMonitor.d.ts.map +1 -1
- package/hooks/useLayoutShiftMonitor.js +23 -0
- package/hooks/view-catalog.d.ts +3 -4
- package/hooks/view-catalog.d.ts.map +1 -1
- package/hooks/view-catalog.js +4 -6
- package/package.json +10 -10
- package/state/startup-telemetry.d.ts +6 -0
- package/state/startup-telemetry.d.ts.map +1 -1
- package/state/startup-telemetry.js +23 -2
- package/styles/base.css +6 -6
- package/styles/brand-gold.css +6 -5
- package/testing/layout-stability.d.ts +11 -3
- package/testing/layout-stability.d.ts.map +1 -1
- package/testing/layout-stability.js +29 -4
- package/testing/run-animation-frames-immediately.d.ts +2 -0
- package/testing/run-animation-frames-immediately.d.ts.map +1 -0
- package/testing/run-animation-frames-immediately.js +8 -0
- package/themes/presets.js +14 -14
- package/utils/cloud-agent-base.d.ts.map +1 -1
- package/utils/cloud-agent-base.js +6 -0
- package/widgets/registry.d.ts.map +1 -1
- package/widgets/registry.js +7 -0
- package/components/pages/automation-conversations.d.ts +0 -16
- package/components/pages/automation-conversations.d.ts.map +0 -1
- package/components/pages/automation-conversations.js +0 -204
- package/components/pages/automations-missing-creds.d.ts +0 -25
- package/components/pages/automations-missing-creds.d.ts.map +0 -1
- package/components/pages/automations-missing-creds.js +0 -39
- package/components/settings/desktop-workspace-audit-config.d.ts +0 -3
- package/components/settings/desktop-workspace-audit-config.d.ts.map +0 -1
- package/components/settings/desktop-workspace-audit-config.js +0 -171
- package/components/shell/first-run-theme.d.ts +0 -6
- package/components/shell/first-run-theme.d.ts.map +0 -1
- package/components/shell/first-run-theme.js +0 -31
- package/genui/use-json-render-message.d.ts +0 -20
- package/genui/use-json-render-message.d.ts.map +0 -1
- package/genui/use-json-render-message.js +0 -38
- package/state/first-run-restart.d.ts +0 -8
- package/state/first-run-restart.d.ts.map +0 -1
- package/state/first-run-restart.js +0 -8
package/themes/presets.js
CHANGED
|
@@ -52,13 +52,13 @@ export const ELIZA_DEFAULT_THEME = {
|
|
|
52
52
|
focus: "rgba(255, 138, 36, 0.18)",
|
|
53
53
|
focusRing: "0 0 0 2px rgba(255, 138, 36, 0.42)",
|
|
54
54
|
scrollbarTrack: "#ededec",
|
|
55
|
-
scrollbarThumbStart: "rgba(
|
|
56
|
-
scrollbarThumbMid: "rgba(
|
|
57
|
-
scrollbarThumbEnd: "rgba(
|
|
58
|
-
scrollbarThumbHoverStart: "rgba(
|
|
59
|
-
scrollbarThumbHoverMid: "rgba(
|
|
60
|
-
scrollbarThumbHoverEnd: "rgba(
|
|
61
|
-
scrollbarThumbEdge: "rgba(
|
|
55
|
+
scrollbarThumbStart: "rgba(20, 20, 18, 0.22)",
|
|
56
|
+
scrollbarThumbMid: "rgba(20, 20, 18, 0.3)",
|
|
57
|
+
scrollbarThumbEnd: "rgba(20, 20, 18, 0.36)",
|
|
58
|
+
scrollbarThumbHoverStart: "rgba(20, 20, 18, 0.34)",
|
|
59
|
+
scrollbarThumbHoverMid: "rgba(20, 20, 18, 0.44)",
|
|
60
|
+
scrollbarThumbHoverEnd: "rgba(20, 20, 18, 0.52)",
|
|
61
|
+
scrollbarThumbEdge: "rgba(20, 20, 18, 0.1)",
|
|
62
62
|
headerBarBg: "rgba(255, 255, 255, 0.64)",
|
|
63
63
|
headerBarFg: "#1a1a18",
|
|
64
64
|
sectionBarBg: "rgba(255, 255, 255, 0.68)",
|
|
@@ -127,13 +127,13 @@ export const ELIZA_DEFAULT_THEME = {
|
|
|
127
127
|
focus: "rgba(240, 185, 11, 0.18)",
|
|
128
128
|
focusRing: "0 0 0 2px rgba(240, 185, 11, 0.44)",
|
|
129
129
|
scrollbarTrack: "transparent",
|
|
130
|
-
scrollbarThumbStart: "rgba(255,
|
|
131
|
-
scrollbarThumbMid: "rgba(
|
|
132
|
-
scrollbarThumbEnd: "rgba(255,
|
|
133
|
-
scrollbarThumbHoverStart: "rgba(255,
|
|
134
|
-
scrollbarThumbHoverMid: "rgba(
|
|
135
|
-
scrollbarThumbHoverEnd: "rgba(255,
|
|
136
|
-
scrollbarThumbEdge: "rgba(255,
|
|
130
|
+
scrollbarThumbStart: "rgba(255, 255, 255, 0.32)",
|
|
131
|
+
scrollbarThumbMid: "rgba(255, 255, 255, 0.24)",
|
|
132
|
+
scrollbarThumbEnd: "rgba(255, 255, 255, 0.28)",
|
|
133
|
+
scrollbarThumbHoverStart: "rgba(255, 255, 255, 0.46)",
|
|
134
|
+
scrollbarThumbHoverMid: "rgba(255, 255, 255, 0.38)",
|
|
135
|
+
scrollbarThumbHoverEnd: "rgba(255, 255, 255, 0.42)",
|
|
136
|
+
scrollbarThumbEdge: "rgba(255, 255, 255, 0.12)",
|
|
137
137
|
headerBarBg: "#050506",
|
|
138
138
|
headerBarFg: "#ffffff",
|
|
139
139
|
sectionBarBg: "#0a0a0c",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-agent-base.d.ts","sourceRoot":"","sources":["../../../../../src/utils/cloud-agent-base.ts"],"names":[],"mappings":"AA6BA;;;GAGG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAW5E;AAED;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"cloud-agent-base.d.ts","sourceRoot":"","sources":["../../../../../src/utils/cloud-agent-base.ts"],"names":[],"mappings":"AA6BA;;;GAGG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAW5E;AAED;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,aAW1C,CAAC;AAEH;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,GACd,MAAM,CAGR;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,OAAO,CAMT;AAED;;;;;GAKG;AACH,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,OAAO,CAQT;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,OAAO,CAST;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC/B,MAAM,GAAG,IAAI,CAOf"}
|
|
@@ -54,6 +54,12 @@ export const ELIZA_CLOUD_CONTROL_PLANE_HOSTS = new Set([
|
|
|
54
54
|
"elizacloud.ai",
|
|
55
55
|
"www.elizacloud.ai",
|
|
56
56
|
"dev.elizacloud.ai",
|
|
57
|
+
// Staging apex + API. Without these, `staging.elizacloud.ai` ends with
|
|
58
|
+
// `.elizacloud.ai` but isn't in the set, so isDedicatedCloudAgentBase
|
|
59
|
+
// mis-classifies the staging console as a per-agent subdomain (and the apex
|
|
60
|
+
// login redirect never fires on staging — so staging can't validate it).
|
|
61
|
+
"staging.elizacloud.ai",
|
|
62
|
+
"api-staging.elizacloud.ai",
|
|
57
63
|
]);
|
|
58
64
|
/**
|
|
59
65
|
* Build the shared-runtime REST adapter base for a known agent id:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAM7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhF,KAAK,qBAAqB,GAAG,WAAW,CACtC,uBAAuB,CAAC,eAAe,CAAC,CACzC,CAAC;AAEF,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../src/widgets/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAM7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhF,KAAK,qBAAqB,GAAG,WAAW,CACtC,uBAAuB,CAAC,eAAe,CAAC,CACzC,CAAC;AAEF,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAmQ1B;;;;GAIG;AACH,wBAAgB,iCAAiC,CAC/C,YAAY,EAAE,aAAa,CAAC,uBAAuB,CAAC,EACpD,OAAO,CAAC,EAAE;IAAE,iBAAiB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAAE,GACtD,IAAI,CASN;AAOD,eAAO,MAAM,2BAA2B,EAAE,uBAAuB,EAyMhE,CAAC;AAIF,yDAAyD;AACzD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAkChF,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,uBAAuB,CAAC;IACrC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IACnD,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;CAC3C;AAqCD;;;;;GAKG;AACH;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAClD,MAAM,CAAC,qBAAqB,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAQhE,CAAC;AAEF,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,SAAS,iBAAiB,EAAE,EACrC,kBAAkB,CAAC,EAAE,SAAS,uBAAuB,EAAE,GACtD,cAAc,EAAE,CAsElB"}
|
package/widgets/registry.js
CHANGED
|
@@ -153,6 +153,13 @@ const APP_HOME_DEFAULT_WIDGET_DECLARATIONS = [
|
|
|
153
153
|
defaultWidget: "activity",
|
|
154
154
|
signalKinds: ["workflow", "activity"],
|
|
155
155
|
},
|
|
156
|
+
{
|
|
157
|
+
pluginId: "simple-views",
|
|
158
|
+
label: "Simple Views",
|
|
159
|
+
icon: "LayoutGrid",
|
|
160
|
+
defaultWidget: "activity",
|
|
161
|
+
signalKinds: ["workflow", "activity"],
|
|
162
|
+
},
|
|
156
163
|
{
|
|
157
164
|
pluginId: "shopify-ui",
|
|
158
165
|
label: "Shopify",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Conversation, ConversationMetadata } from "../../api/client-types-chat.js";
|
|
2
|
-
export declare function isAutomationConversationMetadata(metadata: ConversationMetadata | null | undefined): boolean;
|
|
3
|
-
export declare function isAutomationConversation(conversation: Pick<Conversation, "metadata"> | null | undefined): boolean;
|
|
4
|
-
export declare function getAutomationBridgeConversationId(activeConversationId: string | null | undefined, conversations: Conversation[]): string | undefined;
|
|
5
|
-
export declare function buildCoordinatorConversationMetadata(taskId: string, bridgeConversationId?: string): ConversationMetadata;
|
|
6
|
-
export declare function buildCoordinatorTriggerConversationMetadata(triggerId: string, bridgeConversationId?: string): ConversationMetadata;
|
|
7
|
-
export declare function buildWorkflowConversationMetadata(workflowId: string, workflowName: string, bridgeConversationId?: string): ConversationMetadata;
|
|
8
|
-
export declare function buildWorkflowDraftConversationMetadata(draftId: string, bridgeConversationId?: string): ConversationMetadata;
|
|
9
|
-
export declare function buildAutomationDraftConversationMetadata(draftId: string, bridgeConversationId?: string): ConversationMetadata;
|
|
10
|
-
export declare function buildAutomationResponseRoutingMetadata(metadata: ConversationMetadata): Record<string, unknown> | undefined;
|
|
11
|
-
export declare function findAutomationConversation(conversations: Conversation[], metadata: ConversationMetadata): Conversation | null;
|
|
12
|
-
export declare function resolveAutomationConversation(params: {
|
|
13
|
-
title: string;
|
|
14
|
-
metadata: ConversationMetadata;
|
|
15
|
-
}): Promise<Conversation>;
|
|
16
|
-
//# sourceMappingURL=automation-conversations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automation-conversations.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/automation-conversations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AAyBrC,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,oBAAoB,GAAG,IAAI,GAAG,SAAS,GAChD,OAAO,CAET;AAED,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,GAAG,IAAI,GAAG,SAAS,GAC9D,OAAO,CAET;AAED,wBAAgB,iCAAiC,CAC/C,oBAAoB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC/C,aAAa,EAAE,YAAY,EAAE,GAC5B,MAAM,GAAG,SAAS,CAcpB;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,MAAM,EACd,oBAAoB,CAAC,EAAE,MAAM,GAC5B,oBAAoB,CAYtB;AAED,wBAAgB,2CAA2C,CACzD,SAAS,EAAE,MAAM,EACjB,oBAAoB,CAAC,EAAE,MAAM,GAC5B,oBAAoB,CAYtB;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,oBAAoB,CAAC,EAAE,MAAM,GAC5B,oBAAoB,CAatB;AAED,wBAAgB,sCAAsC,CACpD,OAAO,EAAE,MAAM,EACf,oBAAoB,CAAC,EAAE,MAAM,GAC5B,oBAAoB,CAYtB;AAED,wBAAgB,wCAAwC,CACtD,OAAO,EAAE,MAAM,EACf,oBAAoB,CAAC,EAAE,MAAM,GAC5B,oBAAoB,CAWtB;AAED,wBAAgB,sCAAsC,CACpD,QAAQ,EAAE,oBAAoB,GAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAerC;AA4FD,wBAAgB,0BAA0B,CACxC,aAAa,EAAE,YAAY,EAAE,EAC7B,QAAQ,EAAE,oBAAoB,GAC7B,YAAY,GAAG,IAAI,CAUrB;AAED,wBAAsB,6BAA6B,CAAC,MAAM,EAAE;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,oBAAoB,CAAC;CAChC,GAAG,OAAO,CAAC,YAAY,CAAC,CAwBxB"}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { client } from "../../api/index.js";
|
|
2
|
-
const AUTOMATION_SCOPES = new Set([
|
|
3
|
-
"automation-coordinator",
|
|
4
|
-
"automation-workflow",
|
|
5
|
-
"automation-workflow-draft",
|
|
6
|
-
"automation-draft",
|
|
7
|
-
]);
|
|
8
|
-
function sortByUpdatedAtDesc(left, right) {
|
|
9
|
-
return (new Date(right.updatedAt).getTime() - new Date(left.updatedAt).getTime());
|
|
10
|
-
}
|
|
11
|
-
function trimOptionalString(value) {
|
|
12
|
-
if (typeof value !== "string") {
|
|
13
|
-
return undefined;
|
|
14
|
-
}
|
|
15
|
-
const trimmed = value.trim();
|
|
16
|
-
return trimmed.length > 0 ? trimmed : undefined;
|
|
17
|
-
}
|
|
18
|
-
export function isAutomationConversationMetadata(metadata) {
|
|
19
|
-
return metadata?.scope ? AUTOMATION_SCOPES.has(metadata.scope) : false;
|
|
20
|
-
}
|
|
21
|
-
export function isAutomationConversation(conversation) {
|
|
22
|
-
return isAutomationConversationMetadata(conversation?.metadata);
|
|
23
|
-
}
|
|
24
|
-
export function getAutomationBridgeConversationId(activeConversationId, conversations) {
|
|
25
|
-
const normalizedActiveId = trimOptionalString(activeConversationId);
|
|
26
|
-
if (!normalizedActiveId) {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
const activeConversation = conversations.find((conversation) => conversation.id === normalizedActiveId);
|
|
30
|
-
if (isAutomationConversation(activeConversation)) {
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
return normalizedActiveId;
|
|
34
|
-
}
|
|
35
|
-
export function buildCoordinatorConversationMetadata(taskId, bridgeConversationId) {
|
|
36
|
-
return {
|
|
37
|
-
scope: "automation-coordinator",
|
|
38
|
-
automationType: "coordinator_text",
|
|
39
|
-
taskId,
|
|
40
|
-
...(bridgeConversationId
|
|
41
|
-
? {
|
|
42
|
-
sourceConversationId: bridgeConversationId,
|
|
43
|
-
terminalBridgeConversationId: bridgeConversationId,
|
|
44
|
-
}
|
|
45
|
-
: {}),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
export function buildCoordinatorTriggerConversationMetadata(triggerId, bridgeConversationId) {
|
|
49
|
-
return {
|
|
50
|
-
scope: "automation-coordinator",
|
|
51
|
-
automationType: "coordinator_text",
|
|
52
|
-
triggerId,
|
|
53
|
-
...(bridgeConversationId
|
|
54
|
-
? {
|
|
55
|
-
sourceConversationId: bridgeConversationId,
|
|
56
|
-
terminalBridgeConversationId: bridgeConversationId,
|
|
57
|
-
}
|
|
58
|
-
: {}),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export function buildWorkflowConversationMetadata(workflowId, workflowName, bridgeConversationId) {
|
|
62
|
-
return {
|
|
63
|
-
scope: "automation-workflow",
|
|
64
|
-
automationType: "workflow",
|
|
65
|
-
workflowId,
|
|
66
|
-
workflowName,
|
|
67
|
-
...(bridgeConversationId
|
|
68
|
-
? {
|
|
69
|
-
sourceConversationId: bridgeConversationId,
|
|
70
|
-
terminalBridgeConversationId: bridgeConversationId,
|
|
71
|
-
}
|
|
72
|
-
: {}),
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
export function buildWorkflowDraftConversationMetadata(draftId, bridgeConversationId) {
|
|
76
|
-
return {
|
|
77
|
-
scope: "automation-workflow-draft",
|
|
78
|
-
automationType: "workflow",
|
|
79
|
-
draftId,
|
|
80
|
-
...(bridgeConversationId
|
|
81
|
-
? {
|
|
82
|
-
sourceConversationId: bridgeConversationId,
|
|
83
|
-
terminalBridgeConversationId: bridgeConversationId,
|
|
84
|
-
}
|
|
85
|
-
: {}),
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export function buildAutomationDraftConversationMetadata(draftId, bridgeConversationId) {
|
|
89
|
-
return {
|
|
90
|
-
scope: "automation-draft",
|
|
91
|
-
draftId,
|
|
92
|
-
...(bridgeConversationId
|
|
93
|
-
? {
|
|
94
|
-
sourceConversationId: bridgeConversationId,
|
|
95
|
-
terminalBridgeConversationId: bridgeConversationId,
|
|
96
|
-
}
|
|
97
|
-
: {}),
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
export function buildAutomationResponseRoutingMetadata(metadata) {
|
|
101
|
-
if (metadata.scope === "automation-coordinator" ||
|
|
102
|
-
metadata.scope === "automation-workflow" ||
|
|
103
|
-
metadata.scope === "automation-workflow-draft" ||
|
|
104
|
-
metadata.scope === "automation-draft") {
|
|
105
|
-
return {
|
|
106
|
-
__responseContext: {
|
|
107
|
-
primaryContext: "automation",
|
|
108
|
-
secondaryContexts: ["automation", "code", "admin"],
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
return undefined;
|
|
113
|
-
}
|
|
114
|
-
function normalizedMetadata(metadata) {
|
|
115
|
-
const next = {};
|
|
116
|
-
const scope = trimOptionalString(metadata?.scope);
|
|
117
|
-
if (scope)
|
|
118
|
-
next.scope = scope;
|
|
119
|
-
const automationType = trimOptionalString(metadata?.automationType);
|
|
120
|
-
if (automationType)
|
|
121
|
-
next.automationType = automationType;
|
|
122
|
-
const taskId = trimOptionalString(metadata?.taskId);
|
|
123
|
-
if (taskId)
|
|
124
|
-
next.taskId = taskId;
|
|
125
|
-
const triggerId = trimOptionalString(metadata?.triggerId);
|
|
126
|
-
if (triggerId)
|
|
127
|
-
next.triggerId = triggerId;
|
|
128
|
-
const workflowId = trimOptionalString(metadata?.workflowId);
|
|
129
|
-
if (workflowId)
|
|
130
|
-
next.workflowId = workflowId;
|
|
131
|
-
const workflowName = trimOptionalString(metadata?.workflowName);
|
|
132
|
-
if (workflowName)
|
|
133
|
-
next.workflowName = workflowName;
|
|
134
|
-
const draftId = trimOptionalString(metadata?.draftId);
|
|
135
|
-
if (draftId)
|
|
136
|
-
next.draftId = draftId;
|
|
137
|
-
const sourceConversationId = trimOptionalString(metadata?.sourceConversationId);
|
|
138
|
-
if (sourceConversationId)
|
|
139
|
-
next.sourceConversationId = sourceConversationId;
|
|
140
|
-
const terminalBridgeConversationId = trimOptionalString(metadata?.terminalBridgeConversationId);
|
|
141
|
-
if (terminalBridgeConversationId) {
|
|
142
|
-
next.terminalBridgeConversationId = terminalBridgeConversationId;
|
|
143
|
-
}
|
|
144
|
-
return next;
|
|
145
|
-
}
|
|
146
|
-
function automationIdentityForMetadata(metadata) {
|
|
147
|
-
if (metadata?.taskId) {
|
|
148
|
-
return `task:${metadata.taskId}`;
|
|
149
|
-
}
|
|
150
|
-
if (metadata?.triggerId) {
|
|
151
|
-
return `trigger:${metadata.triggerId}`;
|
|
152
|
-
}
|
|
153
|
-
if (metadata?.workflowId) {
|
|
154
|
-
return `workflow:${metadata.workflowId}`;
|
|
155
|
-
}
|
|
156
|
-
if (metadata?.draftId) {
|
|
157
|
-
return `workflow-draft:${metadata.draftId}`;
|
|
158
|
-
}
|
|
159
|
-
return null;
|
|
160
|
-
}
|
|
161
|
-
function metadataMatchesIdentity(left, right) {
|
|
162
|
-
const leftIdentity = automationIdentityForMetadata(left);
|
|
163
|
-
const rightIdentity = automationIdentityForMetadata(right);
|
|
164
|
-
if (!leftIdentity || !rightIdentity) {
|
|
165
|
-
return false;
|
|
166
|
-
}
|
|
167
|
-
return leftIdentity === rightIdentity;
|
|
168
|
-
}
|
|
169
|
-
function metadataEquals(left, right) {
|
|
170
|
-
const normalizedLeft = normalizedMetadata(left);
|
|
171
|
-
const normalizedRight = normalizedMetadata(right);
|
|
172
|
-
const leftKeys = Object.keys(normalizedLeft).sort();
|
|
173
|
-
const rightKeys = Object.keys(normalizedRight).sort();
|
|
174
|
-
if (leftKeys.length !== rightKeys.length) {
|
|
175
|
-
return false;
|
|
176
|
-
}
|
|
177
|
-
return leftKeys.every((key, index) => key === rightKeys[index] && normalizedLeft[key] === normalizedRight[key]);
|
|
178
|
-
}
|
|
179
|
-
export function findAutomationConversation(conversations, metadata) {
|
|
180
|
-
return (conversations
|
|
181
|
-
.filter((conversation) => isAutomationConversation(conversation) &&
|
|
182
|
-
metadataMatchesIdentity(conversation.metadata, metadata))
|
|
183
|
-
.sort(sortByUpdatedAtDesc)[0] ?? null);
|
|
184
|
-
}
|
|
185
|
-
export async function resolveAutomationConversation(params) {
|
|
186
|
-
const { conversations } = await client.listConversations();
|
|
187
|
-
const existing = findAutomationConversation(conversations, params.metadata);
|
|
188
|
-
const normalizedTitle = params.title.trim() || "Automation";
|
|
189
|
-
if (existing) {
|
|
190
|
-
if (existing.title === normalizedTitle &&
|
|
191
|
-
metadataEquals(existing.metadata, params.metadata)) {
|
|
192
|
-
return existing;
|
|
193
|
-
}
|
|
194
|
-
const { conversation } = await client.updateConversation(existing.id, {
|
|
195
|
-
title: normalizedTitle,
|
|
196
|
-
metadata: params.metadata,
|
|
197
|
-
});
|
|
198
|
-
return conversation;
|
|
199
|
-
}
|
|
200
|
-
const { conversation } = await client.createConversation(normalizedTitle, {
|
|
201
|
-
metadata: params.metadata,
|
|
202
|
-
});
|
|
203
|
-
return conversation;
|
|
204
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helpers for the "Connect Gmail →" missing-credentials banner that the
|
|
3
|
-
* automations feed renders on workflow rows whose nodes reference
|
|
4
|
-
* connectors the user hasn't connected yet.
|
|
5
|
-
*
|
|
6
|
-
* This file is logic-only (no JSX) so it can be unit-tested without a DOM.
|
|
7
|
-
*/
|
|
8
|
-
import type { WorkflowDefinition } from "../../api/client-types-chat.js";
|
|
9
|
-
/**
|
|
10
|
-
* Walk a workflow's nodes and return the set of credential types it
|
|
11
|
-
* references. The shape comes from `WorkflowDefinitionWriteNode.credentials`,
|
|
12
|
-
* a `Record<credType, { id, name }>` populated by the workflow generator.
|
|
13
|
-
*/
|
|
14
|
-
export declare function collectWorkflowCredTypes(workflow: WorkflowDefinition | null | undefined): string[];
|
|
15
|
-
/**
|
|
16
|
-
* Subtract the set of providers the user has already connected from the
|
|
17
|
-
* set of cred types referenced by the workflow. Returns the leftover —
|
|
18
|
-
* the credentials that need a "Connect X →" CTA.
|
|
19
|
-
*
|
|
20
|
-
* `connectedProviders` is canonical provider ids (Gmail → "google", etc.);
|
|
21
|
-
* the caller is responsible for translating cred types to providers via
|
|
22
|
-
* `providerFromCredType` from `@elizaos/shared` before populating it.
|
|
23
|
-
*/
|
|
24
|
-
export declare function missingCredTypes(workflow: WorkflowDefinition | null | undefined, connectedCredTypes: ReadonlySet<string>): string[];
|
|
25
|
-
//# sourceMappingURL=automations-missing-creds.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automations-missing-creds.d.ts","sourceRoot":"","sources":["../../../../../../src/components/pages/automations-missing-creds.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,GAC9C,MAAM,EAAE,CAYV;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,EAC/C,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAAC,GACtC,MAAM,EAAE,CAIV"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helpers for the "Connect Gmail →" missing-credentials banner that the
|
|
3
|
-
* automations feed renders on workflow rows whose nodes reference
|
|
4
|
-
* connectors the user hasn't connected yet.
|
|
5
|
-
*
|
|
6
|
-
* This file is logic-only (no JSX) so it can be unit-tested without a DOM.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Walk a workflow's nodes and return the set of credential types it
|
|
10
|
-
* references. The shape comes from `WorkflowDefinitionWriteNode.credentials`,
|
|
11
|
-
* a `Record<credType, { id, name }>` populated by the workflow generator.
|
|
12
|
-
*/
|
|
13
|
-
export function collectWorkflowCredTypes(workflow) {
|
|
14
|
-
if (!workflow?.nodes)
|
|
15
|
-
return [];
|
|
16
|
-
const seen = new Set();
|
|
17
|
-
for (const node of workflow.nodes) {
|
|
18
|
-
const creds = node
|
|
19
|
-
.credentials;
|
|
20
|
-
if (!creds)
|
|
21
|
-
continue;
|
|
22
|
-
for (const credType of Object.keys(creds)) {
|
|
23
|
-
seen.add(credType);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return Array.from(seen);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Subtract the set of providers the user has already connected from the
|
|
30
|
-
* set of cred types referenced by the workflow. Returns the leftover —
|
|
31
|
-
* the credentials that need a "Connect X →" CTA.
|
|
32
|
-
*
|
|
33
|
-
* `connectedProviders` is canonical provider ids (Gmail → "google", etc.);
|
|
34
|
-
* the caller is responsible for translating cred types to providers via
|
|
35
|
-
* `providerFromCredType` from `@elizaos/shared` before populating it.
|
|
36
|
-
*/
|
|
37
|
-
export function missingCredTypes(workflow, connectedCredTypes) {
|
|
38
|
-
return collectWorkflowCredTypes(workflow).filter((credType) => !connectedCredTypes.has(credType));
|
|
39
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"desktop-workspace-audit-config.d.ts","sourceRoot":"","sources":["../../../../../../src/components/settings/desktop-workspace-audit-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,6BAA6B,EAAE,SAAS,qBAAqB,EAgLhE,CAAC"}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { DESKTOP_WORKSPACE_SURFACES, } from "../../utils/desktop-workspace.js";
|
|
2
|
-
export const DESKTOP_WORKSPACE_CLICK_AUDIT = [
|
|
3
|
-
{
|
|
4
|
-
id: "desktop-refresh-snapshot",
|
|
5
|
-
entryPoint: "settings:desktop",
|
|
6
|
-
label: "Refresh Diagnostics",
|
|
7
|
-
expectedAction: "Reload desktop version, window, display, clipboard, and path diagnostics.",
|
|
8
|
-
runtimeRequirement: "desktop",
|
|
9
|
-
coverage: "automated",
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
id: "desktop-open-settings-window",
|
|
13
|
-
entryPoint: "settings:desktop",
|
|
14
|
-
label: "Open Desktop Settings Window",
|
|
15
|
-
expectedAction: "Open a detached settings window focused on the desktop section.",
|
|
16
|
-
runtimeRequirement: "desktop",
|
|
17
|
-
coverage: "automated",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
id: "desktop-show-window",
|
|
21
|
-
entryPoint: "settings:desktop",
|
|
22
|
-
label: "Show Window",
|
|
23
|
-
expectedAction: "Show the main desktop window.",
|
|
24
|
-
runtimeRequirement: "desktop",
|
|
25
|
-
coverage: "automated",
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: "desktop-hide-window",
|
|
29
|
-
entryPoint: "settings:desktop",
|
|
30
|
-
label: "Hide Window",
|
|
31
|
-
expectedAction: "Hide the main desktop window.",
|
|
32
|
-
runtimeRequirement: "desktop",
|
|
33
|
-
coverage: "automated",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: "desktop-focus-window",
|
|
37
|
-
entryPoint: "settings:desktop",
|
|
38
|
-
label: "Focus Window",
|
|
39
|
-
expectedAction: "Focus the main desktop window.",
|
|
40
|
-
runtimeRequirement: "desktop",
|
|
41
|
-
coverage: "automated",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
id: "desktop-minimize-window",
|
|
45
|
-
entryPoint: "settings:desktop",
|
|
46
|
-
label: "Minimize Window",
|
|
47
|
-
expectedAction: "Minimize the main desktop window.",
|
|
48
|
-
runtimeRequirement: "desktop",
|
|
49
|
-
coverage: "automated",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
id: "desktop-maximize-toggle",
|
|
53
|
-
entryPoint: "settings:desktop",
|
|
54
|
-
label: "Toggle Maximize",
|
|
55
|
-
expectedAction: "Maximize or unmaximize the main desktop window.",
|
|
56
|
-
runtimeRequirement: "desktop",
|
|
57
|
-
coverage: "automated",
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
id: "desktop-notify",
|
|
61
|
-
entryPoint: "settings:desktop",
|
|
62
|
-
label: "Send Test Notification",
|
|
63
|
-
expectedAction: "Send a desktop notification.",
|
|
64
|
-
runtimeRequirement: "desktop",
|
|
65
|
-
coverage: "automated",
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: "desktop-restart-agent",
|
|
69
|
-
entryPoint: "settings:desktop",
|
|
70
|
-
label: "Restart Agent",
|
|
71
|
-
expectedAction: "Restart the desktop agent backend.",
|
|
72
|
-
runtimeRequirement: "desktop",
|
|
73
|
-
coverage: "automated",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: "desktop-relaunch-app",
|
|
77
|
-
entryPoint: "settings:desktop",
|
|
78
|
-
label: "Relaunch app",
|
|
79
|
-
expectedAction: "Relaunch the desktop shell.",
|
|
80
|
-
runtimeRequirement: "desktop",
|
|
81
|
-
coverage: "automated",
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
id: "desktop-toggle-auto-launch",
|
|
85
|
-
entryPoint: "settings:desktop",
|
|
86
|
-
label: "Toggle Auto-launch",
|
|
87
|
-
expectedAction: "Enable or disable auto-launch.",
|
|
88
|
-
runtimeRequirement: "desktop",
|
|
89
|
-
coverage: "automated",
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
id: "desktop-toggle-hidden-launch",
|
|
93
|
-
entryPoint: "settings:desktop",
|
|
94
|
-
label: "Toggle Hidden Start",
|
|
95
|
-
expectedAction: "Toggle launching the app hidden when auto-launch is enabled.",
|
|
96
|
-
runtimeRequirement: "desktop",
|
|
97
|
-
coverage: "automated",
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
id: "desktop-open-file-dialog",
|
|
101
|
-
entryPoint: "settings:desktop",
|
|
102
|
-
label: "Open Files Dialog",
|
|
103
|
-
expectedAction: "Open a native file chooser.",
|
|
104
|
-
runtimeRequirement: "desktop",
|
|
105
|
-
coverage: "automated",
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
id: "desktop-open-folder-dialog",
|
|
109
|
-
entryPoint: "settings:desktop",
|
|
110
|
-
label: "Open Folder Dialog",
|
|
111
|
-
expectedAction: "Open a native directory chooser.",
|
|
112
|
-
runtimeRequirement: "desktop",
|
|
113
|
-
coverage: "automated",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: "desktop-save-dialog",
|
|
117
|
-
entryPoint: "settings:desktop",
|
|
118
|
-
label: "Save File Dialog",
|
|
119
|
-
expectedAction: "Open a native save dialog.",
|
|
120
|
-
runtimeRequirement: "desktop",
|
|
121
|
-
coverage: "automated",
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
id: "desktop-clipboard-read",
|
|
125
|
-
entryPoint: "settings:desktop",
|
|
126
|
-
label: "Read Clipboard",
|
|
127
|
-
expectedAction: "Read text, html, rtf, and format metadata from the system clipboard.",
|
|
128
|
-
runtimeRequirement: "desktop",
|
|
129
|
-
coverage: "automated",
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
id: "desktop-clipboard-copy",
|
|
133
|
-
entryPoint: "settings:desktop",
|
|
134
|
-
label: "Copy Clipboard Draft",
|
|
135
|
-
expectedAction: "Write text to the system clipboard.",
|
|
136
|
-
runtimeRequirement: "desktop",
|
|
137
|
-
coverage: "automated",
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
id: "desktop-clipboard-clear",
|
|
141
|
-
entryPoint: "settings:desktop",
|
|
142
|
-
label: "Clear Clipboard",
|
|
143
|
-
expectedAction: "Clear the system clipboard.",
|
|
144
|
-
runtimeRequirement: "desktop",
|
|
145
|
-
coverage: "automated",
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
id: "desktop-open-path",
|
|
149
|
-
entryPoint: "settings:desktop",
|
|
150
|
-
label: "Open Desktop Path",
|
|
151
|
-
expectedAction: "Open a selected filesystem path using the native shell.",
|
|
152
|
-
runtimeRequirement: "desktop",
|
|
153
|
-
coverage: "automated",
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
id: "desktop-reveal-path",
|
|
157
|
-
entryPoint: "settings:desktop",
|
|
158
|
-
label: "Reveal Desktop Path",
|
|
159
|
-
expectedAction: "Reveal a selected filesystem path in the native file manager.",
|
|
160
|
-
runtimeRequirement: "desktop",
|
|
161
|
-
coverage: "automated",
|
|
162
|
-
},
|
|
163
|
-
...DESKTOP_WORKSPACE_SURFACES.map((surface) => ({
|
|
164
|
-
id: `desktop-surface-${surface.id}`,
|
|
165
|
-
entryPoint: "settings:desktop",
|
|
166
|
-
label: surface.label,
|
|
167
|
-
expectedAction: `Open the detached ${surface.id} surface window.`,
|
|
168
|
-
runtimeRequirement: "desktop",
|
|
169
|
-
coverage: "automated",
|
|
170
|
-
})),
|
|
171
|
-
];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from "react";
|
|
2
|
-
import type { FirstRunThemeConfig } from "../../config/branding.js";
|
|
3
|
-
type FirstRunCssVars = CSSProperties & Record<`--${string}`, string>;
|
|
4
|
-
export declare function getFirstRunThemeVars(theme: FirstRunThemeConfig | undefined): FirstRunCssVars;
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=first-run-theme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"first-run-theme.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shell/first-run-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,KAAK,eAAe,GAAG,aAAa,GAAG,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC;AAkBrE,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,mBAAmB,GAAG,SAAS,GACrC,eAAe,CAejB"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const DEFAULT_FIRST_RUN_THEME = {
|
|
2
|
-
// Brand rule (#8796): no blue. Near-black background with the orange button +
|
|
3
|
-
// white text is the on-brand first-run look (orange/black/white).
|
|
4
|
-
background: "#0b0e11",
|
|
5
|
-
foreground: "#ffffff",
|
|
6
|
-
mutedForeground: "rgba(255, 255, 255, 0.78)",
|
|
7
|
-
controlBackground: "rgba(255, 255, 255, 0.18)",
|
|
8
|
-
controlForeground: "#ffffff",
|
|
9
|
-
buttonBackground: "#ff8a24",
|
|
10
|
-
buttonForeground: "#fff7ee",
|
|
11
|
-
buttonHighlightBackground: "#fff7ee",
|
|
12
|
-
inputBackground: "rgba(255, 255, 255, 0.92)",
|
|
13
|
-
inputForeground: "#06131f",
|
|
14
|
-
errorForeground: "#fff0e8",
|
|
15
|
-
};
|
|
16
|
-
export function getFirstRunThemeVars(theme) {
|
|
17
|
-
const resolved = { ...DEFAULT_FIRST_RUN_THEME, ...theme };
|
|
18
|
-
return {
|
|
19
|
-
"--first-run-bg": resolved.background,
|
|
20
|
-
"--first-run-fg": resolved.foreground,
|
|
21
|
-
"--first-run-muted": resolved.mutedForeground,
|
|
22
|
-
"--first-run-control-bg": resolved.controlBackground,
|
|
23
|
-
"--first-run-control-fg": resolved.controlForeground,
|
|
24
|
-
"--first-run-button-bg": resolved.buttonBackground,
|
|
25
|
-
"--first-run-button-fg": resolved.buttonForeground,
|
|
26
|
-
"--first-run-button-highlight": resolved.buttonHighlightBackground,
|
|
27
|
-
"--first-run-input-bg-flat": resolved.inputBackground,
|
|
28
|
-
"--first-run-input-fg-flat": resolved.inputForeground,
|
|
29
|
-
"--first-run-error": resolved.errorForeground,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useJsonRenderMessage as officialUseJsonRenderMessage } from "@json-render/react";
|
|
2
|
-
import type { ElizaGenUiSpec, ElizaGenUiValidationOptions } from "./types.js";
|
|
3
|
-
type MessagePart = {
|
|
4
|
-
type: "text";
|
|
5
|
-
text: string;
|
|
6
|
-
} | {
|
|
7
|
-
type: "data-spec";
|
|
8
|
-
data?: Record<string, unknown>;
|
|
9
|
-
} | {
|
|
10
|
-
type: string;
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
type UseJsonRenderMessageResult = {
|
|
14
|
-
spec: ElizaGenUiSpec | null;
|
|
15
|
-
hasSpec: boolean;
|
|
16
|
-
text: string;
|
|
17
|
-
};
|
|
18
|
-
export declare function useJsonRenderMessage(parts: readonly MessagePart[] | null | undefined, _validationOptions?: ElizaGenUiValidationOptions): UseJsonRenderMessageResult;
|
|
19
|
-
export { officialUseJsonRenderMessage as useOfficialJsonRenderMessage };
|
|
20
|
-
//# sourceMappingURL=use-json-render-message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-json-render-message.d.ts","sourceRoot":"","sources":["../../../../../src/genui/use-json-render-message.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,IAAI,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAE1F,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAE3E,KAAK,WAAW,GACZ;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAE7C,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,cAAc,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AASF,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,SAAS,WAAW,EAAE,GAAG,IAAI,GAAG,SAAS,EAChD,kBAAkB,CAAC,EAAE,2BAA2B,GAC/C,0BAA0B,CAmC5B;AAED,OAAO,EAAE,4BAA4B,IAAI,4BAA4B,EAAE,CAAC"}
|