pi-sage 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.
@@ -257,8 +257,12 @@ export async function runSageSingleShot(input: SageRunnerInput): Promise<SageRun
257
257
  throw new Error(`Sage subprocess failed (code ${String(exit.code)}): ${stderrBuffer.trim() || "no stderr"}`);
258
258
  }
259
259
 
260
+ if (assistantText.trim().length === 0) {
261
+ throw new Error(`Sage subprocess returned no assistant text (code ${String(exit.code)}): ${stderrBuffer.trim() || "no stderr"}`);
262
+ }
263
+
260
264
  return {
261
- text: assistantText.trim().length > 0 ? assistantText : `Sage returned no assistant text.${EOL}${stderrBuffer.trim()}`,
265
+ text: assistantText,
262
266
  latencyMs,
263
267
  stopReason,
264
268
  usage,
@@ -311,6 +315,9 @@ function buildPiArgs(model: string, reasoningLevel: ReasoningLevel, cliTools: st
311
315
  "-p",
312
316
  "--no-session",
313
317
  "--no-extensions",
318
+ "--no-skills",
319
+ "--no-prompt-templates",
320
+ "--no-themes",
314
321
  "--model",
315
322
  model,
316
323
  "--thinking",
package/README.md CHANGED
@@ -17,13 +17,13 @@ Interactive-only advisory Sage extension for Pi.
17
17
  ### Global install (all projects)
18
18
 
19
19
  ```bash
20
- pi install pi-sage
20
+ pi install npm:pi-sage
21
21
  ```
22
22
 
23
23
  ### Project-local install (current project only)
24
24
 
25
25
  ```bash
26
- pi install -l pi-sage
26
+ pi install -l npm:pi-sage
27
27
  ```
28
28
 
29
29
  Then in Pi run:
@@ -91,3 +91,12 @@ Project settings always override global settings for that project.
91
91
 
92
92
  Package name `sage` is already taken on npm.
93
93
  `pi-sage` is currently available and is the intended publish name.
94
+
95
+ ## Install troubleshooting
96
+
97
+ If `pi install pi-sage` fails with a local-path error (for example `Path does not exist: .../pi-sage`), your Pi version is interpreting bare names as local paths.
98
+ Use the explicit npm source form instead:
99
+
100
+ ```bash
101
+ pi install npm:pi-sage
102
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-sage",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Interactive-only advisory Sage extension for Pi",