@spences10/pi-lsp 0.0.34 → 0.0.35

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 +13 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -102,6 +102,19 @@ import lsp from '@spences10/pi-lsp';
102
102
  // pass `lsp` as an ExtensionFactory to your Pi runtime
103
103
  ```
104
104
 
105
+ For harnesses that need to provide their own language-server client
106
+ factory, use the named extension factory:
107
+
108
+ ```ts
109
+ import { create_lsp_extension } from '@spences10/pi-lsp';
110
+
111
+ const lsp = create_lsp_extension({ create_client });
112
+ ```
113
+
114
+ The package also exports `CreateLspExtensionOptions`,
115
+ `should_inject_lsp_prompt`, and `LspClientLike` for custom harnesses
116
+ and tests that need to share the same prompt-gating or client seam.
117
+
105
118
  `my-pi` imports this package directly and enables it as the built-in
106
119
  LSP extension.
107
120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spences10/pi-lsp",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "Language Server Protocol tools for Pi agents to inspect diagnostics, hovers, definitions, references, and symbols",
5
5
  "keywords": [
6
6
  "language-server",
@@ -33,12 +33,12 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@spences10/pi-tui-modal": "0.0.20",
37
36
  "@spences10/pi-child-env": "0.1.8",
38
- "@spences10/pi-project-trust": "0.0.13"
37
+ "@spences10/pi-project-trust": "0.0.14",
38
+ "@spences10/pi-tui-modal": "0.0.20"
39
39
  },
40
40
  "devDependencies": {
41
- "@earendil-works/pi-coding-agent": "0.78.1",
41
+ "@earendil-works/pi-coding-agent": "0.79.3",
42
42
  "@types/node": "^25.8.0",
43
43
  "typescript": "^6.0.3",
44
44
  "vitest": "4.1.8"