pi-thinking-timer 0.1.3 → 0.1.6

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
@@ -58,7 +58,7 @@ Clone and run pi with the local extension file:
58
58
  ```bash
59
59
  git clone https://github.com/xRyul/pi-thinking-timer
60
60
  cd pi-thinking-timer
61
- pi -e ./thinking-timer.ts
61
+ pi -e ./index.ts
62
62
  ```
63
63
 
64
64
  ## License
@@ -16,9 +16,9 @@
16
16
  * so it may break if pi changes how it renders collapsed thinking blocks.
17
17
  */
18
18
 
19
- import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent";
20
- import { AssistantMessageComponent } from "@mariozechner/pi-coding-agent";
21
- import { Text } from "@mariozechner/pi-tui";
19
+ import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
20
+ import { AssistantMessageComponent } from "@earendil-works/pi-coding-agent";
21
+ import { Text } from "@earendil-works/pi-tui";
22
22
 
23
23
  type Store = {
24
24
  /** Active thinking blocks: key -> start time (ms since epoch) */
@@ -195,8 +195,7 @@ export default function (pi: ExtensionAPI) {
195
195
  }
196
196
 
197
197
  pi.on("session_start", async (_event, ctx) => {
198
- store.theme = ctx.ui.theme;
199
- ctx.ui.setWorkingMessage();
198
+ resetAll(ctx);
200
199
  });
201
200
 
202
201
  pi.on("message_update", async (event, ctx) => {
@@ -244,9 +243,6 @@ export default function (pi: ExtensionAPI) {
244
243
  if (store.starts.size === 0) stopTicker();
245
244
  });
246
245
 
247
- pi.on("session_switch", async (_event, ctx) => {
248
- resetAll(ctx);
249
- });
250
246
 
251
247
  pi.on("session_shutdown", async (_event, ctx) => {
252
248
  resetAll(ctx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-thinking-timer",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "Pi extension that shows a live timer next to collapsed Thinking blocks.",
5
5
  "license": "MIT",
6
6
  "author": "xryul",
@@ -18,15 +18,15 @@
18
18
  "pi-extension"
19
19
  ],
20
20
  "pi": {
21
- "extensions": ["./thinking-timer.ts"],
21
+ "extensions": ["./index.ts"],
22
22
  "image": "https://raw.githubusercontent.com/xRyul/pi-thinking-timer/main/assets/demo.gif"
23
23
  },
24
24
  "peerDependencies": {
25
- "@mariozechner/pi-coding-agent": "*",
26
- "@mariozechner/pi-tui": "*"
25
+ "@earendil-works/pi-coding-agent": "*",
26
+ "@earendil-works/pi-tui": "*"
27
27
  },
28
28
  "files": [
29
- "thinking-timer.ts",
29
+ "index.ts",
30
30
  "README.md",
31
31
  "LICENSE",
32
32
  "package.json"