@puredesktop/puredesktop-ui-bridge 2.1.7 → 2.1.9
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/package.json +89 -5
- package/src/agents/mcpServerPresets.test.ts +105 -0
- package/src/agents/mcpServerPresets.ts +380 -0
- package/src/agents/runtime/index.ts +7 -0
- package/src/agents/runtime/mapAgentSnapshot.ts +11 -8
- package/src/agents/runtime/pendingAsks.test.ts +117 -0
- package/src/agents/runtime/pendingAsks.ts +110 -0
- package/src/bridge/agentScopeDefaults.ts +65 -0
- package/src/bridge/agentTypes.ts +57 -3
- package/src/bridge/agents.d.mts +6 -0
- package/src/bridge/agents.mjs +10 -0
- package/src/bridge/agents.ts +4 -0
- package/src/bridge/collectionImagePaste.ts +19 -1
- package/src/bridge/context.mjs +32 -0
- package/src/bridge/credentials.d.mts +62 -0
- package/src/bridge/credentials.mjs +53 -0
- package/src/bridge/documents.d.mts +76 -0
- package/src/bridge/documents.mjs +40 -0
- package/src/bridge/events.d.mts +1 -0
- package/src/bridge/events.mjs +1 -0
- package/src/bridge/googleAuth.ts +7 -152
- package/src/bridge/mcpClient.d.mts +74 -0
- package/src/bridge/mcpClient.mjs +79 -0
- package/src/bridge/methods.d.mts +45 -0
- package/src/bridge/methods.mjs +46 -0
- package/src/bridge/notifications.d.mts +12 -0
- package/src/bridge/notifications.mjs +36 -0
- package/src/bridge/operations.d.mts +44 -0
- package/src/bridge/operations.mjs +40 -0
- package/src/bridge/pureRender/base.css +44 -0
- package/src/bridge/pureRender/document.ts +29 -2
- package/src/bridge/pureRender/index.ts +3 -0
- package/src/bridge/pureRender/normalize.ts +167 -0
- package/src/bridge/pureRender/sanitizeExportBody.test.ts +51 -0
- package/src/bridge/pureRender/sanitizeExportBody.ts +61 -0
- package/src/bridge/pureRender/styles.ts +125 -5
- package/src/bridge/pureRender/theme.test.ts +259 -0
- package/src/bridge/pureRender/theme.ts +19 -1
- package/src/bridge/pureRender/types.ts +33 -0
- package/src/bridge/pureRender/visualLayoutInspection.test.ts +26 -0
- package/src/bridge/pureRender/visualLayoutInspection.ts +75 -0
- package/src/bridge/react/useDocumentHotkeys.ts +41 -0
- package/src/bridge/react/useDocumentLifecycle.tsx +359 -0
- package/src/bridge/react/usePlatformAgentSessionDrive.test.tsx +29 -10
- package/src/bridge/react/usePlatformAgentSessionDrive.tsx +10 -81
- package/src/bridge/react/usePlatformAppSettings.test.tsx +105 -0
- package/src/bridge/react/usePlatformAppSettings.tsx +104 -0
- package/src/bridge/react/usePlatformJsonStore.test.tsx +152 -0
- package/src/bridge/react/usePlatformJsonStore.tsx +149 -0
- package/src/bridge/react/usePlatformOperations.tsx +75 -0
- package/src/bridge/storage.d.mts +23 -10
- package/src/bridge/storage.mjs +6 -3
- package/src/bridge/storage.test.ts +6 -6
- package/src/bridge/types.ts +7 -0
- package/src/components/agents/AgentComposer.tsx +10 -6
- package/src/components/agents/AgentDrawerPanel.test.tsx +2 -205
- package/src/components/agents/AgentDrawerPanel.tsx +23 -62
- package/src/components/agents/AgentMessageBubble.tsx +59 -33
- package/src/components/agents/AgentMessageList.tsx +4 -4
- package/src/components/agents/AgentQuestionPromptList.tsx +34 -212
- package/src/components/agents/AgentToolApprovalActions.tsx +13 -11
- package/src/components/agents/AgentToolCallCard.tsx +20 -20
- package/src/components/agents/AgentToolPendingList.tsx +6 -6
- package/src/components/agents/AgentToolPendingReview.tsx +6 -6
- package/src/components/agents/ContextPicker.tsx +239 -0
- package/src/components/agents/QuestionRequestList.tsx +278 -0
- package/src/components/agents/agentPanelStyles.ts +8 -31
- package/src/components/agents/agentTypes.ts +25 -41
- package/src/components/agents/index.ts +4 -0
- package/src/components/assets/asset-library/sidebar/AssetLibraryList.tsx +10 -4
- package/src/components/chrome/WorkspaceTabStrip.tsx +22 -4
- package/src/components/chrome/workspaceTabTypes.ts +2 -0
- package/src/components/common/chat/ChatBox.tsx +9 -9
- package/src/components/common/chat/ChatModelMenu.tsx +34 -4
- package/src/components/common/chat/ChatThread.tsx +23 -7
- package/src/components/common/connections/ProviderConnection.test.tsx +208 -0
- package/src/components/common/connections/ProviderConnection.tsx +277 -0
- package/src/components/common/connections/index.ts +5 -0
- package/src/components/common/containers/AppFrame.test.tsx +4 -4
- package/src/components/common/containers/AppFrame.tsx +26 -10
- package/src/components/common/containers/AppHeader.tsx +37 -15
- package/src/components/common/documents/DocumentHeaderActions.tsx +206 -0
- package/src/components/common/documents/DocumentSwitcher.tsx +1181 -0
- package/src/components/common/documents/index.ts +8 -0
- package/src/components/common/dropdown/MenuDropdownItem.tsx +14 -2
- package/src/components/common/dropdown/MenuPortal.tsx +3 -1
- package/src/components/common/dropdown/menuViewportPosition.test.ts +20 -10
- package/src/components/common/dropdown/menuViewportPosition.ts +35 -27
- package/src/components/common/overlays/Modal.tsx +13 -2
- package/src/components/common/research/EvidenceDossier.tsx +1232 -150
- package/src/components/common/research/index.ts +2 -0
- package/src/components/editor/EditorLinkPromptDialog.tsx +1 -1
- package/src/components/print-design/PrintDesignPanel.test.tsx +430 -40
- package/src/components/print-design/PrintDesignPanel.tsx +1770 -207
- package/src/components/print-design/index.ts +2 -0
- package/src/components/print-design/previewContent.test.ts +32 -0
- package/src/components/print-design/previewContent.ts +31 -0
- package/src/context/buildContextDocument.test.ts +240 -0
- package/src/context/buildContextDocument.ts +309 -0
- package/src/context/contextAccess.ts +66 -0
- package/src/context/contextConfig.ts +72 -0
- package/src/context/contextDocument.test.ts +155 -0
- package/src/context/contextDocument.ts +300 -0
- package/src/context/contextSections.test.ts +88 -0
- package/src/context/contextSections.ts +84 -0
- package/src/context/htmlToContextMarkdown.test.ts +134 -0
- package/src/context/htmlToContextMarkdown.ts +369 -0
- package/src/ics/generateIcs.test.ts +153 -0
- package/src/ics/generateIcs.ts +197 -0
- package/src/index.ts +3 -0
- package/src/net/httpRetry.test.ts +117 -0
- package/src/net/httpRetry.ts +111 -0
- package/src/theme/appAccents.test.ts +36 -35
- package/src/theme/appAccents.ts +93 -104
- package/src/theme/appIdentityCss.mjs +178 -229
- package/src/theme/appIdentityCss.ts +222 -231
- package/src/theme/themes/dark.ts +3 -1
- package/src/theme/themes/light.ts +3 -1
- package/src/bridge/googleProviderConfig.ts +0 -73
package/src/theme/appAccents.ts
CHANGED
|
@@ -2,9 +2,13 @@ import type { PlatformTheme } from './tokens.js'
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* App identity is a chrome-only layer. It is exposed through CSS variables
|
|
5
|
-
* (`--app-acc`, `--app-bg`, `--app-text
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* (`--app-acc`, `--app-bg`, `--app-text`) and deliberately does not override
|
|
6
|
+
* `--platform-colors-accent`, which belongs to theme/status meaning.
|
|
7
|
+
*
|
|
8
|
+
* Every app owns one hue on a 20-step ring (even ~18deg spacing, matched
|
|
9
|
+
* lightness/chroma in oklch). Writing and output apps are included; the
|
|
10
|
+
* `desktop` shell carries indigo. Keep these values in sync with
|
|
11
|
+
* `appIdentityCss.ts`.
|
|
8
12
|
*/
|
|
9
13
|
|
|
10
14
|
export interface DerivedAppAccent {
|
|
@@ -12,149 +16,134 @@ export interface DerivedAppAccent {
|
|
|
12
16
|
accentHover: string
|
|
13
17
|
accentMuted: string
|
|
14
18
|
accentText: string
|
|
15
|
-
accentBlock: string
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
const APP_IDENTITY_ACCENTS: Record<string, DerivedAppAccent> = {
|
|
19
22
|
teams: {
|
|
20
|
-
accent: 'oklch(0.
|
|
21
|
-
accentHover: 'oklch(0.
|
|
22
|
-
accentMuted: 'oklch(0.955 0.03
|
|
23
|
-
accentText: 'oklch(0.
|
|
24
|
-
accentBlock: 'oklch(0.40 0.06 8)',
|
|
23
|
+
accent: 'oklch(0.55 0.125 12)',
|
|
24
|
+
accentHover: 'oklch(0.43 0.12 12)',
|
|
25
|
+
accentMuted: 'oklch(0.955 0.03 12)',
|
|
26
|
+
accentText: 'oklch(0.43 0.12 12)',
|
|
25
27
|
},
|
|
26
28
|
vibes: {
|
|
27
|
-
accent: 'oklch(0.
|
|
28
|
-
accentHover: 'oklch(0.
|
|
29
|
-
accentMuted: 'oklch(0.955 0.03
|
|
30
|
-
accentText: 'oklch(0.
|
|
31
|
-
accentBlock: 'oklch(0.40 0.06 26)',
|
|
29
|
+
accent: 'oklch(0.55 0.125 30)',
|
|
30
|
+
accentHover: 'oklch(0.43 0.12 30)',
|
|
31
|
+
accentMuted: 'oklch(0.955 0.03 30)',
|
|
32
|
+
accentText: 'oklch(0.43 0.12 30)',
|
|
32
33
|
},
|
|
33
34
|
mail: {
|
|
34
|
-
accent: 'oklch(0.
|
|
35
|
-
accentHover: 'oklch(0.
|
|
36
|
-
accentMuted: 'oklch(0.93 0.05
|
|
37
|
-
accentText: 'oklch(0.
|
|
38
|
-
accentBlock: 'oklch(0.40 0.06 44)',
|
|
35
|
+
accent: 'oklch(0.55 0.125 48)',
|
|
36
|
+
accentHover: 'oklch(0.43 0.12 48)',
|
|
37
|
+
accentMuted: 'oklch(0.93 0.05 48)',
|
|
38
|
+
accentText: 'oklch(0.43 0.12 48)',
|
|
39
39
|
},
|
|
40
40
|
files: {
|
|
41
|
-
accent: 'oklch(0.
|
|
42
|
-
accentHover: 'oklch(0.
|
|
43
|
-
accentMuted: 'oklch(0.955 0.03
|
|
44
|
-
accentText: 'oklch(0.
|
|
45
|
-
accentBlock: 'oklch(0.40 0.06 64)',
|
|
41
|
+
accent: 'oklch(0.55 0.125 66)',
|
|
42
|
+
accentHover: 'oklch(0.43 0.12 66)',
|
|
43
|
+
accentMuted: 'oklch(0.955 0.03 66)',
|
|
44
|
+
accentText: 'oklch(0.43 0.12 66)',
|
|
46
45
|
},
|
|
47
46
|
slides: {
|
|
48
|
-
accent: 'oklch(0.
|
|
49
|
-
accentHover: 'oklch(0.
|
|
47
|
+
accent: 'oklch(0.55 0.125 84)',
|
|
48
|
+
accentHover: 'oklch(0.43 0.12 84)',
|
|
50
49
|
accentMuted: 'oklch(0.955 0.03 84)',
|
|
51
|
-
accentText: 'oklch(0.
|
|
52
|
-
accentBlock: 'oklch(0.40 0.06 84)',
|
|
50
|
+
accentText: 'oklch(0.43 0.12 84)',
|
|
53
51
|
},
|
|
54
52
|
writer: {
|
|
55
|
-
accent: 'oklch(0.
|
|
56
|
-
accentHover: 'oklch(0.
|
|
53
|
+
accent: 'oklch(0.55 0.125 102)',
|
|
54
|
+
accentHover: 'oklch(0.43 0.12 102)',
|
|
57
55
|
accentMuted: 'oklch(0.955 0.03 102)',
|
|
58
|
-
accentText: 'oklch(0.
|
|
59
|
-
accentBlock: 'oklch(0.40 0.06 102)',
|
|
56
|
+
accentText: 'oklch(0.43 0.12 102)',
|
|
60
57
|
},
|
|
61
58
|
manuscript: {
|
|
62
|
-
accent: 'oklch(0.
|
|
63
|
-
accentHover: 'oklch(0.
|
|
64
|
-
accentMuted: 'oklch(0.955 0.03
|
|
65
|
-
accentText: 'oklch(0.
|
|
66
|
-
accentBlock: 'oklch(0.40 0.06 124)',
|
|
59
|
+
accent: 'oklch(0.55 0.125 120)',
|
|
60
|
+
accentHover: 'oklch(0.43 0.12 120)',
|
|
61
|
+
accentMuted: 'oklch(0.955 0.03 120)',
|
|
62
|
+
accentText: 'oklch(0.43 0.12 120)',
|
|
67
63
|
},
|
|
68
64
|
book: {
|
|
69
|
-
accent: 'oklch(0.
|
|
70
|
-
accentHover: 'oklch(0.
|
|
71
|
-
accentMuted: 'oklch(0.955 0.03
|
|
72
|
-
accentText: 'oklch(0.
|
|
73
|
-
accentBlock: 'oklch(0.40 0.06 148)',
|
|
65
|
+
accent: 'oklch(0.55 0.125 138)',
|
|
66
|
+
accentHover: 'oklch(0.43 0.12 138)',
|
|
67
|
+
accentMuted: 'oklch(0.955 0.03 138)',
|
|
68
|
+
accentText: 'oklch(0.43 0.12 138)',
|
|
74
69
|
},
|
|
75
70
|
reports: {
|
|
76
|
-
accent: 'oklch(0.
|
|
77
|
-
accentHover: 'oklch(0.
|
|
78
|
-
accentMuted: 'oklch(0.955 0.03
|
|
79
|
-
accentText: 'oklch(0.
|
|
80
|
-
accentBlock: 'oklch(0.40 0.06 166)',
|
|
71
|
+
accent: 'oklch(0.55 0.125 156)',
|
|
72
|
+
accentHover: 'oklch(0.43 0.12 156)',
|
|
73
|
+
accentMuted: 'oklch(0.955 0.03 156)',
|
|
74
|
+
accentText: 'oklch(0.43 0.12 156)',
|
|
81
75
|
},
|
|
82
76
|
chart: {
|
|
83
|
-
accent: 'oklch(0.
|
|
84
|
-
accentHover: 'oklch(0.
|
|
85
|
-
accentMuted: 'oklch(0.955 0.03
|
|
86
|
-
accentText: 'oklch(0.
|
|
87
|
-
accentBlock: 'oklch(0.40 0.06 184)',
|
|
77
|
+
accent: 'oklch(0.55 0.125 174)',
|
|
78
|
+
accentHover: 'oklch(0.43 0.12 174)',
|
|
79
|
+
accentMuted: 'oklch(0.955 0.03 174)',
|
|
80
|
+
accentText: 'oklch(0.43 0.12 174)',
|
|
88
81
|
},
|
|
89
82
|
knowledge: {
|
|
90
|
-
accent: 'oklch(0.
|
|
91
|
-
accentHover: 'oklch(0.
|
|
92
|
-
accentMuted: 'oklch(0.955 0.03
|
|
93
|
-
accentText: 'oklch(0.
|
|
94
|
-
accentBlock: 'oklch(0.40 0.06 198)',
|
|
83
|
+
accent: 'oklch(0.55 0.125 192)',
|
|
84
|
+
accentHover: 'oklch(0.43 0.12 192)',
|
|
85
|
+
accentMuted: 'oklch(0.955 0.03 192)',
|
|
86
|
+
accentText: 'oklch(0.43 0.12 192)',
|
|
95
87
|
},
|
|
96
88
|
research: {
|
|
97
|
-
accent: 'oklch(0.
|
|
98
|
-
accentHover: 'oklch(0.
|
|
99
|
-
accentMuted: 'oklch(0.955 0.03
|
|
100
|
-
accentText: 'oklch(0.
|
|
101
|
-
accentBlock: 'oklch(0.40 0.06 222)',
|
|
89
|
+
accent: 'oklch(0.55 0.125 210)',
|
|
90
|
+
accentHover: 'oklch(0.43 0.12 210)',
|
|
91
|
+
accentMuted: 'oklch(0.955 0.03 210)',
|
|
92
|
+
accentText: 'oklch(0.43 0.12 210)',
|
|
102
93
|
},
|
|
103
94
|
sheets: {
|
|
104
|
-
accent: 'oklch(0.
|
|
105
|
-
accentHover: 'oklch(0.
|
|
106
|
-
accentMuted: 'oklch(0.955 0.03
|
|
107
|
-
accentText: 'oklch(0.
|
|
108
|
-
accentBlock: 'oklch(0.40 0.06 244)',
|
|
95
|
+
accent: 'oklch(0.55 0.125 228)',
|
|
96
|
+
accentHover: 'oklch(0.43 0.12 228)',
|
|
97
|
+
accentMuted: 'oklch(0.955 0.03 228)',
|
|
98
|
+
accentText: 'oklch(0.43 0.12 228)',
|
|
109
99
|
},
|
|
110
100
|
calendar: {
|
|
111
|
-
accent: 'oklch(0.
|
|
112
|
-
accentHover: 'oklch(0.
|
|
113
|
-
accentMuted: 'oklch(0.955 0.03
|
|
114
|
-
accentText: 'oklch(0.
|
|
115
|
-
accentBlock: 'oklch(0.40 0.06 258)',
|
|
101
|
+
accent: 'oklch(0.55 0.125 246)',
|
|
102
|
+
accentHover: 'oklch(0.43 0.12 246)',
|
|
103
|
+
accentMuted: 'oklch(0.955 0.03 246)',
|
|
104
|
+
accentText: 'oklch(0.43 0.12 246)',
|
|
116
105
|
},
|
|
117
106
|
desktop: {
|
|
118
|
-
accent: 'oklch(0.
|
|
119
|
-
accentHover: 'oklch(0.
|
|
120
|
-
accentMuted: 'oklch(0.955 0.03
|
|
121
|
-
accentText: 'oklch(0.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
107
|
+
accent: 'oklch(0.55 0.125 264)',
|
|
108
|
+
accentHover: 'oklch(0.43 0.12 264)',
|
|
109
|
+
accentMuted: 'oklch(0.955 0.03 264)',
|
|
110
|
+
accentText: 'oklch(0.43 0.12 264)',
|
|
111
|
+
},
|
|
112
|
+
whiteboard: {
|
|
113
|
+
accent: 'oklch(0.55 0.125 282)',
|
|
114
|
+
accentHover: 'oklch(0.43 0.12 282)',
|
|
115
|
+
accentMuted: 'oklch(0.955 0.03 282)',
|
|
116
|
+
accentText: 'oklch(0.43 0.12 282)',
|
|
117
|
+
},
|
|
118
|
+
gantt: {
|
|
119
|
+
accent: 'oklch(0.55 0.125 306)',
|
|
120
|
+
accentHover: 'oklch(0.43 0.12 306)',
|
|
121
|
+
accentMuted: 'oklch(0.955 0.03 306)',
|
|
122
|
+
accentText: 'oklch(0.43 0.12 306)',
|
|
130
123
|
},
|
|
131
124
|
review: {
|
|
132
|
-
accent: 'oklch(0.
|
|
133
|
-
accentHover: 'oklch(0.
|
|
134
|
-
accentMuted: 'oklch(0.955 0.03
|
|
135
|
-
accentText: 'oklch(0.
|
|
136
|
-
accentBlock: 'oklch(0.40 0.06 308)',
|
|
125
|
+
accent: 'oklch(0.55 0.125 300)',
|
|
126
|
+
accentHover: 'oklch(0.43 0.12 300)',
|
|
127
|
+
accentMuted: 'oklch(0.955 0.03 300)',
|
|
128
|
+
accentText: 'oklch(0.43 0.12 300)',
|
|
137
129
|
},
|
|
138
130
|
tasks: {
|
|
139
|
-
accent: 'oklch(0.
|
|
140
|
-
accentHover: 'oklch(0.
|
|
141
|
-
accentMuted: 'oklch(0.955 0.03
|
|
142
|
-
accentText: 'oklch(0.
|
|
143
|
-
accentBlock: 'oklch(0.40 0.06 324)',
|
|
131
|
+
accent: 'oklch(0.55 0.125 318)',
|
|
132
|
+
accentHover: 'oklch(0.43 0.12 318)',
|
|
133
|
+
accentMuted: 'oklch(0.955 0.03 318)',
|
|
134
|
+
accentText: 'oklch(0.43 0.12 318)',
|
|
144
135
|
},
|
|
145
136
|
assistant: {
|
|
146
|
-
accent: 'oklch(0.
|
|
147
|
-
accentHover: 'oklch(0.
|
|
148
|
-
accentMuted: 'oklch(0.955 0.03
|
|
149
|
-
accentText: 'oklch(0.
|
|
150
|
-
accentBlock: 'oklch(0.40 0.06 340)',
|
|
137
|
+
accent: 'oklch(0.55 0.125 336)',
|
|
138
|
+
accentHover: 'oklch(0.43 0.12 336)',
|
|
139
|
+
accentMuted: 'oklch(0.955 0.03 336)',
|
|
140
|
+
accentText: 'oklch(0.43 0.12 336)',
|
|
151
141
|
},
|
|
152
142
|
people: {
|
|
153
|
-
accent: 'oklch(0.
|
|
154
|
-
accentHover: 'oklch(0.
|
|
155
|
-
accentMuted: 'oklch(0.955 0.03
|
|
156
|
-
accentText: 'oklch(0.
|
|
157
|
-
accentBlock: 'oklch(0.40 0.06 356)',
|
|
143
|
+
accent: 'oklch(0.55 0.125 354)',
|
|
144
|
+
accentHover: 'oklch(0.43 0.12 354)',
|
|
145
|
+
accentMuted: 'oklch(0.955 0.03 354)',
|
|
146
|
+
accentText: 'oklch(0.43 0.12 354)',
|
|
158
147
|
},
|
|
159
148
|
}
|
|
160
149
|
|