@pimote/sdk 0.15.0-rc.2 → 0.15.0-rc.5

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
@@ -1,6 +1,6 @@
1
1
  # @pimote/sdk
2
2
 
3
- Pimote's extensibility SDK — everything a [pi](https://github.com/mariozechner/pi-coding-agent) extension imports to talk to [pimote](https://github.com/alennartz/pimote). One subpath module per extension seam:
3
+ Pimote's extensibility SDK — everything a [pi](https://github.com/earendil-works/pi) extension imports to talk to [pimote](https://github.com/alennartz/pimote). One subpath module per extension seam:
4
4
 
5
5
  - **`@pimote/sdk/panels`** — push structured card data to the pimote web client
6
6
  - **`@pimote/sdk/folders`** — contribute folder discovery and creation to pimote's folder layer
@@ -14,7 +14,7 @@ The root `@pimote/sdk` import re-exports all modules.
14
14
  npm install @pimote/sdk
15
15
  ```
16
16
 
17
- Requires `@earendil-works/pi-coding-agent` as an optional peer dependency (already present in any pi extension; only the panels and activity seams import from it).
17
+ Requires `@earendil-works/pi-coding-agent` as an optional peer dependency. Any pi extension already has it. The panels and activity modules import only its types, so the package has no runtime dependency on pi.
18
18
 
19
19
  ## Panels — `@pimote/sdk/panels`
20
20
 
@@ -61,7 +61,7 @@ Detects whether the extension is running inside pimote.
61
61
 
62
62
  Returns a `PanelHandle` if running inside pimote, or `null` otherwise.
63
63
 
64
- Calling `detect()` again with the same key deactivates the previous handle (its methods become no-ops) and returns a new one.
64
+ Calling `detect()` again with the same key deactivates the previous handle (its methods become no-ops) and returns a new one. Handles are scoped to one pi session, so two sessions can detect the same key without deactivating each other.
65
65
 
66
66
  #### `PanelHandle`
67
67
 
@@ -193,7 +193,7 @@ Repo facts as contributed by sources: `path`, `name`, `branch` (`string | null`)
193
193
 
194
194
  Answer pimote's background-activity poll so the idle reaper does not close a session that holds live work (for example: background subagents still running while the root session is settled).
195
195
 
196
- Pimote reaps sessions that are idle past a timeout with no connected client. Before closing, it emits `pimote:activity:request` on the session's EventBus and reads the answer synchronously. Register a responder if your extension manages work the root session cannot see:
196
+ Pimote reaps sessions that are idle past a timeout, with no connected client and no running bash command. Before closing, it emits `pimote:activity:request` on the session's EventBus and reads the answer synchronously. Register a responder if your extension manages work the root session cannot see:
197
197
 
198
198
  ```ts
199
199
  import { answerActivity } from '@pimote/sdk/activity';
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './panels/index.js';
2
2
  export * from './folders/index.js';
3
+ export * from './activity/index.js';
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './panels/index.js';
2
2
  export * from './folders/index.js';
3
+ export * from './activity/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pimote/sdk",
3
- "version": "0.15.0-rc.2",
3
+ "version": "0.15.0-rc.5",
4
4
  "description": "Pimote extensibility SDK: panel cards, background-activity reap guard, and folder discovery/creation seams for pi extensions",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  }
50
50
  },
51
51
  "devDependencies": {
52
- "@earendil-works/pi-coding-agent": "^1.2.0",
52
+ "@earendil-works/pi-coding-agent": "1.3.0",
53
53
  "typescript": "^6.0.2",
54
54
  "vitest": "^4.1.2"
55
55
  }