@xynogen/pix-skills 0.6.2 → 0.6.4

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
@@ -183,7 +183,8 @@ lookups never run commands. Calls and results identify the operation as `list`,
183
183
  at most the first 100 characters, while the full content still reaches the agent.
184
184
  Copied-resource results show
185
185
  the destination and byte size. Tool results follow Pix's configured auto-collapse
186
- delay, including `read_skills`.
186
+ delay, including `read_skills`; expanding an elapsed result restores its normal
187
+ preview without clearing or restarting the collapse timer.
187
188
 
188
189
  ## Usage
189
190
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-skills",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "Pi extension — agent skill loader (skill tool + skills bundle)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/skills/plan.md CHANGED
@@ -64,6 +64,11 @@ Expected: PASS
64
64
 
65
65
  ### Save and Handoff
66
66
 
67
- - Save plan to `.pi/plans/YYYY-MM-DD-<feature-name>.md`
68
- - Commit plan document
69
- - Announce: "Plan complete. Ready to execute via `/task`."
67
+ - Save the plan locally to `.pi/plans/YYYY-MM-DD-<feature-name>.md` so an
68
+ execution agent can follow it via `/task`.
69
+ - Plans are local execution artifacts and MUST NOT be added to Git, committed,
70
+ pushed, or included in repository history under normal circumstances.
71
+ - If `.pi/` is ignored, leave it ignored. Never use `git add -f` for a plan.
72
+ - Only commit a plan when the user explicitly asks to version or publish that
73
+ specific plan; the directive itself is not permission.
74
+ - Announce: "Plan complete and saved locally. Ready to execute via `/task`."
package/src/index.test.ts CHANGED
@@ -3,7 +3,7 @@ import { mkdir, mkdtemp, rm, symlink, writeFile } from "node:fs/promises";
3
3
  import { tmpdir } from "node:os";
4
4
  import { join } from "node:path";
5
5
 
6
- import {
6
+ import registerSkills, {
7
7
  copySkillResource,
8
8
  extractDescription,
9
9
  extractName,
@@ -120,6 +120,57 @@ describe("formatCollapsedSkillResult", () => {
120
120
  });
121
121
  });
122
122
 
123
+ describe("skill renderer", () => {
124
+ it("uses the self-rendered shell so the compact status mark has no box padding", () => {
125
+ let registered: Record<string, unknown> = {};
126
+ registerSkills({
127
+ registerTool(tool: unknown) {
128
+ registered = tool as Record<string, unknown>;
129
+ },
130
+ on() {},
131
+ } as never);
132
+ expect(registered.renderShell).toBe("self");
133
+ });
134
+
135
+ it("restores the normal result when an elapsed card is expanded", () => {
136
+ let registered: Record<string, unknown> = {};
137
+ registerSkills({
138
+ registerTool(tool: unknown) {
139
+ registered = tool as Record<string, unknown>;
140
+ },
141
+ on() {},
142
+ } as never);
143
+ const renderResult = registered.renderResult as (...args: unknown[]) => {
144
+ render: (width: number) => string[];
145
+ };
146
+ const rendered = renderResult(
147
+ {
148
+ content: [{ type: "text", text: "portable guidance" }],
149
+ details: {
150
+ mode: "reference",
151
+ name: "docx",
152
+ resource: "references/guide.md",
153
+ bytes: 17,
154
+ },
155
+ },
156
+ {},
157
+ tagTheme,
158
+ {
159
+ expanded: true,
160
+ isError: false,
161
+ state: { collapsed: true },
162
+ invalidate: () => {},
163
+ },
164
+ )
165
+ .render(120)
166
+ .join("\n");
167
+
168
+ expect(rendered).toContain("REFERENCE · docx");
169
+ expect(rendered).toContain("portable guidance");
170
+ expect(rendered).not.toContain("✓ skill");
171
+ });
172
+ });
173
+
123
174
  describe("formatExpandedSkillResult", () => {
124
175
  it("gives description, instructions, reference, and copy distinct output", () => {
125
176
  expect(
package/src/index.ts CHANGED
@@ -409,6 +409,7 @@ function registerSkillLoader(pi: ExtensionAPI): void {
409
409
  pi.registerTool({
410
410
  name: "read_skills",
411
411
  label: "Read Skills",
412
+ renderShell: "self",
412
413
  description:
413
414
  "Browse skills and access conventional bundle resources. References can be read into context; scripts/assets must be copied to a project-relative output path before use.",
414
415
  promptSnippet: "Browse and load bundled skill instructions",
@@ -537,7 +538,7 @@ function registerSkillLoader(pi: ExtensionAPI): void {
537
538
  const details = result.details as SkillResultDetails | undefined;
538
539
  if (!renderCtx.isError && details) {
539
540
  const state = renderCtx.state as CollapseState;
540
- if (tickCollapse("read_skills", state, renderCtx.invalidate)) {
541
+ if (tickCollapse("read_skills", state, renderCtx.invalidate, renderCtx.expanded)) {
541
542
  component.setText(
542
543
  formatCollapsedToolRow(theme, "skill", formatCollapsedSkillResult(details)),
543
544
  );