@xynogen/pix-skills 0.7.6 → 0.7.7

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
@@ -7,7 +7,7 @@ Pi coding agent extension — skill loader tool + skills bundle.
7
7
  | Resource | Type | Description |
8
8
  |---|---|---|
9
9
  | `read_skills` | tool | Browse local skills, search Skills.sh, explicitly fetch/cache a selected public GitHub skill, read references, and copy bundled resources. |
10
- | `skills/` | skills | 27 bundled skills (off-context by default — discovered on demand via `read_skills`) |
10
+ | `skills/` | skills | 28 bundled skills (off-context by default — discovered on demand via `read_skills`) |
11
11
 
12
12
  ## New: Skills.sh search and remote skill cache
13
13
 
@@ -155,6 +155,7 @@ as `/skill:<name>` slash commands.
155
155
  | `finish` | Structured branch completion — verify, decide, clean up |
156
156
  | `graphify` | Codebase questions via a persistent knowledge graph |
157
157
  | `handoff` | Toggle session handoff — write or read+delete `HANDOFF.md` |
158
+ | `human` | Audit and rewrite content to remove AI writing patterns ("AI-isms") |
158
159
  | `plan` | Write detailed, bite-sized implementation plans before coding |
159
160
  | `readme` | Create or update a deployment-focused README in a fixed style |
160
161
  | `review` | Architectural review and quality assurance |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-skills",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "Pi extension — agent skill loader (skill tool + skills bundle)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@xynogen/pix-data": "^0.4.0",
50
50
  "@xynogen/pix-gate": "^0.2.0",
51
- "@xynogen/pix-pretty": "^1.7.20",
51
+ "@xynogen/pix-pretty": "^1.10.0",
52
52
  "@xynogen/pix-runtime": "^0.4.0"
53
53
  }
54
54
  }
package/src/index.ts CHANGED
@@ -18,7 +18,11 @@ import { dirname, isAbsolute, join, relative, resolve, win32 } from "node:path";
18
18
  import { fileURLToPath } from "node:url";
19
19
  import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
20
20
  import { Text } from "@earendil-works/pi-tui";
21
- import { formatCollapsedToolRow, hideCollapsedToolCall } from "@xynogen/pix-pretty/utils";
21
+ import {
22
+ formatCollapsedToolRow,
23
+ hideCollapsedToolCall,
24
+ humanSize,
25
+ } from "@xynogen/pix-pretty/utils";
22
26
  import { type CollapseState, tickCollapse } from "@xynogen/pix-runtime/collapse";
23
27
  import { ioTimeoutMs } from "@xynogen/pix-runtime/io";
24
28
  import { once } from "@xynogen/pix-runtime/once";
@@ -327,11 +331,6 @@ export type SkillResultDetails =
327
331
  | { mode: "reference"; name: string; resource: string; bytes: number }
328
332
  | { mode: "copy"; name: string; resource: string; output: string; bytes: number };
329
333
 
330
- function formatBytes(bytes: number): string {
331
- if (bytes < 1024) return `${bytes} B`;
332
- return `${(bytes / 1024).toFixed(1)} KiB`;
333
- }
334
-
335
334
  export function formatSkillCallLabel(args: SkillCallArgs): string {
336
335
  if (args.search) return `search · ${args.search}`;
337
336
  if (args.source && args.name) return `remote · ${args.source}@${args.name}`;
@@ -355,9 +354,9 @@ export function formatCollapsedSkillResult(details: SkillResultDetails): string
355
354
  case "instructions":
356
355
  return `${details.name} · ${details.lines} instruction lines`;
357
356
  case "reference":
358
- return `${details.name} · reference · ${formatBytes(details.bytes)}`;
357
+ return `${details.name} · reference · ${humanSize(details.bytes)}`;
359
358
  case "copy":
360
- return `copied · ${details.output} · ${formatBytes(details.bytes)}`;
359
+ return `copied · ${details.output} · ${humanSize(details.bytes)}`;
361
360
  }
362
361
  }
363
362
 
@@ -397,9 +396,9 @@ export function formatExpandedSkillResult(details: SkillResultDetails, text: str
397
396
  return `INSTRUCTIONS · ${details.name} · ${details.lines} lines\n${preview}`;
398
397
  }
399
398
  case "reference":
400
- return `REFERENCE · ${details.name}\n${details.resource} · ${formatBytes(details.bytes)}\n${text}`;
399
+ return `REFERENCE · ${details.name}\n${details.resource} · ${humanSize(details.bytes)}\n${text}`;
401
400
  case "copy":
402
- return `COPIED · ${details.name}\n${details.resource} → ${details.output} · ${formatBytes(details.bytes)}`;
401
+ return `COPIED · ${details.name}\n${details.resource} → ${details.output} · ${humanSize(details.bytes)}`;
403
402
  }
404
403
  }
405
404