@prjct.app/pi-activity 0.2.0 → 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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.2.2](https://github.com/prjct-app/pi-activity/compare/v0.2.1...v0.2.2) (2026-09-22)
2
+
3
+ ### Bug Fixes
4
+
5
+ * pass the extension context through to the wrapped tool ([0061066](https://github.com/prjct-app/pi-activity/commit/0061066ac2393ee467ef6b15d1c6570a74a53301))
6
+
7
+ ## [0.2.1](https://github.com/prjct-app/pi-activity/compare/v0.2.0...v0.2.1) (2026-09-10)
8
+
1
9
  ## [0.2.0](https://github.com/prjct-app/pi-activity/compare/v0.1.3...v0.2.0) (2026-09-10)
2
10
 
3
11
  ### Features
package/README.md CHANGED
@@ -6,6 +6,12 @@ Keep PI Agent tool output readable with compact, expandable activity rows and su
6
6
 
7
7
  `@prjct.app/pi-activity` · Tool renderers and activity summaries; one extension.
8
8
 
9
+ ## Demo
10
+
11
+ [![Watch the pi-activity promotional demo](media/pi-activity-demo/poster.png)](https://github.com/prjct-app/pi-activity/raw/refs/heads/main/media/pi-activity-demo/pi-activity-demo.mp4)
12
+
13
+ [Watch or download the 40-second demo](https://github.com/prjct-app/pi-activity/raw/refs/heads/main/media/pi-activity-demo/pi-activity-demo.mp4). It shows compact live tool rows, expanded diagnostic detail, and the activity inspector for changed files, verification commands, and issues. The film follows the package's monochrome cover identity and uses an original instrumental soundtrack with no voice-over or external samples.
14
+
9
15
  ## Install
10
16
 
11
17
  Requires Pi installed separately and Node.js **22.19 or later**. Compatibility is tested with **Pi 0.85.1**; newer versions are not yet verified. This is an independent community package.
package/index.ts CHANGED
@@ -184,7 +184,16 @@ export default function activityMode(pi: ExtensionAPI) {
184
184
  name,
185
185
  renderShell: "self",
186
186
  async execute(toolCallId, params, signal, onUpdate, ctx) {
187
- return createTool(ctx.cwd).execute(toolCallId, params, signal, onUpdate);
187
+ // Pi supplies ExtensionContext as a fifth argument at runtime, although
188
+ // AgentTool's public execute type currently exposes only the first four.
189
+ const executeWithContext = createTool(ctx.cwd).execute as (
190
+ id: string,
191
+ input: Parameters<AgentTool<T, D>["execute"]>[1],
192
+ abortSignal: Parameters<AgentTool<T, D>["execute"]>[2],
193
+ update: Parameters<AgentTool<T, D>["execute"]>[3],
194
+ context: ExtensionContext,
195
+ ) => ReturnType<AgentTool<T, D>["execute"]>;
196
+ return executeWithContext(toolCallId, params, signal, onUpdate, ctx);
188
197
  },
189
198
  renderCall(args, theme, context) {
190
199
  const id = context.toolCallId || `${name}:render`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prjct.app/pi-activity",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Keep PI Agent tool output readable with compact, expandable activity rows and summaries of actions, errors, and changed files.",
5
5
  "type": "module",
6
6
  "keywords": [