@sage-protocol/pi-adapter 0.2.1 → 0.2.2

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/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Sage integration for the pi coding agent runtime.
4
4
 
5
+ Additional docs:
6
+ - Setup: `docs/setup.md`
7
+ - Developer guide: `docs/developer.md`
8
+
5
9
  It gives you:
6
10
  - Sage MCP tools in pi (`sage_search`, `sage_execute`, `sage_status`)
7
11
  - **Dynamic identity context** — wallet, active libraries, and skill counts injected into every turn's system prompt
@@ -82,6 +86,10 @@ pi list
82
86
  # should include npm:@sage-protocol/pi-adapter
83
87
  ```
84
88
 
89
+ CI validates the packed tarball against the latest published `pi` CLI by running
90
+ `npx @mariozechner/pi-coding-agent@latest install` in an isolated HOME and local
91
+ project workspace.
92
+
85
93
  ## pi CLI Mode (No Harness Source Changes)
86
94
 
87
95
  After `pi install npm:@sage-protocol/pi-adapter`, restart `pi` and use it normally.
@@ -634,6 +634,8 @@ Use these tools proactively when the user asks about current events, needs docum
634
634
  if (sessionContext.trim()) {
635
635
  docs = `${sessionContext.trim()}\n\n${SAGE_PER_TURN_GUARDRAIL}`;
636
636
  }
637
+ } catch {
638
+ // Session-context injection is best-effort — never block the turn.
637
639
  }
638
640
 
639
641
  // Dynamic identity context: wallet, libraries, skill counts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sage-protocol/pi-adapter",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Sage Protocol MCP integration for pi coding agent",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,6 +30,7 @@
30
30
  "build": "tsc -p tsconfig.build.json",
31
31
  "dev": "tsc -p tsconfig.build.json --watch",
32
32
  "clean": "rm -rf dist",
33
+ "typecheck": "tsc -p tsconfig.build.json --noEmit",
33
34
  "test": "vitest --run",
34
35
  "prepublishOnly": "npm run clean && npm run build"
35
36
  },