@counterposition/skill-pi 0.74.0 → 0.75.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@counterposition/skill-pi",
3
- "version": "0.74.0",
3
+ "version": "0.75.0",
4
4
  "description": "Pi coding agent reference skill — extensions, settings, providers, SDK/RPC, packages, and .pi/ config",
5
5
  "keywords": [
6
6
  "ai-skill",
@@ -23,7 +23,7 @@ pi update <source> # update one package
23
23
  pi config
24
24
  ```
25
25
 
26
- By default, `install` and `remove` write to global settings (`~/.pi/agent/settings.json`). Use `-l` to write to project settings (`.pi/settings.json`) instead.
26
+ By default, `install` and `remove` write to user settings (`~/.pi/agent/settings.json`). Use `-l` to write to project settings (`.pi/settings.json`) instead.
27
27
 
28
28
  Project installs are shareable with a team. Pi will install missing project packages automatically on startup.
29
29
 
@@ -38,7 +38,7 @@ npm:@scope/pkg@1.2.3
38
38
  npm:pkg
39
39
  ```
40
40
 
41
- - Global installs use `npm install -g`
41
+ - User installs go under `~/.pi/agent/npm/`
42
42
  - Project installs go under `.pi/npm/`
43
43
  - Version-pinned installs are skipped by `pi update`
44
44
  - Use `npmCommand` in settings if you need a wrapper such as `mise` or `asdf`
@@ -49,7 +49,8 @@ Use `/logout` to clear stored OAuth credentials. Pi 0.71.0 removed built-in Goog
49
49
  {
50
50
  "anthropic": { "type": "api_key", "key": "sk-ant-..." },
51
51
  "openai": { "type": "api_key", "key": "!op read 'OpenAI API Key'" },
52
- "google": { "type": "api_key", "key": "GEMINI_API_KEY" }
52
+ "google": { "type": "api_key", "key": "GEMINI_API_KEY" },
53
+ "together": { "type": "api_key", "key": "TOGETHER_API_KEY" }
53
54
  }
54
55
  ```
55
56
 
@@ -167,7 +168,12 @@ Common `api` values:
167
168
 
168
169
  - `thinkingLevelMap` (Pi 0.72) replaces `compat.reasoningEffortMap`. Map pi levels (`off`/`minimal`/`low`/`medium`/`high`/`xhigh`) to provider values; use `null` to hide a level.
169
170
  - `openRouterRouting` is forwarded as-is in the OpenRouter `provider` field (fallbacks, ZDR, ignore lists, throughput/latency).
170
- - Advanced `compat` flags exist for proxy quirks (`cacheControlFormat`, `supportsLongCacheRetention`, `supportsEagerToolInputStreaming`, `sendSessionIdHeader`, `sendSessionAffinityHeaders`). See [Pi `docs/models.md`](https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/models.md) when a proxy rejects pi's defaults.
171
+ - `compat.thinkingFormat` supports OpenAI-compatible reasoning variants: `openrouter` sends `reasoning: { effort }`, `together` sends `reasoning: { enabled }` plus `reasoning_effort` when supported, and `qwen-chat-template` targets local Qwen-compatible servers that read `chat_template_kwargs.enable_thinking`.
172
+ - Advanced `compat` flags exist for proxy quirks (`cacheControlFormat`, `supportsReasoningEffort`, `supportsLongCacheRetention`, `supportsEagerToolInputStreaming`, `sendSessionIdHeader`, `sendSessionAffinityHeaders`). See [Pi `docs/models.md`](https://github.com/earendil-works/pi/blob/main/packages/coding-agent/docs/models.md) when a proxy rejects pi's defaults.
173
+
174
+ ### Context Overflow Recovery
175
+
176
+ Pi can auto-compact and retry when a provider fails with a recognized context-window overflow. For custom providers whose overflow text Pi does not recognize, use a provider-scoped `message_end` extension handler to rewrite the finalized assistant `errorMessage` so it starts with `context_length_exceeded`.
171
177
 
172
178
  ## Custom Providers via Extensions
173
179
 
@@ -114,7 +114,7 @@ Notes:
114
114
  }
115
115
  ```
116
116
 
117
- - `npmCommand` is argv-style and is used for npm lookup/install operations, including git-package installs.
117
+ - `npmCommand` is argv-style and is used for npm lookup/install operations, including git-package installs. User-scoped npm packages install under `~/.pi/agent/npm/`; project-scoped npm packages install under `.pi/npm/`.
118
118
  - `terminal.showTerminalProgress` (default `false` since Pi 0.70.0) toggles OSC 9;4 progress reporting in supporting terminals (iTerm2, WezTerm, Windows Terminal, Kitty).
119
119
  - `terminal.imageWidthCells` (Pi 0.68.1) caps inline tool-output image width in terminal cells.
120
120
 
@@ -1,6 +1,6 @@
1
1
  # Skills
2
2
 
3
- Skills are self-contained capability packages that Pi loads on demand. Pi follows the [Agent Skills specification](https://agentskills.io/specification) and stays fairly lenient, warning on many violations instead of hard-failing.
3
+ Skills are self-contained capability packages that Pi loads on demand. Pi follows the [Agent Skills specification](https://agentskills.io/specification) and stays fairly lenient, warning on most violations instead of hard-failing. Pi allows skill names to differ from parent directory names so shared skill directories can work across multiple agent harnesses.
4
4
 
5
5
  ## How Skills Work
6
6
 
@@ -83,7 +83,7 @@ Read `references/api.md` for the full details.
83
83
 
84
84
  | Field | Required | Notes |
85
85
  |-------|----------|-------|
86
- | `name` | Yes | 1-64 chars, lowercase letters/numbers/hyphens, must match parent dir |
86
+ | `name` | Yes | 1-64 chars, lowercase letters/numbers/hyphens; may differ from parent dir |
87
87
  | `description` | Yes | Max 1024 chars; primary trigger text |
88
88
  | `license` | No | License name or bundled reference |
89
89
  | `compatibility` | No | Environment requirements |
@@ -113,7 +113,6 @@ To reuse Claude Code or Codex skill directories, add them to settings:
113
113
 
114
114
  Pi warns on most issues but still loads the skill when possible:
115
115
 
116
- - Name and parent-directory mismatch
117
116
  - Name too long or invalid
118
117
  - Description too long
119
118
  - Duplicate names, where first discovered wins