@adeildo/pi-providers 5.7.2 → 5.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adeildo/pi-providers",
3
- "version": "5.7.2",
3
+ "version": "5.8.0",
4
4
  "description": "Provider features for Pi. Bills Anthropic OAuth requests to the Claude Pro or Max plan instead of extra usage.",
5
5
  "keywords": [
6
6
  "anthropic",
@@ -37,7 +37,7 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@adeildo/pi-kit": "5.7.2"
40
+ "@adeildo/pi-kit": "5.8.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@earendil-works/pi-ai": "*",
@@ -287,7 +287,7 @@ export class AccountsView implements Component, Focusable {
287
287
  const editing = this.mode.kind !== "browse" && this.mode.id === row.id;
288
288
  // Pi's own field draws the cursor where it is and scrolls a name longer than the column.
289
289
  if (editing && this.mode.kind === "rename") return this.input.render(width)[0] ?? "";
290
- const label = truncateToWidth(row.label, NAME_LIMIT, "…");
290
+ const label = truncateToWidth(row.label, NAME_LIMIT, "...");
291
291
  if (editing) return this.theme.fg("error", label);
292
292
  return chosen ? this.theme.bold(label) : label;
293
293
  }
@@ -368,7 +368,7 @@ export function describeState(theme: Theme, state: AccountState): string {
368
368
  case "quota":
369
369
  return quotaWindows(theme, state.windows);
370
370
  case "reading":
371
- return theme.fg("dim", "reading the plan…");
371
+ return theme.fg("dim", "reading the plan...");
372
372
  case "signIn":
373
373
  return theme.fg("error", "sign in again");
374
374
  case "spent":
package/src/ui/frame.ts CHANGED
@@ -10,7 +10,7 @@ export function frameInner(width: number): number {
10
10
  export function frameTop(theme: Theme, title: string, width: number): string {
11
11
  const border = (text: string) => theme.fg("border", text);
12
12
  const room = Math.max(0, width - 5);
13
- const label = theme.fg("accent", truncateToWidth(title, Math.max(0, room - 3), "…"));
13
+ const label = theme.fg("accent", truncateToWidth(title, Math.max(0, room - 3), "..."));
14
14
  const dashes = Math.max(0, room - visibleWidth(label));
15
15
  return `${border("╭─ ")}${label}${border(` ${"─".repeat(dashes)}╮`)}`;
16
16
  }
package/src/ui/login.ts CHANGED
@@ -237,7 +237,7 @@ export class LoginView implements Component, Focusable {
237
237
 
238
238
  private promptRows(inner: number): string[] {
239
239
  const pending = this.pending;
240
- if (pending === undefined) return [this.theme.fg("dim", "waiting…")];
240
+ if (pending === undefined) return [this.theme.fg("dim", "waiting...")];
241
241
  const room = Math.max(1, inner - 2);
242
242
  const asked = this.theme.fg("text", truncateToWidth(pending.prompt.message, inner));
243
243
  if (pending.prompt.type === "select") {