@omercnet/paseo-omp 5.4.0-next.394.1 → 5.4.0-next.395.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/OVERVIEW.md +1 -1
- package/client/composer-pill-settings.tsx +0 -5
- package/index.client.tsx +0 -21
- package/index.server.ts +0 -3
- package/package.json +1 -1
- package/server/package-version.ts +1 -1
- package/shared/composer-pill-settings.ts +0 -2
- package/client/sessions-popover.tsx +0 -78
- package/server/sessions.ts +0 -25
- package/shared/sessions.ts +0 -19
package/OVERVIEW.md
CHANGED
|
@@ -9,7 +9,7 @@ OMP adds an agent provider for the OMP coding agent, plus an OMP sidebar and wor
|
|
|
9
9
|
## What the sidebar and panel do
|
|
10
10
|
|
|
11
11
|
- Edit OMP settings and project configuration for the default store or a named profile.
|
|
12
|
-
- Manage OMP's own plugins, and view quota history, memory, hub processes
|
|
12
|
+
- Manage OMP's own plugins, and view quota history, memory, hub processes and a support report.
|
|
13
13
|
- List the logins in OMP's own credential store, add or sign one out, spend a banked reset, and steer how OMP balances agents across them, from the **Accounts** tab.
|
|
14
14
|
- List the MCP servers OMP connects to, add, test, enable, disable or remove them, and authorize a remote server through your browser, from the **MCPs** tab.
|
|
15
15
|
- An **MCP** composer control runs OMP's MCP management in the current session, with authorization prompts shown in the chat.
|
|
@@ -35,11 +35,6 @@ const PILLS: readonly { key: ComposerPillKey; label: string; hint: string }[] =
|
|
|
35
35
|
label: "Memory",
|
|
36
36
|
hint: "Retained facts for the current workspace",
|
|
37
37
|
},
|
|
38
|
-
{
|
|
39
|
-
key: "sessions",
|
|
40
|
-
label: "Sessions",
|
|
41
|
-
hint: "Recent OMP prompts for the current workspace",
|
|
42
|
-
},
|
|
43
38
|
{
|
|
44
39
|
key: "quota",
|
|
45
40
|
label: "Quota",
|
package/index.client.tsx
CHANGED
|
@@ -30,7 +30,6 @@ import {
|
|
|
30
30
|
quotaSummaryForProvider,
|
|
31
31
|
} from "./client/quota-state";
|
|
32
32
|
import { OmpRuleNoticeRow } from "./client/rule-notice";
|
|
33
|
-
import { SessionsPopover } from "./client/sessions-popover";
|
|
34
33
|
import {
|
|
35
34
|
CONFIG_SCREEN_ID,
|
|
36
35
|
configParamsFromStore,
|
|
@@ -70,7 +69,6 @@ type PillEntry = {
|
|
|
70
69
|
quotaSeverity: QuotaSeverity;
|
|
71
70
|
hub?: PluginButtonRegistration;
|
|
72
71
|
memory?: PluginButtonRegistration;
|
|
73
|
-
sessions?: PluginButtonRegistration;
|
|
74
72
|
quota?: PluginButtonRegistration;
|
|
75
73
|
mcp?: PluginButtonRegistration;
|
|
76
74
|
};
|
|
@@ -83,7 +81,6 @@ function samePillSettings(
|
|
|
83
81
|
left?.mcp === right.mcp &&
|
|
84
82
|
left.hub === right.hub &&
|
|
85
83
|
left.memory === right.memory &&
|
|
86
|
-
left.sessions === right.sessions &&
|
|
87
84
|
left.quota === right.quota
|
|
88
85
|
);
|
|
89
86
|
}
|
|
@@ -91,7 +88,6 @@ function samePillSettings(
|
|
|
91
88
|
function removePills(entry: PillEntry): void {
|
|
92
89
|
entry.hub?.remove();
|
|
93
90
|
entry.memory?.remove();
|
|
94
|
-
entry.sessions?.remove();
|
|
95
91
|
entry.quota?.remove();
|
|
96
92
|
entry.mcp?.remove();
|
|
97
93
|
}
|
|
@@ -301,23 +297,6 @@ export default function contribute(client: PluginClientContext) {
|
|
|
301
297
|
entry.memory = undefined;
|
|
302
298
|
}
|
|
303
299
|
|
|
304
|
-
if (settings.sessions) {
|
|
305
|
-
entry.sessions ??= client.addComposerPill({
|
|
306
|
-
id: "sessions",
|
|
307
|
-
workspaceId: entry.workspaceId,
|
|
308
|
-
agentId: agent.id,
|
|
309
|
-
button: {
|
|
310
|
-
title: "OMP session history",
|
|
311
|
-
icon: "History",
|
|
312
|
-
label: "Sessions",
|
|
313
|
-
behavior: { kind: "popover", Content: SessionsPopover },
|
|
314
|
-
},
|
|
315
|
-
});
|
|
316
|
-
} else {
|
|
317
|
-
entry.sessions?.remove();
|
|
318
|
-
entry.sessions = undefined;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
300
|
if (settings.quota) {
|
|
322
301
|
entry.quota ??= client.addComposerPill({
|
|
323
302
|
id: "quota",
|
package/index.server.ts
CHANGED
|
@@ -32,7 +32,6 @@ import { OmpSessionLimit } from "./server/provider/session-limit";
|
|
|
32
32
|
import { resolveGetOmpProviderHealth } from "./server/provider-diagnostics";
|
|
33
33
|
import { resolveListOmpQuotas } from "./server/quota";
|
|
34
34
|
import { registerOmpRuleNotices } from "./server/rule-notices";
|
|
35
|
-
import { resolveListOmpSessions } from "./server/sessions";
|
|
36
35
|
import {
|
|
37
36
|
OmpSubagentControlRegistry,
|
|
38
37
|
resolveCancelOmpSubagent,
|
|
@@ -75,7 +74,6 @@ import { getOmpProviderHealth } from "./shared/provider-diagnostics";
|
|
|
75
74
|
import { getOmpImage } from "./shared/provider-image";
|
|
76
75
|
import { providerLaunchSettings } from "./shared/provider-launch-settings";
|
|
77
76
|
import { listOmpQuotas } from "./shared/quota";
|
|
78
|
-
import { listOmpSessions } from "./shared/sessions";
|
|
79
77
|
import { cancelOmpSubagent, steerOmpSubagent } from "./shared/subagents";
|
|
80
78
|
import { getOmpSupportReport } from "./shared/support-diagnostics";
|
|
81
79
|
|
|
@@ -185,7 +183,6 @@ export default function contribute(server: PluginServerContext) {
|
|
|
185
183
|
scoped(({ authId }) => mcps.cancelAuth(authId)),
|
|
186
184
|
);
|
|
187
185
|
server.handle(listOmpMemory, scoped(resolveListOmpMemory));
|
|
188
|
-
server.handle(listOmpSessions, scoped(resolveListOmpSessions));
|
|
189
186
|
server.handle(listOmpConfig, scoped(resolveListOmpConfig));
|
|
190
187
|
server.handle(listOmpModels, scoped(resolveListOmpModels));
|
|
191
188
|
server.handle(listOmpPlugins, scoped(resolveListOmpPlugins));
|
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Release Please keeps this bundle-safe constant aligned with package.json. */
|
|
2
|
-
export const PASEO_OMP_PACKAGE_VERSION = "5.4.0-next.
|
|
2
|
+
export const PASEO_OMP_PACKAGE_VERSION = "5.4.0-next.395.1"; // x-release-please-version
|
|
@@ -5,7 +5,6 @@ export const DEFAULT_COMPOSER_PILL_SETTINGS = {
|
|
|
5
5
|
mcp: true,
|
|
6
6
|
hub: true,
|
|
7
7
|
memory: true,
|
|
8
|
-
sessions: true,
|
|
9
8
|
quota: true,
|
|
10
9
|
} as const;
|
|
11
10
|
|
|
@@ -13,7 +12,6 @@ export const composerPillSettingsSchema = z.object({
|
|
|
13
12
|
mcp: z.boolean().default(DEFAULT_COMPOSER_PILL_SETTINGS.mcp),
|
|
14
13
|
hub: z.boolean().default(DEFAULT_COMPOSER_PILL_SETTINGS.hub),
|
|
15
14
|
memory: z.boolean().default(DEFAULT_COMPOSER_PILL_SETTINGS.memory),
|
|
16
|
-
sessions: z.boolean().default(DEFAULT_COMPOSER_PILL_SETTINGS.sessions),
|
|
17
15
|
quota: z.boolean().default(DEFAULT_COMPOSER_PILL_SETTINGS.quota),
|
|
18
16
|
});
|
|
19
17
|
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { type PluginButtonContentProps, useAgent, useRpc } from "@getpaseo/plugin/client";
|
|
2
|
-
import { useQuery } from "@tanstack/react-query";
|
|
3
|
-
import { useMemo } from "react";
|
|
4
|
-
import { ScrollView, Text, View } from "react-native";
|
|
5
|
-
import { storeForProvider, storeLabel } from "../shared/omp-store";
|
|
6
|
-
import { listOmpSessions } from "../shared/sessions";
|
|
7
|
-
import { ompStoreKey } from "./omp-store-state";
|
|
8
|
-
|
|
9
|
-
const SESSIONS_POLL_MS = 20_000;
|
|
10
|
-
const PREVIEW_LIMIT = 20;
|
|
11
|
-
|
|
12
|
-
function age(updatedAt: string): string {
|
|
13
|
-
const seconds = Math.max(0, Math.floor((Date.now() - Date.parse(updatedAt)) / 1_000));
|
|
14
|
-
if (seconds < 60) return `${seconds}s ago`;
|
|
15
|
-
const minutes = Math.floor(seconds / 60);
|
|
16
|
-
if (minutes < 60) return `${minutes}m ago`;
|
|
17
|
-
const hours = Math.floor(minutes / 60);
|
|
18
|
-
if (hours < 24) return `${hours}h ago`;
|
|
19
|
-
return `${Math.floor(hours / 24)}d ago`;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function SessionsPopover(props: PluginButtonContentProps) {
|
|
23
|
-
const { theme, layout } = props;
|
|
24
|
-
const agentId = props.context === "agent" ? props.agentId : "";
|
|
25
|
-
const agent = useAgent(agentId, ({ cwd, provider }) => ({ cwd, provider }));
|
|
26
|
-
const cwd = agent?.cwd ?? "";
|
|
27
|
-
const store = storeForProvider(agent?.provider);
|
|
28
|
-
const loadSessions = useRpc(listOmpSessions);
|
|
29
|
-
const sessions = useQuery({
|
|
30
|
-
queryKey: ["paseo-omp", "sessions", ompStoreKey(store), cwd],
|
|
31
|
-
queryFn: () => loadSessions({ cwd, store }),
|
|
32
|
-
enabled: cwd.length > 0,
|
|
33
|
-
refetchInterval: SESSIONS_POLL_MS,
|
|
34
|
-
});
|
|
35
|
-
const styles = useMemo(
|
|
36
|
-
() => ({
|
|
37
|
-
root: { gap: 8, padding: 4, maxHeight: 360, width: 320 },
|
|
38
|
-
muted: { color: theme.colors.foregroundMuted, fontSize: 13 },
|
|
39
|
-
error: { color: theme.colors.statusDanger, fontSize: 13 },
|
|
40
|
-
row: {
|
|
41
|
-
gap: 2,
|
|
42
|
-
padding: layout.compact ? 8 : 10,
|
|
43
|
-
borderWidth: 1,
|
|
44
|
-
borderColor: theme.colors.border,
|
|
45
|
-
borderRadius: 8,
|
|
46
|
-
backgroundColor: theme.colors.surface1,
|
|
47
|
-
},
|
|
48
|
-
title: { color: theme.colors.foreground, fontSize: 13, fontWeight: "600" as const },
|
|
49
|
-
prompt: { color: theme.colors.foreground, fontSize: 13 },
|
|
50
|
-
detail: { color: theme.colors.foregroundMuted, fontSize: 11 },
|
|
51
|
-
}),
|
|
52
|
-
[layout.compact, theme],
|
|
53
|
-
);
|
|
54
|
-
|
|
55
|
-
if (sessions.isLoading) return <Text style={styles.muted}>Loading OMP sessions…</Text>;
|
|
56
|
-
if (sessions.error) return <Text style={styles.error}>Could not read OMP sessions.</Text>;
|
|
57
|
-
const items = sessions.data?.sessions ?? [];
|
|
58
|
-
if (items.length === 0)
|
|
59
|
-
return <Text style={styles.muted}>No OMP sessions for this directory.</Text>;
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<ScrollView contentContainerStyle={styles.root}>
|
|
63
|
-
<Text style={styles.muted}>{storeLabel(store)}</Text>
|
|
64
|
-
{items.slice(0, PREVIEW_LIMIT).map((entry) => (
|
|
65
|
-
<View key={entry.sessionId} style={styles.row}>
|
|
66
|
-
{entry.title ? <Text style={styles.title}>{entry.title}</Text> : null}
|
|
67
|
-
<Text style={styles.prompt} numberOfLines={3}>
|
|
68
|
-
{entry.prompt}
|
|
69
|
-
</Text>
|
|
70
|
-
{entry.updatedAt ? <Text style={styles.detail}>{age(entry.updatedAt)}</Text> : null}
|
|
71
|
-
</View>
|
|
72
|
-
))}
|
|
73
|
-
{items.length > PREVIEW_LIMIT ? (
|
|
74
|
-
<Text style={styles.muted}>{`Showing ${PREVIEW_LIMIT} of ${items.length}`}</Text>
|
|
75
|
-
) : null}
|
|
76
|
-
</ScrollView>
|
|
77
|
-
);
|
|
78
|
-
}
|
package/server/sessions.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { RpcInput } from "@getpaseo/plugin";
|
|
2
|
-
import type { listOmpSessions, OmpSessionEntry } from "../shared/sessions";
|
|
3
|
-
import { currentOmpEnvironment } from "./paths";
|
|
4
|
-
import { listOmpSessionDescriptors } from "./provider/session-descriptors";
|
|
5
|
-
|
|
6
|
-
const ROW_LIMIT = 100;
|
|
7
|
-
|
|
8
|
-
// OMP records prompt-history rows only from its interactive editor, never in RPC mode, so
|
|
9
|
-
// Paseo-driven sessions are listed from their session files instead.
|
|
10
|
-
export async function resolveListOmpSessions({
|
|
11
|
-
cwd,
|
|
12
|
-
}: RpcInput<typeof listOmpSessions>): Promise<{ sessions: OmpSessionEntry[] }> {
|
|
13
|
-
const descriptors = await listOmpSessionDescriptors(
|
|
14
|
-
{ cwd, limit: ROW_LIMIT },
|
|
15
|
-
currentOmpEnvironment(),
|
|
16
|
-
);
|
|
17
|
-
return {
|
|
18
|
-
sessions: descriptors.map((descriptor) => ({
|
|
19
|
-
sessionId: descriptor.id,
|
|
20
|
-
title: descriptor.title ?? null,
|
|
21
|
-
prompt: descriptor.firstPromptPreview ?? descriptor.lastPromptPreview ?? "",
|
|
22
|
-
updatedAt: descriptor.updatedAt ?? null,
|
|
23
|
-
})),
|
|
24
|
-
};
|
|
25
|
-
}
|
package/shared/sessions.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineRpc } from "@getpaseo/plugin";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { OmpStoreSchema } from "./omp-store";
|
|
4
|
-
|
|
5
|
-
const CwdSchema = z.string().min(1).max(4_096);
|
|
6
|
-
|
|
7
|
-
export const OmpSessionEntrySchema = z.object({
|
|
8
|
-
sessionId: z.string(),
|
|
9
|
-
title: z.string().nullable(),
|
|
10
|
-
prompt: z.string(),
|
|
11
|
-
updatedAt: z.string().nullable(),
|
|
12
|
-
});
|
|
13
|
-
export type OmpSessionEntry = z.infer<typeof OmpSessionEntrySchema>;
|
|
14
|
-
|
|
15
|
-
export const listOmpSessions = defineRpc({
|
|
16
|
-
name: "paseo-omp.list-sessions",
|
|
17
|
-
input: z.object({ store: OmpStoreSchema.optional(), cwd: CwdSchema }),
|
|
18
|
-
output: z.object({ sessions: z.array(OmpSessionEntrySchema) }),
|
|
19
|
-
});
|