@trim21/personal-pi-extensions 0.1.692 → 0.1.695

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": "@trim21/personal-pi-extensions",
3
- "version": "0.1.692",
3
+ "version": "0.1.695",
4
4
  "type": "module",
5
5
  "description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
6
6
  "keywords": [
@@ -83,7 +83,7 @@
83
83
  "prettier --write"
84
84
  ]
85
85
  },
86
- "packageManager": "pnpm@11.28.3",
86
+ "packageManager": "pnpm@11.28.4",
87
87
  "engines": {
88
88
  "node": ">=24.14"
89
89
  },
@@ -108,6 +108,8 @@ function buildDescription(tools: readonly CallableTool[]): string {
108
108
  " and a failing tool rejects with a `CallFailedError` you can catch.",
109
109
  "- Only what the script passes to `text(value)` / `console.log(...)` and its `return` value enter",
110
110
  " this conversation; nested calls and their results stay out of it.",
111
+ "- Pass only necessary content to `text(value)`: print the content the next step needs, not whole",
112
+ " tool results or data you will not use.",
111
113
  "- `store.set(key, value)`, `store.get(key)` and `store.list()` are a small key/value store that",
112
114
  " persists across codemode calls in this session; `store.set(key, undefined)` removes a key.",
113
115
  "- The sandbox has no file system, network, timers or Node APIs: calling tools is its only",
@@ -272,6 +274,7 @@ export function createCodemodeTools(pi: ExtensionAPI): CodemodeTools {
272
274
  promptSnippet: "codemode: run JavaScript that calls tools in parallel",
273
275
  promptGuidelines: [
274
276
  "Use codemode to batch or chain several tool calls, or to filter large tool output down to what matters, instead of issuing many individual tool calls.",
277
+ "Keep codemode output minimal: pass only the content the next step needs to `text(value)`, not whole tool results or data you will not use.",
275
278
  ],
276
279
  parameters: Type.Object({
277
280
  code: Type.String({