@dotdotgod/context 0.2.27 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +24 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -4,7 +4,27 @@
4
4
 
5
5
  Local-first execution, ingestion, and retrieval runtime for dotdotgod adapters.
6
6
 
7
- The package exposes a local stdio MCP server and reusable core modules. Claude Code and Codex start the server through their adapter packages. Pi calls the same core through native extension tools and does not start an MCP child. Only dotdotgod execution tools use the capture and indexing behavior described here; the adapters do not transparently intercept ordinary host Bash or shell tools.
7
+ Use this package to keep large command output, project files, and fetched text available as bounded local evidence across agent turns. Small results return directly; larger results become searchable excerpts with source provenance. Durable ingestion jobs and opaque session resume support work that outlives one tool call.
8
+
9
+ Claude Code and Codex start the bundled stdio MCP server through their adapter packages. Pi calls the same core through native extension tools. Direct integrators can use the server, hooks, and typed core exports on Node.js 22.5 or newer.
10
+
11
+ ```bash
12
+ npm install @dotdotgod/context
13
+ ```
14
+
15
+ ```bash
16
+ dotdotgod-context
17
+ ```
18
+
19
+ The runtime policies apply to dotdotgod execution and retrieval tools. Each host's built-in shell keeps its native behavior.
20
+
21
+ ## What Changes
22
+
23
+ - **Large output remains useful.** The runtime indexes oversized results locally and returns only the excerpts relevant to the next question.
24
+ - **Evidence keeps its identity.** Project files, command output, and fetched resources carry distinct provenance and trust metadata.
25
+ - **Longer processing becomes resumable.** Durable ingestion jobs expose bounded queue, status, cancellation, and restart recovery.
26
+ - **Retrieved text stays evidence.** Search marks indexed content with `instructionAuthority: "none"` so callers can treat it as data rather than project instructions.
27
+ - **One core supports different agent hosts.** MCP adapters and Pi-native tools share the same execution, storage, retrieval, fetch, and diagnostic behavior.
8
28
 
9
29
  ## Tool Surface
10
30
 
@@ -55,7 +75,7 @@ The store is local ignored state, not maintained project truth. Sources can use
55
75
  4. reranks deterministically using title, path, and term-proximity signals;
56
76
  5. returns bounded excerpts with ranking and provenance evidence.
57
77
 
58
- This is bounded indexing and retrieval, not LLM summarization. Search does not add execution output to the maintained documentation graph automatically.
78
+ This bounded retrieval keeps indexed runtime material separate from maintained project truth. Search returns source excerpts and does not add execution output to the maintained documentation graph.
59
79
 
60
80
  ## Structural Ingestion
61
81
 
@@ -104,7 +124,7 @@ The application-level fetch policy:
104
124
  - supports identity, gzip, deflate, and Brotli encodings and rejects unsupported encodings;
105
125
  - accepts bounded text-oriented MIME types and fails closed for unsupported types or HTTP statuses.
106
126
 
107
- Accepted HTML is normalized by a bounded `html-v1` extractor. It validates supported UTF-8/US-ASCII declarations, removes scripts, styles, noscript and hidden/non-content elements, and preserves basic titles, headings, paragraphs, lists, tables, code, and link text. Link metadata is separately bounded. The extractor does not invoke a browser, execute JavaScript, load subresources, follow links, or provide standards-complete HTML rendering. HTML remains `external-untrusted`; normalization is not rendering sanitization or a prompt-injection guarantee. These controls provide application-level URL and address validation, not a network namespace or process sandbox.
127
+ Accepted HTML is normalized by a bounded `html-v1` extractor. It validates supported UTF-8/US-ASCII declarations, removes scripts, styles, noscript and hidden/non-content elements, and preserves basic titles, headings, paragraphs, lists, tables, code, and link text. Link metadata is separately bounded. The extractor does not invoke a browser, execute JavaScript, load subresources, follow links, or provide standards-complete HTML rendering. HTML remains `external-untrusted`; normalization is not rendering sanitization or a prompt-injection guarantee. These controls provide application-level URL and address validation. They offer defense in depth rather than a network namespace or process sandbox.
108
128
 
109
129
  ## Diagnostics And Deletion
110
130
 
@@ -127,7 +147,7 @@ The MCP server also exposes bounded project load, graph impact, and initializer
127
147
 
128
148
  Claude Code and Codex adapter hooks may tell the model to call these MCP tools and retry a denied operation. Hooks do not transform an ordinary host shell call into an MCP call. Pi retains its native project-memory lifecycle and calls the shared runtime directly.
129
149
 
130
- ## Phase 3 Capabilities
150
+ ## Advanced Runtime Capabilities
131
151
 
132
152
  Search includes a bounded typo-tolerant trigram lane while Porter FTS remains primary. Databases use transactional version-ledger migrations; explicit healing backs up first and accepts only recognized profiles. Opaque session IDs can be resumed without a history-listing API. Durable background ingestion has bounded queue, status, cancellation, and restart recovery.
133
153
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotdotgod/context",
3
- "version": "0.2.27",
3
+ "version": "0.3.0",
4
4
  "description": "Local-first MCP execution, indexing, and retrieval runtime for dotdotgod adapters.",
5
5
  "type": "module",
6
6
  "license": "Elastic-2.0",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@modelcontextprotocol/sdk": "^1.25.2",
30
30
  "zod": "^3.25.76",
31
- "@dotdotgod/cli": "0.2.27"
31
+ "@dotdotgod/cli": "0.3.0"
32
32
  },
33
33
  "engines": {
34
34
  "node": ">=22.5.0"