pi-service-tier 0.1.2 → 0.2.0

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,19 +1,14 @@
1
1
  # ⚡ pi-service-tier
2
2
 
3
- A [pi](https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent)
3
+ A [pi](https://github.com/earendil-works/pi-mono/tree/main/packages/coding-agent)
4
4
  extension that toggles fast mode and applies provider service tiers.
5
5
 
6
- ## 📦 Install
6
+ ## 🚀 Installation
7
7
 
8
- ```bash
8
+ ```sh
9
9
  pi install npm:pi-service-tier
10
10
  ```
11
11
 
12
- If you use [pi-fancy-footer](https://github.com/mavam/pi-fancy-footer), you'll
13
- get a service tier widget in the footer:
14
-
15
- ![pi-fancy-footer screenshot](screenshot.png)
16
-
17
12
  ## ✨ What it does
18
13
 
19
14
  - Adds service tier parameters to supported provider requests when a tier is
@@ -32,7 +27,7 @@ get a service tier widget in the footer:
32
27
  appears first, followed by the remaining supported providers. Press Enter or
33
28
  Space to cycle through `off` and the provider-specific tiers.
34
29
 
35
- ## ⚙️ Configure
30
+ ## ⚙️ Configuration
36
31
 
37
32
  Run `/service-tier` or create `~/.pi/agent/service-tier.json`:
38
33
 
@@ -64,7 +59,8 @@ extension.
64
59
 
65
60
  When [pi-fancy-footer](https://github.com/mavam/pi-fancy-footer) is installed,
66
61
  the widget appears only when the active model uses a supported provider/API pair
67
- and that provider has a configured tier.
62
+ and that provider has a configured tier. It shows a single `⚡` without the tier
63
+ name to keep the footer compact.
68
64
 
69
65
  The widget id is `pi-service-tier.service-tier`. It uses the current
70
66
  `pi-fancy-footer` extension widget API, with row `1`, order `8`, right
@@ -78,6 +74,12 @@ alignment, and no grow behavior by default.
78
74
  first-class extension path for that option, displayed usage costs can omit
79
75
  flex or priority multipliers.
80
76
 
77
+ ## 🧹 Uninstall
78
+
79
+ ```sh
80
+ pi remove npm:pi-service-tier
81
+ ```
82
+
81
83
  ## 📄 License
82
84
 
83
85
  [MIT](LICENSE)
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "pi-service-tier",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Fast mode and provider service-tier controls for pi",
5
5
  "type": "module",
6
6
  "peerDependencies": {
7
- "@mariozechner/pi-coding-agent": "*",
8
- "@mariozechner/pi-tui": "*",
7
+ "@earendil-works/pi-coding-agent": "*",
8
+ "@earendil-works/pi-tui": "*",
9
9
  "typebox": "*"
10
10
  },
11
11
  "files": [
package/service-tier.ts CHANGED
@@ -3,13 +3,13 @@ import {
3
3
  type ExtensionAPI,
4
4
  type ExtensionCommandContext,
5
5
  type ExtensionContext,
6
- } from "@mariozechner/pi-coding-agent";
6
+ } from "@earendil-works/pi-coding-agent";
7
7
  import {
8
8
  Container,
9
9
  SettingsList,
10
10
  Text,
11
11
  type SettingItem,
12
- } from "@mariozechner/pi-tui";
12
+ } from "@earendil-works/pi-tui";
13
13
  import {
14
14
  DEFAULT_SERVICE_TIER_CONFIG,
15
15
  SERVICE_TIER_PROVIDER_DEFINITIONS,
@@ -143,19 +143,14 @@ export default function (pi: ExtensionAPI) {
143
143
  contributeFancyFooterWidget(pi, {
144
144
  id: SERVICE_TIER_WIDGET_ID,
145
145
  label: "Service tier",
146
- description: "Shows the configured provider service tier when active.",
146
+ description: "Shows a bolt when a provider service tier is active.",
147
147
  row: 1,
148
148
  order: 8,
149
149
  align: "right",
150
150
  grow: false,
151
- icon: {
152
- nerd: "",
153
- emoji: "⚡",
154
- unicode: "⚡",
155
- ascii: "!",
156
- },
151
+ icon: false,
157
152
  visible: () => currentServiceTier !== "",
158
- render: () => currentServiceTier || undefined,
153
+ render: () => (currentServiceTier ? "⚡" : undefined),
159
154
  });
160
155
 
161
156
  pi.registerCommand("fast", {