pi-service-tier 0.1.1 โ†’ 0.1.3

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
 
@@ -66,7 +61,11 @@ 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
62
  and that provider has a configured tier.
68
63
 
69
- The widget id is `pi-service-tier.service-tier`.
64
+ ![pi-fancy-footer screenshot](screenshot.png)
65
+
66
+ The widget id is `pi-service-tier.service-tier`. It uses the current
67
+ `pi-fancy-footer` extension widget API, with row `1`, order `8`, right
68
+ alignment, and no grow behavior by default.
70
69
 
71
70
  ## ๐Ÿ“ TODO
72
71
 
@@ -76,6 +75,12 @@ The widget id is `pi-service-tier.service-tier`.
76
75
  first-class extension path for that option, displayed usage costs can omit
77
76
  flex or priority multipliers.
78
77
 
78
+ ## ๐Ÿงน Uninstall
79
+
80
+ ```sh
81
+ pi remove npm:pi-service-tier
82
+ ```
83
+
79
84
  ## ๐Ÿ“„ License
80
85
 
81
86
  [MIT](LICENSE)
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "pi-service-tier",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
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,
@@ -144,12 +144,10 @@ export default function (pi: ExtensionAPI) {
144
144
  id: SERVICE_TIER_WIDGET_ID,
145
145
  label: "Service tier",
146
146
  description: "Shows the configured provider service tier when active.",
147
- defaults: {
148
- row: 1,
149
- position: 8,
150
- align: "right",
151
- fill: "none",
152
- },
147
+ row: 1,
148
+ order: 8,
149
+ align: "right",
150
+ grow: false,
153
151
  icon: {
154
152
  nerd: "๏ƒง",
155
153
  emoji: "โšก",
@@ -157,7 +155,7 @@ export default function (pi: ExtensionAPI) {
157
155
  ascii: "!",
158
156
  },
159
157
  visible: () => currentServiceTier !== "",
160
- renderText: () => currentServiceTier,
158
+ render: () => currentServiceTier || undefined,
161
159
  });
162
160
 
163
161
  pi.registerCommand("fast", {