@omercnet/paseo-context-mode 3.1.4-next.382.1 → 3.1.4-next.434.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 +3 -3
- package/README.md +13 -15
- package/client/analytics-dashboard.tsx +745 -613
- package/client/controls.tsx +295 -0
- package/client/diagnostics-section.tsx +178 -0
- package/client/{context-mode-footer.tsx → footer.tsx} +22 -20
- package/client/knowledge-section.tsx +725 -697
- package/client/{context-mode-pill.tsx → pill.tsx} +5 -5
- package/client/scoped-knowledge-section.tsx +14 -20
- package/client/screen-scope.ts +12 -6
- package/client/settings-screen.tsx +94 -97
- package/client/surface.tsx +377 -0
- package/index.client.tsx +3 -3
- package/index.server.ts +18 -27
- package/npm-shrinkwrap.json +6 -1745
- package/package.json +3 -3
- package/server/actions.ts +91 -102
- package/server/analytics.ts +257 -308
- package/server/binary.ts +119 -94
- package/server/database.ts +463 -0
- package/server/handlers.ts +40 -95
- package/server/integration.ts +230 -361
- package/server/knowledge.ts +65 -137
- package/server/mcp-process.ts +135 -86
- package/server/storage-discovery.ts +46 -199
- package/shared/actions.ts +2 -27
- package/shared/analytics.ts +60 -33
- package/shared/contracts.ts +16 -47
- package/shared/knowledge.ts +62 -65
- package/shared/providers.ts +62 -0
- package/shared/settings.ts +33 -18
- package/client/actions-section.tsx +0 -621
- package/client/context-mode-surface.tsx +0 -444
- package/server/context-mode-db.ts +0 -481
- package/shared/index.ts +0 -5
package/OVERVIEW.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.
|
|
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 sandboxed execution, indexing, and searching project knowledge. The plugin bundles Context Mode 2.1.4 and adds a screen with health, savings, recent sessions, and a knowledge search, indexing, and forget panel. It adds Context Mode to new Claude, Codex, Copilot, and OpenCode agents. Pi runs Context Mode as its own extension, so the plugin only detects it and shows Pi's sessions; OMP has no Context Mode 2 integration, so the plugin only reports whether OMP has its own. It needs Paseo `^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0` and Node.js 24.15 or later on the daemon host.
|
|
2
2
|
|
|
3
|
-
By default, creating a supported agent adds a Context Mode MCP server to it. Existing agents do not get the server
|
|
3
|
+
By default, creating a supported agent adds a Context Mode MCP server to it. Existing agents do not get the server. Context Mode keeps one database per project, shared by every agent working in it. Turning off automatic activation stops the plugin adding the server from then on, and it does not remove it from agents that already have it. 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
|
|
|
5
|
-
The plugin starts the Context Mode process on the daemon host. It reads Context Mode's local databases read-only to build the savings dashboard. Indexing a path reads files under it on the host into Context Mode's knowledge store, and indexing a URL makes Context Mode download that page from the host.
|
|
5
|
+
The plugin starts the Context Mode process on the daemon host. It reads Context Mode's local databases read-only to build the savings dashboard and a list of recent agent sessions, and it can show a session's resume state. Indexing a path reads files under it on the host into Context Mode's knowledge store, and indexing a URL makes Context Mode download that page from the host. Forgetting a source or a project deletes indexed data, and forgetting a session deletes its recorded activity, each after a second confirmation. Context Mode is bundled and updates with the plugin. What the agents' Context Mode tools do is up to Context Mode.
|
package/README.md
CHANGED
|
@@ -20,27 +20,25 @@ These previews were captured from an isolated Paseo test daemon with Context Mod
|
|
|
20
20
|
|
|
21
21
|
## Current scope
|
|
22
22
|
|
|
23
|
-
- Bundles Context Mode
|
|
24
|
-
-
|
|
25
|
-
- Shows Context Mode version, structured diagnostics, provider activation,
|
|
26
|
-
- Reads Context Mode
|
|
27
|
-
- Injects the bundled stdio MCP server into new
|
|
28
|
-
-
|
|
29
|
-
- Preserves existing MCP servers and explicit environment overrides.
|
|
23
|
+
- Bundles Context Mode 2.1.4 and runs it by default. To bring your own, set an absolute path to a Context Mode 2.x executable (or its `cli.mjs`) under Runtime in the plugin settings; clearing it returns to the bundled runtime. `PATH` is not searched.
|
|
24
|
+
- Settings saved by earlier versions migrate automatically: an explicitly configured binary path is kept, and everything else returns to the bundled runtime.
|
|
25
|
+
- Shows Context Mode version, structured diagnostics, provider activation, lifetime savings, activity, per-agent and per-project breakdowns, categories, and indexed sources. The Diagnostics tab runs `ctx_doctor` against a plugin-owned probe store (`<PASEO_HOME>/plugin-data/context-mode/probe`) so it never writes into your real project databases.
|
|
26
|
+
- Reads Context Mode 2 `context.db` files (`<data dir>/projects/<key>/context.db`, schema `user_version` 6) in query-only mode, honors active WAL state, isolates corrupt or locked databases, and reports partial coverage instead of mutating schemas. The data directory is `CONTEXT_MODE_DATA_DIR`, else `~/.context-mode`. Injected agents get the daemon's or their Paseo provider's data directory, never a per-agent override, so the dashboard reads what they write.
|
|
27
|
+
- Injects the bundled stdio MCP server (`context-mode server --agent <id>`, with the data directory pinned to the one the dashboard reads) into new Claude, Codex, Copilot, and OpenCode agents through Paseo's `agent.create` hook. Pi and OMP agents never get an injected server: Context Mode 2 runs inside Pi only as its own extension (`pi install npm:context-mode`), and has no OMP integration (upstream keeps OMP on 1.0.169). Coverage shows each as Native when its own install is found (Pi's `settings.json` packages, OMP's `mcp.json`). Pi records its sessions in the shared store, so they appear in Savings with Resume state and Forget; OMP's 1.x sessions are not shown. Cursor, which Context Mode 2 dropped, is shown as unsupported.
|
|
28
|
+
- Preserves existing MCP servers and the agent's environment, except that the injected server pins `CONTEXT_MODE_DATA_DIR`.
|
|
30
29
|
- Prefers detected native provider integrations to avoid duplicate `ctx_*` tools.
|
|
31
|
-
-
|
|
32
|
-
- Provides
|
|
33
|
-
- Requires an explicit provider, project path, scope review, and second confirmation before
|
|
34
|
-
- Returns structured install and provider-specific upgrade argv for review; Paseo never executes those commands automatically.
|
|
30
|
+
- Context Mode 2 keeps one database per project, shared by every agent, so storage is no longer isolated per provider.
|
|
31
|
+
- Provides project-scoped knowledge search (worktree or project scope, relevance or timeline order, with a More results button that follows upstream's page cursor), local-path indexing, URL indexing, indexed-source visibility with per-source forget, and a Recent sessions list on the dashboard. A session row can show Context Mode's `ctx_resume` state block (the last task, changed files and open errors an agent gets after a compact or restart) or forget that session. Index labels are chosen by Context Mode (the project-relative path or the final URL), so only content indexed by an agent carries a custom label. The agent selected in Knowledge labels the Context Mode process and the project path decides which database is used, unless that agent's Paseo provider sets its own `CONTEXT_MODE_DATA_DIR`. The dashboard reads those provider data directories too. Plugin-initiated calls share one fixed `paseo-context-mode` session, which the sessions list leaves out.
|
|
32
|
+
- Requires an explicit provider, project path, scope review, and second confirmation before forgetting a project, session, or source. Deletion remains delegated to Context Mode's own `ctx_purge` contract.
|
|
35
33
|
- 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
34
|
- Providers that Context Mode does not support, and missing agents or mismatched workspaces, require explicit scope selection.
|
|
37
35
|
- Adds a live Healthy/Failing sidebar footer row, reusing the screen's health data.
|
|
38
36
|
|
|
39
|
-
Context Mode
|
|
37
|
+
Upgrading from 3.x: Context Mode 2 is a rewrite with a new storage layout. The plugin only reads 2.x databases; existing 1.x data under provider directories is left untouched and is not shown. Agents created by an older plugin version keep a saved MCP entry that points at the removed 1.x entry file, so recreate them to pick up the new server. A custom runtime path saved in 3.x is kept; if it points at a 1.x install, the status reports it as unsupported until you clear it or point it at a 2.x binary. Saved agents hold absolute paths to Node and the runtime, so also recreate them after moving either. Run Context Mode's own `context-mode setup` if you also use it natively.
|
|
40
38
|
|
|
41
39
|
## Prerequisites
|
|
42
40
|
|
|
43
|
-
Node.js 24 or later is required by this plugin. The bundled Context Mode runtime is installed with the plugin. Native provider integrations
|
|
41
|
+
Node.js 24.15 or later is required by this plugin and by Context Mode 2. The bundled Context Mode runtime is installed with the plugin. Native provider integrations remain recommended because generic MCP injection provides tools but cannot add provider-native lifecycle hooks.
|
|
44
42
|
|
|
45
43
|
The plugin depends on the upstream `context-mode` npm package under the Elastic License 2.0. See [NOTICE](NOTICE).
|
|
46
44
|
## Install
|
|
@@ -62,9 +60,9 @@ The npm install and update flow requires Paseo `^0.12.0 || ^0.13.0 || ^0.14.0 ||
|
|
|
62
60
|
|
|
63
61
|
## Commands and limits
|
|
64
62
|
|
|
65
|
-
The daemon launches Context Mode directly with an argv array and no shell. MCP calls cover diagnostics,
|
|
63
|
+
The daemon launches Context Mode directly with an argv array and no shell. MCP calls cover diagnostics, search, resume, indexing (path or URL), and explicitly confirmed purge. Each subprocess has a 192 KiB combined output cap and a per-tool timeout: 20 seconds for search and resume, 30 for doctor, and 120 for indexing and purge. The version and tool-list handshake has a 12-second timeout. Status is cached for 10 seconds; the provider coverage check reads config files only and starts no process.
|
|
66
64
|
|
|
67
|
-
|
|
65
|
+
With the bundled runtime, Context Mode updates arrive with plugin updates. The doctor therefore never suggests `ctx_upgrade` or `context-mode setup`: an outdated bundled runtime is a warning whose fix is to update the plugin, and the host-config (D3) and hook (D5) checks, which fail for every agent Paseo injects, are shown as warnings without a fix. A configured binary that is missing, not executable, or older than 2.x is reported as unavailable; the plugin never silently falls back to the bundled one. Missing executables, launch failures, timeouts, protocol errors, output limits, unsupported database schemas, locked databases, and partial database scans are surfaced as typed states or warnings.
|
|
68
66
|
|
|
69
67
|
## Development
|
|
70
68
|
|