@omercnet/paseo-omp 0.4.0-next.119.1 → 0.4.0-next.122.1
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/client/omp-config-styles.ts +284 -0
- package/client/omp-config-surface.tsx +1 -279
- package/client/omp-routing-editor.tsx +1 -1
- package/package.json +1 -1
- package/server/omp-models.ts +2 -6
- package/server/package-version.ts +1 -1
- package/server/protocol-violation-diagnostics.ts +1 -1
- package/server/provider/catalog.ts +2 -1
- package/server/provider/config-normalization.ts +1 -1
- package/server/provider/connection.ts +3 -3
- package/server/provider/host-tools.ts +2 -2
- package/server/provider/mcp-transport.ts +1 -1
- package/server/provider/omp-rpc-environment.ts +368 -0
- package/server/provider/omp-rpc-process.ts +119 -0
- package/server/provider/omp-rpc-protocol.ts +1949 -0
- package/server/provider/omp-rpc-transport.ts +1348 -0
- package/server/provider/omp-rpc-values.ts +31 -0
- package/server/provider/omp-rpc.ts +63 -3722
- package/server/provider/profile-providers.ts +2 -1
- package/server/provider/prompt-payload.ts +247 -0
- package/server/provider/registration.ts +2 -1
- package/server/provider/session.ts +13 -246
- package/server/provider/subsessions.ts +2 -3
- package/server/provider/timeline-projector.ts +1 -1
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import type { PluginSurfaceProps } from "@getpaseo/plugin/client";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import type { TextStyle, ViewStyle } from "react-native";
|
|
4
|
+
|
|
5
|
+
export interface OmpConfigStyles {
|
|
6
|
+
root: ViewStyle;
|
|
7
|
+
pageTitle: TextStyle;
|
|
8
|
+
topTabs: ViewStyle;
|
|
9
|
+
topTab: ViewStyle;
|
|
10
|
+
topTabActive: ViewStyle;
|
|
11
|
+
topTabLabel: TextStyle;
|
|
12
|
+
topTabLabelActive: TextStyle;
|
|
13
|
+
workspace: ViewStyle;
|
|
14
|
+
categoryRail: ViewStyle;
|
|
15
|
+
categoryList: ViewStyle;
|
|
16
|
+
categoryButton: ViewStyle;
|
|
17
|
+
categoryButtonActive: ViewStyle;
|
|
18
|
+
categoryLabel: TextStyle;
|
|
19
|
+
categoryLabelActive: TextStyle;
|
|
20
|
+
categoryContent: ViewStyle;
|
|
21
|
+
search: TextStyle;
|
|
22
|
+
sectionHeader: ViewStyle;
|
|
23
|
+
sectionHeaderRow: ViewStyle;
|
|
24
|
+
sectionTitle: TextStyle;
|
|
25
|
+
source: TextStyle;
|
|
26
|
+
muted: TextStyle;
|
|
27
|
+
error: TextStyle;
|
|
28
|
+
refresh: ViewStyle;
|
|
29
|
+
docsActions: ViewStyle;
|
|
30
|
+
docLink: ViewStyle;
|
|
31
|
+
docLinkPressed: ViewStyle;
|
|
32
|
+
docLinkText: TextStyle;
|
|
33
|
+
refreshLabel: TextStyle;
|
|
34
|
+
helpActions: ViewStyle;
|
|
35
|
+
helpReport: ViewStyle;
|
|
36
|
+
helpReportText: TextStyle;
|
|
37
|
+
helpLinkText: TextStyle;
|
|
38
|
+
card: ViewStyle;
|
|
39
|
+
cardHeader: ViewStyle;
|
|
40
|
+
cardTitle: TextStyle;
|
|
41
|
+
row: ViewStyle;
|
|
42
|
+
rowLabel: TextStyle;
|
|
43
|
+
rowValue: TextStyle;
|
|
44
|
+
setting: ViewStyle;
|
|
45
|
+
settingHeader: ViewStyle;
|
|
46
|
+
settingPath: TextStyle;
|
|
47
|
+
settingDescription: TextStyle;
|
|
48
|
+
settingValue: TextStyle;
|
|
49
|
+
collectionSummary: TextStyle;
|
|
50
|
+
chipList: ViewStyle;
|
|
51
|
+
chip: ViewStyle;
|
|
52
|
+
chipText: TextStyle;
|
|
53
|
+
recordList: ViewStyle;
|
|
54
|
+
recordRow: ViewStyle;
|
|
55
|
+
recordKey: TextStyle;
|
|
56
|
+
recordValue: TextStyle;
|
|
57
|
+
editorActions: ViewStyle;
|
|
58
|
+
editorAction: ViewStyle;
|
|
59
|
+
editorActionPrimary: ViewStyle;
|
|
60
|
+
editorActionText: TextStyle;
|
|
61
|
+
editorActionTextPrimary: TextStyle;
|
|
62
|
+
scalarInput: TextStyle;
|
|
63
|
+
resetAction: TextStyle;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function useConfigStyles(
|
|
67
|
+
theme: PluginSurfaceProps["theme"],
|
|
68
|
+
compact: boolean,
|
|
69
|
+
): OmpConfigStyles {
|
|
70
|
+
return useMemo(
|
|
71
|
+
() => ({
|
|
72
|
+
root: {
|
|
73
|
+
flex: 1,
|
|
74
|
+
gap: compact ? 10 : 14,
|
|
75
|
+
padding: compact ? 16 : 24,
|
|
76
|
+
backgroundColor: theme.colors.surface0,
|
|
77
|
+
},
|
|
78
|
+
pageTitle: {
|
|
79
|
+
color: theme.colors.foreground,
|
|
80
|
+
fontSize: compact ? 22 : 26,
|
|
81
|
+
fontWeight: "700",
|
|
82
|
+
},
|
|
83
|
+
topTabs: {
|
|
84
|
+
flexWrap: "wrap",
|
|
85
|
+
flexDirection: "row",
|
|
86
|
+
alignSelf: "flex-start",
|
|
87
|
+
gap: 4,
|
|
88
|
+
padding: 4,
|
|
89
|
+
borderWidth: 1,
|
|
90
|
+
borderColor: theme.colors.border,
|
|
91
|
+
borderRadius: 10,
|
|
92
|
+
backgroundColor: theme.colors.surface1,
|
|
93
|
+
},
|
|
94
|
+
topTab: {
|
|
95
|
+
paddingHorizontal: compact ? 10 : 14,
|
|
96
|
+
paddingVertical: 8,
|
|
97
|
+
borderRadius: 7,
|
|
98
|
+
},
|
|
99
|
+
topTabActive: { backgroundColor: theme.colors.accent },
|
|
100
|
+
topTabLabel: { color: theme.colors.foregroundMuted, fontSize: 13, fontWeight: "600" },
|
|
101
|
+
topTabLabelActive: { color: theme.colors.accentForeground },
|
|
102
|
+
workspace: {
|
|
103
|
+
flexDirection: compact ? "column" : "row",
|
|
104
|
+
alignItems: compact ? "stretch" : "flex-start",
|
|
105
|
+
gap: compact ? 10 : 18,
|
|
106
|
+
},
|
|
107
|
+
categoryRail: {
|
|
108
|
+
width: compact ? "100%" : 220,
|
|
109
|
+
gap: 10,
|
|
110
|
+
padding: 10,
|
|
111
|
+
borderWidth: 1,
|
|
112
|
+
borderColor: theme.colors.border,
|
|
113
|
+
borderRadius: 10,
|
|
114
|
+
backgroundColor: theme.colors.surface1,
|
|
115
|
+
},
|
|
116
|
+
categoryList: { gap: 4 },
|
|
117
|
+
categoryButton: { paddingHorizontal: 10, paddingVertical: 9, borderRadius: 7 },
|
|
118
|
+
categoryButtonActive: { backgroundColor: theme.colors.surface2 },
|
|
119
|
+
categoryLabel: { color: theme.colors.foregroundMuted, fontSize: 13, fontWeight: "500" },
|
|
120
|
+
categoryLabelActive: { color: theme.colors.foreground, fontWeight: "700" },
|
|
121
|
+
categoryContent: { flex: compact ? undefined : 1, minWidth: 0, gap: 10 },
|
|
122
|
+
search: {
|
|
123
|
+
color: theme.colors.foreground,
|
|
124
|
+
borderWidth: 1,
|
|
125
|
+
borderColor: theme.colors.border,
|
|
126
|
+
borderRadius: 8,
|
|
127
|
+
backgroundColor: theme.colors.surface0,
|
|
128
|
+
paddingHorizontal: 10,
|
|
129
|
+
paddingVertical: 8,
|
|
130
|
+
fontSize: 13,
|
|
131
|
+
},
|
|
132
|
+
sectionHeader: { gap: 4, marginTop: compact ? 2 : 4 },
|
|
133
|
+
sectionHeaderRow: { flexDirection: "row", alignItems: "center", flexWrap: "wrap", gap: 10 },
|
|
134
|
+
sectionTitle: {
|
|
135
|
+
color: theme.colors.foreground,
|
|
136
|
+
fontSize: compact ? 16 : 18,
|
|
137
|
+
fontWeight: "600",
|
|
138
|
+
},
|
|
139
|
+
source: { color: theme.colors.foregroundMuted, fontSize: 12 },
|
|
140
|
+
muted: { color: theme.colors.foregroundMuted, fontSize: 13 },
|
|
141
|
+
error: { color: theme.colors.statusDanger, fontSize: 13 },
|
|
142
|
+
docsActions: { flexDirection: "row", alignItems: "center", flexWrap: "wrap", gap: 6 },
|
|
143
|
+
docLink: {
|
|
144
|
+
paddingHorizontal: 8,
|
|
145
|
+
paddingVertical: 5,
|
|
146
|
+
borderWidth: 1,
|
|
147
|
+
borderColor: theme.colors.border,
|
|
148
|
+
borderRadius: 7,
|
|
149
|
+
backgroundColor: theme.colors.surface1,
|
|
150
|
+
},
|
|
151
|
+
docLinkPressed: { opacity: 0.72 },
|
|
152
|
+
docLinkText: { color: theme.colors.accent, fontSize: 12, fontWeight: "600" },
|
|
153
|
+
refresh: {
|
|
154
|
+
flexDirection: "row",
|
|
155
|
+
alignItems: "center",
|
|
156
|
+
gap: 6,
|
|
157
|
+
paddingHorizontal: 10,
|
|
158
|
+
paddingVertical: 6,
|
|
159
|
+
borderWidth: 1,
|
|
160
|
+
borderColor: theme.colors.border,
|
|
161
|
+
borderRadius: 8,
|
|
162
|
+
backgroundColor: theme.colors.surface1,
|
|
163
|
+
},
|
|
164
|
+
refreshLabel: { color: theme.colors.foreground, fontSize: 13 },
|
|
165
|
+
helpActions: {
|
|
166
|
+
flexDirection: "row",
|
|
167
|
+
alignItems: "center",
|
|
168
|
+
flexWrap: "wrap",
|
|
169
|
+
gap: 8,
|
|
170
|
+
},
|
|
171
|
+
helpReport: {
|
|
172
|
+
maxWidth: "100%",
|
|
173
|
+
padding: compact ? 10 : 12,
|
|
174
|
+
borderWidth: 1,
|
|
175
|
+
borderColor: theme.colors.border,
|
|
176
|
+
borderRadius: 10,
|
|
177
|
+
backgroundColor: theme.colors.surface1,
|
|
178
|
+
},
|
|
179
|
+
helpReportText: {
|
|
180
|
+
color: theme.colors.foreground,
|
|
181
|
+
fontSize: compact ? 11 : 12,
|
|
182
|
+
lineHeight: compact ? 16 : 18,
|
|
183
|
+
},
|
|
184
|
+
helpLinkText: { color: theme.colors.accent, fontSize: 13, fontWeight: "600" },
|
|
185
|
+
cardHeader: {
|
|
186
|
+
flexDirection: "row",
|
|
187
|
+
alignItems: "center",
|
|
188
|
+
justifyContent: "space-between",
|
|
189
|
+
flexWrap: "wrap",
|
|
190
|
+
gap: 8,
|
|
191
|
+
},
|
|
192
|
+
card: {
|
|
193
|
+
gap: 8,
|
|
194
|
+
padding: compact ? 10 : 12,
|
|
195
|
+
borderWidth: 1,
|
|
196
|
+
borderColor: theme.colors.border,
|
|
197
|
+
borderRadius: 10,
|
|
198
|
+
backgroundColor: theme.colors.surface1,
|
|
199
|
+
},
|
|
200
|
+
cardTitle: { color: theme.colors.foreground, fontSize: 14, fontWeight: "600" },
|
|
201
|
+
row: { flexDirection: "row", gap: 8, flexWrap: "wrap" },
|
|
202
|
+
rowLabel: { color: theme.colors.foregroundMuted, fontSize: 13 },
|
|
203
|
+
rowValue: { color: theme.colors.foreground, fontSize: 13, flexShrink: 1 },
|
|
204
|
+
setting: {
|
|
205
|
+
gap: 5,
|
|
206
|
+
paddingVertical: 10,
|
|
207
|
+
borderTopWidth: 1,
|
|
208
|
+
borderTopColor: theme.colors.border,
|
|
209
|
+
},
|
|
210
|
+
settingHeader: {
|
|
211
|
+
flexDirection: "row",
|
|
212
|
+
alignItems: "baseline",
|
|
213
|
+
justifyContent: "space-between",
|
|
214
|
+
gap: 12,
|
|
215
|
+
},
|
|
216
|
+
settingPath: { color: theme.colors.foregroundMuted, fontSize: 11, flexShrink: 1 },
|
|
217
|
+
settingDescription: { color: theme.colors.foregroundMuted, fontSize: 12, lineHeight: 17 },
|
|
218
|
+
settingValue: { color: theme.colors.foreground, fontSize: 13, fontWeight: "600" },
|
|
219
|
+
collectionSummary: { color: theme.colors.foregroundMuted, fontSize: 12 },
|
|
220
|
+
chipList: { flexDirection: "row", flexWrap: "wrap", gap: 6 },
|
|
221
|
+
chip: {
|
|
222
|
+
paddingHorizontal: 8,
|
|
223
|
+
paddingVertical: 5,
|
|
224
|
+
borderWidth: 1,
|
|
225
|
+
borderColor: theme.colors.border,
|
|
226
|
+
borderRadius: 999,
|
|
227
|
+
backgroundColor: theme.colors.surface2,
|
|
228
|
+
},
|
|
229
|
+
chipText: { color: theme.colors.foreground, fontSize: 12 },
|
|
230
|
+
recordList: { gap: 6 },
|
|
231
|
+
recordRow: {
|
|
232
|
+
flexDirection: compact ? "column" : "row",
|
|
233
|
+
alignItems: compact ? "flex-start" : "baseline",
|
|
234
|
+
gap: compact ? 2 : 12,
|
|
235
|
+
paddingVertical: 5,
|
|
236
|
+
},
|
|
237
|
+
recordKey: {
|
|
238
|
+
width: compact ? undefined : 150,
|
|
239
|
+
color: theme.colors.foregroundMuted,
|
|
240
|
+
fontSize: 12,
|
|
241
|
+
fontWeight: "600",
|
|
242
|
+
},
|
|
243
|
+
recordValue: { flex: 1, color: theme.colors.foreground, fontSize: 12 },
|
|
244
|
+
editorActions: {
|
|
245
|
+
flexDirection: "row",
|
|
246
|
+
alignItems: "center",
|
|
247
|
+
justifyContent: "flex-end",
|
|
248
|
+
gap: 8,
|
|
249
|
+
padding: 10,
|
|
250
|
+
borderWidth: 1,
|
|
251
|
+
borderColor: theme.colors.border,
|
|
252
|
+
borderRadius: 10,
|
|
253
|
+
backgroundColor: theme.colors.surface1,
|
|
254
|
+
},
|
|
255
|
+
editorAction: {
|
|
256
|
+
paddingHorizontal: 12,
|
|
257
|
+
paddingVertical: 8,
|
|
258
|
+
borderWidth: 1,
|
|
259
|
+
borderColor: theme.colors.border,
|
|
260
|
+
borderRadius: 8,
|
|
261
|
+
},
|
|
262
|
+
editorActionPrimary: {
|
|
263
|
+
backgroundColor: theme.colors.accent,
|
|
264
|
+
borderColor: theme.colors.accent,
|
|
265
|
+
},
|
|
266
|
+
editorActionText: { color: theme.colors.foreground, fontSize: 13, fontWeight: "600" },
|
|
267
|
+
editorActionTextPrimary: { color: theme.colors.accentForeground },
|
|
268
|
+
scalarInput: {
|
|
269
|
+
minWidth: 180,
|
|
270
|
+
maxWidth: 420,
|
|
271
|
+
color: theme.colors.foreground,
|
|
272
|
+
borderWidth: 1,
|
|
273
|
+
borderColor: theme.colors.border,
|
|
274
|
+
borderRadius: 7,
|
|
275
|
+
backgroundColor: theme.colors.surface0,
|
|
276
|
+
paddingHorizontal: 9,
|
|
277
|
+
paddingVertical: 6,
|
|
278
|
+
fontSize: 13,
|
|
279
|
+
},
|
|
280
|
+
resetAction: { color: theme.colors.accent, fontSize: 12, fontWeight: "600" },
|
|
281
|
+
}),
|
|
282
|
+
[compact, theme],
|
|
283
|
+
);
|
|
284
|
+
}
|
|
@@ -10,7 +10,6 @@ import { ExternalLink } from "@getpaseo/plugin/client/ui";
|
|
|
10
10
|
import { useIsMutating, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
11
11
|
import type { ReactNode } from "react";
|
|
12
12
|
import { useCallback, useMemo, useState } from "react";
|
|
13
|
-
import type { TextStyle, ViewStyle } from "react-native";
|
|
14
13
|
import { Pressable, ScrollView, Switch, Text, View } from "react-native";
|
|
15
14
|
import type { ComposerPillSettings } from "../shared/composer-pill-settings";
|
|
16
15
|
import { listOmpConfig, type OmpConfig } from "../shared/omp-config";
|
|
@@ -31,6 +30,7 @@ import { getOmpProviderHealth, type OmpProviderHealth } from "../shared/provider
|
|
|
31
30
|
import { getOmpSupportReport, OMP_SUPPORT_ISSUE_URL } from "../shared/support-diagnostics";
|
|
32
31
|
import { ComposerPillSettingsSection } from "./composer-pill-settings";
|
|
33
32
|
import { openOmpExternalUrl } from "./external-url";
|
|
33
|
+
import { type OmpConfigStyles, useConfigStyles } from "./omp-config-styles";
|
|
34
34
|
import { type OmpConfigSurfaceView as SurfaceView, surfaceViewsForScope } from "./omp-config-views";
|
|
35
35
|
import {
|
|
36
36
|
documentationForSettingCategory,
|
|
@@ -74,284 +74,6 @@ const CONFIG_POLL_MS = 30_000;
|
|
|
74
74
|
const HEALTH_QUERY_KEY = ["paseo-omp", "provider-health"] as const;
|
|
75
75
|
const PROVIDERS_QUERY_KEY = ["paseo-omp", "provider-snapshot"] as const;
|
|
76
76
|
|
|
77
|
-
export interface OmpConfigStyles {
|
|
78
|
-
root: ViewStyle;
|
|
79
|
-
pageTitle: TextStyle;
|
|
80
|
-
topTabs: ViewStyle;
|
|
81
|
-
topTab: ViewStyle;
|
|
82
|
-
topTabActive: ViewStyle;
|
|
83
|
-
topTabLabel: TextStyle;
|
|
84
|
-
topTabLabelActive: TextStyle;
|
|
85
|
-
workspace: ViewStyle;
|
|
86
|
-
categoryRail: ViewStyle;
|
|
87
|
-
categoryList: ViewStyle;
|
|
88
|
-
categoryButton: ViewStyle;
|
|
89
|
-
categoryButtonActive: ViewStyle;
|
|
90
|
-
categoryLabel: TextStyle;
|
|
91
|
-
categoryLabelActive: TextStyle;
|
|
92
|
-
categoryContent: ViewStyle;
|
|
93
|
-
search: TextStyle;
|
|
94
|
-
sectionHeader: ViewStyle;
|
|
95
|
-
sectionHeaderRow: ViewStyle;
|
|
96
|
-
sectionTitle: TextStyle;
|
|
97
|
-
source: TextStyle;
|
|
98
|
-
muted: TextStyle;
|
|
99
|
-
error: TextStyle;
|
|
100
|
-
refresh: ViewStyle;
|
|
101
|
-
docsActions: ViewStyle;
|
|
102
|
-
docLink: ViewStyle;
|
|
103
|
-
docLinkPressed: ViewStyle;
|
|
104
|
-
docLinkText: TextStyle;
|
|
105
|
-
refreshLabel: TextStyle;
|
|
106
|
-
helpActions: ViewStyle;
|
|
107
|
-
helpReport: ViewStyle;
|
|
108
|
-
helpReportText: TextStyle;
|
|
109
|
-
helpLinkText: TextStyle;
|
|
110
|
-
card: ViewStyle;
|
|
111
|
-
cardHeader: ViewStyle;
|
|
112
|
-
cardTitle: TextStyle;
|
|
113
|
-
row: ViewStyle;
|
|
114
|
-
rowLabel: TextStyle;
|
|
115
|
-
rowValue: TextStyle;
|
|
116
|
-
setting: ViewStyle;
|
|
117
|
-
settingHeader: ViewStyle;
|
|
118
|
-
settingPath: TextStyle;
|
|
119
|
-
settingDescription: TextStyle;
|
|
120
|
-
settingValue: TextStyle;
|
|
121
|
-
collectionSummary: TextStyle;
|
|
122
|
-
chipList: ViewStyle;
|
|
123
|
-
chip: ViewStyle;
|
|
124
|
-
chipText: TextStyle;
|
|
125
|
-
recordList: ViewStyle;
|
|
126
|
-
recordRow: ViewStyle;
|
|
127
|
-
recordKey: TextStyle;
|
|
128
|
-
recordValue: TextStyle;
|
|
129
|
-
editorActions: ViewStyle;
|
|
130
|
-
editorAction: ViewStyle;
|
|
131
|
-
editorActionPrimary: ViewStyle;
|
|
132
|
-
editorActionText: TextStyle;
|
|
133
|
-
editorActionTextPrimary: TextStyle;
|
|
134
|
-
scalarInput: TextStyle;
|
|
135
|
-
resetAction: TextStyle;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function useConfigStyles(theme: PluginSurfaceProps["theme"], compact: boolean): OmpConfigStyles {
|
|
139
|
-
return useMemo(
|
|
140
|
-
() => ({
|
|
141
|
-
root: {
|
|
142
|
-
flex: 1,
|
|
143
|
-
gap: compact ? 10 : 14,
|
|
144
|
-
padding: compact ? 16 : 24,
|
|
145
|
-
backgroundColor: theme.colors.surface0,
|
|
146
|
-
},
|
|
147
|
-
pageTitle: {
|
|
148
|
-
color: theme.colors.foreground,
|
|
149
|
-
fontSize: compact ? 22 : 26,
|
|
150
|
-
fontWeight: "700",
|
|
151
|
-
},
|
|
152
|
-
topTabs: {
|
|
153
|
-
flexWrap: "wrap",
|
|
154
|
-
flexDirection: "row",
|
|
155
|
-
alignSelf: "flex-start",
|
|
156
|
-
gap: 4,
|
|
157
|
-
padding: 4,
|
|
158
|
-
borderWidth: 1,
|
|
159
|
-
borderColor: theme.colors.border,
|
|
160
|
-
borderRadius: 10,
|
|
161
|
-
backgroundColor: theme.colors.surface1,
|
|
162
|
-
},
|
|
163
|
-
topTab: {
|
|
164
|
-
paddingHorizontal: compact ? 10 : 14,
|
|
165
|
-
paddingVertical: 8,
|
|
166
|
-
borderRadius: 7,
|
|
167
|
-
},
|
|
168
|
-
topTabActive: { backgroundColor: theme.colors.accent },
|
|
169
|
-
topTabLabel: { color: theme.colors.foregroundMuted, fontSize: 13, fontWeight: "600" },
|
|
170
|
-
topTabLabelActive: { color: theme.colors.accentForeground },
|
|
171
|
-
workspace: {
|
|
172
|
-
flexDirection: compact ? "column" : "row",
|
|
173
|
-
alignItems: compact ? "stretch" : "flex-start",
|
|
174
|
-
gap: compact ? 10 : 18,
|
|
175
|
-
},
|
|
176
|
-
categoryRail: {
|
|
177
|
-
width: compact ? "100%" : 220,
|
|
178
|
-
gap: 10,
|
|
179
|
-
padding: 10,
|
|
180
|
-
borderWidth: 1,
|
|
181
|
-
borderColor: theme.colors.border,
|
|
182
|
-
borderRadius: 10,
|
|
183
|
-
backgroundColor: theme.colors.surface1,
|
|
184
|
-
},
|
|
185
|
-
categoryList: { gap: 4 },
|
|
186
|
-
categoryButton: { paddingHorizontal: 10, paddingVertical: 9, borderRadius: 7 },
|
|
187
|
-
categoryButtonActive: { backgroundColor: theme.colors.surface2 },
|
|
188
|
-
categoryLabel: { color: theme.colors.foregroundMuted, fontSize: 13, fontWeight: "500" },
|
|
189
|
-
categoryLabelActive: { color: theme.colors.foreground, fontWeight: "700" },
|
|
190
|
-
categoryContent: { flex: compact ? undefined : 1, minWidth: 0, gap: 10 },
|
|
191
|
-
search: {
|
|
192
|
-
color: theme.colors.foreground,
|
|
193
|
-
borderWidth: 1,
|
|
194
|
-
borderColor: theme.colors.border,
|
|
195
|
-
borderRadius: 8,
|
|
196
|
-
backgroundColor: theme.colors.surface0,
|
|
197
|
-
paddingHorizontal: 10,
|
|
198
|
-
paddingVertical: 8,
|
|
199
|
-
fontSize: 13,
|
|
200
|
-
},
|
|
201
|
-
sectionHeader: { gap: 4, marginTop: compact ? 2 : 4 },
|
|
202
|
-
sectionHeaderRow: { flexDirection: "row", alignItems: "center", flexWrap: "wrap", gap: 10 },
|
|
203
|
-
sectionTitle: {
|
|
204
|
-
color: theme.colors.foreground,
|
|
205
|
-
fontSize: compact ? 16 : 18,
|
|
206
|
-
fontWeight: "600",
|
|
207
|
-
},
|
|
208
|
-
source: { color: theme.colors.foregroundMuted, fontSize: 12 },
|
|
209
|
-
muted: { color: theme.colors.foregroundMuted, fontSize: 13 },
|
|
210
|
-
error: { color: theme.colors.statusDanger, fontSize: 13 },
|
|
211
|
-
docsActions: { flexDirection: "row", alignItems: "center", flexWrap: "wrap", gap: 6 },
|
|
212
|
-
docLink: {
|
|
213
|
-
paddingHorizontal: 8,
|
|
214
|
-
paddingVertical: 5,
|
|
215
|
-
borderWidth: 1,
|
|
216
|
-
borderColor: theme.colors.border,
|
|
217
|
-
borderRadius: 7,
|
|
218
|
-
backgroundColor: theme.colors.surface1,
|
|
219
|
-
},
|
|
220
|
-
docLinkPressed: { opacity: 0.72 },
|
|
221
|
-
docLinkText: { color: theme.colors.accent, fontSize: 12, fontWeight: "600" },
|
|
222
|
-
refresh: {
|
|
223
|
-
flexDirection: "row",
|
|
224
|
-
alignItems: "center",
|
|
225
|
-
gap: 6,
|
|
226
|
-
paddingHorizontal: 10,
|
|
227
|
-
paddingVertical: 6,
|
|
228
|
-
borderWidth: 1,
|
|
229
|
-
borderColor: theme.colors.border,
|
|
230
|
-
borderRadius: 8,
|
|
231
|
-
backgroundColor: theme.colors.surface1,
|
|
232
|
-
},
|
|
233
|
-
refreshLabel: { color: theme.colors.foreground, fontSize: 13 },
|
|
234
|
-
helpActions: {
|
|
235
|
-
flexDirection: "row",
|
|
236
|
-
alignItems: "center",
|
|
237
|
-
flexWrap: "wrap",
|
|
238
|
-
gap: 8,
|
|
239
|
-
},
|
|
240
|
-
helpReport: {
|
|
241
|
-
maxWidth: "100%",
|
|
242
|
-
padding: compact ? 10 : 12,
|
|
243
|
-
borderWidth: 1,
|
|
244
|
-
borderColor: theme.colors.border,
|
|
245
|
-
borderRadius: 10,
|
|
246
|
-
backgroundColor: theme.colors.surface1,
|
|
247
|
-
},
|
|
248
|
-
helpReportText: {
|
|
249
|
-
color: theme.colors.foreground,
|
|
250
|
-
fontSize: compact ? 11 : 12,
|
|
251
|
-
lineHeight: compact ? 16 : 18,
|
|
252
|
-
},
|
|
253
|
-
helpLinkText: { color: theme.colors.accent, fontSize: 13, fontWeight: "600" },
|
|
254
|
-
cardHeader: {
|
|
255
|
-
flexDirection: "row",
|
|
256
|
-
alignItems: "center",
|
|
257
|
-
justifyContent: "space-between",
|
|
258
|
-
flexWrap: "wrap",
|
|
259
|
-
gap: 8,
|
|
260
|
-
},
|
|
261
|
-
card: {
|
|
262
|
-
gap: 8,
|
|
263
|
-
padding: compact ? 10 : 12,
|
|
264
|
-
borderWidth: 1,
|
|
265
|
-
borderColor: theme.colors.border,
|
|
266
|
-
borderRadius: 10,
|
|
267
|
-
backgroundColor: theme.colors.surface1,
|
|
268
|
-
},
|
|
269
|
-
cardTitle: { color: theme.colors.foreground, fontSize: 14, fontWeight: "600" },
|
|
270
|
-
row: { flexDirection: "row", gap: 8, flexWrap: "wrap" },
|
|
271
|
-
rowLabel: { color: theme.colors.foregroundMuted, fontSize: 13 },
|
|
272
|
-
rowValue: { color: theme.colors.foreground, fontSize: 13, flexShrink: 1 },
|
|
273
|
-
setting: {
|
|
274
|
-
gap: 5,
|
|
275
|
-
paddingVertical: 10,
|
|
276
|
-
borderTopWidth: 1,
|
|
277
|
-
borderTopColor: theme.colors.border,
|
|
278
|
-
},
|
|
279
|
-
settingHeader: {
|
|
280
|
-
flexDirection: "row",
|
|
281
|
-
alignItems: "baseline",
|
|
282
|
-
justifyContent: "space-between",
|
|
283
|
-
gap: 12,
|
|
284
|
-
},
|
|
285
|
-
settingPath: { color: theme.colors.foregroundMuted, fontSize: 11, flexShrink: 1 },
|
|
286
|
-
settingDescription: { color: theme.colors.foregroundMuted, fontSize: 12, lineHeight: 17 },
|
|
287
|
-
settingValue: { color: theme.colors.foreground, fontSize: 13, fontWeight: "600" },
|
|
288
|
-
collectionSummary: { color: theme.colors.foregroundMuted, fontSize: 12 },
|
|
289
|
-
chipList: { flexDirection: "row", flexWrap: "wrap", gap: 6 },
|
|
290
|
-
chip: {
|
|
291
|
-
paddingHorizontal: 8,
|
|
292
|
-
paddingVertical: 5,
|
|
293
|
-
borderWidth: 1,
|
|
294
|
-
borderColor: theme.colors.border,
|
|
295
|
-
borderRadius: 999,
|
|
296
|
-
backgroundColor: theme.colors.surface2,
|
|
297
|
-
},
|
|
298
|
-
chipText: { color: theme.colors.foreground, fontSize: 12 },
|
|
299
|
-
recordList: { gap: 6 },
|
|
300
|
-
recordRow: {
|
|
301
|
-
flexDirection: compact ? "column" : "row",
|
|
302
|
-
alignItems: compact ? "flex-start" : "baseline",
|
|
303
|
-
gap: compact ? 2 : 12,
|
|
304
|
-
paddingVertical: 5,
|
|
305
|
-
},
|
|
306
|
-
recordKey: {
|
|
307
|
-
width: compact ? undefined : 150,
|
|
308
|
-
color: theme.colors.foregroundMuted,
|
|
309
|
-
fontSize: 12,
|
|
310
|
-
fontWeight: "600",
|
|
311
|
-
},
|
|
312
|
-
recordValue: { flex: 1, color: theme.colors.foreground, fontSize: 12 },
|
|
313
|
-
editorActions: {
|
|
314
|
-
flexDirection: "row",
|
|
315
|
-
alignItems: "center",
|
|
316
|
-
justifyContent: "flex-end",
|
|
317
|
-
gap: 8,
|
|
318
|
-
padding: 10,
|
|
319
|
-
borderWidth: 1,
|
|
320
|
-
borderColor: theme.colors.border,
|
|
321
|
-
borderRadius: 10,
|
|
322
|
-
backgroundColor: theme.colors.surface1,
|
|
323
|
-
},
|
|
324
|
-
editorAction: {
|
|
325
|
-
paddingHorizontal: 12,
|
|
326
|
-
paddingVertical: 8,
|
|
327
|
-
borderWidth: 1,
|
|
328
|
-
borderColor: theme.colors.border,
|
|
329
|
-
borderRadius: 8,
|
|
330
|
-
},
|
|
331
|
-
editorActionPrimary: {
|
|
332
|
-
backgroundColor: theme.colors.accent,
|
|
333
|
-
borderColor: theme.colors.accent,
|
|
334
|
-
},
|
|
335
|
-
editorActionText: { color: theme.colors.foreground, fontSize: 13, fontWeight: "600" },
|
|
336
|
-
editorActionTextPrimary: { color: theme.colors.accentForeground },
|
|
337
|
-
scalarInput: {
|
|
338
|
-
minWidth: 180,
|
|
339
|
-
maxWidth: 420,
|
|
340
|
-
color: theme.colors.foreground,
|
|
341
|
-
borderWidth: 1,
|
|
342
|
-
borderColor: theme.colors.border,
|
|
343
|
-
borderRadius: 7,
|
|
344
|
-
backgroundColor: theme.colors.surface0,
|
|
345
|
-
paddingHorizontal: 9,
|
|
346
|
-
paddingVertical: 6,
|
|
347
|
-
fontSize: 13,
|
|
348
|
-
},
|
|
349
|
-
resetAction: { color: theme.colors.accent, fontSize: 12, fontWeight: "600" },
|
|
350
|
-
}),
|
|
351
|
-
[compact, theme],
|
|
352
|
-
);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
77
|
function KeyValueRow({
|
|
356
78
|
styles,
|
|
357
79
|
label,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
type OmpSetting,
|
|
9
9
|
parseOmpStructuredSettingValue,
|
|
10
10
|
} from "../shared/omp-settings";
|
|
11
|
-
import type { OmpConfigStyles } from "./omp-config-
|
|
11
|
+
import type { OmpConfigStyles } from "./omp-config-styles";
|
|
12
12
|
import { OmpModelPicker } from "./omp-model-picker";
|
|
13
13
|
import {
|
|
14
14
|
aliasChoices,
|
package/package.json
CHANGED
package/server/omp-models.ts
CHANGED
|
@@ -3,12 +3,8 @@ import { isAbsolute } from "node:path";
|
|
|
3
3
|
import type { RpcInput } from "@getpaseo/plugin";
|
|
4
4
|
import type { listOmpModels, OmpModelCandidate, OmpModelListResult } from "../shared/omp-models";
|
|
5
5
|
import { currentOmpEnvironment } from "./paths";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
OmpRpcRuntime,
|
|
9
|
-
type OmpRuntime,
|
|
10
|
-
type OmpRuntimeSession,
|
|
11
|
-
} from "./provider/omp-rpc";
|
|
6
|
+
import { OmpRpcRuntime, type OmpRuntime, type OmpRuntimeSession } from "./provider/omp-rpc";
|
|
7
|
+
import type { OmpModel } from "./provider/omp-rpc-protocol";
|
|
12
8
|
import { OmpCleanupFailure, OmpPublicDataSerializer, OmpPublicError } from "./provider/security";
|
|
13
9
|
|
|
14
10
|
function mapOmpModel(model: OmpModel, serializer: OmpPublicDataSerializer): OmpModelCandidate {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Release Please keeps this bundle-safe constant aligned with package.json. */
|
|
2
|
-
export const PASEO_OMP_PACKAGE_VERSION = "0.4.0-next.
|
|
2
|
+
export const PASEO_OMP_PACKAGE_VERSION = "0.4.0-next.122.1"; // x-release-please-version
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
type OmpProtocolViolationCategory,
|
|
5
5
|
type OmpProtocolViolationDiagnostic,
|
|
6
6
|
type OmpProtocolViolationReason,
|
|
7
|
-
} from "./provider/omp-rpc";
|
|
7
|
+
} from "./provider/omp-rpc-protocol";
|
|
8
8
|
|
|
9
9
|
export interface OmpProtocolViolationSummary {
|
|
10
10
|
category: OmpProtocolViolationCategory;
|
|
@@ -6,7 +6,8 @@ import type {
|
|
|
6
6
|
ProviderThinkingOption,
|
|
7
7
|
} from "@getpaseo/plugin/server/provider";
|
|
8
8
|
import type { NormalizedOmpStartOptions } from "./config-normalization";
|
|
9
|
-
import type {
|
|
9
|
+
import type { OmpRuntime, OmpRuntimeSession } from "./omp-rpc";
|
|
10
|
+
import type { OmpModel } from "./omp-rpc-protocol";
|
|
10
11
|
import {
|
|
11
12
|
configuredOutputRedactionValues,
|
|
12
13
|
OmpCleanupFailure,
|
|
@@ -16,14 +16,14 @@ import type {
|
|
|
16
16
|
import { discoverOmpCatalog } from "./catalog";
|
|
17
17
|
import { normalizeOmpCatalogOptions } from "./config-normalization";
|
|
18
18
|
import type { OmpMcpConnector } from "./host-tools";
|
|
19
|
+
import type { OmpRuntime } from "./omp-rpc";
|
|
19
20
|
import {
|
|
20
21
|
OMP_RPC_BOUND_DIMENSIONS,
|
|
21
22
|
OMP_RPC_DIAGNOSTIC_COMMANDS,
|
|
22
23
|
type OmpRpcBoundDimension,
|
|
23
24
|
type OmpRpcDiagnosticCommand,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./omp-rpc";
|
|
25
|
+
} from "./omp-rpc-protocol";
|
|
26
|
+
import { OmpRpcResponseLimitError } from "./omp-rpc-transport";
|
|
27
27
|
import {
|
|
28
28
|
boundedJsonBytes,
|
|
29
29
|
isOmpCleanupFailure,
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
type ConnectedMcpToolPage,
|
|
15
15
|
connectMcpServer,
|
|
16
16
|
} from "./mcp-transport";
|
|
17
|
+
import type { OmpRuntimeSession } from "./omp-rpc";
|
|
17
18
|
import {
|
|
18
19
|
OMP_HOST_TOOL_FRAME_LIMIT_ERROR,
|
|
19
20
|
type OmpHostToolCall,
|
|
20
21
|
type OmpHostToolDefinition,
|
|
21
22
|
type OmpHostToolResult,
|
|
22
|
-
type OmpRuntimeSession,
|
|
23
23
|
parseOmpHostToolAgentResult,
|
|
24
|
-
} from "./omp-rpc";
|
|
24
|
+
} from "./omp-rpc-protocol";
|
|
25
25
|
import {
|
|
26
26
|
boundedJsonBytes,
|
|
27
27
|
OmpCleanupFailure,
|