@omercnet/paseo-context-mode 1.2.4 → 2.0.0

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 CHANGED
@@ -1,4 +1,4 @@
1
- Context Mode connects Paseo agents to [Context Mode](https://github.com/mksglu/context-mode), a separate tool that runs as an MCP server and gives agents tools for indexing and searching project knowledge. The plugin bundles Context Mode 1.0.169 and adds a screen with health, savings, and a knowledge search and indexing panel. It supports the Claude, Codex, Copilot, Cursor, OpenCode, Pi, and OMP providers and leaves others unchanged. It needs Paseo 0.9 to 0.11 and Node.js 24 or later on the daemon host.
1
+ Context Mode connects Paseo agents to [Context Mode](https://github.com/mksglu/context-mode), a separate tool that runs as an MCP server and gives agents tools for indexing and searching project knowledge. The plugin bundles Context Mode 1.0.169 and adds a screen with health, savings, and a knowledge search and indexing panel. It supports the Claude, Codex, Copilot, Cursor, OpenCode, Pi, and OMP providers and leaves others unchanged. It needs Paseo `^0.11.0` and Node.js 24 or later on the daemon host.
2
2
 
3
3
  By default, creating a supported agent adds a Context Mode MCP server to it. Existing agents do not get the server, and opening or resuming a session only sets two environment variables that name the provider and its data folder, with a separate folder per provider. Turning off automatic activation stops the plugin adding these from then on, and it does not remove them from agents that already have them. A server you configured yourself is kept. By default the plugin also reads each provider's config files and skips its own addition when Context Mode is already registered there.
4
4
 
package/README.md CHANGED
@@ -32,9 +32,9 @@ These previews were captured from an isolated Paseo test daemon with Context Mod
32
32
  - Provides provider- and project-scoped knowledge search, local-path indexing, URL fetch/index, indexed-source visibility, and an Insight link. Knowledge covers the built-in providers and every configured provider that resolves to a Context Mode store, using that provider's own `env`.
33
33
  - Requires an explicit provider, project path, scope review, and second confirmation before purge. Purge remains delegated to Context Mode's own MCP contract.
34
34
  - Returns structured install and provider-specific upgrade argv for review; Paseo never executes those commands automatically.
35
- - On Paseo 0.11, registers the `context-mode` screen with URL-persisted `section`, `agentId`, and `workspaceId` params. Composer pills open Knowledge using the selected host's agent provider and working directory. URL params never carry paths or queries.
35
+ - Registers the `context-mode` screen with URL-persisted `section`, `agentId`, and `workspaceId` params. Composer pills open Knowledge using the selected host's agent provider and working directory. URL params never carry paths or queries.
36
36
  - Providers that Context Mode does not support, and missing agents or mismatched workspaces, require explicit scope selection.
37
- - Adds a live Healthy/Failing sidebar footer row on Paseo 0.11, reusing the screen's health data. Paseo 0.9/0.10 retain the static sidebar, Savings surface, and unscoped composer shortcut.
37
+ - Adds a live Healthy/Failing sidebar footer row, reusing the screen's health data.
38
38
 
39
39
  Context Mode currently couples sessions, stats, and indexed content under `CONTEXT_MODE_DIR`. Until upstream supports separate session and content roots, this plugin keeps storage provider-scoped instead of risking cross-provider session contamination.
40
40
 
@@ -57,7 +57,7 @@ Update an npm installation to the latest published release:
57
57
  paseo plugin update context-mode
58
58
  ```
59
59
 
60
- The npm install and update flow requires Paseo 0.9 or 0.10.1.
60
+ The npm install and update flow requires Paseo `^0.11.0` with npm available on the daemon host.
61
61
 
62
62
 
63
63
  ## Commands and limits
@@ -50,14 +50,10 @@ export function contributeContextModeComposerPills(client: PluginClientContext):
50
50
  behavior: {
51
51
  kind: "action",
52
52
  onPress() {
53
- if (typeof client.addScreen === "function" && typeof client.openScreen === "function") {
54
- client.openScreen({
55
- screenId: "context-mode",
56
- params: { section: "knowledge", agentId: agent.id, workspaceId: agent.workspaceId },
57
- });
58
- } else {
59
- client.openSurface("context-mode");
60
- }
53
+ client.openScreen({
54
+ screenId: "context-mode",
55
+ params: { section: "knowledge", agentId: agent.id, workspaceId: agent.workspaceId },
56
+ });
61
57
  },
62
58
  },
63
59
  },
package/index.client.tsx CHANGED
@@ -1,26 +1,15 @@
1
- import type {
2
- PluginClientContext,
3
- PluginScreenProps,
4
- PluginSurfaceProps,
5
- } from "@getpaseo/plugin/client";
6
- import { SidebarRow } from "@getpaseo/plugin/client/ui";
1
+ import type { PluginClientContext, PluginScreenProps } from "@getpaseo/plugin/client";
7
2
  import { ContextModeFooter } from "./client/context-mode-footer";
8
3
  import { contributeContextModeComposerPills } from "./client/context-mode-pill";
9
4
  import { ContextModeSurface } from "./client/context-mode-surface";
10
5
  import { ContextModeSettingsScreen } from "./client/settings-screen";
11
6
 
12
7
  export default function contribute(client: PluginClientContext) {
13
- function Surface(props: PluginSurfaceProps) {
14
- return (
15
- <ContextModeSurface {...props} onOpenSettings={() => client.openSettings("context-mode")} />
16
- );
17
- }
18
8
  function Screen(props: PluginScreenProps) {
19
9
  return (
20
10
  <ContextModeSurface {...props} onOpenSettings={() => client.openSettings("context-mode")} />
21
11
  );
22
12
  }
23
- const screens = typeof client.addScreen === "function" && typeof client.openScreen === "function";
24
13
 
25
14
  const cleanups = [
26
15
  contributeContextModeComposerPills(client),
@@ -30,44 +19,20 @@ export default function contribute(client: PluginClientContext) {
30
19
  icon: "Settings",
31
20
  Component: ContextModeSettingsScreen,
32
21
  }),
33
- ...(screens
34
- ? [
35
- client.addScreen({ id: "context-mode", title: "Context Mode", Component: Screen }),
36
- ...(typeof client.addSidebarFooterItem === "function" && typeof SidebarRow === "function"
37
- ? [
38
- client.addSidebarFooterItem({
39
- id: "context-mode",
40
- title: "Context Mode",
41
- Component: ContextModeFooter,
42
- }),
43
- ]
44
- : [
45
- client.addSidebarItem({
46
- id: "context-mode",
47
- title: "Context Mode",
48
- icon: "Gauge",
49
- surface: "context-mode",
50
- }),
51
- ]),
52
- ]
53
- : [
54
- client.addSurface("context-mode", Surface),
55
- client.addSidebarItem({
56
- id: "context-mode",
57
- title: "Context Mode",
58
- icon: "Gauge",
59
- surface: "context-mode",
60
- }),
61
- ]),
22
+ client.addScreen({ id: "context-mode", title: "Context Mode", Component: Screen }),
23
+ client.addSidebarFooterItem({
24
+ id: "context-mode",
25
+ title: "Context Mode",
26
+ Component: ContextModeFooter,
27
+ }),
62
28
  client.addCommandCenterItem({
63
29
  id: "open-context-mode",
64
30
  title: "Open Context Mode",
65
31
  icon: "Gauge",
66
32
  keywords: ["context", "savings", "tokens", "knowledge", "search", "doctor", "health"],
67
33
  context: "global",
68
- onSelect({ openSurface, openScreen }) {
69
- if (screens && typeof openScreen === "function") openScreen({ screenId: "context-mode" });
70
- else openSurface("context-mode");
34
+ onSelect({ openScreen }) {
35
+ openScreen({ screenId: "context-mode" });
71
36
  },
72
37
  }),
73
38
  ];
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-context-mode",
3
- "version": "1.2.4",
3
+ "version": "2.0.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@omercnet/paseo-context-mode",
9
- "version": "1.2.4",
9
+ "version": "2.0.0",
10
10
  "dependencies": {
11
11
  "context-mode": "1.0.169"
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-context-mode",
3
- "version": "1.2.4",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "description": "Provider-aware Context Mode health, savings, and MCP activation for Paseo.",
6
6
  "license": "MIT",
package/paseo-plugin.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "id": "context-mode",
3
3
  "description": "Provider-aware Context Mode health, savings, and MCP activation for Paseo.",
4
- "requirements": { "paseo": "^0.9.0 || ^0.10.0 || ^0.11.0" }
4
+ "requirements": { "paseo": "^0.11.0" }
5
5
  }