@howaboua/pi-pet 0.1.8 → 0.1.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @howaboua/pi-pet
2
2
 
3
+ ## 0.1.9
4
+
5
+ - The animated pet canvas now exposes its accessible name to screen readers.
6
+
3
7
  ## 0.1.8
4
8
 
5
9
  - Requires Pi 1.5 or newer and Node.js 22.19 or newer.
@@ -26,7 +26,7 @@
26
26
  <section class="companion-layout" aria-label="Pi Pet companion">
27
27
  <div id="stage" class="stage">
28
28
  <div id="bubble" class="bubble" hidden></div>
29
- <canvas id="pet-canvas" width="384" height="416" aria-label="Animated Pi Pet"></canvas>
29
+ <canvas id="pet-canvas" width="384" height="416" role="img" aria-label="Animated Pi Pet"></canvas>
30
30
  <button id="wave-button" class="pet-hit-area" type="button" aria-label="Wave to the pet"></button>
31
31
  <form id="desktop-prompt-form" class="desktop-prompt" hidden>
32
32
  <div class="desktop-prompt-heading">
@@ -111,9 +111,8 @@ export default async function piPetExtension(pi: ExtensionAPI): Promise<void> {
111
111
  let current: ReturnType<typeof registerPetRuntime> | undefined;
112
112
  let refresh = () => {};
113
113
  try {
114
- const { adaptToolForCodeMode, registerCodeModeExtensionTools } = await import(
115
- "@howaboua/pi-codex-conversion/code-mode"
116
- );
114
+ const { adaptToolForCodeMode, registerCodeModeExtensionTools } =
115
+ await import("@howaboua/pi-codex-conversion/code-mode");
117
116
  const codeRegistration = registerCodeModeExtensionTools(pi, () => [
118
117
  ...(current ? [adaptToolForCodeMode(current.tool, { discovery: "help", deferLoading: true })] : []),
119
118
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/pi-pet",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Animated companions for GipPity Remote.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -55,18 +55,21 @@
55
55
  "pet:prepare": "node dist/authoring/prepare.mjs",
56
56
  "pet:rebuild": "node dist/authoring/rebuild.mjs",
57
57
  "pet:validate": "node dist/authoring/validate.mjs",
58
- "typecheck": "tsgo --noEmit",
58
+ "typecheck": "tsrs --noEmit",
59
59
  "test": "node --test --experimental-strip-types tests/*.test.ts",
60
- "lint": "biome check .",
61
- "lint:fix": "biome check --write .",
62
- "lint:strict": "biome check --error-on-warnings .",
60
+ "lint": "bun run format:check && oxlint --type-aware && bun run lint:html && bun run lint:css",
61
+ "lint:fix": "oxfmt --write '**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,json,jsonc,json5,css}' && oxlint --type-aware --fix",
62
+ "lint:strict": "bun run lint",
63
63
  "knip": "knip",
64
64
  "deadcode": "knip",
65
- "ai:check": "biome check . && tsgo --noEmit --noCheck && knip && bun run test && bun run build",
66
- "ai:check:strict": "biome check --error-on-warnings . && tsgo --noEmit && knip && bun run test && bun run build",
65
+ "ai:check": "bun run lint && tsrs --noEmit --noCheck && knip && bun run test && bun run build",
66
+ "ai:check:strict": "bun run lint:strict && bun run typecheck && knip && bun run test && bun run build",
67
67
  "check": "bun run ai:check:strict",
68
68
  "prepack": "bun run check",
69
- "pack:dry": "npm pack --dry-run"
69
+ "pack:dry": "npm pack --dry-run",
70
+ "format:check": "oxfmt --check '**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,json,jsonc,json5,css}'",
71
+ "lint:html": "html-validate 'src/**/*.html' --max-warnings 0",
72
+ "lint:css": "stylelint 'src/**/*.css' --max-warnings 0"
70
73
  },
71
74
  "engines": {
72
75
  "node": ">=22.19.0"
@@ -76,7 +79,7 @@
76
79
  "@howaboua/pi-gippity-control": ">=0.0.32",
77
80
  "@earendil-works/pi-coding-agent": ">=1.5.0",
78
81
  "@earendil-works/pi-tui": ">=1.0.0",
79
- "@howaboua/pi-codex-conversion": ">=4.0.10"
82
+ "@howaboua/pi-codex-conversion": ">=5.0.1"
80
83
  },
81
84
  "peerDependenciesMeta": {
82
85
  "@howaboua/pi-gippity-control": {
@@ -87,15 +90,19 @@
87
90
  }
88
91
  },
89
92
  "devDependencies": {
90
- "@biomejs/biome": "2.6.6",
91
93
  "@earendil-works/pi-coding-agent": "1.5.2",
92
94
  "@earendil-works/pi-tui": "1.5.2",
93
95
  "@types/node": "^26.6.6",
94
96
  "electron": "44.10.2",
95
97
  "knip": "^6.45.0",
96
- "@typescript/native-preview": "^7.0.0-dev.20260707.2",
97
98
  "typescript": "^7.0.2",
98
- "@howaboua/pi-codex-conversion": "4.0.10"
99
+ "@howaboua/pi-codex-conversion": "5.0.1",
100
+ "oxfmt": "^0.78.0",
101
+ "tsrs": "0.25.0-ts7.1.0-beta",
102
+ "oxlint": "1.94.0",
103
+ "html-validate": "11.4.0",
104
+ "stylelint": "17.16.0",
105
+ "aria-query": "5.3.2"
99
106
  },
100
107
  "publishConfig": {
101
108
  "access": "public"
@@ -45,7 +45,7 @@ function parseCoordinatePair(value: unknown, label: string): [number, number] {
45
45
  function parseHyprlandClientBounds(value: string, pid: number): DesktopWindowBounds {
46
46
  const clients = JSON.parse(value) as unknown;
47
47
  if (!Array.isArray(clients)) throw new Error("Hyprland clients response must be an array.");
48
- const client = clients.find(
48
+ const client: unknown = clients.find(
49
49
  (candidate) =>
50
50
  candidate !== null &&
51
51
  typeof candidate === "object" &&