@bacnh85/pi-sub 0.1.10 → 0.1.11

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.
@@ -1,5 +1,4 @@
1
1
  import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
2
- import { Box, Text } from "@earendil-works/pi-tui";
3
2
  import { createHash } from "node:crypto";
4
3
  import fs from "node:fs/promises";
5
4
  import os from "node:os";
@@ -667,12 +666,6 @@ function buildDetails(snapshot: SubscriptionUsageSnapshot | undefined, state: St
667
666
  export default function (pi: ExtensionAPI) {
668
667
  const state: State = { lastRefreshAt: 0, refreshGeneration: 0 };
669
668
 
670
- pi.registerMessageRenderer(MESSAGE_TYPE, (message, _options, theme) => {
671
- const box = new Box(1, 1, (text) => theme.bg("customMessageBg", text));
672
- box.addChild(new Text(String(message.content ?? ""), 0, 0));
673
- return box;
674
- });
675
-
676
669
  pi.on("session_start", async (_event, ctx) => {
677
670
  updateActiveAdapter(ctx, state, ctx.model);
678
671
  if (state.adapter) void refreshUsage(ctx, state, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bacnh85/pi-sub",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Pi extension showing subscription usage for supported model providers.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,7 +26,8 @@
26
26
  ],
27
27
  "files": [
28
28
  "README.md",
29
- "extensions/"
29
+ "extensions/index.ts",
30
+ "extensions/package.json"
30
31
  ],
31
32
  "pi": {
32
33
  "extensions": [
@@ -37,7 +38,6 @@
37
38
  "node": ">=20.3.0"
38
39
  },
39
40
  "peerDependencies": {
40
- "@earendil-works/pi-coding-agent": "*",
41
- "@earendil-works/pi-tui": "*"
41
+ "@earendil-works/pi-coding-agent": "*"
42
42
  }
43
43
  }